decocms 4.371.4 → 4.372.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/dist/client/assets/{AlertCircle-DkoTBUue.js → AlertCircle-Ddrj7VUD.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DlexVvHr.js → AreaChart-0mAtLd45.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-eoxjWHed.js → ArrowLeft-BKbGYh2B.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-BbuAJZmx.js → ArrowRight-6hYTENh_.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-CseIJyft.js → ArrowUp-Dhew3Evs.js} +1 -1
  6. package/dist/client/assets/{CartesianChart--SFPDO1V.js → CartesianChart-u2Ri6JFS.js} +1 -1
  7. package/dist/client/assets/{Check-BDjrzcrN.js → Check-Dnz3uW0f.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-CSZ4Kehv.js → CheckCircle-DQbrJHsr.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-DFWFq-ve.js → ChevronRight-DK_MoZ-7.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-C9J9C02y.js → ChevronSelectorVertical-B64gqtde.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-BrOu8rnp.js → ChevronUp-XOZg-HiO.js} +1 -1
  12. package/dist/client/assets/{Copy01-CCOGzU1d.js → Copy01-l6PfB431.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CuoUWRm0.js → CreditCard01-DQsLDZWx.js} +1 -1
  14. package/dist/client/assets/{Database01-CJba45_T.js → Database01-vUZciuwF.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-mYRVr9AH.js → DotsVertical-Dyzdr42E.js} +1 -1
  16. package/dist/client/assets/{Download01-Bd0rofRl.js → Download01-_eUxcgg1.js} +1 -1
  17. package/dist/client/assets/{ErrorBarContext-C0lyL2YC.js → ErrorBarContext-DFc19StE.js} +1 -1
  18. package/dist/client/assets/{Eye-74QOe9cC.js → Eye-B7hZLXRZ.js} +1 -1
  19. package/dist/client/assets/{File02-CmMbIRXN.js → File02-D1W0NjQG.js} +1 -1
  20. package/dist/client/assets/{GitBranch01-BKO8WN_h.js → GitBranch01-CRUhFeKk.js} +1 -1
  21. package/dist/client/assets/{Globe01-Ck7RTkU3.js → Globe01-D9zr3JIX.js} +1 -1
  22. package/dist/client/assets/{HardDrive-DU6J9iPu.js → HardDrive-7_ZjnLMv.js} +1 -1
  23. package/dist/client/assets/{Image01-DnYDSI2h.js → Image01-7_HSDHV3.js} +1 -1
  24. package/dist/client/assets/{Key01-BZd6Jwvq.js → Key01-ti2CpCiW.js} +1 -1
  25. package/dist/client/assets/{Line-G0r0o9gn.js → Line-D9piFifo.js} +1 -1
  26. package/dist/client/assets/{Link01-B52qN1xV.js → Link01-DYWtgbsz.js} +1 -1
  27. package/dist/client/assets/{LinkExternal01-BDgcOJqm.js → LinkExternal01--55N_6ts.js} +1 -1
  28. package/dist/client/assets/{MessageCircle01-CwQvoxPA.js → MessageCircle01-DELRsE6A.js} +1 -1
  29. package/dist/client/assets/{Monitor01-BcYUPleF.js → Monitor01-BoIweS2p.js} +1 -1
  30. package/dist/client/assets/{Package-C4SRuwMw.js → Package-CSgBbMFc.js} +1 -1
  31. package/dist/client/assets/{Palette-C9EL1sNC.js → Palette-CaHW8y9T.js} +1 -1
  32. package/dist/client/assets/{Play-CyyInR_v.js → Play-BolLrTAn.js} +1 -1
  33. package/dist/client/assets/{Plus-BEdGLMcS.js → Plus-C5azC59K.js} +1 -1
  34. package/dist/client/assets/{Printer-BgQcHd8s.js → Printer-Dn2De3ak.js} +1 -1
  35. package/dist/client/assets/{SearchLg-D8sOk12E.js → SearchLg-BZUR3n9c.js} +1 -1
  36. package/dist/client/assets/{SearchMd-CVv1yVth.js → SearchMd-Ms_xvSfF.js} +1 -1
  37. package/dist/client/assets/{Sector-CvQy_NRt.js → Sector-DHu8bCK4.js} +1 -1
  38. package/dist/client/assets/{Settings02-7e_CWXN4.js → Settings02-BLcAotUO.js} +1 -1
  39. package/dist/client/assets/{Share07-CWr7FJF7.js → Share07-BypmcbEF.js} +1 -1
  40. package/dist/client/assets/{Shield01-B8e5sZlX.js → Shield01-C_5dC1mR.js} +1 -1
  41. package/dist/client/assets/{Stars01-DtXaEO3a.js → Stars01-DTStBsXP.js} +1 -1
  42. package/dist/client/assets/{Sun-I1e-KcTY.js → Sun-CEaGM44s.js} +1 -1
  43. package/dist/client/assets/{SwitchHorizontal01-BRr1FvfD.js → SwitchHorizontal01-l3o5r_PJ.js} +1 -1
  44. package/dist/client/assets/{Tool01-dFp1h9Fm.js → Tool01-C0-Xqkxp.js} +1 -1
  45. package/dist/client/assets/{Tool02-DEN5a-af.js → Tool02-CE2Fqpba.js} +1 -1
  46. package/dist/client/assets/{Trash01-DGA8npEZ.js → Trash01-DPQmLNZV.js} +1 -1
  47. package/dist/client/assets/{TrendUp01-BK_K6NH_.js → TrendUp01-uTlAwt0S.js} +1 -1
  48. package/dist/client/assets/{Upload01-B3v_JBAz.js → Upload01-D-20AdeD.js} +1 -1
  49. package/dist/client/assets/{User01-Dbdndpwo.js → User01-BA1LEBvQ.js} +1 -1
  50. package/dist/client/assets/{UserSquare-DZNy5OUH.js → UserSquare-D-v_LgOa.js} +1 -1
  51. package/dist/client/assets/{Users01-AYbQCr7m.js → Users01-BpRvBK8_.js} +1 -1
  52. package/dist/client/assets/{Users03-CUK-7hPD.js → Users03-BaYGM99c.js} +1 -1
  53. package/dist/client/assets/{X-BH7q4C1t.js → X-Dh_K-VDi.js} +1 -1
  54. package/dist/client/assets/{XCircle-CFDcIdAJ.js → XCircle-BhDUy79p.js} +1 -1
  55. package/dist/client/assets/{XClose-2vlbdyhB.js → XClose-Bw0VS-dj.js} +1 -1
  56. package/dist/client/assets/{Zap-Df8_LH9g.js → Zap-TxetSnv7.js} +1 -1
  57. package/dist/client/assets/{ZoomOut-CvFdKFHJ.js → ZoomOut-CJKT31Kx.js} +1 -1
  58. package/dist/client/assets/{access-gate-Bz_XB_uN.js → access-gate-Dt6vr2zi.js} +1 -1
  59. package/dist/client/assets/{add-connection-dialog-CazdSHRl.js → add-connection-dialog-Bwzbw2rJ.js} +1 -1
  60. package/dist/client/assets/{agent-analytics-BUU5OHJ0.js → agent-analytics-OtUj5VAg.js} +1 -1
  61. package/dist/client/assets/agent-app-huXdhJP6.js +1 -0
  62. package/dist/client/assets/{agent-assets-koBUkOuF.js → agent-assets-Ds2YrU5Y.js} +1 -1
  63. package/dist/client/assets/{agent-automation-s5o8QjN7.js → agent-automation-BzHNBuT4.js} +1 -1
  64. package/dist/client/assets/{agent-automations-BEgeK_8a.js → agent-automations-BvUPSQUr.js} +1 -1
  65. package/dist/client/assets/{agent-connect-sources-Cw1ElYdi.js → agent-connect-sources-B2VHxv-N.js} +1 -1
  66. package/dist/client/assets/agent-deck-DGboeeyf.js +1 -0
  67. package/dist/client/assets/{agent-e2e-D0tGNaa-.js → agent-e2e-CCN3csfU.js} +1 -1
  68. package/dist/client/assets/{agent-experiments-CF1wr09V.js → agent-experiments-C1xtDG8f.js} +1 -1
  69. package/dist/client/assets/agent-file-B8pH22Ku.js +1 -0
  70. package/dist/client/assets/{agent-git-X9feic8X.js → agent-git-O5fnLyKj.js} +1 -1
  71. package/dist/client/assets/{agent-hosting-CiIEbvp9.js → agent-hosting-ClZ4R70M.js} +1 -1
  72. package/dist/client/assets/{agent-icon-CWoY8dlp.js → agent-icon-Cyx7Smko.js} +1 -1
  73. package/dist/client/assets/agent-library-file-D-88nLF8.js +1 -0
  74. package/dist/client/assets/{agent-monitor-dM1U0oHi.js → agent-monitor-B2s_I09z.js} +1 -1
  75. package/dist/client/assets/{agent-overview-b_OH54f9.js → agent-overview-CLGjxUwU.js} +1 -1
  76. package/dist/client/assets/agent-settings-BzADpWtq.js +1 -0
  77. package/dist/client/assets/{agent-site-editor-BBBwvkn-.js → agent-site-editor-DElX-Rtx.js} +1 -1
  78. package/dist/client/assets/agent-site-editor-code-CGdhTJXE.js +2 -0
  79. package/dist/client/assets/{agent-site-editor-content-6RAz4TG_.js → agent-site-editor-content-D8Swy0HF.js} +2 -2
  80. package/dist/client/assets/{agent-site-editor-preview-Dgz_F_iP.js → agent-site-editor-preview-BEkJn_qI.js} +3 -3
  81. package/dist/client/assets/agent-view-BZUeqD_l.js +1 -0
  82. package/dist/client/assets/{agent-view-guard-BwVsll67.js → agent-view-guard-Cc93o9kZ.js} +1 -1
  83. package/dist/client/assets/{agents-list-saY2e2oN.js → agents-list-D23HRLNK.js} +1 -1
  84. package/dist/client/assets/{ai-providers-nN3i3GvB.js → ai-providers-AQKJLPCp.js} +1 -1
  85. package/dist/client/assets/{alert-CHNmHigh.js → alert-Bb5psHaZ.js} +1 -1
  86. package/dist/client/assets/{alert-dialog-Cj4mq8qj.js → alert-dialog-DfGZ77rh.js} +1 -1
  87. package/dist/client/assets/{api-keys-DrOs-ajg.js → api-keys-7xk7B181.js} +1 -1
  88. package/dist/client/assets/api-keys-DfV1qFa5.js +1 -0
  89. package/dist/client/assets/app-editor-CK2-PFMD.js +1 -0
  90. package/dist/client/assets/{asset-utils-B6xmdxJ-.js → asset-utils-Dl8tpNxx.js} +1 -1
  91. package/dist/client/assets/{auth-DQLPrt1d.js → auth-5BCk_I76.js} +1 -1
  92. package/dist/client/assets/{auth-catchall-C1NwExr2.js → auth-catchall-BXX_QHt4.js} +1 -1
  93. package/dist/client/assets/{auth-entry-BFo2L_uA.js → auth-entry-BYY2pacz.js} +1 -1
  94. package/dist/client/assets/{auth-split-layout-CyH5oyMl.js → auth-split-layout-Bh_B_vjZ.js} +1 -1
  95. package/dist/client/assets/{authenticate-and-persist-oauth-DiSz7oRO.js → authenticate-and-persist-oauth-Bj_Y1vgm.js} +1 -1
  96. package/dist/client/assets/{automation-list-row-ToSx3G2V.js → automation-list-row-TgtbvSc5.js} +1 -1
  97. package/dist/client/assets/{automation-runs-D-Y_3Wp_.js → automation-runs-CVEQI8qU.js} +1 -1
  98. package/dist/client/assets/automations-CfjjbeEx.js +1 -0
  99. package/dist/client/assets/{autosend-DBLW1BiY.js → autosend-ClVEnX_S.js} +1 -1
  100. package/dist/client/assets/{avatar-CA5LIB-l.js → avatar-CR9KEb-s.js} +1 -1
  101. package/dist/client/assets/{badge-BHHKIdAQ.js → badge-DOT8HE5Z.js} +1 -1
  102. package/dist/client/assets/{block-document-CKFsXR2D.js → block-document-Boj9yYni.js} +1 -1
  103. package/dist/client/assets/{blocks-preview-workspace-context-DD1sbvCI.js → blocks-preview-workspace-context-Dh0KsAvE.js} +1 -1
  104. package/dist/client/assets/{breadcrumb-CtLbOAvM.js → breadcrumb-CVSmj3i3.js} +1 -1
  105. package/dist/client/assets/{buckets-n4oqlL53.js → buckets-B0FCB4zB.js} +1 -1
  106. package/dist/client/assets/{build-improve-prompt-doc-C0Pcb13i.js → build-improve-prompt-doc-C9jBTscU.js} +1 -1
  107. package/dist/client/assets/{bulk-category-panel-LlH8_RXq.js → bulk-category-panel-QprmcNHA.js} +1 -1
  108. package/dist/client/assets/{calendar-CuSfsKMP.js → calendar-SAWOBJxF.js} +1 -1
  109. package/dist/client/assets/{capability-load-error-nTuuTH9K.js → capability-load-error-D1mxtMyB.js} +1 -1
  110. package/dist/client/assets/{cards-D_qYJSBL.js → cards-DQPi8IW_.js} +1 -1
  111. package/dist/client/assets/category-editor-CG20ku6V.js +1 -0
  112. package/dist/client/assets/{chart-3a-OWzYT.js → chart-BGm-AILS.js} +1 -1
  113. package/dist/client/assets/{chat-context-Bu5sIHkQ.js → chat-context-H28jTcB6.js} +1 -1
  114. package/dist/client/assets/{chat-draft-CDnPwvf3.js → chat-draft-BTIUwp87.js} +1 -1
  115. package/dist/client/assets/{checkbox-KtkqQde0.js → checkbox-D_GODf3h.js} +1 -1
  116. package/dist/client/assets/{choose-editor-Dn1tw3t6.js → choose-editor-CqXPKhwg.js} +1 -1
  117. package/dist/client/assets/{cli-auth-success-Dk6ZAOHg.js → cli-auth-success-Nkuy_2dv.js} +1 -1
  118. package/dist/client/assets/{client-icons-BZbx9xet.js → client-icons-D55uOktL.js} +1 -1
  119. package/dist/client/assets/{collapsible--RUSBZp8.js → collapsible-CkoFdRnK.js} +1 -1
  120. package/dist/client/assets/{collection-detail-DeDEzfsH.js → collection-detail-7A7zRYv2.js} +1 -1
  121. package/dist/client/assets/{collection-display-button-CSCRl1NG.js → collection-display-button-B730w9Ah.js} +1 -1
  122. package/dist/client/assets/{collection-search-CYFbkY1e.js → collection-search-B2t2IaOK.js} +1 -1
  123. package/dist/client/assets/{collection-table-wrapper-B0GV6KfT.js → collection-table-wrapper-87GtYm7N.js} +1 -1
  124. package/dist/client/assets/{collection-tabs-Cub0gFzH.js → collection-tabs-DAqaNYVU.js} +1 -1
  125. package/dist/client/assets/{combobox-DKSSMn_F.js → combobox-CA5nnv9O.js} +1 -1
  126. package/dist/client/assets/{command-Aa0mYduw.js → command-CtFXOSiX.js} +1 -1
  127. package/dist/client/assets/{command-palette-store-AuoaPk0G.js → command-palette-store-BL5hnWnv.js} +1 -1
  128. package/dist/client/assets/{companion-mcps-section-Cm96EPtV.js → companion-mcps-section-DVYB246Y.js} +1 -1
  129. package/dist/client/assets/{connect-RwN6Lb1O.js → connect-F12K-hsA.js} +1 -1
  130. package/dist/client/assets/{connect-layout-BUZjF8sB.js → connect-layout-DCgHt0wb.js} +1 -1
  131. package/dist/client/assets/{connection-BYV9fPN2.js → connection-DhRpG43c.js} +1 -1
  132. package/dist/client/assets/{connection-card-Dr9bHZoV.js → connection-card-BCofIpgI.js} +1 -1
  133. package/dist/client/assets/{connection-detail-CIfYvjz9.js → connection-detail-CkBpJk50.js} +1 -1
  134. package/dist/client/assets/{connection-form-helpers-BXp-lVpJ.js → connection-form-helpers-C7Pc9F54.js} +1 -1
  135. package/dist/client/assets/{connections-CHaTlyIC.js → connections-BsBFmd4I.js} +1 -1
  136. package/dist/client/assets/{create-organization-dialog-yNI_6UTh.js → create-organization-dialog-CYwIBo_O.js} +1 -1
  137. package/dist/client/assets/{decofile-api-DEul9pGZ.js → decofile-api-Cdto5FQ3.js} +1 -1
  138. package/dist/client/assets/{decopilot-C-Fh2iwl.js → decopilot-BecreIFq.js} +1 -1
  139. package/dist/client/assets/{dialog-D57kq_tP.js → dialog-SKkzdrcZ.js} +1 -1
  140. package/dist/client/assets/{discover-D4y-o31j.js → discover-BWfGXdtB.js} +1 -1
  141. package/dist/client/assets/{domain-settings-Ch5rCYKa.js → domain-settings-ClqqVAOw.js} +1 -1
  142. package/dist/client/assets/{download-app-dialog-Dd6sw41_.js → download-app-dialog-DQE0snIy.js} +1 -1
  143. package/dist/client/assets/{drawer-DDadqt4q.js → drawer-BleKwXKQ.js} +1 -1
  144. package/dist/client/assets/{dropdown-menu-l7cu0teq.js → dropdown-menu-DRuEZVW9.js} +1 -1
  145. package/dist/client/assets/{editor-DhL1XnKC.js → editor-oZAad1yU.js} +1 -1
  146. package/dist/client/assets/{empty-state-Cad5zFK6.js → empty-state-Bi9IU32F.js} +1 -1
  147. package/dist/client/assets/{empty-state-CbrMvgMW.js → empty-state-CaG0BWIR.js} +1 -1
  148. package/dist/client/assets/{extract-connection-data-Dh_Eo1wZ.js → extract-connection-data-C8zB3-0T.js} +1 -1
  149. package/dist/client/assets/{feature-gate-OPGtzGpZ.js → feature-gate-UfjS24Ou.js} +1 -1
  150. package/dist/client/assets/{feature-paywall-DsAStIcU.js → feature-paywall-pQTqQ94T.js} +1 -1
  151. package/dist/client/assets/{file-explorer-DAxbvkJk.js → file-explorer-s0AeRobY.js} +1 -1
  152. package/dist/client/assets/{file-preview-CDdVdNDx.js → file-preview-Dzjub9Lu.js} +1 -1
  153. package/dist/client/assets/{file-share-button-DTqbvQ69.js → file-share-button-BqqM0Upa.js} +1 -1
  154. package/dist/client/assets/{file-type-icon-DwxUV7LB.js → file-type-icon-CMiynV8b.js} +1 -1
  155. package/dist/client/assets/{folder-icon-Xf_qPSHt.js → folder-icon-3FCd-eRP.js} +1 -1
  156. package/dist/client/assets/{form-x2RdyMbl.js → form-H9AoFazU.js} +1 -1
  157. package/dist/client/assets/{gateway-client-D1lNGMSB.js → gateway-client-BQS5H6XZ.js} +1 -1
  158. package/dist/client/assets/{general-qL4c5feU.js → general-st9zEmU7.js} +1 -1
  159. package/dist/client/assets/{github-icon-BO2ZIrI7.js → github-icon-TtZ8EUXE.js} +1 -1
  160. package/dist/client/assets/{home-CLq77ImN.js → home-DMdfBPme.js} +1 -1
  161. package/dist/client/assets/{hooks-ClWLwZb6.js → hooks-D5z7CgCt.js} +1 -1
  162. package/dist/client/assets/{hooks-BX3ndMg6.js → hooks-abtcLONn.js} +1 -1
  163. package/dist/client/assets/{index-D04wJiA7.js → index-BC68yJ9a.js} +1 -1
  164. package/dist/client/assets/{index-Br-oQZuQ.js → index-BQgXOHRB.js} +1 -1
  165. package/dist/client/assets/{index-C_tMl4q8.js → index-C-9h82SA.js} +1 -1
  166. package/dist/client/assets/{index-BCcWkCUf.js → index-C1pofvkl.js} +1 -1
  167. package/dist/client/assets/{index-DHMJogsX.js → index-C4m-Xj9t.js} +1 -1
  168. package/dist/client/assets/{index-BhSpAyPc.js → index-CHIEfkY6.js} +1 -1
  169. package/dist/client/assets/{index-CSGdKnA2.js → index-CZFOUXi8.js} +1 -1
  170. package/dist/client/assets/{index-dzbklFKC.js → index-CdCU_XIc.js} +1 -1
  171. package/dist/client/assets/{index-BYo7xjw_.js → index-Cjhl57C5.js} +4 -4
  172. package/dist/client/assets/{index-DqscriGX.js → index-Cm__CFgO.js} +1 -1
  173. package/dist/client/assets/{index-B4f3l0bW.js → index-CoJzC8_g.js} +1 -1
  174. package/dist/client/assets/{index-Ciq75byn.js → index-DAUnTbKR.js} +1 -1
  175. package/dist/client/assets/{index-DIk-Tdn7.js → index-Os5Hiv1r.js} +1 -1
  176. package/dist/client/assets/{index-redirect-CgpYz1_8.js → index-redirect-BGMUaELH.js} +1 -1
  177. package/dist/client/assets/{index-Da4w1ozj.js → index-soiZgi77.js} +1 -1
  178. package/dist/client/assets/{index-DMoDLIev.js → index-tw-L0pq4.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-BegmJhfO.js → infiniteQueryObserver-CTAqrRzL.js} +1 -1
  180. package/dist/client/assets/{infra-billing-BcAZoLz6.js → infra-billing-D-R9Zdx8.js} +1 -1
  181. package/dist/client/assets/{input-B0Uinzv0.js → input-CImpk8th.js} +1 -1
  182. package/dist/client/assets/{input-Dzyq242f.js → input-DNp0K9zv.js} +1 -1
  183. package/dist/client/assets/{input-BWSDRY3j.js → input-DkPDVfFk.js} +1 -1
  184. package/dist/client/assets/{integration-icon-Jv69owhG.js → integration-icon-Dq1cJDX8.js} +1 -1
  185. package/dist/client/assets/{label-B9P1qvVv.js → label-Bk7iLZH7.js} +1 -1
  186. package/dist/client/assets/{last-preview-page-By8mKu-G.js → last-preview-page-BmfL1c7N.js} +1 -1
  187. package/dist/client/assets/{layout-BiLsgaKY.js → layout-Ci3akdxf.js} +1 -1
  188. package/dist/client/assets/{legacy-agents-deep-ARL8jf0f.js → legacy-agents-deep-CqdHGYTA.js} +1 -1
  189. package/dist/client/assets/{legacy-main-redirect-CU9SDsoJ.js → legacy-main-redirect-BqiddEXn.js} +1 -1
  190. package/dist/client/assets/{library-lIdeMZNG.js → library-BUfXzmmk.js} +1 -1
  191. package/dist/client/assets/{login-B-zmZILz.js → login-BUL2HRoD.js} +1 -1
  192. package/dist/client/assets/{markdown-BLbEs4th.js → markdown-Cqyyk371.js} +1 -1
  193. package/dist/client/assets/{mcp-app-renderer-BuE-fXND.js → mcp-app-renderer-zIU2-SQD.js} +1 -1
  194. package/dist/client/assets/{mcp-oauth-gEPmFmtm.js → mcp-oauth-qvcFIOHE.js} +1 -1
  195. package/dist/client/assets/{members-DPanptly.js → members-B2ASFRpM.js} +1 -1
  196. package/dist/client/assets/{message-templates-eLGXNsTs.js → message-templates-BvJNSKe2.js} +1 -1
  197. package/dist/client/assets/{mini-report-page-B9cbP96Z.js → mini-report-page-GL8Uh_Lo.js} +1 -1
  198. package/dist/client/assets/{mock-board-CuyyHaan.js → mock-board-D2--sNwu.js} +3 -3
  199. package/dist/client/assets/{monaco-editor-DL6feSNU.js → monaco-editor-Bg8UPXit.js} +1 -1
  200. package/dist/client/assets/{monitoring-stats-row-DqxN6GUk.js → monitoring-stats-row-C9igDEpY.js} +1 -1
  201. package/dist/client/assets/{multi-select-oKdD9DyQ.js → multi-select-B0yDI0nj.js} +1 -1
  202. package/dist/client/assets/{mustache-DJBjSsyb.js → mustache-CDAsLK2v.js} +1 -1
  203. package/dist/client/assets/{oauth-callback-BZYyT9aM.js → oauth-callback-D8Lk8lTx.js} +1 -1
  204. package/dist/client/assets/{oauth-callback-ai-provider-7PpM7Rdj.js → oauth-callback-ai-provider-P1E8_NRm.js} +1 -1
  205. package/dist/client/assets/{onboarding-YCDpp7Hz.js → onboarding-Df5HIECJ.js} +1 -1
  206. package/dist/client/assets/{optimistic-project-sidebar-views-Drp0GaY-.js → optimistic-project-sidebar-views-IR0sppyV.js} +1 -1
  207. package/dist/client/assets/{org-file-open-context-BFThBGhY.js → org-file-open-context-Dd47NmeH.js} +1 -1
  208. package/dist/client/assets/{organization-choice-BmTH1TFX.js → organization-choice-B_XEkc76.js} +1 -1
  209. package/dist/client/assets/{orgs-Bg15s_t6.js → orgs-BAOnfPU8.js} +1 -1
  210. package/dist/client/assets/{page-seo-form-2XHO2I5J.js → page-seo-form-DbL4-FYa.js} +1 -1
  211. package/dist/client/assets/{pair-CyjnQvo_.js → pair-BHYz9F-Z.js} +1 -1
  212. package/dist/client/assets/{plan-ladder-BxTjLX-u.js → plan-ladder-Cqfgwdfc.js} +1 -1
  213. package/dist/client/assets/{popover-ZSYA9qhq.js → popover-Bn0xXLy8.js} +1 -1
  214. package/dist/client/assets/{post-calendar-Dk7gydQI.js → post-calendar-6AuB-9GD.js} +1 -1
  215. package/dist/client/assets/{post-editor-EUWIRS7z.js → post-editor-D6gFXTiI.js} +1 -1
  216. package/dist/client/assets/{preview-content-DfENsiTd.js → preview-content-BJK2rc2w.js} +1 -1
  217. package/dist/client/assets/{preview-dialog-CZ7yktMz.js → preview-dialog-CdfWw2XK.js} +1 -1
  218. package/dist/client/assets/{primitives-Dc8nwNgw.js → primitives-CSJauIt5.js} +1 -1
  219. package/dist/client/assets/{profile-RjcjGxIC.js → profile-BUYSJtW_.js} +1 -1
  220. package/dist/client/assets/{project-app-view-vHys_Fc0.js → project-app-view-BAHsn_eP.js} +1 -1
  221. package/dist/client/assets/{project-feed-BQriF9RR.js → project-feed-La6-iUzD.js} +1 -1
  222. package/dist/client/assets/{project-icon-B44PuWmC.js → project-icon-CiuTzDLi.js} +1 -1
  223. package/dist/client/assets/project-reports-jZGDkYDU.js +1 -0
  224. package/dist/client/assets/project-tasks-BDg0EJtT.js +1 -0
  225. package/dist/client/assets/{prompts-DxKpvN4f.js → prompts-BAZWbRxz.js} +1 -1
  226. package/dist/client/assets/record-editor-C96ND1CU.js +1 -0
  227. package/dist/client/assets/{redirect-editor-QSnnvJNH.js → redirect-editor-9oPfVcJw.js} +1 -1
  228. package/dist/client/assets/{registry-layout-CS36QyR-.js → registry-layout-CrG4EYUR.js} +1 -1
  229. package/dist/client/assets/registry-rXZoWB8a.js +2 -0
  230. package/dist/client/assets/reports-C9YET_Fq.js +1 -0
  231. package/dist/client/assets/{reports-Caz12sYh.js → reports-DHS4fi6t.js} +1 -1
  232. package/dist/client/assets/{reports-onboarding-CpuoVkUT.js → reports-onboarding-BtdzeKZT.js} +1 -1
  233. package/dist/client/assets/{reports-tab-CTyrZeC2.js → reports-tab-B5bMQgk-.js} +2 -2
  234. package/dist/client/assets/{repositories-Css_5oB-.js → repositories-DbRCe9LF.js} +1 -1
  235. package/dist/client/assets/{repository-import-picker-BBGtjhUh.js → repository-import-picker-Bo_Cabzz.js} +1 -1
  236. package/dist/client/assets/{repository-picker-C-TSiXvU.js → repository-picker-CRqY_3jm.js} +1 -1
  237. package/dist/client/assets/{require-capability-BGOQRUEv.js → require-capability-CLz-loNQ.js} +1 -1
  238. package/dist/client/assets/{required-auth-layout-DfvknvbD.js → required-auth-layout-t1gcmOkS.js} +1 -1
  239. package/dist/client/assets/{reset-password-DqPNpLik.js → reset-password-C_PBrpSa.js} +1 -1
  240. package/dist/client/assets/{resizable-DtEfzvUR.js → resizable-CTEnH3yu.js} +1 -1
  241. package/dist/client/assets/{review-settings-DCvHN4QQ.js → review-settings-CIZvhdQE.js} +1 -1
  242. package/dist/client/assets/{rich-text-link-control-S-iuuCcb.js → rich-text-link-control-DdZo0zBm.js} +1 -1
  243. package/dist/client/assets/{roles-JesQ45E4.js → roles-D7Yxadr5.js} +1 -1
  244. package/dist/client/assets/{route-DxO9zGI3.js → route-BhbKY_6m.js} +1 -1
  245. package/dist/client/assets/{route-DYcLUzKq.js → route-DMLSQe3Y.js} +1 -1
  246. package/dist/client/assets/{route-BHp1yMIV.js → route-aV7nBxG9.js} +1 -1
  247. package/dist/client/assets/{runnable-block-editor-D2pnRUMc.js → runnable-block-editor-CNau3nKH.js} +1 -1
  248. package/dist/client/assets/{sandbox-lifecycle-context-BKxKj4xP.js → sandbox-lifecycle-context-Dhs5hLj1.js} +1 -1
  249. package/dist/client/assets/{schema-CGSQcL_x.js → schema-BTHH8GSh.js} +1 -1
  250. package/dist/client/assets/{scroll-area-DEsjJURz.js → scroll-area-YQLTU6PQ.js} +1 -1
  251. package/dist/client/assets/{search-input-Ckzw9Q8f.js → search-input-Cx2Izgwg.js} +1 -1
  252. package/dist/client/assets/{secrets-B-ypyy2r.js → secrets-B1YWh_ht.js} +1 -1
  253. package/dist/client/assets/{sections-editor-CH88tIrj.js → sections-editor-C4NhZuXp.js} +1 -1
  254. package/dist/client/assets/{select-KcyEErkL.js → select-C5Qbx8Kw.js} +1 -1
  255. package/dist/client/assets/{select-model-DMvqNufS.js → select-model-CIR4DebA.js} +1 -1
  256. package/dist/client/assets/{seo-editor-CAiJAVeJ.js → seo-editor-b4BYh3S0.js} +1 -1
  257. package/dist/client/assets/{settings-tab-BeEZ3rCK.js → settings-tab-wJidOo3Q.js} +1 -1
  258. package/dist/client/assets/{sheet-CuLnIbRo.js → sheet-DvqFDAlT.js} +1 -1
  259. package/dist/client/assets/{shell-layout-C6AQzwc3.js → shell-layout-knqcStSb.js} +1 -1
  260. package/dist/client/assets/{sidebar-BhJ_FDqo.js → sidebar-CPIvGktg.js} +1 -1
  261. package/dist/client/assets/{skill-preview-Cd79qVc9.js → skill-preview-Dr3uDA0q.js} +1 -1
  262. package/dist/client/assets/{skills-yKnfnfGJ.js → skills-B7mrIhFJ.js} +1 -1
  263. package/dist/client/assets/{sso-BUabXZ66.js → sso-JfSG6sY-.js} +1 -1
  264. package/dist/client/assets/{store-3eZAp6_n.js → store-CRU_7Bvk.js} +1 -1
  265. package/dist/client/assets/store-registry-Q0TOzx2-.js +2 -0
  266. package/dist/client/assets/{switch-C4XaykKw.js → switch-Cf30aXkY.js} +1 -1
  267. package/dist/client/assets/{synced-repos-DcnAsWA0.js → synced-repos-C5RH3GVW.js} +1 -1
  268. package/dist/client/assets/{table-CuChyRJ6.js → table-D6IMkB4T.js} +1 -1
  269. package/dist/client/assets/{tabs-CU7XBCqm.js → tabs-DSOAK--9.js} +1 -1
  270. package/dist/client/assets/{task-board-DyB0568a.js → task-board-DpuhnKzF.js} +1 -1
  271. package/dist/client/assets/{task-route-DadSSpKF.js → task-route-CPm3yGLT.js} +1 -1
  272. package/dist/client/assets/{task-status-BlXRiQX3.js → task-status-CesK2f9G.js} +1 -1
  273. package/dist/client/assets/{taskboard-analytics-DAdOZgEg.js → taskboard-analytics-DWWMZZdU.js} +1 -1
  274. package/dist/client/assets/{tasks-BfdiokBG.js → tasks-BGbHPX0w.js} +1 -1
  275. package/dist/client/assets/tasks-DTqkQgJb.js +1 -0
  276. package/dist/client/assets/{textarea-__p0yo6J.js → textarea-DXDx4Cy0.js} +1 -1
  277. package/dist/client/assets/{thread-intent-D1siGaGJ.js → thread-intent-Cdmdi4Qs.js} +1 -1
  278. package/dist/client/assets/{thread-route-CP3pE7Uw.js → thread-route-BMICHdvv.js} +1 -1
  279. package/dist/client/assets/{thread-route-DNm3Iu0z.js → thread-route-CnHTxNkK.js} +1 -1
  280. package/dist/client/assets/{thread-sheet-body-BXdoz1zb.js → thread-sheet-body-BGNoSu7i.js} +1 -1
  281. package/dist/client/assets/{toggle-group-DngX-VZh.js → toggle-group-Cj0z3PRY.js} +1 -1
  282. package/dist/client/assets/{toolbar-icon-button-CoaHzqzV.js → toolbar-icon-button-BehOLAeE.js} +1 -1
  283. package/dist/client/assets/{tooltip-DiUW72WF.js → tooltip-BDUrOxgN.js} +1 -1
  284. package/dist/client/assets/{track-BkvZQsBp.js → track-BJHbd99y.js} +1 -1
  285. package/dist/client/assets/{types-CVnCSrZu.js → types-DlfDRNRB.js} +1 -1
  286. package/dist/client/assets/{usage-stats-BXE2Nb57.js → usage-stats-nuoZXpxw.js} +1 -1
  287. package/dist/client/assets/{use-ai-providers-CTTRbTuh.js → use-ai-providers-QvFz5SFX.js} +1 -1
  288. package/dist/client/assets/{use-automations-DcNKFRtS.js → use-automations-jwtTHLHf.js} +1 -1
  289. package/dist/client/assets/{use-autosave-CoCLYAKc.js → use-autosave-D5Khb0ju.js} +1 -1
  290. package/dist/client/assets/{use-connect-companion-B81sEzsb.js → use-connect-companion-DDWKSdwn.js} +1 -1
  291. package/dist/client/assets/{use-connection-CM4EgQPU.js → use-connection-CpOBycNm.js} +1 -1
  292. package/dist/client/assets/{use-copy-C3r_mwJc.js → use-copy-M0GDas2Q.js} +1 -1
  293. package/dist/client/assets/{use-create-virtual-mcp-4OanjUDo.js → use-create-virtual-mcp-BFxHh87r.js} +1 -1
  294. package/dist/client/assets/{use-date-fns-locale-Bwn26aTV.js → use-date-fns-locale-BAJylOmL.js} +1 -1
  295. package/dist/client/assets/{use-debounced-autosave-CDIZf7vS.js → use-debounced-autosave-CAXyZd0j.js} +1 -1
  296. package/dist/client/assets/{use-debounced-value-Dt5Xp7np.js → use-debounced-value-CVkWNti9.js} +1 -1
  297. package/dist/client/assets/{use-deco-credits-BHIJCyKo.js → use-deco-credits-D4THYOkS.js} +1 -1
  298. package/dist/client/assets/{use-decopilot-events-B1TzFZ8t.js → use-decopilot-events-DlUI-60k.js} +1 -1
  299. package/dist/client/assets/{use-delete-connection-MEDuWXFM.js → use-delete-connection-BznnJgfw.js} +1 -1
  300. package/dist/client/assets/{use-deployment-admin-DhSh82eL.js → use-deployment-admin-Buoxj9IO.js} +1 -1
  301. package/dist/client/assets/{use-entitlements-Du1tEG7N.js → use-entitlements-BP7WwVM_.js} +1 -1
  302. package/dist/client/assets/{use-fast-preview-draft-url-JhDvVPsK.js → use-fast-preview-draft-url-Cu15Ye_n.js} +1 -1
  303. package/dist/client/assets/{use-file-configs-BlwCwjVB.js → use-file-configs-CyU7Mcil.js} +1 -1
  304. package/dist/client/assets/{use-infinite-scroll-C-upQcAM.js → use-infinite-scroll-AtjP0SZW.js} +1 -1
  305. package/dist/client/assets/{use-join-requests-B0KW0ohy.js → use-join-requests-aG0T3ECI.js} +1 -1
  306. package/dist/client/assets/{use-main-panel-tabs-A9lWrQg1.js → use-main-panel-tabs-IIO818_j.js} +1 -1
  307. package/dist/client/assets/{use-mcp-auth-status-DbP9ug3L.js → use-mcp-auth-status-bcJwzpw7.js} +1 -1
  308. package/dist/client/assets/{use-mcp-client-D-7BuLrC.js → use-mcp-client-Bf0VpOBw.js} +1 -1
  309. package/dist/client/assets/{use-mcp-prompts-OVUxMbpa.js → use-mcp-prompts-DxcgJEJ7.js} +1 -1
  310. package/dist/client/assets/{use-mcp-tools-Bka5B8hg.js → use-mcp-tools-DhZM9sTC.js} +1 -1
  311. package/dist/client/assets/{use-members-0fLORe9n.js → use-members-CsAzsmBA.js} +1 -1
  312. package/dist/client/assets/{use-mobile-C2LLCzmr.js → use-mobile-C5SrWG9H.js} +1 -1
  313. package/dist/client/assets/{use-navigate-to-agent-C_uFa92h.js → use-navigate-to-agent-DOYg6fyU.js} +1 -1
  314. package/dist/client/assets/{use-open-billing-url-CDGeF8Bu.js → use-open-billing-url-Cjz--xRu.js} +1 -1
  315. package/dist/client/assets/{use-org-auth-client-B9bt8Cd1.js → use-org-auth-client-C16MEGGe.js} +1 -1
  316. package/dist/client/assets/{use-org-fs-B-yTulsp.js → use-org-fs-BSDHmLev.js} +1 -1
  317. package/dist/client/assets/{use-org-notice-CKxbuoVc.js → use-org-notice-BALWnbFe.js} +1 -1
  318. package/dist/client/assets/{use-org-sso-DDMls_8S.js → use-org-sso-Dpa7KwXX.js} +1 -1
  319. package/dist/client/assets/{use-organization-roles-B8cSYq0q.js → use-organization-roles-Cog-K9KN.js} +1 -1
  320. package/dist/client/assets/{use-organization-settings-DmPwVQte.js → use-organization-settings-pqtCEzuj.js} +1 -1
  321. package/dist/client/assets/{use-panel-navigate-ambGkCyT.js → use-panel-navigate-bhAOxlzp.js} +1 -1
  322. package/dist/client/assets/{use-project-native-view-presence-BG-Guaa9.js → use-project-native-view-presence-DnirX6kM.js} +1 -1
  323. package/dist/client/assets/{use-project-scope-CQpPI5pW.js → use-project-scope-BfeOcOX-.js} +1 -1
  324. package/dist/client/assets/{use-registry-connections-Dwr4-IPF.js → use-registry-connections-BJotyFay.js} +1 -1
  325. package/dist/client/assets/{use-releases-B5rxjDuL.js → use-releases-CjPEhpWE.js} +1 -1
  326. package/dist/client/assets/{use-reports-diagnostic-DmNTAMUo.js → use-reports-diagnostic-R9_oa5XU.js} +1 -1
  327. package/dist/client/assets/{use-route-default-main-BGhZVnpH.js → use-route-default-main-DO9nAIOF.js} +1 -1
  328. package/dist/client/assets/{use-secrets-2K048iDI.js → use-secrets-Do9S2OuA.js} +1 -1
  329. package/dist/client/assets/{use-section-preview-base-DGf1SdCz.js → use-section-preview-base-DTsnvRL8.js} +1 -1
  330. package/dist/client/assets/{use-session-runtime-DRNcjNGp.js → use-session-runtime--RMOkDN5.js} +1 -1
  331. package/dist/client/assets/{use-tags-Dz0JHmit.js → use-tags-C-xYWG0d.js} +1 -1
  332. package/dist/client/assets/{use-task-board-analytics-BAbIvIck.js → use-task-board-analytics-DqKWhXe3.js} +1 -1
  333. package/dist/client/assets/{use-task-metadata-DFjC02ql.js → use-task-metadata-Bm567Cyu.js} +1 -1
  334. package/dist/client/assets/{use-thread-outputs-CNFVOo0z.js → use-thread-outputs-DA9fNv-d.js} +1 -1
  335. package/dist/client/assets/{use-view-mode-8Q0KLbhQ.js → use-view-mode-mEqX4oRI.js} +1 -1
  336. package/dist/client/assets/{use-virtual-mcp-BqJjq2ej.js → use-virtual-mcp-BvrPyGzX.js} +1 -1
  337. package/dist/client/assets/useInfiniteQuery-C-lwb5Ji.js +1 -0
  338. package/dist/client/assets/{useQueries-CA76Qw5x.js → useQueries-DqQ6INqi.js} +1 -1
  339. package/dist/client/assets/useSuspenseInfiniteQuery-CjJ_vWiS.js +1 -0
  340. package/dist/client/assets/{users-CxTXFPjN.js → users-BS3mOvNq.js} +1 -1
  341. package/dist/client/assets/{utils-Bsd7FiR5.js → utils-DAYUNxCI.js} +1 -1
  342. package/dist/client/assets/{variant-calendar-un_6bKKS.js → variant-calendar-D_T3c3MC.js} +1 -1
  343. package/dist/client/assets/{variant-matcher-override-DxweoUUC.js → variant-matcher-override-BSFlzIhP.js} +1 -1
  344. package/dist/client/assets/{view-mode-toggle-DYM-xxC9.js → view-mode-toggle-CzqFE_Lp.js} +1 -1
  345. package/dist/client/assets/{virtual-mcp-DuQ9gz9U.js → virtual-mcp-CG3JbZx8.js} +1 -1
  346. package/dist/client/index.html +1 -1
  347. package/dist/server/cli.js +152 -140
  348. package/dist/server/server.js +144 -132
  349. package/package.json +1 -1
  350. package/dist/client/assets/agent-app-CVC_Lvyo.js +0 -1
  351. package/dist/client/assets/agent-deck-7gpymxb7.js +0 -1
  352. package/dist/client/assets/agent-file-CSxJMcjv.js +0 -1
  353. package/dist/client/assets/agent-library-file-ISKmBGds.js +0 -1
  354. package/dist/client/assets/agent-settings-DWKPsWvq.js +0 -1
  355. package/dist/client/assets/agent-site-editor-code-Cafkyw0y.js +0 -2
  356. package/dist/client/assets/agent-view-DZGYQu75.js +0 -1
  357. package/dist/client/assets/api-keys-Cx887mfW.js +0 -1
  358. package/dist/client/assets/app-editor-FvLT9tg7.js +0 -1
  359. package/dist/client/assets/automations-stm8A17b.js +0 -1
  360. package/dist/client/assets/category-editor-m0T0M7LG.js +0 -1
  361. package/dist/client/assets/project-reports-BN2wnBRk.js +0 -1
  362. package/dist/client/assets/project-tasks-BiN2QJyD.js +0 -1
  363. package/dist/client/assets/record-editor-C0OpqhBn.js +0 -1
  364. package/dist/client/assets/registry-BNANrwsH.js +0 -2
  365. package/dist/client/assets/reports-ClRllm5D.js +0 -1
  366. package/dist/client/assets/store-registry-BSlzFQHg.js +0 -2
  367. package/dist/client/assets/tasks-CJSTXe38.js +0 -1
  368. package/dist/client/assets/useInfiniteQuery-BigrA6tZ.js +0 -1
  369. package/dist/client/assets/useSuspenseInfiniteQuery-OUbXRXpI.js +0 -1
