decocms 4.357.1 → 4.357.3

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 (259) hide show
  1. package/dist/client/assets/{AlertCircle-UmLlY8gt.js → AlertCircle-jfjjhRb2.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DQQeycfj.js → AreaChart-Bo5HXO4p.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CKGsgaFO.js → ArrowLeft-C8cZM3Lb.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-DkzY_YHb.js → ArrowRight-C1SqRJva.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-tJnhyHYV.js → ArrowUp-DO8L5TQb.js} +1 -1
  6. package/dist/client/assets/{Check-mIk-Zdri.js → Check-Ce-kdiAz.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DrFO4Bvc.js → CheckCircle-De9uZjVS.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CoUl6dHM.js → ChevronRight-DubHTmQO.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-DgbgJIgx.js → ChevronSelectorVertical-CrgjPjbL.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-BsQdOFhn.js → ChevronUp-Dv1bs5gv.js} +1 -1
  11. package/dist/client/assets/{Copy01-B9voSPXW.js → Copy01-CfdtsKHZ.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-BwVgysoQ.js → CreditCard01-58le4qDM.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-LQnPIhpJ.js → DotsVertical-CQhOWron.js} +1 -1
  14. package/dist/client/assets/{Download01-DuC_qV7_.js → Download01-CkEHYCtu.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-B2GlswO2.js → ErrorBarContext-BqHL-Y3p.js} +1 -1
  16. package/dist/client/assets/{Eye-BNbA0ZH1.js → Eye-CjvyVBpK.js} +1 -1
  17. package/dist/client/assets/{GitBranch01-CEGTuE7l.js → GitBranch01-CnDUj8k9.js} +1 -1
  18. package/dist/client/assets/{Globe01-Ct8tiHdr.js → Globe01-DRlTHhah.js} +1 -1
  19. package/dist/client/assets/{HardDrive-DeQRGeCm.js → HardDrive-CU-VjDaY.js} +1 -1
  20. package/dist/client/assets/{Image01-BOV108nN.js → Image01-CQKrLpko.js} +1 -1
  21. package/dist/client/assets/{Key01-DwPkNGAi.js → Key01-BUkCS-VZ.js} +1 -1
  22. package/dist/client/assets/{Link01-CaYtZMuf.js → Link01-CJhugVGT.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-BL5IYsGT.js → LinkExternal01-DwM11BM3.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CcdvNcNU.js → Monitor01-CAf3l_fb.js} +1 -1
  25. package/dist/client/assets/{Package-DuXJoDs3.js → Package-DfHUZvfF.js} +1 -1
  26. package/dist/client/assets/{Palette-BZ4o6l5p.js → Palette-CVbKokzl.js} +1 -1
  27. package/dist/client/assets/{Play-BuyaXe7U.js → Play-ByimPZLH.js} +1 -1
  28. package/dist/client/assets/{Plus-3CMW8aY5.js → Plus-B7Qgs6c0.js} +1 -1
  29. package/dist/client/assets/{SearchLg-Cw3nH7Cl.js → SearchLg-Cr93RqzH.js} +1 -1
  30. package/dist/client/assets/{SearchMd-DNTL0r7E.js → SearchMd-aOpSh9NS.js} +1 -1
  31. package/dist/client/assets/{Sector-KEmpVao_.js → Sector-BRXBEr54.js} +1 -1
  32. package/dist/client/assets/{Settings02-BkXl17NJ.js → Settings02-BIgS-joO.js} +1 -1
  33. package/dist/client/assets/{Share07-_ciA_Du3.js → Share07-BNlRIACF.js} +1 -1
  34. package/dist/client/assets/{Shield01-DEeMJbvH.js → Shield01-CnOipa-t.js} +1 -1
  35. package/dist/client/assets/{Stars01-119xkrYB.js → Stars01-D8eMm3ti.js} +1 -1
  36. package/dist/client/assets/{Sun-iXMmiuE1.js → Sun-BtcTAfVi.js} +1 -1
  37. package/dist/client/assets/{Tool01-CxaNpYBN.js → Tool01-DZy0-yfv.js} +1 -1
  38. package/dist/client/assets/{Tool02-D8aijKEK.js → Tool02-DPuAnCAs.js} +1 -1
  39. package/dist/client/assets/{Trash01-aDQVPlte.js → Trash01-Cwsg9CQi.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-BPcG0VZ2.js → TrendUp01-__f9sEcH.js} +1 -1
  41. package/dist/client/assets/{Upload01-DP3uFIbj.js → Upload01-CxQ-qFsJ.js} +1 -1
  42. package/dist/client/assets/{User01-uB5x1Z7I.js → User01-CZd90OjM.js} +1 -1
  43. package/dist/client/assets/{UserSquare-DgMxtQAT.js → UserSquare-COtt7gjo.js} +1 -1
  44. package/dist/client/assets/{Users01-C5oQyGpK.js → Users01-PS4F8E96.js} +1 -1
  45. package/dist/client/assets/{Users03-DLEUw1TQ.js → Users03-ARzfb3UY.js} +1 -1
  46. package/dist/client/assets/{XCircle-CPARFFz5.js → XCircle-B5aGe555.js} +1 -1
  47. package/dist/client/assets/{XClose-D4ceJ-NM.js → XClose-y4JAlviW.js} +1 -1
  48. package/dist/client/assets/{Zap-CN63rPHF.js → Zap-Gixj78c9.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-C2eKrhT6.js → ZoomOut-wpvlOZYU.js} +1 -1
  50. package/dist/client/assets/{access-gate-BL9g1s42.js → access-gate-Bs17QafM.js} +1 -1
  51. package/dist/client/assets/{agent-icon-CNkeVIGx.js → agent-icon-B0zL3xsA.js} +1 -1
  52. package/dist/client/assets/{agents-list-DcW9W957.js → agents-list-BI-RmVBQ.js} +1 -1
  53. package/dist/client/assets/{ai-providers-Cg7WqewV.js → ai-providers-CsBCilMD.js} +1 -1
  54. package/dist/client/assets/{alert-DuYG853b.js → alert-B4UstmCX.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-yY0onn0b.js → alert-dialog-7FdjBzh_.js} +1 -1
  56. package/dist/client/assets/{analytics-tab-CBaiSDzS.js → analytics-tab-BzqGWkfe.js} +1 -1
  57. package/dist/client/assets/api-keys-BNjTcj4j.js +1 -0
  58. package/dist/client/assets/{api-keys-DZUDO68_.js → api-keys-C89b48IE.js} +1 -1
  59. package/dist/client/assets/{app-editor-DhnCLGga.js → app-editor-DXiKuQ9Q.js} +1 -1
  60. package/dist/client/assets/{auth-BifFxAMn.js → auth-BwqdG3Ap.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-B0Qn0v5n.js → auth-catchall-f7qd16_z.js} +1 -1
  62. package/dist/client/assets/{auth-entry-PO0b8IvR.js → auth-entry-9wyzoGen.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-C99XAMUI.js → auth-split-layout-CZRDe2TQ.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-B89pdNMd.js → authenticate-and-persist-oauth-B_u4xVVy.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-CzBcz6q8.js → automation-list-row-CNebDiLM.js} +1 -1
  66. package/dist/client/assets/{automation-runs-CkurNXaa.js → automation-runs-DKaFHTtT.js} +1 -1
  67. package/dist/client/assets/{automations-C796hwhr.js → automations-C1K9TrHw.js} +1 -1
  68. package/dist/client/assets/{autosend-H7vEr2E4.js → autosend-B-jgA69G.js} +1 -1
  69. package/dist/client/assets/{avatar-BRVlWhlB.js → avatar-DI1HnM92.js} +1 -1
  70. package/dist/client/assets/{badge-Bek9yAA7.js → badge-BgHS8KSi.js} +1 -1
  71. package/dist/client/assets/{block-document-C7l_-EBM.js → block-document-duIP5v8b.js} +1 -1
  72. package/dist/client/assets/{breadcrumb-CqlTgO8l.js → breadcrumb-wpeYVl2H.js} +1 -1
  73. package/dist/client/assets/{buckets-BTiZmovd.js → buckets-DUw9frSr.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-CdkBUcU1.js → bulk-category-panel-DTRoiF65.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-C8dRTAUB.js → capability-load-error-B7b7PR00.js} +1 -1
  76. package/dist/client/assets/{cards-C-vB_PHu.js → cards-wXXfO7Nb.js} +1 -1
  77. package/dist/client/assets/{category-editor-DOHGDj5Z.js → category-editor-CYSdvuua.js} +1 -1
  78. package/dist/client/assets/{cdn-tab-x9o5M_Ww.js → cdn-tab-CWx59t_V.js} +1 -1
  79. package/dist/client/assets/{chart-qdoCOGln.js → chart-Ra8xZy5i.js} +1 -1
  80. package/dist/client/assets/{chat-context-kYTm66h1.js → chat-context-CXjyxt6m.js} +1 -1
  81. package/dist/client/assets/{checkbox-D5UNPAi9.js → checkbox-BvViD30Z.js} +1 -1
  82. package/dist/client/assets/{choose-editor-Dslm8T8o.js → choose-editor-CVd7grTs.js} +1 -1
  83. package/dist/client/assets/{cli-auth-success-DOUtQsSl.js → cli-auth-success-CCANiGfr.js} +1 -1
  84. package/dist/client/assets/{client-icons-DiZSUf5o.js → client-icons-C1pRwtw_.js} +1 -1
  85. package/dist/client/assets/{collection-detail-Xf86HRc4.js → collection-detail-CJFB3PMG.js} +1 -1
  86. package/dist/client/assets/{collection-display-button-BFmvDGYf.js → collection-display-button-C3xR51VT.js} +1 -1
  87. package/dist/client/assets/{collection-search-DgCzDom2.js → collection-search-BE8f9vRK.js} +1 -1
  88. package/dist/client/assets/{collection-table-wrapper-DWmtfHla.js → collection-table-wrapper-Dnd_hEnl.js} +1 -1
  89. package/dist/client/assets/{collection-tabs-htCjlN6e.js → collection-tabs-D9ewltT5.js} +1 -1
  90. package/dist/client/assets/{command-C8qMEhaG.js → command-Dv5YEFBw.js} +1 -1
  91. package/dist/client/assets/{commerce-onboarding-DTQ0b9qS.js → commerce-onboarding-By728Fey.js} +1 -1
  92. package/dist/client/assets/{connect-CAB2STVc.js → connect-BZaPjICq.js} +1 -1
  93. package/dist/client/assets/{connect-layout-DrVv2vSW.js → connect-layout-B4zhPiyO.js} +1 -1
  94. package/dist/client/assets/{connection-D3PCvxub.js → connection-QBAxJEoy.js} +1 -1
  95. package/dist/client/assets/{connection-card-CuQsth2r.js → connection-card-DkjhCUXb.js} +1 -1
  96. package/dist/client/assets/{connection-detail-_Gp4DDsf.js → connection-detail-DpTDoRut.js} +1 -1
  97. package/dist/client/assets/{connection-form-helpers-GOmangL6.js → connection-form-helpers-C5Y6efxy.js} +1 -1
  98. package/dist/client/assets/{connections-BPVxWIfq.js → connections-BIPLGOsz.js} +1 -1
  99. package/dist/client/assets/{create-organization-dialog-DnARvowu.js → create-organization-dialog-B-Bm7EZ0.js} +1 -1
  100. package/dist/client/assets/{decopilot-sse-pool-CGUVxGA5.js → decopilot-sse-pool-Ch9nFiQG.js} +1 -1
  101. package/dist/client/assets/{dialog-D6PrlHs3.js → dialog-D4N2L8L5.js} +1 -1
  102. package/dist/client/assets/{domain-settings-BBTMrO34.js → domain-settings-nZzWnRbl.js} +1 -1
  103. package/dist/client/assets/{drawer-CKDQN4Qv.js → drawer-D2HwKF1I.js} +1 -1
  104. package/dist/client/assets/{dropdown-menu-BN-ZPax7.js → dropdown-menu-CHJ4BpRz.js} +1 -1
  105. package/dist/client/assets/{e2e-tab-BlET88YO.js → e2e-tab-B0o1fvlx.js} +1 -1
  106. package/dist/client/assets/{editor-0D0nYwQZ.js → editor-TuVrz7Iq.js} +1 -1
  107. package/dist/client/assets/{empty-state-PedwR9BY.js → empty-state-DiiNcbuD.js} +1 -1
  108. package/dist/client/assets/{empty-state-oW1HtioG.js → empty-state-h2SsdZ1q.js} +1 -1
  109. package/dist/client/assets/{extract-connection-data-D_ov4A1f.js → extract-connection-data-DX_w-Ghd.js} +1 -1
  110. package/dist/client/assets/{file-explorer-BZ-qzAOo.js → file-explorer-byZrLJlW.js} +1 -1
  111. package/dist/client/assets/{file-type-icon-Bnpkm6mQ.js → file-type-icon-CG0G5HUU.js} +1 -1
  112. package/dist/client/assets/{folder-icon-Cvyr8eQ5.js → folder-icon-eaUJBf11.js} +1 -1
  113. package/dist/client/assets/{form-DCRMYQ5T.js → form-C5JJI1Vh.js} +1 -1
  114. package/dist/client/assets/{general-CE5xUtk_.js → general-CRIXvhlS.js} +1 -1
  115. package/dist/client/assets/{github-icon-Dxk6kG9J.js → github-icon-gRPFnmHh.js} +1 -1
  116. package/dist/client/assets/{hooks-BE6Qu5f_.js → hooks-BjnKaON5.js} +1 -1
  117. package/dist/client/assets/{index-BTUJIvwF.js → index-BbucPeOb.js} +1 -1
  118. package/dist/client/assets/{index-BEoXIi96.js → index-Bn5MDF24.js} +4 -4
  119. package/dist/client/assets/{index-DSxOSuj0.js → index-C7SrHuHZ.js} +1 -1
  120. package/dist/client/assets/{index-Dg7HcLhN.js → index-CHLHllxW.js} +1 -1
  121. package/dist/client/assets/{index-CcAGGW2C.js → index-Cjz2zRCj.js} +1 -1
  122. package/dist/client/assets/{index-KykP8MNQ.js → index-DH0R-Drj.js} +1 -1
  123. package/dist/client/assets/{index-CeaJSAMa.js → index-DH2JNReW.js} +1 -1
  124. package/dist/client/assets/{index-CcwjIcL7.js → index-DuD13czs.js} +58 -58
  125. package/dist/client/assets/{index-DC6772TW.js → index-DwIonCju.js} +1 -1
  126. package/dist/client/assets/index-nnbvBXse.js +1 -0
  127. package/dist/client/assets/{index-CnMMSaSr.js → index-p7kfrftX.js} +1 -1
  128. package/dist/client/assets/{index-redirect-CkemZHoW.js → index-redirect-CRd3Qsu6.js} +1 -1
  129. package/dist/client/assets/{index-BCYWiv5V.js → index-smpHz6ga.js} +1 -1
  130. package/dist/client/assets/{infiniteQueryObserver-C0gtCSKc.js → infiniteQueryObserver-Bt185Q7m.js} +1 -1
  131. package/dist/client/assets/{infra-billing-Cgv1Q04H.js → infra-billing--wlfjAgd.js} +1 -1
  132. package/dist/client/assets/{input-DuuQU-5P.js → input-COLB0lXy.js} +1 -1
  133. package/dist/client/assets/{integration-icon-_O5BXH5s.js → integration-icon-40D482vj.js} +1 -1
  134. package/dist/client/assets/{invite-member-dialog-DNbOb0sE.js → invite-member-dialog-D_MSGZYc.js} +1 -1
  135. package/dist/client/assets/{label-DfTzeVB6.js → label-lQGkeEZ4.js} +1 -1
  136. package/dist/client/assets/{layout-CkEok-uQ.js → layout-CNomkWSC.js} +1 -1
  137. package/dist/client/assets/{login-Cd7PyCNO.js → login-DFMOgTsE.js} +1 -1
  138. package/dist/client/assets/{markdown-Bk2_0Mpp.js → markdown-D0-Bpc1L.js} +1 -1
  139. package/dist/client/assets/{mcp-app-renderer-IailASEA.js → mcp-app-renderer-Bq2_4Tdn.js} +1 -1
  140. package/dist/client/assets/{mcp-oauth-ytJMtAma.js → mcp-oauth-EKzo4Q5p.js} +1 -1
  141. package/dist/client/assets/{members-BkTiUwYV.js → members-DqZ5b1Wx.js} +1 -1
  142. package/dist/client/assets/{monaco-editor-xqrL4C9W.js → monaco-editor-CFK2_4zy.js} +1 -1
  143. package/dist/client/assets/{monitoring-stats-row-9YJ3YK5E.js → monitoring-stats-row-BcSraWTC.js} +1 -1
  144. package/dist/client/assets/{multi-select-LkAyTIB4.js → multi-select-C0U2yJGQ.js} +1 -1
  145. package/dist/client/assets/{oauth-callback-ai-provider-BuI4vq64.js → oauth-callback-ai-provider-CHPy64ZA.js} +1 -1
  146. package/dist/client/assets/{oauth-callback-Dk0et3QU.js → oauth-callback-vJRuz9W_.js} +1 -1
  147. package/dist/client/assets/{onboarding-BNomTh4g.js → onboarding-SzE27Q9Y.js} +1 -1
  148. package/dist/client/assets/{org-layout-CTJtERf2.js → org-layout-x32Pk_Sc.js} +1 -1
  149. package/dist/client/assets/{organization-choice-BI6EZHK-.js → organization-choice-Ds0gxQ0w.js} +1 -1
  150. package/dist/client/assets/{orgs-CTUQ8-uM.js → orgs-wZ1NXjjr.js} +1 -1
  151. package/dist/client/assets/{page-seo-form-CBA1iAiu.js → page-seo-form-D_KynfmE.js} +1 -1
  152. package/dist/client/assets/{popover-CEyILQP8.js → popover-CsN9E7aA.js} +1 -1
  153. package/dist/client/assets/{post-calendar-DenT8uYn.js → post-calendar-Br7sSiJK.js} +1 -1
  154. package/dist/client/assets/{post-editor-Hc46Mx_G.js → post-editor-LNWcb1KC.js} +1 -1
  155. package/dist/client/assets/{primitives-BmJPSaCw.js → primitives-C4V4-BlQ.js} +1 -1
  156. package/dist/client/assets/{profile-0vekQ69B.js → profile-DjRgrhkJ.js} +1 -1
  157. package/dist/client/assets/{project-app-view-BXnLQtLD.js → project-app-view-VZEIh-kO.js} +1 -1
  158. package/dist/client/assets/{project-icon-Cvf-f60M.js → project-icon-BA4DFvq4.js} +1 -1
  159. package/dist/client/assets/{prompts-BM9Vcg8I.js → prompts-D4SSnXOP.js} +1 -1
  160. package/dist/client/assets/record-editor-fJhK2izF.js +1 -0
  161. package/dist/client/assets/redirect-editor-rctd5Mmo.js +1 -0
  162. package/dist/client/assets/registry-7GCMTJNu.js +2 -0
  163. package/dist/client/assets/{registry-layout-BHrN6Ljc.js → registry-layout-CVuyjftF.js} +1 -1
  164. package/dist/client/assets/{reports-DgOiS-mQ.js → reports-B_AxJYCl.js} +1 -1
  165. package/dist/client/assets/{repositories-Bm6VO7EF.js → repositories-oah-zImY.js} +1 -1
  166. package/dist/client/assets/{repository-import-picker-CjXC2SBe.js → repository-import-picker-1LyaoTqg.js} +1 -1
  167. package/dist/client/assets/repository-picker-CpQcNYDH.js +1 -0
  168. package/dist/client/assets/{require-capability-OCZS-hol.js → require-capability-BlaZkuqj.js} +1 -1
  169. package/dist/client/assets/{required-auth-layout-Ce5Llpbj.js → required-auth-layout-L5xsKKVK.js} +1 -1
  170. package/dist/client/assets/{reset-password-C4ad7SK4.js → reset-password-BYBuz6aM.js} +1 -1
  171. package/dist/client/assets/{review-settings-DTwV71Zz.js → review-settings-D-QyaUE2.js} +1 -1
  172. package/dist/client/assets/{roles-22e4YaK0.js → roles-COMR0j_3.js} +1 -1
  173. package/dist/client/assets/{schema-BjF21APH.js → schema-D3_22XhA.js} +1 -1
  174. package/dist/client/assets/{scroll-area-Dmoe3ZyS.js → scroll-area-B56g89me.js} +1 -1
  175. package/dist/client/assets/{search-input-COgY1JoQ.js → search-input-lhXKFaNQ.js} +1 -1
  176. package/dist/client/assets/{secrets-CwLIw14N.js → secrets-CSUQIGy5.js} +1 -1
  177. package/dist/client/assets/{sections-editor-BJdi0j1x.js → sections-editor-9Zz1_h_e.js} +1 -1
  178. package/dist/client/assets/{select-model-CI017hbz.js → select-model-CruJ_6AR.js} +1 -1
  179. package/dist/client/assets/{select-Ctm5j_ac.js → select-p7yngpsd.js} +1 -1
  180. package/dist/client/assets/{self-tool-result-hnx7DL9g.js → self-tool-result-BTBMs-jP.js} +1 -1
  181. package/dist/client/assets/{seo-editor-BAQhcdhi.js → seo-editor-TP9xYmsD.js} +1 -1
  182. package/dist/client/assets/settings-layout-CT1H3JRF.js +1 -0
  183. package/dist/client/assets/{settings-sidebar-BBKY62CM.js → settings-sidebar-CUH43O0-.js} +1 -1
  184. package/dist/client/assets/{shell-controls-CThcSmeK.js → shell-controls-oTO6nNXY.js} +1 -1
  185. package/dist/client/assets/{shell-layout-51PfGFjn.js → shell-layout-DuPmQJYC.js} +1 -1
  186. package/dist/client/assets/{skill-preview-yijVBbhT.js → skill-preview-C_6jO4GP.js} +1 -1
  187. package/dist/client/assets/{skills-C2FUwmX3.js → skills-DH6IuHUS.js} +1 -1
  188. package/dist/client/assets/{sso-CWsgRRWL.js → sso-bcQWhb9S.js} +1 -1
  189. package/dist/client/assets/{store-GojCzbD_.js → store-DTkf_kYx.js} +1 -1
  190. package/dist/client/assets/store-registry-BsHqIHoT.js +2 -0
  191. package/dist/client/assets/{switch-C6U0UT4f.js → switch-4ja6AhWl.js} +1 -1
  192. package/dist/client/assets/{synced-repos-AN0hdpOT.js → synced-repos-CyfnK_1v.js} +1 -1
  193. package/dist/client/assets/{table-CFBqR8pE.js → table-Be5bQFpi.js} +1 -1
  194. package/dist/client/assets/{tabs-BTqDMSRY.js → tabs-sscXT2pp.js} +1 -1
  195. package/dist/client/assets/{task-board-BfutDBLl.js → task-board-nGQ2UxbD.js} +1 -1
  196. package/dist/client/assets/{task-route-CZAIG5rT.js → task-route-Cxv-CBMt.js} +1 -1
  197. package/dist/client/assets/{tasks-bHdnjs2n.js → tasks-DrtaBq8O.js} +1 -1
  198. package/dist/client/assets/{textarea-UK3aSYEU.js → textarea-B7xsPmoA.js} +1 -1
  199. package/dist/client/assets/{thread-intent-Boq8aDUm.js → thread-intent-CyyupJWA.js} +1 -1
  200. package/dist/client/assets/{thread-route-Ba6jPMs1.js → thread-route-CQoYyKuQ.js} +1 -1
  201. package/dist/client/assets/{toggle-group-jOXSCXvB.js → toggle-group-Cg3Y8J6R.js} +1 -1
  202. package/dist/client/assets/{toolbar-DJSf7gmi.js → toolbar-DL6H0DmB.js} +1 -1
  203. package/dist/client/assets/{toolbar-icon-button-DcRfKvZu.js → toolbar-icon-button-mBRz8jY3.js} +1 -1
  204. package/dist/client/assets/{track-CyUm3Jh9.js → track-syFVQNcu.js} +1 -1
  205. package/dist/client/assets/{types-CBEiD8NV.js → types-CjIJtVZ7.js} +1 -1
  206. package/dist/client/assets/{use-ai-providers-b-_ZQ5bN.js → use-ai-providers-rNtbOrqG.js} +1 -1
  207. package/dist/client/assets/{use-automations-BKfuici4.js → use-automations-DtLeeb27.js} +1 -1
  208. package/dist/client/assets/{use-autosave-Cix74pa3.js → use-autosave-8Rikw2-Q.js} +1 -1
  209. package/dist/client/assets/{use-connection-J9HU__FI.js → use-connection-Qu_w_dFw.js} +1 -1
  210. package/dist/client/assets/{use-copy-1Ld-wFUW.js → use-copy-u46GCmDT.js} +1 -1
  211. package/dist/client/assets/{use-create-virtual-mcp-Cuf8IhFL.js → use-create-virtual-mcp-DWbEaKG8.js} +1 -1
  212. package/dist/client/assets/{use-date-fns-locale-iIq3KU2P.js → use-date-fns-locale-o1_plq9L.js} +1 -1
  213. package/dist/client/assets/{use-debounced-autosave-BehbSyh9.js → use-debounced-autosave-Diz7TRnE.js} +1 -1
  214. package/dist/client/assets/{use-debounced-value-BJpIKS_c.js → use-debounced-value-BpDIP26o.js} +1 -1
  215. package/dist/client/assets/{use-decopilot-events-BmNBMYMj.js → use-decopilot-events-C2aQUfqP.js} +1 -1
  216. package/dist/client/assets/{use-delete-connection-8aB1gc6x.js → use-delete-connection-CYY4nbhP.js} +1 -1
  217. package/dist/client/assets/{use-deployment-admin-BnOU53k8.js → use-deployment-admin-D015CxeY.js} +1 -1
  218. package/dist/client/assets/{use-destination-route-0bGpW2wX.js → use-destination-route-BXLm7_bW.js} +1 -1
  219. package/dist/client/assets/{use-file-configs-ChaOBE4-.js → use-file-configs-DTokR-9Y.js} +1 -1
  220. package/dist/client/assets/{use-infinite-scroll-B16CEhLl.js → use-infinite-scroll-Bogp9ITP.js} +1 -1
  221. package/dist/client/assets/{use-join-requests-CHsZ3BPZ.js → use-join-requests-CP6K6loS.js} +1 -1
  222. package/dist/client/assets/{use-mcp-auth-status-CIHDcWYi.js → use-mcp-auth-status-CvFn5PbI.js} +1 -1
  223. package/dist/client/assets/{use-mcp-client-CBIDHgJb.js → use-mcp-client-ztOpcBVC.js} +1 -1
  224. package/dist/client/assets/{use-mcp-prompts-Dv2usnUu.js → use-mcp-prompts-BfyAEcLL.js} +1 -1
  225. package/dist/client/assets/{use-mcp-tools-CiXvaZ0u.js → use-mcp-tools-BlyQQiiH.js} +1 -1
  226. package/dist/client/assets/{use-members-DhN8JYyT.js → use-members-1t8hgnnT.js} +1 -1
  227. package/dist/client/assets/{use-navigate-to-agent-gJlVtuGH.js → use-navigate-to-agent-Da_3agSF.js} +1 -1
  228. package/dist/client/assets/{use-org-auth-client-DvxCLPMe.js → use-org-auth-client-pnUDxNMA.js} +1 -1
  229. package/dist/client/assets/{use-org-notice-BRkRTeOZ.js → use-org-notice-DwAM8ed1.js} +1 -1
  230. package/dist/client/assets/{use-org-sso-DsSzpTkG.js → use-org-sso-DGf5Yy22.js} +1 -1
  231. package/dist/client/assets/{use-organization-roles-D4YqA3AC.js → use-organization-roles-DMTTjSm5.js} +1 -1
  232. package/dist/client/assets/{use-organization-settings-PpTmoWC6.js → use-organization-settings-19eauAzQ.js} +1 -1
  233. package/dist/client/assets/{use-panel-navigate-7pCkPHyQ.js → use-panel-navigate-BzdqNtUm.js} +1 -1
  234. package/dist/client/assets/{use-registry-connections-Ddw_x5tM.js → use-registry-connections-CHANtvqH.js} +1 -1
  235. package/dist/client/assets/{use-secrets-C5CB8OUG.js → use-secrets-DILMBbkM.js} +1 -1
  236. package/dist/client/assets/{use-section-preview-base-B6RUH88V.js → use-section-preview-base-DqFc2SHZ.js} +1 -1
  237. package/dist/client/assets/{use-status-sounds-D3jpKPg_.js → use-status-sounds-0aMVuNED.js} +1 -1
  238. package/dist/client/assets/{use-tags-DRQoa0LP.js → use-tags-D6Lu5sd9.js} +1 -1
  239. package/dist/client/assets/{use-view-mode-C2w1nkdo.js → use-view-mode-DHOTwbRY.js} +1 -1
  240. package/dist/client/assets/{use-virtual-mcp-BBIVsgiJ.js → use-virtual-mcp-F82bzGEv.js} +1 -1
  241. package/dist/client/assets/useInfiniteQuery-C7bAGLtl.js +1 -0
  242. package/dist/client/assets/useSuspenseInfiniteQuery-TPKC9uCU.js +1 -0
  243. package/dist/client/assets/{users-DTDbkDSX.js → users-Bjlb31LO.js} +1 -1
  244. package/dist/client/assets/{variant-calendar-F1ire2me.js → variant-calendar-CveayuFW.js} +1 -1
  245. package/dist/client/assets/{view-mode-toggle-QdvFAndV.js → view-mode-toggle-CfOTWIMM.js} +1 -1
  246. package/dist/client/index.html +1 -1
  247. package/dist/server/cli.js +3 -3
  248. package/dist/server/server.js +3 -3
  249. package/package.json +1 -1
  250. package/dist/client/assets/api-keys-sLubfM9V.js +0 -1
  251. package/dist/client/assets/index-Px4ImwVA.js +0 -1
  252. package/dist/client/assets/record-editor-BavTRniY.js +0 -1
  253. package/dist/client/assets/redirect-editor-Chge8yeg.js +0 -1
  254. package/dist/client/assets/registry-yoOi33CH.js +0 -2
  255. package/dist/client/assets/repository-picker-DJhzZwbT.js +0 -1
  256. package/dist/client/assets/settings-layout-xYB5QvKm.js +0 -1
  257. package/dist/client/assets/store-registry-Cb8iuSTe.js +0 -2
  258. package/dist/client/assets/useInfiniteQuery-D46s077h.js +0 -1
  259. package/dist/client/assets/useSuspenseInfiniteQuery-Dt1al92J.js +0 -1
