decocms 4.217.2 → 4.217.4

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 (228) hide show
  1. package/dist/client/assets/{AlertCircle-BA-4RgcF.js → AlertCircle-D72r-Abt.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DY6BJAfR.js → AreaChart-BLLMVbTv.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-Je7Tw-c5.js → ArrowLeft-BC8Nr7ZJ.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-C-MsS2sZ.js → ArrowUp-DXFcAFsP.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-BvAcQrzG.js → ArrowUpRight-CdafZNBz.js} +1 -1
  6. package/dist/client/assets/{Check-BhjsPtKn.js → Check-QLHQly7u.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-Di0ZSB0G.js → CheckCircle-BYhZPEg1.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-B93a6UN-.js → ChevronDown-CaGTOKeg.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-DdcCOd_P.js → ChevronRight-DKFDVS5Z.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-C1BCpy6t.js → ChevronUp-DgE7y70e.js} +1 -1
  11. package/dist/client/assets/{Copy01-dqW9HoS_.js → Copy01-BVORfnT0.js} +1 -1
  12. package/dist/client/assets/{CpuChip01-R7He3wrZ.js → CpuChip01-t6G46-8v.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-GG5Fabm-.js → CreditCard01-D4Zmja9Z.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-BHpBomVY.js → DotsVertical-BR1sm-_n.js} +1 -1
  15. package/dist/client/assets/{Eye-B8a7wrMn.js → Eye-DAiBjPRe.js} +1 -1
  16. package/dist/client/assets/{FilterLines-BZQAuEV6.js → FilterLines-DP65NpgD.js} +1 -1
  17. package/dist/client/assets/{Globe01-Cygjy64P.js → Globe01-Ciflgy0_.js} +1 -1
  18. package/dist/client/assets/{Globe04-C_ys06V3.js → Globe04-BCHfi5Hx.js} +1 -1
  19. package/dist/client/assets/{HardDrive-BIbTh8Kb.js → HardDrive-BnncNo_x.js} +1 -1
  20. package/dist/client/assets/{Key01-B9YdPxLN.js → Key01-C_yKoMEt.js} +1 -1
  21. package/dist/client/assets/{LayoutLeft-DRCn9V-9.js → LayoutLeft-DG-27NLI.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DWovkzYQ.js → LinkExternal01-BGAS519W.js} +1 -1
  23. package/dist/client/assets/{LogOut01-DTxfyJrC.js → LogOut01-72mpoATJ.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DzLJpxPW.js → Monitor01-CzAMuIuI.js} +1 -1
  25. package/dist/client/assets/{Palette-8-v7SBTG.js → Palette-DM4yQCbF.js} +1 -1
  26. package/dist/client/assets/{Play-C3Qepd7U.js → Play-CRwQVFSP.js} +1 -1
  27. package/dist/client/assets/{Plus-DX80E320.js → Plus-Cq6r_P3G.js} +1 -1
  28. package/dist/client/assets/{SearchLg-D15KQ-WE.js → SearchLg-CRW3wluh.js} +1 -1
  29. package/dist/client/assets/{SearchMd-D4gUZJX4.js → SearchMd-qYnfIfqc.js} +1 -1
  30. package/dist/client/assets/{Settings02-Dbe-8cP6.js → Settings02-Cd0G_Mid.js} +1 -1
  31. package/dist/client/assets/{Share07-Ds3L3UKw.js → Share07-DTDFc8Or.js} +1 -1
  32. package/dist/client/assets/{Shield01-BsCrtB5a.js → Shield01-B9YaVpAs.js} +1 -1
  33. package/dist/client/assets/{Star01-Bhq55mZP.js → Star01-C5464FWg.js} +1 -1
  34. package/dist/client/assets/{Stars01-D116tEqK.js → Stars01-Boxc6so2.js} +1 -1
  35. package/dist/client/assets/{Stars02-DxLgo9YK.js → Stars02-DgG9oRDa.js} +1 -1
  36. package/dist/client/assets/{Sun-CT_Vi7v3.js → Sun-BsgqNPV7.js} +1 -1
  37. package/dist/client/assets/{SwitchHorizontal01-ClWjxC7p.js → SwitchHorizontal01-DkzzLrlv.js} +1 -1
  38. package/dist/client/assets/{Tool01-BnSvETgt.js → Tool01-C4L1RFGr.js} +1 -1
  39. package/dist/client/assets/{Tool02-jnxH0AZQ.js → Tool02-C2lRzACm.js} +1 -1
  40. package/dist/client/assets/{Trash01-Db5cqPQb.js → Trash01-Bn-V1P6Y.js} +1 -1
  41. package/dist/client/assets/{TrendUp01-DoigYBWT.js → TrendUp01-DqFuQtzg.js} +1 -1
  42. package/dist/client/assets/{Upload01-w3KS95rm.js → Upload01-sX-ya_DN.js} +1 -1
  43. package/dist/client/assets/{User01-BAu_vDyh.js → User01-CCOv9U6F.js} +1 -1
  44. package/dist/client/assets/{Users01-DsPVedXy.js → Users01-zmWhqMFJ.js} +1 -1
  45. package/dist/client/assets/{Users03-Ry-CvxtN.js → Users03-B1wGfhcy.js} +1 -1
  46. package/dist/client/assets/{X-Bzb6oJIk.js → X-BlCcMj3x.js} +1 -1
  47. package/dist/client/assets/{XCircle-By-XkSnw.js → XCircle-CaYksy_y.js} +1 -1
  48. package/dist/client/assets/{XClose-szxWZyge.js → XClose-DNnEfQki.js} +1 -1
  49. package/dist/client/assets/{Zap-2GLM3B98.js → Zap-C99K0vWQ.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-ByAgTfQH.js → ZapSquare-CSMvEBHN.js} +1 -1
  51. package/dist/client/assets/{access-gate-B0cTzjRo.js → access-gate-DokNNEGr.js} +1 -1
  52. package/dist/client/assets/{agent-icon-Bptnx9E0.js → agent-icon-Xh4PsZla.js} +1 -1
  53. package/dist/client/assets/{agents-list-BVnFVuON.js → agents-list-4q7iz_hl.js} +1 -1
  54. package/dist/client/assets/{ai-providers-CreFdKN0.js → ai-providers-BU7G7xQ_.js} +1 -1
  55. package/dist/client/assets/{alert-CSHBE2_R.js → alert-QBcuf9uE.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-DVgB3Cr1.js → alert-dialog-C7O-sTmB.js} +1 -1
  57. package/dist/client/assets/{api-keys-DXPja77u.js → api-keys-B7PYhH8j.js} +1 -1
  58. package/dist/client/assets/{app-editor-BdxBxtUz.js → app-editor-D-FQgUzJ.js} +1 -1
  59. package/dist/client/assets/{auth-BqOdFwnz.js → auth-9BomGTO4.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-Bd8iyHA_.js → auth-catchall-YL7f0z0a.js} +1 -1
  61. package/dist/client/assets/{auth-entry-CLZixJ9A.js → auth-entry-D7nLnisy.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-B52Hm8dc.js → auth-split-layout-spweQFWl.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-6awGtS4c.js → authenticate-and-persist-oauth-DikDCH9B.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-BmnT4SLP.js → automation-list-row-DBq1xV3q.js} +1 -1
  65. package/dist/client/assets/{automation-runs-BDzvUk3C.js → automation-runs-BcHRWEXz.js} +1 -1
  66. package/dist/client/assets/{automations-CD2H4cQO.js → automations-Dlf26Pyj.js} +1 -1
  67. package/dist/client/assets/{avatar-85uUe_Cb.js → avatar-B-tQVUZa.js} +1 -1
  68. package/dist/client/assets/{badge-C6CZu8ID.js → badge-BhwafdCB.js} +1 -1
  69. package/dist/client/assets/{billing-Digogi45.js → billing-DjDZYWZK.js} +1 -1
  70. package/dist/client/assets/{block-document-CXzUcZf3.js → block-document-juL3TuLQ.js} +1 -1
  71. package/dist/client/assets/{brand-context-BbEckjOP.js → brand-context-CrE48rrm.js} +1 -1
  72. package/dist/client/assets/{buckets-_q1umue5.js → buckets-DnfIZ1qi.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-BK2iiWBq.js → bulk-category-panel-D1fyFhZI.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-_r_QHZ_E.js → capability-load-error-CMuflxzG.js} +1 -1
  75. package/dist/client/assets/{card-mNhcAceO.js → card-D5C3JyFr.js} +1 -1
  76. package/dist/client/assets/{cards-CBT1b3Hs.js → cards-CTifom9k.js} +1 -1
  77. package/dist/client/assets/{category-editor-D3Jxvk2V.js → category-editor-D6HWUmdz.js} +1 -1
  78. package/dist/client/assets/{chat-context-BATtnpFX.js → chat-context-BEwRCo0Z.js} +1 -1
  79. package/dist/client/assets/{checkbox-1uOT9QVF.js → checkbox-DjPXFlDB.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-Cq9LRkwJ.js → cli-auth-success-Dx8luwfl.js} +1 -1
  81. package/dist/client/assets/{collection-detail-BjZqh1xC.js → collection-detail-BJ6nC-Cf.js} +1 -1
  82. package/dist/client/assets/{collection-display-button-Bj4qX2Ku.js → collection-display-button-CWw-lUKQ.js} +1 -1
  83. package/dist/client/assets/{collection-search-CLXMjGyk.js → collection-search-D4LYDNtt.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-SMmhGMlH.js → collection-table-wrapper-C25uEf46.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-B3JU0aTa.js → collection-tabs-CjzkvDJ2.js} +1 -1
  86. package/dist/client/assets/{command-BlmG8Awj.js → command-DWBMYMbG.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding-BjAOIc5y.js → commerce-onboarding-Dy7rRPkO.js} +1 -1
  88. package/dist/client/assets/{connect-Cm2vQbgp.js → connect-Bg03J9Hv.js} +1 -1
  89. package/dist/client/assets/{connection-mQ4d2he1.js → connection-CwD2FETl.js} +1 -1
  90. package/dist/client/assets/{connection-card-eznf9wRc.js → connection-card-BLJf5XJH.js} +1 -1
  91. package/dist/client/assets/{connection-detail-m9R9KPM6.js → connection-detail-DbqiEnRI.js} +1 -1
  92. package/dist/client/assets/{connection-form-helpers-Dlm7kj2H.js → connection-form-helpers-Dr0tZoKE.js} +1 -1
  93. package/dist/client/assets/{connections-CsmNJikH.js → connections-DUkmSWaS.js} +1 -1
  94. package/dist/client/assets/{decopilot-sse-pool-DCIkgoB0.js → decopilot-sse-pool-BcQQThcb.js} +1 -1
  95. package/dist/client/assets/{dialog-YiorkP_a.js → dialog-C2ssRIQJ.js} +1 -1
  96. package/dist/client/assets/{domain-settings-BdeEgLxL.js → domain-settings-BIlsUHdq.js} +1 -1
  97. package/dist/client/assets/{drawer-CGpKnhzl.js → drawer-hpvDl375.js} +1 -1
  98. package/dist/client/assets/{dropdown-menu-BCbLRJ8w.js → dropdown-menu-YjXuvnT_.js} +1 -1
  99. package/dist/client/assets/{empty-state-DkunShqI.js → empty-state-BGu9fq_W.js} +1 -1
  100. package/dist/client/assets/{extract-connection-data-GOPALh3o.js → extract-connection-data-D9CDJQHO.js} +1 -1
  101. package/dist/client/assets/{file-explorer-lHZU-hwQ.js → file-explorer-DP7KZ5ly.js} +1 -1
  102. package/dist/client/assets/{file-type-icon-DA6wPYfb.js → file-type-icon-JvZYN7qo.js} +1 -1
  103. package/dist/client/assets/{form-YLfaL8et.js → form-CnGPN0A8.js} +1 -1
  104. package/dist/client/assets/{general-gLVO7RCa.js → general-CPjEqk3M.js} +1 -1
  105. package/dist/client/assets/{github-repo-picker-Bo2ED3nR.js → github-repo-picker-DUdiCOS4.js} +1 -1
  106. package/dist/client/assets/{hooks-DhrS682Z.js → hooks-CLYOG19B.js} +1 -1
  107. package/dist/client/assets/{index-BDpwD7pj.js → index-BEolICya.js} +1 -1
  108. package/dist/client/assets/{index-ecOIW--2.js → index-BallkGn0.js} +49 -49
  109. package/dist/client/assets/{index-DfXfkCwM.js → index-Bv3HJTsB.js} +5 -5
  110. package/dist/client/assets/{index-BlqHjRv2.js → index-CDi4aOes.js} +1 -1
  111. package/dist/client/assets/{index-z9QIuWJa.js → index-CPstR1Hc.js} +1 -1
  112. package/dist/client/assets/{index-BjmeYxbb.js → index-DCnuMTTl.js} +1 -1
  113. package/dist/client/assets/{index-Ba2s3N4C.js → index-DQVeGI_P.js} +1 -1
  114. package/dist/client/assets/{index-YR9i5Jvj.js → index-WkLUUu-q.js} +1 -1
  115. package/dist/client/assets/{index-redirect-Cu9QfK9u.js → index-redirect-BUB1zkrw.js} +1 -1
  116. package/dist/client/assets/{index-Xgi3z-oO.js → index-sNS7eLdY.js} +1 -1
  117. package/dist/client/assets/{index-CZfth8at.js → index-uC9AYzn5.js} +1 -1
  118. package/dist/client/assets/{input-BVoAovEw.js → input-B7YaDDnK.js} +1 -1
  119. package/dist/client/assets/{integration-icon-DLz-3AnG.js → integration-icon-GM3GwH0O.js} +1 -1
  120. package/dist/client/assets/{invite-member-dialog-F5Y4SyTA.js → invite-member-dialog-CNZqkEul.js} +1 -1
  121. package/dist/client/assets/{label-C0y1RbUi.js → label-snhY0RcC.js} +1 -1
  122. package/dist/client/assets/{layout-BxBs5tOY.js → layout-BMoVnl56.js} +1 -1
  123. package/dist/client/assets/{login-BJOnCSUv.js → login-Cx-CC9g6.js} +1 -1
  124. package/dist/client/assets/{mcp-oauth-Di_qoTTQ.js → mcp-oauth-BynA_Hg9.js} +1 -1
  125. package/dist/client/assets/{members-CJQPPy80.js → members-XGYf3GHc.js} +1 -1
  126. package/dist/client/assets/{monaco-editor-mXsRj2tC.js → monaco-editor-5ufmztdo.js} +1 -1
  127. package/dist/client/assets/{monitoring-stats-row-DaBAoPZn.js → monitoring-stats-row-CQBIfSbQ.js} +1 -1
  128. package/dist/client/assets/{multi-select-ewHCxWRI.js → multi-select-DhhMlZre.js} +1 -1
  129. package/dist/client/assets/{oauth-callback-BEHogBNK.js → oauth-callback-CymJ5X-K.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-ai-provider-DiihF3Z-.js → oauth-callback-ai-provider-BI26VFf1.js} +1 -1
  131. package/dist/client/assets/{onboarding-DzjWOUsM.js → onboarding-PH6LjDbS.js} +1 -1
  132. package/dist/client/assets/{org-layout-DFWBmmVu.js → org-layout-DJCu8wbi.js} +1 -1
  133. package/dist/client/assets/{organization-choice-C6AmmtO3.js → organization-choice-CkLth-4G.js} +1 -1
  134. package/dist/client/assets/{orgs-B1OyUW-c.js → orgs-CHCrGnqF.js} +1 -1
  135. package/dist/client/assets/{page-seo-form-fZM82YK0.js → page-seo-form-DCRNnzor.js} +1 -1
  136. package/dist/client/assets/{popover-gjnhsOhY.js → popover-Dhe9Sc0w.js} +1 -1
  137. package/dist/client/assets/{post-editor-Cap1kE7R.js → post-editor-DrevNBF5.js} +1 -1
  138. package/dist/client/assets/{primitives-Dgl-clwE.js → primitives-Cg0mJ96t.js} +1 -1
  139. package/dist/client/assets/{profile-BjDjUjm5.js → profile-CF8FcU00.js} +1 -1
  140. package/dist/client/assets/{project-app-view-DuGhw9ib.js → project-app-view-DEAllgl4.js} +1 -1
  141. package/dist/client/assets/record-editor-CuHtS7Po.js +1 -0
  142. package/dist/client/assets/redirect-editor-CRsCwzYC.js +1 -0
  143. package/dist/client/assets/registry-CiZy_-Qh.js +2 -0
  144. package/dist/client/assets/{registry-layout-DOOMtLK0.js → registry-layout-BmgM-aA1.js} +1 -1
  145. package/dist/client/assets/{reports-DZ0LEdEQ.js → reports-CN733USc.js} +1 -1
  146. package/dist/client/assets/{require-capability-CfpSwaVR.js → require-capability-DYRfEUgW.js} +1 -1
  147. package/dist/client/assets/{required-auth-layout-D4hk5EJ3.js → required-auth-layout-Dnei0J6i.js} +1 -1
  148. package/dist/client/assets/{reset-password-BvJMGDgK.js → reset-password-C_jyDuIe.js} +1 -1
  149. package/dist/client/assets/{roles-Bdo1Ho79.js → roles-Czpoos4L.js} +1 -1
  150. package/dist/client/assets/{search-input-D4Qgi7eN.js → search-input-CwSTFkNQ.js} +1 -1
  151. package/dist/client/assets/{secrets-B3qiJQf5.js → secrets-CluwuecD.js} +1 -1
  152. package/dist/client/assets/{sections-editor-Bt2Bq3tE.js → sections-editor-BKeVOT20.js} +1 -1
  153. package/dist/client/assets/{select-CWl0YYNe.js → select-BwQrZuPN.js} +1 -1
  154. package/dist/client/assets/{select-model-IW03v_K5.js → select-model-DRCv8IEs.js} +1 -1
  155. package/dist/client/assets/{self-tool-result-HEblZTYn.js → self-tool-result-Btwculj9.js} +1 -1
  156. package/dist/client/assets/{seo-editor-7gUhcyCl.js → seo-editor-Cp7RdmXp.js} +1 -1
  157. package/dist/client/assets/{settings-layout-DfFcqeOD.js → settings-layout-y_f0TyE_.js} +1 -1
  158. package/dist/client/assets/{settings-section-DztkNP0d.js → settings-section-3gcIZjnX.js} +1 -1
  159. package/dist/client/assets/{shell-controls-DpcV4B_P.js → shell-controls-CrE92qvD.js} +1 -1
  160. package/dist/client/assets/{shell-layout-zJeUA2R6.js → shell-layout-DOG9DRsu.js} +1 -1
  161. package/dist/client/assets/{sidebar-B0FM7EZ9.js → sidebar-DoRjTCGZ.js} +1 -1
  162. package/dist/client/assets/{skeleton-CkYelUeS.js → skeleton-Bv2C3YGF.js} +1 -1
  163. package/dist/client/assets/{spinner-COnig_sx.js → spinner-PqWBj6Do.js} +1 -1
  164. package/dist/client/assets/{sso-DqvFv39K.js → sso-BCWCCxrr.js} +1 -1
  165. package/dist/client/assets/{store-C_rk4iKr.js → store-B2IuFzaQ.js} +1 -1
  166. package/dist/client/assets/store-registry-CoLz5UnS.js +2 -0
  167. package/dist/client/assets/{studio-tools-B35Xxz75.js → studio-tools-CKhQgqxz.js} +1 -1
  168. package/dist/client/assets/{switch-DdlGzRvU.js → switch-feOogWIC.js} +1 -1
  169. package/dist/client/assets/{synced-repos-B7eN86Lv.js → synced-repos-DFqnGSCa.js} +1 -1
  170. package/dist/client/assets/{tab-id-C2pWBVBK.js → tab-id-YfaqrPxi.js} +1 -1
  171. package/dist/client/assets/{table-C2gUkIjM.js → table-DtDpC0kE.js} +1 -1
  172. package/dist/client/assets/{tabs-DJ5RjVP9.js → tabs-BC0HX8ZS.js} +1 -1
  173. package/dist/client/assets/{textarea-wGZcgPjx.js → textarea-BarruI9T.js} +1 -1
  174. package/dist/client/assets/{toggle-group-tTSh7QvB.js → toggle-group-CdgKj7XL.js} +1 -1
  175. package/dist/client/assets/{toolbar-B1Fc_ZpA.js → toolbar-Bkk08pzn.js} +1 -1
  176. package/dist/client/assets/{tooltip-4DtnkGLf.js → tooltip-CjrfwNV8.js} +1 -1
  177. package/dist/client/assets/{track-CFqotqLu.js → track-D77HRxd7.js} +1 -1
  178. package/dist/client/assets/{use-ai-providers-Bl-gR4fH.js → use-ai-providers-CnJZn_z3.js} +1 -1
  179. package/dist/client/assets/{use-api-keys-DMGLcwOS.js → use-api-keys-D-m67Kr-.js} +1 -1
  180. package/dist/client/assets/{use-automations-CDlkHa33.js → use-automations-DGYzRWkG.js} +1 -1
  181. package/dist/client/assets/{use-autosave-HyMFVYgl.js → use-autosave-B1WIENOZ.js} +1 -1
  182. package/dist/client/assets/{use-capability-xOw0-LVT.js → use-capability-BZkX5b05.js} +1 -1
  183. package/dist/client/assets/{use-clock-tick-BJaDrGoy.js → use-clock-tick-DzB8u0bi.js} +1 -1
  184. package/dist/client/assets/{use-connection-DHpUPjf1.js → use-connection-gVZsquVW.js} +1 -1
  185. package/dist/client/assets/{use-copy-BFywbTSl.js → use-copy-mS3W3EBV.js} +1 -1
  186. package/dist/client/assets/{use-create-virtual-mcp-D_rrPDmt.js → use-create-virtual-mcp-HFpqGjiV.js} +1 -1
  187. package/dist/client/assets/{use-debounced-autosave-yiZzBi6P.js → use-debounced-autosave-DbnPs_m8.js} +1 -1
  188. package/dist/client/assets/{use-debounced-value-C5lBTNvL.js → use-debounced-value-Bq2QEkIC.js} +1 -1
  189. package/dist/client/assets/{use-deco-credits-CJEvEfWe.js → use-deco-credits-zhzy8yst.js} +1 -1
  190. package/dist/client/assets/{use-decopilot-events-BAS2DTkE.js → use-decopilot-events-CuqzGOQd.js} +1 -1
  191. package/dist/client/assets/{use-delete-connection-C88gze-D.js → use-delete-connection-sMbK8ttT.js} +1 -1
  192. package/dist/client/assets/{use-deployment-admin-BHDLTJ7A.js → use-deployment-admin-CLxiZjse.js} +1 -1
  193. package/dist/client/assets/{use-file-configs-DTVZlClI.js → use-file-configs-DdBbKqJi.js} +1 -1
  194. package/dist/client/assets/{use-infinite-scroll-Cao-Mwrk.js → use-infinite-scroll-BadMGmoJ.js} +1 -1
  195. package/dist/client/assets/{use-join-requests-CRGYhm7Q.js → use-join-requests-BVnZHWYx.js} +1 -1
  196. package/dist/client/assets/{use-mcp-client-YTBr9HtX.js → use-mcp-client-BnA78fm5.js} +1 -1
  197. package/dist/client/assets/{use-mcp-tools-BswhoepV.js → use-mcp-tools-GM2p_uSD.js} +1 -1
  198. package/dist/client/assets/{use-members-BZq5H1WT.js → use-members-BYapMI0G.js} +1 -1
  199. package/dist/client/assets/{use-mobile-CIucwn9L.js → use-mobile-9pL7OIkR.js} +1 -1
  200. package/dist/client/assets/{use-navigate-to-agent-70yjw6vq.js → use-navigate-to-agent-vqZMF0uo.js} +1 -1
  201. package/dist/client/assets/{use-open-billing-url-Buu8dwcr.js → use-open-billing-url-DMRH-ady.js} +1 -1
  202. package/dist/client/assets/{use-org-auth-client-k2d4Qzc1.js → use-org-auth-client-ClNH5zJP.js} +1 -1
  203. package/dist/client/assets/{use-org-sso-Bk521YqK.js → use-org-sso-Coalj9T-.js} +1 -1
  204. package/dist/client/assets/{use-organization-roles-B-voKCxO.js → use-organization-roles-BXY_P0d_.js} +1 -1
  205. package/dist/client/assets/{use-organization-settings-raf1HSTR.js → use-organization-settings-P3mozsBB.js} +1 -1
  206. package/dist/client/assets/{use-registry-connections-BHBTv71-.js → use-registry-connections-BLeRGwpV.js} +1 -1
  207. package/dist/client/assets/{use-secrets-wKvhXs9g.js → use-secrets-CE5pRLYm.js} +1 -1
  208. package/dist/client/assets/{use-section-preview-base-Bw5Irht3.js → use-section-preview-base-BI399tpL.js} +1 -1
  209. package/dist/client/assets/{use-status-sounds-DKmX3az3.js → use-status-sounds-CgPhQtTy.js} +1 -1
  210. package/dist/client/assets/{use-tags-BtSWH5Bb.js → use-tags-CUn08MRY.js} +1 -1
  211. package/dist/client/assets/{use-view-mode-G6QhXW5c.js → use-view-mode-mht8Osqv.js} +1 -1
  212. package/dist/client/assets/{use-virtual-mcp-CI97Yn-q.js → use-virtual-mcp-BhgShf5w.js} +1 -1
  213. package/dist/client/assets/useInfiniteQuery-DqKnLk2q.js +1 -0
  214. package/dist/client/assets/{useRouterState-CqymXQC_.js → useRouterState-KHwO2HmU.js} +1 -1
  215. package/dist/client/assets/useSuspenseInfiniteQuery-D1cwi2Zx.js +1 -0
  216. package/dist/client/assets/{users-DUZLOBpz.js → users-DvIB_aDs.js} +1 -1
  217. package/dist/client/assets/{variant-calendar-Bh-YOTC8.js → variant-calendar-_gUAl39A.js} +1 -1
  218. package/dist/client/assets/{view-mode-toggle-CBCp8Jlo.js → view-mode-toggle-XNQgpdm2.js} +1 -1
  219. package/dist/client/index.html +1 -1
  220. package/dist/server/cli.js +217 -217
  221. package/dist/server/server.js +192 -192
  222. package/package.json +1 -1
  223. package/dist/client/assets/record-editor-DZPgCBPy.js +0 -1
  224. package/dist/client/assets/redirect-editor-CMYB3Ta8.js +0 -1
  225. package/dist/client/assets/registry-DhDDHRf3.js +0 -2
  226. package/dist/client/assets/store-registry-D_BVvpXA.js +0 -2
  227. package/dist/client/assets/useInfiniteQuery-BtXHXDUp.js +0 -1
  228. package/dist/client/assets/useSuspenseInfiniteQuery-FOQPA7R1.js +0 -1
