decocms 4.363.0 → 4.363.1

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 (419) hide show
  1. package/dist/client/assets/{AlertCircle-Df7Uu4Sr.js → AlertCircle-CgERhdh6.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BRLjJaJt.js → AreaChart-kU4sTinA.js} +2 -2
  3. package/dist/client/assets/{ArrowLeft-Ce4LVTaQ.js → ArrowLeft-BVx6AQzq.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CuO69upc.js → ArrowRight-DZQert3q.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DmWBbOjK.js → ArrowUp-lpfNBlP2.js} +1 -1
  6. package/dist/client/assets/{Check-C1wq38_E.js → Check-DClZtAIP.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DWvslkKl.js → CheckCircle-BGqFZ8sM.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-B76sbAXC.js → ChevronRight-BNfU55ld.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-C4wJ3zDR.js → ChevronSelectorVertical-ilm76_0p.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-B0KEDz5f.js → ChevronUp-CbF1Gmeo.js} +1 -1
  11. package/dist/client/assets/{Copy01-rsN5AnPv.js → Copy01-DiITYBuR.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-Cqs_Biv7.js → CreditCard01-Zpy-4Wu9.js} +1 -1
  13. package/dist/client/assets/Database01-zcGUPFsG.js +1 -0
  14. package/dist/client/assets/{DotsVertical-CBmzJDPB.js → DotsVertical-LmkOTjL4.js} +1 -1
  15. package/dist/client/assets/{Download01-zZEPtQ0U.js → Download01-C4blLpML.js} +1 -1
  16. package/dist/client/assets/ErrorBarContext-KbkdtIBU.js +1 -0
  17. package/dist/client/assets/{Eye-DFgd5114.js → Eye-Cd7v-liN.js} +1 -1
  18. package/dist/client/assets/File02-CceuR6rF.js +1 -0
  19. package/dist/client/assets/{GitBranch01-B7iymaqC.js → GitBranch01-Dil6c2wv.js} +1 -1
  20. package/dist/client/assets/{Globe01-Df6dZmsR.js → Globe01-BVji6jXS.js} +1 -1
  21. package/dist/client/assets/{HardDrive-CiahcooN.js → HardDrive-B4UY5qYp.js} +1 -1
  22. package/dist/client/assets/{Image01-CMpSR3RQ.js → Image01-CpXdMb8x.js} +1 -1
  23. package/dist/client/assets/{Key01-t3bX5YI3.js → Key01-BsAAVoJx.js} +1 -1
  24. package/dist/client/assets/{Link01-pX5C3rEv.js → Link01-OqB-2yPE.js} +1 -1
  25. package/dist/client/assets/{LinkExternal01-CzRiacvQ.js → LinkExternal01-DobnLseV.js} +1 -1
  26. package/dist/client/assets/{Monitor01-jzbehxNG.js → Monitor01-BTqHf-K4.js} +1 -1
  27. package/dist/client/assets/{Package-CiAH049d.js → Package-CCkk0w5h.js} +1 -1
  28. package/dist/client/assets/{Palette-CmMvG40G.js → Palette-BBWt8owf.js} +1 -1
  29. package/dist/client/assets/{Play-k9_JCuZW.js → Play-CPeIBqH_.js} +1 -1
  30. package/dist/client/assets/{Plus-Bac7Bl-V.js → Plus-DaErdsG1.js} +1 -1
  31. package/dist/client/assets/Printer-BG6NfeSZ.js +1 -0
  32. package/dist/client/assets/{SearchLg-iYej-M-S.js → SearchLg-DxQfk550.js} +1 -1
  33. package/dist/client/assets/{SearchMd-hxPQERkg.js → SearchMd-BNXjQ2BV.js} +1 -1
  34. package/dist/client/assets/Sector-D2wxgDkd.js +28 -0
  35. package/dist/client/assets/{Settings02-t15FjJbr.js → Settings02-DL8f5fN1.js} +1 -1
  36. package/dist/client/assets/{Share07-CJrTonmW.js → Share07-D1Sv14jA.js} +1 -1
  37. package/dist/client/assets/{Shield01-DS-tpugO.js → Shield01-BsobIEfQ.js} +1 -1
  38. package/dist/client/assets/{Stars01-ByE0-f1z.js → Stars01-f37Q7vDf.js} +1 -1
  39. package/dist/client/assets/{Sun-vdviKSpi.js → Sun-DjKz3VjB.js} +1 -1
  40. package/dist/client/assets/{XClose-DvenHyNp.js → SwitchHorizontal01-BIyO34Jw.js} +1 -1
  41. package/dist/client/assets/{Tool01-CmpQe3MS.js → Tool01-D6HOM_aJ.js} +1 -1
  42. package/dist/client/assets/{Tool02-BAA6OFl0.js → Tool02-BrfQeZRx.js} +1 -1
  43. package/dist/client/assets/{Trash01-C6vCLvEw.js → Trash01-DQjprOwc.js} +1 -1
  44. package/dist/client/assets/{TrendUp01-fHRYAiew.js → TrendUp01-DIz6JZwT.js} +1 -1
  45. package/dist/client/assets/{Upload01-lE597uPz.js → Upload01-BDeLrRhf.js} +1 -1
  46. package/dist/client/assets/{User01-BPodfm7s.js → User01-B8a5ssx2.js} +1 -1
  47. package/dist/client/assets/{UserSquare-CXhk4rLY.js → UserSquare-yIpHwPSn.js} +1 -1
  48. package/dist/client/assets/{Users01-Dgbd4CM_.js → Users01-BCRhQsCX.js} +1 -1
  49. package/dist/client/assets/{Users03-B4Km0_9u.js → Users03-DWh3D2_T.js} +1 -1
  50. package/dist/client/assets/{XCircle-BK1898xU.js → XCircle-DudPVYQR.js} +1 -1
  51. package/dist/client/assets/XClose-DpDcHm9Y.js +1 -0
  52. package/dist/client/assets/{Zap-nPZGKdXf.js → Zap-C5eiFR0N.js} +1 -1
  53. package/dist/client/assets/ZoomOut-DdupjPFF.js +1 -0
  54. package/dist/client/assets/access-gate-Dnh0JyKy.js +1 -0
  55. package/dist/client/assets/add-connection-dialog-BSihy3_s.js +1 -0
  56. package/dist/client/assets/agent-analytics-C1OAYjbt.js +2 -0
  57. package/dist/client/assets/agent-app-62cavSHy.js +1 -0
  58. package/dist/client/assets/agent-assets-vYQq8qui.js +1 -0
  59. package/dist/client/assets/agent-automation-BPNX454_.js +20 -0
  60. package/dist/client/assets/agent-automations-BLOXID0N.js +1 -0
  61. package/dist/client/assets/agent-connect-sources-BzEccd4r.js +1 -0
  62. package/dist/client/assets/agent-deck-DVW32bsA.js +1 -0
  63. package/dist/client/assets/agent-e2e-DM8adI3E.js +1 -0
  64. package/dist/client/assets/agent-file-C7nywZCe.js +1 -0
  65. package/dist/client/assets/agent-git-DarQSTRH.js +3 -0
  66. package/dist/client/assets/agent-hosting-Dnr2S-TT.js +1 -0
  67. package/dist/client/assets/agent-icon-vDfwuZu4.js +1 -0
  68. package/dist/client/assets/agent-library-file-D4p-8dXS.js +1 -0
  69. package/dist/client/assets/agent-monitor-DpaaBIhL.js +1 -0
  70. package/dist/client/assets/agent-overview-D9IrP622.js +1 -0
  71. package/dist/client/assets/agent-settings-CxGAsqqN.js +1 -0
  72. package/dist/client/assets/agent-site-editor-DTFbZmEY.js +1 -0
  73. package/dist/client/assets/agent-site-editor-code-Dcgjtfwk.js +2 -0
  74. package/dist/client/assets/agent-site-editor-content-BE26aik7.js +2 -0
  75. package/dist/client/assets/agent-site-editor-preview-ki_D8wtP.js +504 -0
  76. package/dist/client/assets/agent-view-DYYYDEW_.js +1 -0
  77. package/dist/client/assets/agent-view-guard-DomQyuot.js +1 -0
  78. package/dist/client/assets/agents-list-B0vnsITA.js +1 -0
  79. package/dist/client/assets/ai-providers-CxaMjUP7.js +1 -0
  80. package/dist/client/assets/{alert-D8igu3TO.js → alert-DcFgIKLk.js} +1 -1
  81. package/dist/client/assets/{alert-dialog-CFCsKBpN.js → alert-dialog-CiKfgw9r.js} +2 -2
  82. package/dist/client/assets/{api-keys-BIjM5sVA.js → api-keys-CEPWE1iS.js} +1 -1
  83. package/dist/client/assets/api-keys-DoGNEUpY.js +1 -0
  84. package/dist/client/assets/app-editor-CRjlYU-M.js +1 -0
  85. package/dist/client/assets/asset-utils-DJXdpjr9.js +1 -0
  86. package/dist/client/assets/{auth-catchall-E5QBtigN.js → auth-catchall-DV5KEwZ2.js} +1 -1
  87. package/dist/client/assets/{auth-entry-C91RF11H.js → auth-entry-Fe8qT_kq.js} +1 -1
  88. package/dist/client/assets/{auth-DeD0YpKg.js → auth-ksbj4Esa.js} +1 -1
  89. package/dist/client/assets/{auth-split-layout-BFF9n_Qv.js → auth-split-layout-CFJK_BXW.js} +1 -1
  90. package/dist/client/assets/{authenticate-and-persist-oauth-6UYdTwrd.js → authenticate-and-persist-oauth-DMvGjBUE.js} +1 -1
  91. package/dist/client/assets/{automation-list-row-Ba1cMA4W.js → automation-list-row-CkrObNhq.js} +1 -1
  92. package/dist/client/assets/automation-runs-C-5kRp10.js +1 -0
  93. package/dist/client/assets/automations-CKhgbURI.js +1 -0
  94. package/dist/client/assets/{autosend-DI1ZpOT0.js → autosend-BzUVLyEq.js} +1 -1
  95. package/dist/client/assets/{avatar-CfO1mReu.js → avatar-CW4PxBuN.js} +1 -1
  96. package/dist/client/assets/{badge-GP_pc1i_.js → badge-C5Ilvf_J.js} +1 -1
  97. package/dist/client/assets/{block-document-B_vPvGLi.js → block-document-Zfk-C1Kp.js} +3 -3
  98. package/dist/client/assets/breadcrumb-BajFgW5V.js +1 -0
  99. package/dist/client/assets/{buckets-BeX-azQt.js → buckets-CyNocIPE.js} +1 -1
  100. package/dist/client/assets/build-improve-prompt-doc-BrRLOIlw.js +2 -0
  101. package/dist/client/assets/bulk-category-panel-e217-dmm.js +1 -0
  102. package/dist/client/assets/calendar-DGiOuDgZ.js +1 -0
  103. package/dist/client/assets/{capability-load-error-BoR9RbMs.js → capability-load-error-DFv8gs5U.js} +1 -1
  104. package/dist/client/assets/{cards-m7YgOjsz.js → cards-XHNjVWeh.js} +3 -3
  105. package/dist/client/assets/category-editor-zLRtagcy.js +1 -0
  106. package/dist/client/assets/{chart-BanyRqbL.js → chart-C7CmtzOp.js} +2 -2
  107. package/dist/client/assets/chat-context-HB_KOUNM.js +35 -0
  108. package/dist/client/assets/{checkbox-ZsR1Bced.js → checkbox-Dg_GkeBT.js} +1 -1
  109. package/dist/client/assets/choose-editor-DO1mGCL1.js +1 -0
  110. package/dist/client/assets/{cli-auth-success-sB1yOlRg.js → cli-auth-success-e-RADpiN.js} +1 -1
  111. package/dist/client/assets/{client-icons-DHLFDmNu.js → client-icons-tt6oaVA2.js} +1 -1
  112. package/dist/client/assets/collapsible-CycyYnXe.js +1 -0
  113. package/dist/client/assets/collection-detail-DhtfN_Wl.js +1 -0
  114. package/dist/client/assets/collection-display-button-BRbx9UhH.js +1 -0
  115. package/dist/client/assets/{collection-search-7NUVJQfN.js → collection-search-j4HjYlys.js} +1 -1
  116. package/dist/client/assets/{collection-table-wrapper-D0kCJcbB.js → collection-table-wrapper-0LZ9BKlr.js} +1 -1
  117. package/dist/client/assets/{collection-tabs-MvaIz7gt.js → collection-tabs-Bc9QOlJ8.js} +1 -1
  118. package/dist/client/assets/{command-CF7nzIN2.js → command-BpjWfGyr.js} +1 -1
  119. package/dist/client/assets/command-palette-store-D19nXDNm.js +1 -0
  120. package/dist/client/assets/commerce-onboarding-CdG4FfWS.js +1 -0
  121. package/dist/client/assets/companion-mcps-section-CVcicsr9.js +1 -0
  122. package/dist/client/assets/companions-core-CZwGf1b1.js +1 -0
  123. package/dist/client/assets/{connect-G-ytX-wq.js → connect-COU6F3Do.js} +2 -2
  124. package/dist/client/assets/connect-layout-Bl-ol5HH.js +1 -0
  125. package/dist/client/assets/{connection-D885aDuM.js → connection-By77bjvj.js} +1 -1
  126. package/dist/client/assets/{connection-card-Nc1w-XCq.js → connection-card-Br8jDKgZ.js} +1 -1
  127. package/dist/client/assets/connection-detail-vVdPGlxv.js +1 -0
  128. package/dist/client/assets/{connection-form-helpers-B4IwDJJQ.js → connection-form-helpers-CFXh6BoJ.js} +1 -1
  129. package/dist/client/assets/connections-BBNFmXEe.js +1 -0
  130. package/dist/client/assets/content-blocks-o63cs2vh.js +1 -0
  131. package/dist/client/assets/{create-organization-dialog-gO5G25gp.js → create-organization-dialog-CRl8hry2.js} +1 -1
  132. package/dist/client/assets/decode-html-entities-Cf7wUEql.js +1 -0
  133. package/dist/client/assets/{decopilot-sse-pool-Bm_3HC4t.js → decopilot-sse-pool-D2Qtyl-A.js} +1 -1
  134. package/dist/client/assets/{dialog-CyDGwxcX.js → dialog-DJBpjJnY.js} +1 -1
  135. package/dist/client/assets/discover-y7BsppSE.js +1 -0
  136. package/dist/client/assets/{domain-settings-Cx6UibuZ.js → domain-settings-B_cuGCF0.js} +1 -1
  137. package/dist/client/assets/download-app-dialog-DYhv8XsJ.js +1 -0
  138. package/dist/client/assets/{drawer-CqSEztKC.js → drawer-B5NRhNfW.js} +1 -1
  139. package/dist/client/assets/{dropdown-menu-CgwRqOnX.js → dropdown-menu-DzwCPltk.js} +1 -1
  140. package/dist/client/assets/{editor-D7S6MtwI.js → editor-BHnwprUT.js} +1 -1
  141. package/dist/client/assets/{empty-state-SN5mEPhX.js → empty-state-CJ95hR0w.js} +1 -1
  142. package/dist/client/assets/{empty-state-DfBha5W6.js → empty-state-CXolWOTn.js} +1 -1
  143. package/dist/client/assets/extract-connection-data-B1nPGa4h.js +1 -0
  144. package/dist/client/assets/{file-explorer-paPAvOUA.js → file-explorer-Dj1zqDxa.js} +2 -2
  145. package/dist/client/assets/file-preview-kRDXQYfi.js +1 -0
  146. package/dist/client/assets/file-share-button-P5GnoZYM.js +3 -0
  147. package/dist/client/assets/{file-type-icon--TvA6C0i.js → file-type-icon-Cg81au_Z.js} +1 -1
  148. package/dist/client/assets/folder-icon-Bey_C_xd.js +2 -0
  149. package/dist/client/assets/{form-BnUN8JhF.js → form-EGCuUtdG.js} +1 -1
  150. package/dist/client/assets/{general-DhiseHhA.js → general-BJ_Ksgnn.js} +1 -1
  151. package/dist/client/assets/github-D4UJ99TO.js +1 -0
  152. package/dist/client/assets/{github-icon-7BmoW2Y2.js → github-icon-CiNkodR8.js} +1 -1
  153. package/dist/client/assets/{github-repo-CTPv5ZM2.js → github-repo-C0igpkr9.js} +1 -1
  154. package/dist/client/assets/github-repo-scope-C8GSbvaz.js +1 -0
  155. package/dist/client/assets/home-Cmddezu3.js +1 -0
  156. package/dist/client/assets/{hooks-Bv30myGB.js → hooks-BSkeWBV7.js} +2 -2
  157. package/dist/client/assets/hooks-Bb9SArul.js +2 -0
  158. package/dist/client/assets/{index-y6Z5iMfg.js → index-6GXqHE0w.js} +42 -42
  159. package/dist/client/assets/{index-C2fs5Fhc.js → index-9FQARZdh.js} +1 -1
  160. package/dist/client/assets/index-B7ENeoW4.js +4 -0
  161. package/dist/client/assets/index-B9bOVdMd.js +90 -0
  162. package/dist/client/assets/index-BVRQ9yUZ.js +1 -0
  163. package/dist/client/assets/index-BaItIL-_.js +1 -0
  164. package/dist/client/assets/index-CUa7fAjf.js +24 -0
  165. package/dist/client/assets/index-CY40-aHW.js +1 -0
  166. package/dist/client/assets/{index-CnV8Y6tV.js → index-Cu77hgR2.js} +1 -1
  167. package/dist/client/assets/index-DCQ3taiG.js +1 -0
  168. package/dist/client/assets/{index-DD_a39Sy.js → index-Dg14Zpi9.js} +2 -2
  169. package/dist/client/assets/{index-B_j4TgZF.js → index-cEqwHhEg.js} +1 -1
  170. package/dist/client/assets/{index-Cf5RfBo5.js → index-hC6VOnUm.js} +2 -2
  171. package/dist/client/assets/index-qEipD_7S.js +1 -0
  172. package/dist/client/assets/index-redirect-BRL1uQPT.js +1 -0
  173. package/dist/client/assets/{infiniteQueryObserver-CvFtTJPb.js → infiniteQueryObserver-C7FrFXuf.js} +1 -1
  174. package/dist/client/assets/infra-billing-B0e93_qz.js +1 -0
  175. package/dist/client/assets/input-BRqLi1TH.js +8 -0
  176. package/dist/client/assets/input-D8xrvlz-.js +1 -0
  177. package/dist/client/assets/{input-DRjCNSPN.js → input-TvernbmY.js} +1 -1
  178. package/dist/client/assets/{integration-icon-CFGOsRgH.js → integration-icon-B6H5J7sl.js} +1 -1
  179. package/dist/client/assets/{invite-member-dialog-qtYgFNfF.js → invite-member-dialog-CsolElt3.js} +1 -1
  180. package/dist/client/assets/{label-DGsSvY2I.js → label-aWEsDmHM.js} +1 -1
  181. package/dist/client/assets/{layout-C7iOarOb.js → layout-CAwe_kK2.js} +1 -1
  182. package/dist/client/assets/legacy-agents-deep-DJ_t0QLc.js +1 -0
  183. package/dist/client/assets/legacy-main-redirect-CySqEohs.js +1 -0
  184. package/dist/client/assets/library-DRmbr8Ht.js +161 -0
  185. package/dist/client/assets/{login-B4RHcX-Z.js → login-DQDbHhI7.js} +1 -1
  186. package/dist/client/assets/{markdown-Y6owwpHy.js → markdown-CBvmi8AF.js} +30 -30
  187. package/dist/client/assets/match-site-slug-config-D3fUJ6vX.js +1 -0
  188. package/dist/client/assets/{mcp-app-renderer-Cy31bAY0.js → mcp-app-renderer-BQ7hPzlx.js} +2 -2
  189. package/dist/client/assets/{mcp-oauth-Bm9ijvfC.js → mcp-oauth-DhRKpyTH.js} +1 -1
  190. package/dist/client/assets/members-NHaXKGgP.js +1 -0
  191. package/dist/client/assets/mini-report-page-BcG9QHwQ.js +1 -0
  192. package/dist/client/assets/monaco-editor-C5zvkMO4.js +9 -0
  193. package/dist/client/assets/monitoring-stats-row-CWqusnLf.js +1 -0
  194. package/dist/client/assets/{multi-select-kzt94BG4.js → multi-select-CvACpZbb.js} +1 -1
  195. package/dist/client/assets/mustache-DQXz9E52.js +4 -0
  196. package/dist/client/assets/{oauth-callback-CsYpPVhX.js → oauth-callback-BHJTnNxG.js} +1 -1
  197. package/dist/client/assets/{oauth-callback-ai-provider-CkroR0wl.js → oauth-callback-ai-provider-wF0_7wc5.js} +1 -1
  198. package/dist/client/assets/omit-sandbox-map-jj4lCB2U.js +1 -0
  199. package/dist/client/assets/{onboarding-DN_VeGxV.js → onboarding-20FUHLvO.js} +1 -1
  200. package/dist/client/assets/optimistic-project-sidebar-views-DKtRXqQ0.js +1 -0
  201. package/dist/client/assets/org-layout-DRrVivAL.js +1 -0
  202. package/dist/client/assets/{organization-choice-Bugd-m5W.js → organization-choice-BmSYuBSE.js} +1 -1
  203. package/dist/client/assets/{orgs-Bv7LuXwC.js → orgs-1ZlqeM-y.js} +1 -1
  204. package/dist/client/assets/page-seo-form-Cpi2Oike.js +1 -0
  205. package/dist/client/assets/pair-CD8Vxcvs.js +47 -0
  206. package/dist/client/assets/{popover-DrJcYe9C.js → popover-Ci-k968-.js} +1 -1
  207. package/dist/client/assets/post-calendar-CgTLYrrU.js +1 -0
  208. package/dist/client/assets/post-editor-DyayPm7u.js +1 -0
  209. package/dist/client/assets/preview-content-DhEgigNG.js +1 -0
  210. package/dist/client/assets/preview-dialog-CKWnRekk.js +1 -0
  211. package/dist/client/assets/primitives-1lR28duD.js +1 -0
  212. package/dist/client/assets/{profile-Bs-irLLH.js → profile-DixSbE4L.js} +1 -1
  213. package/dist/client/assets/project-app-view-DBHiU3Rg.js +1 -0
  214. package/dist/client/assets/project-feed-boKgu_TR.js +1 -0
  215. package/dist/client/assets/project-icon-DIXBuD-A.js +1 -0
  216. package/dist/client/assets/project-reports-ChLta7_v.js +1 -0
  217. package/dist/client/assets/project-tasks-nUWazd1g.js +1 -0
  218. package/dist/client/assets/{prompts-wjQ-EFKj.js → prompts-BROxvafI.js} +1 -1
  219. package/dist/client/assets/provision-repo-scoped-github-connection-B6zdkC6p.js +1 -0
  220. package/dist/client/assets/record-editor-FqHaN2k4.js +1 -0
  221. package/dist/client/assets/redirect-editor-CWYZom_C.js +1 -0
  222. package/dist/client/assets/registry-C3_EEMj-.js +2 -0
  223. package/dist/client/assets/{registry-layout-DHYm94rU.js → registry-layout-BUEF9YqP.js} +4 -4
  224. package/dist/client/assets/{reports-D4elpaqK.js → reports-B1C9NU2m.js} +1 -1
  225. package/dist/client/assets/reports-BY7Ca1Ey.js +1 -0
  226. package/dist/client/assets/reports-tab-uLMivl2p.js +2 -0
  227. package/dist/client/assets/{repositories-3ia_V4sE.js → repositories-BgD13VwL.js} +1 -1
  228. package/dist/client/assets/repository-import-picker-DVnadPZ8.js +1 -0
  229. package/dist/client/assets/{repository-picker-s01uE4_E.js → repository-picker-BGpoa_g_.js} +1 -1
  230. package/dist/client/assets/require-capability-DSFKKTc-.js +1 -0
  231. package/dist/client/assets/{required-auth-layout-mSUodrzA.js → required-auth-layout-DMNBbcf3.js} +1 -1
  232. package/dist/client/assets/{reset-password-B_-cD_PK.js → reset-password-GCDcBOjo.js} +1 -1
  233. package/dist/client/assets/review-settings-VwYzzjCc.js +1 -0
  234. package/dist/client/assets/rich-text-link-control-C6A8Q9Jd.js +5 -0
  235. package/dist/client/assets/roles-PgEO9KN-.js +1 -0
  236. package/dist/client/assets/runnable-block-editor-Db2XbJYi.js +16 -0
  237. package/dist/client/assets/sandbox-lifecycle-context-DxbfUbxP.js +2 -0
  238. package/dist/client/assets/sandbox-url-D3mC8qhT.js +1 -0
  239. package/dist/client/assets/{schema-BDy_4D7A.js → schema-Cnskrzk1.js} +1 -1
  240. package/dist/client/assets/{scroll-area-C18Y2v3L.js → scroll-area-CaE3a4_T.js} +1 -1
  241. package/dist/client/assets/{search-input-L0lrukmF.js → search-input-lFP9sD3O.js} +1 -1
  242. package/dist/client/assets/{secrets-CdpkfmHa.js → secrets-BU_daRxy.js} +1 -1
  243. package/dist/client/assets/sections-editor-D-W8vM7g.js +2 -0
  244. package/dist/client/assets/{select-BGnwGqnU.js → select-Ce9NznPv.js} +1 -1
  245. package/dist/client/assets/select-model-CjTijsS7.js +1 -0
  246. package/dist/client/assets/self-tool-result-8OxPN9Nm.js +1 -0
  247. package/dist/client/assets/seo-editor-O94He1NF.js +1 -0
  248. package/dist/client/assets/serial-task-queue-CGOeQgpr.js +1 -0
  249. package/dist/client/assets/settings-layout-CWQI71Tg.js +1 -0
  250. package/dist/client/assets/settings-sidebar-BcAe-WS4.js +1 -0
  251. package/dist/client/assets/settings-tab-Cg5CqTki.js +5 -0
  252. package/dist/client/assets/shell-controls-gkZZS07l.js +1 -0
  253. package/dist/client/assets/shell-layout-C3IRibnI.js +1 -0
  254. package/dist/client/assets/site-url-en5df9c-.js +1 -0
  255. package/dist/client/assets/skill-preview-MIddvDZe.js +1 -0
  256. package/dist/client/assets/skills-hRnVKZ5K.js +1 -0
  257. package/dist/client/assets/{sso-CVpMpJ2m.js → sso-BePH_NId.js} +1 -1
  258. package/dist/client/assets/store-CqeIEwHN.js +1 -0
  259. package/dist/client/assets/store-registry-BCokMLik.js +2 -0
  260. package/dist/client/assets/switch-D5GcuD9Z.js +1 -0
  261. package/dist/client/assets/synced-repos-Cnp4m7yg.js +1 -0
  262. package/dist/client/assets/{table-DSIbUmyY.js → table-O0SpY8ZO.js} +1 -1
  263. package/dist/client/assets/{tabs-BVFMEVzk.js → tabs-DQoXHeZr.js} +1 -1
  264. package/dist/client/assets/{task-board-By8eCqZc.js → task-board-DyZE7mH1.js} +1 -1
  265. package/dist/client/assets/task-route-CayeX6cv.js +1 -0
  266. package/dist/client/assets/task-status-CyTozLxL.js +1 -0
  267. package/dist/client/assets/tasks-DGTMeQBa.js +1 -0
  268. package/dist/client/assets/{tasks-kFCSziTb.js → tasks-Da-h-zLm.js} +1 -1
  269. package/dist/client/assets/{textarea-CuF3aDTE.js → textarea-BpFOmm9_.js} +1 -1
  270. package/dist/client/assets/{thread-intent-q_RVjRN0.js → thread-intent-AJKohiRy.js} +1 -1
  271. package/dist/client/assets/thread-route-CEvVLI2K.js +1 -0
  272. package/dist/client/assets/thread-sheet-body-Bs4b4fMK.js +1 -0
  273. package/dist/client/assets/toggle-group-Cs1yIHkK.js +1 -0
  274. package/dist/client/assets/tool-namespace-ySa3S1AM.js +1 -0
  275. package/dist/client/assets/{toolbar-B5cewwJb.js → toolbar-DOOz2W24.js} +1 -1
  276. package/dist/client/assets/{toolbar-icon-button-BtBUZ8nA.js → toolbar-icon-button-Dp-AbzNZ.js} +1 -1
  277. package/dist/client/assets/{track-BYunSel2.js → track-Dns1NpdC.js} +1 -1
  278. package/dist/client/assets/{types-BB_Up-3A.js → types-C1gRrnQe.js} +6 -6
  279. package/dist/client/assets/usage-stats-D5mXC24B.js +141 -0
  280. package/dist/client/assets/{use-ai-providers-BMexfNaB.js → use-ai-providers-Bg_y9f3x.js} +1 -1
  281. package/dist/client/assets/{use-automations-BgzAjzua.js → use-automations-BI_yIok-.js} +1 -1
  282. package/dist/client/assets/{use-autosave-D70NA0HD.js → use-autosave-BB0U2eiK.js} +1 -1
  283. package/dist/client/assets/use-commerce-diagnostic-DqKipeip.js +1 -0
  284. package/dist/client/assets/use-connect-companion-Mci4Y6hu.js +1 -0
  285. package/dist/client/assets/{use-connection-ClORxmw4.js → use-connection-DCUpGmsb.js} +1 -1
  286. package/dist/client/assets/{use-copy-DUxpBqXm.js → use-copy-GVBAvo9n.js} +1 -1
  287. package/dist/client/assets/{use-create-virtual-mcp-DBeldBRq.js → use-create-virtual-mcp-CizXpVyQ.js} +1 -1
  288. package/dist/client/assets/{use-date-fns-locale-40K6SzJD.js → use-date-fns-locale-CcPpBz8y.js} +1 -1
  289. package/dist/client/assets/{use-debounced-autosave-kf66WQZj.js → use-debounced-autosave-wCEzYUZh.js} +1 -1
  290. package/dist/client/assets/{use-debounced-value-v41IOreQ.js → use-debounced-value-D0SYNQsR.js} +1 -1
  291. package/dist/client/assets/use-deco-credits-DjxZxHMq.js +1 -0
  292. package/dist/client/assets/{use-decopilot-events-C0NWoSQc.js → use-decopilot-events-zpeu2MCG.js} +1 -1
  293. package/dist/client/assets/{use-delete-connection-qmqqgsKa.js → use-delete-connection-B-DNpbCU.js} +1 -1
  294. package/dist/client/assets/{use-deployment-admin-C7c9x0vv.js → use-deployment-admin-Dpkh4HgH.js} +1 -1
  295. package/dist/client/assets/{use-file-configs-Dm3fOdMk.js → use-file-configs-B1FdrMZJ.js} +1 -1
  296. package/dist/client/assets/{use-infinite-scroll-Bw5rNIGx.js → use-infinite-scroll-BXOEU8Y7.js} +1 -1
  297. package/dist/client/assets/{use-join-requests-DbtrL0Pl.js → use-join-requests-1Ow065Yq.js} +1 -1
  298. package/dist/client/assets/use-main-panel-tabs-CeyJWpQP.js +1 -0
  299. package/dist/client/assets/{use-mcp-auth-status-kHe3lJRg.js → use-mcp-auth-status-CSQiZCDG.js} +1 -1
  300. package/dist/client/assets/use-mcp-client-Bq-mjhw3.js +10 -0
  301. package/dist/client/assets/{use-mcp-prompts-CtjkJFfg.js → use-mcp-prompts-CWmeNLXn.js} +1 -1
  302. package/dist/client/assets/{use-mcp-tools-DRBItGTD.js → use-mcp-tools-DGdyHn8U.js} +1 -1
  303. package/dist/client/assets/{use-members-C23rfxcZ.js → use-members-Dnee1tF2.js} +1 -1
  304. package/dist/client/assets/use-navigate-to-agent-Drdqs1cr.js +1 -0
  305. package/dist/client/assets/use-open-billing-url-Cju1isPI.js +1 -0
  306. package/dist/client/assets/{use-org-auth-client-DvlpnDFO.js → use-org-auth-client-CVFBkaiI.js} +1 -1
  307. package/dist/client/assets/use-org-fs-DG1oJieK.js +1 -0
  308. package/dist/client/assets/{use-org-notice-DlsdC1WA.js → use-org-notice-PUfO84YR.js} +1 -1
  309. package/dist/client/assets/{use-org-sso-xd-5IiLc.js → use-org-sso-uleG21Aq.js} +1 -1
  310. package/dist/client/assets/{use-organization-roles-B3neE_6D.js → use-organization-roles-yO3kgQbK.js} +1 -1
  311. package/dist/client/assets/use-organization-settings-DrJN-E78.js +1 -0
  312. package/dist/client/assets/use-panel-navigate-CCqZdv2O.js +1 -0
  313. package/dist/client/assets/use-project-native-view-presence-01L5j4lu.js +1 -0
  314. package/dist/client/assets/use-project-scope-DZ9tacAx.js +1 -0
  315. package/dist/client/assets/use-registry-connections-cro5WL6A.js +1 -0
  316. package/dist/client/assets/{use-secrets-PkTonlJ_.js → use-secrets-w6G8jtp4.js} +1 -1
  317. package/dist/client/assets/use-section-preview-base-lro_p1nx.js +1 -0
  318. package/dist/client/assets/use-session-runtime-TS34dEJv.js +1 -0
  319. package/dist/client/assets/{use-status-sounds-C-6LEj0t.js → use-status-sounds-DQ2pMmh0.js} +1 -1
  320. package/dist/client/assets/{use-tags-BuxETA7b.js → use-tags-B6zE47mm.js} +1 -1
  321. package/dist/client/assets/use-task-metadata-C4MfiHBQ.js +1 -0
  322. package/dist/client/assets/use-thread-outputs-CpCqTMOi.js +1 -0
  323. package/dist/client/assets/{use-view-mode-BGsTNFK8.js → use-view-mode-B9wUn2ad.js} +1 -1
  324. package/dist/client/assets/use-virtual-mcp-CMlCV8Oj.js +1 -0
  325. package/dist/client/assets/useInfiniteQuery-CM35R0yt.js +1 -0
  326. package/dist/client/assets/useQueries-C6OAJOs7.js +1 -0
  327. package/dist/client/assets/useSuspenseInfiniteQuery-DWyGwvh9.js +1 -0
  328. package/dist/client/assets/{users-CuqlxLsH.js → users-CYflDdFv.js} +1 -1
  329. package/dist/client/assets/utils-B-5U5Z26.js +4 -0
  330. package/dist/client/assets/utils-CVEq3hMx.js +1 -0
  331. package/dist/client/assets/variant-calendar-BsFwTl3D.js +1 -0
  332. package/dist/client/assets/variant-matcher-override-CRlEf4IL.js +1 -0
  333. package/dist/client/assets/{view-mode-toggle-BlEO3gFJ.js → view-mode-toggle-kY4gR8CN.js} +1 -1
  334. package/dist/client/assets/virtual-mcp-CKi1xJsO.js +1 -0
  335. package/dist/client/index.html +1 -1
  336. package/dist/server/cli.js +1 -1
  337. package/dist/server/server.js +1 -1
  338. package/package.json +1 -1
  339. package/dist/client/assets/ErrorBarContext-CQj5vlL8.js +0 -1
  340. package/dist/client/assets/Sector-CD1ykt0B.js +0 -28
  341. package/dist/client/assets/ZoomOut-DhJWoynj.js +0 -1
  342. package/dist/client/assets/access-gate-OgewzCmd.js +0 -1
  343. package/dist/client/assets/agent-icon-6EllA70W.js +0 -1
  344. package/dist/client/assets/agents-list-BY0vT0Wn.js +0 -1
  345. package/dist/client/assets/ai-providers-vUA1qSht.js +0 -1
  346. package/dist/client/assets/analytics-tab-Do-IciVD.js +0 -2
  347. package/dist/client/assets/api-keys-pPtOUmL_.js +0 -1
  348. package/dist/client/assets/app-editor-CSGywsTY.js +0 -1
  349. package/dist/client/assets/automation-runs-CoIkXCsB.js +0 -187
  350. package/dist/client/assets/automations-CJ2EIlox.js +0 -1
  351. package/dist/client/assets/breadcrumb-CAKgWNOZ.js +0 -1
  352. package/dist/client/assets/bulk-category-panel-BenSOwl7.js +0 -1
  353. package/dist/client/assets/category-editor-iK-flfht.js +0 -1
  354. package/dist/client/assets/cdn-tab-Ck8xjhCA.js +0 -1
  355. package/dist/client/assets/chat-context-C6UT7ht1.js +0 -35
  356. package/dist/client/assets/choose-editor-B8v8x2gP.js +0 -1
  357. package/dist/client/assets/collection-detail-CZicQp0E.js +0 -1
  358. package/dist/client/assets/collection-display-button-BiBiEJPp.js +0 -1
  359. package/dist/client/assets/commerce-onboarding-DKWZMrBI.js +0 -1
  360. package/dist/client/assets/connect-layout-BLwdQBWt.js +0 -1
  361. package/dist/client/assets/connection-detail-BboxJXTl.js +0 -1
  362. package/dist/client/assets/connections-H_c0ER6v.js +0 -1
  363. package/dist/client/assets/e2e-tab-DbA_PByD.js +0 -1
  364. package/dist/client/assets/extract-connection-data-DkL3Oqhk.js +0 -1
  365. package/dist/client/assets/folder-icon-C46JPU0-.js +0 -2
  366. package/dist/client/assets/index-9Wn-1DpE.js +0 -1
  367. package/dist/client/assets/index-BEyFhSeZ.js +0 -834
  368. package/dist/client/assets/index-DHHqS3nT.js +0 -1
  369. package/dist/client/assets/index-DR6uwZdc.js +0 -1
  370. package/dist/client/assets/index-I7v7d4v2.js +0 -1
  371. package/dist/client/assets/index-SmsG_b1w.js +0 -1
  372. package/dist/client/assets/index-redirect-C3gwJ6Fh.js +0 -1
  373. package/dist/client/assets/infra-billing-Ch_WWq-u.js +0 -1
  374. package/dist/client/assets/members-ypEfbto9.js +0 -1
  375. package/dist/client/assets/monaco-editor-D3QSLeam.js +0 -9
  376. package/dist/client/assets/monitoring-stats-row--wR3KC6f.js +0 -1
  377. package/dist/client/assets/org-layout-DzsJ720P.js +0 -1
  378. package/dist/client/assets/page-seo-form-DPrfWQ94.js +0 -1
  379. package/dist/client/assets/post-calendar-DyncB6BE.js +0 -1
  380. package/dist/client/assets/post-editor-FfaApBeX.js +0 -1
  381. package/dist/client/assets/primitives-DZEMS67c.js +0 -1
  382. package/dist/client/assets/project-app-view-C1W5Uv5V.js +0 -1
  383. package/dist/client/assets/project-icon-DQTfNALl.js +0 -1
  384. package/dist/client/assets/provision-repo-scoped-github-connection-WQFARyHG.js +0 -1
  385. package/dist/client/assets/record-editor-DaGE-E4Q.js +0 -1
  386. package/dist/client/assets/redirect-editor-BgylW9YL.js +0 -1
  387. package/dist/client/assets/registry-YIdSAHGV.js +0 -2
  388. package/dist/client/assets/repository-import-picker-DN9Nn9yd.js +0 -1
  389. package/dist/client/assets/require-capability-BVMwcBeZ.js +0 -1
  390. package/dist/client/assets/review-settings-BN9py8rz.js +0 -1
  391. package/dist/client/assets/roles-CGT8NKA4.js +0 -1
  392. package/dist/client/assets/sections-editor-BIoyRz1G.js +0 -2
  393. package/dist/client/assets/select-model-BNDe5FJr.js +0 -4
  394. package/dist/client/assets/self-tool-result-DM7xixxP.js +0 -1
  395. package/dist/client/assets/seo-editor-EIeTDSnb.js +0 -1
  396. package/dist/client/assets/settings-layout-CwJp96nZ.js +0 -1
  397. package/dist/client/assets/settings-sidebar-BvIIdmkC.js +0 -1
  398. package/dist/client/assets/shell-controls-nVElTnLJ.js +0 -1
  399. package/dist/client/assets/shell-layout-CTNVA2t4.js +0 -1
  400. package/dist/client/assets/skill-preview-BswJw8Eb.js +0 -4
  401. package/dist/client/assets/skills-DXWVIfB4.js +0 -1
  402. package/dist/client/assets/store-BUUS-eER.js +0 -1
  403. package/dist/client/assets/store-registry-DxfEOZiI.js +0 -2
  404. package/dist/client/assets/switch-CPLM-IZy.js +0 -1
  405. package/dist/client/assets/synced-repos-Bl-1vG4K.js +0 -1
  406. package/dist/client/assets/task-route-B8aecmdq.js +0 -1
  407. package/dist/client/assets/thread-route-jI9qvJe_.js +0 -1
  408. package/dist/client/assets/toggle-group-WfRpP-dB.js +0 -1
  409. package/dist/client/assets/use-destination-route-CY15sZqw.js +0 -1
  410. package/dist/client/assets/use-mcp-client-Cw1fcLqm.js +0 -10
  411. package/dist/client/assets/use-navigate-to-agent-COVw0ub8.js +0 -1
  412. package/dist/client/assets/use-organization-settings-DucmPYOE.js +0 -1
  413. package/dist/client/assets/use-panel-navigate-C6Ga2vR8.js +0 -1
  414. package/dist/client/assets/use-registry-connections-DBp-MS3e.js +0 -1
  415. package/dist/client/assets/use-section-preview-base-B4s2_IK6.js +0 -1
  416. package/dist/client/assets/use-virtual-mcp-Bnfc4yEo.js +0 -1
  417. package/dist/client/assets/useInfiniteQuery-DThUrotQ.js +0 -1
  418. package/dist/client/assets/useSuspenseInfiniteQuery-Dsg0_SX3.js +0 -1
  419. package/dist/client/assets/variant-calendar-BhJlQ5r6.js +0 -1