@@ -1 +1 @@
1
- import{b as te,G as se,n as oe,r as T,j as t,B as Q,P as L,b8 as ae,C as ce,t as w,c as ie,l as de,K as H,b6 as me}from"./index-BEoXIi96.js";import{i as ue}from"./DotsVertical-LQnPIhpJ.js";import{i as pe}from"./GitBranch01-CEGTuE7l.js";import{a as ge}from"./Package-DuXJoDs3.js";import{s as fe}from"./Trash01-aDQVPlte.js";import{i as he}from"./Upload01-DP3uFIbj.js";import{i as le}from"./Zap-CN63rPHF.js";import{S as xe}from"./search-input-COgY1JoQ.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-BN-ZPax7.js";import{A as Se,a as be,b as we,c as Ce,d as De,e as Ne,f as Pe,g as Ee}from"./alert-dialog-yY0onn0b.js";import{E as J}from"./empty-state-oW1HtioG.js";import{C as Ae}from"./collection-tabs-htCjlN6e.js";import{p as Te,q as Me,u as Ie,r as Oe,F as ze}from"./folder-icon-Cvyr8eQ5.js";import{H as V,d as $e}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-yijVBbhT.js";import"./SearchMd-DNTL0r7E.js";import"./Check-mIk-Zdri.js";import"./ChevronRight-CoUl6dHM.js";import"./badge-Bek9yAA7.js";import"./Eye-BNbA0ZH1.js";import"./dialog-D6PrlHs3.js";import"./markdown-Bk2_0Mpp.js";import"./Copy01-B9voSPXW.js";import"./Download01-DuC_qV7_.js";import"./ZoomOut-C2eKrhT6.js";import"./use-panel-navigate-7pCkPHyQ.js";import"./use-destination-route-0bGpW2wX.js";import"./Image01-BOV108nN.js";import"./editor-0D0nYwQZ.js";import"./file-type-icon-Bnpkm6mQ.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=G(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=Te(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?pe:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:u}=se();let C;e[0]!==l.source||e[1]!==u.name?(C=re(l.source,u.name),e[0]=l.source,e[1]=u.name,e[2]=C):C=e[2];const{label:M,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=de("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let d;e[7]!==l.name||e[8]!==c||e[9]!==r?(d=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=d):d=e[10];const P=z?"default":"system",$=!z;let h;e[11]!==O||e[12]!==P||e[13]!==$?(h=t.jsx(ze,{glyph:O,tone:P,readOnly:$,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=$,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ue,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let m;e[26]!==k?(m=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=m):m=e[27];let v;e[28]!==b||e[29]!==m?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,m]}),e[28]=b,e[29]=m,e[30]=v):v=e[30];let p;e[31]!==j||e[32]!==v?(p=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=p):p=e[33];let y;e[34]!==M||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==p||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[p,g]}),e[40]=p,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==d?(I=t.jsxs(me,{"aria-busy":r,className:f,children:[d,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=d,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function yt(){const s=te(),{org:e}=se(),l=Me(),{remove:r,upload:c}=Ie("home"),a=oe(),o=T.useRef(null),[u,C]=T.useState(""),[M,O]=T.useState(_),[D,z]=T.useState(!1),[N,f]=T.useState(null),[d,P]=T.useState(null),[$,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>G(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const F=_e(q),X=`skills/${F}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:F}));return}Y=!0;const A=qe(F,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,F),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:F}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=u.toLowerCase(),m=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of m)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:m.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(M)?M:_,S=g===_?m:m.filter(i=>i.source===g),I=i=>f($e(i.volume,i.path)),K=async()=>{if(!d)return;const{id:i,path:n}=d;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},U=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:u,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),U,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(u?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:u?s("settings.skills.noResultsDescription",{search:u}):s("settings.skills.emptyDescription"),actions:!u&&U})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===$;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:d!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:d?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{yt as default};
1
+ import{b as te,G as se,n as oe,r as T,j as t,B as Q,P as L,b8 as ae,C as ce,t as w,c as ie,l as de,K as H,b6 as me}from"./index-Bn5MDF24.js";import{i as ue}from"./DotsVertical-CQhOWron.js";import{i as pe}from"./GitBranch01-CnDUj8k9.js";import{a as ge}from"./Package-DfHUZvfF.js";import{s as fe}from"./Trash01-Cwsg9CQi.js";import{i as he}from"./Upload01-CxQ-qFsJ.js";import{i as le}from"./Zap-Gixj78c9.js";import{S as xe}from"./search-input-lhXKFaNQ.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-CHJ4BpRz.js";import{A as Se,a as be,b as we,c as Ce,d as De,e as Ne,f as Pe,g as Ee}from"./alert-dialog-7FdjBzh_.js";import{E as J}from"./empty-state-h2SsdZ1q.js";import{C as Ae}from"./collection-tabs-D9ewltT5.js";import{p as Te,q as Me,u as Ie,r as Oe,F as ze}from"./folder-icon-eaUJBf11.js";import{H as V,d as $e}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-C_6jO4GP.js";import"./SearchMd-aOpSh9NS.js";import"./Check-Ce-kdiAz.js";import"./ChevronRight-DubHTmQO.js";import"./badge-BgHS8KSi.js";import"./Eye-CjvyVBpK.js";import"./dialog-D4N2L8L5.js";import"./markdown-D0-Bpc1L.js";import"./Copy01-CfdtsKHZ.js";import"./Download01-CkEHYCtu.js";import"./ZoomOut-wpvlOZYU.js";import"./use-panel-navigate-BzdqNtUm.js";import"./use-destination-route-BXLm7_bW.js";import"./Image01-CQKrLpko.js";import"./editor-TuVrz7Iq.js";import"./file-type-icon-CG0G5HUU.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=G(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=Te(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?pe:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:u}=se();let C;e[0]!==l.source||e[1]!==u.name?(C=re(l.source,u.name),e[0]=l.source,e[1]=u.name,e[2]=C):C=e[2];const{label:M,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=de("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let d;e[7]!==l.name||e[8]!==c||e[9]!==r?(d=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=d):d=e[10];const P=z?"default":"system",$=!z;let h;e[11]!==O||e[12]!==P||e[13]!==$?(h=t.jsx(ze,{glyph:O,tone:P,readOnly:$,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=$,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ue,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let m;e[26]!==k?(m=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=m):m=e[27];let v;e[28]!==b||e[29]!==m?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,m]}),e[28]=b,e[29]=m,e[30]=v):v=e[30];let p;e[31]!==j||e[32]!==v?(p=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=p):p=e[33];let y;e[34]!==M||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==p||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[p,g]}),e[40]=p,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==d?(I=t.jsxs(me,{"aria-busy":r,className:f,children:[d,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=d,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function yt(){const s=te(),{org:e}=se(),l=Me(),{remove:r,upload:c}=Ie("home"),a=oe(),o=T.useRef(null),[u,C]=T.useState(""),[M,O]=T.useState(_),[D,z]=T.useState(!1),[N,f]=T.useState(null),[d,P]=T.useState(null),[$,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>G(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const F=_e(q),X=`skills/${F}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:F}));return}Y=!0;const A=qe(F,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,F),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:F}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=u.toLowerCase(),m=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of m)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:m.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(M)?M:_,S=g===_?m:m.filter(i=>i.source===g),I=i=>f($e(i.volume,i.path)),K=async()=>{if(!d)return;const{id:i,path:n}=d;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},U=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:u,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),U,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(u?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:u?s("settings.skills.noResultsDescription",{search:u}):s("settings.skills.emptyDescription"),actions:!u&&U})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===$;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:d!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:d?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{yt as default};
@@ -1 +1 @@
1
- import{b as B,G as L,r as v,j as e,P as x,b5 as k,b1 as y,b0 as E,a$ as a,fi as D,B as m,o as b,t as c,c as z}from"./index-BEoXIi96.js";import{D as T}from"./domain-settings-BBTMrO34.js";import{A as O,a as R,b as F,c as q,e as M,f as U,g as $}from"./alert-dialog-yY0onn0b.js";import{I as d}from"./input-DuuQU-5P.js";import{S as G}from"./switch-C6U0UT4f.js";import{a as H,b as J,c as K,d as Q}from"./use-org-sso-DsSzpTkG.js";import{s as V}from"./Trash01-aDQVPlte.js";import{R as W}from"./require-capability-OCZS-hol.js";import"./badge-Bek9yAA7.js";import"./select-Ctm5j_ac.js";import"./Check-mIk-Zdri.js";import"./ChevronUp-BsQdOFhn.js";import"./access-gate-BL9g1s42.js";import"./capability-load-error-C8dRTAUB.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),C=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),u=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(!u&&!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}),b(u?"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(),b("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 C.mutateAsync(t),b("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.Body,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{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(G,{checked:n.enforced,onCheckedChange:A,disabled:C.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{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(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{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&&u?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(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:I,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(F,{children:e.jsx(q,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{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,G as L,r as v,j as e,P as x,b5 as k,b1 as y,b0 as E,a$ as a,fi as D,B as m,o as b,t as c,c as z}from"./index-Bn5MDF24.js";import{D as T}from"./domain-settings-nZzWnRbl.js";import{A as O,a as R,b as F,c as q,e as M,f as U,g as $}from"./alert-dialog-7FdjBzh_.js";import{I as d}from"./input-COLB0lXy.js";import{S as G}from"./switch-4ja6AhWl.js";import{a as H,b as J,c as K,d as Q}from"./use-org-sso-DGf5Yy22.js";import{s as V}from"./Trash01-Cwsg9CQi.js";import{R as W}from"./require-capability-BlaZkuqj.js";import"./badge-BgHS8KSi.js";import"./select-p7yngpsd.js";import"./Check-Ce-kdiAz.js";import"./ChevronUp-Dv1bs5gv.js";import"./access-gate-Bs17QafM.js";import"./capability-load-error-B7b7PR00.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),C=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),u=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(!u&&!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}),b(u?"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(),b("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 C.mutateAsync(t),b("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.Body,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{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(G,{checked:n.enforced,onCheckedChange:A,disabled:C.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{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(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{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&&u?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(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:I,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(F,{children:e.jsx(q,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{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,b5 as ue,b8 as pe,E as xe,G as Se,n as he,a$ as H,B as X,d as ye,f as je,o as ae,K as ve,b0 as ie,b1 as re,e as be,t as ge}from"./index-BEoXIi96.js";import{i as Ce}from"./AlertCircle-UmLlY8gt.js";import{i as _e}from"./ChevronRight-CoUl6dHM.js";import{s as Re}from"./Plus-3CMW8aY5.js";import{s as ke}from"./Trash01-aDQVPlte.js";import{I as ne}from"./input-DuuQU-5P.js";import{S as de}from"./switch-C6U0UT4f.js";import{A as me}from"./avatar-BRVlWhlB.js";import{P as Ne,a as Pe,b as Te}from"./popover-CEyILQP8.js";import{b as fe}from"./use-connection-J9HU__FI.js";import{W as le}from"./use-mcp-client-CBIDHgJb.js";import{u as we}from"./use-registry-connections-Ddw_x5tM.js";import{h as Ae,m as ze}from"./use-organization-settings-PpTmoWC6.js";import{R as Ee}from"./require-capability-OCZS-hol.js";import"./User01-uB5x1Z7I.js";import"./auth-BifFxAMn.js";import"./schema-BjF21APH.js";import"./task-board-BfutDBLl.js";import"./access-gate-BL9g1s42.js";import"./capability-load-error-C8dRTAUB.js";function $e(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(Ce,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function Me(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=be(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let b;e[20]!==r||e[21]!==f?(b=i.jsx(ne,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=b):b=e[22];let R;e[23]!==h||e[24]!==b?(R=i.jsx(H,{title:h,action:b}),e[23]=h,e[24]=b,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let q;e[30]===Symbol.for("react.memo_cache_sentinel")?(q=y=>A(y.target.value),e[30]=q):q=e[30];let B;e[31]!==U||e[32]!==a?(B=i.jsx(ne,{placeholder:U,value:a,onChange:q,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=B):B=e[33];let O;e[34]!==F||e[35]!==B?(O=i.jsx(H,{title:F,action:B}),e[34]=F,e[35]=B,e[36]=O):O=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let C;e[39]!==s?(C=s("settings.orgStore.optional"),e[39]=s,e[40]=C):C=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>_(y.target.value),e[43]=Y):Y=e[43];let $;e[44]!==E||e[45]!==x?($=i.jsx(ne,{type:"password",placeholder:E,value:x,onChange:Y,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=$):$=e[46];let I;e[47]!==z||e[48]!==C||e[49]!==$?(I=i.jsx(H,{title:z,description:C,action:$}),e[47]=z,e[48]=C,e[49]=$,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let M;return e[69]!==O||e[70]!==I||e[71]!==w||e[72]!==R?(M=i.jsxs(ie,{children:[R,O,I,w]}),e[69]=O,e[70]=I,e[71]=w,e[72]=R,e[73]=M):M=e[73],M}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=je(_);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(_e,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let b;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(b=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=b):b=e[29],b}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,_,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=le.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},b=le.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===b||n.id==="community-registry"),U=F?.id??b,q=le.SELF(l.id),B=new Set([f,b,"community-registry",q]),O=c.filter(n=>!B.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const C=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const Y=E;let $;t[21]!==o||t[22]!==r?($=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=$):$=t[23];const I=$;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>C(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(re,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx(Me,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let M;t[41]!==e?(M=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=M):M=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==C?(G=n=>C("self",n),t[45]=C,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==M||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:M,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=M,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==Y||t[53]!==C||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>C(n.id,K),onDelete:()=>Y(n.id)},n.id),t[52]=Y,t[53]=C,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=O.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(re,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],_=re,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>C(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=_,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],_=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx($e,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function lt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{lt as default};
1
+ import{c as J,b as Z,j as i,P as te,r as V,b5 as ue,b8 as pe,E as xe,G as Se,n as he,a$ as H,B as X,d as ye,f as je,o as ae,K as ve,b0 as ie,b1 as re,e as be,t as ge}from"./index-Bn5MDF24.js";import{i as Ce}from"./AlertCircle-jfjjhRb2.js";import{i as _e}from"./ChevronRight-DubHTmQO.js";import{s as Re}from"./Plus-B7Qgs6c0.js";import{s as ke}from"./Trash01-Cwsg9CQi.js";import{I as ne}from"./input-COLB0lXy.js";import{S as de}from"./switch-4ja6AhWl.js";import{A as me}from"./avatar-DI1HnM92.js";import{P as Ne,a as Pe,b as Te}from"./popover-CsN9E7aA.js";import{b as fe}from"./use-connection-Qu_w_dFw.js";import{W as le}from"./use-mcp-client-ztOpcBVC.js";import{u as we}from"./use-registry-connections-CHANtvqH.js";import{h as Ae,m as ze}from"./use-organization-settings-19eauAzQ.js";import{R as Ee}from"./require-capability-BlaZkuqj.js";import"./User01-CZd90OjM.js";import"./auth-BwqdG3Ap.js";import"./schema-D3_22XhA.js";import"./task-board-nGQ2UxbD.js";import"./access-gate-Bs17QafM.js";import"./capability-load-error-B7b7PR00.js";function $e(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(Ce,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function Me(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=be(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let b;e[20]!==r||e[21]!==f?(b=i.jsx(ne,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=b):b=e[22];let R;e[23]!==h||e[24]!==b?(R=i.jsx(H,{title:h,action:b}),e[23]=h,e[24]=b,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let q;e[30]===Symbol.for("react.memo_cache_sentinel")?(q=y=>A(y.target.value),e[30]=q):q=e[30];let B;e[31]!==U||e[32]!==a?(B=i.jsx(ne,{placeholder:U,value:a,onChange:q,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=B):B=e[33];let O;e[34]!==F||e[35]!==B?(O=i.jsx(H,{title:F,action:B}),e[34]=F,e[35]=B,e[36]=O):O=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let C;e[39]!==s?(C=s("settings.orgStore.optional"),e[39]=s,e[40]=C):C=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>_(y.target.value),e[43]=Y):Y=e[43];let $;e[44]!==E||e[45]!==x?($=i.jsx(ne,{type:"password",placeholder:E,value:x,onChange:Y,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=$):$=e[46];let I;e[47]!==z||e[48]!==C||e[49]!==$?(I=i.jsx(H,{title:z,description:C,action:$}),e[47]=z,e[48]=C,e[49]=$,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let M;return e[69]!==O||e[70]!==I||e[71]!==w||e[72]!==R?(M=i.jsxs(ie,{children:[R,O,I,w]}),e[69]=O,e[70]=I,e[71]=w,e[72]=R,e[73]=M):M=e[73],M}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=je(_);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(_e,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let b;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(b=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=b):b=e[29],b}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,_,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=le.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},b=le.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===b||n.id==="community-registry"),U=F?.id??b,q=le.SELF(l.id),B=new Set([f,b,"community-registry",q]),O=c.filter(n=>!B.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const C=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const Y=E;let $;t[21]!==o||t[22]!==r?($=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=$):$=t[23];const I=$;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>C(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(re,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx(Me,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let M;t[41]!==e?(M=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=M):M=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==C?(G=n=>C("self",n),t[45]=C,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==M||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:M,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=M,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==Y||t[53]!==C||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>C(n.id,K),onDelete:()=>Y(n.id)},n.id),t[52]=Y,t[53]=C,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=O.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(re,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],_=re,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>C(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=_,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],_=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx($e,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function lt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{lt as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CVuyjftF.js","assets/index-Bn5MDF24.js","assets/index-DJADaZ4J.css","assets/Tool02-DPuAnCAs.js","assets/CheckCircle-De9uZjVS.js","assets/Settings02-BIgS-joO.js","assets/use-mcp-client-ztOpcBVC.js","assets/auth-BwqdG3Ap.js","assets/useInfiniteQuery-C7bAGLtl.js","assets/infiniteQueryObserver-Bt185Q7m.js","assets/badge-BgHS8KSi.js","assets/input-COLB0lXy.js","assets/dropdown-menu-CHJ4BpRz.js","assets/Check-Ce-kdiAz.js","assets/ChevronRight-DubHTmQO.js","assets/DotsVertical-CQhOWron.js","assets/table-Be5bQFpi.js","assets/toggle-group-Cg3Y8J6R.js","assets/use-view-mode-DHOTwbRY.js","assets/Globe01-DRlTHhah.js","assets/SearchMd-aOpSh9NS.js","assets/dialog-D4N2L8L5.js","assets/AlertCircle-jfjjhRb2.js","assets/Download01-CkEHYCtu.js","assets/Upload01-CxQ-qFsJ.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-7FdjBzh_.js","assets/Trash01-Cwsg9CQi.js","assets/label-lQGkeEZ4.js","assets/select-p7yngpsd.js","assets/ChevronUp-Dv1bs5gv.js","assets/switch-4ja6AhWl.js","assets/textarea-B7xsPmoA.js","assets/ArrowLeft-C8cZM3Lb.js","assets/ArrowRight-C1SqRJva.js","assets/Link01-CJhugVGT.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-BvViD30Z.js","assets/Eye-CjvyVBpK.js","assets/LinkExternal01-DwM11BM3.js","assets/XCircle-B5aGe555.js","assets/use-infinite-scroll-Bogp9ITP.js","assets/use-copy-u46GCmDT.js","assets/Copy01-CfdtsKHZ.js","assets/Key01-BUkCS-VZ.js","assets/Plus-B7Qgs6c0.js","assets/mcp-oauth-EKzo4Q5p.js","assets/Play-ByimPZLH.js"])))=>i.map(i=>d[i]);
2
+ import{c as n,d as c,f as m,j as t,h as f,r as l,bq as p}from"./index-Bn5MDF24.js";import{R as u}from"./require-capability-BlaZkuqj.js";import"./access-gate-Bs17QafM.js";import"./capability-load-error-B7b7PR00.js";const g=l.lazy(()=>p(()=>import("./registry-layout-CVuyjftF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +1 @@
1
- import{r as c,j as i,br as C,bv as y,bu as T,bx as I,e4 as M,ee as H,bt as z,c as A,l as g}from"./index-BEoXIi96.js";var m="Switch",[U]=z(m),[q,L]=U(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...v}=a,[p,h]=c.useState(null),w=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...v,ref:w,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const v=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(v,"checked").set;if(u!==t&&h){const w=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(w)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var $=E,D=R;function W(a){const e=A.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
1
+ import{r as c,j as i,br as C,bv as y,bu as T,bx as I,e4 as M,ee as H,bt as z,c as A,l as g}from"./index-Bn5MDF24.js";var m="Switch",[U]=z(m),[q,L]=U(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...v}=a,[p,h]=c.useState(null),w=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...v,ref:w,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const v=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(v,"checked").set;if(u!==t&&h){const w=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(w)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var $=E,D=R;function W(a){const e=A.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
@@ -1 +1 @@
1
- import{c as se,j as s,ds as ye,b as ue,r as ae,B as te,l as je,t as ce,b8 as be}from"./index-BEoXIi96.js";import{i as ge}from"./GitBranch01-CEGTuE7l.js";import{s as xe}from"./Plus-3CMW8aY5.js";import{c as Re,d as ve,b as Se,f as De,g as Ne,e as _e,a as Ce,A as Pe}from"./alert-dialog-yY0onn0b.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-D6PrlHs3.js";import{I as Ie}from"./input-DuuQU-5P.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-DJhzZwbT.js";import{a as Ge,d as Be,h as He,t as qe}from"./cards-C-vB_PHu.js";import{R as Le}from"./require-capability-OCZS-hol.js";import"./ChevronRight-CoUl6dHM.js";import"./label-DfTzeVB6.js";import"./github-icon-Dxk6kG9J.js";import"./useInfiniteQuery-D46s077h.js";import"./infiniteQueryObserver-C0gtCSKc.js";import"./ArrowLeft-CKGsgaFO.js";import"./avatar-BRVlWhlB.js";import"./User01-uB5x1Z7I.js";import"./collection-search-DgCzDom2.js";import"./SearchMd-DNTL0r7E.js";import"./use-debounced-value-BJpIKS_c.js";import"./folder-icon-Cvyr8eQ5.js";import"./Eye-BNbA0ZH1.js";import"./DotsVertical-LQnPIhpJ.js";import"./Download01-DuC_qV7_.js";import"./Share07-_ciA_Du3.js";import"./Globe01-Ct8tiHdr.js";import"./Key01-DwPkNGAi.js";import"./Palette-BZ4o6l5p.js";import"./Trash01-aDQVPlte.js";import"./Zap-CN63rPHF.js";import"./dropdown-menu-BN-ZPax7.js";import"./Check-mIk-Zdri.js";import"./file-type-icon-Bnpkm6mQ.js";import"./access-gate-BL9g1s42.js";import"./capability-load-error-C8dRTAUB.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===l.repositoryId),t[3]=l.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${l.repoOwner}/${l.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==l.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let d;t[15]!==l||t[16]!==c?(d=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),l=Ge(),i=Be(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==l.data?(b=l.data??[],e[10]=l.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==R||e[17]!==t?(y=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=y):y=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Ve(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let C;e[22]!==u||e[23]!==j?(C=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=C):C=e[24];const de=r!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:le,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==B?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:ie,children:H}),e[67]=H,e[68]=de,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(Re,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(_e,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(Ce,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Pe,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==h||e[103]!==ee||e[104]!==y||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[h,y,C,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function wt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{wt as default};
1
+ import{c as se,j as s,ds as ye,b as ue,r as ae,B as te,l as je,t as ce,b8 as be}from"./index-Bn5MDF24.js";import{i as ge}from"./GitBranch01-CnDUj8k9.js";import{s as xe}from"./Plus-B7Qgs6c0.js";import{c as Re,d as ve,b as Se,f as De,g as Ne,e as _e,a as Ce,A as Pe}from"./alert-dialog-7FdjBzh_.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-D4N2L8L5.js";import{I as Ie}from"./input-COLB0lXy.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-CpQcNYDH.js";import{a as Ge,d as Be,h as He,t as qe}from"./cards-wXXfO7Nb.js";import{R as Le}from"./require-capability-BlaZkuqj.js";import"./ChevronRight-DubHTmQO.js";import"./label-lQGkeEZ4.js";import"./github-icon-gRPFnmHh.js";import"./useInfiniteQuery-C7bAGLtl.js";import"./infiniteQueryObserver-Bt185Q7m.js";import"./ArrowLeft-C8cZM3Lb.js";import"./avatar-DI1HnM92.js";import"./User01-CZd90OjM.js";import"./collection-search-BE8f9vRK.js";import"./SearchMd-aOpSh9NS.js";import"./use-debounced-value-BpDIP26o.js";import"./folder-icon-eaUJBf11.js";import"./Eye-CjvyVBpK.js";import"./DotsVertical-CQhOWron.js";import"./Download01-CkEHYCtu.js";import"./Share07-BNlRIACF.js";import"./Globe01-DRlTHhah.js";import"./Key01-BUkCS-VZ.js";import"./Palette-CVbKokzl.js";import"./Trash01-Cwsg9CQi.js";import"./Zap-Gixj78c9.js";import"./dropdown-menu-CHJ4BpRz.js";import"./Check-Ce-kdiAz.js";import"./file-type-icon-CG0G5HUU.js";import"./access-gate-Bs17QafM.js";import"./capability-load-error-B7b7PR00.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===l.repositoryId),t[3]=l.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${l.repoOwner}/${l.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==l.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let d;t[15]!==l||t[16]!==c?(d=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),l=Ge(),i=Be(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==l.data?(b=l.data??[],e[10]=l.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==R||e[17]!==t?(y=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=y):y=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Ve(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let C;e[22]!==u||e[23]!==j?(C=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=C):C=e[24];const de=r!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:le,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==B?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:ie,children:H}),e[67]=H,e[68]=de,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(Re,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(_e,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(Ce,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Pe,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==h||e[103]!==ee||e[104]!==y||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[h,y,C,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function wt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{wt as default};
@@ -1 +1 @@
1
- import{c,l as i,j as r}from"./index-BEoXIi96.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,m as d,f as e};
1
+ import{c,l as i,j as r}from"./index-Bn5MDF24.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,m as d,f as e};
@@ -1 +1 @@
1
- import{r as v,j as d,dt as k,br as p,bx as T,du as y,bt as M,bw as P,bu as S,by as F,dv as V,cJ as D,c as x,l as g}from"./index-BEoXIi96.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function J(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function O(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,J as a,Q as b,O as c};
1
+ import{r as v,j as d,dt as k,br as p,bx as T,du as y,bt as M,bw as P,bu as S,by as F,dv as V,cJ as D,c as x,l as g}from"./index-Bn5MDF24.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function J(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function O(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,J as a,Q as b,O as c};
@@ -1 +1 @@
1
- import{o as s}from"./schema-BjF21APH.js";const u="super-agent",o=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=o[0];function T(e){return o[e%o.length]??c}function A(e){return e.createdBy==="system"}const p="chore",l=["reviewer"],_={reviewer:"Reviewer"},d=["QA Agent","Code Reviewer"];function w(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const R=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],D=["approved","merged","post_deploy_validation"];function S(e,t){return e?[_[t],...d].some(r=>e.startsWith(`${r}:`)):!1}function E(e,t){if(t)return new Date(t).getTime();let r=0;for(const n of e)n.action==="status_changed"&&n.data?.to==="in_review"&&(r=Math.max(r,new Date(n.occurredAt).getTime()));return r}function v(e,t){const r=E(e,t.cycleStartedAt),n=new Map;for(const a of e){if(a.action!=="review_approved"&&a.action!=="review_changes_requested"||new Date(a.occurredAt).getTime()<r)continue;const i=a.data??{};if(i.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&i.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function g(e,t,r){if(t.length===0)return!1;const n=v(e,r);return t.every(a=>n.get(a)==="approved")}const L="task-board.item.updated",m="task-board.item.deleted",b="task-board.item.prs.updated",C=4e3;export{R as C,p as D,l as R,u as S,m as T,g as a,S as b,c,D as d,L as e,b as f,C as g,A as i,T as n,w as r};
1
+ import{o as s}from"./schema-D3_22XhA.js";const u="super-agent",o=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=o[0];function T(e){return o[e%o.length]??c}function A(e){return e.createdBy==="system"}const p="chore",l=["reviewer"],_={reviewer:"Reviewer"},d=["QA Agent","Code Reviewer"];function w(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const R=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],D=["approved","merged","post_deploy_validation"];function S(e,t){return e?[_[t],...d].some(r=>e.startsWith(`${r}:`)):!1}function E(e,t){if(t)return new Date(t).getTime();let r=0;for(const n of e)n.action==="status_changed"&&n.data?.to==="in_review"&&(r=Math.max(r,new Date(n.occurredAt).getTime()));return r}function v(e,t){const r=E(e,t.cycleStartedAt),n=new Map;for(const a of e){if(a.action!=="review_approved"&&a.action!=="review_changes_requested"||new Date(a.occurredAt).getTime()<r)continue;const i=a.data??{};if(i.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&i.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function g(e,t,r){if(t.length===0)return!1;const n=v(e,r);return t.every(a=>n.get(a)==="approved")}const L="task-board.item.updated",m="task-board.item.deleted",b="task-board.item.prs.updated",C=4e3;export{R as C,p as D,l as R,u as S,m as T,g as a,S as b,c,D as d,L as e,b as f,C as g,A as i,T as n,w as r};