@@ -1 +1 @@
1
- import{c as n,l as f,j as i,aX as N,aW as y,ae as S,aY as v,aZ as $,b0 as C,a_ as w}from"./index-BYo7xjw_.js";import{i as k}from"./X-BH7q4C1t.js";function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function z(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function E(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(R,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",b=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(z,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function O(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{P as S,E as a,D as b,O as c,T as d};
1
+ import{c as n,l as f,j as i,aX as N,aW as y,ae as S,aY as v,aZ as $,b0 as C,a_ as w}from"./index-Cjhl57C5.js";import{i as k}from"./X-Dh_K-VDi.js";function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function z(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function E(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(R,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",b=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(z,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function O(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{P as S,E as a,D as b,O as c,T as d};
@@ -1 +1 @@
1
- import{c as z,b as J,e as He,j as n,B as F,t as Ke,bu as de,D as wt,a as qe,w as Bt,z as vt,K as Ge,bv as Kt,bw as Ht,J as Fe,l as it,au as Ut,r as X,R as Gt,a1 as oe,d as jt,M as ct,x as kt,m as Ue,o as at,ag as Tt,bx as Jt,an as Vt,as as ut,v as Wt,by as Yt,bz as Qt,bA as Xt,bB as Zt,bC as en,F as tn,u as nn,X as sn,bD as on,bE as an,k as Nt,bF as st,bG as rn,bH as ln,O as cn,bI as dn}from"./index-BYo7xjw_.js";import{A as tt}from"./avatar-CA5LIB-l.js";import{t as _t,b as mt}from"./Users03-CUK-7hPD.js";import{i as un}from"./SearchLg-D8sOk12E.js";import{aa as mn,a9 as fn,ab as ee,ac as gn,r as hn,ad as pn,n as ft,f as yn,e as bn,ae as xn,d as Sn}from"./agent-icon-CWoY8dlp.js";import{s as wn}from"./XClose-2vlbdyhB.js";import{D as vn}from"./download-app-dialog-Dd6sw41_.js";import{l as At}from"./anchors-yqDzZN4K.js";import{a as jn,u as kn}from"./use-project-scope-CQpPI5pW.js";import{i as Tn,u as Nn}from"./use-org-notice-CKxbuoVc.js";import{u as Pt,a as _n}from"./use-panel-navigate-ambGkCyT.js";import{i as ie}from"./CheckCircle-CSZ4Kehv.js";import{i as gt}from"./Tool02-DEN5a-af.js";import{i as ot}from"./Monitor01-BcYUPleF.js";import{i as ae}from"./Zap-Df8_LH9g.js";import{c as Ct,d as Et,b as It,D as Ot,h as An,e as Pn}from"./dialog-D57kq_tP.js";import{S as Cn,u as En,c as In,i as ht,o as On,a as Ln}from"./command-palette-store-AuoaPk0G.js";import{i as $n}from"./Share07-CWr7FJF7.js";import{s as pt}from"./Plus-BEdGLMcS.js";import{a as Dn}from"./Settings02-7e_CWXN4.js";import{b as re,a as Me,f as Rn,e as zn,c as Fn,C as qn}from"./command-Aa0mYduw.js";import{I as Mn}from"./integration-icon-Jv69owhG.js";import{P as Bn}from"./project-icon-B44PuWmC.js";import{a as Kn,m as Hn}from"./use-mcp-client-D-7BuLrC.js";import{u as Un}from"./use-is-desktop-app-BNujXJc_.js";import{R as Gn}from"./required-auth-layout-DfvknvbD.js";import{A as Jn}from"./autosend-DBLW1BiY.js";import{u as Vn,a as Wn,b as Yn,c as Qn}from"./thread-route-DNm3Iu0z.js";import{u as Xn}from"./hooks-ClWLwZb6.js";import{b as Zn}from"./use-organization-settings-DmPwVQte.js";import{u as es}from"./use-org-sso-DDMls_8S.js";function ts(t){const e=z.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();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=>{Ke.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=He(v),b=ns;let p;e[11]!==s||e[12]!==o?(p=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=p):p=e[13];let l;e[14]!==o||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,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]!==o||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=c.isPending,e[30]=o,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{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(F,{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(de,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function yt(t){const e=z.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=ss,u=s==="not-found",m=u?un:wt;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]!==o||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=o,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(F,{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(de,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=z.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let u;e[0]!==o?(u=async()=>{const O=await qe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=u):u=e[1];let m;e[2]!==s?(m=()=>{Bt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=O=>{Ke.error(O instanceof Error?O.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=He(v);let b;e[10]!==o?(b=async()=>{const O=await qe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ke.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=O=>{Ke.error(O instanceof Error?O.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=He(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(tt,{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(F,{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(F,{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 I;return e[55]!==N||e[56]!==C||e[57]!==S?(I=n.jsxs(de,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=I):I=e[58],I}function is(t){const e=z.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(tt,{url:r,fallback:o.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]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,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]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,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]!==s?(c=s("common.requestPendingScreen.goHome"),e[15]=s,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,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(de,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=z.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();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=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ke.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=He(v);let b;e[8]!==s||e[9]!==o?(b=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=b):b=e[10];let p;e[11]!==o||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,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(F,{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(F,{variant:"ghost",onClick:ls,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(de,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=z.c(7);let o;e[0]!==t?(o=Ge.orgAccessStatus(t),e[0]=t,e[1]=o):o=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 s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],vt(s)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Kt()?.org===t&&Ht();const o=localStorage.getItem(Fe.lastOrgSlug())===t;if(o&&localStorage.removeItem(Fe.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(yt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(yt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=z.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,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(F,{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=it("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]!==s?(P=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,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:it("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]!==o||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":o,"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]=o,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms=[{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 fs(t){return ms.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function gs(t,e){return fs(e).map(o=>({element:At(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const hs=At("switcher"),ps=30;function $t(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ys(t,e){return gs(t,e).filter(o=>typeof o.element=="string"&&$t(o.element))}function bs(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:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Be=!1},steps:e}}let Be=!1;async function xs(){return(await Ut(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ss(t,e){if(Be)return;Be=!0;let o=0;const r=()=>{if(!$t(hs)&&o++<ps){requestAnimationFrame(r);return}const s=ys(t,e);if(s.length===0){Be=!1;return}xs().then(a=>{a(bs(t,s)).drive()}).catch(()=>{Be=!1})};r()}const ws=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,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:ot,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:ot,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:ie,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:ae,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:ae,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:ot,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:ie,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:ae,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:ie,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:ae,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:ie,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:ae,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:ie,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:ae,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:ie,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:ae,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:gt,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:ie,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:mt,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:ae,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:ie,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:gt,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."}]}],Dt=ws,et="studio.release-feed.v1",rt=new Set;let le="",ce={},lt=!1;function vs(){if(lt)return le||"{}";try{return localStorage.getItem(et)??"{}"}catch{return le||"{}"}}function Rt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function bt(){const t=vs();return t!==le&&(le=t,ce=Rt(t)),ce}function js(t){rt.add(t);const e=o=>{if(!(o.key!==et&&o.key!==null)){try{const r=localStorage.getItem(et)??"{}",a={...Rt(r),...ce};ce=a,le=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function ks(t){ce=t,le=JSON.stringify(t);try{localStorage.setItem(et,le),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function Ts(){const t=z.c(7),e=X.useSyncExternalStore(js,bt,bt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=Ns;let a;t[2]!==e?(a=Dt.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:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function Ns(t){ce[t]||ks({...ce,[t]:{seenAt:new Date().toISOString()}})}const _s=720*60*60*1e3,As=10080*60*1e3;function Ps(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Cs(t){const e=Dt[0];if(!e)return null;const o=Ps(e.date),r=t-o;return r<0||r>_s?null:e}function Es(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 Is(t,e){const o=Es(t);return o===null?!1:e-o>=As}function Os(){const t=z.c(52),e=J(),o=jn(),r=Gt(),s=Pt(),a=!!o,i=r===oe.home&&!o;let u;t[0]!==s||t[1]!==a?(u=a&&!!s&&Tn(s),t[0]=s,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=qe.useSession(),{isSeen:v,markSeen:c}=Ts(),[b,p]=X.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const I=Date.now();if(l=Cs(I),!l){d=null;break e}if(!Is(h?.user?.createdAt,I)){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),Ss(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(F,{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(F,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(F,{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(Ls),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=I=>{p(I),I||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(Lt,{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 Ls(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)}function $s(t){const e=z.c(11),{open:o,onOpenChange:r}=t,s=J();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Ct,{children:n.jsx(Et,{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:Cn.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]!==o||e[9]!==m?(h=n.jsx(Ot,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,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(zs)})]},t.description)}function zs(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 xt=8;function Fs(t){const{org:e}=ct(),o=Kn({connectionId:kt,orgId:e.id,orgSlug:e.slug}),{data:r}=Ue({queryKey:Ge.globalSearch(e.id,t,xt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:xt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function qs(t){const e=z.c(192),{open:o,onOpenChange:r}=t,s=J(),a=jt(),{org:i}=ct(),{projects:u,hasProjects:m}=kn(),[h,v]=X.useState(""),c=X.useDeferredValue(h),b=Fs(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=(q,V)=>{at("command_palette_used",{kind:V}),q(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){a({to:oe.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const V=Tt(i.id).id;Jt(a,Vt({org:i.slug,agentId:q.virtual_mcp_id??V,superAgentId:V}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,I,O,R;if(e[10]!==l||e[11]!==d||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==S||e[18]!==i.slug||e[19]!==u||e[20]!==w||e[21]!==s||e[22]!==h){const q=b.filter(Bs),V=b.filter(Ms);let te;e[36]!==i.slug?(te={org:i.slug},e[36]=i.slug,e[37]=te):te=e[37];const D=te;let Z;e[38]!==s?(Z=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Z):Z=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(yn,{}),e[40]=W):W=e[40];let K;e[41]!==D||e[42]!==Z?(K={key:"home",label:Z,icon:W,to:oe.home,params:D},e[41]=D,e[42]=Z,e[43]=K):K=e[43];let Y;e[44]!==s?(Y=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=Y):Y=e[45];let ne;e[46]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(bn,{}),e[46]=ne):ne=e[46];let H;e[47]!==D||e[48]!==Y?(H={key:"reports",label:Y,icon:ne,to:oe.reports,params:D},e[47]=D,e[48]=Y,e[49]=H):H=e[49];let U;e[50]!==s?(U=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=U):U=e[51];let se;e[52]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(ft,{}),e[52]=se):se=e[52];let Q;e[53]!==i.slug?(Q={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Q):Q=e[54];let L;e[55]!==U||e[56]!==Q?(L={key:"tasks",label:U,icon:se,to:oe.tasks,params:Q},e[55]=U,e[56]=Q,e[57]=L):L=e[57];let M;e[58]!==s?(M=s("sidebar.navDestinations.library"),e[58]=s,e[59]=M):M=e[59];let Je;e[60]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx($n,{}),e[60]=Je):Je=e[60];let ue;e[61]!==D||e[62]!==M?(ue={key:"library",label:M,icon:Je,to:oe.library,params:D},e[61]=D,e[62]=M,e[63]=ue):ue=e[63];let me;e[64]!==s?(me=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=me):me=e[65];let Ve;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ve=n.jsx(xn,{}),e[66]=Ve):Ve=e[66];let fe;e[67]!==D||e[68]!==me?(fe={key:"discover",label:me,icon:Ve,to:oe.discover,params:D},e[67]=D,e[68]=me,e[69]=fe):fe=e[69];let We;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==ue||e[74]!==fe?(We=[K,H,L,ue,fe],e[70]=K,e[71]=H,e[72]=L,e[73]=ue,e[74]=fe,e[75]=We):We=e[75];const nt=We;P=Rn,j=o,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==s?(T=s("commandPalette.title"),e[79]=s,e[80]=T):T=e[80],e[81]!==s?(k=s("commandPalette.description"),e[81]=s,e[82]=k):k=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84],e[85]!==ge||e[86]!==h?(A=n.jsx(zn,{placeholder:ge,value:h,onValueChange:v}),e[85]=ge,e[86]=h,e[87]=A):A=e[87],_=Fn;let he;e[88]!==s?(he=s("commandPalette.empty"),e[88]=s,e[89]=he):he=e[89],e[90]!==he?(E=n.jsx(qn,{children:he}),e[90]=he,e[91]=E):E=e[91];let pe;e[92]!==s?(pe=s("commandPalette.goTo"),e[92]=s,e[93]=pe):pe=e[93];let ye;e[94]!==nt||e[95]!==d||e[96]!==a?(ye=nt.map($=>n.jsxs(re,{onSelect:()=>d(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[94]=nt,e[95]=d,e[96]=a,e[97]=ye):ye=e[97],e[98]!==pe||e[99]!==ye?(C=n.jsx(Me,{heading:pe,children:ye}),e[98]=pe,e[99]=ye,e[100]=C):C=e[100],e[101]!==d||e[102]!==m||e[103]!==a||e[104]!==i.slug||e[105]!==u||e[106]!==s?(I=m&&n.jsx(Me,{heading:s("commandPalette.projects"),children:u.map($=>n.jsxs(re,{value:`project ${$.title}`,onSelect:()=>d(()=>a({to:oe.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(Bn,{icon:$.icon,name:$.title}),n.jsx("span",{children:$.title})]},$.id))}),e[101]=d,e[102]=m,e[103]=a,e[104]=i.slug,e[105]=u,e[106]=s,e[107]=I):I=e[107];let be;e[108]!==s?(be=s("commandPalette.actions"),e[108]=s,e[109]=be):be=e[109];let xe;e[110]!==s?(xe=s("commandPalette.newProject"),e[110]=s,e[111]=xe):xe=e[111];let Se;e[112]!==d||e[113]!==a||e[114]!==D?(Se=()=>d(()=>a({to:oe.home,params:D}),"new_project"),e[112]=d,e[113]=a,e[114]=D,e[115]=Se):Se=e[115];let Ye;e[116]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(pt,{}),e[116]=Ye):Ye=e[116];let we;e[117]!==s?(we=s("commandPalette.newProject"),e[117]=s,e[118]=we):we=e[118];let ve;e[119]!==we?(ve=n.jsx("span",{children:we}),e[119]=we,e[120]=ve):ve=e[120];let je;e[121]!==xe||e[122]!==Se||e[123]!==ve?(je=n.jsxs(re,{value:xe,onSelect:Se,children:[Ye,ve]}),e[121]=xe,e[122]=Se,e[123]=ve,e[124]=je):je=e[124];let ke;e[125]!==s?(ke=s("commandPalette.inviteTeammate"),e[125]=s,e[126]=ke):ke=e[126];let Te;e[127]!==d||e[128]!==a||e[129]!==D?(Te=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[127]=d,e[128]=a,e[129]=D,e[130]=Te):Te=e[130];let Qe;e[131]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Sn,{}),e[131]=Qe):Qe=e[131];let Ne;e[132]!==s?(Ne=s("commandPalette.inviteTeammate"),e[132]=s,e[133]=Ne):Ne=e[133];let _e;e[134]!==Ne?(_e=n.jsx("span",{children:Ne}),e[134]=Ne,e[135]=_e):_e=e[135];let Ae;e[136]!==ke||e[137]!==Te||e[138]!==_e?(Ae=n.jsxs(re,{value:ke,onSelect:Te,children:[Qe,_e]}),e[136]=ke,e[137]=Te,e[138]=_e,e[139]=Ae):Ae=e[139];let Pe;e[140]!==s?(Pe=s("commandPalette.addConnection"),e[140]=s,e[141]=Pe):Pe=e[141];let Ce;e[142]!==d||e[143]!==a||e[144]!==D?(Ce=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[142]=d,e[143]=a,e[144]=D,e[145]=Ce):Ce=e[145];let Xe;e[146]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(pt,{}),e[146]=Xe):Xe=e[146];let Ee;e[147]!==s?(Ee=s("commandPalette.addConnection"),e[147]=s,e[148]=Ee):Ee=e[148];let Ie;e[149]!==Ee?(Ie=n.jsx("span",{children:Ee}),e[149]=Ee,e[150]=Ie):Ie=e[150];let Oe;e[151]!==Pe||e[152]!==Ce||e[153]!==Ie?(Oe=n.jsxs(re,{value:Pe,onSelect:Ce,children:[Xe,Ie]}),e[151]=Pe,e[152]=Ce,e[153]=Ie,e[154]=Oe):Oe=e[154];let Le;e[155]!==s?(Le=s("commandPalette.settings"),e[155]=s,e[156]=Le):Le=e[156];let $e;e[157]!==d||e[158]!==a||e[159]!==D?($e=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[157]=d,e[158]=a,e[159]=D,e[160]=$e):$e=e[160];let Ze;e[161]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Dn,{}),e[161]=Ze):Ze=e[161];let De;e[162]!==s?(De=s("commandPalette.settings"),e[162]=s,e[163]=De):De=e[163];let Re;e[164]!==De?(Re=n.jsx("span",{children:De}),e[164]=De,e[165]=Re):Re=e[165];let ze;e[166]!==Le||e[167]!==$e||e[168]!==Re?(ze=n.jsxs(re,{value:Le,onSelect:$e,children:[Ze,Re]}),e[166]=Le,e[167]=$e,e[168]=Re,e[169]=ze):ze=e[169],e[170]!==be||e[171]!==je||e[172]!==Ae||e[173]!==Oe||e[174]!==ze?(O=n.jsxs(Me,{heading:be,children:[je,Ae,Oe,ze]}),e[170]=be,e[171]=je,e[172]=Ae,e[173]=Oe,e[174]=ze,e[175]=O):O=e[175],R=q.length>0&&n.jsx(Me,{heading:s("commandPalette.connections"),children:q.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),"connection"),children:[n.jsx(Mn,{icon:$.icon,name:$.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=V.length>0&&n.jsx(Me,{heading:s("commandPalette.results"),children:V.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),$.type),children:[$.type==="thread"?n.jsx(pn,{}):n.jsx(ft,{}),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[10]=l,e[11]=d,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=o,e[17]=S,e[18]=i.slug,e[19]=u,e[20]=w,e[21]=s,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=I,e[34]=O,e[35]=R}else _=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],I=e[33],O=e[34],R=e[35];let B;e[176]!==_||e[177]!==N||e[178]!==E||e[179]!==C||e[180]!==I||e[181]!==O||e[182]!==R?(B=n.jsxs(_,{children:[E,C,I,O,R,N]}),e[176]=_,e[177]=N,e[178]=E,e[179]=C,e[180]=I,e[181]=O,e[182]=R,e[183]=B):B=e[183];let G;return e[184]!==P||e[185]!==j||e[186]!==g||e[187]!==T||e[188]!==k||e[189]!==A||e[190]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[184]=P,e[185]=j,e[186]=g,e[187]=T,e[188]=k,e[189]=A,e[190]=B,e[191]=G):G=e[191],G}function Ms(t){return t.type!=="connection"}function Bs(t){return t.type==="connection"}const Ks=300*1e3,Hs=2;function Us(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Gs(t,e){return t.count>=Hs&&t.version!==null&&t.version!==e}function Js(){const t=z.c(43),e=J(),o=Un();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Ws},t[0]=r):r=t[0];const s=He(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ge.appVersionCheck(),queryFn:Vs,refetchInterval:Ks,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ue(a),[m,h]=X.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]=X.useState(v);u!==m&&(h(u),b(B=>Us(B,i,"4.371.4")));const[p,l]=X.useState(null),f=o;let d;t[3]!==o||t[4]!==s?(d=()=>window.location.reload(),t[3]=o,t[4]=s,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Gs(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(ut,{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.371.4"}),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=it(E),t[25]=E,t[26]=C):C=t[26];let I;t[27]!==C?(I=n.jsx(ut,{size:14,className:C}),t[27]=C,t[28]=I):I=t[28];let O;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==I?(O=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,I]}),t[29]=x,t[30]=f,t[31]=A,t[32]=I,t[33]=O):O=t[33];let R;return t[34]!==T||t[35]!==k||t[36]!==O||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(R=n.jsx(Lt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:O}),t[34]=T,t[35]=k,t[36]=O,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=R):R=t[42],R}async function Vs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Ws(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Ys(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Qs=Date.parse("2026-07-21T00:00:00Z"),St=t=>Ys(Fe.ptBrAnnouncementSeen(t));function Xs(){const t=z.c(35),e=J(),[o,r]=Wt(),{data:s,isPending:a}=qe.useSession(),i=s?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<Qs,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&o.language==="en"&&!St(u).has(),[b,p]=X.useState(!1),[l,f]=X.useState(!1);!b&&!a&&(p(!0),c&&u&&(St(u).mark(),r(eo),f(!0),at("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{at("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(Zs),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(Et,{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(An,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Ct,{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(F,{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 I;t[24]!==C?(I=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=I):I=t[25];let O;t[26]!==A||t[27]!==I?(O=n.jsxs(Pn,{children:[A,I]}),t[26]=A,t[27]=I,t[28]=O):O=t[28];let R;t[29]!==O||t[30]!==T?(R=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,O]}),t[29]=O,t[30]=T,t[31]=R):R=t[31];let B;return t[32]!==l||t[33]!==R?(B=n.jsx(Ot,{open:l,onOpenChange:w,children:R}),t[32]=l,t[33]=R,t[34]=B):B=t[34],B}function Zs(t){return{...t,language:"en"}}function eo(t){return{...t,language:"pt-BR"}}function to(t){const e=Qt(t);return typeof e=="string"?e:void 0}function no(){return to("experiment-pipeline-check"),null}function so(t){const e=z.c(1),{activeOrg:o}=t;if(!o)return null;Xt(o.id,{name:o.name??void 0,slug:o.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(no,{}),e[0]=r):r=e[0],r}function oo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,u={mainpanel:void 0};o?u.virtualmcpid=o:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(o??m)!==m;let c,b;return a?.panel?b=a.panel:s?(b=s.tab,s.sidepanel!==void 0&&(c=s.sidepanel),s.mainpanel!==void 0&&(u.mainpanel=s.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 zt="studio:thread-layout:v4",io=50;function Ft(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 ao(t,e,o,r=io){const s=t.filter(([a])=>a!==e);for(s.push([e,Ft(o)]);s.length>r;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(zt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qt(t){try{sessionStorage.setItem(zt,JSON.stringify(t))}catch{}}function ro(t,e){t&&qt(ao(dt(),t,e))}function lo(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Ft(e[1]):null}function ti(t){if(!t)return;const e=dt(),o=e.filter(([r])=>r!==t);o.length!==e.length&&qt(o)}function Mt(t){return{queryKey:Ge.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 ni(t){const e=z.c(10);let o;e[0]!==t?(o=Mt(t),e[0]=t,e[1]=o):o=e[1];const r=Ue(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=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]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function co(t){const e=z.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const u=i,m=uo;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(wt,{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]!==s||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,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(F,{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(F,{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(de,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function uo(){window.location.href="/"}function mo(t){const e=z.c(27),{notice:o,orgSlug:r}=t,s=J();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]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let u;e[3]!==o.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.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]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==s?(c=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{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]!==s?(p=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{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(de,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const fo="/settings/infra-billing";function go(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(fo)}function ho(t){const e=z.c(8),{org:o,children:r}=t,a=Zn(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==a?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:a,ui:null},e[0]=o.id,e[1]=o.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==o||e[6]!==u?(m=n.jsx(dn,{org:o,project:u,children:r}),e[4]=r,e[5]=o,e[6]=u,e[7]=m):m=e[7],m}function po(){const t=jt(),e=Xn(),{org:o}=ct(),r=nn({strict:!1}),s=Pt(),{openPanel:a,closePanel:i}=_n(),u=Vn(),m=Wn(),h=Yn(),v=Qn(),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&&ro(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:lo(f),w=Tt(o.id).id,_=oo({prev:{virtualmcpid:u,tabId:s},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Jn});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 yo=new Set(["/$org/","/$org/home"]);function bo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:xo},t[0]=e):e=t[0],Nt(e)}function xo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&yo.has(e)}function So(){const t=z.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,[s,a]=X.useState(!1),[i,u]=En(),m=on(),h=bo(),v=r??"";let c;t[1]!==v?(c=Mt(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],Ue(p);const{data:l}=qe.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=M=>{if(ht(M)&&M.code==="KeyK"){M.preventDefault(),On();return}if(M.key==="?"&&!Ln(M.target)){M.preventDefault(),a(!0);return}ht(M)&&M.code==="BracketLeft"&&m.history.canGoBack()&&(M.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]),X.useEffect(S,y);let w;t[12]!==r?(w=Ge.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 qe.organization.getFullOrganization({query:{organizationSlug:r}}).finally(vo),M=st(L);return L&&!M&&localStorage.setItem(Fe.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}=vt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Nn(k);let I;t[22]===Symbol.for("react.memo_cache_sentinel")?(I={select:wo},t[22]=I):I=t[22];const O=Nt(I),R=C?.severity==="block"&&!go(O),B=T??"",G=k??"";let q;t[23]!==B||t[24]!==G?(q=Hn({connectionId:kt,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=q):q=t[25];const V=!!T&&!!k;let te;if(t[26]!==q||t[27]!==V?(te={...q,enabled:V},t[26]=q,t[27]=V,t[28]=te):te=t[28],Ue(te),(!g||st(g)||E||R)&&In(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(st(g)){localStorage.getItem(Fe.lastOrgSlug())===r&&localStorage.removeItem(Fe.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(R&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(mo,{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(co,{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 W;t[41]!==g||t[42]!==Z?(W={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=W):W=t[43];let K;t[44]!==g?(K=n.jsx(so,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(cn,{}),t[46]=Y):Y=t[46];let ne;t[47]===Symbol.for("react.memo_cache_sentinel")?(ne=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(Os,{}),n.jsx(Js,{})]}),t[47]=ne):ne=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(qs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==s?(U=n.jsx($s,{open:s,onOpenChange:a}),t[51]=s,t[52]=U):U=t[52];let se;t[53]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(Xs,{}),t[53]=se):se=t[53];let Q;return t[54]!==W||t[55]!==K||t[56]!==H||t[57]!==U?(Q=n.jsxs(ho,{org:W,children:[K,Y,ne,H,U,se]}),t[54]=W,t[55]=K,t[56]=H,t[57]=U,t[58]=Q):Q=t[58],Q}function wo(t){return t.location.pathname}function vo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function jo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Gn,{children:n.jsx(So,{})}),t[0]=e):e=t[0],e}const si=Object.freeze(Object.defineProperty({__proto__:null,default:jo,usePanelActions:po},Symbol.toStringTag,{value:"Module"}));export{ni as a,ti as f,si as s,po as u};
1
+ import{c as z,b as J,e as He,j as n,B as F,t as Ke,bu as de,D as wt,a as qe,w as Bt,z as vt,K as Ge,bv as Kt,bw as Ht,J as Fe,l as it,au as Ut,r as X,R as Gt,a1 as oe,d as jt,M as ct,x as kt,m as Ue,o as at,ag as Tt,bx as Jt,an as Vt,as as ut,v as Wt,by as Yt,bz as Qt,bA as Xt,bB as Zt,bC as en,F as tn,u as nn,X as sn,bD as on,bE as an,k as Nt,bF as st,bG as rn,bH as ln,O as cn,bI as dn}from"./index-Cjhl57C5.js";import{A as tt}from"./avatar-CR9KEb-s.js";import{t as _t,b as mt}from"./Users03-BaYGM99c.js";import{i as un}from"./SearchLg-BZUR3n9c.js";import{aa as mn,a9 as fn,ab as ee,ac as gn,r as hn,ad as pn,n as ft,f as yn,e as bn,ae as xn,d as Sn}from"./agent-icon-Cyx7Smko.js";import{s as wn}from"./XClose-Bw0VS-dj.js";import{D as vn}from"./download-app-dialog-DQE0snIy.js";import{l as At}from"./anchors-yqDzZN4K.js";import{a as jn,u as kn}from"./use-project-scope-BfeOcOX-.js";import{i as Tn,u as Nn}from"./use-org-notice-BALWnbFe.js";import{u as Pt,a as _n}from"./use-panel-navigate-bhAOxlzp.js";import{i as ie}from"./CheckCircle-DQbrJHsr.js";import{i as gt}from"./Tool02-CE2Fqpba.js";import{i as ot}from"./Monitor01-BoIweS2p.js";import{i as ae}from"./Zap-TxetSnv7.js";import{c as Ct,d as Et,b as It,D as Ot,h as An,e as Pn}from"./dialog-SKkzdrcZ.js";import{S as Cn,u as En,c as In,i as ht,o as On,a as Ln}from"./command-palette-store-BL5hnWnv.js";import{i as $n}from"./Share07-BypmcbEF.js";import{s as pt}from"./Plus-C5azC59K.js";import{a as Dn}from"./Settings02-BLcAotUO.js";import{b as re,a as Me,f as Rn,e as zn,c as Fn,C as qn}from"./command-CtFXOSiX.js";import{I as Mn}from"./integration-icon-Dq1cJDX8.js";import{P as Bn}from"./project-icon-CiuTzDLi.js";import{a as Kn,m as Hn}from"./use-mcp-client-Bf0VpOBw.js";import{u as Un}from"./use-is-desktop-app-BNujXJc_.js";import{R as Gn}from"./required-auth-layout-t1gcmOkS.js";import{A as Jn}from"./autosend-ClVEnX_S.js";import{u as Vn,a as Wn,b as Yn,c as Qn}from"./thread-route-CnHTxNkK.js";import{u as Xn}from"./hooks-D5z7CgCt.js";import{b as Zn}from"./use-organization-settings-pqtCEzuj.js";import{u as es}from"./use-org-sso-Dpa7KwXX.js";function ts(t){const e=z.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();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=>{Ke.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=He(v),b=ns;let p;e[11]!==s||e[12]!==o?(p=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=p):p=e[13];let l;e[14]!==o||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,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]!==o||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=c.isPending,e[30]=o,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{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(F,{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(de,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function yt(t){const e=z.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=ss,u=s==="not-found",m=u?un:wt;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]!==o||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=o,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(F,{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(de,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=z.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let u;e[0]!==o?(u=async()=>{const O=await qe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=u):u=e[1];let m;e[2]!==s?(m=()=>{Bt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=O=>{Ke.error(O instanceof Error?O.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=He(v);let b;e[10]!==o?(b=async()=>{const O=await qe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ke.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=O=>{Ke.error(O instanceof Error?O.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=He(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(tt,{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(F,{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(F,{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 I;return e[55]!==N||e[56]!==C||e[57]!==S?(I=n.jsxs(de,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=I):I=e[58],I}function is(t){const e=z.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(tt,{url:r,fallback:o.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]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,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]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,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]!==s?(c=s("common.requestPendingScreen.goHome"),e[15]=s,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,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(de,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=z.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();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=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ke.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=He(v);let b;e[8]!==s||e[9]!==o?(b=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=b):b=e[10];let p;e[11]!==o||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,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(F,{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(F,{variant:"ghost",onClick:ls,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(de,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=z.c(7);let o;e[0]!==t?(o=Ge.orgAccessStatus(t),e[0]=t,e[1]=o):o=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 s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],vt(s)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Kt()?.org===t&&Ht();const o=localStorage.getItem(Fe.lastOrgSlug())===t;if(o&&localStorage.removeItem(Fe.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(yt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(yt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=z.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,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(F,{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=it("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]!==s?(P=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,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:it("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]!==o||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":o,"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]=o,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms=[{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 fs(t){return ms.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function gs(t,e){return fs(e).map(o=>({element:At(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const hs=At("switcher"),ps=30;function $t(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ys(t,e){return gs(t,e).filter(o=>typeof o.element=="string"&&$t(o.element))}function bs(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:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Be=!1},steps:e}}let Be=!1;async function xs(){return(await Ut(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ss(t,e){if(Be)return;Be=!0;let o=0;const r=()=>{if(!$t(hs)&&o++<ps){requestAnimationFrame(r);return}const s=ys(t,e);if(s.length===0){Be=!1;return}xs().then(a=>{a(bs(t,s)).drive()}).catch(()=>{Be=!1})};r()}const ws=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,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:ot,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:ot,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:ie,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:ae,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:ae,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:ot,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:ie,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:ae,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:ie,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:ae,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:ie,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:ae,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:ie,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:ae,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:ie,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:ae,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:gt,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:ie,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:mt,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:ae,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:ie,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:gt,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."}]}],Dt=ws,et="studio.release-feed.v1",rt=new Set;let le="",ce={},lt=!1;function vs(){if(lt)return le||"{}";try{return localStorage.getItem(et)??"{}"}catch{return le||"{}"}}function Rt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function bt(){const t=vs();return t!==le&&(le=t,ce=Rt(t)),ce}function js(t){rt.add(t);const e=o=>{if(!(o.key!==et&&o.key!==null)){try{const r=localStorage.getItem(et)??"{}",a={...Rt(r),...ce};ce=a,le=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function ks(t){ce=t,le=JSON.stringify(t);try{localStorage.setItem(et,le),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function Ts(){const t=z.c(7),e=X.useSyncExternalStore(js,bt,bt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=Ns;let a;t[2]!==e?(a=Dt.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:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function Ns(t){ce[t]||ks({...ce,[t]:{seenAt:new Date().toISOString()}})}const _s=720*60*60*1e3,As=10080*60*1e3;function Ps(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Cs(t){const e=Dt[0];if(!e)return null;const o=Ps(e.date),r=t-o;return r<0||r>_s?null:e}function Es(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 Is(t,e){const o=Es(t);return o===null?!1:e-o>=As}function Os(){const t=z.c(52),e=J(),o=jn(),r=Gt(),s=Pt(),a=!!o,i=r===oe.home&&!o;let u;t[0]!==s||t[1]!==a?(u=a&&!!s&&Tn(s),t[0]=s,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=qe.useSession(),{isSeen:v,markSeen:c}=Ts(),[b,p]=X.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const I=Date.now();if(l=Cs(I),!l){d=null;break e}if(!Is(h?.user?.createdAt,I)){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),Ss(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(F,{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(F,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(F,{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(Ls),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=I=>{p(I),I||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(Lt,{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 Ls(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)}function $s(t){const e=z.c(11),{open:o,onOpenChange:r}=t,s=J();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Ct,{children:n.jsx(Et,{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:Cn.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]!==o||e[9]!==m?(h=n.jsx(Ot,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,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(zs)})]},t.description)}function zs(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 xt=8;function Fs(t){const{org:e}=ct(),o=Kn({connectionId:kt,orgId:e.id,orgSlug:e.slug}),{data:r}=Ue({queryKey:Ge.globalSearch(e.id,t,xt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:xt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function qs(t){const e=z.c(192),{open:o,onOpenChange:r}=t,s=J(),a=jt(),{org:i}=ct(),{projects:u,hasProjects:m}=kn(),[h,v]=X.useState(""),c=X.useDeferredValue(h),b=Fs(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=(q,V)=>{at("command_palette_used",{kind:V}),q(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){a({to:oe.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const V=Tt(i.id).id;Jt(a,Vt({org:i.slug,agentId:q.virtual_mcp_id??V,superAgentId:V}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,I,O,R;if(e[10]!==l||e[11]!==d||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==S||e[18]!==i.slug||e[19]!==u||e[20]!==w||e[21]!==s||e[22]!==h){const q=b.filter(Bs),V=b.filter(Ms);let te;e[36]!==i.slug?(te={org:i.slug},e[36]=i.slug,e[37]=te):te=e[37];const D=te;let Z;e[38]!==s?(Z=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Z):Z=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(yn,{}),e[40]=W):W=e[40];let K;e[41]!==D||e[42]!==Z?(K={key:"home",label:Z,icon:W,to:oe.home,params:D},e[41]=D,e[42]=Z,e[43]=K):K=e[43];let Y;e[44]!==s?(Y=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=Y):Y=e[45];let ne;e[46]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(bn,{}),e[46]=ne):ne=e[46];let H;e[47]!==D||e[48]!==Y?(H={key:"reports",label:Y,icon:ne,to:oe.reports,params:D},e[47]=D,e[48]=Y,e[49]=H):H=e[49];let U;e[50]!==s?(U=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=U):U=e[51];let se;e[52]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(ft,{}),e[52]=se):se=e[52];let Q;e[53]!==i.slug?(Q={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Q):Q=e[54];let L;e[55]!==U||e[56]!==Q?(L={key:"tasks",label:U,icon:se,to:oe.tasks,params:Q},e[55]=U,e[56]=Q,e[57]=L):L=e[57];let M;e[58]!==s?(M=s("sidebar.navDestinations.library"),e[58]=s,e[59]=M):M=e[59];let Je;e[60]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx($n,{}),e[60]=Je):Je=e[60];let ue;e[61]!==D||e[62]!==M?(ue={key:"library",label:M,icon:Je,to:oe.library,params:D},e[61]=D,e[62]=M,e[63]=ue):ue=e[63];let me;e[64]!==s?(me=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=me):me=e[65];let Ve;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ve=n.jsx(xn,{}),e[66]=Ve):Ve=e[66];let fe;e[67]!==D||e[68]!==me?(fe={key:"discover",label:me,icon:Ve,to:oe.discover,params:D},e[67]=D,e[68]=me,e[69]=fe):fe=e[69];let We;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==ue||e[74]!==fe?(We=[K,H,L,ue,fe],e[70]=K,e[71]=H,e[72]=L,e[73]=ue,e[74]=fe,e[75]=We):We=e[75];const nt=We;P=Rn,j=o,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==s?(T=s("commandPalette.title"),e[79]=s,e[80]=T):T=e[80],e[81]!==s?(k=s("commandPalette.description"),e[81]=s,e[82]=k):k=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84],e[85]!==ge||e[86]!==h?(A=n.jsx(zn,{placeholder:ge,value:h,onValueChange:v}),e[85]=ge,e[86]=h,e[87]=A):A=e[87],_=Fn;let he;e[88]!==s?(he=s("commandPalette.empty"),e[88]=s,e[89]=he):he=e[89],e[90]!==he?(E=n.jsx(qn,{children:he}),e[90]=he,e[91]=E):E=e[91];let pe;e[92]!==s?(pe=s("commandPalette.goTo"),e[92]=s,e[93]=pe):pe=e[93];let ye;e[94]!==nt||e[95]!==d||e[96]!==a?(ye=nt.map($=>n.jsxs(re,{onSelect:()=>d(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[94]=nt,e[95]=d,e[96]=a,e[97]=ye):ye=e[97],e[98]!==pe||e[99]!==ye?(C=n.jsx(Me,{heading:pe,children:ye}),e[98]=pe,e[99]=ye,e[100]=C):C=e[100],e[101]!==d||e[102]!==m||e[103]!==a||e[104]!==i.slug||e[105]!==u||e[106]!==s?(I=m&&n.jsx(Me,{heading:s("commandPalette.projects"),children:u.map($=>n.jsxs(re,{value:`project ${$.title}`,onSelect:()=>d(()=>a({to:oe.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(Bn,{icon:$.icon,name:$.title}),n.jsx("span",{children:$.title})]},$.id))}),e[101]=d,e[102]=m,e[103]=a,e[104]=i.slug,e[105]=u,e[106]=s,e[107]=I):I=e[107];let be;e[108]!==s?(be=s("commandPalette.actions"),e[108]=s,e[109]=be):be=e[109];let xe;e[110]!==s?(xe=s("commandPalette.newProject"),e[110]=s,e[111]=xe):xe=e[111];let Se;e[112]!==d||e[113]!==a||e[114]!==D?(Se=()=>d(()=>a({to:oe.home,params:D}),"new_project"),e[112]=d,e[113]=a,e[114]=D,e[115]=Se):Se=e[115];let Ye;e[116]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(pt,{}),e[116]=Ye):Ye=e[116];let we;e[117]!==s?(we=s("commandPalette.newProject"),e[117]=s,e[118]=we):we=e[118];let ve;e[119]!==we?(ve=n.jsx("span",{children:we}),e[119]=we,e[120]=ve):ve=e[120];let je;e[121]!==xe||e[122]!==Se||e[123]!==ve?(je=n.jsxs(re,{value:xe,onSelect:Se,children:[Ye,ve]}),e[121]=xe,e[122]=Se,e[123]=ve,e[124]=je):je=e[124];let ke;e[125]!==s?(ke=s("commandPalette.inviteTeammate"),e[125]=s,e[126]=ke):ke=e[126];let Te;e[127]!==d||e[128]!==a||e[129]!==D?(Te=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[127]=d,e[128]=a,e[129]=D,e[130]=Te):Te=e[130];let Qe;e[131]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Sn,{}),e[131]=Qe):Qe=e[131];let Ne;e[132]!==s?(Ne=s("commandPalette.inviteTeammate"),e[132]=s,e[133]=Ne):Ne=e[133];let _e;e[134]!==Ne?(_e=n.jsx("span",{children:Ne}),e[134]=Ne,e[135]=_e):_e=e[135];let Ae;e[136]!==ke||e[137]!==Te||e[138]!==_e?(Ae=n.jsxs(re,{value:ke,onSelect:Te,children:[Qe,_e]}),e[136]=ke,e[137]=Te,e[138]=_e,e[139]=Ae):Ae=e[139];let Pe;e[140]!==s?(Pe=s("commandPalette.addConnection"),e[140]=s,e[141]=Pe):Pe=e[141];let Ce;e[142]!==d||e[143]!==a||e[144]!==D?(Ce=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[142]=d,e[143]=a,e[144]=D,e[145]=Ce):Ce=e[145];let Xe;e[146]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(pt,{}),e[146]=Xe):Xe=e[146];let Ee;e[147]!==s?(Ee=s("commandPalette.addConnection"),e[147]=s,e[148]=Ee):Ee=e[148];let Ie;e[149]!==Ee?(Ie=n.jsx("span",{children:Ee}),e[149]=Ee,e[150]=Ie):Ie=e[150];let Oe;e[151]!==Pe||e[152]!==Ce||e[153]!==Ie?(Oe=n.jsxs(re,{value:Pe,onSelect:Ce,children:[Xe,Ie]}),e[151]=Pe,e[152]=Ce,e[153]=Ie,e[154]=Oe):Oe=e[154];let Le;e[155]!==s?(Le=s("commandPalette.settings"),e[155]=s,e[156]=Le):Le=e[156];let $e;e[157]!==d||e[158]!==a||e[159]!==D?($e=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[157]=d,e[158]=a,e[159]=D,e[160]=$e):$e=e[160];let Ze;e[161]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Dn,{}),e[161]=Ze):Ze=e[161];let De;e[162]!==s?(De=s("commandPalette.settings"),e[162]=s,e[163]=De):De=e[163];let Re;e[164]!==De?(Re=n.jsx("span",{children:De}),e[164]=De,e[165]=Re):Re=e[165];let ze;e[166]!==Le||e[167]!==$e||e[168]!==Re?(ze=n.jsxs(re,{value:Le,onSelect:$e,children:[Ze,Re]}),e[166]=Le,e[167]=$e,e[168]=Re,e[169]=ze):ze=e[169],e[170]!==be||e[171]!==je||e[172]!==Ae||e[173]!==Oe||e[174]!==ze?(O=n.jsxs(Me,{heading:be,children:[je,Ae,Oe,ze]}),e[170]=be,e[171]=je,e[172]=Ae,e[173]=Oe,e[174]=ze,e[175]=O):O=e[175],R=q.length>0&&n.jsx(Me,{heading:s("commandPalette.connections"),children:q.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),"connection"),children:[n.jsx(Mn,{icon:$.icon,name:$.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=V.length>0&&n.jsx(Me,{heading:s("commandPalette.results"),children:V.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),$.type),children:[$.type==="thread"?n.jsx(pn,{}):n.jsx(ft,{}),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[10]=l,e[11]=d,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=o,e[17]=S,e[18]=i.slug,e[19]=u,e[20]=w,e[21]=s,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=I,e[34]=O,e[35]=R}else _=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],I=e[33],O=e[34],R=e[35];let B;e[176]!==_||e[177]!==N||e[178]!==E||e[179]!==C||e[180]!==I||e[181]!==O||e[182]!==R?(B=n.jsxs(_,{children:[E,C,I,O,R,N]}),e[176]=_,e[177]=N,e[178]=E,e[179]=C,e[180]=I,e[181]=O,e[182]=R,e[183]=B):B=e[183];let G;return e[184]!==P||e[185]!==j||e[186]!==g||e[187]!==T||e[188]!==k||e[189]!==A||e[190]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[184]=P,e[185]=j,e[186]=g,e[187]=T,e[188]=k,e[189]=A,e[190]=B,e[191]=G):G=e[191],G}function Ms(t){return t.type!=="connection"}function Bs(t){return t.type==="connection"}const Ks=300*1e3,Hs=2;function Us(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Gs(t,e){return t.count>=Hs&&t.version!==null&&t.version!==e}function Js(){const t=z.c(43),e=J(),o=Un();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Ws},t[0]=r):r=t[0];const s=He(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ge.appVersionCheck(),queryFn:Vs,refetchInterval:Ks,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ue(a),[m,h]=X.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]=X.useState(v);u!==m&&(h(u),b(B=>Us(B,i,"4.372.0")));const[p,l]=X.useState(null),f=o;let d;t[3]!==o||t[4]!==s?(d=()=>window.location.reload(),t[3]=o,t[4]=s,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Gs(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(ut,{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.372.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=it(E),t[25]=E,t[26]=C):C=t[26];let I;t[27]!==C?(I=n.jsx(ut,{size:14,className:C}),t[27]=C,t[28]=I):I=t[28];let O;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==I?(O=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,I]}),t[29]=x,t[30]=f,t[31]=A,t[32]=I,t[33]=O):O=t[33];let R;return t[34]!==T||t[35]!==k||t[36]!==O||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(R=n.jsx(Lt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:O}),t[34]=T,t[35]=k,t[36]=O,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=R):R=t[42],R}async function Vs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Ws(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Ys(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Qs=Date.parse("2026-07-21T00:00:00Z"),St=t=>Ys(Fe.ptBrAnnouncementSeen(t));function Xs(){const t=z.c(35),e=J(),[o,r]=Wt(),{data:s,isPending:a}=qe.useSession(),i=s?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<Qs,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&o.language==="en"&&!St(u).has(),[b,p]=X.useState(!1),[l,f]=X.useState(!1);!b&&!a&&(p(!0),c&&u&&(St(u).mark(),r(eo),f(!0),at("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{at("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(Zs),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(Et,{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(An,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Ct,{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(F,{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 I;t[24]!==C?(I=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=I):I=t[25];let O;t[26]!==A||t[27]!==I?(O=n.jsxs(Pn,{children:[A,I]}),t[26]=A,t[27]=I,t[28]=O):O=t[28];let R;t[29]!==O||t[30]!==T?(R=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,O]}),t[29]=O,t[30]=T,t[31]=R):R=t[31];let B;return t[32]!==l||t[33]!==R?(B=n.jsx(Ot,{open:l,onOpenChange:w,children:R}),t[32]=l,t[33]=R,t[34]=B):B=t[34],B}function Zs(t){return{...t,language:"en"}}function eo(t){return{...t,language:"pt-BR"}}function to(t){const e=Qt(t);return typeof e=="string"?e:void 0}function no(){return to("experiment-pipeline-check"),null}function so(t){const e=z.c(1),{activeOrg:o}=t;if(!o)return null;Xt(o.id,{name:o.name??void 0,slug:o.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(no,{}),e[0]=r):r=e[0],r}function oo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,u={mainpanel:void 0};o?u.virtualmcpid=o:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(o??m)!==m;let c,b;return a?.panel?b=a.panel:s?(b=s.tab,s.sidepanel!==void 0&&(c=s.sidepanel),s.mainpanel!==void 0&&(u.mainpanel=s.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 zt="studio:thread-layout:v4",io=50;function Ft(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 ao(t,e,o,r=io){const s=t.filter(([a])=>a!==e);for(s.push([e,Ft(o)]);s.length>r;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(zt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qt(t){try{sessionStorage.setItem(zt,JSON.stringify(t))}catch{}}function ro(t,e){t&&qt(ao(dt(),t,e))}function lo(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Ft(e[1]):null}function ti(t){if(!t)return;const e=dt(),o=e.filter(([r])=>r!==t);o.length!==e.length&&qt(o)}function Mt(t){return{queryKey:Ge.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 ni(t){const e=z.c(10);let o;e[0]!==t?(o=Mt(t),e[0]=t,e[1]=o):o=e[1];const r=Ue(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=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]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function co(t){const e=z.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const u=i,m=uo;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(wt,{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]!==s||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,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(F,{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(F,{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(de,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function uo(){window.location.href="/"}function mo(t){const e=z.c(27),{notice:o,orgSlug:r}=t,s=J();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]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let u;e[3]!==o.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.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]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==s?(c=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{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]!==s?(p=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{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(de,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const fo="/settings/infra-billing";function go(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(fo)}function ho(t){const e=z.c(8),{org:o,children:r}=t,a=Zn(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==a?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:a,ui:null},e[0]=o.id,e[1]=o.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==o||e[6]!==u?(m=n.jsx(dn,{org:o,project:u,children:r}),e[4]=r,e[5]=o,e[6]=u,e[7]=m):m=e[7],m}function po(){const t=jt(),e=Xn(),{org:o}=ct(),r=nn({strict:!1}),s=Pt(),{openPanel:a,closePanel:i}=_n(),u=Vn(),m=Wn(),h=Yn(),v=Qn(),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&&ro(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:lo(f),w=Tt(o.id).id,_=oo({prev:{virtualmcpid:u,tabId:s},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Jn});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 yo=new Set(["/$org/","/$org/home"]);function bo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:xo},t[0]=e):e=t[0],Nt(e)}function xo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&yo.has(e)}function So(){const t=z.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,[s,a]=X.useState(!1),[i,u]=En(),m=on(),h=bo(),v=r??"";let c;t[1]!==v?(c=Mt(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],Ue(p);const{data:l}=qe.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=M=>{if(ht(M)&&M.code==="KeyK"){M.preventDefault(),On();return}if(M.key==="?"&&!Ln(M.target)){M.preventDefault(),a(!0);return}ht(M)&&M.code==="BracketLeft"&&m.history.canGoBack()&&(M.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]),X.useEffect(S,y);let w;t[12]!==r?(w=Ge.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 qe.organization.getFullOrganization({query:{organizationSlug:r}}).finally(vo),M=st(L);return L&&!M&&localStorage.setItem(Fe.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}=vt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Nn(k);let I;t[22]===Symbol.for("react.memo_cache_sentinel")?(I={select:wo},t[22]=I):I=t[22];const O=Nt(I),R=C?.severity==="block"&&!go(O),B=T??"",G=k??"";let q;t[23]!==B||t[24]!==G?(q=Hn({connectionId:kt,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=q):q=t[25];const V=!!T&&!!k;let te;if(t[26]!==q||t[27]!==V?(te={...q,enabled:V},t[26]=q,t[27]=V,t[28]=te):te=t[28],Ue(te),(!g||st(g)||E||R)&&In(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(st(g)){localStorage.getItem(Fe.lastOrgSlug())===r&&localStorage.removeItem(Fe.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(R&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(mo,{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(co,{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 W;t[41]!==g||t[42]!==Z?(W={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=W):W=t[43];let K;t[44]!==g?(K=n.jsx(so,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(cn,{}),t[46]=Y):Y=t[46];let ne;t[47]===Symbol.for("react.memo_cache_sentinel")?(ne=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(Os,{}),n.jsx(Js,{})]}),t[47]=ne):ne=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(qs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==s?(U=n.jsx($s,{open:s,onOpenChange:a}),t[51]=s,t[52]=U):U=t[52];let se;t[53]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(Xs,{}),t[53]=se):se=t[53];let Q;return t[54]!==W||t[55]!==K||t[56]!==H||t[57]!==U?(Q=n.jsxs(ho,{org:W,children:[K,Y,ne,H,U,se]}),t[54]=W,t[55]=K,t[56]=H,t[57]=U,t[58]=Q):Q=t[58],Q}function wo(t){return t.location.pathname}function vo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function jo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Gn,{children:n.jsx(So,{})}),t[0]=e):e=t[0],e}const si=Object.freeze(Object.defineProperty({__proto__:null,default:jo,usePanelActions:po},Symbol.toStringTag,{value:"Module"}));export{ni as a,ti as f,si as s,po as u};
@@ -1 +1 @@
1
- import{c as y,r as O,j as o,l as N,B as A,aU as P,aq as R}from"./index-BYo7xjw_.js";import{i as H}from"./Printer-BgQcHd8s.js";import{u as V}from"./use-mobile-C2LLCzmr.js";import{b as W,c as q,S as L,d as F,a as U}from"./sheet-CuLnIbRo.js";import{b as $,T as B,a as E,c as z}from"./tooltip-DiUW72WF.js";const G="15rem",J="18rem",K="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[u,g]=O.useState(!1),c=a!==void 0,p=c?a:n;let S;e[0]!==c||e[1]!==i?(S=_=>{c||x(_),i?.(_)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const f=S;let w;e[3]!==r||e[4]!==p||e[5]!==f?(w=()=>{r?g(Q):f(!p)},e[3]=r,e[4]=p,e[5]=f,e[6]=w):w=e[6];const j=w,m=p?"expanded":"collapsed";let b;e[7]!==r||e[8]!==p||e[9]!==u||e[10]!==f||e[11]!==m||e[12]!==j?(b={state:m,open:p,setOpen:f,isMobile:r,openMobile:u,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=p,e[9]=u,e[10]=f,e[11]=m,e[12]=j,e[13]=b):b=e[13];const v=b;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let C;return e[16]!==v||e[17]!==h?(C=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=C):C=e[18],C}function Q(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":G,"--sidebar-width-icon":K,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:u,openMobile:g,setOpenMobile:c}=D();if(x){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":J},e[6]=C):C=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsxs(q,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(F,{children:"Displays the mobile sidebar."})]}),e[7]=_):_=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(U,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:r,children:[_,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const p=u==="expanded",S=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==S?(f=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=f):f=e[19];const w=p?void 0:"icon",j=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let b;e[23]!==t?(b=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=b):b=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==b?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:b}),e[25]=a,e[26]=m,e[27]=b,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==u||e[31]!==f||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:f,"data-state":u,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=u,e[31]=f,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=p=>{s?.(p),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==r?(u=o.jsx(B,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=u):u=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(E,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==u?(c=o.jsx($,{delayDuration:300,children:o.jsxs(z,{children:[u,g]})}),e[16]=u,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function be(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,u=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,p=x?P:"button",{isMobile:S}=D();let f;e[8]!==t||e[9]!==c||e[10]!==g?(f=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=f):f=e[11];let w;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==c||e[16]!==f?(w=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":u,className:f,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=c,e[16]=f,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx(B,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let b;e[22]!==S||e[23]!==n?(b=o.jsx(E,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=b):b=e[24];let v;return e[25]!==m||e[26]!==b?(v=o.jsxs(z,{children:[m,b]}),e[25]=m,e[26]=b,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,be as c,fe as d,ue as e,de as f,ce as g,re as h,ne as i,D as u};
1
+ import{c as y,r as O,j as o,l as N,B as A,aU as P,aq as R}from"./index-Cjhl57C5.js";import{i as H}from"./Printer-Dn2De3ak.js";import{u as V}from"./use-mobile-C5SrWG9H.js";import{b as W,c as q,S as L,d as F,a as U}from"./sheet-DvqFDAlT.js";import{b as $,T as B,a as E,c as z}from"./tooltip-BDUrOxgN.js";const G="15rem",J="18rem",K="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[u,g]=O.useState(!1),c=a!==void 0,p=c?a:n;let S;e[0]!==c||e[1]!==i?(S=_=>{c||x(_),i?.(_)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const f=S;let w;e[3]!==r||e[4]!==p||e[5]!==f?(w=()=>{r?g(Q):f(!p)},e[3]=r,e[4]=p,e[5]=f,e[6]=w):w=e[6];const j=w,m=p?"expanded":"collapsed";let b;e[7]!==r||e[8]!==p||e[9]!==u||e[10]!==f||e[11]!==m||e[12]!==j?(b={state:m,open:p,setOpen:f,isMobile:r,openMobile:u,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=p,e[9]=u,e[10]=f,e[11]=m,e[12]=j,e[13]=b):b=e[13];const v=b;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let C;return e[16]!==v||e[17]!==h?(C=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=C):C=e[18],C}function Q(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":G,"--sidebar-width-icon":K,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:u,openMobile:g,setOpenMobile:c}=D();if(x){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":J},e[6]=C):C=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsxs(q,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(F,{children:"Displays the mobile sidebar."})]}),e[7]=_):_=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(U,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:r,children:[_,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const p=u==="expanded",S=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==S?(f=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=f):f=e[19];const w=p?void 0:"icon",j=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let b;e[23]!==t?(b=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=b):b=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==b?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:b}),e[25]=a,e[26]=m,e[27]=b,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==u||e[31]!==f||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:f,"data-state":u,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=u,e[31]=f,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=p=>{s?.(p),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==r?(u=o.jsx(B,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=u):u=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(E,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==u?(c=o.jsx($,{delayDuration:300,children:o.jsxs(z,{children:[u,g]})}),e[16]=u,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function be(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,u=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,p=x?P:"button",{isMobile:S}=D();let f;e[8]!==t||e[9]!==c||e[10]!==g?(f=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=f):f=e[11];let w;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==c||e[16]!==f?(w=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":u,className:f,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=c,e[16]=f,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx(B,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let b;e[22]!==S||e[23]!==n?(b=o.jsx(E,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=b):b=e[24];let v;return e[25]!==m||e[26]!==b?(v=o.jsxs(z,{children:[m,b]}),e[25]=m,e[26]=b,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,be as c,fe as d,ue as e,de as f,ce as g,re as h,ne as i,D as u};
@@ -1 +1 @@
1
- import{c as E,j as s,r as K,ax as u,l as M,B as T}from"./index-BYo7xjw_.js";import{b as R,D as _,d as q,i as A}from"./dialog-D57kq_tP.js";import{i as $}from"./X-BH7q4C1t.js";import{i as G}from"./Zap-Df8_LH9g.js";import{M as H}from"./markdown-BLbEs4th.js";import{F as J}from"./file-preview-CDdVdNDx.js";import{F as Q}from"./file-type-icon-DwxUV7LB.js";import{i as V,c as W,l as X}from"./use-org-fs-B-yTulsp.js";import{p as Y,b as c}from"./location-oTTXFrSF.js";import{p as Z}from"./skill-md-ChfVs4uF.js";function ee(n){const e=E.c(18),{skillPath:m,onClose:a,variant:t}=n,i=Y(m),{volume:r,dirPath:o}=i,P=V(),U=P(r??"",`${o}/SKILL.md`),d=W(U),D=X(r??"",o);let g;e[0]!==o?(g=c(o),e[0]=o,e[1]=g):g=e[1];const B=g;let j;e[2]!==d.data?(j=d.data?Z(d.data):null,e[2]=d.data,e[3]=j):j=e[3];const b=j,v=te;let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=(l,h)=>v(l.path)?-1:v(h.path)?1:c(l.path).localeCompare(c(h.path)),e[4]=N):N=e[4];const L=(D.data??[]).filter(se).sort(N),[z,I]=K.useState(null),x=z===null?null:L.find(l=>l.path===z)??null,k=b?.name??B;let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:s.jsx(G,{size:18})}),e[5]=w):w=e[5];let f;e[6]!==k||e[7]!==t?(f=t==="dialog"?s.jsx(q,{className:"flex-1 truncate text-base font-medium text-foreground",children:k}):s.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:k}),e[6]=k,e[7]=t,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==t?(p=t==="dialog"?s.jsx(A,{asChild:!0,children:s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:s.jsx($,{size:16})})}):s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:a,children:s.jsx($,{size:16})}),e[9]=a,e[10]=t,e[11]=p):p=e[11];let y;e[12]!==f||e[13]!==p?(y=s.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[w,f,p]}),e[12]=f,e[13]=p,e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=C):C=e[15];const O="relative flex min-w-0 flex-1 flex-col overflow-y-auto",F=x?s.jsx(J,{file:{key:x.path,filename:c(x.path),size:x.size,downloadUrl:P(r??"",x.path)}}):d.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(u,{className:"h-4 w-1/3"}),s.jsx(u,{className:"h-3 w-full"}),s.jsx(u,{className:"h-3 w-5/6"}),s.jsx(u,{className:"h-3 w-2/3"})]}):d.isError||!b?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),s.jsx("p",{className:"text-base text-muted-foreground",children:b.description??"Claude Code skill"})]}),s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:s.jsx(H,{id:`skill-preview-${m}`,text:b.body})})]});let S;return e[16]!==F?(S=s.jsx("div",{className:O,children:F}),e[16]=F,e[17]=S):S=e[17],s.jsxs(s.Fragment,{children:[y,s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[C,D.isPending?s.jsx(u,{className:"mx-2 h-4 w-24"}):L.map(l=>{const h=v(l.path)?x===null:z===l.path;return s.jsxs("button",{type:"button",onClick:()=>I(v(l.path)?null:l.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",h?"bg-background shadow-sm":"hover:bg-muted/60"),children:[s.jsx(Q,{filename:c(l.path),className:"h-6 w-5 shrink-0"}),s.jsx("span",{className:M("truncate text-sm",h?"text-foreground":"text-muted-foreground"),children:c(l.path)})]},l.path)})]}),S]})]})}function se(n){return n.kind==="file"}function te(n){return c(n)==="SKILL.md"}function fe(n){const e=E.c(8),{skillPath:m,onClose:a}=n;let t;e[0]!==a?(t=o=>{o||a()},e[0]=a,e[1]=t):t=e[1];let i;e[2]!==a||e[3]!==m?(i=s.jsx(R,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:s.jsx(ee,{skillPath:m,onClose:a,variant:"dialog"})}),e[2]=a,e[3]=m,e[4]=i):i=e[4];let r;return e[5]!==t||e[6]!==i?(r=s.jsx(_,{open:!0,onOpenChange:t,children:i}),e[5]=t,e[6]=i,e[7]=r):r=e[7],r}export{fe as S};
1
+ import{c as E,j as s,r as K,ax as u,l as M,B as T}from"./index-Cjhl57C5.js";import{b as R,D as _,d as q,i as A}from"./dialog-SKkzdrcZ.js";import{i as $}from"./X-Dh_K-VDi.js";import{i as G}from"./Zap-TxetSnv7.js";import{M as H}from"./markdown-Cqyyk371.js";import{F as J}from"./file-preview-Dzjub9Lu.js";import{F as Q}from"./file-type-icon-CMiynV8b.js";import{i as V,c as W,l as X}from"./use-org-fs-BSDHmLev.js";import{p as Y,b as c}from"./location-oTTXFrSF.js";import{p as Z}from"./skill-md-ChfVs4uF.js";function ee(n){const e=E.c(18),{skillPath:m,onClose:a,variant:t}=n,i=Y(m),{volume:r,dirPath:o}=i,P=V(),U=P(r??"",`${o}/SKILL.md`),d=W(U),D=X(r??"",o);let g;e[0]!==o?(g=c(o),e[0]=o,e[1]=g):g=e[1];const B=g;let j;e[2]!==d.data?(j=d.data?Z(d.data):null,e[2]=d.data,e[3]=j):j=e[3];const b=j,v=te;let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=(l,h)=>v(l.path)?-1:v(h.path)?1:c(l.path).localeCompare(c(h.path)),e[4]=N):N=e[4];const L=(D.data??[]).filter(se).sort(N),[z,I]=K.useState(null),x=z===null?null:L.find(l=>l.path===z)??null,k=b?.name??B;let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:s.jsx(G,{size:18})}),e[5]=w):w=e[5];let f;e[6]!==k||e[7]!==t?(f=t==="dialog"?s.jsx(q,{className:"flex-1 truncate text-base font-medium text-foreground",children:k}):s.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:k}),e[6]=k,e[7]=t,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==t?(p=t==="dialog"?s.jsx(A,{asChild:!0,children:s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:s.jsx($,{size:16})})}):s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:a,children:s.jsx($,{size:16})}),e[9]=a,e[10]=t,e[11]=p):p=e[11];let y;e[12]!==f||e[13]!==p?(y=s.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[w,f,p]}),e[12]=f,e[13]=p,e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=C):C=e[15];const O="relative flex min-w-0 flex-1 flex-col overflow-y-auto",F=x?s.jsx(J,{file:{key:x.path,filename:c(x.path),size:x.size,downloadUrl:P(r??"",x.path)}}):d.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(u,{className:"h-4 w-1/3"}),s.jsx(u,{className:"h-3 w-full"}),s.jsx(u,{className:"h-3 w-5/6"}),s.jsx(u,{className:"h-3 w-2/3"})]}):d.isError||!b?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),s.jsx("p",{className:"text-base text-muted-foreground",children:b.description??"Claude Code skill"})]}),s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:s.jsx(H,{id:`skill-preview-${m}`,text:b.body})})]});let S;return e[16]!==F?(S=s.jsx("div",{className:O,children:F}),e[16]=F,e[17]=S):S=e[17],s.jsxs(s.Fragment,{children:[y,s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[C,D.isPending?s.jsx(u,{className:"mx-2 h-4 w-24"}):L.map(l=>{const h=v(l.path)?x===null:z===l.path;return s.jsxs("button",{type:"button",onClick:()=>I(v(l.path)?null:l.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",h?"bg-background shadow-sm":"hover:bg-muted/60"),children:[s.jsx(Q,{filename:c(l.path),className:"h-6 w-5 shrink-0"}),s.jsx("span",{className:M("truncate text-sm",h?"text-foreground":"text-muted-foreground"),children:c(l.path)})]},l.path)})]}),S]})]})}function se(n){return n.kind==="file"}function te(n){return c(n)==="SKILL.md"}function fe(n){const e=E.c(8),{skillPath:m,onClose:a}=n;let t;e[0]!==a?(t=o=>{o||a()},e[0]=a,e[1]=t):t=e[1];let i;e[2]!==a||e[3]!==m?(i=s.jsx(R,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:s.jsx(ee,{skillPath:m,onClose:a,variant:"dialog"})}),e[2]=a,e[3]=m,e[4]=i):i=e[4];let r;return e[5]!==t||e[6]!==i?(r=s.jsx(_,{open:!0,onOpenChange:t,children:i}),e[5]=t,e[6]=i,e[7]=r):r=e[7],r}export{fe as S};
@@ -1 +1 @@
1
- import{b as te,M as se,n as oe,r as M,j as t,B as Q,P as L,ax as ae,F as ce,t as w,c as ie,l as me,K as H,eC as de}from"./index-BYo7xjw_.js";import{i as pe}from"./DotsVertical-mYRVr9AH.js";import{i as ue}from"./GitBranch01-BKO8WN_h.js";import{a as ge}from"./Package-C4SRuwMw.js";import{s as fe}from"./Trash01-DGA8npEZ.js";import{i as he}from"./Upload01-B3v_JBAz.js";import{i as le}from"./Zap-Df8_LH9g.js";import{S as xe}from"./search-input-Ckzw9Q8f.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-l7cu0teq.js";import{f as Se,e as be,b as we,A as Ce,a as De,d as Ne,c as Pe,g as Ee}from"./alert-dialog-Cj4mq8qj.js";import{E as J}from"./empty-state-Cad5zFK6.js";import{C as Ae}from"./collection-tabs-Cub0gFzH.js";import{F as Me}from"./folder-icon-Xf_qPSHt.js";import{p as Te,h as Ie,q as Oe}from"./use-org-fs-B-yTulsp.js";import{H as V,d as ze}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-Cd79qVc9.js";import{p as $e}from"./skill-md-ChfVs4uF.js";import"./SearchMd-CVv1yVth.js";import"./Check-BDjrzcrN.js";import"./ChevronRight-DFWFq-ve.js";import"./badge-BHHKIdAQ.js";import"./Eye-74QOe9cC.js";import"./dialog-D57kq_tP.js";import"./X-BH7q4C1t.js";import"./markdown-BLbEs4th.js";import"./Copy01-CCOGzU1d.js";import"./Download01-Bd0rofRl.js";import"./ZoomOut-CvFdKFHJ.js";import"./org-file-open-context-BFThBGhY.js";import"./use-mobile-C2LLCzmr.js";import"./use-panel-navigate-ambGkCyT.js";import"./thread-route-DNm3Iu0z.js";import"./use-project-scope-CQpPI5pW.js";import"./use-virtual-mcp-BqJjq2ej.js";import"./use-mcp-client-D-7BuLrC.js";import"./auth-DQLPrt1d.js";import"./github-repo-BknN0SVI.js";import"./file-preview-CDdVdNDx.js";import"./utils-Bsd7FiR5.js";import"./File02-CmMbIRXN.js";import"./Image01-DnYDSI2h.js";import"./editor-DhL1XnKC.js";import"./file-type-icon-DwxUV7LB.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function U(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return U(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=U(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=$e(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:")?ue:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:p}=se();let C;e[0]!==l.source||e[1]!==p.name?(C=re(l.source,p.name),e[0]=l.source,e[1]=p.name,e[2]=C):C=e[2];const{label:T,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=me("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let m;e[7]!==l.name||e[8]!==c||e[9]!==r?(m=!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]=m):m=e[10];const P=z?"default":"system",F=!z;let h;e[11]!==O||e[12]!==P||e[13]!==F?(h=t.jsx(Me,{glyph:O,tone:P,readOnly:F,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=F,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(pe,{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 d;e[26]!==k?(d=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=d):d=e[27];let v;e[28]!==b||e[29]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,d]}),e[28]=b,e[29]=d,e[30]=v):v=e[30];let u;e[31]!==j||e[32]!==v?(u=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=u):u=e[33];let y;e[34]!==T||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):T,e[34]=T,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]!==u||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[u,g]}),e[40]=u,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==m?(I=t.jsxs(de,{"aria-busy":r,className:f,children:[m,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=m,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 Ot(){const s=te(),{org:e}=se(),l=Te(),{remove:r,upload:c}=Ie("home"),a=oe(),o=M.useRef(null),[p,C]=M.useState(""),[T,O]=M.useState(_),[D,z]=M.useState(!1),[N,f]=M.useState(null),[m,P]=M.useState(null),[F,h]=M.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=>U(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 $=_e(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=qe($,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,$),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:$}))}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=p.toLowerCase(),d=(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)),u=new Map;for(const i of d)u.set(i.source,(u.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:d.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:u.get(i)??0}))],g=v.has(T)?T:_,S=g===_?d:d.filter(i=>i.source===g),I=i=>f(ze(i.volume,i.path)),K=async()=>{if(!m)return;const{id:i,path:n}=m;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()}},G=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.Container,{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:p,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),G,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(p?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:p?s("settings.skills.noResultsDescription",{search:p}):s("settings.skills.emptyDescription"),actions:!p&&G})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===F;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:m!==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:m?.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{Ot as default};
1
+ import{b as te,M as se,n as oe,r as M,j as t,B as Q,P as L,ax as ae,F as ce,t as w,c as ie,l as me,K as H,eC as de}from"./index-Cjhl57C5.js";import{i as pe}from"./DotsVertical-Dyzdr42E.js";import{i as ue}from"./GitBranch01-CRUhFeKk.js";import{a as ge}from"./Package-CSgBbMFc.js";import{s as fe}from"./Trash01-DPQmLNZV.js";import{i as he}from"./Upload01-D-20AdeD.js";import{i as le}from"./Zap-TxetSnv7.js";import{S as xe}from"./search-input-Cx2Izgwg.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-DRuEZVW9.js";import{f as Se,e as be,b as we,A as Ce,a as De,d as Ne,c as Pe,g as Ee}from"./alert-dialog-DfGZ77rh.js";import{E as J}from"./empty-state-Bi9IU32F.js";import{C as Ae}from"./collection-tabs-DAqaNYVU.js";import{F as Me}from"./folder-icon-3FCd-eRP.js";import{p as Te,h as Ie,q as Oe}from"./use-org-fs-BSDHmLev.js";import{H as V,d as ze}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-Dr3uDA0q.js";import{p as $e}from"./skill-md-ChfVs4uF.js";import"./SearchMd-Ms_xvSfF.js";import"./Check-Dnz3uW0f.js";import"./ChevronRight-DK_MoZ-7.js";import"./badge-DOT8HE5Z.js";import"./Eye-B7hZLXRZ.js";import"./dialog-SKkzdrcZ.js";import"./X-Dh_K-VDi.js";import"./markdown-Cqyyk371.js";import"./Copy01-l6PfB431.js";import"./Download01-_eUxcgg1.js";import"./ZoomOut-CJKT31Kx.js";import"./org-file-open-context-Dd47NmeH.js";import"./use-mobile-C5SrWG9H.js";import"./use-panel-navigate-bhAOxlzp.js";import"./thread-route-CnHTxNkK.js";import"./use-project-scope-BfeOcOX-.js";import"./use-virtual-mcp-BvrPyGzX.js";import"./use-mcp-client-Bf0VpOBw.js";import"./auth-5BCk_I76.js";import"./github-repo-BknN0SVI.js";import"./file-preview-Dzjub9Lu.js";import"./utils-DAYUNxCI.js";import"./File02-D1W0NjQG.js";import"./Image01-7_HSDHV3.js";import"./editor-oZAad1yU.js";import"./file-type-icon-CMiynV8b.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function U(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return U(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=U(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=$e(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:")?ue:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:p}=se();let C;e[0]!==l.source||e[1]!==p.name?(C=re(l.source,p.name),e[0]=l.source,e[1]=p.name,e[2]=C):C=e[2];const{label:T,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=me("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let m;e[7]!==l.name||e[8]!==c||e[9]!==r?(m=!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]=m):m=e[10];const P=z?"default":"system",F=!z;let h;e[11]!==O||e[12]!==P||e[13]!==F?(h=t.jsx(Me,{glyph:O,tone:P,readOnly:F,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=F,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(pe,{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 d;e[26]!==k?(d=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=d):d=e[27];let v;e[28]!==b||e[29]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,d]}),e[28]=b,e[29]=d,e[30]=v):v=e[30];let u;e[31]!==j||e[32]!==v?(u=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=u):u=e[33];let y;e[34]!==T||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):T,e[34]=T,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]!==u||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[u,g]}),e[40]=u,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==m?(I=t.jsxs(de,{"aria-busy":r,className:f,children:[m,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=m,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 Ot(){const s=te(),{org:e}=se(),l=Te(),{remove:r,upload:c}=Ie("home"),a=oe(),o=M.useRef(null),[p,C]=M.useState(""),[T,O]=M.useState(_),[D,z]=M.useState(!1),[N,f]=M.useState(null),[m,P]=M.useState(null),[F,h]=M.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=>U(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 $=_e(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=qe($,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,$),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:$}))}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=p.toLowerCase(),d=(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)),u=new Map;for(const i of d)u.set(i.source,(u.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:d.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:u.get(i)??0}))],g=v.has(T)?T:_,S=g===_?d:d.filter(i=>i.source===g),I=i=>f(ze(i.volume,i.path)),K=async()=>{if(!m)return;const{id:i,path:n}=m;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()}},G=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.Container,{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:p,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),G,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(p?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:p?s("settings.skills.noResultsDescription",{search:p}):s("settings.skills.emptyDescription"),actions:!p&&G})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===F;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:m!==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:m?.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{Ot as default};
@@ -1 +1 @@
1
- import{b as B,M as L,r as v,j as e,P as x,eU as k,dN as E,dO as y,dP as a,fo as D,B as u,o as C,t as c,c as z}from"./index-BYo7xjw_.js";import{D as O}from"./domain-settings-Ch5rCYKa.js";import{f as T,e as R,b as F,A as M,d as U,c as q,g as $}from"./alert-dialog-Cj4mq8qj.js";import{I as d}from"./input-B0Uinzv0.js";import{S as H}from"./switch-C4XaykKw.js";import{a as G,b as J,c as K,d as Q}from"./use-org-sso-DDMls_8S.js";import{s as V}from"./Trash01-DGA8npEZ.js";import{R as W}from"./require-capability-BGOQRUEv.js";import"./badge-BHHKIdAQ.js";import"./select-KcyEErkL.js";import"./index-C_tMl4q8.js";import"./Check-BDjrzcrN.js";import"./ChevronUp-BrOu8rnp.js";import"./access-gate-Bz_XB_uN.js";import"./capability-load-error-nTuuTH9K.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=G(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),b=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(O,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(F,{children:e.jsx(M,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(U,{children:[e.jsx(q,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
1
+ import{b as B,M as L,r as v,j as e,P as x,eU as k,dN as E,dO as y,dP as a,fo as D,B as u,o as C,t as c,c as z}from"./index-Cjhl57C5.js";import{D as O}from"./domain-settings-ClqqVAOw.js";import{f as T,e as R,b as F,A as M,d as U,c as q,g as $}from"./alert-dialog-DfGZ77rh.js";import{I as d}from"./input-CImpk8th.js";import{S as H}from"./switch-Cf30aXkY.js";import{a as G,b as J,c as K,d as Q}from"./use-org-sso-Dpa7KwXX.js";import{s as V}from"./Trash01-DPQmLNZV.js";import{R as W}from"./require-capability-CLz-loNQ.js";import"./badge-DOT8HE5Z.js";import"./select-C5Qbx8Kw.js";import"./index-C-9h82SA.js";import"./Check-Dnz3uW0f.js";import"./ChevronUp-XOZg-HiO.js";import"./access-gate-Dt6vr2zi.js";import"./capability-load-error-D1mxtMyB.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=G(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),b=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(O,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(F,{children:e.jsx(M,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(U,{children:[e.jsx(q,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
@@ -1 +1 @@
1
- import{c as J,b as Z,j as i,P as te,r as V,eU as ue,ax as pe,E as xe,M as Se,n as he,W as re,dP as H,B as X,d as ye,f as je,o as ae,K as ve,dO as ie,dN as ne,e as Ce,t as ge}from"./index-BYo7xjw_.js";import{i as _e}from"./AlertCircle-DkoTBUue.js";import{i as be}from"./ChevronRight-DFWFq-ve.js";import{s as Re}from"./Plus-BEdGLMcS.js";import{s as ke}from"./Trash01-DGA8npEZ.js";import{I as le}from"./input-B0Uinzv0.js";import{S as de}from"./switch-C4XaykKw.js";import{A as me}from"./avatar-CA5LIB-l.js";import{P as Ne,a as Pe,b as Te}from"./popover-ZSYA9qhq.js";import{b as fe}from"./use-connection-CM4EgQPU.js";import{u as we}from"./use-registry-connections-Dwr4-IPF.js";import{f as Ae,m as ze}from"./use-organization-settings-DmPwVQte.js";import{R as Ee}from"./require-capability-BGOQRUEv.js";import"./User01-Dbdndpwo.js";import"./use-mcp-client-D-7BuLrC.js";import"./auth-DQLPrt1d.js";import"./schema-CGSQcL_x.js";import"./task-board-DyB0568a.js";import"./access-gate-Bz_XB_uN.js";import"./capability-load-error-nTuuTH9K.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(_e,{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 $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,b]=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}=Ce(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 C;e[20]!==r||e[21]!==f?(C=i.jsx(le,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,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 K;e[28]!==s?(K=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=K):K=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=y=>A(y.target.value),e[30]=B):B=e[30];let O;e[31]!==K||e[32]!==a?(O=i.jsx(le,{placeholder:K,value:a,onChange:B,className:"w-[280px]"}),e[31]=K,e[32]=a,e[33]=O):O=e[33];let Y;e[34]!==F||e[35]!==O?(Y=i.jsx(H,{title:F,action:O}),e[34]=F,e[35]=O,e[36]=Y):Y=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let _;e[39]!==s?(_=s("settings.orgStore.optional"),e[39]=s,e[40]=_):_=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let q;e[43]===Symbol.for("react.memo_cache_sentinel")?(q=y=>b(y.target.value),e[43]=q):q=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(le,{type:"password",placeholder:E,value:x,onChange:q,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==_||e[49]!==M?(I=i.jsx(H,{title:z,description:_,action:M}),e[47]=z,e[48]=_,e[49]=M,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 $;return e[69]!==Y||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,Y,I,w]}),e[69]=Y,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}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 b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/shell/$org"},e[0]=b):b=e[0];const{org:j}=je(b);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(be,{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 C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=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]=C):C=e[29],C}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,b,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=re.REGISTRY(l.id),u=n=>{if(!o)return n===f;const U=o.registries[n];return U?U.enabled:n===f},C=re.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),K=F?.id??C,B=re.SELF(l.id),O=new Set([f,C,"community-registry",B]),Y=c.filter(n=>!O.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,U)=>{ae("store_registry_toggled",{connection_id:n,enabled:U});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:U}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const _=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 q=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const U=o??{registries:{},blockedMcps:[]};await r({...U,registries:{...U.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;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=>_(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(ne,{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($e,{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 $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==_?(G=n=>_("self",n),t[45]=_,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==q||t[53]!==_||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:U=>_(n.id,U),onDelete:()=>q(n.id)},n.id),t[52]=q,t[53]=_,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=Y.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(ne,{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],b=ne,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(K),onToggle:n=>_(K,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]=b,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],b=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]!==b||t[71]!==d||t[72]!==v?(g=i.jsx(b,{title:d,children:v}),t[70]=b,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 Ue(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{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.Container,{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(Ue,{})}),t[0]=e):e=t[0],e}export{lt as default};
1
+ import{c as J,b as Z,j as i,P as te,r as V,eU as ue,ax as pe,E as xe,M as Se,n as he,W as re,dP as H,B as X,d as ye,f as je,o as ae,K as ve,dO as ie,dN as ne,e as Ce,t as ge}from"./index-Cjhl57C5.js";import{i as _e}from"./AlertCircle-Ddrj7VUD.js";import{i as be}from"./ChevronRight-DK_MoZ-7.js";import{s as Re}from"./Plus-C5azC59K.js";import{s as ke}from"./Trash01-DPQmLNZV.js";import{I as le}from"./input-CImpk8th.js";import{S as de}from"./switch-Cf30aXkY.js";import{A as me}from"./avatar-CR9KEb-s.js";import{P as Ne,a as Pe,b as Te}from"./popover-Bn0xXLy8.js";import{b as fe}from"./use-connection-CpOBycNm.js";import{u as we}from"./use-registry-connections-BJotyFay.js";import{f as Ae,m as ze}from"./use-organization-settings-pqtCEzuj.js";import{R as Ee}from"./require-capability-CLz-loNQ.js";import"./User01-BA1LEBvQ.js";import"./use-mcp-client-Bf0VpOBw.js";import"./auth-5BCk_I76.js";import"./schema-BTHH8GSh.js";import"./task-board-DpuhnKzF.js";import"./access-gate-Dt6vr2zi.js";import"./capability-load-error-D1mxtMyB.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(_e,{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 $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,b]=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}=Ce(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 C;e[20]!==r||e[21]!==f?(C=i.jsx(le,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,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 K;e[28]!==s?(K=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=K):K=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=y=>A(y.target.value),e[30]=B):B=e[30];let O;e[31]!==K||e[32]!==a?(O=i.jsx(le,{placeholder:K,value:a,onChange:B,className:"w-[280px]"}),e[31]=K,e[32]=a,e[33]=O):O=e[33];let Y;e[34]!==F||e[35]!==O?(Y=i.jsx(H,{title:F,action:O}),e[34]=F,e[35]=O,e[36]=Y):Y=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let _;e[39]!==s?(_=s("settings.orgStore.optional"),e[39]=s,e[40]=_):_=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let q;e[43]===Symbol.for("react.memo_cache_sentinel")?(q=y=>b(y.target.value),e[43]=q):q=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(le,{type:"password",placeholder:E,value:x,onChange:q,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==_||e[49]!==M?(I=i.jsx(H,{title:z,description:_,action:M}),e[47]=z,e[48]=_,e[49]=M,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 $;return e[69]!==Y||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,Y,I,w]}),e[69]=Y,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}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 b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/shell/$org"},e[0]=b):b=e[0];const{org:j}=je(b);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(be,{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 C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=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]=C):C=e[29],C}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,b,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=re.REGISTRY(l.id),u=n=>{if(!o)return n===f;const U=o.registries[n];return U?U.enabled:n===f},C=re.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),K=F?.id??C,B=re.SELF(l.id),O=new Set([f,C,"community-registry",B]),Y=c.filter(n=>!O.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,U)=>{ae("store_registry_toggled",{connection_id:n,enabled:U});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:U}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const _=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 q=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const U=o??{registries:{},blockedMcps:[]};await r({...U,registries:{...U.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;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=>_(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(ne,{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($e,{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 $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==_?(G=n=>_("self",n),t[45]=_,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==q||t[53]!==_||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:U=>_(n.id,U),onDelete:()=>q(n.id)},n.id),t[52]=q,t[53]=_,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=Y.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(ne,{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],b=ne,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(K),onToggle:n=>_(K,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]=b,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],b=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]!==b||t[71]!==d||t[72]!==v?(g=i.jsx(b,{title:d,children:v}),t[70]=b,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 Ue(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{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.Container,{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(Ue,{})}),t[0]=e):e=t[0],e}export{lt as default};