@@ -1 +1 @@
1
- import{c as y,b as M,j as t,f as X,F as Y,m as w,y as Z,L as F,p as H,P as J,a as K,k as ee,r as se,O as te}from"./index-DfXfkCwM.js";import{u as ie}from"./useRouterState-CqymXQC_.js";import{j as ne,k as le,l as re,S as R,a as I,b as A,d as T,c as E,g as oe,h as ae}from"./sidebar-B0FM7EZ9.js";import{a as ce}from"./index-BjmeYxbb.js";import{n as me,i as fe,a as de,c as ge,b as be}from"./ZapSquare-ByAgTfQH.js";import{t as xe,a as G}from"./Users03-Ry-CvxtN.js";import{i as ue}from"./CpuChip01-R7He3wrZ.js";import{i as pe}from"./CreditCard01-GG5Fabm-.js";import{i as he}from"./HardDrive-BIbTh8Kb.js";import{i as B}from"./Key01-B9YdPxLN.js";import{n as ye}from"./LinkExternal01-DWovkzYQ.js";import{i as Q}from"./LogOut01-DTxfyJrC.js";import{i as je}from"./Shield01-BsCrtB5a.js";import{s as _e}from"./User01-BAu_vDyh.js";import{i as ve}from"./Zap-2GLM3B98.js";import{a as Se}from"./use-capability-xOw0-LVT.js";import{u as ke}from"./use-join-requests-CRGYhm7Q.js";import{u as W}from"./use-mobile-CIucwn9L.js";import{u as Ne}from"./use-status-sounds-DKmX3az3.js";import{a as _}from"./toolbar-B1Fc_ZpA.js";import{S as $e,M as ze}from"./shell-controls-DpcV4B_P.js";import"./LayoutLeft-DRCn9V-9.js";import"./X-Bzb6oJIk.js";import"./tooltip-4DtnkGLf.js";import"./studio-tools-B35Xxz75.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-BAS2DTkE.js";import"./decopilot-sse-pool-DCIkgoB0.js";import"./backoff-CrEUbyZT.js";function D(){const e=y.c(26),s=M(),{capabilities:o,isPrivileged:n,loading:i,error:l}=Se(),a=ke().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(xe,{size:14}),e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ye,{size:14}),e[9]=f):f=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(me,{size:14}),e[10]=d):d=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(ue,{size:14}),e[11]=g):g=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(pe,{size:14}),e[12]=b):b=e[12];let u;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(B,{size:14}),e[13]=u):u=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(B,{size:14}),e[14]=p):p=e[14];let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(he,{size:14}),e[15]=x):x=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(fe,{size:14}),e[16]=j):j=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(de,{size:14}),e[17]=h):h=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(G,{size:14}),e[18]=v):v=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(ve,{size:14}),e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ge,{size:14}),e[20]=k):k=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(be,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(G,{size:14}),e[22]=$):$=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(je,{size:14}),e[23]=z):z=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Z,{size:14}),e[24]=C):C=e[24];let q;e[25]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(_e,{size:14}),e[25]=q):q=e[25];const O=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:s("settings.nav.connect"),icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:g,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"billing",label:s("settings.nav.billing"),icon:b,to:"/$org/settings/billing",requires:"members:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:u,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"api-keys",label:s("settings.nav.apiKeys"),icon:p,to:"/$org/settings/api-keys",requires:"api-keys:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:x,to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",label:s("settings.nav.syncedRepos"),icon:j,to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:h,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:v,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:S,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:k,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:N,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:$,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:z,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:C,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:q,to:"/$org/settings/profile"}]}];if(i||l){c=O;break e}r=O.map(L=>({...L,items:L.items.filter(P=>P.privilegedOnly?n:P.requires?n||o[P.requires]:!0)})).filter(Ce)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Ce(e){return e.items.length>0}function U(e){const s=y.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function V(){const e=y.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=X(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:qe},e[1]=n):n=e[1];const i=ie(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function qe(e){return e.location.pathname}function we(){const e=y.c(19),s=M(),o=D(),{org:n,isActive:i}=V();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(u,p)=>t.jsxs(R,{className:"pt-0 pr-0 pb-0 pl-0",children:[u.label&&t.jsx("p",{className:w("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:u.label}),t.jsx(I,{children:t.jsx(A,{className:"gap-0.5",children:u.items.map(x=>t.jsx(T,{children:t.jsx(E,{asChild:!0,isActive:i(x.to),children:t.jsxs(F,{to:x.to,params:{org:n},onClick:()=>H("settings_nav_clicked",{section_key:x.key,group_key:u.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(U,{icon:x.icon,badge:x.badge}),t.jsx("span",{className:"truncate",children:x.label})]})})},x.key))})})]},u.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(Q,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(R,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(I,{children:t.jsx(A,{className:"gap-0.5",children:t.jsx(T,{children:t.jsxs(E,{onClick:Pe,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(oe,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.217.2"]})}),e[16]=d):d=e[16];let g;return e[17]!==f?(g=t.jsxs(ae,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=g):g=e[18],g}function Pe(){H("signed_out",{source:"settings_sidebar"}),J(),K.signOut()}function Me(e){const s=y.c(21),{onClose:o}=e,n=M(),i=D(),{org:l,isActive:a}=V();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let p;s[5]!==a||s[6]!==o||s[7]!==l?(p=(x,j)=>t.jsxs("div",{className:"flex flex-col gap-0.5",children:[x.label&&t.jsx("p",{className:w("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",j>0&&"mt-3"),children:x.label}),x.items.map(h=>t.jsxs(F,{to:h.to,params:{org:l},onClick:o,className:w("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(h.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[t.jsx(U,{icon:h.icon,badge:h.badge}),t.jsx("span",{className:"truncate",children:h.label})]},h.key))]},x.key),s[5]=a,s[6]=o,s[7]=l,s[8]=p):p=s[8],r=i.map(p),s[0]=i,s[1]=a,s[2]=o,s[3]=l,s[4]=r}else r=s[4];let c;s[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"h-px bg-border/50 my-2"}),s[9]=c):c=s[9];let m;s[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"shrink-0",children:t.jsx(Q,{size:14})}),s[10]=m):m=s[10];let f;s[11]!==n?(f=n("settings.nav.signOut"),s[11]=n,s[12]=f):f=s[12];let d;s[13]!==f?(d=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[c,t.jsxs("button",{type:"button",onClick:Oe,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[m,t.jsx("span",{className:"truncate",children:f})]})]}),s[13]=f,s[14]=d):d=s[14];let g;s[15]!==r||s[16]!==d?(g=t.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[r,d]}),s[15]=r,s[16]=d,s[17]=g):g=s[17];let b;s[18]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.217.2"]})}),s[18]=b):b=s[18];let u;return s[19]!==g?(u=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[g,b]}),s[19]=g,s[20]=u):u=s[20],u}function Oe(){J(),K.signOut()}function Le(){const e=y.c(4),s=W(),{org:o}=Y();Ne(o.slug);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(ee,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(se.Suspense,{fallback:n,children:t.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:t.jsx(ce,{value:"p-0",children:t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:t.jsx(te,{})})})})}),e[1]=i):i=e[1];const l=i;if(s){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=r):r=e[2],r}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex-1 min-h-0 p-1",children:t.jsx("div",{className:w("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=a):a=e[3],a}function fs(){const e=y.c(21),s=W();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(_.LogoLink,{}),e[0]=o):o=e[0];let n;e[1]!==s?(n=s&&t.jsx($e,{}),e[1]=s,e[2]=n):n=e[2];let i;e[3]!==n?(i=t.jsxs(_.LeftColumn,{children:[o,n]}),e[3]=n,e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_.CenterSlot,{}),e[5]=l):l=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_.RightColumn,{children:t.jsx("span",{})}),e[6]=a):a=e[6];let r;e[7]!==i?(r=t.jsxs(_.Header,{children:[i,l,a]}),e[7]=i,e[8]=r):r=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={"--sidebar-width-icon":"3.125rem"},e[9]=c):c=e[9];let m;e[10]!==s?(m=!s&&t.jsx(we,{}),e[10]=s,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ne,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:t.jsx(Le,{})}),e[12]=f):f=e[12];let d;e[13]!==m?(d=t.jsxs(le,{className:"flex-1 bg-sidebar min-h-0",style:c,children:[m,f]}),e[13]=m,e[14]=d):d=e[14];let g;e[15]!==s?(g=s&&t.jsx(ze,{renderSidebar:Re}),e[15]=s,e[16]=g):g=e[16];let b;return e[17]!==g||e[18]!==r||e[19]!==d?(b=t.jsx(_.Provider,{children:t.jsx(re,{defaultOpen:!0,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[r,d,g]})})}),e[17]=g,e[18]=r,e[19]=d,e[20]=b):b=e[20],b}function Re(e){const{onClose:s}=e;return t.jsx(Me,{onClose:s})}export{we as SettingsSidebar,Me as SettingsSidebarMobile,fs as default};
1
+ import{c as y,b as M,j as t,f as X,F as Y,m as w,y as Z,L as F,p as H,P as J,a as K,k as ee,r as se,O as te}from"./index-Bv3HJTsB.js";import{u as ie}from"./useRouterState-KHwO2HmU.js";import{j as ne,k as le,l as re,S as R,a as I,b as A,d as T,c as E,g as oe,h as ae}from"./sidebar-DoRjTCGZ.js";import{a as ce}from"./index-DCnuMTTl.js";import{n as me,i as fe,a as de,c as ge,b as be}from"./ZapSquare-CSMvEBHN.js";import{t as xe,a as G}from"./Users03-B1wGfhcy.js";import{i as ue}from"./CpuChip01-t6G46-8v.js";import{i as pe}from"./CreditCard01-D4Zmja9Z.js";import{i as he}from"./HardDrive-BnncNo_x.js";import{i as B}from"./Key01-C_yKoMEt.js";import{n as ye}from"./LinkExternal01-BGAS519W.js";import{i as Q}from"./LogOut01-72mpoATJ.js";import{i as je}from"./Shield01-B9YaVpAs.js";import{s as _e}from"./User01-CCOv9U6F.js";import{i as ve}from"./Zap-C99K0vWQ.js";import{a as Se}from"./use-capability-BZkX5b05.js";import{u as ke}from"./use-join-requests-BVnZHWYx.js";import{u as W}from"./use-mobile-9pL7OIkR.js";import{u as Ne}from"./use-status-sounds-CgPhQtTy.js";import{a as _}from"./toolbar-Bkk08pzn.js";import{S as $e,M as ze}from"./shell-controls-CrE92qvD.js";import"./LayoutLeft-DG-27NLI.js";import"./X-BlCcMj3x.js";import"./tooltip-CjrfwNV8.js";import"./studio-tools-CKhQgqxz.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-CuqzGOQd.js";import"./decopilot-sse-pool-BcQQThcb.js";import"./backoff-CrEUbyZT.js";function D(){const e=y.c(26),s=M(),{capabilities:o,isPrivileged:n,loading:i,error:l}=Se(),a=ke().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(xe,{size:14}),e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ye,{size:14}),e[9]=f):f=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(me,{size:14}),e[10]=d):d=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(ue,{size:14}),e[11]=g):g=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(pe,{size:14}),e[12]=b):b=e[12];let u;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(B,{size:14}),e[13]=u):u=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(B,{size:14}),e[14]=p):p=e[14];let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(he,{size:14}),e[15]=x):x=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(fe,{size:14}),e[16]=j):j=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(de,{size:14}),e[17]=h):h=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(G,{size:14}),e[18]=v):v=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(ve,{size:14}),e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ge,{size:14}),e[20]=k):k=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(be,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(G,{size:14}),e[22]=$):$=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(je,{size:14}),e[23]=z):z=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Z,{size:14}),e[24]=C):C=e[24];let q;e[25]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(_e,{size:14}),e[25]=q):q=e[25];const O=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:s("settings.nav.connect"),icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:g,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"billing",label:s("settings.nav.billing"),icon:b,to:"/$org/settings/billing",requires:"members:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:u,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"api-keys",label:s("settings.nav.apiKeys"),icon:p,to:"/$org/settings/api-keys",requires:"api-keys:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:x,to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",label:s("settings.nav.syncedRepos"),icon:j,to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:h,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:v,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:S,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:k,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:N,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:$,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:z,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:C,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:q,to:"/$org/settings/profile"}]}];if(i||l){c=O;break e}r=O.map(L=>({...L,items:L.items.filter(P=>P.privilegedOnly?n:P.requires?n||o[P.requires]:!0)})).filter(Ce)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Ce(e){return e.items.length>0}function U(e){const s=y.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function V(){const e=y.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=X(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:qe},e[1]=n):n=e[1];const i=ie(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function qe(e){return e.location.pathname}function we(){const e=y.c(19),s=M(),o=D(),{org:n,isActive:i}=V();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(u,p)=>t.jsxs(R,{className:"pt-0 pr-0 pb-0 pl-0",children:[u.label&&t.jsx("p",{className:w("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:u.label}),t.jsx(I,{children:t.jsx(A,{className:"gap-0.5",children:u.items.map(x=>t.jsx(T,{children:t.jsx(E,{asChild:!0,isActive:i(x.to),children:t.jsxs(F,{to:x.to,params:{org:n},onClick:()=>H("settings_nav_clicked",{section_key:x.key,group_key:u.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(U,{icon:x.icon,badge:x.badge}),t.jsx("span",{className:"truncate",children:x.label})]})})},x.key))})})]},u.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(Q,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(R,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(I,{children:t.jsx(A,{className:"gap-0.5",children:t.jsx(T,{children:t.jsxs(E,{onClick:Pe,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(oe,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.217.4"]})}),e[16]=d):d=e[16];let g;return e[17]!==f?(g=t.jsxs(ae,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=g):g=e[18],g}function Pe(){H("signed_out",{source:"settings_sidebar"}),J(),K.signOut()}function Me(e){const s=y.c(21),{onClose:o}=e,n=M(),i=D(),{org:l,isActive:a}=V();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let p;s[5]!==a||s[6]!==o||s[7]!==l?(p=(x,j)=>t.jsxs("div",{className:"flex flex-col gap-0.5",children:[x.label&&t.jsx("p",{className:w("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",j>0&&"mt-3"),children:x.label}),x.items.map(h=>t.jsxs(F,{to:h.to,params:{org:l},onClick:o,className:w("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(h.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[t.jsx(U,{icon:h.icon,badge:h.badge}),t.jsx("span",{className:"truncate",children:h.label})]},h.key))]},x.key),s[5]=a,s[6]=o,s[7]=l,s[8]=p):p=s[8],r=i.map(p),s[0]=i,s[1]=a,s[2]=o,s[3]=l,s[4]=r}else r=s[4];let c;s[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"h-px bg-border/50 my-2"}),s[9]=c):c=s[9];let m;s[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"shrink-0",children:t.jsx(Q,{size:14})}),s[10]=m):m=s[10];let f;s[11]!==n?(f=n("settings.nav.signOut"),s[11]=n,s[12]=f):f=s[12];let d;s[13]!==f?(d=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[c,t.jsxs("button",{type:"button",onClick:Oe,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[m,t.jsx("span",{className:"truncate",children:f})]})]}),s[13]=f,s[14]=d):d=s[14];let g;s[15]!==r||s[16]!==d?(g=t.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[r,d]}),s[15]=r,s[16]=d,s[17]=g):g=s[17];let b;s[18]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.217.4"]})}),s[18]=b):b=s[18];let u;return s[19]!==g?(u=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[g,b]}),s[19]=g,s[20]=u):u=s[20],u}function Oe(){J(),K.signOut()}function Le(){const e=y.c(4),s=W(),{org:o}=Y();Ne(o.slug);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(ee,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(se.Suspense,{fallback:n,children:t.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:t.jsx(ce,{value:"p-0",children:t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:t.jsx(te,{})})})})}),e[1]=i):i=e[1];const l=i;if(s){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=r):r=e[2],r}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex-1 min-h-0 p-1",children:t.jsx("div",{className:w("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=a):a=e[3],a}function fs(){const e=y.c(21),s=W();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(_.LogoLink,{}),e[0]=o):o=e[0];let n;e[1]!==s?(n=s&&t.jsx($e,{}),e[1]=s,e[2]=n):n=e[2];let i;e[3]!==n?(i=t.jsxs(_.LeftColumn,{children:[o,n]}),e[3]=n,e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_.CenterSlot,{}),e[5]=l):l=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_.RightColumn,{children:t.jsx("span",{})}),e[6]=a):a=e[6];let r;e[7]!==i?(r=t.jsxs(_.Header,{children:[i,l,a]}),e[7]=i,e[8]=r):r=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={"--sidebar-width-icon":"3.125rem"},e[9]=c):c=e[9];let m;e[10]!==s?(m=!s&&t.jsx(we,{}),e[10]=s,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ne,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:t.jsx(Le,{})}),e[12]=f):f=e[12];let d;e[13]!==m?(d=t.jsxs(le,{className:"flex-1 bg-sidebar min-h-0",style:c,children:[m,f]}),e[13]=m,e[14]=d):d=e[14];let g;e[15]!==s?(g=s&&t.jsx(ze,{renderSidebar:Re}),e[15]=s,e[16]=g):g=e[16];let b;return e[17]!==g||e[18]!==r||e[19]!==d?(b=t.jsx(_.Provider,{children:t.jsx(re,{defaultOpen:!0,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[r,d,g]})})}),e[17]=g,e[18]=r,e[19]=d,e[20]=b):b=e[20],b}function Re(e){const{onClose:s}=e;return t.jsx(Me,{onClose:s})}export{we as SettingsSidebar,Me as SettingsSidebarMobile,fs as default};
@@ -1 +1 @@
1
- import{c as v,m as N,j as r,r as S}from"./index-DfXfkCwM.js";import{C as w}from"./card-mNhcAceO.js";import{i as E}from"./ArrowUpRight-BvAcQrzG.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
1
+ import{c as v,m as N,j as r,r as S}from"./index-Bv3HJTsB.js";import{C as w}from"./card-D5C3JyFr.js";import{i as E}from"./ArrowUpRight-CdafZNBz.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
@@ -1 +1 @@
1
- import{c as p,b,j as m}from"./index-DfXfkCwM.js";import{u as d,m as h,p as S,q as x}from"./sidebar-B0FM7EZ9.js";import{i as g}from"./LayoutLeft-DRCn9V-9.js";import{T as j}from"./toolbar-B1Fc_ZpA.js";function B(u){const e=p.c(7),{className:l}=u,n=b(),{toggleSidebar:i}=d();let t;e[0]!==n?(t=n("layouts.shellControls.toggleSidebar"),e[0]=n,e[1]=t):t=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsx(g,{size:16}),e[2]=s):s=e[2];let o;return e[3]!==l||e[4]!==t||e[5]!==i?(o=m.jsx(j,{onClick:i,"aria-label":t,className:l,children:s}),e[3]=l,e[4]=t,e[5]=i,e[6]=o):o=e[6],o}function N(u){const e=p.c(16),{renderSidebar:l}=u,n=b(),{openMobile:i,setOpenMobile:t}=d();let s;e[0]!==n?(s=n("layouts.shellControls.navigationTitle"),e[0]=n,e[1]=s):s=e[1];let o;e[2]!==s?(o=m.jsx(h,{className:"sr-only",children:s}),e[2]=s,e[3]=o):o=e[3];let r;e[4]!==t?(r=()=>t(!1),e[4]=t,e[5]=r):r=e[5];let a;e[6]!==l||e[7]!==r?(a=l({onClose:r}),e[6]=l,e[7]=r,e[8]=a):a=e[8];let c;e[9]!==o||e[10]!==a?(c=m.jsxs(S,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[o,a]}),e[9]=o,e[10]=a,e[11]=c):c=e[11];let f;return e[12]!==i||e[13]!==t||e[14]!==c?(f=m.jsx(x,{open:i,onOpenChange:t,children:c}),e[12]=i,e[13]=t,e[14]=c,e[15]=f):f=e[15],f}export{N as M,B as S};
1
+ import{c as p,b,j as m}from"./index-Bv3HJTsB.js";import{u as d,m as h,p as S,q as x}from"./sidebar-DoRjTCGZ.js";import{i as g}from"./LayoutLeft-DG-27NLI.js";import{T as j}from"./toolbar-Bkk08pzn.js";function B(u){const e=p.c(7),{className:l}=u,n=b(),{toggleSidebar:i}=d();let t;e[0]!==n?(t=n("layouts.shellControls.toggleSidebar"),e[0]=n,e[1]=t):t=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsx(g,{size:16}),e[2]=s):s=e[2];let o;return e[3]!==l||e[4]!==t||e[5]!==i?(o=m.jsx(j,{onClick:i,"aria-label":t,className:l,children:s}),e[3]=l,e[4]=t,e[5]=i,e[6]=o):o=e[6],o}function N(u){const e=p.c(16),{renderSidebar:l}=u,n=b(),{openMobile:i,setOpenMobile:t}=d();let s;e[0]!==n?(s=n("layouts.shellControls.navigationTitle"),e[0]=n,e[1]=s):s=e[1];let o;e[2]!==s?(o=m.jsx(h,{className:"sr-only",children:s}),e[2]=s,e[3]=o):o=e[3];let r;e[4]!==t?(r=()=>t(!1),e[4]=t,e[5]=r):r=e[5];let a;e[6]!==l||e[7]!==r?(a=l({onClose:r}),e[6]=l,e[7]=r,e[8]=a):a=e[8];let c;e[9]!==o||e[10]!==a?(c=m.jsxs(S,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[o,a]}),e[9]=o,e[10]=a,e[11]=c):c=e[11];let f;return e[12]!==i||e[13]!==t||e[14]!==c?(f=m.jsx(x,{open:i,onOpenChange:t,children:c}),e[12]=i,e[13]=t,e[14]=c,e[15]=f):f=e[15],f}export{N as M,B as S};
@@ -1 +1 @@
1
- import{c as I,b as U,e as ne,j as n,B as $,t as te,bY as ee,y as ke,a as X,w as Re,x as Ne,K as ce,bZ as qe,b_ as Be,G as Z,m as ue,r as B,n as re,av as he,v as Ue,b$ as He,p as pe,c0 as Je,c1 as Ke,c2 as Ge,d as Ve,F as We,f as Ae,u as Qe,J as Ye,b4 as Ze,c3 as Xe,c4 as ye,c5 as et,c6 as tt,S as nt,O as st,c7 as ot}from"./index-DfXfkCwM.js";import{A as de}from"./avatar-85uUe_Cb.js";import{t as _e,a as it}from"./Users03-Ry-CvxtN.js";import{i as at}from"./SearchLg-D15KQ-WE.js";import{i as rt,s as lt,a as H,n as ct}from"./Stars02-DxLgo9YK.js";import{s as dt}from"./XClose-szxWZyge.js";import{D as ut,s as mt,A as ft}from"./tab-id-C2pWBVBK.js";import{i as K}from"./CheckCircle-Di0ZSB0G.js";import{i as gt}from"./CpuChip01-R7He3wrZ.js";import{i as xe}from"./FilterLines-BZQAuEV6.js";import{i as ht}from"./Monitor01-DzLJpxPW.js";import{i as G}from"./Zap-2GLM3B98.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as pt,c as yt}from"./dialog-YiorkP_a.js";import{u as xt}from"./use-is-desktop-app-BNujXJc_.js";import{R as bt}from"./required-auth-layout-D4hk5EJ3.js";import{a as be,m as wt,S as St}from"./use-mcp-client-YTBr9HtX.js";import{c as vt}from"./hooks-DhrS682Z.js";import{g as jt}from"./use-organization-settings-raf1HSTR.js";import{u as kt}from"./use-org-sso-Bk521YqK.js";function Nt(t){const e=I.c(49),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i||e[1]!==a?(o=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),O=await k.json();if(!k.ok||!O.success)throw new Error(O.error??a("common.autoDomainJoinScreen.joinError"));return O},e[0]=i,e[1]=a,e[2]=o):o=e[2];let d;e[3]!==i?(d=k=>{window.location.href=`/${k.slug??i}`},e[3]=i,e[4]=d):d=e[4];let f;e[5]!==a?(f=k=>{te.error(k instanceof Error?k.message:a("common.autoDomainJoinScreen.joinError"))},e[5]=a,e[6]=f):f=e[6];let y;e[7]!==o||e[8]!==d||e[9]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[7]=o,e[8]=d,e[9]=f,e[10]=y):y=e[10];const c=ne(y),v=At;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let u;e[14]!==s||e[15]!==a?(u=a("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=a,e[16]=u):u=e[16];let h;e[17]!==u?(h=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=h):h=e[18];let g;e[19]!==r||e[20]!==a?(g=a("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=a,e[21]=g):g=e[21];let x;e[22]!==g?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=x):x=e[23];let w;e[24]!==h||e[25]!==x?(w=n.jsxs("div",{className:"space-y-2",children:[h,x]}),e[24]=h,e[25]=x,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==s||e[31]!==a?(S=c.isPending?a("common.autoDomainJoinScreen.joining"):a("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=a,e[32]=S):S=e[32];let N;e[33]!==c.isPending||e[34]!==b||e[35]!==S?(N=n.jsx($,{onClick:b,disabled:c.isPending,children:S}),e[33]=c.isPending,e[34]=b,e[35]=S,e[36]=N):N=e[36];const j=c.isPending;let A;e[37]!==a?(A=a("common.autoDomainJoinScreen.goHome"),e[37]=a,e[38]=A):A=e[38];let p;e[39]!==c.isPending||e[40]!==A?(p=n.jsx($,{variant:"ghost",onClick:v,disabled:j,children:A}),e[39]=c.isPending,e[40]=A,e[41]=p):p=e[41];let T;e[42]!==N||e[43]!==p?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,p]}),e[42]=N,e[43]=p,e[44]=T):T=e[44];let _;return e[45]!==w||e[46]!==T||e[47]!==m?(_=n.jsxs(ee,{children:[m,w,T]}),e[45]=w,e[46]=T,e[47]=m,e[48]=_):_=e[48],_}function At(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:s,orgName:i,reason:l}=t,r=U(),a=_t,o=l==="not-found",d=o?at:ke;let f;e[0]!==o||e[1]!==r?(f=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=f):f=e[2];const y=f;let c;e[3]!==o||e[4]!==i||e[5]!==s||e[6]!==r?(c=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:i??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=i,e[5]=s,e[6]=r,e[7]=c):c=e[7];const v=c;let m;e[8]!==d?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=m):m=e[9];let u;e[10]!==y?(u=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[10]=y,e[11]=u):u=e[11];let h;e[12]!==v?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[12]=v,e[13]=h):h=e[13];let g;e[14]!==u||e[15]!==h?(g=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[14]=u,e[15]=h,e[16]=g):g=e[16];let x;e[17]!==r?(x=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=x):x=e[18];let w;e[19]!==x?(w=n.jsx($,{onClick:a,children:x}),e[19]=x,e[20]=w):w=e[20];let b;return e[21]!==m||e[22]!==g||e[23]!==w?(b=n.jsxs(ee,{children:[m,g,w]}),e[21]=m,e[22]=g,e[23]=w,e[24]=b):b=e[24],b}function _t(){window.location.href="/"}function Tt(t){const e=I.c(59),{invitationId:s,orgName:i,orgSlug:l,orgLogo:r}=t,a=U();let o;e[0]!==s?(o=async()=>{const E=await X.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let d;e[2]!==l?(d=()=>{Re(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let f;e[4]!==a?(f=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToAccept"))},e[4]=a,e[5]=f):f=e[5];let y;e[6]!==o||e[7]!==d||e[8]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[6]=o,e[7]=d,e[8]=f,e[9]=y):y=e[9];const c=ne(y);let v;e[10]!==s?(v=async()=>{const E=await X.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=v):v=e[11];let m,u;e[12]!==a?(m=()=>{te.success(a("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToDecline"))},e[12]=a,e[13]=m,e[14]=u):(m=e[13],u=e[14]);let h;e[15]!==v||e[16]!==m||e[17]!==u?(h={mutationFn:v,onSuccess:m,onError:u},e[15]=v,e[16]=m,e[17]=u,e[18]=h):h=e[18];const g=ne(h),x=c.isPending||g.isPending;let w;e[19]!==r||e[20]!==i?(w=r?n.jsx(de,{url:r,fallback:i.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(rt,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let b;e[22]!==i||e[23]!==a?(b=a("common.pendingInviteScreen.invitedTo",{orgName:i}),e[22]=i,e[23]=a,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let N;e[27]!==a?(N=a("common.pendingInviteScreen.acceptDescription"),e[27]=a,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let A;e[31]!==S||e[32]!==j?(A=n.jsxs("div",{className:"space-y-2",children:[S,j]}),e[31]=S,e[32]=j,e[33]=A):A=e[33];let p;e[34]!==c?(p=()=>c.mutate(),e[34]=c,e[35]=p):p=e[35];let T;e[36]!==c.isPending||e[37]!==a?(T=c.isPending?a("common.pendingInviteScreen.acceptingButton"):a("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=a,e[38]=T):T=e[38];let _;e[39]!==x||e[40]!==p||e[41]!==T?(_=n.jsx($,{onClick:p,disabled:x,children:T}),e[39]=x,e[40]=p,e[41]=T,e[42]=_):_=e[42];let k;e[43]!==g?(k=()=>g.mutate(),e[43]=g,e[44]=k):k=e[44];let O;e[45]!==g.isPending||e[46]!==a?(O=g.isPending?a("common.pendingInviteScreen.decliningButton"):a("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=a,e[47]=O):O=e[47];let L;e[48]!==x||e[49]!==k||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:k,disabled:x,children:O}),e[48]=x,e[49]=k,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==_||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,L]}),e[52]=_,e[53]=L,e[54]=C):C=e[54];let D;return e[55]!==A||e[56]!==C||e[57]!==w?(D=n.jsxs(ee,{children:[w,A,C]}),e[55]=A,e[56]=C,e[57]=w,e[58]=D):D=e[58],D}function Ot(t){const e=I.c(23),{orgName:s,orgLogo:i}=t,l=U();let r;e[0]!==i||e[1]!==s?(r=i?n.jsx(de,{url:i,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(lt,{className:"h-6 w-6 text-primary"})}),e[0]=i,e[1]=s,e[2]=r):r=e[2];let a;e[3]!==l?(a=l("common.requestPendingScreen.title"),e[3]=l,e[4]=a):a=e[4];let o;e[5]!==a?(o=n.jsx("h3",{className:"text-lg font-medium",children:a}),e[5]=a,e[6]=o):o=e[6];let d;e[7]!==s||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=d):d=e[9];let f;e[10]!==d?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let y;e[12]!==o||e[13]!==f?(y=n.jsxs("div",{className:"space-y-2",children:[o,f]}),e[12]=o,e[13]=f,e[14]=y):y=e[14];let c;e[15]!==l?(c=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=c):c=e[16];let v;e[17]!==c?(v=n.jsx($,{variant:"ghost",onClick:Ct,children:c}),e[17]=c,e[18]=v):v=e[18];let m;return e[19]!==r||e[20]!==y||e[21]!==v?(m=n.jsxs(ee,{children:[r,y,v]}),e[19]=r,e[20]=y,e[21]=v,e[22]=m):m=e[22],m}function Ct(){window.location.href="/"}function Et(t){const e=I.c(45),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i?(o=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=i,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Pt,e[2]=d):d=e[2];let f;e[3]!==a?(f=_=>{te.error(_ instanceof Error?_.message:a("common.requestToJoinScreen.failedToRequest"))},e[3]=a,e[4]=f):f=e[4];let y;e[5]!==o||e[6]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[5]=o,e[6]=f,e[7]=y):y=e[7];const c=ne(y);let v;e[8]!==l||e[9]!==s?(v=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=v):v=e[10];let m;e[11]!==s||e[12]!==a?(m=a("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=a,e[13]=m):m=e[13];let u;e[14]!==m?(u=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r||e[17]!==a?(h=a("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=a,e[18]=h):h=e[18];let g;e[19]!==h?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=g):g=e[20];let x;e[21]!==u||e[22]!==g?(x=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[21]=u,e[22]=g,e[23]=x):x=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==a?(b=c.isPending?a("common.requestToJoinScreen.requesting"):a("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=a,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(S=n.jsx($,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=S):S=e[32];const N=c.isPending;let j;e[33]!==a?(j=a("common.requestToJoinScreen.goToHome"),e[33]=a,e[34]=j):j=e[34];let A;e[35]!==c.isPending||e[36]!==j?(A=n.jsx($,{variant:"ghost",onClick:Lt,disabled:N,children:j}),e[35]=c.isPending,e[36]=j,e[37]=A):A=e[37];let p;e[38]!==S||e[39]!==A?(p=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,A]}),e[38]=S,e[39]=A,e[40]=p):p=e[40];let T;return e[41]!==x||e[42]!==p||e[43]!==v?(T=n.jsxs(ee,{children:[v,x,p]}),e[41]=x,e[42]=p,e[43]=v,e[44]=T):T=e[44],T}function Lt(){window.location.href="/"}function Pt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Dt(t){const e=I.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let i;e[2]!==t?(i=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=i):i=e[3];let l;return e[4]!==s||e[5]!==i?(l={queryKey:s,queryFn:i,refetchOnWindowFocus:!1},e[4]=s,e[5]=i,e[6]=l):l=e[6],Ne(l)}function It({orgSlug:t}){const{data:e}=Dt(t);if(e.status!=="member"){qe()?.org===t&&Be();const s=localStorage.getItem(Z.lastOrgSlug())===t;if(s&&localStorage.removeItem(Z.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Tt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Nt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Et,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Ot,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=I.c(42),{ariaLabel:s,dismissLabel:i,eyebrow:l,title:r,description:a,icon:o,children:d,footerLeading:f,actions:y,onDismiss:c,tone:v}=t,m=v===void 0?"neutral":v,u=f||y;let h;e[0]!==m?(h=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=h):h=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(dt,{size:14}),e[2]=g):g=e[2];let x;e[3]!==i||e[4]!==c?(x=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":i,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:g}),e[3]=i,e[4]=c,e[5]=x):x=e[5];const w=o&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==w||e[7]!==b?(S=ue("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=S):S=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let A;e[13]!==r?(A=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=A):A=e[14];let p;e[15]!==a?(p=a&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a}),e[15]=a,e[16]=p):p=e[16];let T;e[17]!==A||e[18]!==p||e[19]!==j?(T=n.jsxs("div",{children:[j,A,p]}),e[17]=A,e[18]=p,e[19]=j,e[20]=T):T=e[20];let _;e[21]!==d?(_=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let k;e[23]!==T||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]}),e[23]=T,e[24]=_,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==S||e[28]!==N?(O=n.jsxs("div",{className:S,children:[N,k]}),e[26]=k,e[27]=S,e[28]=N,e[29]=O):O=e[29];let L;e[30]!==y||e[31]!==f||e[32]!==u||e[33]!==m?(L=u&&n.jsxs("div",{className:ue("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=u,e[33]=m,e[34]=L):L=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==L||e[38]!==h||e[39]!==x||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,x,O,L]}),e[35]=s,e[36]=O,e[37]=L,e[38]=h,e[39]=x,e[40]=m,e[41]=C):C=e[41],C}const $t=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:H,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ht,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:H,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:H,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:H,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:H,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:H,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:H,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:it,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:H,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:H,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:ct,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Pe=$t,le="studio.release-feed.v1",me=new Set;let V="",W={},fe=!1;function zt(){if(fe)return V||"{}";try{return localStorage.getItem(le)??"{}"}catch{return V||"{}"}}function De(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=zt();return t!==V&&(V=t,W=De(t)),W}function Ft(t){me.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const i=localStorage.getItem(le)??"{}",r={...De(i),...W};W=r,V=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{me.delete(t),window.removeEventListener("storage",e)}}function Mt(t){W=t,V=JSON.stringify(t);try{localStorage.setItem(le,V),fe=!1}catch{fe=!0}me.forEach(e=>e())}function Rt(){const t=I.c(7),e=B.useSyncExternalStore(Ft,Se,Se);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const i=s,l=qt;let r;t[2]!==e?(r=Pe.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const a=r;let o;return t[4]!==i||t[5]!==a?(o={isSeen:i,markSeen:l,unseenCount:a},t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function qt(t){W[t]||Mt({...W,[t]:{seenAt:new Date().toISOString()}})}const Bt=720*60*60*1e3,Ut=10080*60*1e3;function Ht(t){const[e,s,i]=t.split("-").map(Number);return!e||!s||!i?new Date(t).getTime():new Date(e,s-1,i).getTime()}function Jt(t){const e=Pe[0];if(!e)return null;const s=Ht(e.date),i=t-s;return i<0||i>Bt?null:e}function Kt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Gt(t,e){const s=Kt(t);return s===null?!1:e-s>=Ut}function Vt(){const t=I.c(41),e=U(),{data:s}=X.useSession(),{isSeen:i,markSeen:l}=Rt(),[r,a]=B.useState(!1);let o,d,f;if(t[0]!==i||t[1]!==s?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Jt(j),!o){f=null;break e}if(!Gt(s?.user?.createdAt,j)){f=null;break e}d=i(o.id)}t[0]=i,t[1]=s?.user?.createdAt,t[2]=o,t[3]=d,t[4]=f}else o=t[2],d=t[3],f=t[4];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(d)return null;let y;t[5]!==e?(y=e("announcements.release.ariaLabel"),t[5]=e,t[6]=y):y=t[6];let c;t[7]!==e?(c=e("announcements.release.dismiss"),t[7]=e,t[8]=c):c=t[8];const v=o.eyebrow,m=o.title;let u;t[9]!==o.id||t[10]!==l?(u=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=u):u=t[11];let h;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(h=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=h):h=t[16];let g;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(g=o.cta?"href"in o.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx($,{size:"sm",onClick:()=>a(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=g):g=t[20];let x;t[21]!==o.bullets?(x=o.bullets.map(Wt),t[21]=o.bullets,t[22]=x):x=t[22];let w;t[23]!==x?(w=n.jsx("ul",{className:"flex flex-col gap-3",children:x}),t[23]=x,t[24]=w):w=t[24];let b;t[25]!==o.id||t[26]!==l?(b=j=>{a(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=b):b=t[27];let S;t[28]!==r||t[29]!==b?(S=n.jsx(ut,{open:r,onOpenChange:b}),t[28]=r,t[29]=b,t[30]=S):S=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==w||t[34]!==S||t[35]!==y||t[36]!==c||t[37]!==u||t[38]!==h||t[39]!==g?(N=n.jsxs(Le,{ariaLabel:y,dismissLabel:c,eyebrow:v,title:m,onDismiss:u,footerLeading:h,actions:g,children:[w,S]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=w,t[34]=S,t[35]=y,t[36]=c,t[37]=u,t[38]=h,t[39]=g,t[40]=N):N=t[40],N}function Wt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ie=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=Ie?"⌘":"Ctrl",M={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Qt=[{label:"General",shortcuts:[M.keyboardShortcuts,M.back,M.newTask,M.toggleDaemon]},{label:"Editor",shortcuts:[M.saveAndFormat]},{label:"Chat",shortcuts:[M.focusChatInput,M.togglePlanMode,M.sendMessage,M.newLine]},{label:"Questions",shortcuts:[M.selectOption]},{label:"Monitoring",shortcuts:[M.applyFilter]}];function ve(t){return Ie?t.metaKey:t.ctrlKey}function Yt(t){const e=I.c(11),{open:s,onOpenChange:i}=t,l=U();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let a;e[2]!==r?(a=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=a):a=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Qt.map(Zt)}),e[4]=o):o=e[4];let d;e[5]!==a?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[a,o]}),e[5]=a,e[6]=d):d=e[6];let f;return e[7]!==i||e[8]!==s||e[9]!==d?(f=n.jsx(Ee,{open:s,onOpenChange:i,children:d}),e[7]=i,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function Zt(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Xt)})]},t.label)}function Xt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(en)})]},t.description)}function en(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const tn=300*1e3,nn=2;function sn(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function on(t,e){return t.count>=nn&&t.version!==null&&t.version!==e}function an(){const t=I.c(43),e=U(),s=xt();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={mutationFn:ln},t[0]=i):i=t[0];const l=ne(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:ce.appVersionCheck(),queryFn:rn,refetchInterval:tn,refetchIntervalInBackground:!0,staleTime:0},t[1]=r):r=t[1];const{data:a,dataUpdatedAt:o}=re(r),[d,f]=B.useState(0);let y;t[2]===Symbol.for("react.memo_cache_sentinel")?(y={version:null,count:0},t[2]=y):y=t[2];const[c,v]=B.useState(y);o!==d&&(f(o),v(R=>sn(R,a,"4.217.2")));const[m,u]=B.useState(null),h=s;let g;t[3]!==s||t[4]!==l?(g=()=>window.location.reload(),t[3]=s,t[4]=l,t[5]=g):g=t[5];const x=g,w="announcements.version.refresh";if(!on(c,m))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let S;t[8]!==e?(S=e("announcements.version.dismiss"),t[8]=e,t[9]=S):S=t[9];let N;t[10]!==e?(N=e("announcements.version.eyebrow"),t[10]=e,t[11]=N):N=t[11];let j;t[12]!==e?(j=e("announcements.version.title"),t[12]=e,t[13]=j):j=t[13];const A="announcements.version.description";let p;t[14]!==e||t[15]!==A?(p=e(A),t[14]=e,t[15]=A,t[16]=p):p=t[16];let T;t[17]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{size:16}),t[17]=T):T=t[17];let _;t[18]!==c.version?(_=()=>u(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.217.2"}),t[20]=e,t[21]=k):k=t[21];let O;t[22]!==w||t[23]!==e?(O=e(w),t[22]=w,t[23]=e,t[24]=O):O=t[24];const L=h;let C;t[25]!==L?(C=ue(L),t[25]=L,t[26]=C):C=t[26];let D;t[27]!==C?(D=n.jsx(he,{size:14,className:C}),t[27]=C,t[28]=D):D=t[28];let E;t[29]!==x||t[30]!==h||t[31]!==O||t[32]!==D?(E=n.jsxs($,{size:"sm",disabled:h,onClick:x,children:[O,D]}),t[29]=x,t[30]=h,t[31]=O,t[32]=D,t[33]=E):E=t[33];let F;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==b||t[38]!==S||t[39]!==N||t[40]!==j||t[41]!==p?(F=n.jsx(Le,{ariaLabel:b,dismissLabel:S,eyebrow:N,title:j,description:p,icon:T,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=b,t[38]=S,t[39]=N,t[40]=j,t[41]=p,t[42]=F):F=t[42],F}async function rn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function ln(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function cn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const dn=Date.parse("2026-07-21T00:00:00Z"),je=t=>cn(Z.ptBrAnnouncementSeen(t));function un(){const t=I.c(35),e=U(),[s,i]=Ue(),{data:l,isPending:r}=X.useSession(),a=l?.user,o=a?.id,d=a?.createdAt,f=d!=null&&new Date(d).getTime()<dn,y=He()==="pt-BR",c=!r&&!!o&&f&&y&&s.language==="en"&&!je(o).has(),[v,m]=B.useState(!1),[u,h]=B.useState(!1);!v&&!r&&(m(!0),c&&o&&(je(o).mark(),i(fn),h(!0),pe("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=q=>{pe("pt_br_auto_switch_closed",{action:q}),h(!1)},t[0]=g):g=t[0];const x=g;let w;t[1]!==i?(w=()=>{i(mn),x("switch-back")},t[1]=i,t[2]=w):w=t[2];const b=w;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=q=>!q&&x("dismiss"),t[3]=S):S=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let A;t[7]!==j?(A=n.jsx(Oe,{children:j}),t[7]=j,t[8]=A):A=t[8];let p;t[9]!==e?(p=e("announcements.ptBr.description"),t[9]=e,t[10]=p):p=t[10];let T;t[11]!==p?(T=n.jsx(pt,{children:p}),t[11]=p,t[12]=T):T=t[12];let _;t[13]!==A||t[14]!==T?(_=n.jsxs(Te,{children:[A,T]}),t[13]=A,t[14]=T,t[15]=_):_=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let O;t[18]!==b||t[19]!==k?(O=n.jsx($,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>x("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=D):D=t[25];let E;t[26]!==O||t[27]!==D?(E=n.jsxs(yt,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=E):E=t[28];let F;t[29]!==E||t[30]!==_?(F=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,_,E]}),t[29]=E,t[30]=_,t[31]=F):F=t[31];let R;return t[32]!==u||t[33]!==F?(R=n.jsx(Ee,{open:u,onOpenChange:S,children:F}),t[32]=u,t[33]=F,t[34]=R):R=t[34],R}function mn(t){return{...t,language:"en"}}function fn(t){return{...t,language:"pt-BR"}}function gn(t){const e=Je(t);return typeof e=="string"?e:void 0}function hn(){return gn("experiment-pipeline-check"),null}function pn(t){const e=I.c(1),{activeOrg:s}=t;if(!s)return null;Ke(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Ge();let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(hn,{}),e[0]=i):i=e[0],i}function yn(t){const{prev:e,virtualMcpId:s,decopilotId:i,savedLayout:l,opts:r,autosendValue:a}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:i,y=(s??d)!==d;let c;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(c=l.sidepanel);else if(!y){const v=e.main;v&&typeof v=="string"&&!mt(v)&&(o.main=v)}return c!==void 0&&(o.sidepanel=c),r?.autosend&&(o.autosend=a),o}const $e="studio:thread-layout:v1",xn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function bn(t,e,s,i=xn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>i;)l.shift();return l}function ge(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Fe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function wn(t,e){t&&Fe(bn(ge(),t,e))}function Sn(t){if(!t)return null;const e=ge().find(([s])=>s===t);return e?ze(e[1]):null}function Vn(t){if(!t)return;const e=ge(),s=e.filter(([i])=>i!==t);s.length!==e.length&&Fe(s)}function Me(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Wn(t){const e=I.c(10);let s;e[0]!==t?(s=Me(t),e[0]=t,e[1]=s):s=e[1];const i=re(s);let l;e[2]!==i.data?.prompts?(l=i.data?.prompts??[],e[2]=i.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==i.data?.tiles?(r=i.data?.tiles??[],e[4]=i.data?.tiles,e[5]=r):r=e[5];let a;return e[6]!==i.isLoading||e[7]!==l||e[8]!==r?(a={isLoading:i.isLoading,prompts:l,tiles:r},e[6]=i.isLoading,e[7]=l,e[8]=r,e[9]=a):a=e[9],a}function vn(t){const e=I.c(31),{orgSlug:s,orgName:i,domain:l}=t,r=U();let a;e[0]!==s?(a=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=a):a=e[1];const o=a,d=jn;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let c;e[5]!==y?(c=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=c):c=e[6];let v;e[7]!==l||e[8]!==i||e[9]!==r?(v=i?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:i})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=i,e[9]=r,e[10]=v):v=e[10];let m;e[11]!==v?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[11]=v,e[12]=m):m=e[12];let u;e[13]!==c||e[14]!==m?(u=n.jsxs("div",{className:"space-y-2",children:[c,m]}),e[13]=c,e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let g;e[18]!==o||e[19]!==h?(g=n.jsx($,{onClick:o,children:h}),e[18]=o,e[19]=h,e[20]=g):g=e[20];let x;e[21]!==r?(x=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=x):x=e[22];let w;e[23]!==x?(w=n.jsx($,{variant:"ghost",onClick:d,children:x}),e[23]=x,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==g?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,w]}),e[25]=w,e[26]=g,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==u?(S=n.jsxs(ee,{children:[f,u,b]}),e[28]=b,e[29]=u,e[30]=S):S=e[30],S}function jn(){window.location.href="/"}function kn(t){const e=I.c(8),{org:s,children:i}=t,r=jt(s.id,s.slug)?.enabled_plugins??null;let a;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(a={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=a):a=e[3];const o=a;let d;return e[4]!==i||e[5]!==s||e[6]!==o?(d=n.jsx(ot,{org:s,project:o,children:i}),e[4]=i,e[5]=s,e[6]=o,e[7]=d):d=e[7],d}function Nn(){const t=Ve(),e=vt(),{org:s}=We(),i=Ae({strict:!1}),l=Qe({strict:!1}),r=i.org??"",a=i.taskId??"",o=(m,u,h=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:u,replace:h}),d=(m,u=!0)=>o(a,m,u),f=m=>d(u=>({...u,sidepanel:m})),y=(m,u,h)=>{const g=!!a&&a===m;a&&!g&&wn(a,{main:l.main,sidepanel:l.sidepanel});const x=g?null:Sn(m),w=be(s.id).id;return o(m,b=>yn({prev:b,virtualMcpId:u,decopilotId:w,savedLayout:x,opts:h,autosendValue:ft}),!1)};return{openSidePanel:f,setTaskId:y,createNewTask:async(m,u)=>{const h=crypto.randomUUID(),g=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:h,virtual_mcp_id:g,...u?{branch:u}:{}})}catch{}y(h,g)},openTab:m=>o(a||crypto.randomUUID(),u=>({...u,main:m}))}}function An(){const t=I.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const i=Ye(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[a,o]=B.useState(!1),d=Ze(),f=i??"";let y;t[2]!==f?(y=Me(f),t[2]=f,t[3]=y):y=t[3];const c=!!i&&!r;let v;t[4]!==y||t[5]!==c?(v={...y,enabled:c},t[4]=y,t[5]=c,t[6]=v):v=t[6],re(v);const{data:m}=X.useSession(),u=m?.user?.id;let h;t[7]!==i||t[8]!==u?(h=i&&u?Xe(u,i):null,t[7]=i,t[8]=u,t[9]=h):h=t[9];const g=h;let x,w;t[10]!==d?(x=()=>{const P=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},w=[d],t[10]=d,t[11]=x,t[12]=w):(x=t[11],w=t[12]),B.useEffect(x,w);let b;t[13]!==i?(b=ce.activeOrganization(i),t[13]=i,t[14]=b):b=t[14];let S;t[15]!==i||t[16]!==u?(S=async()=>{if(!i)return null;performance.mark("mesh:active-org-fetch:start");const{data:P}=await X.organization.getFullOrganization({query:{organizationSlug:i}}).finally(_n),z=ye(P);return P&&!z&&localStorage.setItem(Z.lastOrgSlug(),i),u&&P&&tt(u,i,P),P},t[15]=i,t[16]=u,t[17]=S):S=t[17];const N=g?g.data:void 0,j=g?.updatedAt;let A;t[18]!==S||t[19]!==N||t[20]!==j||t[21]!==b?(A={queryKey:b,queryFn:S,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=S,t[19]=N,t[20]=j,t[21]=b,t[22]=A):A=t[22];const{data:p}=Ne(A),T=p?.id,_=p?.slug,{data:k}=kt(T,_),O=T??"",L=_??"";let C;t[23]!==O||t[24]!==L?(C=wt({connectionId:St,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const D=!!T&&!!_;let E;if(t[26]!==C||t[27]!==D?(E={...C,enabled:D},t[26]=C,t[27]=D,t[28]=E):E=t[28],re(E),!p){let P;t[29]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(nt,{}),t[29]=P):P=t[29];let z;return t[30]!==i?(z=n.jsx(B.Suspense,{fallback:P,children:n.jsx(It,{orgSlug:i})}),t[30]=i,t[31]=z):z=t[31],z}if(ye(p)){localStorage.getItem(Z.lastOrgSlug())===i&&localStorage.removeItem(Z.lastOrgSlug());let P;return t[32]!==p.name?(P=n.jsx(et,{orgName:p.name}),t[32]=p.name,t[33]=P):P=t[33],P}if(k?.ssoRequired&&!k.authenticated){let P;return t[34]!==p.id||t[35]!==p.name||t[36]!==p.slug||t[37]!==k.domain?(P=n.jsx(vn,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:k.domain}),t[34]=p.id,t[35]=p.name,t[36]=p.slug,t[37]=k.domain,t[38]=P):P=t[38],P}const R=p.logo??null;let q;t[39]!==p||t[40]!==R?(q={...p,logo:R},t[39]=p,t[40]=R,t[41]=q):q=t[41];let Q;t[42]!==p?(Q=n.jsx(pn,{activeOrg:p}),t[42]=p,t[43]=Q):Q=t[43];let se;t[44]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(st,{}),t[44]=se):se=t[44];let oe;t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Vt,{}),n.jsx(an,{})]}),t[45]=oe):oe=t[45];let Y;t[46]!==a?(Y=n.jsx(Yt,{open:a,onOpenChange:o}),t[46]=a,t[47]=Y):Y=t[47];let ie;t[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(un,{}),t[48]=ie):ie=t[48];let ae;return t[49]!==q||t[50]!==Q||t[51]!==Y?(ae=n.jsxs(kn,{org:q,children:[Q,se,oe,Y,ie]}),t[49]=q,t[50]=Q,t[51]=Y,t[52]=ae):ae=t[52],ae}function _n(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Tn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(bt,{children:n.jsx(An,{})}),t[0]=e):e=t[0],e}const Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Tn,usePanelActions:Nn},Symbol.toStringTag,{value:"Module"}));export{M as K,Wn as a,Vn as f,ve as i,cn as m,Qn as s,Nn as u};
1
+ import{c as I,b as U,e as ne,j as n,B as $,t as te,bY as ee,y as ke,a as X,w as Re,x as Ne,K as ce,bZ as qe,b_ as Be,G as Z,m as ue,r as B,n as re,av as he,v as Ue,b$ as He,p as pe,c0 as Je,c1 as Ke,c2 as Ge,d as Ve,F as We,f as Ae,u as Qe,J as Ye,b4 as Ze,c3 as Xe,c4 as ye,c5 as et,c6 as tt,S as nt,O as st,c7 as ot}from"./index-Bv3HJTsB.js";import{A as de}from"./avatar-B-tQVUZa.js";import{t as _e,a as it}from"./Users03-B1wGfhcy.js";import{i as at}from"./SearchLg-CRW3wluh.js";import{i as rt,s as lt,a as H,n as ct}from"./Stars02-DgG9oRDa.js";import{s as dt}from"./XClose-DNnEfQki.js";import{D as ut,s as mt,A as ft}from"./tab-id-YfaqrPxi.js";import{i as K}from"./CheckCircle-BYhZPEg1.js";import{i as gt}from"./CpuChip01-t6G46-8v.js";import{i as xe}from"./FilterLines-DP65NpgD.js";import{i as ht}from"./Monitor01-CzAMuIuI.js";import{i as G}from"./Zap-C99K0vWQ.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as pt,c as yt}from"./dialog-C2ssRIQJ.js";import{u as xt}from"./use-is-desktop-app-BNujXJc_.js";import{R as bt}from"./required-auth-layout-Dnei0J6i.js";import{a as be,m as wt,S as St}from"./use-mcp-client-BnA78fm5.js";import{c as vt}from"./hooks-CLYOG19B.js";import{g as jt}from"./use-organization-settings-P3mozsBB.js";import{u as kt}from"./use-org-sso-Coalj9T-.js";function Nt(t){const e=I.c(49),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i||e[1]!==a?(o=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),O=await k.json();if(!k.ok||!O.success)throw new Error(O.error??a("common.autoDomainJoinScreen.joinError"));return O},e[0]=i,e[1]=a,e[2]=o):o=e[2];let d;e[3]!==i?(d=k=>{window.location.href=`/${k.slug??i}`},e[3]=i,e[4]=d):d=e[4];let f;e[5]!==a?(f=k=>{te.error(k instanceof Error?k.message:a("common.autoDomainJoinScreen.joinError"))},e[5]=a,e[6]=f):f=e[6];let y;e[7]!==o||e[8]!==d||e[9]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[7]=o,e[8]=d,e[9]=f,e[10]=y):y=e[10];const c=ne(y),v=At;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let u;e[14]!==s||e[15]!==a?(u=a("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=a,e[16]=u):u=e[16];let h;e[17]!==u?(h=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=h):h=e[18];let g;e[19]!==r||e[20]!==a?(g=a("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=a,e[21]=g):g=e[21];let x;e[22]!==g?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=x):x=e[23];let w;e[24]!==h||e[25]!==x?(w=n.jsxs("div",{className:"space-y-2",children:[h,x]}),e[24]=h,e[25]=x,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==s||e[31]!==a?(S=c.isPending?a("common.autoDomainJoinScreen.joining"):a("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=a,e[32]=S):S=e[32];let N;e[33]!==c.isPending||e[34]!==b||e[35]!==S?(N=n.jsx($,{onClick:b,disabled:c.isPending,children:S}),e[33]=c.isPending,e[34]=b,e[35]=S,e[36]=N):N=e[36];const j=c.isPending;let A;e[37]!==a?(A=a("common.autoDomainJoinScreen.goHome"),e[37]=a,e[38]=A):A=e[38];let p;e[39]!==c.isPending||e[40]!==A?(p=n.jsx($,{variant:"ghost",onClick:v,disabled:j,children:A}),e[39]=c.isPending,e[40]=A,e[41]=p):p=e[41];let T;e[42]!==N||e[43]!==p?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,p]}),e[42]=N,e[43]=p,e[44]=T):T=e[44];let _;return e[45]!==w||e[46]!==T||e[47]!==m?(_=n.jsxs(ee,{children:[m,w,T]}),e[45]=w,e[46]=T,e[47]=m,e[48]=_):_=e[48],_}function At(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:s,orgName:i,reason:l}=t,r=U(),a=_t,o=l==="not-found",d=o?at:ke;let f;e[0]!==o||e[1]!==r?(f=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=f):f=e[2];const y=f;let c;e[3]!==o||e[4]!==i||e[5]!==s||e[6]!==r?(c=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:i??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=i,e[5]=s,e[6]=r,e[7]=c):c=e[7];const v=c;let m;e[8]!==d?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=m):m=e[9];let u;e[10]!==y?(u=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[10]=y,e[11]=u):u=e[11];let h;e[12]!==v?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[12]=v,e[13]=h):h=e[13];let g;e[14]!==u||e[15]!==h?(g=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[14]=u,e[15]=h,e[16]=g):g=e[16];let x;e[17]!==r?(x=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=x):x=e[18];let w;e[19]!==x?(w=n.jsx($,{onClick:a,children:x}),e[19]=x,e[20]=w):w=e[20];let b;return e[21]!==m||e[22]!==g||e[23]!==w?(b=n.jsxs(ee,{children:[m,g,w]}),e[21]=m,e[22]=g,e[23]=w,e[24]=b):b=e[24],b}function _t(){window.location.href="/"}function Tt(t){const e=I.c(59),{invitationId:s,orgName:i,orgSlug:l,orgLogo:r}=t,a=U();let o;e[0]!==s?(o=async()=>{const E=await X.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let d;e[2]!==l?(d=()=>{Re(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let f;e[4]!==a?(f=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToAccept"))},e[4]=a,e[5]=f):f=e[5];let y;e[6]!==o||e[7]!==d||e[8]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[6]=o,e[7]=d,e[8]=f,e[9]=y):y=e[9];const c=ne(y);let v;e[10]!==s?(v=async()=>{const E=await X.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=v):v=e[11];let m,u;e[12]!==a?(m=()=>{te.success(a("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToDecline"))},e[12]=a,e[13]=m,e[14]=u):(m=e[13],u=e[14]);let h;e[15]!==v||e[16]!==m||e[17]!==u?(h={mutationFn:v,onSuccess:m,onError:u},e[15]=v,e[16]=m,e[17]=u,e[18]=h):h=e[18];const g=ne(h),x=c.isPending||g.isPending;let w;e[19]!==r||e[20]!==i?(w=r?n.jsx(de,{url:r,fallback:i.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(rt,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let b;e[22]!==i||e[23]!==a?(b=a("common.pendingInviteScreen.invitedTo",{orgName:i}),e[22]=i,e[23]=a,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let N;e[27]!==a?(N=a("common.pendingInviteScreen.acceptDescription"),e[27]=a,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let A;e[31]!==S||e[32]!==j?(A=n.jsxs("div",{className:"space-y-2",children:[S,j]}),e[31]=S,e[32]=j,e[33]=A):A=e[33];let p;e[34]!==c?(p=()=>c.mutate(),e[34]=c,e[35]=p):p=e[35];let T;e[36]!==c.isPending||e[37]!==a?(T=c.isPending?a("common.pendingInviteScreen.acceptingButton"):a("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=a,e[38]=T):T=e[38];let _;e[39]!==x||e[40]!==p||e[41]!==T?(_=n.jsx($,{onClick:p,disabled:x,children:T}),e[39]=x,e[40]=p,e[41]=T,e[42]=_):_=e[42];let k;e[43]!==g?(k=()=>g.mutate(),e[43]=g,e[44]=k):k=e[44];let O;e[45]!==g.isPending||e[46]!==a?(O=g.isPending?a("common.pendingInviteScreen.decliningButton"):a("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=a,e[47]=O):O=e[47];let L;e[48]!==x||e[49]!==k||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:k,disabled:x,children:O}),e[48]=x,e[49]=k,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==_||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,L]}),e[52]=_,e[53]=L,e[54]=C):C=e[54];let D;return e[55]!==A||e[56]!==C||e[57]!==w?(D=n.jsxs(ee,{children:[w,A,C]}),e[55]=A,e[56]=C,e[57]=w,e[58]=D):D=e[58],D}function Ot(t){const e=I.c(23),{orgName:s,orgLogo:i}=t,l=U();let r;e[0]!==i||e[1]!==s?(r=i?n.jsx(de,{url:i,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(lt,{className:"h-6 w-6 text-primary"})}),e[0]=i,e[1]=s,e[2]=r):r=e[2];let a;e[3]!==l?(a=l("common.requestPendingScreen.title"),e[3]=l,e[4]=a):a=e[4];let o;e[5]!==a?(o=n.jsx("h3",{className:"text-lg font-medium",children:a}),e[5]=a,e[6]=o):o=e[6];let d;e[7]!==s||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=d):d=e[9];let f;e[10]!==d?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let y;e[12]!==o||e[13]!==f?(y=n.jsxs("div",{className:"space-y-2",children:[o,f]}),e[12]=o,e[13]=f,e[14]=y):y=e[14];let c;e[15]!==l?(c=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=c):c=e[16];let v;e[17]!==c?(v=n.jsx($,{variant:"ghost",onClick:Ct,children:c}),e[17]=c,e[18]=v):v=e[18];let m;return e[19]!==r||e[20]!==y||e[21]!==v?(m=n.jsxs(ee,{children:[r,y,v]}),e[19]=r,e[20]=y,e[21]=v,e[22]=m):m=e[22],m}function Ct(){window.location.href="/"}function Et(t){const e=I.c(45),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i?(o=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=i,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Pt,e[2]=d):d=e[2];let f;e[3]!==a?(f=_=>{te.error(_ instanceof Error?_.message:a("common.requestToJoinScreen.failedToRequest"))},e[3]=a,e[4]=f):f=e[4];let y;e[5]!==o||e[6]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[5]=o,e[6]=f,e[7]=y):y=e[7];const c=ne(y);let v;e[8]!==l||e[9]!==s?(v=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=v):v=e[10];let m;e[11]!==s||e[12]!==a?(m=a("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=a,e[13]=m):m=e[13];let u;e[14]!==m?(u=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r||e[17]!==a?(h=a("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=a,e[18]=h):h=e[18];let g;e[19]!==h?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=g):g=e[20];let x;e[21]!==u||e[22]!==g?(x=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[21]=u,e[22]=g,e[23]=x):x=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==a?(b=c.isPending?a("common.requestToJoinScreen.requesting"):a("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=a,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(S=n.jsx($,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=S):S=e[32];const N=c.isPending;let j;e[33]!==a?(j=a("common.requestToJoinScreen.goToHome"),e[33]=a,e[34]=j):j=e[34];let A;e[35]!==c.isPending||e[36]!==j?(A=n.jsx($,{variant:"ghost",onClick:Lt,disabled:N,children:j}),e[35]=c.isPending,e[36]=j,e[37]=A):A=e[37];let p;e[38]!==S||e[39]!==A?(p=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,A]}),e[38]=S,e[39]=A,e[40]=p):p=e[40];let T;return e[41]!==x||e[42]!==p||e[43]!==v?(T=n.jsxs(ee,{children:[v,x,p]}),e[41]=x,e[42]=p,e[43]=v,e[44]=T):T=e[44],T}function Lt(){window.location.href="/"}function Pt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Dt(t){const e=I.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let i;e[2]!==t?(i=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=i):i=e[3];let l;return e[4]!==s||e[5]!==i?(l={queryKey:s,queryFn:i,refetchOnWindowFocus:!1},e[4]=s,e[5]=i,e[6]=l):l=e[6],Ne(l)}function It({orgSlug:t}){const{data:e}=Dt(t);if(e.status!=="member"){qe()?.org===t&&Be();const s=localStorage.getItem(Z.lastOrgSlug())===t;if(s&&localStorage.removeItem(Z.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Tt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Nt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Et,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Ot,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=I.c(42),{ariaLabel:s,dismissLabel:i,eyebrow:l,title:r,description:a,icon:o,children:d,footerLeading:f,actions:y,onDismiss:c,tone:v}=t,m=v===void 0?"neutral":v,u=f||y;let h;e[0]!==m?(h=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=h):h=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(dt,{size:14}),e[2]=g):g=e[2];let x;e[3]!==i||e[4]!==c?(x=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":i,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:g}),e[3]=i,e[4]=c,e[5]=x):x=e[5];const w=o&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==w||e[7]!==b?(S=ue("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=S):S=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let A;e[13]!==r?(A=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=A):A=e[14];let p;e[15]!==a?(p=a&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a}),e[15]=a,e[16]=p):p=e[16];let T;e[17]!==A||e[18]!==p||e[19]!==j?(T=n.jsxs("div",{children:[j,A,p]}),e[17]=A,e[18]=p,e[19]=j,e[20]=T):T=e[20];let _;e[21]!==d?(_=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let k;e[23]!==T||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]}),e[23]=T,e[24]=_,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==S||e[28]!==N?(O=n.jsxs("div",{className:S,children:[N,k]}),e[26]=k,e[27]=S,e[28]=N,e[29]=O):O=e[29];let L;e[30]!==y||e[31]!==f||e[32]!==u||e[33]!==m?(L=u&&n.jsxs("div",{className:ue("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=u,e[33]=m,e[34]=L):L=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==L||e[38]!==h||e[39]!==x||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,x,O,L]}),e[35]=s,e[36]=O,e[37]=L,e[38]=h,e[39]=x,e[40]=m,e[41]=C):C=e[41],C}const $t=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:H,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ht,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:H,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:H,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:H,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:H,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:H,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:H,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:it,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:H,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:H,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:ct,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Pe=$t,le="studio.release-feed.v1",me=new Set;let V="",W={},fe=!1;function zt(){if(fe)return V||"{}";try{return localStorage.getItem(le)??"{}"}catch{return V||"{}"}}function De(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=zt();return t!==V&&(V=t,W=De(t)),W}function Ft(t){me.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const i=localStorage.getItem(le)??"{}",r={...De(i),...W};W=r,V=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{me.delete(t),window.removeEventListener("storage",e)}}function Mt(t){W=t,V=JSON.stringify(t);try{localStorage.setItem(le,V),fe=!1}catch{fe=!0}me.forEach(e=>e())}function Rt(){const t=I.c(7),e=B.useSyncExternalStore(Ft,Se,Se);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const i=s,l=qt;let r;t[2]!==e?(r=Pe.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const a=r;let o;return t[4]!==i||t[5]!==a?(o={isSeen:i,markSeen:l,unseenCount:a},t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function qt(t){W[t]||Mt({...W,[t]:{seenAt:new Date().toISOString()}})}const Bt=720*60*60*1e3,Ut=10080*60*1e3;function Ht(t){const[e,s,i]=t.split("-").map(Number);return!e||!s||!i?new Date(t).getTime():new Date(e,s-1,i).getTime()}function Jt(t){const e=Pe[0];if(!e)return null;const s=Ht(e.date),i=t-s;return i<0||i>Bt?null:e}function Kt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Gt(t,e){const s=Kt(t);return s===null?!1:e-s>=Ut}function Vt(){const t=I.c(41),e=U(),{data:s}=X.useSession(),{isSeen:i,markSeen:l}=Rt(),[r,a]=B.useState(!1);let o,d,f;if(t[0]!==i||t[1]!==s?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Jt(j),!o){f=null;break e}if(!Gt(s?.user?.createdAt,j)){f=null;break e}d=i(o.id)}t[0]=i,t[1]=s?.user?.createdAt,t[2]=o,t[3]=d,t[4]=f}else o=t[2],d=t[3],f=t[4];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(d)return null;let y;t[5]!==e?(y=e("announcements.release.ariaLabel"),t[5]=e,t[6]=y):y=t[6];let c;t[7]!==e?(c=e("announcements.release.dismiss"),t[7]=e,t[8]=c):c=t[8];const v=o.eyebrow,m=o.title;let u;t[9]!==o.id||t[10]!==l?(u=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=u):u=t[11];let h;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(h=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=h):h=t[16];let g;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(g=o.cta?"href"in o.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx($,{size:"sm",onClick:()=>a(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=g):g=t[20];let x;t[21]!==o.bullets?(x=o.bullets.map(Wt),t[21]=o.bullets,t[22]=x):x=t[22];let w;t[23]!==x?(w=n.jsx("ul",{className:"flex flex-col gap-3",children:x}),t[23]=x,t[24]=w):w=t[24];let b;t[25]!==o.id||t[26]!==l?(b=j=>{a(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=b):b=t[27];let S;t[28]!==r||t[29]!==b?(S=n.jsx(ut,{open:r,onOpenChange:b}),t[28]=r,t[29]=b,t[30]=S):S=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==w||t[34]!==S||t[35]!==y||t[36]!==c||t[37]!==u||t[38]!==h||t[39]!==g?(N=n.jsxs(Le,{ariaLabel:y,dismissLabel:c,eyebrow:v,title:m,onDismiss:u,footerLeading:h,actions:g,children:[w,S]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=w,t[34]=S,t[35]=y,t[36]=c,t[37]=u,t[38]=h,t[39]=g,t[40]=N):N=t[40],N}function Wt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ie=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=Ie?"⌘":"Ctrl",M={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Qt=[{label:"General",shortcuts:[M.keyboardShortcuts,M.back,M.newTask,M.toggleDaemon]},{label:"Editor",shortcuts:[M.saveAndFormat]},{label:"Chat",shortcuts:[M.focusChatInput,M.togglePlanMode,M.sendMessage,M.newLine]},{label:"Questions",shortcuts:[M.selectOption]},{label:"Monitoring",shortcuts:[M.applyFilter]}];function ve(t){return Ie?t.metaKey:t.ctrlKey}function Yt(t){const e=I.c(11),{open:s,onOpenChange:i}=t,l=U();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let a;e[2]!==r?(a=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=a):a=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Qt.map(Zt)}),e[4]=o):o=e[4];let d;e[5]!==a?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[a,o]}),e[5]=a,e[6]=d):d=e[6];let f;return e[7]!==i||e[8]!==s||e[9]!==d?(f=n.jsx(Ee,{open:s,onOpenChange:i,children:d}),e[7]=i,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function Zt(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Xt)})]},t.label)}function Xt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(en)})]},t.description)}function en(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const tn=300*1e3,nn=2;function sn(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function on(t,e){return t.count>=nn&&t.version!==null&&t.version!==e}function an(){const t=I.c(43),e=U(),s=xt();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={mutationFn:ln},t[0]=i):i=t[0];const l=ne(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:ce.appVersionCheck(),queryFn:rn,refetchInterval:tn,refetchIntervalInBackground:!0,staleTime:0},t[1]=r):r=t[1];const{data:a,dataUpdatedAt:o}=re(r),[d,f]=B.useState(0);let y;t[2]===Symbol.for("react.memo_cache_sentinel")?(y={version:null,count:0},t[2]=y):y=t[2];const[c,v]=B.useState(y);o!==d&&(f(o),v(R=>sn(R,a,"4.217.4")));const[m,u]=B.useState(null),h=s;let g;t[3]!==s||t[4]!==l?(g=()=>window.location.reload(),t[3]=s,t[4]=l,t[5]=g):g=t[5];const x=g,w="announcements.version.refresh";if(!on(c,m))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let S;t[8]!==e?(S=e("announcements.version.dismiss"),t[8]=e,t[9]=S):S=t[9];let N;t[10]!==e?(N=e("announcements.version.eyebrow"),t[10]=e,t[11]=N):N=t[11];let j;t[12]!==e?(j=e("announcements.version.title"),t[12]=e,t[13]=j):j=t[13];const A="announcements.version.description";let p;t[14]!==e||t[15]!==A?(p=e(A),t[14]=e,t[15]=A,t[16]=p):p=t[16];let T;t[17]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{size:16}),t[17]=T):T=t[17];let _;t[18]!==c.version?(_=()=>u(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.217.4"}),t[20]=e,t[21]=k):k=t[21];let O;t[22]!==w||t[23]!==e?(O=e(w),t[22]=w,t[23]=e,t[24]=O):O=t[24];const L=h;let C;t[25]!==L?(C=ue(L),t[25]=L,t[26]=C):C=t[26];let D;t[27]!==C?(D=n.jsx(he,{size:14,className:C}),t[27]=C,t[28]=D):D=t[28];let E;t[29]!==x||t[30]!==h||t[31]!==O||t[32]!==D?(E=n.jsxs($,{size:"sm",disabled:h,onClick:x,children:[O,D]}),t[29]=x,t[30]=h,t[31]=O,t[32]=D,t[33]=E):E=t[33];let F;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==b||t[38]!==S||t[39]!==N||t[40]!==j||t[41]!==p?(F=n.jsx(Le,{ariaLabel:b,dismissLabel:S,eyebrow:N,title:j,description:p,icon:T,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=b,t[38]=S,t[39]=N,t[40]=j,t[41]=p,t[42]=F):F=t[42],F}async function rn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function ln(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function cn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const dn=Date.parse("2026-07-21T00:00:00Z"),je=t=>cn(Z.ptBrAnnouncementSeen(t));function un(){const t=I.c(35),e=U(),[s,i]=Ue(),{data:l,isPending:r}=X.useSession(),a=l?.user,o=a?.id,d=a?.createdAt,f=d!=null&&new Date(d).getTime()<dn,y=He()==="pt-BR",c=!r&&!!o&&f&&y&&s.language==="en"&&!je(o).has(),[v,m]=B.useState(!1),[u,h]=B.useState(!1);!v&&!r&&(m(!0),c&&o&&(je(o).mark(),i(fn),h(!0),pe("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=q=>{pe("pt_br_auto_switch_closed",{action:q}),h(!1)},t[0]=g):g=t[0];const x=g;let w;t[1]!==i?(w=()=>{i(mn),x("switch-back")},t[1]=i,t[2]=w):w=t[2];const b=w;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=q=>!q&&x("dismiss"),t[3]=S):S=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let A;t[7]!==j?(A=n.jsx(Oe,{children:j}),t[7]=j,t[8]=A):A=t[8];let p;t[9]!==e?(p=e("announcements.ptBr.description"),t[9]=e,t[10]=p):p=t[10];let T;t[11]!==p?(T=n.jsx(pt,{children:p}),t[11]=p,t[12]=T):T=t[12];let _;t[13]!==A||t[14]!==T?(_=n.jsxs(Te,{children:[A,T]}),t[13]=A,t[14]=T,t[15]=_):_=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let O;t[18]!==b||t[19]!==k?(O=n.jsx($,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>x("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=D):D=t[25];let E;t[26]!==O||t[27]!==D?(E=n.jsxs(yt,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=E):E=t[28];let F;t[29]!==E||t[30]!==_?(F=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,_,E]}),t[29]=E,t[30]=_,t[31]=F):F=t[31];let R;return t[32]!==u||t[33]!==F?(R=n.jsx(Ee,{open:u,onOpenChange:S,children:F}),t[32]=u,t[33]=F,t[34]=R):R=t[34],R}function mn(t){return{...t,language:"en"}}function fn(t){return{...t,language:"pt-BR"}}function gn(t){const e=Je(t);return typeof e=="string"?e:void 0}function hn(){return gn("experiment-pipeline-check"),null}function pn(t){const e=I.c(1),{activeOrg:s}=t;if(!s)return null;Ke(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Ge();let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(hn,{}),e[0]=i):i=e[0],i}function yn(t){const{prev:e,virtualMcpId:s,decopilotId:i,savedLayout:l,opts:r,autosendValue:a}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:i,y=(s??d)!==d;let c;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(c=l.sidepanel);else if(!y){const v=e.main;v&&typeof v=="string"&&!mt(v)&&(o.main=v)}return c!==void 0&&(o.sidepanel=c),r?.autosend&&(o.autosend=a),o}const $e="studio:thread-layout:v1",xn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function bn(t,e,s,i=xn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>i;)l.shift();return l}function ge(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Fe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function wn(t,e){t&&Fe(bn(ge(),t,e))}function Sn(t){if(!t)return null;const e=ge().find(([s])=>s===t);return e?ze(e[1]):null}function Vn(t){if(!t)return;const e=ge(),s=e.filter(([i])=>i!==t);s.length!==e.length&&Fe(s)}function Me(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Wn(t){const e=I.c(10);let s;e[0]!==t?(s=Me(t),e[0]=t,e[1]=s):s=e[1];const i=re(s);let l;e[2]!==i.data?.prompts?(l=i.data?.prompts??[],e[2]=i.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==i.data?.tiles?(r=i.data?.tiles??[],e[4]=i.data?.tiles,e[5]=r):r=e[5];let a;return e[6]!==i.isLoading||e[7]!==l||e[8]!==r?(a={isLoading:i.isLoading,prompts:l,tiles:r},e[6]=i.isLoading,e[7]=l,e[8]=r,e[9]=a):a=e[9],a}function vn(t){const e=I.c(31),{orgSlug:s,orgName:i,domain:l}=t,r=U();let a;e[0]!==s?(a=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=a):a=e[1];const o=a,d=jn;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let c;e[5]!==y?(c=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=c):c=e[6];let v;e[7]!==l||e[8]!==i||e[9]!==r?(v=i?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:i})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=i,e[9]=r,e[10]=v):v=e[10];let m;e[11]!==v?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[11]=v,e[12]=m):m=e[12];let u;e[13]!==c||e[14]!==m?(u=n.jsxs("div",{className:"space-y-2",children:[c,m]}),e[13]=c,e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let g;e[18]!==o||e[19]!==h?(g=n.jsx($,{onClick:o,children:h}),e[18]=o,e[19]=h,e[20]=g):g=e[20];let x;e[21]!==r?(x=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=x):x=e[22];let w;e[23]!==x?(w=n.jsx($,{variant:"ghost",onClick:d,children:x}),e[23]=x,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==g?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,w]}),e[25]=w,e[26]=g,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==u?(S=n.jsxs(ee,{children:[f,u,b]}),e[28]=b,e[29]=u,e[30]=S):S=e[30],S}function jn(){window.location.href="/"}function kn(t){const e=I.c(8),{org:s,children:i}=t,r=jt(s.id,s.slug)?.enabled_plugins??null;let a;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(a={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=a):a=e[3];const o=a;let d;return e[4]!==i||e[5]!==s||e[6]!==o?(d=n.jsx(ot,{org:s,project:o,children:i}),e[4]=i,e[5]=s,e[6]=o,e[7]=d):d=e[7],d}function Nn(){const t=Ve(),e=vt(),{org:s}=We(),i=Ae({strict:!1}),l=Qe({strict:!1}),r=i.org??"",a=i.taskId??"",o=(m,u,h=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:u,replace:h}),d=(m,u=!0)=>o(a,m,u),f=m=>d(u=>({...u,sidepanel:m})),y=(m,u,h)=>{const g=!!a&&a===m;a&&!g&&wn(a,{main:l.main,sidepanel:l.sidepanel});const x=g?null:Sn(m),w=be(s.id).id;return o(m,b=>yn({prev:b,virtualMcpId:u,decopilotId:w,savedLayout:x,opts:h,autosendValue:ft}),!1)};return{openSidePanel:f,setTaskId:y,createNewTask:async(m,u)=>{const h=crypto.randomUUID(),g=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:h,virtual_mcp_id:g,...u?{branch:u}:{}})}catch{}y(h,g)},openTab:m=>o(a||crypto.randomUUID(),u=>({...u,main:m}))}}function An(){const t=I.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const i=Ye(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[a,o]=B.useState(!1),d=Ze(),f=i??"";let y;t[2]!==f?(y=Me(f),t[2]=f,t[3]=y):y=t[3];const c=!!i&&!r;let v;t[4]!==y||t[5]!==c?(v={...y,enabled:c},t[4]=y,t[5]=c,t[6]=v):v=t[6],re(v);const{data:m}=X.useSession(),u=m?.user?.id;let h;t[7]!==i||t[8]!==u?(h=i&&u?Xe(u,i):null,t[7]=i,t[8]=u,t[9]=h):h=t[9];const g=h;let x,w;t[10]!==d?(x=()=>{const P=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},w=[d],t[10]=d,t[11]=x,t[12]=w):(x=t[11],w=t[12]),B.useEffect(x,w);let b;t[13]!==i?(b=ce.activeOrganization(i),t[13]=i,t[14]=b):b=t[14];let S;t[15]!==i||t[16]!==u?(S=async()=>{if(!i)return null;performance.mark("mesh:active-org-fetch:start");const{data:P}=await X.organization.getFullOrganization({query:{organizationSlug:i}}).finally(_n),z=ye(P);return P&&!z&&localStorage.setItem(Z.lastOrgSlug(),i),u&&P&&tt(u,i,P),P},t[15]=i,t[16]=u,t[17]=S):S=t[17];const N=g?g.data:void 0,j=g?.updatedAt;let A;t[18]!==S||t[19]!==N||t[20]!==j||t[21]!==b?(A={queryKey:b,queryFn:S,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=S,t[19]=N,t[20]=j,t[21]=b,t[22]=A):A=t[22];const{data:p}=Ne(A),T=p?.id,_=p?.slug,{data:k}=kt(T,_),O=T??"",L=_??"";let C;t[23]!==O||t[24]!==L?(C=wt({connectionId:St,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const D=!!T&&!!_;let E;if(t[26]!==C||t[27]!==D?(E={...C,enabled:D},t[26]=C,t[27]=D,t[28]=E):E=t[28],re(E),!p){let P;t[29]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(nt,{}),t[29]=P):P=t[29];let z;return t[30]!==i?(z=n.jsx(B.Suspense,{fallback:P,children:n.jsx(It,{orgSlug:i})}),t[30]=i,t[31]=z):z=t[31],z}if(ye(p)){localStorage.getItem(Z.lastOrgSlug())===i&&localStorage.removeItem(Z.lastOrgSlug());let P;return t[32]!==p.name?(P=n.jsx(et,{orgName:p.name}),t[32]=p.name,t[33]=P):P=t[33],P}if(k?.ssoRequired&&!k.authenticated){let P;return t[34]!==p.id||t[35]!==p.name||t[36]!==p.slug||t[37]!==k.domain?(P=n.jsx(vn,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:k.domain}),t[34]=p.id,t[35]=p.name,t[36]=p.slug,t[37]=k.domain,t[38]=P):P=t[38],P}const R=p.logo??null;let q;t[39]!==p||t[40]!==R?(q={...p,logo:R},t[39]=p,t[40]=R,t[41]=q):q=t[41];let Q;t[42]!==p?(Q=n.jsx(pn,{activeOrg:p}),t[42]=p,t[43]=Q):Q=t[43];let se;t[44]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(st,{}),t[44]=se):se=t[44];let oe;t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Vt,{}),n.jsx(an,{})]}),t[45]=oe):oe=t[45];let Y;t[46]!==a?(Y=n.jsx(Yt,{open:a,onOpenChange:o}),t[46]=a,t[47]=Y):Y=t[47];let ie;t[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(un,{}),t[48]=ie):ie=t[48];let ae;return t[49]!==q||t[50]!==Q||t[51]!==Y?(ae=n.jsxs(kn,{org:q,children:[Q,se,oe,Y,ie]}),t[49]=q,t[50]=Q,t[51]=Y,t[52]=ae):ae=t[52],ae}function _n(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Tn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(bt,{children:n.jsx(An,{})}),t[0]=e):e=t[0],e}const Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Tn,usePanelActions:Nn},Symbol.toStringTag,{value:"Module"}));export{M as K,Wn as a,Vn as f,ve as i,cn as m,Qn as s,Nn as u};
@@ -1 +1 @@
1
- import{c as b,m as g,j as o,cU as P,cV as H,H as R,cW as A,cX as V,cY as W,cZ as q,r as T,B as G,bf as L,bD as F}from"./index-DfXfkCwM.js";import{i as U}from"./LayoutLeft-DRCn9V-9.js";import{u as X}from"./use-mobile-CIucwn9L.js";import{i as Y}from"./X-Bzb6oJIk.js";import{b as I,T as z,a as B,c as k}from"./tooltip-4DtnkGLf.js";function Z(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(H,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function J(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function K(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Q(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(K,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(Y,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(J,{children:[m,o.jsxs(R,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function D(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=X(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(I,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=D();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Q,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(Z,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=D();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(U,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(z,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(I,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=D();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(z,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(B,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Q as p,Z as q,xe as r,D as u};
1
+ import{c as b,m as g,j as o,cU as P,cV as H,H as R,cW as A,cX as V,cY as W,cZ as q,r as T,B as G,bf as L,bD as F}from"./index-Bv3HJTsB.js";import{i as U}from"./LayoutLeft-DG-27NLI.js";import{u as X}from"./use-mobile-9pL7OIkR.js";import{i as Y}from"./X-BlCcMj3x.js";import{b as I,T as z,a as B,c as k}from"./tooltip-CjrfwNV8.js";function Z(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(H,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function J(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function K(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Q(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(K,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(Y,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(J,{children:[m,o.jsxs(R,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function D(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=X(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(I,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=D();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Q,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(Z,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=D();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(U,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(z,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(I,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=D();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(z,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(B,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Q as p,Z as q,xe as r,D as u};
@@ -1 +1 @@
1
- import{c as n,m as c,j as i}from"./index-DfXfkCwM.js";function r(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{r as S};
1
+ import{c as n,m as c,j as i}from"./index-Bv3HJTsB.js";function r(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{r as S};
@@ -1 +1 @@
1
- import{c as C,m as d,bD as m,j as l}from"./index-DfXfkCwM.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=l.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=a,e[4]=i):(a=e[3],i=e[4]);let s;e[5]!==t?(s=l.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=l.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
1
+ import{c as C,m as d,bD as m,j as l}from"./index-Bv3HJTsB.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=l.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=a,e[4]=i):(a=e[3],i=e[4]);let s;e[5]!==t?(s=l.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=l.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
@@ -1 +1 @@
1
- import{b as B,F as L,r as v,j as e,B as u,p as C,t as c,c as k}from"./index-DfXfkCwM.js";import{D as z}from"./domain-settings-BdeEgLxL.js";import{P as x}from"./index-BjmeYxbb.js";import{g as T,f as O,b as R,A as F,e as q,c as M,d as U}from"./alert-dialog-DVgB3Cr1.js";import{I as d}from"./input-BVoAovEw.js";import{S as $}from"./switch-DdlGzRvU.js";import{a as H,b as G,c as J,d as K}from"./use-org-sso-Bk521YqK.js";import{c as Q,S as y,a as E,b as a,d as D}from"./settings-section-DztkNP0d.js";import{s as V}from"./Trash01-Db5cqPQb.js";import{R as W}from"./require-capability-CfpSwaVR.js";import"./studio-tools-B35Xxz75.js";import"./badge-C6CZu8ID.js";import"./select-CWl0YYNe.js";import"./tooltip-4DtnkGLf.js";import"./Check-BhjsPtKn.js";import"./ChevronDown-B93a6UN-.js";import"./ChevronUp-C1BCpy6t.js";import"./sidebar-B0FM7EZ9.js";import"./LayoutLeft-DRCn9V-9.js";import"./use-mobile-CIucwn9L.js";import"./X-Bzb6oJIk.js";import"./card-mNhcAceO.js";import"./ArrowUpRight-BvAcQrzG.js";import"./use-capability-xOw0-LVT.js";import"./access-gate-B0cTzjRo.js";import"./capability-load-error-_r_QHZ_E.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=G(o.id,o.slug),p=J(o.id,o.slug),b=K(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,S]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),S(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),S(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await p.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),S(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(Q,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(z,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!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($,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:p.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(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&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>S(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(O,{children:[e.jsx(R,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(q,{children:[e.jsx(M,{disabled:p.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(U,{onClick:w,disabled:p.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function Ee(){const s=k.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{Ee as default};
1
+ import{b as B,F as L,r as v,j as e,B as u,p as C,t as c,c as k}from"./index-Bv3HJTsB.js";import{D as z}from"./domain-settings-BIlsUHdq.js";import{P as x}from"./index-DCnuMTTl.js";import{g as T,f as O,b as R,A as F,e as q,c as M,d as U}from"./alert-dialog-C7O-sTmB.js";import{I as d}from"./input-B7YaDDnK.js";import{S as $}from"./switch-feOogWIC.js";import{a as H,b as G,c as J,d as K}from"./use-org-sso-Coalj9T-.js";import{c as Q,S as y,a as E,b as a,d as D}from"./settings-section-3gcIZjnX.js";import{s as V}from"./Trash01-Bn-V1P6Y.js";import{R as W}from"./require-capability-DYRfEUgW.js";import"./studio-tools-CKhQgqxz.js";import"./badge-BhwafdCB.js";import"./select-BwQrZuPN.js";import"./tooltip-CjrfwNV8.js";import"./Check-QLHQly7u.js";import"./ChevronDown-CaGTOKeg.js";import"./ChevronUp-DgE7y70e.js";import"./sidebar-DoRjTCGZ.js";import"./LayoutLeft-DG-27NLI.js";import"./use-mobile-9pL7OIkR.js";import"./X-BlCcMj3x.js";import"./card-D5C3JyFr.js";import"./ArrowUpRight-CdafZNBz.js";import"./use-capability-BZkX5b05.js";import"./access-gate-DokNNEGr.js";import"./capability-load-error-CMuflxzG.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=G(o.id,o.slug),p=J(o.id,o.slug),b=K(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,S]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),S(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),S(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await p.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),S(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(Q,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(z,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!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($,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:p.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(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&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>S(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(O,{children:[e.jsx(R,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(q,{children:[e.jsx(M,{disabled:p.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(U,{onClick:w,disabled:p.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function Ee(){const s=k.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{Ee as default};
@@ -1 +1 @@
1
- import{c as J,b as Z,j as i,r as V,E as pe,F as ue,o as Se,B as X,d as xe,f as he,p as ae,K as ye,e as je,t as ge}from"./index-DfXfkCwM.js";import{i as ve}from"./AlertCircle-BA-4RgcF.js";import{i as Ce}from"./ChevronRight-DdcCOd_P.js";import{s as be}from"./Plus-DX80E320.js";import{s as _e}from"./Trash01-Db5cqPQb.js";import{I as re}from"./input-BVoAovEw.js";import{S as de}from"./switch-DdlGzRvU.js";import{S as Re}from"./skeleton-CkYelUeS.js";import{A as me}from"./avatar-85uUe_Cb.js";import{P as ke,a as Ne,b as Pe}from"./popover-gjnhsOhY.js";import{b as fe}from"./use-connection-DHpUPjf1.js";import{W as ne}from"./use-mcp-client-YTBr9HtX.js";import{P as te}from"./index-BjmeYxbb.js";import{u as Te}from"./use-registry-connections-BHBTv71-.js";import{k as we,l as Ae}from"./use-organization-settings-raf1HSTR.js";import{c as ze,b as H,a as ie,S as le}from"./settings-section-DztkNP0d.js";import{R as Ee}from"./require-capability-CfpSwaVR.js";import"./User01-BAu_vDyh.js";import"./auth-BqOdFwnz.js";import"./sidebar-B0FM7EZ9.js";import"./LayoutLeft-DRCn9V-9.js";import"./use-mobile-CIucwn9L.js";import"./X-Bzb6oJIk.js";import"./tooltip-4DtnkGLf.js";import"./studio-tools-B35Xxz75.js";import"./card-mNhcAceO.js";import"./ArrowUpRight-BvAcQrzG.js";import"./use-capability-xOw0-LVT.js";import"./access-gate-B0cTzjRo.js";import"./capability-load-error-_r_QHZ_E.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(ve,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,u]=V.useState(""),[a,A]=V.useState(""),[S,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==S||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:S||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]=S,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 x;e[9]!==s?(x=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=x):x=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==x?(m={mutationFn:j,onSuccess:d,onError:x},e[11]=j,e[12]=d,e[13]=x,e[14]=m):m=e[14];const{mutate:v,isPending:g}=je(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 p;e[19]===Symbol.for("react.memo_cache_sentinel")?(p=y=>u(y.target.value),e[19]=p):p=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(re,{placeholder:f,value:r,onChange:p,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let 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(re,{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 b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=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 M;e[44]!==E||e[45]!==S?(M=i.jsx(re,{type:"password",placeholder:E,value:S,onChange:Y,className:"w-[280px]"}),e[44]=E,e[45]=S,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==O||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,O,I,w]}),e[69]=O,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:u,href:a}=t,A=Z(),S=xe();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=he(_);let d;e[1]!==o||e[2]!==a||e[3]!==S||e[4]!==r||e[5]!==j?(d=()=>{a?S({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=S,e[4]=r,e[5]=j,e[6]=d):d=e[6];const x=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]!==u||e[11]!==A?(v=u&&i.jsxs(ke,{children:[i.jsx(Ne,{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(_e,{size:14})})}),i.jsx(Pe,{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(),u()},children:A("settings.orgStore.remove")})]})})]}),e[10]=u,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(Ce,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let p;e[20]!==v||e[21]!==h||e[22]!==f?(p=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=p):p=e[23];let C;return e[24]!==c||e[25]!==x||e[26]!==l||e[27]!==m||e[28]!==p?(C=i.jsx(H,{title:l,description:c,onClick:x,icon:m,action:p}),e[24]=c,e[25]=x,e[26]=l,e[27]=m,e[28]=p,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=ue(),c=Te(),s=fe(),o=we(),{mutateAsync:r}=Ae(),u=Se(),[a,A]=V.useState(!1);let S,_,j,d,x,m;if(t[0]!==s||t[1]!==l.id||t[2]!==u||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=ne.REGISTRY(l.id),p=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=ne.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,q=ne.SELF(l.id),B=new Set([f,C,"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 b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==u?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),u.invalidateQueries({queryKey:ye.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=u,t[20]=E):E=t[20];const Y=E;let M;t[21]!==o||t[22]!==r?(M=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]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:p(f),onToggle:n=>b(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?(x=i.jsx(le,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=x):x=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(be,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==p?(y=p("self"),t[43]=p,t[44]=y):y=t[44];let G;t[45]!==b?(G=n=>b("self",n),t[45]=b,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==Y||t[53]!==b||t[54]!==p||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:p(n.id),onToggle:K=>b(n.id,K),onDelete:()=>Y(n.id)},n.id),t[52]=Y,t[53]=b,t[54]=p,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(le,{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],_=le,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],S=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:p(U),onToggle:n=>b(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]=u,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=S,t[9]=_,t[10]=j,t[11]=d,t[12]=x,t[13]=m}else S=t[8],_=t[9],j=t[10],d=t[11],x=t[12],m=t[13];let v;t[67]!==S||t[68]!==j?(v=i.jsx(S,{children:j}),t[67]=S,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]!==x||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[x,m,g]}),t[74]=x,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:S}=A;return i.jsx(Me,{error:S??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(Re,{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 u;t[8]!==o?(u=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ze,{children:[o,r]})})})})}),t[8]=o,t[9]=u):u=t[9];let a;return t[10]!==l||t[11]!==u?(a=i.jsx(pe,{fallback:l,children:u}),t[10]=l,t[11]=u,t[12]=a):a=t[12],a}function xt(){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{xt as default};
1
+ import{c as J,b as Z,j as i,r as V,E as pe,F as ue,o as Se,B as X,d as xe,f as he,p as ae,K as ye,e as je,t as ge}from"./index-Bv3HJTsB.js";import{i as ve}from"./AlertCircle-D72r-Abt.js";import{i as Ce}from"./ChevronRight-DKFDVS5Z.js";import{s as be}from"./Plus-Cq6r_P3G.js";import{s as _e}from"./Trash01-Bn-V1P6Y.js";import{I as re}from"./input-B7YaDDnK.js";import{S as de}from"./switch-feOogWIC.js";import{S as Re}from"./skeleton-Bv2C3YGF.js";import{A as me}from"./avatar-B-tQVUZa.js";import{P as ke,a as Ne,b as Pe}from"./popover-Dhe9Sc0w.js";import{b as fe}from"./use-connection-gVZsquVW.js";import{W as ne}from"./use-mcp-client-BnA78fm5.js";import{P as te}from"./index-DCnuMTTl.js";import{u as Te}from"./use-registry-connections-BLeRGwpV.js";import{k as we,l as Ae}from"./use-organization-settings-P3mozsBB.js";import{c as ze,b as H,a as ie,S as le}from"./settings-section-3gcIZjnX.js";import{R as Ee}from"./require-capability-DYRfEUgW.js";import"./User01-CCOv9U6F.js";import"./auth-9BomGTO4.js";import"./sidebar-DoRjTCGZ.js";import"./LayoutLeft-DG-27NLI.js";import"./use-mobile-9pL7OIkR.js";import"./X-BlCcMj3x.js";import"./tooltip-CjrfwNV8.js";import"./studio-tools-CKhQgqxz.js";import"./card-D5C3JyFr.js";import"./ArrowUpRight-CdafZNBz.js";import"./use-capability-BZkX5b05.js";import"./access-gate-DokNNEGr.js";import"./capability-load-error-CMuflxzG.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(ve,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,u]=V.useState(""),[a,A]=V.useState(""),[S,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==S||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:S||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]=S,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 x;e[9]!==s?(x=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=x):x=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==x?(m={mutationFn:j,onSuccess:d,onError:x},e[11]=j,e[12]=d,e[13]=x,e[14]=m):m=e[14];const{mutate:v,isPending:g}=je(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 p;e[19]===Symbol.for("react.memo_cache_sentinel")?(p=y=>u(y.target.value),e[19]=p):p=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(re,{placeholder:f,value:r,onChange:p,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let 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(re,{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 b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=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 M;e[44]!==E||e[45]!==S?(M=i.jsx(re,{type:"password",placeholder:E,value:S,onChange:Y,className:"w-[280px]"}),e[44]=E,e[45]=S,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==O||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,O,I,w]}),e[69]=O,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:u,href:a}=t,A=Z(),S=xe();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=he(_);let d;e[1]!==o||e[2]!==a||e[3]!==S||e[4]!==r||e[5]!==j?(d=()=>{a?S({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=S,e[4]=r,e[5]=j,e[6]=d):d=e[6];const x=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]!==u||e[11]!==A?(v=u&&i.jsxs(ke,{children:[i.jsx(Ne,{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(_e,{size:14})})}),i.jsx(Pe,{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(),u()},children:A("settings.orgStore.remove")})]})})]}),e[10]=u,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(Ce,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let p;e[20]!==v||e[21]!==h||e[22]!==f?(p=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=p):p=e[23];let C;return e[24]!==c||e[25]!==x||e[26]!==l||e[27]!==m||e[28]!==p?(C=i.jsx(H,{title:l,description:c,onClick:x,icon:m,action:p}),e[24]=c,e[25]=x,e[26]=l,e[27]=m,e[28]=p,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=ue(),c=Te(),s=fe(),o=we(),{mutateAsync:r}=Ae(),u=Se(),[a,A]=V.useState(!1);let S,_,j,d,x,m;if(t[0]!==s||t[1]!==l.id||t[2]!==u||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=ne.REGISTRY(l.id),p=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=ne.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,q=ne.SELF(l.id),B=new Set([f,C,"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 b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==u?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),u.invalidateQueries({queryKey:ye.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=u,t[20]=E):E=t[20];const Y=E;let M;t[21]!==o||t[22]!==r?(M=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]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:p(f),onToggle:n=>b(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?(x=i.jsx(le,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=x):x=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(be,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==p?(y=p("self"),t[43]=p,t[44]=y):y=t[44];let G;t[45]!==b?(G=n=>b("self",n),t[45]=b,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==Y||t[53]!==b||t[54]!==p||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:p(n.id),onToggle:K=>b(n.id,K),onDelete:()=>Y(n.id)},n.id),t[52]=Y,t[53]=b,t[54]=p,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(le,{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],_=le,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],S=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:p(U),onToggle:n=>b(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]=u,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=S,t[9]=_,t[10]=j,t[11]=d,t[12]=x,t[13]=m}else S=t[8],_=t[9],j=t[10],d=t[11],x=t[12],m=t[13];let v;t[67]!==S||t[68]!==j?(v=i.jsx(S,{children:j}),t[67]=S,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]!==x||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[x,m,g]}),t[74]=x,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:S}=A;return i.jsx(Me,{error:S??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(Re,{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 u;t[8]!==o?(u=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ze,{children:[o,r]})})})})}),t[8]=o,t[9]=u):u=t[9];let a;return t[10]!==l||t[11]!==u?(a=i.jsx(pe,{fallback:l,children:u}),t[10]=l,t[11]=u,t[12]=a):a=t[12],a}function xt(){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{xt as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BmgM-aA1.js","assets/index-Bv3HJTsB.js","assets/index-DJP7bbyy.css","assets/Tool02-C2lRzACm.js","assets/CheckCircle-BYhZPEg1.js","assets/Settings02-Cd0G_Mid.js","assets/use-mcp-client-BnA78fm5.js","assets/auth-9BomGTO4.js","assets/useInfiniteQuery-DqKnLk2q.js","assets/use-infinite-scroll-BadMGmoJ.js","assets/studio-tools-CKhQgqxz.js","assets/badge-BhwafdCB.js","assets/input-B7YaDDnK.js","assets/dropdown-menu-YjXuvnT_.js","assets/Check-QLHQly7u.js","assets/ChevronRight-DKFDVS5Z.js","assets/DotsVertical-BR1sm-_n.js","assets/table-DtDpC0kE.js","assets/toggle-group-CdgKj7XL.js","assets/use-view-mode-mht8Osqv.js","assets/use-mobile-9pL7OIkR.js","assets/FilterLines-DP65NpgD.js","assets/Globe01-Ciflgy0_.js","assets/SearchMd-qYnfIfqc.js","assets/dialog-C2ssRIQJ.js","assets/X-BlCcMj3x.js","assets/AlertCircle-D72r-Abt.js","assets/Upload01-sX-ya_DN.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-C7O-sTmB.js","assets/card-D5C3JyFr.js","assets/Trash01-Bn-V1P6Y.js","assets/label-snhY0RcC.js","assets/select-BwQrZuPN.js","assets/tooltip-CjrfwNV8.js","assets/ChevronDown-CaGTOKeg.js","assets/ChevronUp-DgE7y70e.js","assets/switch-feOogWIC.js","assets/textarea-BarruI9T.js","assets/ArrowLeft-BC8Nr7ZJ.js","assets/XCircle-CaYksy_y.js","assets/checkbox-DjPXFlDB.js","assets/Eye-DAiBjPRe.js","assets/LinkExternal01-BGAS519W.js","assets/use-copy-mS3W3EBV.js","assets/Copy01-BVORfnT0.js","assets/Key01-C_yKoMEt.js","assets/Plus-Cq6r_P3G.js","assets/mcp-oauth-BynA_Hg9.js","assets/Play-CRwQVFSP.js"])))=>i.map(i=>d[i]);
2
+ import{c as m,d as n,f as c,j as t,k as f,r as l,aG as p}from"./index-Bv3HJTsB.js";import{R as u}from"./require-capability-DYRfEUgW.js";import"./use-capability-BZkX5b05.js";import"./access-gate-DokNNEGr.js";import"./capability-load-error-CMuflxzG.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BmgM-aA1.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,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(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,{size:20,className:"animate-spin 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{j as default};
@@ -1 +1 @@
1
- import{c as i,F as u}from"./index-DfXfkCwM.js";class a extends Error{constructor(e,s){super(e),this.status=s,this.name="StudioToolError"}status}async function l(t,e,s){const o=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s??{})});if(!o.ok){let r=`${e} failed (${o.status})`;try{const n=await o.json();n?.error&&(r=n.error)}catch{}throw new a(r,o.status)}try{return await o.json()}catch{throw new a(`${e} returned a non-JSON response`,o.status)}}function p(){const t=i.c(5),{org:e}=u(),s=e.slug;let o;t[0]!==s?(o=(n,c)=>l(s,n,c),t[0]=s,t[1]=o):o=t[1];let r;return t[2]!==s||t[3]!==o?(r={orgSlug:s,call:o},t[2]=s,t[3]=o,t[4]=r):r=t[4],r}export{l as c,p as u};
1
+ import{c as i,F as u}from"./index-Bv3HJTsB.js";class a extends Error{constructor(e,s){super(e),this.status=s,this.name="StudioToolError"}status}async function l(t,e,s){const o=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s??{})});if(!o.ok){let r=`${e} failed (${o.status})`;try{const n=await o.json();n?.error&&(r=n.error)}catch{}throw new a(r,o.status)}try{return await o.json()}catch{throw new a(`${e} returned a non-JSON response`,o.status)}}function p(){const t=i.c(5),{org:e}=u(),s=e.slug;let o;t[0]!==s?(o=(n,c)=>l(s,n,c),t[0]=s,t[1]=o):o=t[1];let r;return t[2]!==s||t[3]!==o?(r={orgSlug:s,call:o},t[2]=s,t[3]=o,t[4]=r):r=t[4],r}export{l as c,p as u};
@@ -1 +1 @@
1
- import{r as c,j as i,aH as C,aL as y,aK as I,aN as T,bJ as H,bI as M,aJ as z,c as A,m as g}from"./index-DfXfkCwM.js";var m="Switch",[L]=z(m),[U,q]=L(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,j]=I({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":N(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:T(r.onClick,b=>{j(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=q(P,t);return i.jsx(C.span,{"data-state":N(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var J="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=H(t),k=M(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=J;function N(r){return r?"checked":"unchecked"}var O=E,$=R;function F(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=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]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"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]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{F as S};
1
+ import{r as c,j as i,aH as C,aL as y,aK as I,aN as T,bJ as H,bI as M,aJ as z,c as A,m as g}from"./index-Bv3HJTsB.js";var m="Switch",[L]=z(m),[U,q]=L(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,j]=I({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":N(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:T(r.onClick,b=>{j(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=q(P,t);return i.jsx(C.span,{"data-state":N(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var J="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=H(t),k=M(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=J;function N(r){return r?"checked":"unchecked"}var O=E,$=R;function F(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=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]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"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]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{F as S};