@@ -1 +0,0 @@
1
- import{c as T,b as ve,j as o,r as ee,B as je,h as Se}from"./index-y6Z5iMfg.js";import{i as ke}from"./ChevronRight-B76sbAXC.js";import{ax as fe}from"./agent-icon-6EllA70W.js";import{S as xe}from"./scroll-area-C18Y2v3L.js";import{aw as Ne,ax as we,az as _e,a4 as Ee,ay as Pe,aA as Te,bs as Fe}from"./index-BEyFhSeZ.js";import{u as Re,a as Ce,P as ze}from"./page-seo-form-DPrfWQ94.js";import{a as ye}from"./Image01-CMpSR3RQ.js";import{s as ue}from"./safe-image-url-D5z803Ot.js";import"./AlertCircle-Df7Uu4Sr.js";import"./Tool01-CmpQe3MS.js";import"./ArrowUp-DmWBbOjK.js";import"./ArrowLeft-Ce4LVTaQ.js";import"./Tool02-BAA6OFl0.js";import"./ArrowRight-CuO69upc.js";import"./TrendUp01-fHRYAiew.js";import"./ZoomOut-DhJWoynj.js";import"./Users03-B4Km0_9u.js";import"./CheckCircle-DWvslkKl.js";import"./Check-C1wq38_E.js";import"./ChevronUp-B0KEDz5f.js";import"./ChevronSelectorVertical-C4wJ3zDR.js";import"./DotsVertical-CBmzJDPB.js";import"./UserSquare-CXhk4rLY.js";import"./Copy01-rsN5AnPv.js";import"./CreditCard01-Cqs_Biv7.js";import"./Download01-zZEPtQ0U.js";import"./Settings02-t15FjJbr.js";import"./Eye-DFgd5114.js";import"./Share07-CJrTonmW.js";import"./GitBranch01-B7iymaqC.js";import"./Globe01-Df6dZmsR.js";import"./XClose-DvenHyNp.js";import"./HardDrive-CiahcooN.js";import"./Key01-t3bX5YI3.js";import"./Link01-pX5C3rEv.js";import"./LinkExternal01-CzRiacvQ.js";import"./Monitor01-jzbehxNG.js";import"./Sun-vdviKSpi.js";import"./Package-CiAH049d.js";import"./Palette-CmMvG40G.js";import"./Play-k9_JCuZW.js";import"./Plus-Bac7Bl-V.js";import"./SearchLg-iYej-M-S.js";import"./SearchMd-hxPQERkg.js";import"./Shield01-DS-tpugO.js";import"./Stars01-ByE0-f1z.js";import"./Trash01-C6vCLvEw.js";import"./Upload01-lE597uPz.js";import"./User01-BPodfm7s.js";import"./Users01-Dgbd4CM_.js";import"./XCircle-BK1898xU.js";import"./Zap-nPZGKdXf.js";import"./select-BGnwGqnU.js";import"./chat-context-C6UT7ht1.js";import"./use-panel-navigate-C6Ga2vR8.js";import"./use-destination-route-CY15sZqw.js";import"./autosend-DI1ZpOT0.js";import"./thread-intent-q_RVjRN0.js";import"./slugify-CEUa2lfQ.js";import"./hooks-Bv30myGB.js";import"./use-mcp-client-Cw1fcLqm.js";import"./auth-DeD0YpKg.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-Bm_3HC4t.js";import"./task-board-By8eCqZc.js";import"./schema-BDy_4D7A.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-Bnfc4yEo.js";import"./use-ai-providers-BMexfNaB.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-C0NWoSQc.js";import"./thread-route-jI9qvJe_.js";import"./dialog-CyDGwxcX.js";import"./use-organization-settings-DucmPYOE.js";import"./automation-runs-CoIkXCsB.js";import"./useInfiniteQuery-DThUrotQ.js";import"./infiniteQueryObserver-CvFtTJPb.js";import"./use-connection-ClORxmw4.js";import"./table-DSIbUmyY.js";import"./empty-state-DfBha5W6.js";import"./use-infinite-scroll-Bw5rNIGx.js";import"./use-members-C23rfxcZ.js";import"./use-org-auth-client-DvlpnDFO.js";import"./use-automations-BgzAjzua.js";import"./useSuspenseInfiniteQuery-Dsg0_SX3.js";import"./avatar-CfO1mReu.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-DUxpBqXm.js";import"./markdown-Y6owwpHy.js";import"./monaco-editor-D3QSLeam.js";import"./editor-D7S6MtwI.js";import"./mcp-app-renderer-Cy31bAY0.js";import"./types-BB_Up-3A.js";import"./shell-layout-CTNVA2t4.js";import"./anchors-yqDzZN4K.js";import"./project-icon-DQTfNALl.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CF7nzIN2.js";import"./index-B_j4TgZF.js";import"./integration-icon-CFGOsRgH.js";import"./required-auth-layout-mSUodrzA.js";import"./use-org-sso-xd-5IiLc.js";import"./use-org-notice-DlsdC1WA.js";import"./use-navigate-to-agent-COVw0ub8.js";import"./use-mcp-prompts-CtjkJFfg.js";import"./form-BnUN8JhF.js";import"./label-DGsSvY2I.js";import"./input-DRjCNSPN.js";import"./file-type-icon--TvA6C0i.js";import"./drawer-CqSEztKC.js";import"./collection-search-7NUVJQfN.js";import"./tabs-BVFMEVzk.js";import"./toggle-group-WfRpP-dB.js";import"./task-route-B8aecmdq.js";import"./extract-connection-data-DkL3Oqhk.js";import"./metadata-dUsYcpuu.js";import"./connection-D885aDuM.js";import"./connection-card-Nc1w-XCq.js";import"./use-registry-connections-DBp-MS3e.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CuF3aDTE.js";import"./connection-form-helpers-B4IwDJJQ.js";import"./authenticate-and-persist-oauth-6UYdTwrd.js";import"./mcp-oauth-Bm9ijvfC.js";import"./collection-tabs-MvaIz7gt.js";import"./badge-GP_pc1i_.js";import"./use-file-configs-Dm3fOdMk.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-CgwRqOnX.js";import"./popover-DrJcYe9C.js";import"./github-icon-7BmoW2Y2.js";import"./get-initials-D-f_fDFw.js";import"./select-model-BNDe5FJr.js";import"./checkbox-ZsR1Bced.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-C46JPU0-.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-C-6LEj0t.js";import"./toolbar-B5cewwJb.js";import"./use-mcp-tools-DRBItGTD.js";import"./skill-preview-BswJw8Eb.js";import"./use-date-fns-locale-40K6SzJD.js";import"./alert-dialog-CFCsKBpN.js";import"./use-debounced-autosave-kf66WQZj.js";import"./search-input-L0lrukmF.js";import"./use-mcp-auth-status-kHe3lJRg.js";import"./switch-CPLM-IZy.js";import"./breadcrumb-CAKgWNOZ.js";import"./repository-import-picker-DN9Nn9yd.js";import"./repository-picker-s01uE4_E.js";import"./use-debounced-value-v41IOreQ.js";import"./use-secrets-PkTonlJ_.js";import"./client-icons-DHLFDmNu.js";import"./connect-layout-BLwdQBWt.js";import"./self-tool-result-DM7xixxP.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-BYunSel2.js";import"./use-tags-BuxETA7b.js";import"./toolbar-icon-button-BtBUZ8nA.js";import"./automation-list-row-Ba1cMA4W.js";import"./site-error--i37Vnuw.js";import"./cards-m7YgOjsz.js";function A(p){return typeof p=="string"&&p.trim()?p:void 0}function he(p,e){if(p){if(e)try{const t=new URL(p,e).href;return ue(t)}catch{return}return ue(p)}}function Ke(p){if(!p)return{};const e=A(p.title),t=A(p.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(p.description),image:A(p.image),favicon:A(p.favicon)}}function De(p){if(!p)return"example.com";try{return new URL(p).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function pe(p){const e=T.c(10),{src:t,className:a,iconSize:v}=p,l=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let d;return e[1]!==a||e[2]!==t?(d=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:a,style:m}),e[1]=a,e[2]=t,e[3]=d):d=e[3],d}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==l?(i=o.jsx(ye,{size:l}),e[5]=l,e[6]=i):i=e[6];let n;return e[7]!==a||e[8]!==i?(n=o.jsx("div",{className:a,style:s,children:i}),e[7]=a,e[8]=i,e[9]=n):n=e[9],n}function Ie(p){const e=T.c(33),{seo:t,host:a,path:v,t:l}=p;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let n;e[2]!==t.favicon?(n=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=n):n=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let d;e[5]!==a?(d=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:a}),e[5]=a,e[6]=d):d=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let r;e[8]!==a||e[9]!==v?(r=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[a,v]}),e[8]=a,e[9]=v,e[10]=r):r=e[10];let c;e[11]!==d||e[12]!==r?(c=o.jsxs("div",{className:"min-w-0",children:[d,r]}),e[11]=d,e[12]=r,e[13]=c):c=e[13];let h;e[14]!==n||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[n,c]}),e[14]=n,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==l?(y=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=l,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==l?(g=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=l,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(p){const e=T.c(26),{seo:t,host:a,t:v}=p;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #e2e8f0"},e[0]=l):l=e[0];let s;e[1]!==t.image?(s=o.jsx(pe,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n={color:"#8a9099"},e[4]=n):n=e[4];let m;e[5]!==a?(m=o.jsx("div",{className:"truncate text-[11px]",style:n,children:a}),e[5]=a,e[6]=m):m=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#1c2024"},e[7]=d):d=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let r;e[11]!==f?(r=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:d,children:f}),e[11]=f,e[12]=r):r=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==r?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,r,x]}),e[19]=x,e[20]=m,e[21]=r,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:l,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Be(p){const e=T.c(36),{seo:t,host:a,accent:v,t:l}=p;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let n;e[2]!==l?(n=l("sectionsEditor.seoPreview.chatCardHint"),e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:n}),e[4]=n,e[5]=m):m=e[5];const d=`3px solid ${v}`;let f;e[6]!==d?(f={background:"#fff",borderLeft:d},e[6]=d,e[7]=f):f=e[7];let r;e[8]!==t.image?(r=o.jsx(pe,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=r):r=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==l?(h=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=l,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==l?(u=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=l,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==a?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:a}),e[23]=a,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==r?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[r,j]}),e[29]=j,e[30]=f,e[31]=r,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(p){const e=T.c(39),{seo:t,host:a,accent:v,dark:l,t:s}=p,i=l?"#2b2d31":"#fff",n=l?"#00a8fc":"#1264a3",m=l?"#dbdee1":"#3b4045",d=l?"#949ba4":"#8a9099",f=l?"none":"1px solid #e2e8f0";let r;e[0]!==i||e[1]!==f?(r={background:i,border:f},e[0]=i,e[1]=f,e[2]=r):r=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==d?(x={color:d},e[5]=d,e[6]=x):x=e[6];let y;e[7]!==a||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:a}),e[7]=a,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==n?(u={color:n},e[10]=n,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(pe,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==r?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:r,children:_}),e[36]=_,e[37]=r,e[38]=P):P=e[38],P}function Ue(p){const e=T.c(21),{platform:t,seo:a,host:v,path:l,t:s}=p;let i;e[0]!==v||e[1]!==l||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==a||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:a,host:v,path:l,t:s}):t.layout==="card"?o.jsx(Le,{seo:a,host:v,path:l,t:s}):t.layout==="chat"?o.jsx(Be,{seo:a,host:v,path:l,accent:t.color,t:s}):o.jsx(Oe,{seo:a,host:v,path:l,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=l,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=a,e[6]=s,e[7]=i):i=e[7];const n=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let d;e[10]!==t.labelKey||e[11]!==s?(d=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=d):d=e[12];let f;e[13]!==d?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:d}),e[13]=d,e[14]=f):f=e[14];let r;e[15]!==m||e[16]!==f?(r=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=r):r=e[17];let c;return e[18]!==n||e[19]!==r?(c=o.jsxs("div",{children:[r,n]}),e[18]=n,e[19]=r,e[20]=c):c=e[20],c}function Ae(p){const e=T.c(18),{seo:t,url:a,path:v}=p,l=v===void 0?"/":v,s=ve();let i,n,m;if(e[0]!==t||e[1]!==a){const u=Ke(t);i=u,n=he(u.image,a),m=he(u.favicon,a),e[0]=t,e[1]=a,e[2]=i,e[3]=n,e[4]=m}else i=e[2],n=e[3],m=e[4];let d;e[5]!==i||e[6]!==n||e[7]!==m?(d={...i,image:n,favicon:m},e[5]=i,e[6]=n,e[7]=m,e[8]=d):d=e[8];const f=d;let r;e[9]!==a?(r=De(a),e[9]=a,e[10]=r):r=e[10];const c=r,h=l==="/"?"":l;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function Yi(p){const e=T.c(70),{orgSlug:t,virtualMcpId:a,branch:v,decofile:l,meta:s,target:i,previewBaseUrl:n,onSaved:m,onEditDefaultSeo:d,onBack:f}=p,r=ve(),c=Ne(l,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=Re({orgSlug:t,virtualMcpId:a,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?we(U)??void 0:void 0,E=S??be??h??{},F=c?Ce(E,c):null,z=F&&(!M||_e(U))?Ee(F,s):null;let G;e[0]!==s?(G=Pe(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==l||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Te(l,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=l,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const de=C;g(de),w(de)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const re=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const le=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,K=i.kind==="page"?i.path:"/";let Q;e[19]!==K||e[20]!==n||e[21]!==i.kind?(Q=i.kind==="page"&&n?He(K,n):n??null,e[19]=K,e[20]=n,e[21]=i.kind,e[22]=Q):Q=e[22];const ae=Q;let X;e[23]!==c||e[24]!==r||e[25]!==i.kind?(X=i.kind==="site"?r("sectionsEditor.seoEditor.noSiteSeoBlock"):r(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=r,e[25]=i.kind,e[26]=X):X=e[26];const ne=X,Y=M&&c,me=i.kind==="site"&&c&&z;let D;e[27]!==ce||e[28]!==r||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:r("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",r("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=r,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{className:"size-3.5 text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==d||e[35]!==r||e[36]!==i.kind?(I=i.kind==="page"&&d&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:d,children:[o.jsx(fe,{size:14}),r("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=d,e[35]=r,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let B;e[41]!==L||e[42]!==D?(B=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=B):B=e[43];let O;e[44]!==F||e[45]!==le||e[46]!==re||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ne||e[51]!==b||e[52]!==se||e[53]!==K||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ae||e[58]!==c||e[59]!==z||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==r?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ne}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:r("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(ze,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:re,onBumpFormKey:le})]}):z&&F&&o.jsx(Fe,{schema:z,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ae,path:K})})})]}),e[44]=F,e[45]=le,e[46]=re,e[47]=oe,e[48]=U,e[49]=E,e[50]=ne,e[51]=b,e[52]=se,e[53]=K,e[54]=_,e[55]=w,e[56]=ie,e[57]=ae,e[58]=c,e[59]=z,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=r,e[66]=O):O=e[66];let Z;return e[67]!==B||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[B,O]}),e[67]=B,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(p){return p+1}function Ge(p){return p+1}function He(p,e){try{return new URL(p,e).href}catch{return e}}function Ve(p,e){const t=e.__resolveType,a=p.__resolveType;if(typeof t=="string"&&typeof a=="string"&&t!==a)return{...e};const v={...p};for(const[l,s]of Object.entries(e))l!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[l]=s));return v}export{Yi as SeoEditor};
@@ -1 +0,0 @@
1
- import{c as n,J as a,j as o,G as c,l as d,Y as f,b$ as x,O as h}from"./index-y6Z5iMfg.js";import{i as u}from"./settings-sidebar-BvIIdmkC.js";import{T as l}from"./toolbar-B5cewwJb.js";import{S as j,M as b}from"./shell-controls-nVElTnLJ.js";import{u as S}from"./use-status-sounds-C-6LEj0t.js";import"./ChevronUp-B0KEDz5f.js";import"./ChevronRight-B76sbAXC.js";import"./TrendUp01-fHRYAiew.js";import"./toolbar-icon-button-BtBUZ8nA.js";import"./Check-C1wq38_E.js";import"./ChevronSelectorVertical-C4wJ3zDR.js";import"./Plus-Bac7Bl-V.js";import"./command-CF7nzIN2.js";import"./index-B_j4TgZF.js";import"./dialog-CyDGwxcX.js";import"./SearchMd-hxPQERkg.js";import"./drawer-CqSEztKC.js";import"./popover-DrJcYe9C.js";import"./agent-icon-6EllA70W.js";import"./AlertCircle-Df7Uu4Sr.js";import"./Tool01-CmpQe3MS.js";import"./ArrowUp-DmWBbOjK.js";import"./ArrowLeft-Ce4LVTaQ.js";import"./Tool02-BAA6OFl0.js";import"./ArrowRight-CuO69upc.js";import"./ZoomOut-DhJWoynj.js";import"./Users03-B4Km0_9u.js";import"./CheckCircle-DWvslkKl.js";import"./DotsVertical-CBmzJDPB.js";import"./UserSquare-CXhk4rLY.js";import"./Copy01-rsN5AnPv.js";import"./CreditCard01-Cqs_Biv7.js";import"./Download01-zZEPtQ0U.js";import"./Settings02-t15FjJbr.js";import"./Eye-DFgd5114.js";import"./Share07-CJrTonmW.js";import"./GitBranch01-B7iymaqC.js";import"./Globe01-Df6dZmsR.js";import"./XClose-DvenHyNp.js";import"./HardDrive-CiahcooN.js";import"./Image01-CMpSR3RQ.js";import"./Key01-t3bX5YI3.js";import"./Link01-pX5C3rEv.js";import"./LinkExternal01-CzRiacvQ.js";import"./Monitor01-jzbehxNG.js";import"./Sun-vdviKSpi.js";import"./Package-CiAH049d.js";import"./Palette-CmMvG40G.js";import"./Play-k9_JCuZW.js";import"./SearchLg-iYej-M-S.js";import"./Shield01-DS-tpugO.js";import"./Stars01-ByE0-f1z.js";import"./Trash01-C6vCLvEw.js";import"./Upload01-lE597uPz.js";import"./User01-BPodfm7s.js";import"./Users01-Dgbd4CM_.js";import"./XCircle-BK1898xU.js";import"./Zap-nPZGKdXf.js";import"./project-icon-DQTfNALl.js";import"./use-mcp-client-Cw1fcLqm.js";import"./auth-DeD0YpKg.js";import"./use-virtual-mcp-Bnfc4yEo.js";import"./github-repo-CTPv5ZM2.js";import"./create-organization-dialog-gO5G25gp.js";import"./alert-dialog-CFCsKBpN.js";import"./form-BnUN8JhF.js";import"./label-DGsSvY2I.js";import"./input-DRjCNSPN.js";import"./use-destination-route-CY15sZqw.js";import"./anchors-yqDzZN4K.js";import"./use-join-requests-DbtrL0Pl.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-C0NWoSQc.js";import"./decopilot-sse-pool-Bm_3HC4t.js";import"./task-board-By8eCqZc.js";import"./schema-BDy_4D7A.js";import"./backoff-CrEUbyZT.js";function g(){const t=n.c(3),r=a(),{org:p}=c();S(p.slug);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(f,{children:o.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:o.jsx(x,{value:"p-0",children:o.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:o.jsx(h,{})})})})}),t[0]=e):e=t[0];const m=e;if(r){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:m}),t[1]=s):s=t[1],s}let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex-1 min-h-0 p-1.5",children:o.jsx("div",{className:d("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:m})}),t[2]=i):i=t[2],i}function Dt(){const t=n.c(10),r=a();let p;t[0]!==r?(p=r&&o.jsxs(l.Header,{children:[o.jsx(l.LeftColumn,{children:o.jsx(j,{})}),o.jsx(l.CenterSlot,{}),o.jsx(l.RightColumn,{children:o.jsx("span",{})})]}),t[0]=r,t[1]=p):p=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(g,{}),t[2]=e):e=t[2];let m;t[3]!==p?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[p,e]}),t[3]=p,t[4]=m):m=t[4];let i;t[5]!==r?(i=r&&o.jsx(b,{renderSidebar:v}),t[5]=r,t[6]=i):i=t[6];let s;return t[7]!==m||t[8]!==i?(s=o.jsxs(l.Provider,{children:[m,i]}),t[7]=m,t[8]=i,t[9]=s):s=t[9],s}function v(t){const{onClose:r}=t;return o.jsx(u,{onClose:r})}export{Dt as default};
@@ -1 +0,0 @@
1
- import{c as j,Z as Ae,H as je,l as R,j as n,b as O,r as T,B as me,a as M,t as L,w as Re,c0 as qe,m as De,K as Le,c1 as Me,G as de,J as Fe,_ as oe,d as He,s as Ee,a1 as ve,a2 as Se,a4 as ke,o as F,a_ as ye,L as Ue,a6 as fe,a5 as le,c2 as Ve,c3 as Be,z as Ge,c4 as Je,f as Ke,k as We,c5 as Qe,c6 as Ye,c7 as Ze,a0 as Xe}from"./index-y6Z5iMfg.js";import{t as es}from"./ChevronUp-B0KEDz5f.js";import{i as ss}from"./ChevronRight-B76sbAXC.js";import{g as ts}from"./TrendUp01-fHRYAiew.js";import{I as ns,T as Ne}from"./toolbar-icon-button-BtBUZ8nA.js";import{i as Q}from"./Check-C1wq38_E.js";import{i as as}from"./ChevronSelectorVertical-C4wJ3zDR.js";import{s as is}from"./Plus-Bac7Bl-V.js";import{c as he,e as W,d as Y,b as rs,C as os,a as ls}from"./command-CF7nzIN2.js";import{D as cs,d as ds,a as gs,b as us}from"./drawer-CqSEztKC.js";import{P as ms,a as fs,b as hs}from"./popover-DrJcYe9C.js";import{A as ps,n as xs,e as bs,aU as js,aV as vs}from"./agent-icon-6EllA70W.js";import{u as $e,P as Ce}from"./project-icon-DQTfNALl.js";import{C as Ss}from"./create-organization-dialog-gO5G25gp.js";import{s as ks}from"./XClose-DvenHyNp.js";import{u as ys}from"./use-destination-route-CY15sZqw.js";import{L as Z}from"./anchors-yqDzZN4K.js";import{e as Ns}from"./use-virtual-mcp-Bnfc4yEo.js";import{i as $s}from"./ArrowLeft-Ce4LVTaQ.js";import{t as Cs,b as pe}from"./Users03-B4Km0_9u.js";import{i as ws}from"./CreditCard01-Cqs_Biv7.js";import{i as _s}from"./GitBranch01-B7iymaqC.js";import{i as zs}from"./HardDrive-CiahcooN.js";import{i as Ts}from"./Key01-t3bX5YI3.js";import{n as Is}from"./LinkExternal01-CzRiacvQ.js";import{t as Os}from"./Stars01-ByE0-f1z.js";import{s as Ps}from"./User01-BPodfm7s.js";import{i as As}from"./Zap-nPZGKdXf.js";import{u as Rs}from"./use-join-requests-DbtrL0Pl.js";function qs(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!Ae(e)}function ge(){const{state:t,isMobile:e}=je();return t==="collapsed"&&!e}function Ds(t){let e=0;for(let d=0;d<t.length;d++)e=t.charCodeAt(d)+((e<<5)-e);const s=Math.abs(e)%360;return{backgroundColor:`hsl(${s} 55% 70%)`,color:`hsl(${s} 55% 20%)`}}function ue(t){const e=j.c(13),{org:s,size:d}=t,r=d===void 0?"sm":d,a=r==="xs"?"size-5":"size-6",l=r==="xs"?"text-[9px]":"text-xs";let i;e[0]!==a?(i=R(a,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=a,e[1]=i):i=e[1];let o;e[2]!==s.logo||e[3]!==s.name?(o=s.logo?void 0:Ds(s.name),e[2]=s.logo,e[3]=s.name,e[4]=o):o=e[4];let c;e[5]!==s.logo||e[6]!==s.name||e[7]!==l?(c=s.logo?n.jsx("img",{src:s.logo,alt:"",className:"size-full object-cover"}):n.jsx("span",{className:R("font-semibold leading-none",l),children:s.name.slice(0,2).toUpperCase()}),e[5]=s.logo,e[6]=s.name,e[7]=l,e[8]=c):c=e[8];let g;return e[9]!==i||e[10]!==o||e[11]!==c?(g=n.jsx("div",{className:i,style:o,children:c}),e[9]=i,e[10]=o,e[11]=c,e[12]=g):g=e[12],g}function Ls({invitation:t,onChanged:e}){const s=O(),[d,r]=T.useState(!1),a=t.organizationName??s("header.orgSwitcher.unknownOrganization"),l=async()=>{r(!0);try{const c=await M.organization.acceptInvitation({invitationId:t.id});if(c.error){L.error(c.error.message),r(!1);return}}catch{L.error(s("header.orgSwitcher.failedToAcceptInvitation")),r(!1);return}L.success(s("header.orgSwitcher.joined",{name:a})),Re();let o;try{o=(await M.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=o?`/${o}`:"/"},i=async()=>{r(!0);try{const o=await M.organization.rejectInvitation({invitationId:t.id});if(o.error){L.error(o.error.message),r(!1);return}L.success(s("header.orgSwitcher.invitationDeclined")),r(!1),e()}catch{L.error(s("header.orgSwitcher.failedToDeclineInvitation")),r(!1)}};return n.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[n.jsx(ue,{org:{name:a},size:"sm"}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"truncate text-sm font-medium",children:a}),n.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[n.jsx(me,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:l,disabled:d,children:s("header.orgSwitcher.accept")}),n.jsx(me,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:i,disabled:d,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:a}),children:n.jsx(ks,{size:14})})]})]})}function we(){const t=T.useContext(qe),{data:e,refetch:s}=t.hooks.useListUserInvitations();return{invitations:(e??[]).filter(r=>r.status==="pending"&&new Date(r.expiresAt)>new Date),refetch:()=>s?.()}}function Ms(t){const e=j.c(13),s=t.trim(),{data:d}=M.useSession(),r=d?.user?.id??"",a=s.length>0&&!!r,l=Le.projectSearch(r,s);let i;e[0]!==s?(i=async k=>{const{signal:v}=k,S=await fetch(`/api/_me/projects/search?q=${encodeURIComponent(s)}`,{signal:v});if(!S.ok)throw new Error(`Project search failed: ${S.status}`);return await S.json()},e[0]=s,e[1]=i):i=e[1];let o;e[2]!==a||e[3]!==l||e[4]!==i?(o={queryKey:l,queryFn:i,enabled:a,placeholderData:Me,staleTime:3e4,retry:!1},e[2]=a,e[3]=l,e[4]=i,e[5]=o):o=e[5];const{data:c,isFetching:g,isPlaceholderData:u,isError:f}=De(o);let m;e[6]!==c?.items?(m=c?.items??[],e[6]=c?.items,e[7]=m):m=e[7];const h=a&&g,b=a&&u;let x;return e[8]!==f||e[9]!==m||e[10]!==h||e[11]!==b?(x={hits:m,isSearching:h,isStale:b,isError:f},e[8]=f,e[9]=m,e[10]=h,e[11]=b,e[12]=x):x=e[12],x}function xe(t){const e=j.c(15),{id:s,label:d,createLabel:r,onCreate:a}=t;let l;e[0]!==s||e[1]!==d?(l=n.jsx("span",{id:s,className:"truncate",children:d}),e[0]=s,e[1]=d,e[2]=l):l=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(is,{size:14}),e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==a?(o=n.jsx(ve,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":r,className:"-my-1 shrink-0 cursor-pointer rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",onClick:a,children:i})}),e[4]=r,e[5]=a,e[6]=o):o=e[6];let c;e[7]!==r?(c=n.jsx(Se,{side:"right",children:r}),e[7]=r,e[8]=c):c=e[8];let g;e[9]!==o||e[10]!==c?(g=n.jsxs(ke,{children:[o,c]}),e[9]=o,e[10]=c,e[11]=g):g=e[11];let u;return e[12]!==l||e[13]!==g?(u=n.jsxs("div",{className:"flex w-full items-center justify-between gap-2 px-2 py-1.5 text-xs font-medium text-muted-foreground",children:[l,g]}),e[12]=l,e[13]=g,e[14]=u):u=e[14],u}const X="min-h-9 items-center",A={allProjects:"scope:__all__",project:t=>`scope:${t}`,org:t=>`org:${t}`,foreignProject:(t,e)=>`travel:${t}:${e}`};function Fs(t){const e=j.c(9),{active:s,rows:d}=t,r=O();let a,l,i;if(e[0]!==s||e[1]!==d||e[2]!==r){i=Symbol.for("react.early_return_sentinel");e:{const c=d.get(s);if(c?.kind!=="travel"){i=null;break e}a="border-t border-border px-3 py-2 text-xs text-warning",l=r("sidebar.picker.verbTravel",{name:c.label})}e[0]=s,e[1]=d,e[2]=r,e[3]=a,e[4]=l,e[5]=i}else a=e[3],l=e[4],i=e[5];if(i!==Symbol.for("react.early_return_sentinel"))return i;let o;return e[6]!==a||e[7]!==l?(o=n.jsx("div",{className:a,children:l}),e[6]=a,e[7]=l,e[8]=o):o=e[8],o}function Hs(t){const e=j.c(27),{onClose:s,onCreateOrg:d,className:r}=t,a=O(),l=T.useId(),i=T.useId(),o=He(),{org:c}=de(),{scopeId:g,projects:u,setScope:f}=$e(),{hasMore:m}=Ns(),[h,b]=T.useState(""),[x,k]=T.useState(A.allProjects),v=T.useDeferredValue(h);let S;e[0]!==v?(S=v.trim(),e[0]=v,e[1]=S):S=e[1];const y=S,$=y.length>0,{data:w}=Ee(),{invitations:C,refetch:_}=we();let N;e[2]!==c.slug?(N=(p,z)=>p.slug===c.slug?-1:z.slug===c.slug?1:0,e[2]=c.slug,e[3]=N):N=e[3];const I=(w??[]).slice().sort(N),{hits:P,isSearching:H,isStale:Ie,isError:ee}=Ms($?y:""),se=$?I.filter(p=>{const z=y.toLowerCase();return p.name.toLowerCase().includes(z)||p.slug.toLowerCase().includes(z)}):[],te=ys();let E;e[4]!==te?(E=te.startsWith("/$org/settings"),e[4]=te,e[5]=E):E=e[5];const U=E,q=new Map;let V;e[6]!==U||e[7]!==o||e[8]!==s||e[9]!==c.slug||e[10]!==f?(V=p=>{F("scope_set",{scoped:p!==null,fromSettings:U}),U?o({to:"/$org",params:{org:c.slug},search:{virtualmcpid:p??void 0}}):f(p),s()},e[6]=U,e[7]=o,e[8]=s,e[9]=c.slug,e[10]=f,e[11]=V):V=e[11];const ne=V;let B;e[12]!==o||e[13]!==s?(B=(p,z)=>{F("org_project_travel",{scoped:!!z}),o({to:"/$org",params:{org:p},search:z?{virtualmcpid:z}:{}}),s()},e[12]=o,e[13]=s,e[14]=B):B=e[14];const ae=B;let G;e[15]!==o||e[16]!==s||e[17]!==c.slug?(G=()=>{F("picker_new_project"),o({to:"/$org/agents/{-$panel}",params:{org:c.slug,panel:void 0},search:{virtualmcpid:void 0}}),s()},e[15]=o,e[16]=s,e[17]=c.slug,e[18]=G):G=e[18];const Oe=G;q.set(A.allProjects,{kind:"scope",label:a("sidebar.scope.allProjects")});let D;e[19]!==a?(D=a("sidebar.picker.searchPlaceholder"),e[19]=a,e[20]=D):D=e[20];let J;e[21]!==h||e[22]!==D?(J=n.jsx(ls,{value:h,onValueChange:b,placeholder:D}),e[21]=h,e[22]=D,e[23]=J):J=e[23];const ie=rs,Pe="max-h-none min-h-0 flex-1",re=$?n.jsxs(n.Fragment,{children:[ee&&n.jsx(he,{children:a("sidebar.picker.searchFailed")}),!ee&&!H&&P.length===0&&se.length===0&&n.jsx(he,{children:a("sidebar.picker.noMatches",{query:y})}),!ee&&P.length>0&&n.jsx(W,{heading:a("sidebar.picker.projectsHeading"),className:R(Ie&&"opacity-50"),children:P.map(p=>n.jsx(Es,{hit:p,currentOrgSlug:c.slug,scopeId:g,rows:q,onScope:ne,onTravel:ae},`${p.orgSlug}:${p.id}`))}),se.length>0&&n.jsx(W,{heading:a("sidebar.picker.orgsHeading"),children:se.map(p=>n.jsx(be,{candidate:p,currentOrgSlug:c.slug,rows:q,onTravel:ae,onClose:s},p.id))})]}):n.jsxs(n.Fragment,{children:[n.jsx(xe,{id:l,label:a("sidebar.picker.projectsHeading"),createLabel:a("sidebar.picker.newProject"),onCreate:Oe}),n.jsxs(W,{"aria-labelledby":l,children:[n.jsxs(Y,{value:A.allProjects,className:X,onSelect:()=>ne(null),children:[n.jsx("span",{className:"min-w-0 flex-1 truncate",children:a("sidebar.scope.allProjects")}),g===null&&n.jsx(Q,{size:14})]}),u.map(p=>{const z=A.project(p.id);return q.set(z,{kind:"scope",label:p.title}),n.jsxs(Y,{value:z,className:X,onSelect:()=>ne(p.id),children:[n.jsx(Ce,{icon:p.icon,name:p.title}),n.jsx("span",{className:"min-w-0 flex-1 truncate",children:p.title}),g===p.id&&n.jsx(Q,{size:14})]},p.id)}),m&&n.jsx("p",{className:"px-3 py-1.5 text-xs text-muted-foreground",children:a("sidebar.picker.moreExist")})]}),n.jsx(xe,{id:i,label:a("sidebar.picker.orgsHeading"),createLabel:a("sidebar.picker.newOrganization"),onCreate:d}),n.jsxs(W,{"aria-labelledby":i,children:[C.map(p=>n.jsx(Ls,{invitation:p,onChanged:_},p.id)),I.map(p=>n.jsx(be,{candidate:p,currentOrgSlug:c.slug,rows:q,onTravel:ae,onClose:s},p.id))]})]});let K;return e[24]!==ie||e[25]!==re?(K=n.jsx(ie,{className:Pe,children:re}),e[24]=ie,e[25]=re,e[26]=K):K=e[26],n.jsxs(os,{shouldFilter:!1,value:x,onValueChange:k,className:r,children:[J,K,n.jsx(Fs,{active:x,rows:q})]})}function be(t){const e=j.c(22),{candidate:s,currentOrgSlug:d,rows:r,onTravel:a,onClose:l}=t,i=s.slug===d;let o;e[0]!==s.name||e[1]!==s.slug||e[2]!==i||e[3]!==r?(o=A.org(s.slug),r.set(o,{kind:i?"scope":"travel",label:s.name}),e[0]=s.name,e[1]=s.slug,e[2]=i,e[3]=r,e[4]=o):o=e[4];let c;e[5]!==s.slug||e[6]!==i||e[7]!==l||e[8]!==a?(c=()=>i?l():a(s.slug),e[5]=s.slug,e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9];let g;e[10]!==s?(g=n.jsx(ue,{org:s,size:"xs"}),e[10]=s,e[11]=g):g=e[11];let u;e[12]!==s.name?(u=n.jsx("span",{className:"min-w-0 flex-1 truncate",children:s.name}),e[12]=s.name,e[13]=u):u=e[13];let f;e[14]!==i?(f=i&&n.jsx(Q,{size:14}),e[14]=i,e[15]=f):f=e[15];let m;return e[16]!==c||e[17]!==g||e[18]!==u||e[19]!==f||e[20]!==o?(m=n.jsxs(Y,{value:o,className:X,onSelect:c,children:[g,u,f]}),e[16]=c,e[17]=g,e[18]=u,e[19]=f,e[20]=o,e[21]=m):m=e[21],m}function Es(t){const e=j.c(30),{hit:s,currentOrgSlug:d,scopeId:r,rows:a,onScope:l,onTravel:i}=t,o=s.orgSlug===d;let c;e[0]!==s.id||e[1]!==s.orgSlug||e[2]!==s.title||e[3]!==o||e[4]!==a?(c=o?A.project(s.id):A.foreignProject(s.orgSlug,s.id),a.set(c,{kind:o?"scope":"travel",label:s.title}),e[0]=s.id,e[1]=s.orgSlug,e[2]=s.title,e[3]=o,e[4]=a,e[5]=c):c=e[5];let g;e[6]!==s.id||e[7]!==s.orgSlug||e[8]!==o||e[9]!==l||e[10]!==i?(g=()=>o?l(s.id):i(s.orgSlug,s.id),e[6]=s.id,e[7]=s.orgSlug,e[8]=o,e[9]=l,e[10]=i,e[11]=g):g=e[11];let u;e[12]!==s.icon||e[13]!==s.title?(u=n.jsx(Ce,{icon:s.icon,name:s.title}),e[12]=s.icon,e[13]=s.title,e[14]=u):u=e[14];let f;e[15]!==s.title?(f=n.jsx("span",{className:"min-w-0 flex-1 truncate",children:s.title}),e[15]=s.title,e[16]=f):f=e[16];let m;e[17]!==s.orgName?(m=n.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:s.orgName}),e[17]=s.orgName,e[18]=m):m=e[18];let h;e[19]!==s.id||e[20]!==o||e[21]!==r?(h=o&&r===s.id&&n.jsx(Q,{size:14}),e[19]=s.id,e[20]=o,e[21]=r,e[22]=h):h=e[22];let b;return e[23]!==g||e[24]!==u||e[25]!==f||e[26]!==m||e[27]!==h||e[28]!==c?(b=n.jsxs(Y,{value:c,className:X,onSelect:g,children:[u,f,m,h]}),e[23]=g,e[24]=u,e[25]=f,e[26]=m,e[27]=h,e[28]=c,e[29]=b):b=e[29],b}function _e(t){const e=j.c(32),{collapsed:s,onNavigate:d}=t,r=s===void 0?!1:s,a=O(),{org:l}=de(),{project:i}=$e(),{invitations:o}=we(),[c,g]=T.useState(!1),[u,f]=T.useState(!1),m=Fe();let h;if(e[0]!==r||e[1]!==o.length||e[2]!==l||e[3]!==i||e[4]!==a){const _=i?a("sidebar.picker.projectInOrg",{project:i.title,org:l.name}):l.name;let N;e[6]!==l||e[7]!==i?(N=i?n.jsx(ps,{icon:i.icon,name:i.title,size:"xs",className:"shrink-0"}):n.jsx(ue,{org:l,size:"sm"}),e[6]=l,e[7]=i,e[8]=N):N=e[8];let I;e[9]!==o.length?(I=o.length>0&&n.jsx("span",{className:"absolute -right-1 -top-1 size-2.5 rounded-full bg-destructive ring-2 ring-background"}),e[9]=o.length,e[10]=I):I=e[10];let P;e[11]!==N||e[12]!==I?(P=n.jsxs("div",{className:"relative inline-flex shrink-0",children:[N,I]}),e[11]=N,e[12]=I,e[13]=P):P=e[13];const H=P;h=r?n.jsx(oe,{tooltip:_,"data-tour":Z.switcher,children:H}):n.jsxs("button",{type:"button","data-tour":Z.switcher,"aria-label":a("sidebar.picker.ariaLabel",{name:_}),className:R("flex min-w-0 flex-1 items-center gap-2 rounded-lg py-1.5 pl-1 pr-1.5 text-left md:h-[34px] md:py-0","[transition:background-color_180ms_ease] hover:bg-sidebar-accent",ns),children:[H,n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:i?i.title:l.name}),n.jsx(as,{size:14,className:"shrink-0 text-muted-foreground"})]}),e[0]=r,e[1]=o.length,e[2]=l,e[3]=i,e[4]=a,e[5]=h}else h=e[5];const b=h,x=m?"min-h-0 flex-1":"max-h-[min(560px,70dvh,var(--radix-popover-content-available-height,70dvh))]";let k;e[14]!==d?(k=()=>{g(!1),d?.()},e[14]=d,e[15]=k):k=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{g(!1),f(!0)},e[16]=v):v=e[16];let S;e[17]!==x||e[18]!==k?(S=n.jsx(Hs,{onClose:k,onCreateOrg:v,className:x}),e[17]=x,e[18]=k,e[19]=S):S=e[19];const y=S;let $;e[20]!==r||e[21]!==y||e[22]!==m||e[23]!==c||e[24]!==a||e[25]!==b?($=m?n.jsxs(cs,{open:c,onOpenChange:g,direction:"bottom",children:[n.jsx(ds,{asChild:!0,children:b}),n.jsxs(gs,{className:"flex max-h-[85dvh] flex-col p-0",children:[n.jsx(us,{className:"sr-only",children:a("sidebar.picker.title")}),y]})]}):n.jsxs(ms,{open:c,onOpenChange:g,children:[n.jsx(fs,{asChild:!0,children:b}),n.jsx(hs,{side:r?"right":"bottom",align:"start",className:"w-[min(340px,calc(100vw-2rem))] p-0",children:y})]}),e[20]=r,e[21]=y,e[22]=m,e[23]=c,e[24]=a,e[25]=b,e[26]=$):$=e[26];let w;e[27]!==u?(w=n.jsx(Ss,{open:u,onOpenChange:f}),e[27]=u,e[28]=w):w=e[28];let C;return e[29]!==$||e[30]!==w?(C=n.jsxs(n.Fragment,{children:[$,w]}),e[29]=$,e[30]=w,e[31]=C):C=e[31],C}const ze=16;function Pt(){const t=j.c(7),e=ge(),s=qs();let d;t[0]!==e?(d=n.jsx(_e,{collapsed:e}),t[0]=e,t[1]=d):d=t[1];let r;t[2]!==s?(r=!s&&n.jsx(Vs,{}),t[2]=s,t[3]=r):r=t[3];let a;return t[4]!==d||t[5]!==r?(a=n.jsxs(n.Fragment,{children:[d,r]}),t[4]=d,t[5]=r,t[6]=a):a=t[6],a}function Us(t){const e=j.c(12),{onClose:s}=t,d=O();let r;e[0]!==s?(r=n.jsx(_e,{onNavigate:s}),e[0]=s,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex-1"}),e[2]=a):a=e[2];let l;e[3]!==d?(l=d("sidebar.header.closeSidebar"),e[3]=d,e[4]=l):l=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(ye,{size:ze}),e[5]=i):i=e[5];let o;e[6]!==s||e[7]!==l?(o=n.jsx(Ne,{onClick:s,"aria-label":l,children:i}),e[6]=s,e[7]=l,e[8]=o):o=e[8];let c;return e[9]!==r||e[10]!==o?(c=n.jsxs(n.Fragment,{children:[r,a,o]}),e[9]=r,e[10]=o,e[11]=c):c=e[11],c}function Vs(){const t=j.c(12),e=O(),s=ge(),{toggleSidebar:d}=je();let r;t[0]!==e?(r=e("sidebar.header.toggleSidebar"),t[0]=e,t[1]=r):r=t[1];const a=r;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(ye,{size:ze}),t[2]=l):l=t[2];let i;t[3]!==a||t[4]!==d?(i=n.jsx(ve,{asChild:!0,children:n.jsx(Ne,{"aria-label":a,onClick:d,className:"shrink-0 rounded-lg md:size-[34px] group-data-[state=collapsed]/sidebar:mx-auto",children:l})}),t[3]=a,t[4]=d,t[5]=i):i=t[5];const o=!s;let c;t[6]!==a||t[7]!==o?(c=n.jsx(Se,{side:"right",hidden:o,children:a}),t[6]=a,t[7]=o,t[8]=c):c=t[8];let g;return t[9]!==i||t[10]!==c?(g=n.jsxs(ke,{children:[i,c]}),t[9]=i,t[10]=c,t[11]=g):g=t[11],g}function ce(t){const e=j.c(30),{icon:s,label:d,isActive:r,link:a,onSelect:l,ariaLabel:i,className:o,dataTour:c,children:g}=t,u=r===void 0?!1:r,f=ge(),m=i??d,h=f?m:void 0;let b;e[0]!==o||e[1]!==c||e[2]!==u||e[3]!==h?(b={isActive:u,tooltip:h,className:o,"data-tour":c},e[0]=o,e[1]=c,e[2]=u,e[3]=h,e[4]=b):b=e[4];const x=b;let k;e[5]!==d?(k=n.jsx("span",{className:"truncate",children:d}),e[5]=d,e[6]=k):k=e[6];let v;e[7]!==s||e[8]!==k?(v=n.jsxs(n.Fragment,{children:[s,k]}),e[7]=s,e[8]=k,e[9]=v):v=e[9];const S=v;if(a){const w=u?"page":void 0;let C;e[10]!==S||e[11]!==a||e[12]!==m||e[13]!==l||e[14]!==w?(C=n.jsx(Ue,{...a,"aria-label":m,"aria-current":w,onClick:l,children:S}),e[10]=S,e[11]=a,e[12]=m,e[13]=l,e[14]=w,e[15]=C):C=e[15];let _;e[16]!==x||e[17]!==C?(_=n.jsx(oe,{asChild:!0,...x,children:C}),e[16]=x,e[17]=C,e[18]=_):_=e[18];let N;return e[19]!==g||e[20]!==_?(N=n.jsxs(fe,{children:[_,g]}),e[19]=g,e[20]=_,e[21]=N):N=e[21],N}let y;e[22]!==S||e[23]!==m||e[24]!==l||e[25]!==x?(y=n.jsx(oe,{...x,"aria-label":m,onClick:l,children:S}),e[22]=S,e[23]=m,e[24]=l,e[25]=x,e[26]=y):y=e[26];let $;return e[27]!==g||e[28]!==y?($=n.jsxs(fe,{children:[y,g]}),e[27]=g,e[28]=y,e[29]=$):$=e[29],$}function Bs(t){const e=j.c(5),{label:s,link:d,onSelect:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx($s,{size:16}),e[0]=a):a=e[0];let l;return e[1]!==s||e[2]!==d||e[3]!==r?(l=n.jsx("div",{className:"-mx-2 border-b border-sidebar-border px-2 py-2",children:n.jsx(le,{className:"shrink-0",children:n.jsx(ce,{icon:a,label:s,className:"text-sidebar-foreground/70",link:d,onSelect:r})})}),e[1]=s,e[2]=d,e[3]=r,e[4]=l):l=e[4],l}function Gs(){const t=j.c(8),e=O(),{capabilities:s,isPrivileged:d,loading:r,error:a}=Ve(),l=Rs().length,i=Be();let o;return t[0]!==s||t[1]!==a||t[2]!==d||t[3]!==l||t[4]!==r||t[5]!==e||t[6]!==i?(o=[{key:"account",label:"",items:[{key:"profile",label:e("settings.nav.profile"),icon:n.jsx(Ps,{size:14}),to:"/$org/settings/profile"}]},{key:"organization",label:e("settings.nav.organization"),items:[{key:"general",label:e("settings.nav.general"),icon:n.jsx(Cs,{size:14}),to:"/$org/settings/general",requires:"org:manage"},{key:"billing",label:e("settings.nav.billing"),icon:n.jsx(ws,{size:14}),to:"/$org/settings/ai-providers",group:"billing"},{key:"connect",label:e("settings.nav.connect"),icon:n.jsx(Is,{size:14}),to:"/$org/settings/connect",group:"connect"},{key:"tasks",label:e("settings.nav.tasks"),icon:n.jsx(xs,{size:14}),to:"/$org/settings/task-board",requires:"org:manage"}]},{key:"build",label:e("settings.nav.build"),items:[{key:"repositories",label:e("settings.nav.repositories"),icon:n.jsx(_s,{size:14}),to:"/$org/settings/repositories",requires:"file-configs:manage"},{key:"connections",label:e("settings.nav.connections"),icon:n.jsx(bs,{size:14}),to:"/$org/settings/connections"},{key:"agents",label:e("settings.nav.agents"),icon:n.jsx(pe,{size:14}),to:"/$org/settings/agents"},{key:"automations",label:e("settings.nav.automations"),icon:n.jsx(As,{size:14}),to:"/$org/settings/automations",requires:"automations:manage"},{key:"skills",label:e("settings.nav.skills"),icon:n.jsx(Os,{size:14}),to:"/$org/settings/skills"}]},{key:"manage",label:e("settings.nav.manage"),items:[{key:"monitor",label:e("settings.nav.monitor"),icon:n.jsx(js,{size:14}),to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:e("settings.nav.members"),icon:n.jsx(pe,{size:14}),to:"/$org/settings/members",group:"members",badge:l}]},{key:"advanced",label:e("settings.nav.advanced"),collapsible:!0,items:[{key:"secrets",label:e("settings.nav.secrets"),icon:n.jsx(Ts,{size:14}),to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"storage",label:e("settings.nav.storage"),icon:n.jsx(zs,{size:14}),to:"/$org/settings/buckets",group:"storage"},{key:"store",label:e("settings.nav.store"),icon:n.jsx(vs,{size:14}),to:"/$org/settings/store",requires:"registry:manage"},{key:"sso",label:e("settings.nav.security"),icon:n.jsx(Ge,{size:14}),to:"/$org/settings/sso",requires:"org:manage"}]}].map(g=>({...g,items:g.items.flatMap(u=>{if(u.group){const[f]=i[u.group];return f?[{...u,to:f.to}]:Je(u.group)?[]:[u]}return r||a?[u]:u.privilegedOnly?d?[u]:[]:u.requires?d||s[u.requires]?[u]:[]:[u]})})).filter(Js),t[0]=s,t[1]=a,t[2]=d,t[3]=l,t[4]=r,t[5]=e,t[6]=i,t[7]=o):o=t[7],o}function Js(t){return t.items.length>0}function Te(){const t=j.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:s}=Ke(e);let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d={select:Ks},t[1]=d):d=t[1];const r=We(d);let a;if(t[2]!==s||t[3]!==r){const o=c=>{const g=c.replace("$org",s);return r===g||r.startsWith(`${g}/`)};a=c=>[c.to,...c.group?Qe(c.group):[]].some(o),t[2]=s,t[3]=r,t[4]=a}else a=t[4];const l=a;let i;return t[5]!==l||t[6]!==s?(i={org:s,isActive:l},t[5]=l,t[6]=s,t[7]=i):i=t[7],i}function Ks(t){return t.location.pathname}const Ws="pt-1.5";function Qs(t){const e=j.c(15),{header:s,back:d,body:r,footer:a,sheet:l}=t;let i;e[0]!==s?(i=s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex h-12 shrink-0 flex-row items-center gap-2 px-2 group-data-[state=collapsed]/sidebar:h-auto group-data-[state=collapsed]/sidebar:flex-col group-data-[state=collapsed]/sidebar:py-2",children:s}),n.jsx("div",{className:"mt-1.5 h-px shrink-0 bg-sidebar-border"})]}),e[0]=s,e[1]=i):i=e[1];let o;e[2]!==d?(o=d&&n.jsx("div",{className:"shrink-0 px-2",children:d}),e[2]=d,e[3]=o):o=e[3];let c;e[4]!==r?(c=n.jsx(Ye,{className:"gap-0 overflow-y-auto px-2 pt-2 pb-2 group-data-[state=collapsed]/sidebar:[scrollbar-width:none] group-data-[state=collapsed]/sidebar:[&::-webkit-scrollbar]:hidden",children:r}),e[4]=r,e[5]=c):c=e[5];let g;e[6]!==a||e[7]!==i||e[8]!==o||e[9]!==c?(g=n.jsxs(n.Fragment,{children:[i,o,c,a]}),e[6]=a,e[7]=i,e[8]=o,e[9]=c,e[10]=g):g=e[10];const u=g;if(l){let m;return e[11]!==u?(m=n.jsx("div",{className:"group/sidebar flex h-full w-full flex-col bg-sidebar text-sidebar-foreground","data-sidebar":"sidebar","data-state":"expanded","data-tour":Z.nav,children:u}),e[11]=u,e[12]=m):m=e[12],m}let f;return e[13]!==u?(f=n.jsx(Ze,{className:Ws,"data-tour":Z.nav,children:u}),e[13]=u,e[14]=f):f=e[14],f}function Ys(){const t=j.c(9),{isActive:e}=Te();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={},t[0]=s):s=t[0];const[d,r]=T.useState(s);let a;t[1]!==e||t[2]!==d?(a=g=>d[g.key]??(!g.collapsible||g.items.some(e)),t[1]=e,t[2]=d,t[3]=a):a=t[3];const l=a;let i;t[4]!==l?(i=g=>r(u=>({...u,[g.key]:!l(g)})),t[4]=l,t[5]=i):i=t[5];const o=i;let c;return t[6]!==l||t[7]!==o?(c={isOpen:l,toggle:o},t[6]=l,t[7]=o,t[8]=c):c=t[8],c}function Zs(t){const e=j.c(21),{group:s,open:d,onToggle:r,className:a}=t;let l,i,o,c,g;if(e[0]!==a||e[1]!==s.collapsible||e[2]!==s.label||e[3]!==r||e[4]!==d){g=Symbol.for("react.early_return_sentinel");e:{const h=R("text-xs font-medium text-muted-foreground/60 truncate",a);if(!s.collapsible){g=n.jsx("p",{className:h,children:s.label});break e}l="button",i=r,o=d,c=R("flex w-full items-center gap-1 rounded-md hover:text-muted-foreground",h)}e[0]=a,e[1]=s.collapsible,e[2]=s.label,e[3]=r,e[4]=d,e[5]=l,e[6]=i,e[7]=o,e[8]=c,e[9]=g}else l=e[5],i=e[6],o=e[7],c=e[8],g=e[9];if(g!==Symbol.for("react.early_return_sentinel"))return g;let u;e[10]!==d?(u=d?n.jsx(es,{size:12}):n.jsx(ss,{size:12}),e[10]=d,e[11]=u):u=e[11];let f;e[12]!==s.label?(f=n.jsx("span",{className:"truncate",children:s.label}),e[12]=s.label,e[13]=f):f=e[13];let m;return e[14]!==l||e[15]!==i||e[16]!==o||e[17]!==c||e[18]!==u||e[19]!==f?(m=n.jsxs("button",{type:l,onClick:i,"aria-expanded":o,className:c,children:[u,f]}),e[14]=l,e[15]=i,e[16]=o,e[17]=c,e[18]=u,e[19]=f,e[20]=m):m=e[20],m}function Xs(t){const e=j.c(5),{icon:s,badge:d}=t;let r;e[0]!==d?(r=d?n.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,e[0]=d,e[1]=r):r=e[1];let a;return e[2]!==s||e[3]!==r?(a=n.jsxs("span",{className:"relative shrink-0",children:[s,r]}),e[2]=s,e[3]=r,e[4]=a):a=e[4],a}function et(t){const e=j.c(22),{onNavigate:s}=t,d=O(),r=Gs(),{org:a,isActive:l}=Te(),{isOpen:i,toggle:o}=Ys();let c;if(e[0]!==r||e[1]!==l||e[2]!==i||e[3]!==s||e[4]!==a||e[5]!==o){let b;e[7]!==l||e[8]!==i||e[9]!==s||e[10]!==a||e[11]!==o?(b=(x,k)=>n.jsxs("div",{className:"flex flex-col",children:[x.label&&n.jsx(Zs,{group:x,open:i(x),onToggle:()=>o(x),className:R("px-2 pt-1.5 pb-0.5",k>0&&"mt-3")}),i(x)&&n.jsx(le,{className:"gap-0.5",children:x.items.map(v=>n.jsx(ce,{icon:n.jsx(Xs,{icon:v.icon,badge:v.badge}),label:v.label,isActive:l(v),link:{to:v.to,params:{org:a}},className:"gap-2.5",onSelect:()=>{F("settings_nav_clicked",{section_key:v.key,group_key:x.key}),s?.()}},v.key))})]},x.key),e[7]=l,e[8]=i,e[9]=s,e[10]=a,e[11]=o,e[12]=b):b=e[12],c=r.map(b),e[0]=r,e[1]=l,e[2]=i,e[3]=s,e[4]=a,e[5]=o,e[6]=c}else c=e[6];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[13]=g):g=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("span",{className:"shrink-0",children:n.jsx(ts,{size:14})}),e[14]=u):u=e[14];let f;e[15]!==d?(f=d("settings.nav.signOut"),e[15]=d,e[16]=f):f=e[16];let m;e[17]!==f?(m=n.jsxs("div",{className:"mt-auto flex flex-col",children:[g,n.jsx(le,{className:"gap-0.5",children:n.jsx(ce,{icon:u,label:f,className:"gap-2.5",onSelect:st})})]}),e[17]=f,e[18]=m):m=e[18];let h;return e[19]!==c||e[20]!==m?(h=n.jsxs(n.Fragment,{children:[c,m]}),e[19]=c,e[20]=m,e[21]=h):h=e[21],h}function st(){F("signed_out",{source:"settings_sidebar"}),Xe(),M.signOut()}function tt(t){const e=j.c(8),{onNavigate:s}=t,d=O(),{org:r}=de();let a;e[0]!==d?(a=d("settings.nav.backToHome"),e[0]=d,e[1]=a):a=e[1];let l;e[2]!==r.slug?(l={to:"/$org/home",params:{org:r.slug}},e[2]=r.slug,e[3]=l):l=e[3];let i;return e[4]!==s||e[5]!==a||e[6]!==l?(i=n.jsx(Bs,{label:a,link:l,onSelect:s}),e[4]=s,e[5]=a,e[6]=l,e[7]=i):i=e[7],i}function nt(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"px-4 pb-1",children:n.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.363.0"]})}),t[0]=e):e=t[0],e}function At(t){const e=j.c(9),{onClose:s}=t;let d,r,a;e[0]!==s?(d=n.jsx(Us,{onClose:s}),r=n.jsx(tt,{onNavigate:s}),a=n.jsx(et,{onNavigate:s}),e[0]=s,e[1]=d,e[2]=r,e[3]=a):(d=e[1],r=e[2],a=e[3]);let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(nt,{}),e[4]=l):l=e[4];let i;return e[5]!==d||e[6]!==r||e[7]!==a?(i=n.jsx(Qs,{sheet:!0,header:d,back:r,body:a,footer:l}),e[5]=d,e[6]=r,e[7]=a,e[8]=i):i=e[8],i}export{ce as S,qs as a,Pt as b,Qs as c,nt as d,et as e,tt as f,Us as g,Bs as h,At as i,ge as u};
@@ -1 +0,0 @@
1
- import{c as u,b as d,H as h,j as b,a_ as S,bm as p,bn as x,bo as g}from"./index-y6Z5iMfg.js";import{T as j}from"./toolbar-icon-button-BtBUZ8nA.js";function y(m){const e=u.c(7),{className:o}=m,n=d(),{toggleSidebar:i}=h();let t;e[0]!==n?(t=n("layouts.shellControls.toggleSidebar"),e[0]=n,e[1]=t):t=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(S,{size:16}),e[2]=s):s=e[2];let l;return e[3]!==o||e[4]!==t||e[5]!==i?(l=b.jsx(j,{onClick:i,"aria-label":t,className:o,children:s}),e[3]=o,e[4]=t,e[5]=i,e[6]=l):l=e[6],l}function M(m){const e=u.c(16),{renderSidebar:o}=m,n=d(),{openMobile:i,setOpenMobile:t}=h();let s;e[0]!==n?(s=n("layouts.shellControls.navigationTitle"),e[0]=n,e[1]=s):s=e[1];let l;e[2]!==s?(l=b.jsx(p,{className:"sr-only",children:s}),e[2]=s,e[3]=l):l=e[3];let a;e[4]!==t?(a=()=>t(!1),e[4]=t,e[5]=a):a=e[5];let r;e[6]!==o||e[7]!==a?(r=o({onClose:a}),e[6]=o,e[7]=a,e[8]=r):r=e[8];let c;e[9]!==l||e[10]!==r?(c=b.jsxs(x,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[l,r]}),e[9]=l,e[10]=r,e[11]=c):c=e[11];let f;return e[12]!==i||e[13]!==t||e[14]!==c?(f=b.jsx(g,{open:i,onOpenChange:t,children:c}),e[12]=i,e[13]=t,e[14]=c,e[15]=f):f=e[15],f}export{M,y as S};
@@ -1 +0,0 @@
1
- import{c as R,b as W,e as Je,j as n,B as z,t as Ue,cR as me,z as kt,a as Ke,w as Ut,x as Tt,K as We,cS as Gt,cT as Jt,M as qe,l as lt,bq as Vt,r as V,d as Nt,G as mt,m as Ve,o as ct,bb as gt,v as Wt,cU as Yt,cV as Qt,cW as Xt,cX as Zt,cY as en,C as tn,u as nn,Z as sn,ce as on,cZ as an,k as _t,c_ as at,c$ as rn,d0 as ln,O as cn,d1 as dn}from"./index-y6Z5iMfg.js";import{A as ot}from"./avatar-CfO1mReu.js";import{t as At,b as ht}from"./Users03-B4Km0_9u.js";import{i as un}from"./SearchLg-iYej-M-S.js";import{b9 as mn,aD as fn,b6 as ee,ba as gn,aK as hn,bb as pn,n as pt,g as yn,f as bn,bc as xn,d as Sn}from"./agent-icon-6EllA70W.js";import{s as wn}from"./XClose-DvenHyNp.js";import{D as vn,u as jn,c as kn,d as Tn,b as Nn}from"./thread-route-jI9qvJe_.js";import{l as Pt}from"./anchors-yqDzZN4K.js";import{u as _n,D as te}from"./use-destination-route-CY15sZqw.js";import{a as An,u as Pn,P as Cn}from"./project-icon-DQTfNALl.js";import{i as En}from"./source-system-tabs-CnEGUb4r.js";import{u as Ct,a as On}from"./use-panel-navigate-C6Ga2vR8.js";import{i as ae}from"./CheckCircle-DWvslkKl.js";import{i as yt}from"./Tool02-BAA6OFl0.js";import{i as rt}from"./Monitor01-jzbehxNG.js";import{i as re}from"./Zap-nPZGKdXf.js";import{c as Et,d as Ot,b as It,D as Lt,h as In,e as Ln}from"./dialog-CyDGwxcX.js";import{i as $n}from"./Share07-CJrTonmW.js";import{s as bt}from"./Plus-Bac7Bl-V.js";import{a as Dn}from"./Settings02-t15FjJbr.js";import{d as le,e as Be,f as Rn,a as Mn,b as zn,c as Fn}from"./command-CF7nzIN2.js";import{I as qn}from"./integration-icon-CFGOsRgH.js";import{q as Kn,S as $t,a as Bn,m as Hn}from"./use-mcp-client-Cw1fcLqm.js";import{S as Un,a as Gn}from"./hooks-Bv30myGB.js";import{u as Jn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Vn}from"./required-auth-layout-mSUodrzA.js";import{A as Wn}from"./autosend-DI1ZpOT0.js";import{f as Yn}from"./use-organization-settings-DucmPYOE.js";import{u as Qn}from"./use-org-sso-xd-5IiLc.js";import{u as Xn}from"./use-org-notice-DlsdC1WA.js";function Zn(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ue.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[7]=u,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Je(v),b=es;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(ot,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(At,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(z,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(z,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function es(){window.location.href="/"}function xt(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ts,u=o==="not-found",m=u?un:kt;let h;e[0]!==u||e[1]!==a?(h=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==u||e[4]!==r||e[5]!==s||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(z,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==d||e[23]!==S?(y=n.jsxs(me,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ts(){window.location.href="/"}function ns(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let u;e[0]!==s?(u=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=u):u=e[1];let m;e[2]!==o?(m=()=>{Ut(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ue.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[6]=u,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Je(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ue.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ue.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=Je(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(ot,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(mn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(z,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(z,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function ss(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(ot,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(fn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==u||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[12]=u,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(z,{variant:"ghost",onClick:os,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function os(){window.location.href="/"}function is(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r?(u=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=rs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ue.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==u||e[6]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[5]=u,e[6]=h,e[7]=v):v=e[7];const c=Je(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(ot,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(At,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==l||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(z,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(z,{variant:"ghost",onClick:as,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function as(){window.location.href="/"}function rs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ls(t){const e=R.c(7);let s;e[0]!==t?(s=We.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Tt(o)}function cs({orgSlug:t}){const{data:e}=ls(t);if(e.status!=="member"){Gt()?.org===t&&Jt();const s=localStorage.getItem(qe.lastOrgSlug())===t;if(s&&localStorage.removeItem(qe.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(ns,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Zn,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(is,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(ss,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Dt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:u,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(wn,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=u&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=lt("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:lt("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ds=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function us(t){return ds.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ms(t,e){return us(e).map(s=>({element:Pt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const fs=Pt("switcher"),gs=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function hs(t,e){return ms(t,e).filter(s=>typeof s.element=="string"&&Rt(s.element))}function ps(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function ys(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function bs(t,e){if(He)return;He=!0;let s=0;const r=()=>{if(!Rt(fs)&&s++<gs){requestAnimationFrame(r);return}const o=hs(t,e);if(o.length===0){He=!1;return}ys().then(a=>{a(ps(t,o)).drive()}).catch(()=>{He=!1})};r()}const xs=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:rt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:rt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:ee,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:rt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:re,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ae,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:re,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ae,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:re,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ae,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ae,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:yt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ae,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ht,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:re,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ae,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:yt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:hn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Mt=xs,st="studio.release-feed.v1",dt=new Set;let de="",ue={},ut=!1;function Ss(){if(ut)return de||"{}";try{return localStorage.getItem(st)??"{}"}catch{return de||"{}"}}function zt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ss();return t!==de&&(de=t,ue=zt(t)),ue}function ws(t){dt.add(t);const e=s=>{if(!(s.key!==st&&s.key!==null)){try{const r=localStorage.getItem(st)??"{}",a={...zt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{dt.delete(t),window.removeEventListener("storage",e)}}function vs(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(st,de),ut=!1}catch{ut=!0}dt.forEach(e=>e())}function js(){const t=R.c(7),e=V.useSyncExternalStore(ws,St,St);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=ks;let a;t[2]!==e?(a=Mt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function ks(t){ue[t]||vs({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ts=720*60*60*1e3,Ns=10080*60*1e3;function _s(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function As(t){const e=Mt[0];if(!e)return null;const s=_s(e.date),r=t-s;return r<0||r>Ts?null:e}function Ps(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Cs(t,e){const s=Ps(t);return s===null?!1:e-s>=Ns}function Es(){const t=R.c(52),e=W(),s=An(),r=_n(),o=Ct(),a=!!s,i=r===te.home&&!s;let u;t[0]!==o||t[1]!==a?(u=a&&!!o&&En(o),t[0]=o,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=js(),[b,p]=V.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=As(O),!l){d=null;break e}if(!Cs(h?.user?.createdAt,O)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),bs(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(z,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(z,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Os),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(vn,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Dt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Os(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ft=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Ft?"⌘":"Ctrl",J={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Is=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function wt(t){return Ft?t.metaKey:t.ctrlKey}function Ls(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function $s(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Et,{children:n.jsx(Ot,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Is.map(Ds)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(It,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Lt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function Ds(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Rs)})]},t.label)}function Rs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ms)})]},t.description)}function Ms(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const vt=8;function zs(t){const{org:e}=mt(),s=Kn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:r}=Ve({queryKey:We.globalSearch(e.id,t,vt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:vt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Fs(t){const e=R.c(191),{open:s,onOpenChange:r}=t,o=W(),a=Nt(),{org:i}=mt(),{projects:u,hasProjects:m}=Pn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=zs(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(F,ie)=>{ct("command_palette_used",{kind:ie}),F(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.slug?(x=F=>{if(F.type==="connection"){if(!F.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:F.slug}});return}if(F.type==="task"){a({to:te.tasks,params:{org:i.slug,taskKey:F.key??void 0}});return}a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:F.virtual_mcp_id??void 0,thread:F.id}})},e[4]=a,e[5]=i.slug,e[6]=x):x=e[6];const S=x;let y;e[7]!==h?(y=[h],e[7]=h,e[8]=y):y=e[8];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[9]!==l||e[10]!==d||e[11]!==m||e[12]!==b||e[13]!==a||e[14]!==r||e[15]!==s||e[16]!==S||e[17]!==i.slug||e[18]!==u||e[19]!==w||e[20]!==o||e[21]!==h){const F=b.filter(Ks),ie=b.filter(qs);let ne;e[35]!==i.slug?(ne={org:i.slug},e[35]=i.slug,e[36]=ne):ne=e[36];const D=ne;let Z;e[37]!==o?(Z=o("sidebar.navDestinations.home"),e[37]=o,e[38]=Z):Z=e[38];let Y;e[39]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(yn,{}),e[39]=Y):Y=e[39];let B;e[40]!==D||e[41]!==Z?(B={key:"home",label:Z,icon:Y,to:te.home,params:D},e[40]=D,e[41]=Z,e[42]=B):B=e[42];let Q;e[43]!==o?(Q=o("sidebar.navDestinations.reports"),e[43]=o,e[44]=Q):Q=e[44];let se;e[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(bn,{}),e[45]=se):se=e[45];let H;e[46]!==D||e[47]!==Q?(H={key:"reports",label:Q,icon:se,to:te.reports,params:D},e[46]=D,e[47]=Q,e[48]=H):H=e[48];let U;e[49]!==o?(U=o("sidebar.navDestinations.tasks"),e[49]=o,e[50]=U):U=e[50];let oe;e[51]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(pt,{}),e[51]=oe):oe=e[51];let X;e[52]!==i.slug?(X={org:i.slug,taskKey:void 0},e[52]=i.slug,e[53]=X):X=e[53];let L;e[54]!==U||e[55]!==X?(L={key:"tasks",label:U,icon:oe,to:te.tasks,params:X},e[54]=U,e[55]=X,e[56]=L):L=e[56];let q;e[57]!==o?(q=o("sidebar.navDestinations.library"),e[57]=o,e[58]=q):q=e[58];let Ye;e[59]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx($n,{}),e[59]=Ye):Ye=e[59];let fe;e[60]!==D||e[61]!==q?(fe={key:"library",label:q,icon:Ye,to:te.library,params:D},e[60]=D,e[61]=q,e[62]=fe):fe=e[62];let ge;e[63]!==o?(ge=o("sidebar.navDestinations.discover"),e[63]=o,e[64]=ge):ge=e[64];let Qe;e[65]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(xn,{}),e[65]=Qe):Qe=e[65];let he;e[66]!==D||e[67]!==ge?(he={key:"discover",label:ge,icon:Qe,to:te.discover,params:D},e[66]=D,e[67]=ge,e[68]=he):he=e[68];let Xe;e[69]!==B||e[70]!==H||e[71]!==L||e[72]!==fe||e[73]!==he?(Xe=[B,H,L,fe,he],e[69]=B,e[70]=H,e[71]=L,e[72]=fe,e[73]=he,e[74]=Xe):Xe=e[74];const it=Xe;P=Rn,j=s,e[75]!==l||e[76]!==r?(g=$=>$?r(!0):l(),e[75]=l,e[76]=r,e[77]=g):g=e[77],e[78]!==o?(T=o("commandPalette.title"),e[78]=o,e[79]=T):T=e[79],e[80]!==o?(k=o("commandPalette.description"),e[80]=o,e[81]=k):k=e[81];let pe;e[82]!==o?(pe=o("commandPalette.placeholder"),e[82]=o,e[83]=pe):pe=e[83],e[84]!==pe||e[85]!==h?(A=n.jsx(Mn,{placeholder:pe,value:h,onValueChange:v}),e[84]=pe,e[85]=h,e[86]=A):A=e[86],_=zn;let ye;e[87]!==o?(ye=o("commandPalette.empty"),e[87]=o,e[88]=ye):ye=e[88],e[89]!==ye?(E=n.jsx(Fn,{children:ye}),e[89]=ye,e[90]=E):E=e[90];let be;e[91]!==o?(be=o("commandPalette.goTo"),e[91]=o,e[92]=be):be=e[92];let xe;e[93]!==it||e[94]!==d||e[95]!==a?(xe=it.map($=>n.jsxs(le,{onSelect:()=>d(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[93]=it,e[94]=d,e[95]=a,e[96]=xe):xe=e[96],e[97]!==be||e[98]!==xe?(C=n.jsx(Be,{heading:be,children:xe}),e[97]=be,e[98]=xe,e[99]=C):C=e[99],e[100]!==d||e[101]!==m||e[102]!==a||e[103]!==i.slug||e[104]!==u||e[105]!==o?(O=m&&n.jsx(Be,{heading:o("commandPalette.projects"),children:u.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>d(()=>a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:$.id}}),"project"),children:[n.jsx(Cn,{icon:$.icon,name:$.title}),n.jsx("span",{children:$.title})]},$.id))}),e[100]=d,e[101]=m,e[102]=a,e[103]=i.slug,e[104]=u,e[105]=o,e[106]=O):O=e[106];let Se;e[107]!==o?(Se=o("commandPalette.actions"),e[107]=o,e[108]=Se):Se=e[108];let we;e[109]!==o?(we=o("commandPalette.newProject"),e[109]=o,e[110]=we):we=e[110];let ve;e[111]!==d||e[112]!==a||e[113]!==i.slug?(ve=()=>d(()=>a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:void 0}}),"new_project"),e[111]=d,e[112]=a,e[113]=i.slug,e[114]=ve):ve=e[114];let Ze;e[115]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(bt,{}),e[115]=Ze):Ze=e[115];let je;e[116]!==o?(je=o("commandPalette.newProject"),e[116]=o,e[117]=je):je=e[117];let ke;e[118]!==je?(ke=n.jsx("span",{children:je}),e[118]=je,e[119]=ke):ke=e[119];let Te;e[120]!==we||e[121]!==ve||e[122]!==ke?(Te=n.jsxs(le,{value:we,onSelect:ve,children:[Ze,ke]}),e[120]=we,e[121]=ve,e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==o?(Ne=o("commandPalette.inviteTeammate"),e[124]=o,e[125]=Ne):Ne=e[125];let _e;e[126]!==d||e[127]!==a||e[128]!==D?(_e=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[126]=d,e[127]=a,e[128]=D,e[129]=_e):_e=e[129];let et;e[130]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(Sn,{}),e[130]=et):et=e[130];let Ae;e[131]!==o?(Ae=o("commandPalette.inviteTeammate"),e[131]=o,e[132]=Ae):Ae=e[132];let Pe;e[133]!==Ae?(Pe=n.jsx("span",{children:Ae}),e[133]=Ae,e[134]=Pe):Pe=e[134];let Ce;e[135]!==Ne||e[136]!==_e||e[137]!==Pe?(Ce=n.jsxs(le,{value:Ne,onSelect:_e,children:[et,Pe]}),e[135]=Ne,e[136]=_e,e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==o?(Ee=o("commandPalette.addConnection"),e[139]=o,e[140]=Ee):Ee=e[140];let Oe;e[141]!==d||e[142]!==a||e[143]!==D?(Oe=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[141]=d,e[142]=a,e[143]=D,e[144]=Oe):Oe=e[144];let tt;e[145]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(bt,{}),e[145]=tt):tt=e[145];let Ie;e[146]!==o?(Ie=o("commandPalette.addConnection"),e[146]=o,e[147]=Ie):Ie=e[147];let Le;e[148]!==Ie?(Le=n.jsx("span",{children:Ie}),e[148]=Ie,e[149]=Le):Le=e[149];let $e;e[150]!==Ee||e[151]!==Oe||e[152]!==Le?($e=n.jsxs(le,{value:Ee,onSelect:Oe,children:[tt,Le]}),e[150]=Ee,e[151]=Oe,e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==o?(De=o("commandPalette.settings"),e[154]=o,e[155]=De):De=e[155];let Re;e[156]!==d||e[157]!==a||e[158]!==D?(Re=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[156]=d,e[157]=a,e[158]=D,e[159]=Re):Re=e[159];let nt;e[160]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(Dn,{}),e[160]=nt):nt=e[160];let Me;e[161]!==o?(Me=o("commandPalette.settings"),e[161]=o,e[162]=Me):Me=e[162];let ze;e[163]!==Me?(ze=n.jsx("span",{children:Me}),e[163]=Me,e[164]=ze):ze=e[164];let Fe;e[165]!==De||e[166]!==Re||e[167]!==ze?(Fe=n.jsxs(le,{value:De,onSelect:Re,children:[nt,ze]}),e[165]=De,e[166]=Re,e[167]=ze,e[168]=Fe):Fe=e[168],e[169]!==Se||e[170]!==Te||e[171]!==Ce||e[172]!==$e||e[173]!==Fe?(I=n.jsxs(Be,{heading:Se,children:[Te,Ce,$e,Fe]}),e[169]=Se,e[170]=Te,e[171]=Ce,e[172]=$e,e[173]=Fe,e[174]=I):I=e[174],M=F.length>0&&n.jsx(Be,{heading:o("commandPalette.connections"),children:F.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),"connection"),children:[n.jsx(qn,{icon:$.icon,name:$.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=ie.length>0&&n.jsx(Be,{heading:o("commandPalette.results"),children:ie.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),$.type),children:[$.type==="thread"?n.jsx(pn,{}):n.jsx(pt,{}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[9]=l,e[10]=d,e[11]=m,e[12]=b,e[13]=a,e[14]=r,e[15]=s,e[16]=S,e[17]=i.slug,e[18]=u,e[19]=w,e[20]=o,e[21]=h,e[22]=_,e[23]=P,e[24]=N,e[25]=j,e[26]=g,e[27]=T,e[28]=k,e[29]=A,e[30]=E,e[31]=C,e[32]=O,e[33]=I,e[34]=M}else _=e[22],P=e[23],N=e[24],j=e[25],g=e[26],T=e[27],k=e[28],A=e[29],E=e[30],C=e[31],O=e[32],I=e[33],M=e[34];let K;e[175]!==_||e[176]!==N||e[177]!==E||e[178]!==C||e[179]!==O||e[180]!==I||e[181]!==M?(K=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[175]=_,e[176]=N,e[177]=E,e[178]=C,e[179]=O,e[180]=I,e[181]=M,e[182]=K):K=e[182];let G;return e[183]!==P||e[184]!==j||e[185]!==g||e[186]!==T||e[187]!==k||e[188]!==A||e[189]!==K?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,K]}),e[183]=P,e[184]=j,e[185]=g,e[186]=T,e[187]=k,e[188]=A,e[189]=K,e[190]=G):G=e[190],G}function qs(t){return t.type!=="connection"}function Ks(t){return t.type==="connection"}const Ge=new Un(!1);function Bs(){Ge.set(!0)}function Hs(){Ge.set(!1)}function Us(){const t=R.c(2),e=V.useSyncExternalStore(Ge.subscribe,Ge.get);let s;return t[0]!==e?(s=[e,Ge.set],t[0]=e,t[1]=s):s=t[1],s}const Gs=300*1e3,Js=2;function Vs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Ws(t,e){return t.count>=Js&&t.version!==null&&t.version!==e}function Ys(){const t=R.c(43),e=W(),s=Jn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Xs},t[0]=r):r=t[0];const o=Je(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:We.appVersionCheck(),queryFn:Qs,refetchInterval:Gs,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ve(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);u!==m&&(h(u),b(K=>Vs(K,i,"4.363.0")));const[p,l]=V.useState(null),f=s;let d;t[3]!==s||t[4]!==o?(d=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Ws(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(gt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.363.0"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=lt(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(gt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let I;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==O?(I=n.jsxs(z,{size:"sm",disabled:f,onClick:x,children:[A,O]}),t[29]=x,t[30]=f,t[31]=A,t[32]=O,t[33]=I):I=t[33];let M;return t[34]!==T||t[35]!==k||t[36]!==I||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(M=n.jsx(Dt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:I}),t[34]=T,t[35]=k,t[36]=I,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=M):M=t[42],M}async function Qs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Xs(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Zs(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const eo=Date.parse("2026-07-21T00:00:00Z"),jt=t=>Zs(qe.ptBrAnnouncementSeen(t));function to(){const t=R.c(35),e=W(),[s,r]=Wt(),{data:o,isPending:a}=Ke.useSession(),i=o?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<eo,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&s.language==="en"&&!jt(u).has(),[b,p]=V.useState(!1),[l,f]=V.useState(!1);!b&&!a&&(p(!0),c&&u&&(jt(u).mark(),r(so),f(!0),ct("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{ct("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const x=d;let S;t[1]!==r?(S=()=>{r(no),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Ot,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(In,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Et,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(z,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(z,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let I;t[26]!==A||t[27]!==O?(I=n.jsxs(Ln,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=I):I=t[28];let M;t[29]!==I||t[30]!==T?(M=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,I]}),t[29]=I,t[30]=T,t[31]=M):M=t[31];let K;return t[32]!==l||t[33]!==M?(K=n.jsx(Lt,{open:l,onOpenChange:w,children:M}),t[32]=l,t[33]=M,t[34]=K):K=t[34],K}function no(t){return{...t,language:"en"}}function so(t){return{...t,language:"pt-BR"}}function oo(t){const e=Qt(t);return typeof e=="string"?e:void 0}function io(){return oo("experiment-pipeline-check"),null}function ao(t){const e=R.c(1),{activeOrg:s}=t;if(!s)return null;Xt(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(io,{}),e[0]=r):r=e[0],r}function ro(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,u={mainpanel:void 0};s?u.virtualmcpid=s:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,b;return a?.panel?b=a.panel:o?(b=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(u.mainpanel=o.mainpanel)):!v&&e.tabId&&!en(e.tabId)&&(b=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:b,search:u}}const qt="studio:thread-layout:v3",lo=50;function Kt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function co(t,e,s,r=lo){const o=t.filter(([a])=>a!==e);for(o.push([e,Kt(s)]);o.length>r;)o.shift();return o}function ft(){try{const t=sessionStorage.getItem(qt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Bt(t){try{sessionStorage.setItem(qt,JSON.stringify(t))}catch{}}function uo(t,e){t&&Bt(co(ft(),t,e))}function mo(t){if(!t)return null;const e=ft().find(([s])=>s===t);return e?Kt(e[1]):null}function si(t){if(!t)return;const e=ft(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Bt(s)}function Ht(t){return{queryKey:We.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function oi(t){const e=R.c(10);let s;e[0]!==t?(s=Ht(t),e[0]=t,e[1]=s):s=e[1];const r=Ve(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function fo(t){const e=R.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const u=i,m=go;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==o||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(z,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(z,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==d?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,S]}),e[25]=S,e[26]=d,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(me,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function go(){window.location.href="/"}function ho(t){const e=R.c(27),{notice:s,orgSlug:r}=t,o=W();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(tn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let u;e[3]!==s.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(h=s.ctaUrl&&s.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const po="/settings/infra-billing";function yo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(po)}function bo(t){const e=R.c(8),{org:s,children:r}=t,a=Yn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==s||e[6]!==u?(m=n.jsx(dn,{org:s,project:u,children:r}),e[4]=r,e[5]=s,e[6]=u,e[7]=m):m=e[7],m}function xo(){const t=Nt(),e=Gn(),{org:s}=mt(),r=nn({strict:!1}),o=Ct(),{openPanel:a,closePanel:i}=On(),u=jn(),m=kn(),h=Tn(),v=Nn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,x)=>{const S=!!m&&m===f;m&&!S&&uo(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:mo(f),w=Bn(s.id).id,_=ro({prev:{virtualmcpid:u,tabId:o},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Wn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,d,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...d?{branch:d}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const So=new Set(["/$org/","/$org/home"]);function wo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:vo},t[0]=e):e=t[0],_t(e)}function vo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&So.has(e)}function jo(){const t=R.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=sn(e)?.params.org,[o,a]=V.useState(!1),[i,u]=Us(),m=on(),h=wo(),v=r??"";let c;t[1]!==v?(c=Ht(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],Ve(p);const{data:l}=Ke.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?an(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const x=d;let S,y;t[9]!==m?(S=()=>{const L=q=>{if(wt(q)&&q.code==="KeyK"){q.preventDefault(),Bs();return}if(q.key==="?"&&!Ls(q.target)){q.preventDefault(),a(!0);return}wt(q)&&q.code==="BracketLeft"&&m.history.canGoBack()&&(q.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),V.useEffect(S,y);let w;t[12]!==r?(w=We.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Ke.organization.getFullOrganization({query:{organizationSlug:r}}).finally(To),q=at(L);return L&&!q&&localStorage.setItem(qe.lastOrgSlug(),r),f&&L&&ln(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=Tt(j),T=g?.id,k=g?.slug,{data:A}=Qn(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Xn(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:ko},t[22]=O):O=t[22];const I=_t(O),M=C?.severity==="block"&&!yo(I),K=T??"",G=k??"";let F;t[23]!==K||t[24]!==G?(F=Hn({connectionId:$t,orgId:K,orgSlug:G}),t[23]=K,t[24]=G,t[25]=F):F=t[25];const ie=!!T&&!!k;let ne;if(t[26]!==F||t[27]!==ie?(ne={...F,enabled:ie},t[26]=F,t[27]=ie,t[28]=ne):ne=t[28],Ve(ne),(!g||at(g)||E||M)&&Hs(),!g){let L;return t[29]!==r?(L=n.jsx(cs,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(at(g)){localStorage.getItem(qe.lastOrgSlug())===r&&localStorage.removeItem(qe.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(rn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(M&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(ho,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(fo,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const Z=g.logo??null;let Y;t[41]!==g||t[42]!==Z?(Y={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=Y):Y=t[43];let B;t[44]!==g?(B=n.jsx(ao,{activeOrg:g}),t[44]=g,t[45]=B):B=t[45];let Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(cn,{}),t[46]=Q):Q=t[46];let se;t[47]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Es,{}),n.jsx(Ys,{})]}),t[47]=se):se=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(Fs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx($s,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(to,{}),t[53]=oe):oe=t[53];let X;return t[54]!==Y||t[55]!==B||t[56]!==H||t[57]!==U?(X=n.jsxs(bo,{org:Y,children:[B,Q,se,H,U,oe]}),t[54]=Y,t[55]=B,t[56]=H,t[57]=U,t[58]=X):X=t[58],X}function ko(t){return t.location.pathname}function To(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Vn,{children:n.jsx(jo,{})}),t[0]=e):e=t[0],e}const ii=Object.freeze(Object.defineProperty({__proto__:null,default:No,usePanelActions:xo},Symbol.toStringTag,{value:"Module"}));export{J as K,oi as a,si as f,wt as i,Bs as o,ii as s,xo as u};
@@ -1,4 +0,0 @@
1
- import{c as b,v as Q,j as r,h as Z,B as U,b8 as g,r as ee,l as M,ap as O}from"./index-y6Z5iMfg.js";import{b as te,D as se,d as ne,i as re}from"./dialog-CyDGwxcX.js";import{i as ie}from"./Zap-nPZGKdXf.js";import{M as H}from"./markdown-Y6owwpHy.js";import{n as le}from"./Download01-zZEPtQ0U.js";import{k as K,b as oe,l as ae,p as ce}from"./folder-icon-C46JPU0-.js";import{a as $,s as fe,i as R}from"./ZoomOut-DhJWoynj.js";import{a as de}from"./Image01-CMpSR3RQ.js";import{F as me}from"./editor-D7S6MtwI.js";import{F as q}from"./file-type-icon--TvA6C0i.js";import{p as ue,b as j}from"./location-oTTXFrSF.js";function he(s){if(!s||s.includes("\\")||s.includes("..")||s.includes("\0"))return!0;try{const e=decodeURIComponent(s);return!!(e.includes("\\")||e.includes("..")||e.includes("\0"))}catch{return!0}}function pe(s){if(he(s))throw new Error(`Invalid block key: ${s||"(empty)"}`)}function xe(s){try{return decodeURIComponent(s)}catch{return s}}function ge(s){return pe(s),encodeURIComponent(s)}function Ae(s){return`.deco/blocks/${ge(s)}.json`}const He=1e4,we=3;function B(s){return s.trim()?(s.startsWith("/")?s:`/${s}`).replace(/\/+/g,"/"):"/"}function _(s){return s.startsWith("/")?s.slice(1):s}function Ke(s){const e=_(s);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function W(s){return s.trim()?s.startsWith("/")?s:`/${s}`:"/"}function je(s){const e=W(s);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qe(s,e){const t=e.replace(/^\/+|\/+$/g,"");return W(t?`${s==="/"?"":s}/${t}`:s)}function Ve(s,e){return e==="directory"?s:je(s)}function Ye(s){const e=s.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function be(s){const e=_(s);return e?e.split("/").filter(Boolean).length:0}function Je(s,e,t,i=!1){return{files:[...new Set([...s,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:i||!!t.truncated}}function Qe(s,e){return be(s)>=we&&!e.has(s)}function Ze(s,e,t=[]){const i=_(s);if(e.includes(i)||t.includes(i))return!0;if(!i)return!1;const n=`${i}/`;return e.some(o=>o.startsWith(n))||t.some(o=>o.startsWith(n))}function et(s){const e=_(s),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const i=e.slice(t.length,-5);return xe(i)}function ve(s){if(!s)return"plaintext";const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const ye="#94a3b8";function tt(s){const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:$,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:$,color:"#d9a441"}:e.endsWith(".json")?{Icon:fe,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:$,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:$,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:de,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:R,color:"#64748b"}:{Icon:R,color:ye}}function st(s){const e=B(s).split("/").filter(Boolean),t=["/"];let i="";for(const n of e.slice(0,-1))i+=`/${n}`,t.push(i);return t}function nt(s,e=[]){const t={path:"/",children:[]},i=new Map,n=c=>{let l=i.get(c.path);return l||(l=new Map,i.set(c.path,l)),l},o=c=>{const f=B(c).split("/").filter(Boolean);let d=t,u="";for(const m of f){u+=`/${m}`;const v=n(d);let h=v.get(m);h?h.kind==="file"&&(h.kind="directory"):(h={name:m,path:u,kind:"directory",children:[]},d.children.push(h),v.set(m,h)),d=h}};for(const c of s){const f=B(c).split("/").filter(Boolean);let d=t,u="";f.forEach((m,v)=>{u+=`/${m}`;const h=v===f.length-1,w=n(d);let x=w.get(m);x||(x={name:m,path:u,kind:h?"file":"directory",children:[]},d.children.push(x),w.set(m,x)),d=x})}for(const c of e)o(W(c));const a=c=>{c.sort((l,f)=>l.kind!==f.kind?l.kind==="directory"?-1:1:l.name.localeCompare(f.name));for(const l of c)l.children.length>0&&a(l.children)};return a(t.children),t.children}function ke(s,e,t=0){const i=[];for(const n of s)if(n.name!==".gitkeep"&&(i.push({node:n,depth:t}),n.kind==="directory"&&n.children.length>0&&e.has(n.path)))for(const o of ke(n.children,e,t+1))i.push(o);return i}function rt(s){const e=[];for(const t of s.split(`
2
- `)){if(!t)continue;const i=t.indexOf(":");if(i<0)continue;const n=t.indexOf(":",i+1);if(n<0)continue;const o=Number.parseInt(t.slice(i+1,n),10);Number.isFinite(o)&&e.push({path:W(t.slice(0,i)),line:o,text:t.slice(n+1)})}return e}function it(s,e,t){const i=e.trim().toLowerCase();if(!i)return[];const n=[];for(const o of s)if((o.split("/").pop()??o).toLowerCase().includes(i)&&(n.push(W(o)),n.length>=t))break;return n}const G=24;function lt(s,e){const t=s.replace(/^\s+/,""),i=e.trim().toLowerCase();if(!i)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const n=t.toLowerCase().indexOf(i);if(n<0)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const o=n>G,a=o?t.slice(n-G):t,c=a.toLowerCase(),l=[];let f=0;for(;;){const d=c.indexOf(i,f);if(d<0){f<a.length&&l.push({text:a.slice(f),match:!1});break}d>f&&l.push({text:a.slice(f,d),match:!1}),l.push({text:a.slice(d,d+i.length),match:!0}),f=d+i.length}return{leadingEllipsis:o,segments:l}}function ot(s){const e=[],t=new Map;for(const i of s){let n=t.get(i.path);n||(n={path:i.path,matches:[]},t.set(i.path,n),e.push(n)),n.matches.push(i)}return e}function at(s){return s.split(`
3
- `).map(e=>e.replace(/^\d+\t/,"")).join(`
4
- `)}function Ne(s){const e=b.c(11),{value:t,filename:i}=s,[n]=Q(),o=n.theme==="dark"||n.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let a;e[0]!==i?(a=ve(i),e[0]=i,e[1]=a):a=e[1];const c=o?"vs-dark":"light";let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsx(Z,{className:"size-5 text-muted-foreground"})}),e[2]=l):l=e[2];let f,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(f={enabled:!1},d={top:12,bottom:12},e[3]=f,e[4]=d):(f=e[3],d=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:f,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let m;return e[6]!==i||e[7]!==a||e[8]!==c||e[9]!==t?(m=r.jsx(me,{path:i,language:a,value:t,theme:c,loading:l,options:u},i),e[6]=i,e[7]=a,e[8]=c,e[9]=t,e[10]=m):m=e[10],m}function We(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}const Se=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Ce=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),X=2*1024*1024;function Ee(s,e){const t=s.split(".").pop()?.toLowerCase()??"";return Se.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=X?"markdown":"download":Ce.has(t)&&e<=X?"text":"download"}function Pe(){const s=b.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(g,{className:"h-6 w-2/3"}),s[0]=e):e=s[0];let t;return s[1]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx(g,{className:"h-3 w-full"}),r.jsx(g,{className:"h-3 w-5/6"}),r.jsx(g,{className:"h-3 w-2/3"})]})]})}),s[1]=t):t=s[1],t}function V(s){const e=b.c(20),{file:t,note:i}=s;let n;e[0]!==t.filename?(n=r.jsx(q,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=n):n=e[1];let o;e[2]!==t.filename?(o=r.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=o):o=e[3];let a;e[4]!==t.size?(a=We(t.size),e[4]=t.size,e[5]=a):a=e[5];const c=i?` · ${i}`:"";let l;e[6]!==a||e[7]!==c?(l=r.jsxs("span",{className:"text-xs text-muted-foreground",children:[a,c]}),e[6]=a,e[7]=c,e[8]=l):l=e[8];let f;e[9]!==o||e[10]!==l?(f=r.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[o,l]}),e[9]=o,e[10]=l,e[11]=f):f=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(le,{size:14}),e[12]=d):d=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=r.jsx(U,{asChild:!0,variant:"outline",size:"sm",children:r.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[d,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let m;return e[16]!==n||e[17]!==f||e[18]!==u?(m=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[n,f,u]})}),e[16]=n,e[17]=f,e[18]=u,e[19]=m):m=e[19],m}function A(s){const e=b.c(9),{file:t,markdown:i}=s,{data:n,isPending:o,isError:a}=K(t.downloadUrl);if(o){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(Pe,{}),e[0]=l):l=e[0],l}if(a||!n){let l;return e[1]!==t?(l=r.jsx(V,{file:t,note:"preview unavailable"}),e[1]=t,e[2]=l):l=e[2],l}if(i){const l=`file-preview-${t.key}`;let f;return e[3]!==n||e[4]!==l?(f=r.jsx("div",{className:"h-full overflow-y-auto",children:r.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:r.jsx(H,{id:l,text:n})})}),e[3]=n,e[4]=l,e[5]=f):f=e[5],f}let c;return e[6]!==n||e[7]!==t.filename?(c=r.jsx(Ne,{value:n,filename:t.filename}),e[6]=n,e[7]=t.filename,e[8]=c):c=e[8],c}function ze(s){const e=b.c(15),{file:t}=s;switch(Ee(t.filename,t.size)){case"image":{let n;return e[0]!==t.downloadUrl||e[1]!==t.filename?(n=r.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:r.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=n):n=e[2],n}case"pdf":{let n;return e[3]!==t.downloadUrl||e[4]!==t.filename?(n=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=n):n=e[5],n}case"html":{let n;return e[6]!==t.downloadUrl||e[7]!==t.filename?(n=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=n):n=e[8],n}case"markdown":{let n;return e[9]!==t?(n=r.jsx(A,{file:t,markdown:!0}),e[9]=t,e[10]=n):n=e[10],n}case"text":{let n;return e[11]!==t?(n=r.jsx(A,{file:t,markdown:!1}),e[11]=t,e[12]=n):n=e[12],n}default:{let n;return e[13]!==t?(n=r.jsx(V,{file:t}),e[13]=t,e[14]=n):n=e[14],n}}}function Fe(s){const e=b.c(18),{skillPath:t,onClose:i,variant:n}=s,o=ue(t),{volume:a,dirPath:c}=o,l=oe(),f=l(a??"",`${c}/SKILL.md`),d=K(f),u=ae(a??"",c);let m;e[0]!==c?(m=j(c),e[0]=c,e[1]=m):m=e[1];const v=m;let h;e[2]!==d.data?(h=d.data?ce(d.data):null,e[2]=d.data,e[3]=h):h=e[3];const w=h,x=$e;let C;e[4]===Symbol.for("react.memo_cache_sentinel")?(C=(p,S)=>x(p.path)?-1:x(S.path)?1:j(p.path).localeCompare(j(S.path)),e[4]=C):C=e[4];const D=(u.data??[]).filter(Le).sort(C),[I,Y]=ee.useState(null),y=I===null?null:D.find(p=>p.path===I)??null,E=w?.name??v;let P;e[5]===Symbol.for("react.memo_cache_sentinel")?(P=r.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:r.jsx(ie,{size:18})}),e[5]=P):P=e[5];let k;e[6]!==E||e[7]!==n?(k=n==="dialog"?r.jsx(ne,{className:"flex-1 truncate text-base font-medium text-foreground",children:E}):r.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:E}),e[6]=E,e[7]=n,e[8]=k):k=e[8];let N;e[9]!==i||e[10]!==n?(N=n==="dialog"?r.jsx(re,{asChild:!0,children:r.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:r.jsx(O,{size:16})})}):r.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:i,children:r.jsx(O,{size:16})}),e[9]=i,e[10]=n,e[11]=N):N=e[11];let z;e[12]!==k||e[13]!==N?(z=r.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[P,k,N]}),e[12]=k,e[13]=N,e[14]=z):z=e[14];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=F):F=e[15];const J="relative flex min-w-0 flex-1 flex-col overflow-y-auto",T=y?r.jsx(ze,{file:{key:y.path,filename:j(y.path),size:y.size,downloadUrl:l(a??"",y.path)}}):d.isPending?r.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[r.jsx(g,{className:"h-4 w-1/3"}),r.jsx(g,{className:"h-3 w-full"}),r.jsx(g,{className:"h-3 w-5/6"}),r.jsx(g,{className:"h-3 w-2/3"})]}):d.isError||!w?r.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[r.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),r.jsx("p",{className:"text-base text-muted-foreground",children:w.description??"Claude Code skill"})]}),r.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:r.jsx(H,{id:`skill-preview-${t}`,text:w.body})})]});let L;return e[16]!==T?(L=r.jsx("div",{className:J,children:T}),e[16]=T,e[17]=L):L=e[17],r.jsxs(r.Fragment,{children:[z,r.jsxs("div",{className:"flex min-h-0 flex-1",children:[r.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[F,u.isPending?r.jsx(g,{className:"mx-2 h-4 w-24"}):D.map(p=>{const S=x(p.path)?y===null:I===p.path;return r.jsxs("button",{type:"button",onClick:()=>Y(x(p.path)?null:p.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",S?"bg-background shadow-sm":"hover:bg-muted/60"),children:[r.jsx(q,{filename:j(p.path),className:"h-6 w-5 shrink-0"}),r.jsx("span",{className:M("truncate text-sm",S?"text-foreground":"text-muted-foreground"),children:j(p.path)})]},p.path)})]}),L]})]})}function Le(s){return s.kind==="file"}function $e(s){return j(s)==="SKILL.md"}function ct(s){const e=b.c(8),{skillPath:t,onClose:i}=s;let n;e[0]!==i?(n=c=>{c||i()},e[0]=i,e[1]=n):n=e[1];let o;e[2]!==i||e[3]!==t?(o=r.jsx(te,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:r.jsx(Fe,{skillPath:t,onClose:i,variant:"dialog"})}),e[2]=i,e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=r.jsx(se,{open:!0,onOpenChange:n,children:o}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}export{Je as A,we as E,Pe as F,ct as S,pe as a,ze as b,xe as c,Ae as d,He as e,We as f,ve as g,nt as h,Ke as i,ke as j,ot as k,Ve as l,W as m,tt as n,je as o,st as p,lt as q,Qe as r,at as s,_ as t,qe as u,Ye as v,Ze as w,it as x,rt as y,et as z};
@@ -1 +0,0 @@
1
- import{b as te,G as se,n as oe,r as T,j as t,B as Q,P as L,b8 as ae,C as ce,t as w,c as ie,l as de,K as H,b6 as me}from"./index-y6Z5iMfg.js";import{i as ue}from"./DotsVertical-CBmzJDPB.js";import{i as pe}from"./GitBranch01-B7iymaqC.js";import{a as ge}from"./Package-CiAH049d.js";import{s as fe}from"./Trash01-C6vCLvEw.js";import{i as he}from"./Upload01-lE597uPz.js";import{i as le}from"./Zap-nPZGKdXf.js";import{S as xe}from"./search-input-L0lrukmF.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-CgwRqOnX.js";import{A as Se,a as be,b as we,c as Ce,d as De,e as Ne,f as Pe,g as Ee}from"./alert-dialog-CFCsKBpN.js";import{E as J}from"./empty-state-DfBha5W6.js";import{C as Ae}from"./collection-tabs-MvaIz7gt.js";import{p as Te,q as Me,u as Ie,r as Oe,F as ze}from"./folder-icon-C46JPU0-.js";import{H as V,d as $e}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-BswJw8Eb.js";import"./SearchMd-hxPQERkg.js";import"./Check-C1wq38_E.js";import"./ChevronRight-B76sbAXC.js";import"./badge-GP_pc1i_.js";import"./Eye-DFgd5114.js";import"./dialog-CyDGwxcX.js";import"./markdown-Y6owwpHy.js";import"./Copy01-rsN5AnPv.js";import"./Download01-zZEPtQ0U.js";import"./ZoomOut-DhJWoynj.js";import"./use-panel-navigate-C6Ga2vR8.js";import"./use-destination-route-CY15sZqw.js";import"./Image01-CMpSR3RQ.js";import"./editor-D7S6MtwI.js";import"./file-type-icon--TvA6C0i.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=G(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=Te(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?pe:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:u}=se();let C;e[0]!==l.source||e[1]!==u.name?(C=re(l.source,u.name),e[0]=l.source,e[1]=u.name,e[2]=C):C=e[2];const{label:M,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=de("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let d;e[7]!==l.name||e[8]!==c||e[9]!==r?(d=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=d):d=e[10];const P=z?"default":"system",$=!z;let h;e[11]!==O||e[12]!==P||e[13]!==$?(h=t.jsx(ze,{glyph:O,tone:P,readOnly:$,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=$,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ue,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let m;e[26]!==k?(m=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=m):m=e[27];let v;e[28]!==b||e[29]!==m?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,m]}),e[28]=b,e[29]=m,e[30]=v):v=e[30];let p;e[31]!==j||e[32]!==v?(p=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=p):p=e[33];let y;e[34]!==M||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==p||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[p,g]}),e[40]=p,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==d?(I=t.jsxs(me,{"aria-busy":r,className:f,children:[d,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=d,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function yt(){const s=te(),{org:e}=se(),l=Me(),{remove:r,upload:c}=Ie("home"),a=oe(),o=T.useRef(null),[u,C]=T.useState(""),[M,O]=T.useState(_),[D,z]=T.useState(!1),[N,f]=T.useState(null),[d,P]=T.useState(null),[$,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>G(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const F=_e(q),X=`skills/${F}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:F}));return}Y=!0;const A=qe(F,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,F),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:F}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=u.toLowerCase(),m=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of m)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:m.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(M)?M:_,S=g===_?m:m.filter(i=>i.source===g),I=i=>f($e(i.volume,i.path)),K=async()=>{if(!d)return;const{id:i,path:n}=d;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},U=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:u,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),U,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(u?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:u?s("settings.skills.noResultsDescription",{search:u}):s("settings.skills.emptyDescription"),actions:!u&&U})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===$;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:d!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:d?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{yt as default};
@@ -1 +0,0 @@
1
- import{c as J,b as Z,j as i,P as te,r as V,b5 as ue,b8 as pe,E as xe,G as Se,n as he,a$ as H,B as X,d as ye,f as je,o as ae,K as ve,b0 as ie,b1 as re,e as be,t as ge}from"./index-y6Z5iMfg.js";import{i as Ce}from"./AlertCircle-Df7Uu4Sr.js";import{i as _e}from"./ChevronRight-B76sbAXC.js";import{s as Re}from"./Plus-Bac7Bl-V.js";import{s as ke}from"./Trash01-C6vCLvEw.js";import{I as ne}from"./input-DRjCNSPN.js";import{S as de}from"./switch-CPLM-IZy.js";import{A as me}from"./avatar-CfO1mReu.js";import{P as Ne,a as Pe,b as Te}from"./popover-DrJcYe9C.js";import{b as fe}from"./use-connection-ClORxmw4.js";import{W as le}from"./use-mcp-client-Cw1fcLqm.js";import{u as we}from"./use-registry-connections-DBp-MS3e.js";import{h as Ae,m as ze}from"./use-organization-settings-DucmPYOE.js";import{R as Ee}from"./require-capability-BVMwcBeZ.js";import"./User01-BPodfm7s.js";import"./auth-DeD0YpKg.js";import"./schema-BDy_4D7A.js";import"./task-board-By8eCqZc.js";import"./access-gate-OgewzCmd.js";import"./capability-load-error-BoR9RbMs.js";function $e(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(Ce,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function Me(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=be(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let b;e[20]!==r||e[21]!==f?(b=i.jsx(ne,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=b):b=e[22];let R;e[23]!==h||e[24]!==b?(R=i.jsx(H,{title:h,action:b}),e[23]=h,e[24]=b,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let q;e[30]===Symbol.for("react.memo_cache_sentinel")?(q=y=>A(y.target.value),e[30]=q):q=e[30];let B;e[31]!==U||e[32]!==a?(B=i.jsx(ne,{placeholder:U,value:a,onChange:q,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=B):B=e[33];let O;e[34]!==F||e[35]!==B?(O=i.jsx(H,{title:F,action:B}),e[34]=F,e[35]=B,e[36]=O):O=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let C;e[39]!==s?(C=s("settings.orgStore.optional"),e[39]=s,e[40]=C):C=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>_(y.target.value),e[43]=Y):Y=e[43];let $;e[44]!==E||e[45]!==x?($=i.jsx(ne,{type:"password",placeholder:E,value:x,onChange:Y,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=$):$=e[46];let I;e[47]!==z||e[48]!==C||e[49]!==$?(I=i.jsx(H,{title:z,description:C,action:$}),e[47]=z,e[48]=C,e[49]=$,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let M;return e[69]!==O||e[70]!==I||e[71]!==w||e[72]!==R?(M=i.jsxs(ie,{children:[R,O,I,w]}),e[69]=O,e[70]=I,e[71]=w,e[72]=R,e[73]=M):M=e[73],M}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=je(_);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(_e,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let b;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(b=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=b):b=e[29],b}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,_,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=le.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},b=le.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===b||n.id==="community-registry"),U=F?.id??b,q=le.SELF(l.id),B=new Set([f,b,"community-registry",q]),O=c.filter(n=>!B.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const C=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const Y=E;let $;t[21]!==o||t[22]!==r?($=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=$):$=t[23];const I=$;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>C(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(re,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx(Me,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let M;t[41]!==e?(M=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=M):M=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==C?(G=n=>C("self",n),t[45]=C,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==M||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:M,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=M,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==Y||t[53]!==C||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>C(n.id,K),onDelete:()=>Y(n.id)},n.id),t[52]=Y,t[53]=C,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=O.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(re,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],_=re,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>C(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=_,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],_=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx($e,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function lt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{lt as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DHYm94rU.js","assets/index-y6Z5iMfg.js","assets/index-DJADaZ4J.css","assets/Tool02-BAA6OFl0.js","assets/CheckCircle-DWvslkKl.js","assets/Settings02-t15FjJbr.js","assets/use-mcp-client-Cw1fcLqm.js","assets/auth-DeD0YpKg.js","assets/useInfiniteQuery-DThUrotQ.js","assets/infiniteQueryObserver-CvFtTJPb.js","assets/badge-GP_pc1i_.js","assets/input-DRjCNSPN.js","assets/dropdown-menu-CgwRqOnX.js","assets/Check-C1wq38_E.js","assets/ChevronRight-B76sbAXC.js","assets/DotsVertical-CBmzJDPB.js","assets/table-DSIbUmyY.js","assets/toggle-group-WfRpP-dB.js","assets/use-view-mode-BGsTNFK8.js","assets/Globe01-Df6dZmsR.js","assets/SearchMd-hxPQERkg.js","assets/dialog-CyDGwxcX.js","assets/AlertCircle-Df7Uu4Sr.js","assets/Download01-zZEPtQ0U.js","assets/Upload01-lE597uPz.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CFCsKBpN.js","assets/Trash01-C6vCLvEw.js","assets/label-DGsSvY2I.js","assets/select-BGnwGqnU.js","assets/ChevronUp-B0KEDz5f.js","assets/switch-CPLM-IZy.js","assets/textarea-CuF3aDTE.js","assets/ArrowLeft-Ce4LVTaQ.js","assets/ArrowRight-CuO69upc.js","assets/Link01-pX5C3rEv.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-ZsR1Bced.js","assets/Eye-DFgd5114.js","assets/LinkExternal01-CzRiacvQ.js","assets/XCircle-BK1898xU.js","assets/use-infinite-scroll-Bw5rNIGx.js","assets/use-copy-DUxpBqXm.js","assets/Copy01-rsN5AnPv.js","assets/Key01-t3bX5YI3.js","assets/Plus-Bac7Bl-V.js","assets/mcp-oauth-Bm9ijvfC.js","assets/Play-k9_JCuZW.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,bq as p}from"./index-y6Z5iMfg.js";import{R as u}from"./require-capability-BVMwcBeZ.js";import"./access-gate-OgewzCmd.js";import"./capability-load-error-BoR9RbMs.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DHYm94rU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{r as c,j as i,br as C,bv as y,bu as T,bx as I,e4 as M,ee as H,bt as z,c as A,l as g}from"./index-y6Z5iMfg.js";var m="Switch",[U]=z(m),[q,L]=U(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...v}=a,[p,h]=c.useState(null),w=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...v,ref:w,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const v=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(v,"checked").set;if(u!==t&&h){const w=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(w)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var $=E,D=R;function W(a){const e=A.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
@@ -1 +0,0 @@
1
- import{c as se,j as s,ds as ye,b as ue,r as ae,B as te,l as je,t as ce,b8 as be}from"./index-y6Z5iMfg.js";import{i as ge}from"./GitBranch01-B7iymaqC.js";import{s as xe}from"./Plus-Bac7Bl-V.js";import{c as Re,d as ve,b as Se,f as De,g as Ne,e as _e,a as Ce,A as Pe}from"./alert-dialog-CFCsKBpN.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-CyDGwxcX.js";import{I as Ie}from"./input-DRjCNSPN.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-s01uE4_E.js";import{a as Ge,d as Be,h as He,t as qe}from"./cards-m7YgOjsz.js";import{R as Le}from"./require-capability-BVMwcBeZ.js";import"./ArrowLeft-Ce4LVTaQ.js";import"./ChevronRight-B76sbAXC.js";import"./LinkExternal01-CzRiacvQ.js";import"./label-DGsSvY2I.js";import"./github-icon-7BmoW2Y2.js";import"./useInfiniteQuery-DThUrotQ.js";import"./infiniteQueryObserver-CvFtTJPb.js";import"./avatar-CfO1mReu.js";import"./User01-BPodfm7s.js";import"./collection-search-7NUVJQfN.js";import"./SearchMd-hxPQERkg.js";import"./use-debounced-value-v41IOreQ.js";import"./folder-icon-C46JPU0-.js";import"./Eye-DFgd5114.js";import"./DotsVertical-CBmzJDPB.js";import"./Download01-zZEPtQ0U.js";import"./Share07-CJrTonmW.js";import"./Globe01-Df6dZmsR.js";import"./Key01-t3bX5YI3.js";import"./Palette-CmMvG40G.js";import"./Trash01-C6vCLvEw.js";import"./Zap-nPZGKdXf.js";import"./dropdown-menu-CgwRqOnX.js";import"./Check-C1wq38_E.js";import"./file-type-icon--TvA6C0i.js";import"./access-gate-OgewzCmd.js";import"./capability-load-error-BoR9RbMs.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===l.repositoryId),t[3]=l.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${l.repoOwner}/${l.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==l.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let d;t[15]!==l||t[16]!==c?(d=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),l=Ge(),i=Be(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==l.data?(b=l.data??[],e[10]=l.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==R||e[17]!==t?(y=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=y):y=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Ve(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let C;e[22]!==u||e[23]!==j?(C=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=C):C=e[24];const de=r!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:le,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==B?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:ie,children:H}),e[67]=H,e[68]=de,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(Re,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(_e,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(Ce,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Pe,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==h||e[103]!==ee||e[104]!==y||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[h,y,C,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function zt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{zt as default};