decocms 4.50.1 → 4.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/client/assets/{AlertCircle-DvQdKX2P.js → AlertCircle-Ct7weZuE.js} +1 -1
  2. package/dist/client/assets/ArrowUp-CLqVzt5Z.js +1 -0
  3. package/dist/client/assets/{ArrowUpRight-C4ZUgCv8.js → ArrowUpRight-gaoM5S0k.js} +1 -1
  4. package/dist/client/assets/{Check-DT0Ecfph.js → Check-C6rOtSdY.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-B3kM3-nx.js → CheckCircle-CREoH7p2.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-BL5D5Kww.js → ChevronDown-BfrTp1Ch.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-Brlyqvfv.js → ChevronRight-CvPpz1Nq.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-D4h43NMl.js → ChevronUp-MSW-WrWs.js} +1 -1
  9. package/dist/client/assets/{Circle-gozopXYF.js → Circle-ow_NDQHR.js} +1 -1
  10. package/dist/client/assets/{Copy01-DVjpmGSQ.js → Copy01-DDhuzJaA.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-CuOtMg5m.js → DotsVertical-CB7QN8Ws.js} +1 -1
  12. package/dist/client/assets/{Eye-cte0MnVy.js → Eye-C1XDNiGB.js} +1 -1
  13. package/dist/client/assets/{FilterLines-B1MBg_Jt.js → FilterLines-eP80xxCy.js} +1 -1
  14. package/dist/client/assets/{Globe01-fOy2mEYg.js → Globe01-3_GHOe2E.js} +1 -1
  15. package/dist/client/assets/{Globe04-BhuakAIf.js → Globe04-BAF3P1k9.js} +1 -1
  16. package/dist/client/assets/{HardDrive-DKydDUbm.js → HardDrive-DW6eIDxP.js} +1 -1
  17. package/dist/client/assets/{Key01-BhnYqbq5.js → Key01-BVXgUn29.js} +1 -1
  18. package/dist/client/assets/{LayoutLeft-CIXRhIgm.js → LayoutLeft-DKGWBMNA.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-Br3p9c4J.js → LinkExternal01-BM0S_VFU.js} +1 -1
  20. package/dist/client/assets/{List-DZFJgfGO.js → List-vHTogdj7.js} +1 -1
  21. package/dist/client/assets/{Loading02-BYDO_yva.js → Loading02-Bt_dLUWn.js} +1 -1
  22. package/dist/client/assets/{Monitor01-8NNEYlGa.js → Monitor01-2j67L_aU.js} +1 -1
  23. package/dist/client/assets/{Palette-BEYm0oRU.js → Palette-D5rmfc3a.js} +1 -1
  24. package/dist/client/assets/{Play-BAkY7Fxv.js → Play-Bv09TV2w.js} +1 -1
  25. package/dist/client/assets/{Plus-BWS7YRCt.js → Plus-D9m58hN2.js} +1 -1
  26. package/dist/client/assets/{SearchLg-sYqeRxUE.js → SearchLg-6CR82X0W.js} +1 -1
  27. package/dist/client/assets/{SearchMd-D3a2hIUP.js → SearchMd-BfevlctH.js} +1 -1
  28. package/dist/client/assets/{Settings02-CJWk9pL-.js → Settings02-f8loRSef.js} +1 -1
  29. package/dist/client/assets/{Shield01-1T25s-tn.js → Shield01-DPzSiB-T.js} +1 -1
  30. package/dist/client/assets/{Star01-LBoyDaKY.js → Star01-DoabU7Hn.js} +1 -1
  31. package/dist/client/assets/{Stars01-5MzsUK6G.js → Stars01-Q9LxQc27.js} +1 -1
  32. package/dist/client/assets/{Stars02-H_ePh5tT.js → Stars02-DaEgHmQI.js} +1 -1
  33. package/dist/client/assets/{Sun-DvwmIRmO.js → Sun-CclxevtX.js} +1 -1
  34. package/dist/client/assets/SwitchHorizontal01-sGYV2dsM.js +1 -0
  35. package/dist/client/assets/{Tool01-BFRbBZqm.js → Tool01-Bfw6sadd.js} +1 -1
  36. package/dist/client/assets/{Trash01-CqJAv-4z.js → Trash01-TYv08n93.js} +1 -1
  37. package/dist/client/assets/{Upload01-BEmoOwcr.js → Upload01-bdtJr5BI.js} +1 -1
  38. package/dist/client/assets/{User01-Ckt1oKpR.js → User01-BZEdjS8N.js} +1 -1
  39. package/dist/client/assets/{Users01-C3ZswPLc.js → Users01-D0TsDHjS.js} +1 -1
  40. package/dist/client/assets/{Users03-BQZ9UhFk.js → Users03-B4feTEaY.js} +1 -1
  41. package/dist/client/assets/{X-CAX-FceB.js → X-CJDTMZdu.js} +1 -1
  42. package/dist/client/assets/{XCircle-D6yhOy3u.js → XCircle-F9-2oAiq.js} +1 -1
  43. package/dist/client/assets/{XClose-DuZ4u7Uu.js → XClose-BKoSgWfP.js} +1 -1
  44. package/dist/client/assets/{Zap-DWMv1jO1.js → Zap-GCvYK6cT.js} +1 -1
  45. package/dist/client/assets/{ZapSquare-do_RxxO8.js → ZapSquare-BBu4b6r_.js} +1 -1
  46. package/dist/client/assets/{ZoomOut-DK6J-pHc.js → ZoomOut-ox9YzR1a.js} +1 -1
  47. package/dist/client/assets/access-gate-Yfi4ekhF.js +1 -0
  48. package/dist/client/assets/{add-section-modal-DzvsujkT.js → add-section-modal-d8gKomF9.js} +1 -1
  49. package/dist/client/assets/admin-fetch-CCSvjTk1.js +1 -0
  50. package/dist/client/assets/agent-capabilities-BrHWT2H6.js +1 -0
  51. package/dist/client/assets/agent-icon-C2ANw4X5.js +1 -0
  52. package/dist/client/assets/agents-list-DcAZyk1U.js +1 -0
  53. package/dist/client/assets/ai-providers-CLLgcR35.js +1 -0
  54. package/dist/client/assets/{alert-Dd7VLodG.js → alert-BLw4eidn.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-C4qC2FY4.js → alert-dialog-BglRhrg0.js} +3 -3
  56. package/dist/client/assets/app-editor-Be9j6Psz.js +1 -0
  57. package/dist/client/assets/{auth-DBkkYg-T.js → auth-DKsARQye.js} +1 -1
  58. package/dist/client/assets/{auth-catchall-DfxF4BPq.js → auth-catchall-DwgEjeTg.js} +1 -1
  59. package/dist/client/assets/{auth-entry-wfy-u0F0.js → auth-entry-CQlhwp6I.js} +1 -1
  60. package/dist/client/assets/{auth-split-layout-ktXvps3s.js → auth-split-layout-CZ_OCZxj.js} +1 -1
  61. package/dist/client/assets/{authenticate-and-persist-oauth-Bbf69cXY.js → authenticate-and-persist-oauth-DWDcBYz0.js} +1 -1
  62. package/dist/client/assets/{automation-list-row-DBzmw45u.js → automation-list-row-Bq-loDW7.js} +1 -1
  63. package/dist/client/assets/{automation-runs-DHRDLBLv.js → automation-runs-DoqJWooa.js} +1 -1
  64. package/dist/client/assets/automations-C-RHUi9C.js +1 -0
  65. package/dist/client/assets/{autosend-d6dIJs7M.js → autosend-CYyCczkd.js} +1 -1
  66. package/dist/client/assets/{avatar-DWC-yfzJ.js → avatar-BvMZq_TI.js} +1 -1
  67. package/dist/client/assets/{badge-DJdw3Rsl.js → badge-7J4kgEzC.js} +1 -1
  68. package/dist/client/assets/{block-document-BGR4oU7t.js → block-document-CEQDI6GW.js} +1 -1
  69. package/dist/client/assets/brand-context-B-G2N5Cc.js +1 -0
  70. package/dist/client/assets/{breadcrumb-CbTWSDKt.js → breadcrumb-DX6VmR2b.js} +1 -1
  71. package/dist/client/assets/{buckets-DXJgsymj.js → buckets-BnVc6A5T.js} +1 -1
  72. package/dist/client/assets/bulk-category-panel-dwWBDZdx.js +1 -0
  73. package/dist/client/assets/{calendar-DuEt6MhW.js → calendar-DlspiiCF.js} +1 -1
  74. package/dist/client/assets/capability-load-error-BM3-quVD.js +1 -0
  75. package/dist/client/assets/{card-fRwe0bJZ.js → card-DJEMjLyN.js} +1 -1
  76. package/dist/client/assets/category-editor-D49qQ_5A.js +1 -0
  77. package/dist/client/assets/{chat-context-B0O0Okxx.js → chat-context-DWWQ8fi_.js} +1 -1
  78. package/dist/client/assets/{checkbox-C1s1Cv92.js → checkbox-BW3fb6zN.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-Gjk2YP9E.js → cli-auth-success-CYZtnqJM.js} +1 -1
  80. package/dist/client/assets/collection-detail-CuUENpdt.js +1 -0
  81. package/dist/client/assets/collection-display-button-CwpKpIcC.js +1 -0
  82. package/dist/client/assets/{collection-search-DFZjjhrH.js → collection-search-C_SgZaX4.js} +1 -1
  83. package/dist/client/assets/collection-table-wrapper-CtK9vkZI.js +1 -0
  84. package/dist/client/assets/{collection-tabs-DKk8l5Nv.js → collection-tabs-DcJTaWg5.js} +1 -1
  85. package/dist/client/assets/{command-CslXjYaI.js → command-BK76iADW.js} +1 -1
  86. package/dist/client/assets/commerce-onboarding-CacbF47W.js +1 -0
  87. package/dist/client/assets/connect-desktop-dialog-BVhGL3hA.js +1 -0
  88. package/dist/client/assets/connection-card-BZCmFzT0.js +1 -0
  89. package/dist/client/assets/connection-detail-B8lH7kfR.js +1 -0
  90. package/dist/client/assets/{connection-form-helpers-2Hj68sfK.js → connection-form-helpers-DsmizTyk.js} +1 -1
  91. package/dist/client/assets/connections-DaqgHt93.js +1 -0
  92. package/dist/client/assets/{decopilot-sse-pool-B14erbbw.js → decopilot-sse-pool-CQt0Qt9t.js} +1 -1
  93. package/dist/client/assets/{dialog-B4FPUVJm.js → dialog-VQoq6ED0.js} +1 -1
  94. package/dist/client/assets/domain-settings-DQrCzdxW.js +1 -0
  95. package/dist/client/assets/{drawer-CsmWGB6A.js → drawer-BiUeA1xK.js} +1 -1
  96. package/dist/client/assets/{dropdown-menu-BXp0fOBv.js → dropdown-menu-Q9JsQJsN.js} +1 -1
  97. package/dist/client/assets/{empty-state-DUwhZpUT.js → empty-state-Bx2oDYyE.js} +1 -1
  98. package/dist/client/assets/{extract-connection-data-Du4c1lRI.js → extract-connection-data-CBaWfjW4.js} +1 -1
  99. package/dist/client/assets/file-explorer-NjBXraWZ.js +2 -0
  100. package/dist/client/assets/{file-type-icon-BsGfZ7Mt.js → file-type-icon-Byym_Yq8.js} +1 -1
  101. package/dist/client/assets/{files-BRsrXnK1.js → files-Bzx4vIyM.js} +1 -1
  102. package/dist/client/assets/{form-CIHkncRQ.js → form-Ck57FY_v.js} +1 -1
  103. package/dist/client/assets/format-time-BnbuEtat.js +1 -0
  104. package/dist/client/assets/general-DTNBl6eM.js +1 -0
  105. package/dist/client/assets/github-repo-picker-Cv4fHpMw.js +1 -0
  106. package/dist/client/assets/{hooks-Cln-uffe.js → hooks-BCy5e9GO.js} +5 -5
  107. package/dist/client/assets/{index-BtXBV2Et.js → index-2V8OIw2c.js} +1 -1
  108. package/dist/client/assets/{index-BrYQWjA0.js → index-BNkKptlK.js} +1 -1
  109. package/dist/client/assets/{index-Bt7VlfeQ.js → index-BkSsc9os.js} +1 -1
  110. package/dist/client/assets/index-BxDQDgZD.js +1 -0
  111. package/dist/client/assets/{index-BE0jgIkY.js → index-CA5Ck5O8.js} +3 -3
  112. package/dist/client/assets/{index-BPc0E2v5.js → index-CP0NJqZH.js} +6 -6
  113. package/dist/client/assets/{index-DOA46HRo.js → index-ChTrjmId.js} +4 -4
  114. package/dist/client/assets/index-Cz1AR3Zz.js +1 -0
  115. package/dist/client/assets/{index-C2Xrxv4z.js → index-D-yF_uFs.js} +1 -1
  116. package/dist/client/assets/index-D1Oy1H9B.js +1 -0
  117. package/dist/client/assets/{index-BCuWJvJV.js → index-D544QCka.js} +1 -1
  118. package/dist/client/assets/{index-loGM-Zqm.js → index-DAFO_OTU.js} +14 -14
  119. package/dist/client/assets/{index-Dgf9uMoE.js → index-RzCbz7G4.js} +28 -28
  120. package/dist/client/assets/index-ZbSNKPKh.css +1 -0
  121. package/dist/client/assets/{index-w7ppCtrf.js → index-iSSICeOA.js} +1 -1
  122. package/dist/client/assets/{index-redirect-9j6LkyoI.js → index-redirect-BTf9IrPi.js} +1 -1
  123. package/dist/client/assets/{input-oiex_Sqb.js → input-CmS4IhfL.js} +1 -1
  124. package/dist/client/assets/{integration-icon-aZSadBLO.js → integration-icon-B64oCP0F.js} +1 -1
  125. package/dist/client/assets/invite-member-dialog-BoCPYFUb.js +3 -0
  126. package/dist/client/assets/{label-CmLwbefD.js → label-BRuRKPr0.js} +1 -1
  127. package/dist/client/assets/layout-CT250kMb.js +1 -0
  128. package/dist/client/assets/{login-C0ZjtJpq.js → login-CldG7DZa.js} +1 -1
  129. package/dist/client/assets/{mcp-oauth-CdnuFysO.js → mcp-oauth-C23-dwpq.js} +1 -1
  130. package/dist/client/assets/members-CNrOGJa0.js +1 -0
  131. package/dist/client/assets/{monaco-editor-d15d-RZJ.js → monaco-editor-DR7220lx.js} +2 -2
  132. package/dist/client/assets/{monitoring-stats-row-zzC6T7XL.js → monitoring-stats-row-BZL3Rvz8.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-EgT8jFmC.js → oauth-callback-DcfZfqGm.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-ai-provider-CRV9LcjN.js → oauth-callback-ai-provider-Ce9G5qtJ.js} +1 -1
  135. package/dist/client/assets/{onboarding-N_yKxU4j.js → onboarding-B25kyk06.js} +1 -1
  136. package/dist/client/assets/org-install-Bji_kE_8.js +1 -0
  137. package/dist/client/assets/{org-layout-DNgYRXIB.js → org-layout-CKR3WJzm.js} +1 -1
  138. package/dist/client/assets/{organization-choice-pAAagV_i.js → organization-choice-DTClrrnJ.js} +1 -1
  139. package/dist/client/assets/orgs-BwjlPx55.js +1 -0
  140. package/dist/client/assets/page-seo-sheet-BgXbK0SD.js +1 -0
  141. package/dist/client/assets/{popover-BjB-5tFY.js → popover-DOYlXTug.js} +1 -1
  142. package/dist/client/assets/post-editor-C_RBUxWZ.js +1 -0
  143. package/dist/client/assets/{primitives-Ds0WLoLr.js → primitives-h6UMy2ac.js} +1 -1
  144. package/dist/client/assets/{profile-CzCmCXYA.js → profile-BeG5MWeA.js} +1 -1
  145. package/dist/client/assets/project-app-view-CJsN01Kq.js +1 -0
  146. package/dist/client/assets/record-editor-Cxnw_s7-.js +1 -0
  147. package/dist/client/assets/registry-CO3wS9en.js +2 -0
  148. package/dist/client/assets/{registry-layout-B80BPaTp.js → registry-layout-B3NcP7G9.js} +1 -1
  149. package/dist/client/assets/{require-capability-CC8Cb4eK.js → require-capability-BwJAyhw_.js} +1 -1
  150. package/dist/client/assets/{required-auth-layout-Bxaf6y0u.js → required-auth-layout-BnUL76ZK.js} +1 -1
  151. package/dist/client/assets/{reset-password-CaEUMCHV.js → reset-password-DXMG8bNT.js} +1 -1
  152. package/dist/client/assets/roles-Cr24Ru3H.js +1 -0
  153. package/dist/client/assets/{search-input-DUPgDj3Q.js → search-input-Cvhmar4S.js} +1 -1
  154. package/dist/client/assets/{secrets-hHXyxqcY.js → secrets-C_rz33jP.js} +1 -1
  155. package/dist/client/assets/{sections-editor-DLA_tn_Z.js → sections-editor-DB_WyCzE.js} +2 -2
  156. package/dist/client/assets/{select-Ct8ODrmD.js → select-cLkB0xx3.js} +1 -1
  157. package/dist/client/assets/{select-model-CXARzc0b.js → select-model-C6Zl96g0.js} +2 -2
  158. package/dist/client/assets/seo-editor-CKENU8Ce.js +1 -0
  159. package/dist/client/assets/{seo-save-CaN3ncbg.js → seo-save-CcM551vP.js} +1 -1
  160. package/dist/client/assets/settings-layout-PBMPJvHi.js +1 -0
  161. package/dist/client/assets/{settings-section-CIZ7OrhY.js → settings-section-B5s6i1AE.js} +1 -1
  162. package/dist/client/assets/{shell-controls-DcH8LcQe.js → shell-controls-DFx9R0D_.js} +1 -1
  163. package/dist/client/assets/shell-layout-P9zH_bFZ.js +1 -0
  164. package/dist/client/assets/{sidebar-DGCj3BzG.js → sidebar-Dg_hr7dR.js} +1 -1
  165. package/dist/client/assets/{skeleton-h_Rrfd9X.js → skeleton-CZJQcXjJ.js} +1 -1
  166. package/dist/client/assets/sso-Bn2_Oeeg.js +1 -0
  167. package/dist/client/assets/store-Cy3LEKoA.js +1 -0
  168. package/dist/client/assets/store-registry-CNggLKId.js +2 -0
  169. package/dist/client/assets/studio-tools-D1WvthcJ.js +1 -0
  170. package/dist/client/assets/{switch-5bdjLWcS.js → switch-DvI4Ivs6.js} +1 -1
  171. package/dist/client/assets/{table-m4VurkE4.js → table-Rcs576gh.js} +1 -1
  172. package/dist/client/assets/{tabs-7O9mSdEa.js → tabs-BYqpHacd.js} +1 -1
  173. package/dist/client/assets/{textarea-DTygx-PF.js → textarea-DfbK_YWl.js} +1 -1
  174. package/dist/client/assets/{toggle-group-CArvNNKC.js → toggle-group-DPk7hBEB.js} +1 -1
  175. package/dist/client/assets/{toolbar-icon-button-j_UeiHvv.js → toolbar-icon-button-BfscRxQb.js} +1 -1
  176. package/dist/client/assets/{toolbar-Cap3B0tq.js → toolbar-spKhA4Pi.js} +1 -1
  177. package/dist/client/assets/tools-list-GD_nS-CN.js +1 -0
  178. package/dist/client/assets/{tooltip-1foZ_k7s.js → tooltip-D9y133qH.js} +1 -1
  179. package/dist/client/assets/{types-DI-1sdV1.js → types-u5_F63vr.js} +3 -3
  180. package/dist/client/assets/use-ai-providers-Be4jiLlp.js +1 -0
  181. package/dist/client/assets/use-automations-Bj7ea45i.js +1 -0
  182. package/dist/client/assets/use-capability-BAJSmOR6.js +1 -0
  183. package/dist/client/assets/{use-clock-tick-BVVBiunA.js → use-clock-tick-DiAMyzbm.js} +1 -1
  184. package/dist/client/assets/{use-collections-zePUbAs4.js → use-collections-B0fmzWMT.js} +1 -1
  185. package/dist/client/assets/use-connection-CoNk61jl.js +1 -0
  186. package/dist/client/assets/{use-copy-DSFHRfjF.js → use-copy-CC8l0MM4.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-BiykOxhR.js → use-create-virtual-mcp-DHvF-qx5.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-DcfXuKw9.js → use-debounced-autosave-DVAOELdx.js} +1 -1
  189. package/dist/client/assets/{use-debounced-value-CrZFsUmt.js → use-debounced-value-BUPZwZxl.js} +1 -1
  190. package/dist/client/assets/{use-decopilot-events-BPApfysb.js → use-decopilot-events-CwboOo9R.js} +1 -1
  191. package/dist/client/assets/use-delete-connection-BRROztaa.js +1 -0
  192. package/dist/client/assets/use-deployment-admin-DjDR8kPw.js +1 -0
  193. package/dist/client/assets/use-file-configs-CiH7freP.js +1 -0
  194. package/dist/client/assets/{use-infinite-scroll-BmH_7PeD.js → use-infinite-scroll-CLzTjnPW.js} +1 -1
  195. package/dist/client/assets/use-join-requests-wFFDbE5s.js +1 -0
  196. package/dist/client/assets/{use-mcp-client-DbUnPC2U.js → use-mcp-client-D3e9ceNa.js} +4 -4
  197. package/dist/client/assets/{use-mcp-prompts-D4BjUd_Q.js → use-mcp-prompts-D_i1iWd2.js} +1 -1
  198. package/dist/client/assets/{use-mcp-tools-aSGZtgAI.js → use-mcp-tools-eYiXWlAi.js} +1 -1
  199. package/dist/client/assets/use-members-oJt5povW.js +1 -0
  200. package/dist/client/assets/{use-mobile-B-H7VJlh.js → use-mobile-BD37jY8Y.js} +1 -1
  201. package/dist/client/assets/use-navigate-to-agent-C_szOIys.js +1 -0
  202. package/dist/client/assets/use-org-auth-client-BbOBgx1F.js +1 -0
  203. package/dist/client/assets/{use-org-sso-BV4x4p-5.js → use-org-sso-C5MQ0Bj7.js} +1 -1
  204. package/dist/client/assets/use-organization-roles-PP5Ze7E4.js +1 -0
  205. package/dist/client/assets/use-organization-settings-BPsQDYqA.js +1 -0
  206. package/dist/client/assets/use-registry-connections-sVBXNIyN.js +1 -0
  207. package/dist/client/assets/use-secrets-C4J7nZmF.js +1 -0
  208. package/dist/client/assets/{use-status-sounds-CtrLXRrg.js → use-status-sounds-BEcDaP-9.js} +1 -1
  209. package/dist/client/assets/{use-view-mode-CpRSxfa9.js → use-view-mode-B8ZvyTJu.js} +1 -1
  210. package/dist/client/assets/use-virtual-mcp-D1vadQaQ.js +1 -0
  211. package/dist/client/assets/useInfiniteQuery-FvBo89pe.js +1 -0
  212. package/dist/client/assets/useRouterState-CKoYWt4i.js +1 -0
  213. package/dist/client/assets/useSuspenseInfiniteQuery-CmezFxqW.js +1 -0
  214. package/dist/client/assets/users-C0Qc7Jal.js +1 -0
  215. package/dist/client/assets/variant-calendar-BTZUazZ2.js +1 -0
  216. package/dist/client/assets/{view-mode-toggle-IUxgH98b.js → view-mode-toggle-CcfquXZC.js} +1 -1
  217. package/dist/client/index.html +2 -2
  218. package/dist/server/cli.js +481 -481
  219. package/dist/server/migrate.js +1 -1
  220. package/dist/server/server.js +314 -314
  221. package/package.json +1 -1
  222. package/dist/client/assets/SwitchHorizontal01-CEx7u3Ha.js +0 -1
  223. package/dist/client/assets/access-gate-BoaBcBcQ.js +0 -1
  224. package/dist/client/assets/agent-capabilities-udLJw-cm.js +0 -1
  225. package/dist/client/assets/agent-icon-DryRwerX.js +0 -1
  226. package/dist/client/assets/agents-list-Ts1COBbM.js +0 -1
  227. package/dist/client/assets/ai-providers-Bkg5iXmH.js +0 -1
  228. package/dist/client/assets/app-editor-CgSwIbOw.js +0 -1
  229. package/dist/client/assets/automations-CBd2I4AI.js +0 -1
  230. package/dist/client/assets/brand-context-DTtKwfXh.js +0 -1
  231. package/dist/client/assets/bulk-category-panel-BLrzcvWT.js +0 -1
  232. package/dist/client/assets/capability-load-error-jhIJPxL6.js +0 -1
  233. package/dist/client/assets/category-editor-CcRWkoEb.js +0 -1
  234. package/dist/client/assets/collection-detail-CtM2kg0x.js +0 -1
  235. package/dist/client/assets/collection-display-button-C3a5JxQa.js +0 -1
  236. package/dist/client/assets/collection-table-wrapper-C6PjuHgw.js +0 -1
  237. package/dist/client/assets/commerce-onboarding-DHT_nBuJ.js +0 -1
  238. package/dist/client/assets/connect-desktop-dialog-D3fwzLbi.js +0 -1
  239. package/dist/client/assets/connection-card-Do3n6-0X.js +0 -1
  240. package/dist/client/assets/connection-detail-CzIcxrxO.js +0 -1
  241. package/dist/client/assets/connections-M8hPZ8h_.js +0 -1
  242. package/dist/client/assets/domain-settings-B7X2BGW_.js +0 -1
  243. package/dist/client/assets/file-explorer-dehRUbZq.js +0 -2
  244. package/dist/client/assets/format-time-Cy7tTmZp.js +0 -1
  245. package/dist/client/assets/general-C_FpLf3Q.js +0 -1
  246. package/dist/client/assets/github-repo-picker-CnKj3G6a.js +0 -1
  247. package/dist/client/assets/index-1lPjtuok.js +0 -1
  248. package/dist/client/assets/index-XnT9B5AX.js +0 -1
  249. package/dist/client/assets/index-b3V1CkLW.css +0 -1
  250. package/dist/client/assets/index-l7TANBTQ.js +0 -1
  251. package/dist/client/assets/invite-member-dialog-IU7TOmN2.js +0 -3
  252. package/dist/client/assets/members-BS0Y_-RA.js +0 -1
  253. package/dist/client/assets/org-install-D3e2RXf5.js +0 -1
  254. package/dist/client/assets/page-seo-sheet-oQ_VYV1S.js +0 -1
  255. package/dist/client/assets/post-editor-DSs8Lcxg.js +0 -1
  256. package/dist/client/assets/project-app-view-DkIw6469.js +0 -1
  257. package/dist/client/assets/record-editor-By2OLFPe.js +0 -1
  258. package/dist/client/assets/registry-wO6PtzH3.js +0 -2
  259. package/dist/client/assets/roles-CI4mrdaD.js +0 -1
  260. package/dist/client/assets/seo-editor-BpwYJzgf.js +0 -1
  261. package/dist/client/assets/settings-layout-CGatm5aT.js +0 -1
  262. package/dist/client/assets/shell-layout-B4WmiL97.js +0 -1
  263. package/dist/client/assets/sso-Xyp2hR06.js +0 -1
  264. package/dist/client/assets/store-Cmzf3YVA.js +0 -1
  265. package/dist/client/assets/store-registry-C9g9AZIb.js +0 -2
  266. package/dist/client/assets/studio-tools-BaimbcRe.js +0 -1
  267. package/dist/client/assets/tools-list-S4uoHI5a.js +0 -1
  268. package/dist/client/assets/use-ai-providers-CLhyvTsV.js +0 -1
  269. package/dist/client/assets/use-automations-DI4zmIKR.js +0 -1
  270. package/dist/client/assets/use-capability-BDb9Fsiz.js +0 -1
  271. package/dist/client/assets/use-connection-BibmCEFD.js +0 -1
  272. package/dist/client/assets/use-delete-connection-D87N3EAi.js +0 -1
  273. package/dist/client/assets/use-file-configs-uzLbxssm.js +0 -1
  274. package/dist/client/assets/use-join-requests-DEIhG119.js +0 -1
  275. package/dist/client/assets/use-members-Buz_D9kT.js +0 -1
  276. package/dist/client/assets/use-navigate-to-agent-_WYF41V-.js +0 -1
  277. package/dist/client/assets/use-org-auth-client-Dr5MvmUs.js +0 -1
  278. package/dist/client/assets/use-organization-roles-CqDIe-bv.js +0 -1
  279. package/dist/client/assets/use-organization-settings-CsH8Ep36.js +0 -1
  280. package/dist/client/assets/use-registry-connections-C948P_nl.js +0 -1
  281. package/dist/client/assets/use-secrets-B8xSCB_X.js +0 -1
  282. package/dist/client/assets/use-virtual-mcp-CjUwVbqH.js +0 -1
  283. package/dist/client/assets/useInfiniteQuery-DWB8a2J-.js +0 -1
  284. package/dist/client/assets/useSuspenseInfiniteQuery-Ip6E6dwx.js +0 -1
  285. package/dist/client/assets/variant-calendar-DYAW4a46.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as T,j as t,r as Q,B as je,i as be}from"./index-RzCbz7G4.js";import{i as Se}from"./ChevronRight-CvPpz1Nq.js";import{V as fe}from"./agent-icon-C2ANw4X5.js";import{A as ue}from"./automation-runs-DoqJWooa.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Re,S as Ee}from"./seo-save-CcM551vP.js";import{s as xe,A as ze}from"./index-DAFO_OTU.js";import{a as ge}from"./Tool01-Bfw6sadd.js";import"./AlertCircle-Ct7weZuE.js";import"./ArrowUp-CLqVzt5Z.js";import"./Settings02-f8loRSef.js";import"./XCircle-F9-2oAiq.js";import"./ArrowUpRight-gaoM5S0k.js";import"./ZapSquare-BBu4b6r_.js";import"./Users03-B4feTEaY.js";import"./Loading02-Bt_dLUWn.js";import"./CheckCircle-CREoH7p2.js";import"./Check-C6rOtSdY.js";import"./ChevronDown-BfrTp1Ch.js";import"./ChevronUp-MSW-WrWs.js";import"./Circle-ow_NDQHR.js";import"./Stars02-DaEgHmQI.js";import"./Copy01-DDhuzJaA.js";import"./ZoomOut-ox9YzR1a.js";import"./DotsVertical-CB7QN8Ws.js";import"./Globe01-3_GHOe2E.js";import"./Eye-C1XDNiGB.js";import"./FilterLines-eP80xxCy.js";import"./Star01-DoabU7Hn.js";import"./Globe04-BAF3P1k9.js";import"./SwitchHorizontal01-sGYV2dsM.js";import"./HardDrive-DW6eIDxP.js";import"./Key01-BVXgUn29.js";import"./LayoutLeft-DKGWBMNA.js";import"./LinkExternal01-BM0S_VFU.js";import"./List-vHTogdj7.js";import"./Monitor01-2j67L_aU.js";import"./Sun-CclxevtX.js";import"./Palette-D5rmfc3a.js";import"./Play-Bv09TV2w.js";import"./Plus-D9m58hN2.js";import"./SearchLg-6CR82X0W.js";import"./SearchMd-BfevlctH.js";import"./Shield01-DPzSiB-T.js";import"./Stars01-Q9LxQc27.js";import"./Trash01-TYv08n93.js";import"./Upload01-bdtJr5BI.js";import"./User01-BZEdjS8N.js";import"./Users01-D0TsDHjS.js";import"./XClose-BKoSgWfP.js";import"./X-CJDTMZdu.js";import"./Zap-GCvYK6cT.js";import"./select-cLkB0xx3.js";import"./tooltip-D9y133qH.js";import"./useInfiniteQuery-FvBo89pe.js";import"./use-infinite-scroll-CLzTjnPW.js";import"./use-connection-CoNk61jl.js";import"./use-collections-B0fmzWMT.js";import"./use-mcp-client-D3e9ceNa.js";import"./constants-B72Xmt_K.js";import"./auth-DKsARQye.js";import"./use-virtual-mcp-D1vadQaQ.js";import"./card-DJEMjLyN.js";import"./sidebar-Dg_hr7dR.js";import"./use-mobile-BD37jY8Y.js";import"./table-Rcs576gh.js";import"./empty-state-Bx2oDYyE.js";import"./use-members-oJt5povW.js";import"./use-org-auth-client-BbOBgx1F.js";import"./use-clock-tick-DiAMyzbm.js";import"./use-automations-Bj7ea45i.js";import"./studio-tools-D1WvthcJ.js";import"./useSuspenseInfiniteQuery-CmezFxqW.js";import"./badge-7J4kgEzC.js";import"./checkbox-BW3fb6zN.js";import"./command-BK76iADW.js";import"./index-D-yF_uFs.js";import"./dialog-VQoq6ED0.js";import"./popover-DOYlXTug.js";import"./avatar-BvMZq_TI.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CC8l0MM4.js";import"./file-type-icon-Byym_Yq8.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-DR7220lx.js";import"./index-CA5Ck5O8.js";import"./chat-context-DWWQ8fi_.js";import"./autosend-CYyCczkd.js";import"./hooks-BCy5e9GO.js";import"./decopilot-sse-pool-CQt0Qt9t.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-Be4jiLlp.js";import"./use-decopilot-events-CwboOo9R.js";import"./use-organization-settings-BPsQDYqA.js";import"./types-u5_F63vr.js";import"./shell-layout-P9zH_bFZ.js";import"./alert-dialog-BglRhrg0.js";import"./required-auth-layout-BnUL76ZK.js";import"./use-org-sso-C5MQ0Bj7.js";import"./integration-icon-B64oCP0F.js";import"./use-navigate-to-agent-C_szOIys.js";import"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-prompts-D_i1iWd2.js";import"./form-Ck57FY_v.js";import"./label-BRuRKPr0.js";import"./input-CmS4IhfL.js";import"./switch-DvI4Ivs6.js";import"./drawer-BiUeA1xK.js";import"./collection-search-C_SgZaX4.js";import"./tabs-BYqpHacd.js";import"./toggle-group-DPk7hBEB.js";import"./agent-capabilities-BrHWT2H6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BZCmFzT0.js";import"./use-registry-connections-sVBXNIyN.js";import"./extract-connection-data-CBaWfjW4.js";import"./collection-tabs-DcJTaWg5.js";import"./textarea-DfbK_YWl.js";import"./connection-form-helpers-DsmizTyk.js";import"./authenticate-and-persist-oauth-DWDcBYz0.js";import"./mcp-oauth-C23-dwpq.js";import"./connect-desktop-dialog-BVhGL3hA.js";import"./select-model-C6Zl96g0.js";import"./skeleton-CZJQcXjJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-B5s6i1AE.js";import"./dropdown-menu-Q9JsQJsN.js";import"./index-CP0NJqZH.js";import"./toolbar-spKhA4Pi.js";import"./use-debounced-value-BUPZwZxl.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BEcDaP-9.js";import"./use-mcp-tools-eYiXWlAi.js";import"./use-capability-BAJSmOR6.js";import"./tools-list-GD_nS-CN.js";import"./use-debounced-autosave-DVAOELdx.js";import"./index-iSSICeOA.js";import"./search-input-Cvhmar4S.js";import"./github-repo-picker-Cv4fHpMw.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-C4J7nZmF.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BxDQDgZD.js";import"./get-initials-D-f_fDFw.js";import"./calendar-DlspiiCF.js";import"./toolbar-icon-button-BfscRxQb.js";import"./use-file-configs-CiH7freP.js";import"./automation-list-row-Bq-loDW7.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let b;return e[23]!==u||e[24]!==y||e[25]!==g?(b=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=b):b=e[26],b}function Ae(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function De(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ie(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const b=i.description??ee;let _;e[17]!==y||e[18]!==b?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:b}),e[17]=y,e[18]=b,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let S;e[24]!==i.image?(S=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=S):S=e[25];let k;e[26]!==N||e[27]!==S||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,S]}),e[26]=N,e[27]=S,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(Ae,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(De,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function Oi(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,b]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),b(Me));const{persistSeo:S,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let R,V;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(R=o.kind==="page"?Fe(a,s)?.seoData??{}:{},V=o.kind==="page"?Ge(R,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=R,e[7]=V):(R=e[6],V=e[7]);const ie=V;let G;e[8]!==S||e[9]!==c||e[10]!==v?(G=E=>{if(!c)return;const de=E;v(de),S(de)},e[8]=S,e[9]=c,e[10]=v,e[11]=G):G=e[11];const se=G;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==b?(H=()=>b(Ke),e[14]=b,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ve(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(Se,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(be,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let A;e[32]!==$||e[33]!==L?(A=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=A):A=e[34];let D;e[35]!==A||e[36]!==O?(D=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,A]}),e[35]=A,e[36]=O,e[37]=D):D=e[37];let I;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==S||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==R?(I=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Re,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:R,onPersistRaw:E=>{N(E),k(E)},onInnerChange:E=>{v(E),S(E)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Ee,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=S,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=R,e[59]=I):I=e[59];let J;return e[60]!==D||e[61]!==I?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[D,I]}),e[60]=D,e[61]=I,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ve(n,e){try{return new URL(n,e).href}catch{return e}}function Ge(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{Oi as SeoEditor};
@@ -1 +1 @@
1
- import{c as L,r as U,j as a,l as te,p as ne,K as M}from"./index-Dgf9uMoE.js";import{L as Y}from"./label-CmLwbefD.js";import{S as $}from"./switch-5bdjLWcS.js";import{i as se,A as z,as as oe,at as re,au as ie,av as le,ap as ce,q as ae}from"./index-loGM-Zqm.js";import{b as ue,c as fe,d as pe,S as de,a as ye}from"./select-Ct8ODrmD.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&se(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function q(t){const e=re(t),n=new Set,s=[];for(const o of e)O(o.resolveType)&&(ie(o.resolveType)||n.has(o.resolveType)||(n.add(o.resolveType),s.push({resolveType:o.resolveType,title:Q(o.resolveType,o.title),description:o.description})));return s}function V(t){const e=oe(t),n=z(e,t),s=q(n?.properties?.seo);return s.length>0?s:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[s,o]of Object.entries(e))if(s.includes("sections"))for(const r of Object.keys(o)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function W(t){const e=V(t),n=e.find(s=>s.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function Z(t,e){const n=e.__resolveType;if(typeof n=="string"){const s=z(n,t),o=q(s?.properties?.seo);if(o.length>0)return o}return V(t)}function be(t,e){const n=Z(t,e),s=n.find(o=>o.resolveType===C);return s?s.resolveType:n[0]?.resolveType??W(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:W(t)}function xe(t,e,n){const s=n.__resolveType;return typeof s=="string"&&O(s)?s:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ee(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function je(t,e){for(const[n,s]of Object.entries(t)){if(!F(s))continue;const o=s,r=o.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=o.seo;if(F(i)){const c=i;if(Ee(c))return{blockKey:n,kind:"nested",seoData:c,blockData:o,seoResolveType:e?xe(e,o,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,s]of Object.entries(t)){if(!F(s))continue;const o=s;if(typeof o.__resolveType=="string"&&O(o.__resolveType))return{blockKey:n,kind:"block",seoData:o,blockData:o,seoResolveType:o.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function We(t,e,n){if(e.kind==="site"){const l=je(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?Z(n,l.blockData):void 0,build:d=>De(l,d)}:null}const s=t[e.pageKey];if(!F(s))return null;const o=s,r=o.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...o,seo:l===null?null:G(l,r)})}}const B=["type","title","description","canonical","favicon","image","themeColor"],Ce=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Pe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Oe(t){switch(t){case"general":return B;case"pdp":return Ce;case"plp":return Pe;default:return null}}function J(t,e){const n=Oe(H(e));if(!n||!t.properties)return t;const s={};for(const o of n){const r=t.properties[o];r&&(s[o]=r)}return{...t,properties:s}}function Le(){return B.filter(t=>t!=="type")}function Fe(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ke(t,e){return t[e]===void 0}function ke(t){const e=L.c(13),{schema:n,value:s,onChange:o,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=Le();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=U.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=U.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==s?(v=u=>m[u]!==void 0?m[u]:Ke(s,u),e[3]=m,e[4]=s,e[5]=v):v=e[5];const R=v;let x;e[6]!==o||e[7]!==r||e[8]!==s?(x=(u,T)=>{g(D=>({...D,[u]:T}));const j={...s};if(T)delete j[u];else{const D=r?.[u];j[u]=D??(u==="type"?"website":"")}o(j)},e[6]=o,e[7]=r,e[8]=s,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const j=p&&d.includes(u),D=j&&R(u),X=D?r?.[u]??s[u]:s[u],ee=T.title??Fe(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:te(D&&"pointer-events-none opacity-60"),children:le({schema:T,value:X,onChange:A=>{D||o({...s,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:Ne})}),j&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>E(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function Ne(){}function Ae(t){const e=L.c(18),{schema:n,resolveType:s,value:o,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(s)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==o?(g=a.jsx(ke,{schema:n,value:o,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=o,e[7]=g):g=e[7],g}let y;e[8]!==s||e[9]!==n?(y=J(n,s),e[8]=s,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??$e;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==o?(h=a.jsx(ce,{schema:p,value:o,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=o,e[17]=h):h=e[17],h}function $e(){}const we="https://deco.cx/docs/en/performance/edge-async-render";function Ie(t){const e=L.c(16),{rawSeo:n,onEnableChange:s,onAsyncRenderChange:o,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==s?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:s})]}),e[5]=c,e[6]=s,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==o?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:we,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:o,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=o,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}function Ye(t){const e=L.c(10),{options:n,value:s,onChange:o}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Be).map(Ve),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==o||e[7]!==l||e[8]!==s?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:s,onValueChange:o,children:[i,l]})]}),e[6]=o,e[7]=l,e[8]=s,e[9]=d):d=e[9],d}function Ve(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Be(t){return t.resolveType.length>0}function Ze(t){const e=L.c(33),{rawSeo:n,innerSeo:s,defaultResolveType:o,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==o||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const j=me(o);p(j),S(),h();return}p(null),S(),h()},e[0]=o,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const j=Se(T,n);p(j)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==h||e[9]!==f?(E=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=E):E=e[10];const P=E;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ye,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==s||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ae,{schema:r,resolveType:i,value:s,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=s,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Ie,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ue(t,e,n,s){if(t.kind==="page"){if(!I(n))return null;const o=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:s===null?null:G(s,o)}}return I(n)?e.siteKind==="block"?s:{...n,seo:s}:null}function He(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Je(t){const e=L.c(23),{orgSlug:n,virtualMcpId:s,branch:o,target:r,resolved:i,onSaved:c}=t,l=ne(),d=`${n}/${s}/${o}`;let y;e[0]!==o||e[1]!==n||e[2]!==s?(y={orgSlug:n,virtualMcpId:s,branch:o},e[0]=o,e[1]=n,e[2]=s,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=ae(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=E=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(M.decofile(d))?.[i.blockKey];return Ue(r,i,b,E)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=E=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(M.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}export{Ze as P,Ae as S,He as a,Ue as b,Je as c,W as d,je as f,k as i,We as r,w as u};
1
+ import{c as L,r as U,j as a,l as te,n as ne,K as M}from"./index-RzCbz7G4.js";import{L as Y}from"./label-BRuRKPr0.js";import{S as $}from"./switch-DvI4Ivs6.js";import{i as se,A as z,as as oe,at as re,au as ie,av as le,ap as ce,q as ae}from"./index-DAFO_OTU.js";import{d as ue,a as fe,b as pe,c as de,S as ye}from"./select-cLkB0xx3.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&se(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function q(t){const e=re(t),n=new Set,s=[];for(const o of e)O(o.resolveType)&&(ie(o.resolveType)||n.has(o.resolveType)||(n.add(o.resolveType),s.push({resolveType:o.resolveType,title:Q(o.resolveType,o.title),description:o.description})));return s}function V(t){const e=oe(t),n=z(e,t),s=q(n?.properties?.seo);return s.length>0?s:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[s,o]of Object.entries(e))if(s.includes("sections"))for(const r of Object.keys(o)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function W(t){const e=V(t),n=e.find(s=>s.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function Z(t,e){const n=e.__resolveType;if(typeof n=="string"){const s=z(n,t),o=q(s?.properties?.seo);if(o.length>0)return o}return V(t)}function be(t,e){const n=Z(t,e),s=n.find(o=>o.resolveType===C);return s?s.resolveType:n[0]?.resolveType??W(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:W(t)}function xe(t,e,n){const s=n.__resolveType;return typeof s=="string"&&O(s)?s:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ee(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function je(t,e){for(const[n,s]of Object.entries(t)){if(!F(s))continue;const o=s,r=o.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=o.seo;if(F(i)){const c=i;if(Ee(c))return{blockKey:n,kind:"nested",seoData:c,blockData:o,seoResolveType:e?xe(e,o,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,s]of Object.entries(t)){if(!F(s))continue;const o=s;if(typeof o.__resolveType=="string"&&O(o.__resolveType))return{blockKey:n,kind:"block",seoData:o,blockData:o,seoResolveType:o.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function We(t,e,n){if(e.kind==="site"){const l=je(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?Z(n,l.blockData):void 0,build:d=>De(l,d)}:null}const s=t[e.pageKey];if(!F(s))return null;const o=s,r=o.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...o,seo:l===null?null:G(l,r)})}}const B=["type","title","description","canonical","favicon","image","themeColor"],Ce=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Pe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Oe(t){switch(t){case"general":return B;case"pdp":return Ce;case"plp":return Pe;default:return null}}function J(t,e){const n=Oe(H(e));if(!n||!t.properties)return t;const s={};for(const o of n){const r=t.properties[o];r&&(s[o]=r)}return{...t,properties:s}}function Le(){return B.filter(t=>t!=="type")}function Fe(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ke(t,e){return t[e]===void 0}function ke(t){const e=L.c(13),{schema:n,value:s,onChange:o,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=Le();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=U.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=U.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==s?(v=u=>m[u]!==void 0?m[u]:Ke(s,u),e[3]=m,e[4]=s,e[5]=v):v=e[5];const R=v;let x;e[6]!==o||e[7]!==r||e[8]!==s?(x=(u,T)=>{g(D=>({...D,[u]:T}));const j={...s};if(T)delete j[u];else{const D=r?.[u];j[u]=D??(u==="type"?"website":"")}o(j)},e[6]=o,e[7]=r,e[8]=s,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const j=p&&d.includes(u),D=j&&R(u),X=D?r?.[u]??s[u]:s[u],ee=T.title??Fe(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:te(D&&"pointer-events-none opacity-60"),children:le({schema:T,value:X,onChange:A=>{D||o({...s,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:Ne})}),j&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>E(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function Ne(){}function Ae(t){const e=L.c(18),{schema:n,resolveType:s,value:o,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(s)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==o?(g=a.jsx(ke,{schema:n,value:o,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=o,e[7]=g):g=e[7],g}let y;e[8]!==s||e[9]!==n?(y=J(n,s),e[8]=s,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??$e;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==o?(h=a.jsx(ce,{schema:p,value:o,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=o,e[17]=h):h=e[17],h}function $e(){}const we="https://deco.cx/docs/en/performance/edge-async-render";function Ie(t){const e=L.c(16),{rawSeo:n,onEnableChange:s,onAsyncRenderChange:o,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==s?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:s})]}),e[5]=c,e[6]=s,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==o?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:we,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:o,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=o,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}function Ye(t){const e=L.c(10),{options:n,value:s,onChange:o}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Be).map(Ve),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==o||e[7]!==l||e[8]!==s?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:s,onValueChange:o,children:[i,l]})]}),e[6]=o,e[7]=l,e[8]=s,e[9]=d):d=e[9],d}function Ve(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Be(t){return t.resolveType.length>0}function Ze(t){const e=L.c(33),{rawSeo:n,innerSeo:s,defaultResolveType:o,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==o||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const j=me(o);p(j),S(),h();return}p(null),S(),h()},e[0]=o,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const j=Se(T,n);p(j)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==h||e[9]!==f?(E=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=E):E=e[10];const P=E;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ye,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==s||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ae,{schema:r,resolveType:i,value:s,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=s,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Ie,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ue(t,e,n,s){if(t.kind==="page"){if(!I(n))return null;const o=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:s===null?null:G(s,o)}}return I(n)?e.siteKind==="block"?s:{...n,seo:s}:null}function He(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Je(t){const e=L.c(23),{orgSlug:n,virtualMcpId:s,branch:o,target:r,resolved:i,onSaved:c}=t,l=ne(),d=`${n}/${s}/${o}`;let y;e[0]!==o||e[1]!==n||e[2]!==s?(y={orgSlug:n,virtualMcpId:s,branch:o},e[0]=o,e[1]=n,e[2]=s,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=ae(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=E=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(M.decofile(d))?.[i.blockKey];return Ue(r,i,b,E)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=E=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(M.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}export{Ze as P,Ae as S,He as a,Ue as b,Je as c,W as d,je as f,k as i,We as r,w as u};
@@ -0,0 +1 @@
1
+ import{c as S,a1 as A,j as s,N as J,e as L,l as k,aD as Q,L as B,R as G,a5 as I,a as T,i as F,r as K,O as U}from"./index-RzCbz7G4.js";import{u as E}from"./useRouterState-CKoYWt4i.js";import{j as V,k as X,l as Y,S as q,a as w,b as O,d as M,c as P,f as Z,g as ee}from"./sidebar-Dg_hr7dR.js";import{a as se}from"./index-iSSICeOA.js";import{n as te,c as le,a as re,d as oe,b as ie,i as W}from"./ZapSquare-BBu4b6r_.js";import{t as ne,a as R}from"./Users03-B4feTEaY.js";import{i as ae}from"./HardDrive-DW6eIDxP.js";import{i as ce}from"./Key01-BVXgUn29.js";import{i as me}from"./Shield01-DPzSiB-T.js";import{s as fe}from"./User01-BZEdjS8N.js";import{i as de}from"./Zap-GCvYK6cT.js";import{d as xe}from"./use-organization-settings-BPsQDYqA.js";import{a as ue}from"./use-capability-BAJSmOR6.js";import{u as be}from"./use-join-requests-wFFDbE5s.js";import{u as D}from"./use-mobile-BD37jY8Y.js";import{u as pe}from"./use-status-sounds-BEcDaP-9.js";import{T as y}from"./toolbar-spKhA4Pi.js";import{S as he,M as ge}from"./shell-controls-DFx9R0D_.js";import"./LayoutLeft-DKGWBMNA.js";import"./X-CJDTMZdu.js";import"./tooltip-D9y133qH.js";import"./constants-B72Xmt_K.js";import"./studio-tools-D1WvthcJ.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-CwboOo9R.js";import"./decopilot-sse-pool-CQt0Qt9t.js";import"./backoff-CrEUbyZT.js";import"./toolbar-icon-button-BfscRxQb.js";function H(){const e=S.c(21),{capabilities:t,isPrivileged:u,loading:f,error:i}=ue(),l=be().length;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ne,{size:14}),e[0]=r):r=e[0];let o,n;if(e[1]!==t||e[2]!==i||e[3]!==u||e[4]!==l||e[5]!==f){n=Symbol.for("react.early_return_sentinel");e:{let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(te,{size:14}),e[8]=d):d=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(le,{size:14}),e[9]=b):b=e[9];let a;e[10]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ce,{size:14}),e[10]=a):a=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ae,{size:14}),e[11]=h):h=e[11];let c;e[12]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(re,{size:14}),e[12]=c):c=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(R,{size:14}),e[13]=m):m=e[13];let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(de,{size:14}),e[14]=x):x=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(oe,{size:14}),e[15]=g):g=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ie,{size:14}),e[16]=p):p=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(R,{size:14}),e[17]=_):_=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(me,{size:14}),e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Q,{size:14}),e[19]=v):v=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(fe,{size:14}),e[20]=N):N=e[20];const z=[{label:"Organization",items:[{key:"general",label:"General",icon:r,to:"/$org/settings/general",requires:"org:manage"},{key:"brand-context",label:"Brand Context",icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:"AI Providers",icon:b,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:"Secrets",icon:a,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:"Buckets",icon:h,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{label:"Build",items:[{key:"connections",label:"Connections",icon:c,to:"/$org/settings/connections"},{key:"agents",label:"Agents",icon:m,to:"/$org/settings/agents"},{key:"automations",label:"Automations",icon:x,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:"Store",icon:g,to:"/$org/settings/store",requires:"registry:manage"}]},{label:"Manage",items:[{key:"monitor",label:"Monitor",icon:p,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:"Members",icon:_,to:"/$org/settings/members",requires:"members:manage",badge:l},{key:"roles",label:"Roles",icon:j,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:"Security",icon:v,to:"/$org/settings/sso",requires:"org:manage"}]},{label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:N,to:"/$org/settings/profile"}]}];if(f||i){n=z;break e}o=z.map(C=>({...C,items:C.items.filter($=>$.privilegedOnly?u:$.requires?u||t[$.requires]:!0)})).filter(je)}e[1]=t,e[2]=i,e[3]=u,e[4]=l,e[5]=f,e[6]=o,e[7]=n}else o=e[6],n=e[7];return n!==Symbol.for("react.early_return_sentinel")?n:o}function je(e){return e.items.length>0}function _e(){const e=S.c(19),t=H();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={from:"/shell/$org"},e[0]=u):u=e[0];const{org:f}=L(u);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Se},e[1]=i):i=e[1];const l=E(i);let r;e[2]!==f||e[3]!==l?(r=m=>{const x=m.replace("$org",f);return l.startsWith(x)},e[2]=f,e[3]=l,e[4]=r):r=e[4];const o=r;let n;if(e[5]!==t||e[6]!==o||e[7]!==f){let m;e[9]!==o||e[10]!==f?(m=(x,g)=>s.jsxs(q,{className:"pt-0 pr-0 pb-0 pl-0",children:[x.label&&s.jsx("p",{className:k("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",g>0&&"mt-3"),children:x.label}),s.jsx(w,{children:s.jsx(O,{className:"gap-0.5",children:x.items.map(p=>s.jsx(M,{children:s.jsx(P,{asChild:!0,isActive:o(p.to),children:s.jsxs(B,{to:p.to,params:{org:f},onClick:()=>G("settings_nav_clicked",{section_key:p.key,section_label:p.label,group_label:x.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsxs("span",{className:"relative shrink-0",children:[p.icon,p.badge?s.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-red-500 pointer-events-none"}):null]}),s.jsx("span",{className:"truncate",children:p.label})]})})},p.key))})})]},`${x.label}-${g}`),e[9]=o,e[10]=f,e[11]=m):m=e[11],n=t.map(m),e[5]=t,e[6]=o,e[7]=f,e[8]=n}else n=e[8];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[12]=d):d=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs(q,{className:"pt-0 pr-0 pb-0 pl-0",children:[d,s.jsx(w,{children:s.jsx(O,{className:"gap-0.5",children:s.jsx(M,{children:s.jsxs(P,{onClick:ye,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(W,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[13]=b):b=e[13];let a;e[14]!==n?(a=s.jsxs(Z,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[n,b]}),e[14]=n,e[15]=a):a=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.51.0"]})}),e[16]=h):h=e[16];let c;return e[17]!==a?(c=s.jsxs(ee,{variant:"sidebar",children:[a,h]}),e[17]=a,e[18]=c):c=e[18],c}function ye(){G("signed_out",{source:"settings_sidebar"}),I(),T.signOut()}function Se(e){return e.location.pathname}function ve(e){const t=S.c(21),{onClose:u}=e,f=H();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org"},t[0]=i):i=t[0];const{org:l}=L(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={select:ke},t[1]=r):r=t[1];const o=E(r);let n;t[2]!==l||t[3]!==o?(n=g=>{const p=g.replace("$org",l);return o.startsWith(p)},t[2]=l,t[3]=o,t[4]=n):n=t[4];const d=n;let b;if(t[5]!==f||t[6]!==d||t[7]!==u||t[8]!==l){let g;t[10]!==d||t[11]!==u||t[12]!==l?(g=(p,_)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[p.label&&s.jsx("p",{className:k("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",_>0&&"mt-3"),children:p.label}),p.items.map(j=>s.jsxs(B,{to:j.to,params:{org:l},onClick:u,className:k("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",d(j.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[s.jsxs("span",{className:"relative shrink-0",children:[j.icon,j.badge?s.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-red-500 pointer-events-none"}):null]}),s.jsx("span",{className:"truncate",children:j.label})]},j.key))]},`${p.label}-${_}`),t[10]=d,t[11]=u,t[12]=l,t[13]=g):g=t[13],b=f.map(g),t[5]=f,t[6]=d,t[7]=u,t[8]=l,t[9]=b}else b=t[9];let a;t[14]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[14]=a):a=t[14];let h;t[15]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[a,s.jsxs("button",{type:"button",onClick:Ne,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:[s.jsx("span",{className:"shrink-0",children:s.jsx(W,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[15]=h):h=t[15];let c;t[16]!==b?(c=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[b,h]}),t[16]=b,t[17]=c):c=t[17];let m;t[18]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.51.0"]})}),t[18]=m):m=t[18];let x;return t[19]!==c?(x=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[c,m]}),t[19]=c,t[20]=x):x=t[20],x}function Ne(){I(),T.signOut()}function ke(e){return e.location.pathname}function $e(){const e=S.c(4),t=D(),{org:u}=A();pe(u.slug);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(F,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=f):f=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(K.Suspense,{fallback:f,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(se,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(U,{})})})})}),e[1]=i):i=e[1];const l=i;if(t){let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=o):o=e[2],o}let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:k("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=r):r=e[3],r}function ts(){const e=S.c(23),t=D(),{org:u}=A();if(xe()){let g;return e[0]!==u.slug?(g=s.jsx(J,{to:"/commerce-onboarding",search:{org:u.slug},replace:!0}),e[0]=u.slug,e[1]=g):g=e[1],g}let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(y.LogoLink,{}),e[2]=i):i=e[2];let l;e[3]!==t?(l=t&&s.jsx(he,{}),e[3]=t,e[4]=l):l=e[4];let r;e[5]!==l?(r=s.jsxs(y.LeftColumn,{children:[i,l]}),e[5]=l,e[6]=r):r=e[6];let o;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(y.CenterSlot,{}),e[7]=o):o=e[7];let n;e[8]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(y.RightColumn,{children:s.jsx("span",{})}),e[8]=n):n=e[8];let d;e[9]!==r?(d=s.jsxs(y.Header,{children:[r,o,n]}),e[9]=r,e[10]=d):d=e[10];let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width-icon":"3.5rem"},e[11]=b):b=e[11];let a;e[12]!==t?(a=!t&&s.jsx(_e,{}),e[12]=t,e[13]=a):a=e[13];let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(V,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx($e,{})}),e[14]=h):h=e[14];let c;e[15]!==a?(c=s.jsxs(X,{className:"flex-1 bg-sidebar min-h-0",style:b,children:[a,h]}),e[15]=a,e[16]=c):c=e[16];let m;e[17]!==t?(m=t&&s.jsx(ge,{renderSidebar:ze}),e[17]=t,e[18]=m):m=e[18];let x;return e[19]!==m||e[20]!==d||e[21]!==c?(x=s.jsx(y.Provider,{children:s.jsx(Y,{defaultOpen:!0,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[d,c,m]})})}),e[19]=m,e[20]=d,e[21]=c,e[22]=x):x=e[22],x}function ze(e){const{onClose:t}=e;return s.jsx(ve,{onClose:t})}export{_e as SettingsSidebar,ve as SettingsSidebarMobile,ts as default};
@@ -1 +1 @@
1
- import{c as v,l as N,j as r,r as S}from"./index-Dgf9uMoE.js";import{C as w}from"./card-fRwe0bJZ.js";import{i as E}from"./ArrowUpRight-C4ZUgCv8.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,l as N,j as r,r as S}from"./index-RzCbz7G4.js";import{C as w}from"./card-DJEMjLyN.js";import{i as E}from"./ArrowUpRight-gaoM5S0k.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 f,j as a}from"./index-Dgf9uMoE.js";import{u as p,m as b,p as d,q as h}from"./sidebar-DGCj3BzG.js";import{i as u}from"./LayoutLeft-CIXRhIgm.js";import{T as S}from"./toolbar-icon-button-j_UeiHvv.js";function T(){const t=f.c(3),{toggleSidebar:e}=p();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(u,{size:16}),t[0]=o):o=t[0];let s;return t[1]!==e?(s=a.jsx(S,{onClick:e,"aria-label":"Toggle sidebar",children:o}),t[1]=e,t[2]=s):s=t[2],s}function M(t){const e=f.c(12),{renderSidebar:o}=t,{openMobile:s,setOpenMobile:i}=p();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(b,{className:"sr-only",children:"Navigation"}),e[0]=c):c=e[0];let n;e[1]!==i?(n=()=>i(!1),e[1]=i,e[2]=n):n=e[2];let l;e[3]!==o||e[4]!==n?(l=o({onClose:n}),e[3]=o,e[4]=n,e[5]=l):l=e[5];let r;e[6]!==l?(r=a.jsxs(d,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[c,l]}),e[6]=l,e[7]=r):r=e[7];let m;return e[8]!==s||e[9]!==i||e[10]!==r?(m=a.jsx(h,{open:s,onOpenChange:i,children:r}),e[8]=s,e[9]=i,e[10]=r,e[11]=m):m=e[11],m}export{M,T as S};
1
+ import{c as f,j as a}from"./index-RzCbz7G4.js";import{u as p,m as b,p as d,q as h}from"./sidebar-Dg_hr7dR.js";import{i as u}from"./LayoutLeft-DKGWBMNA.js";import{T as S}from"./toolbar-icon-button-BfscRxQb.js";function T(){const t=f.c(3),{toggleSidebar:e}=p();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(u,{size:16}),t[0]=o):o=t[0];let s;return t[1]!==e?(s=a.jsx(S,{onClick:e,"aria-label":"Toggle sidebar",children:o}),t[1]=e,t[2]=s):s=t[2],s}function M(t){const e=f.c(12),{renderSidebar:o}=t,{openMobile:s,setOpenMobile:i}=p();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(b,{className:"sr-only",children:"Navigation"}),e[0]=c):c=e[0];let n;e[1]!==i?(n=()=>i(!1),e[1]=i,e[2]=n):n=e[2];let l;e[3]!==o||e[4]!==n?(l=o({onClose:n}),e[3]=o,e[4]=n,e[5]=l):l=e[5];let r;e[6]!==l?(r=a.jsxs(d,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[c,l]}),e[6]=l,e[7]=r):r=e[7];let m;return e[8]!==s||e[9]!==i||e[10]!==r?(m=a.jsx(h,{open:s,onOpenChange:i,children:r}),e[8]=s,e[9]=i,e[10]=r,e[11]=m):m=e[11],m}export{M,T as S};
@@ -0,0 +1 @@
1
+ import{c as k,d as ee,j as n,B as T,bS as H,t as W,aD as ye,a as Y,X as Ne,P as be,K as se,bT as _e,bU as Ae,Y as B,r as K,m as te,bV as Ce,bW as Oe,b as Te,a1 as Ee,e as xe,u as $e,a2 as ze,aX as De,bX as Pe,bY as ue,bZ as Ie,b_ as Le,S as Fe,O as Me,b$ as Re}from"./index-RzCbz7G4.js";import{A as oe}from"./avatar-BvMZq_TI.js";import{t as we,a as qe}from"./Users03-B4feTEaY.js";import{i as Ue}from"./SearchLg-6CR82X0W.js";import{i as Ge,s as Ke,a as D,n as He}from"./Stars02-DaEgHmQI.js";import{s as Be}from"./XClose-BKoSgWfP.js";import{i as I}from"./CheckCircle-CREoH7p2.js";import{i as me}from"./FilterLines-eP80xxCy.js";import{i as G}from"./Zap-GCvYK6cT.js";import{d as Ye,D as We,a as Je,e as Qe}from"./dialog-VQoq6ED0.js";import{b as Ve,c as Xe,d as Ze,a as et,e as tt,g as nt,f as st}from"./alert-dialog-BglRhrg0.js";import{R as ot}from"./required-auth-layout-BnUL76ZK.js";import{A as it}from"./autosend-CYyCczkd.js";import{m as at}from"./use-mcp-client-D3e9ceNa.js";import{a as fe,S as rt}from"./constants-B72Xmt_K.js";import{g as lt,c as ct}from"./hooks-BCy5e9GO.js";import{q as dt}from"./tab-id-bb-jjgGv.js";import{f as ut}from"./use-organization-settings-BPsQDYqA.js";import{u as mt}from"./use-org-sso-C5MQ0Bj7.js";function ft(t){const e=k.c(27),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i={mutationFn:async()=>{const S=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),v=await S.json();if(!S.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:S=>{window.location.href=`/${S.slug??o}`},onError:gt},e[0]=o,e[1]=i):i=e[1];const l=ee(i),c=ht;let d;e[2]!==a||e[3]!==s?(d=a?n.jsx(oe,{url:a,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(we,{className:"h-6 w-6 text-primary"})}),e[2]=a,e[3]=s,e[4]=d):d=e[4];let u;e[5]!==s?(u=n.jsxs("h3",{className:"text-lg font-medium",children:["Join ",s,"?"]}),e[5]=s,e[6]=u):u=e[6];let m;e[7]!==r?(m=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",n.jsxs("strong",{children:["@",r]})," email can join this organization."]}),e[7]=r,e[8]=m):m=e[8];let h;e[9]!==u||e[10]!==m?(h=n.jsxs("div",{className:"space-y-2",children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11];let p;e[12]!==l?(p=()=>l.mutate(),e[12]=l,e[13]=p):p=e[13];const f=l.isPending?"Joining…":`Enter ${s}`;let g;e[14]!==l.isPending||e[15]!==p||e[16]!==f?(g=n.jsx(T,{onClick:p,disabled:l.isPending,children:f}),e[14]=l.isPending,e[15]=p,e[16]=f,e[17]=g):g=e[17];let y;e[18]!==l.isPending?(y=n.jsx(T,{variant:"ghost",onClick:c,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=y):y=e[19];let x;e[20]!==g||e[21]!==y?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,y]}),e[20]=g,e[21]=y,e[22]=x):x=e[22];let b;return e[23]!==x||e[24]!==d||e[25]!==h?(b=n.jsxs(H,{children:[d,h,x]}),e[23]=x,e[24]=d,e[25]=h,e[26]=b):b=e[26],b}function ht(){window.location.href="/"}function gt(t){W.error(t instanceof Error?t.message:"Failed to join organization")}function he(t){const e=k.c(17),{orgSlug:s,orgName:o,reason:a}=t,r=pt,i=a==="not-found",l=i?Ue:ye,c=i?"Organization not found":"No access";let d;e[0]!==i||e[1]!==o||e[2]!==s?(d=i?n.jsxs(n.Fragment,{children:["We couldn't find an organization called ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:["You don't have access to ",n.jsx("strong",{children:o??s}),".",n.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=o,e[2]=s,e[3]=d):d=e[3];const u=d;let m;e[4]!==l?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=m):m=e[5];let h;e[6]!==c?(h=n.jsx("h3",{className:"text-lg font-medium",children:c}),e[6]=c,e[7]=h):h=e[7];let p;e[8]!==u?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[8]=u,e[9]=p):p=e[9];let f;e[10]!==h||e[11]!==p?(f=n.jsxs("div",{className:"space-y-2",children:[h,p]}),e[10]=h,e[11]=p,e[12]=f):f=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(T,{onClick:r,children:"Go to home"}),e[13]=g):g=e[13];let y;return e[14]!==m||e[15]!==f?(y=n.jsxs(H,{children:[m,f,g]}),e[14]=m,e[15]=f,e[16]=y):y=e[16],y}function pt(){window.location.href="/"}function yt(t){const e=k.c(39),{invitationId:s,orgName:o,orgSlug:a,orgLogo:r}=t;let i;e[0]!==s?(i=async()=>{const A=await Y.organization.acceptInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[0]=s,e[1]=i):i=e[1];let l;e[2]!==a?(l=()=>{Ne(),window.location.href=`/${a}`},e[2]=a,e[3]=l):l=e[3];let c;e[4]!==i||e[5]!==l?(c={mutationFn:i,onSuccess:l,onError:wt},e[4]=i,e[5]=l,e[6]=c):c=e[6];const d=ee(c);let u;e[7]!==s?(u=async()=>{const A=await Y.organization.rejectInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[7]=s,e[8]=u):u=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=xt,e[9]=m):m=e[9];let h;e[10]!==u?(h={mutationFn:u,onSuccess:m,onError:bt},e[10]=u,e[11]=h):h=e[11];const p=ee(h),f=d.isPending||p.isPending;let g;e[12]!==r||e[13]!==o?(g=r?n.jsx(oe,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ge,{className:"h-6 w-6 text-primary"})}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let y;e[15]!==o?(y=n.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",n.jsx("strong",{children:o})]}),e[15]=o,e[16]=y):y=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=x):x=e[17];let b;e[18]!==y?(b=n.jsxs("div",{className:"space-y-2",children:[y,x]}),e[18]=y,e[19]=b):b=e[19];let S;e[20]!==d?(S=()=>d.mutate(),e[20]=d,e[21]=S):S=e[21];const v=d.isPending?"Accepting…":"Accept invitation";let N;e[22]!==f||e[23]!==S||e[24]!==v?(N=n.jsx(T,{onClick:S,disabled:f,children:v}),e[22]=f,e[23]=S,e[24]=v,e[25]=N):N=e[25];let O;e[26]!==p?(O=()=>p.mutate(),e[26]=p,e[27]=O):O=e[27];const _=p.isPending?"Declining…":"Decline";let w;e[28]!==f||e[29]!==O||e[30]!==_?(w=n.jsx(T,{variant:"ghost",onClick:O,disabled:f,children:_}),e[28]=f,e[29]=O,e[30]=_,e[31]=w):w=e[31];let $;e[32]!==N||e[33]!==w?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,w]}),e[32]=N,e[33]=w,e[34]=$):$=e[34];let z;return e[35]!==b||e[36]!==$||e[37]!==g?(z=n.jsxs(H,{children:[g,b,$]}),e[35]=b,e[36]=$,e[37]=g,e[38]=z):z=e[38],z}function bt(t){W.error(t instanceof Error?t.message:"Failed to decline invitation")}function xt(){W.success("Invitation declined"),window.location.href="/"}function wt(t){W.error(t instanceof Error?t.message:"Failed to accept invitation")}function St(t){const e=k.c(10),{orgName:s,orgLogo:o}=t;let a;e[0]!==o||e[1]!==s?(a=o?n.jsx(oe,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ke,{className:"h-6 w-6 text-primary"})}),e[0]=o,e[1]=s,e[2]=a):a=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("h3",{className:"text-lg font-medium",children:"Request pending"}),e[3]=r):r=e[3];let i;e[4]!==s?(i=n.jsxs("div",{className:"space-y-2",children:[r,n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your request to join ",n.jsx("strong",{children:s})," is waiting for an admin to approve it. You'll get access once it's approved."]})]}),e[4]=s,e[5]=i):i=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(T,{variant:"ghost",onClick:jt,children:"Go to home"}),e[6]=l):l=e[6];let c;return e[7]!==a||e[8]!==i?(c=n.jsxs(H,{children:[a,i,l]}),e[7]=a,e[8]=i,e[9]=c):c=e[9],c}function jt(){window.location.href="/"}function vt(t){const e=k.c(30),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i=async()=>{const v=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),N=await v.json();if(!v.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=o,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=_t,e[2]=l):l=e[2];let c;e[3]!==i?(c={mutationFn:i,onSuccess:l,onError:Nt},e[3]=i,e[4]=c):c=e[4];const d=ee(c);let u;e[5]!==a||e[6]!==s?(u=a?n.jsx(oe,{url:a,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(we,{className:"h-6 w-6 text-primary"})}),e[5]=a,e[6]=s,e[7]=u):u=e[7];let m;e[8]!==s?(m=n.jsxs("h3",{className:"text-lg font-medium",children:["Request to join ",s,"?"]}),e[8]=s,e[9]=m):m=e[9];let h;e[10]!==r?(h=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["An admin must approve requests from ",n.jsxs("strong",{children:["@",r]})," emails before you can join."]}),e[10]=r,e[11]=h):h=e[11];let p;e[12]!==m||e[13]!==h?(p=n.jsxs("div",{className:"space-y-2",children:[m,h]}),e[12]=m,e[13]=h,e[14]=p):p=e[14];let f;e[15]!==d?(f=()=>d.mutate(),e[15]=d,e[16]=f):f=e[16];const g=d.isPending?"Requesting…":"Request to join";let y;e[17]!==d.isPending||e[18]!==f||e[19]!==g?(y=n.jsx(T,{onClick:f,disabled:d.isPending,children:g}),e[17]=d.isPending,e[18]=f,e[19]=g,e[20]=y):y=e[20];let x;e[21]!==d.isPending?(x=n.jsx(T,{variant:"ghost",onClick:kt,disabled:d.isPending,children:"Go to home"}),e[21]=d.isPending,e[22]=x):x=e[22];let b;e[23]!==y||e[24]!==x?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[y,x]}),e[23]=y,e[24]=x,e[25]=b):b=e[25];let S;return e[26]!==b||e[27]!==u||e[28]!==p?(S=n.jsxs(H,{children:[u,p,b]}),e[26]=b,e[27]=u,e[28]=p,e[29]=S):S=e[29],S}function kt(){window.location.href="/"}function Nt(t){W.error(t instanceof Error?t.message:"Failed to request access")}function _t(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function At(t){const e=k.c(7);let s;e[0]!==t?(s=se.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let o;e[2]!==t?(o=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]=o):o=e[3];let a;return e[4]!==s||e[5]!==o?(a={queryKey:s,queryFn:o,refetchOnWindowFocus:!1},e[4]=s,e[5]=o,e[6]=a):a=e[6],be(a)}function Ct({orgSlug:t}){const{data:e}=At(t);if(e.status!=="member"){_e()?.org===t&&Ae();const s=localStorage.getItem(B.lastOrgSlug())===t;if(s&&localStorage.removeItem(B.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(he,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(yt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ft,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(vt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(St,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(he,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Ot(t){const e=k.c(20),{release:s,onCtaClick:o,onLearnMoreClick:a}=t;let r;e[0]!==s.eyebrow?(r=s.eyebrow&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s.eyebrow}),e[0]=s.eyebrow,e[1]=r):r=e[1];let i;e[2]!==s.title?(i=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:s.title}),e[2]=s.title,e[3]=i):i=e[3];let l;e[4]!==r||e[5]!==i?(l=n.jsxs("div",{children:[r,i]}),e[4]=r,e[5]=i,e[6]=l):l=e[6];let c;e[7]!==s.bullets?(c=s.bullets.map(Tt),e[7]=s.bullets,e[8]=c):c=e[8];let d;e[9]!==c?(d=n.jsx("ul",{className:"flex flex-col gap-3",children:c}),e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==s.cta||e[14]!==s.learnMoreHref?(u=(s.cta||s.learnMoreHref)&&n.jsxs("div",{className:"flex items-center justify-between pt-1",children:[s.learnMoreHref?n.jsx("a",{href:s.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:a,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):n.jsx("span",{}),s.cta&&n.jsx(T,{asChild:!0,size:"sm",onClick:o,children:n.jsx("a",{href:s.cta.href,children:s.cta.label})})]}),e[11]=o,e[12]=a,e[13]=s.cta,e[14]=s.learnMoreHref,e[15]=u):u=e[15];let m;return e[16]!==l||e[17]!==d||e[18]!==u?(m=n.jsxs("div",{className:"flex flex-col gap-3",children:[l,d,u]}),e[16]=l,e[17]=d,e[18]=u,e[19]=m):m=e[19],m}function Tt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),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 Se=[{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:D,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:I,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:D,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:I,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:I,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:D,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:D,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:I,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:D,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:I,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:D,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:me,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:I,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:qe,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:I,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:D,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:me,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:D,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:He,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ne="studio.release-feed.v1",ce=new Set;let L="",F={},de=!1;function Et(){if(de)return L||"{}";try{return localStorage.getItem(ne)??"{}"}catch{return L||"{}"}}function je(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ge(){const t=Et();return t!==L&&(L=t,F=je(t)),F}function $t(t){ce.add(t);const e=s=>{if(!(s.key!==ne&&s.key!==null)){try{const o=localStorage.getItem(ne)??"{}",r={...je(o),...F};F=r,L=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{ce.delete(t),window.removeEventListener("storage",e)}}function zt(t){F=t,L=JSON.stringify(t);try{localStorage.setItem(ne,L),de=!1}catch{de=!0}ce.forEach(e=>e())}function Dt(){const t=k.c(7),e=K.useSyncExternalStore($t,ge,ge);let s;t[0]!==e?(s=c=>!!e[c],t[0]=e,t[1]=s):s=t[1];const o=s,a=Pt;let r;t[2]!==e?(r=Se.reduce((c,d)=>e[d.id]?c:c+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==o||t[5]!==i?(l={isSeen:o,markSeen:a,unseenCount:i},t[4]=o,t[5]=i,t[6]=l):l=t[6],l}function Pt(t){F[t]||zt({...F,[t]:{seenAt:new Date().toISOString()}})}const It=720*60*60*1e3,Lt=10080*60*1e3;function Ft(t){const[e,s,o]=t.split("-").map(Number);return!e||!s||!o?new Date(t).getTime():new Date(e,s-1,o).getTime()}function Mt(t){const e=Se[0];if(!e)return null;const s=Ft(e.date),o=t-s;return o<0||o>It?null:e}function Rt(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 qt(t,e){const s=Rt(t);return s===null?!1:e-s>=Lt}function Ut(){const t=k.c(22),{data:e}=Y.useSession(),{isSeen:s,markSeen:o}=Dt();let a,r,i;if(t[0]!==s||t[1]!==e?.user?.createdAt){i=Symbol.for("react.early_return_sentinel");e:{const f=Date.now();if(a=Mt(f),!a){i=null;break e}if(!qt(e?.user?.createdAt,f)){i=null;break e}r=s(a.id)}t[0]=s,t[1]=e?.user?.createdAt,t[2]=a,t[3]=r,t[4]=i}else a=t[2],r=t[3],i=t[4];if(i!==Symbol.for("react.early_return_sentinel"))return i;if(r)return null;let l;t[5]!==a.id||t[6]!==o?(l=()=>o(a.id),t[5]=a.id,t[6]=o,t[7]=l):l=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(Be,{size:14}),t[8]=c):c=t[8];let d;t[9]!==l?(d=n.jsx(T,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:l,children:c}),t[9]=l,t[10]=d):d=t[10];let u,m;t[11]!==a.id||t[12]!==o?(u=()=>o(a.id),m=()=>o(a.id),t[11]=a.id,t[12]=o,t[13]=u,t[14]=m):(u=t[13],m=t[14]);let h;t[15]!==a||t[16]!==u||t[17]!==m?(h=n.jsx(Ot,{release:a,onCtaClick:u,onLearnMoreClick:m}),t[15]=a,t[16]=u,t[17]=m,t[18]=h):h=t[18];let p;return t[19]!==d||t[20]!==h?(p=n.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,h]}),t[19]=d,t[20]=h,t[21]=p):p=t[21],p}const ve=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),P=ve?"⌘":"Ctrl",E={keyboardShortcuts:{keys:[P,"K"],description:"Keyboard shortcuts"},back:{keys:[P,"["],description:"Back to previous"},focusChatInput:{keys:[P,"L"],description:"Focus chat input"},saveAndFormat:{keys:[P,"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:[P,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[P,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",P,"S"],description:"New task"},toggleDaemon:{keys:[P,"D"],description:"Toggle daemon logs"}},Gt=[{label:"General",shortcuts:[E.keyboardShortcuts,E.back,E.newTask,E.toggleDaemon]},{label:"Editor",shortcuts:[E.saveAndFormat]},{label:"Chat",shortcuts:[E.focusChatInput,E.togglePlanMode,E.sendMessage,E.newLine]},{label:"Questions",shortcuts:[E.selectOption]},{label:"Monitoring",shortcuts:[E.applyFilter]}];function pe(t){return ve?t.metaKey:t.ctrlKey}function Kt(t){const e=k.c(5),{open:s,onOpenChange:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(We,{children:n.jsx(Je,{children:"Keyboard Shortcuts"})}),e[0]=a):a=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs(Ye,{className:"sm:max-w-md",children:[a,n.jsx("div",{className:"flex flex-col gap-4",children:Gt.map(Ht)})]}),e[1]=r):r=e[1];let i;return e[2]!==o||e[3]!==s?(i=n.jsx(Qe,{open:s,onOpenChange:o,children:r}),e[2]=o,e[3]=s,e[4]=i):i=e[4],i}function Ht(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(Bt)})]},t.label)}function Bt(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(Yt)})]},t.description)}function Yt(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 Wt=300*1e3,Jt=2;function Qt(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 Vt(){const t=k.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:se.appVersionCheck(),queryFn:Zt,refetchInterval:Wt,refetchIntervalInBackground:!0,staleTime:0},t[0]=e):e=t[0];const{data:s,dataUpdatedAt:o}=te(e),[a,r]=K.useState(0);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={version:null,count:0},t[1]=i):i=t[1];const[l,c]=K.useState(i);o!==a&&(r(o),c(p=>Qt(p,s,"4.51.0")));const d=l.count>=Jt;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsxs(Ve,{children:[n.jsx(Xe,{children:"A new version is available"}),n.jsx(Ze,{children:"You're viewing an outdated version of this page. Refresh to get the latest updates."})]}),t[2]=u):u=t[2];let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs(et,{children:[u,n.jsx(tt,{children:n.jsx(nt,{onClick:Xt,children:"Refresh"})})]}),t[3]=m):m=t[3];let h;return t[4]!==d?(h=n.jsx(st,{open:d,children:m}),t[4]=d,t[5]=h):h=t[5],h}function Xt(){return window.location.reload()}async function Zt(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function en({activeOrg:t}){return t&&(Ce(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Oe()),null}function tn(t,e,s){if(!s)return null;const o=lt(t,e);return o?o.threads.get().find(r=>r.id===s)?.branch??null:null}function ke(t){return{queryKey:se.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 Tn(t){const e=k.c(10);let s;e[0]!==t?(s=ke(t),e[0]=t,e[1]=s):s=e[1];const o=te(s);let a;e[2]!==o.data?.prompts?(a=o.data?.prompts??[],e[2]=o.data?.prompts,e[3]=a):a=e[3];let r;e[4]!==o.data?.tiles?(r=o.data?.tiles??[],e[4]=o.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==o.isLoading||e[7]!==a||e[8]!==r?(i={isLoading:o.isLoading,prompts:a,tiles:r},e[6]=o.isLoading,e[7]=a,e[8]=r,e[9]=i):i=e[9],i}function nn(t){const e=k.c(17),{orgSlug:s,orgName:o,domain:a}=t;let r;e[0]!==s?(r=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=r):r=e[1];const i=r,l=sn;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ye,{className:"h-6 w-6 text-primary"})}),e[2]=c):c=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==o?(u=o?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:o})," requires SSO authentication",a?` via ${a}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=a,e[5]=o,e[6]=u):u=e[6];let m;e[7]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[d,n.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),e[7]=u,e[8]=m):m=e[8];let h;e[9]!==i?(h=n.jsx(T,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=h):h=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(T,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=p):p=e[11];let f;e[12]!==h?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,p]}),e[12]=h,e[13]=f):f=e[13];let g;return e[14]!==m||e[15]!==f?(g=n.jsxs(H,{children:[c,m,f]}),e[14]=m,e[15]=f,e[16]=g):g=e[16],g}function sn(){window.location.href="/"}function on(t){const e=k.c(8),{org:s,children:o}=t,r=ut(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(i={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]=i):i=e[3];const l=i;let c;return e[4]!==o||e[5]!==s||e[6]!==l?(c=n.jsx(Re,{org:s,project:l,children:o}),e[4]=o,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function an(){const t=Te(),e=ct(),{org:s,locator:o}=Ee(),a=xe({strict:!1}),r=$e({strict:!1}),i=a.org??"",l=a.taskId??"",c=(f,g,y=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:g,replace:y}),d=(f,g=!0)=>c(l,f,g),u=f=>d(g=>({...g,sidepanel:f})),m=(f,g,y)=>c(f,x=>{const b={sidepanel:"chat"};g?b.virtualmcpid=g:x.virtualmcpid&&(b.virtualmcpid=x.virtualmcpid);const S=fe(s.id).id,v=typeof x.virtualmcpid=="string"?x.virtualmcpid:S,O=(g??v)!==v;if(y?.main)b.main=y.main;else if(!O){const _=x.main;_&&typeof _=="string"&&!dt(_)&&(b.main=_)}return y?.autosend&&(b.autosend=it),b},!1);return{openSidePanel:u,setTaskId:m,createNewTask:async f=>{const g=crypto.randomUUID(),y=f??r.virtualmcpid??fe(s.id).id,b=y===r.virtualmcpid?tn(s.slug,o,l):null;try{await e?.create({id:g,virtual_mcp_id:y,...b?{branch:b}:{}})}catch{}m(g,y)},openTab:f=>c(l||crypto.randomUUID(),g=>({...g,main:f}))}}function rn(){const t=k.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 o=ze(e)?.params.org;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[1]=a):a=t[1];const{taskId:r}=xe(a),[i,l]=K.useState(!1),c=De(),d=o??"";let u;t[2]!==d?(u=ke(d),t[2]=d,t[3]=u):u=t[3];const m=!!o&&!r;let h;t[4]!==u||t[5]!==m?(h={...u,enabled:m},t[4]=u,t[5]=m,t[6]=h):h=t[6],te(h);const{data:p}=Y.useSession(),f=p?.user?.id;let g;t[7]!==o||t[8]!==f?(g=o&&f?Pe(f,o):null,t[7]=o,t[8]=f,t[9]=g):g=t[9];const y=g;let x,b;t[10]!==c?(x=()=>{const j=C=>{if(pe(C)&&C.code==="KeyK"){C.preventDefault(),l(!0);return}pe(C)&&C.code==="BracketLeft"&&c.history.canGoBack()&&(C.preventDefault(),c.history.back())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},b=[c],t[10]=c,t[11]=x,t[12]=b):(x=t[11],b=t[12]),K.useEffect(x,b);let S;t[13]!==o?(S=se.activeOrganization(o),t[13]=o,t[14]=S):S=t[14];let v;t[15]!==o||t[16]!==f?(v=async()=>{if(!o)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:o}}).finally(ln),C=ue(j);return j&&!C&&localStorage.setItem(B.lastOrgSlug(),o),f&&j&&Le(f,o,j),j},t[15]=o,t[16]=f,t[17]=v):v=t[17];const N=y?y.data:void 0,O=y?.updatedAt;let _;t[18]!==v||t[19]!==N||t[20]!==O||t[21]!==S?(_={queryKey:S,queryFn:v,initialData:N,initialDataUpdatedAt:O,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=N,t[20]=O,t[21]=S,t[22]=_):_=t[22];const{data:w}=be(_),$=w?.id,z=w?.slug,{data:A}=mt($,z),ie=$??"",ae=z??"";let M;t[23]!==ie||t[24]!==ae?(M=at({connectionId:rt,orgId:ie,orgSlug:ae}),t[23]=ie,t[24]=ae,t[25]=M):M=t[25];const re=!!$&&!!z;let J;if(t[26]!==M||t[27]!==re?(J={...M,enabled:re},t[26]=M,t[27]=re,t[28]=J):J=t[28],te(J),!w){let j;t[29]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Fe,{}),t[29]=j):j=t[29];let C;return t[30]!==o?(C=n.jsx(K.Suspense,{fallback:j,children:n.jsx(Ct,{orgSlug:o})}),t[30]=o,t[31]=C):C=t[31],C}if(ue(w)){localStorage.getItem(B.lastOrgSlug())===o&&localStorage.removeItem(B.lastOrgSlug());let j;return t[32]!==w.name?(j=n.jsx(Ie,{orgName:w.name}),t[32]=w.name,t[33]=j):j=t[33],j}if(A?.ssoRequired&&!A.authenticated){let j;return t[34]!==w.id||t[35]!==w.name||t[36]!==w.slug||t[37]!==A.domain?(j=n.jsx(nn,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:A.domain}),t[34]=w.id,t[35]=w.name,t[36]=w.slug,t[37]=A.domain,t[38]=j):j=t[38],j}const le=w.logo??null;let R;t[39]!==w||t[40]!==le?(R={...w,logo:le},t[39]=w,t[40]=le,t[41]=R):R=t[41];let q;t[42]!==w?(q=n.jsx(en,{activeOrg:w}),t[42]=w,t[43]=q):q=t[43];let Q,V;t[44]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(Me,{}),V=n.jsx(Ut,{}),t[44]=Q,t[45]=V):(Q=t[44],V=t[45]);let U;t[46]!==i?(U=n.jsx(Kt,{open:i,onOpenChange:l}),t[46]=i,t[47]=U):U=t[47];let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(Vt,{}),t[48]=X):X=t[48];let Z;return t[49]!==R||t[50]!==q||t[51]!==U?(Z=n.jsxs(on,{org:R,children:[q,Q,V,U,X]}),t[49]=R,t[50]=q,t[51]=U,t[52]=Z):Z=t[52],Z}function ln(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function cn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ot,{children:n.jsx(rn,{})}),t[0]=e):e=t[0],e}const En=Object.freeze(Object.defineProperty({__proto__:null,default:cn,usePanelActions:an},Symbol.toStringTag,{value:"Module"}));export{E as K,Tn as a,pe as i,tn as r,En as s,an as u};
@@ -1 +1 @@
1
- import{c as b,l as g,j as o,dk as P,cr as R,bM as A,dl as H,cs as V,dm as W,ct as q,r as T,b9 as G,by as L,B as F}from"./index-Dgf9uMoE.js";import{i as J}from"./LayoutLeft-CIXRhIgm.js";import{u as K}from"./use-mobile-B-H7VJlh.js";import{i as Q}from"./X-CAX-FceB.js";import{c as k,b as z,a as B,T as D}from"./tooltip-1foZ_k7s.js";function U(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(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(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 Y(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 Z(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(Y,{}),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(Q,{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(X,{children:[m,o.jsxs(A,{"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(H,{"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 I(){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=K(),[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(k,{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}=I();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(Z,{"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(U,{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}=I();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(J,{}),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(B,{asChild:!0,children:o.jsxs(F,{"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(z,{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(k,{delayDuration:300,children:o.jsxs(D,{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=L("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?G:"button",{isMobile:x}=I();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(B,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(z,{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(D,{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,Ne as f,he as g,ve as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,I as u};
1
+ import{c as b,l as g,j as o,cJ as P,cK as R,bN as A,cL as H,cM as L,cN as V,cO as W,r as T,B as q,ba as G,bz as F}from"./index-RzCbz7G4.js";import{i as J}from"./LayoutLeft-DKGWBMNA.js";import{u as K}from"./use-mobile-BD37jY8Y.js";import{i as Q}from"./X-CJDTMZdu.js";import{c as I,a as B,b as D,T as k}from"./tooltip-D9y133qH.js";function U(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(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(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(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(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(W,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(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(Y,{}),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(V,{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(Q,{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(X,{children:[m,o.jsxs(A,{"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(H,{"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 z(){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=K(),[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,N=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==N||e[12]!==y?(j={state:N,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]=N,e[12]=y,e[13]=j):j=e[13];const S=j;let w;e[14]!==t?(w=o.jsx(I,{delayDuration:0,children:t}),e[14]=t,e[15]=w):w=e[15];let C;return e[16]!==S||e[17]!==w?(C=o.jsx(E.Provider,{value:S,children:w}),e[16]=S,e[17]=w,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}=z();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(Z,{"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(U,{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 N;e[20]!==s||e[21]!==y?(N=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]=N):N=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]!==N||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:N,...a,children:j}),e[25]=a,e[26]=N,e[27]=j,e[28]=S):S=e[28];let w;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(w=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]=w):w=e[35],w}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}=z();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(J,{}),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(B,{asChild:!0,children:o.jsxs(q,{"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(D,{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 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("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 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("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?G:"button",{isMobile:x}=z();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 w;e[18]!==r?(w={children:r},e[18]=r,e[19]=w):w=e[19],r=w}let N;e[20]!==y?(N=o.jsx(B,{asChild:!0,children:y}),e[20]=y,e[21]=N):N=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(D,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==N||e[26]!==j?(S=o.jsxs(k,{children:[N,j]}),e[25]=N,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,Ne as e,we as f,he as g,ve as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,z as u};
@@ -1 +1 @@
1
- import{c as n,l as c,j as i}from"./index-Dgf9uMoE.js";function m(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{m as S};
1
+ import{c as n,l as c,j as i}from"./index-RzCbz7G4.js";function m(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{m as S};
@@ -0,0 +1 @@
1
+ import{a1 as D,r as v,j as e,B as p,R as S,t as c,c as N}from"./index-RzCbz7G4.js";import{D as k}from"./domain-settings-DQrCzdxW.js";import{P as f}from"./index-iSSICeOA.js";import{I as l}from"./input-CmS4IhfL.js";import{S as z}from"./switch-DvI4Ivs6.js";import{a as P,b as R,c as A,d as T}from"./use-org-sso-C5MQ0Bj7.js";import{c as F,S as y,a as C,b as r,d as O}from"./settings-section-B5s6i1AE.js";import{s as L}from"./Trash01-TYv08n93.js";import{R as q}from"./require-capability-BwJAyhw_.js";import"./studio-tools-D1WvthcJ.js";import"./badge-7J4kgEzC.js";import"./select-cLkB0xx3.js";import"./tooltip-D9y133qH.js";import"./Check-C6rOtSdY.js";import"./ChevronDown-BfrTp1Ch.js";import"./ChevronUp-MSW-WrWs.js";import"./sidebar-Dg_hr7dR.js";import"./LayoutLeft-DKGWBMNA.js";import"./use-mobile-BD37jY8Y.js";import"./X-CJDTMZdu.js";import"./card-DJEMjLyN.js";import"./ArrowUpRight-gaoM5S0k.js";import"./use-capability-BAJSmOR6.js";import"./access-gate-Yfi4ekhF.js";import"./capability-load-error-BM3-quVD.js";function B(){const{org:s}=D(),{data:a,isLoading:E}=P(s.id,s.slug),x=R(s.id,s.slug),h=A(s.id,s.slug),j=T(s.id,s.slug),[t,d]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[m,g]=v.useState(!1),u=a?.configured&&a.config,o=a?.config,I=()=>{o&&d({issuer:o.issuer,clientId:o.clientId,clientSecret:"",discoveryEndpoint:o.discoveryEndpoint??"",domain:o.domain,scopes:o.scopes.join(" ")}),g(!0)},b=async()=>{if(!t.issuer||!t.clientId||!t.domain){c.error("Issuer, Client ID, and Domain are required");return}if(!u&&!t.clientSecret){c.error("Client Secret is required for initial setup");return}try{await x.mutateAsync({issuer:t.issuer,clientId:t.clientId,clientSecret:t.clientSecret,discoveryEndpoint:t.discoveryEndpoint||void 0,scopes:t.scopes.split(/\s+/).filter(Boolean),domain:t.domain,enforced:o?.enforced??!1}),S(u?"sso_config_updated":"sso_configured",{organization_id:s.id,email_domain:t.domain}),c.success("SSO configuration saved"),g(!1)}catch(i){c.error(i instanceof Error?i.message:"Failed to save SSO config")}},w=async()=>{if(confirm("Are you sure you want to remove SSO configuration?"))try{await h.mutateAsync(),S("sso_config_removed",{organization_id:s.id}),c.success("SSO configuration removed"),g(!1)}catch{c.error("Failed to remove SSO config")}},_=async i=>{try{await j.mutateAsync(i),S("sso_enforcement_toggled",{organization_id:s.id,enforced:i}),c.success(i?"SSO enforcement enabled":"SSO enforcement disabled")}catch{c.error("Failed to toggle SSO enforcement")}};return e.jsx(f,{children:e.jsx(f.Content,{children:e.jsx(f.Body,{children:e.jsxs(F,{children:[e.jsx(f.Title,{children:"Security"}),e.jsx(k,{}),E?e.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."}):e.jsxs(e.Fragment,{children:[u&&!m&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Provider",action:e.jsx("span",{className:"font-medium",children:o.issuer})}),e.jsx(r,{title:"Client ID",action:e.jsx("span",{className:"font-mono text-xs",children:o.clientId})}),e.jsx(r,{title:"Domain",action:e.jsx("span",{className:"font-medium",children:o.domain})}),e.jsx(r,{title:"Scopes",action:e.jsx("span",{className:"font-mono text-xs",children:o.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(r,{title:"Enforce SSO",description:"Require all members to authenticate via SSO",action:e.jsx(z,{checked:o.enforced,onCheckedChange:_,disabled:j.isPending})}),e.jsxs(O,{children:[e.jsxs(p,{variant:"ghost",size:"sm",onClick:w,disabled:h.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(L,{size:14}),"Remove"]}),e.jsx(p,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${s.slug}/sso/authorize`,"_blank")},children:"Test SSO"}),e.jsx(p,{variant:"outline",size:"sm",onClick:I,children:"Edit configuration"})]})]})}),(!u||m)&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Issuer URL",description:"The OIDC issuer URL of your identity provider.",action:e.jsx(l,{id:"sso-issuer",placeholder:"https://login.microsoftonline.com/{tenant}/v2.0",value:t.issuer,onChange:i=>d(n=>({...n,issuer:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client ID",action:e.jsx(l,{id:"sso-client-id",placeholder:"your-client-id",value:t.clientId,onChange:i=>d(n=>({...n,clientId:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client Secret",description:m&&u?"Leave empty to keep current":void 0,action:e.jsx(l,{id:"sso-client-secret",type:"password",placeholder:"your-client-secret",value:t.clientSecret,onChange:i=>d(n=>({...n,clientSecret:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Email Domain",description:"The email domain this SSO provider covers.",action:e.jsx(l,{id:"sso-domain",placeholder:"company.com",value:t.domain,onChange:i=>d(n=>({...n,domain:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Scopes",action:e.jsx(l,{id:"sso-scopes",placeholder:"openid email profile",value:t.scopes,onChange:i=>d(n=>({...n,scopes:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Discovery Endpoint",description:"Optional — auto-detected from issuer if omitted.",action:e.jsx(l,{id:"sso-discovery",placeholder:"Auto-detected from issuer",value:t.discoveryEndpoint,onChange:i=>d(n=>({...n,discoveryEndpoint:i.target.value})),className:"w-[280px]"})}),e.jsxs(O,{children:[m&&e.jsx(p,{variant:"outline",size:"sm",onClick:()=>g(!1),children:"Cancel"}),e.jsx(p,{onClick:b,disabled:x.isPending,size:"sm",children:x.isPending?"Saving...":m?"Update":"Configure SSO"})]})]})})]})]})})})})}function ue(){const s=N.c(1);let a;return s[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(q,{capability:"org:manage",area:"security",children:e.jsx(B,{})}),s[0]=a):a=s[0],a}export{ue as default};
@@ -0,0 +1 @@
1
+ import{c as D,j as s,U as le,r as K,a1 as ae,n as ce,b as de,e as me,B as U,R as te,K as fe,d as ge,t as ie}from"./index-RzCbz7G4.js";import{i as ue}from"./AlertCircle-Ct7weZuE.js";import{i as pe}from"./ChevronRight-CvPpz1Nq.js";import{s as xe}from"./Plus-D9m58hN2.js";import{s as he}from"./Trash01-TYv08n93.js";import{I as X}from"./input-CmS4IhfL.js";import{S as oe}from"./switch-DvI4Ivs6.js";import{S as ye}from"./skeleton-CZJQcXjJ.js";import{A as ne}from"./avatar-BvMZq_TI.js";import{P as je,a as Ce,b as Se}from"./popover-DOYlXTug.js";import{b as re}from"./use-connection-CoNk61jl.js";import{W as Z}from"./constants-B72Xmt_K.js";import{P as G}from"./index-iSSICeOA.js";import{u as ve}from"./use-registry-connections-sVBXNIyN.js";import{j as _e,k as be}from"./use-organization-settings-BPsQDYqA.js";import{c as Pe,b as I,S as ee,a as Q}from"./settings-section-B5s6i1AE.js";import{R as Re}from"./require-capability-BwJAyhw_.js";import"./User01-BZEdjS8N.js";import"./use-collections-B0fmzWMT.js";import"./use-mcp-client-D3e9ceNa.js";import"./auth-DKsARQye.js";import"./sidebar-Dg_hr7dR.js";import"./LayoutLeft-DKGWBMNA.js";import"./use-mobile-BD37jY8Y.js";import"./X-CJDTMZdu.js";import"./tooltip-D9y133qH.js";import"./studio-tools-D1WvthcJ.js";import"./card-DJEMjLyN.js";import"./ArrowUpRight-gaoM5S0k.js";import"./use-capability-BAJSmOR6.js";import"./access-gate-Yfi4ekhF.js";import"./capability-load-error-BM3-quVD.js";function ke(t){const e=D.c(3),{error:o}=t;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ue,{size:16}),e[0]=m):m=e[0];let n;return e[1]!==o.message?(n=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[m,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load store settings: ",o.message]})]}),e[1]=o.message,e[2]=n):n=e[2],n}function we(t){const e=D.c(36),{onCancel:o,onSuccess:m}=t,n=re(),[r,j]=K.useState(""),[a,S]=K.useState(""),[x,v]=K.useState("");let h;e[0]!==n||e[1]!==r||e[2]!==x||e[3]!==a?(h=async()=>(await n.create.mutateAsync({title:r||"Private Registry",description:"Private MCP registry",connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=n,e[1]=r,e[2]=x,e[3]=a,e[4]=h):h=e[4];let f;e[5]!==m?(f=C=>{te("store_private_registry_added",{connection_id:C}),ie.success("Private registry added"),m(C)},e[5]=m,e[6]=f):f=e[6];let y;e[7]!==h||e[8]!==f?(y={mutationFn:h,onSuccess:f,onError:Ne},e[7]=h,e[8]=f,e[9]=y):y=e[9];const{mutate:c,isPending:d}=ge(y);let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=C=>j(C.target.value),e[10]=g):g=e[10];let u;e[11]!==r?(u=s.jsx(I,{title:"Name",action:s.jsx(X,{placeholder:"e.g. Acme Corp Registry",value:r,onChange:g,className:"w-[280px]"})}),e[11]=r,e[12]=u):u=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=C=>S(C.target.value),e[13]=p):p=e[13];let l;e[14]!==a?(l=s.jsx(I,{title:"Registry URL",action:s.jsx(X,{placeholder:"https://registry.example.com/mcp",value:a,onChange:p,className:"w-[280px]"})}),e[14]=a,e[15]=l):l=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=C=>v(C.target.value),e[16]=_):_=e[16];let b;e[17]!==x?(b=s.jsx(I,{title:"Auth Token",description:"Optional",action:s.jsx(X,{type:"password",placeholder:"Bearer token...",value:x,onChange:_,className:"w-[280px]"})}),e[17]=x,e[18]=b):b=e[18];let k;e[19]!==d||e[20]!==o?(k=s.jsx(U,{variant:"ghost",size:"sm",onClick:o,disabled:d,children:"Cancel"}),e[19]=d,e[20]=o,e[21]=k):k=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];const O=!a||d,B=d?"Adding...":"Add Registry";let A;e[24]!==N||e[25]!==O||e[26]!==B?(A=s.jsx(U,{size:"sm",onClick:N,disabled:O,children:B}),e[24]=N,e[25]=O,e[26]=B,e[27]=A):A=e[27];let R;e[28]!==k||e[29]!==A?(R=s.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[k,A]}),e[28]=k,e[29]=A,e[30]=R):R=e[30];let P;return e[31]!==R||e[32]!==u||e[33]!==l||e[34]!==b?(P=s.jsxs(Q,{children:[u,l,b,R]}),e[31]=R,e[32]=u,e[33]=l,e[34]=b,e[35]=P):P=e[35],P}function Ne(t){ie.error(`Failed to add registry: ${t.message}`)}function L(t){const e=D.c(29),{name:o,description:m,icon:n,enabled:r,onToggle:j,onDelete:a,href:S}=t,x=de();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={from:"/shell/$org"},e[0]=v):v=e[0];const{org:h}=me(v);let f;e[1]!==r||e[2]!==S||e[3]!==x||e[4]!==j||e[5]!==h?(f=()=>{S?x({to:S,params:{org:h}}):j(!r)},e[1]=r,e[2]=S,e[3]=x,e[4]=j,e[5]=h,e[6]=f):f=e[6];const y=f;let c;e[7]!==n||e[8]!==o?(c=n?s.jsx("img",{src:n,alt:o,className:"size-8 rounded-md object-contain"}):s.jsx(ne,{fallback:o.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=n,e[8]=o,e[9]=c):c=e[9];let d;e[10]!==a?(d=a&&s.jsxs(je,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(U,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Me,children:s.jsx(he,{size:14})})}),s.jsx(Se,{className:"w-auto p-2",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-medium",children:"Remove this registry?"}),s.jsx(U,{variant:"destructive",size:"xs",onClick:b=>{b.stopPropagation(),a()},children:"Remove"})]})})]}),e[10]=a,e[11]=d):d=e[11];let g;e[12]!==j?(g=b=>j(b),e[12]=j,e[13]=g):g=e[13];let u;e[14]!==r||e[15]!==g?(u=s.jsx(oe,{checked:r,onClick:Ae,onCheckedChange:g}),e[14]=r,e[15]=g,e[16]=u):u=e[16];let p;e[17]!==S?(p=S&&s.jsx(pe,{size:14,className:"text-muted-foreground"}),e[17]=S,e[18]=p):p=e[18];let l;e[19]!==d||e[20]!==u||e[21]!==p?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[d,u,p]}),e[19]=d,e[20]=u,e[21]=p,e[22]=l):l=e[22];let _;return e[23]!==m||e[24]!==y||e[25]!==o||e[26]!==c||e[27]!==l?(_=s.jsx(I,{title:o,description:m,onClick:y,icon:c,action:l}),e[23]=m,e[24]=y,e[25]=o,e[26]=c,e[27]=l,e[28]=_):_=e[28],_}function Ae(t){return t.stopPropagation()}function Me(t){return t.stopPropagation()}function Te(){const t=D.c(59),{org:e}=ae(),o=ve(),m=re(),n=_e(),{mutateAsync:r}=be(),j=ce(),[a,S]=K.useState(!1);let x,v,h,f,y,c;if(t[0]!==m||t[1]!==e.id||t[2]!==j||t[3]!==n||t[4]!==o||t[5]!==a||t[6]!==r){const p=Z.REGISTRY(e.id),l=i=>{if(!n)return i===p;const w=n.registries[i];return w?w.enabled:i===p},_=Z.COMMUNITY_REGISTRY(e.id),b=o.find(i=>i.id===p),k=o.find(i=>i.id===_||i.id==="community-registry"),N=k?.id??_,O=Z.SELF(e.id),B=new Set([p,_,"community-registry",O]),A=o.filter(i=>!B.has(i.id));let R;t[13]!==n||t[14]!==r?(R=async(i,w)=>{te("store_registry_toggled",{connection_id:i,enabled:w});const se=n??{registries:{},blockedMcps:[]};await r({...se,registries:{...se.registries,[i]:{enabled:w}}})},t[13]=n,t[14]=r,t[15]=R):R=t[15];const P=R;let C;t[16]!==m||t[17]!==e.id||t[18]!==j?(C=async i=>{te("store_private_registry_removed",{connection_id:i}),await m.delete.mutateAsync(i),j.invalidateQueries({queryKey:fe.organizationSettings(e.id)})},t[16]=m,t[17]=e.id,t[18]=j,t[19]=C):C=t[19];const W=C;let Y;t[20]!==n||t[21]!==r?(Y=async i=>{S(!1);const w=n??{registries:{},blockedMcps:[]};await r({...w,registries:{...w.registries,[i]:{enabled:!0}}})},t[20]=n,t[21]=r,t[22]=Y):Y=t[22];const H=Y,J=b?s.jsx(L,{name:"Deco Store",description:"Official deco MCP registry with curated integrations",icon:b.icon,enabled:l(p),onToggle:i=>P(p,i)}):s.jsx(I,{title:"Deco Store",description:"Connection not found — will be created automatically."});t[23]!==J?(y=s.jsx(ee,{title:"Deco Store",children:s.jsx(Q,{children:J})}),t[23]=J,t[24]=y):y=t[24];let M;t[25]!==a?(M=a?void 0:s.jsxs(U,{variant:"outline",size:"sm",onClick:()=>S(!0),children:[s.jsx(xe,{size:14}),"Add registry"]}),t[25]=a,t[26]=M):M=t[26];let T;t[27]!==H||t[28]!==a?(T=a&&s.jsx(we,{onCancel:()=>S(!1),onSuccess:H}),t[27]=H,t[28]=a,t[29]=T):T=t[29];let z;t[30]!==l?(z=l("self"),t[30]=l,t[31]=z):z=t[31];let E;t[32]!==P?(E=i=>P("self",i),t[32]=P,t[33]=E):E=t[33];let $;t[34]!==z||t[35]!==E?($=s.jsx(L,{name:"Private Registry",description:"Your organization's private MCP registry",enabled:z,onToggle:E,href:"/$org/settings/store/registry"}),t[34]=z,t[35]=E,t[36]=$):$=t[36];let q;t[37]!==W||t[38]!==P||t[39]!==l?(q=i=>s.jsx(L,{name:i.title,description:i.description??"Private MCP registry",icon:i.icon,enabled:l(i.id),onToggle:w=>P(i.id,w),onDelete:()=>W(i.id)},i.id),t[37]=W,t[38]=P,t[39]=l,t[40]=q):q=t[40];const V=A.map(q);let F;t[41]!==$||t[42]!==V?(F=s.jsxs(Q,{children:[$,V]}),t[41]=$,t[42]=V,t[43]=F):F=t[43],t[44]!==F||t[45]!==M||t[46]!==T?(c=s.jsxs(ee,{title:"Private Registries",actions:M,children:[T,F]}),t[44]=F,t[45]=M,t[46]=T,t[47]=c):c=t[47],v=ee,f="Community",x=Q,h=k?s.jsx(L,{name:"MCP Registry",description:"Community MCP registry with thousands of handy MCPs",icon:k.icon,enabled:l(N),onToggle:i=>P(N,i)}):s.jsx(I,{title:"MCP Registry",description:"Community MCP registry — not yet added",icon:s.jsx(ne,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:s.jsx(oe,{checked:!1,disabled:!0,onCheckedChange:ze})}),t[0]=m,t[1]=e.id,t[2]=j,t[3]=n,t[4]=o,t[5]=a,t[6]=r,t[7]=x,t[8]=v,t[9]=h,t[10]=f,t[11]=y,t[12]=c}else x=t[7],v=t[8],h=t[9],f=t[10],y=t[11],c=t[12];let d;t[48]!==x||t[49]!==h?(d=s.jsx(x,{children:h}),t[48]=x,t[49]=h,t[50]=d):d=t[50];let g;t[51]!==v||t[52]!==f||t[53]!==d?(g=s.jsx(v,{title:f,children:d}),t[51]=v,t[52]=f,t[53]=d,t[54]=g):g=t[54];let u;return t[55]!==y||t[56]!==c||t[57]!==g?(u=s.jsxs(s.Fragment,{children:[y,c,g]}),t[55]=y,t[56]=c,t[57]=g,t[58]=u):u=t[58],u}function ze(){}function Ee(){const t=D.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ye,{className:"h-64 w-full"}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(le,{fallback:$e,children:s.jsx(K.Suspense,{fallback:e,children:s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Pe,{children:[s.jsx(G.Title,{children:"Store"}),s.jsx(Te,{})]})})})})})}),t[1]=o):o=t[1],o}function $e(t){const{error:e}=t;return s.jsx(ke,{error:e??new Error("Failed to load store settings")})}function ut(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Re,{capability:"registry:manage",area:"the store",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}export{ut as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B3NcP7G9.js","assets/index-RzCbz7G4.js","assets/index-ZbSNKPKh.css","assets/XCircle-F9-2oAiq.js","assets/CheckCircle-CREoH7p2.js","assets/Settings02-f8loRSef.js","assets/use-mcp-client-D3e9ceNa.js","assets/constants-B72Xmt_K.js","assets/auth-DKsARQye.js","assets/useInfiniteQuery-FvBo89pe.js","assets/use-infinite-scroll-CLzTjnPW.js","assets/studio-tools-D1WvthcJ.js","assets/badge-7J4kgEzC.js","assets/input-CmS4IhfL.js","assets/dropdown-menu-Q9JsQJsN.js","assets/Check-C6rOtSdY.js","assets/ChevronRight-CvPpz1Nq.js","assets/Circle-ow_NDQHR.js","assets/table-Rcs576gh.js","assets/toggle-group-DPk7hBEB.js","assets/use-view-mode-B8ZvyTJu.js","assets/use-mobile-BD37jY8Y.js","assets/DotsVertical-CB7QN8Ws.js","assets/FilterLines-eP80xxCy.js","assets/Globe01-3_GHOe2E.js","assets/SearchMd-BfevlctH.js","assets/dialog-VQoq6ED0.js","assets/X-CJDTMZdu.js","assets/AlertCircle-Ct7weZuE.js","assets/Upload01-bdtJr5BI.js","assets/alert-dialog-BglRhrg0.js","assets/card-DJEMjLyN.js","assets/Trash01-TYv08n93.js","assets/label-BRuRKPr0.js","assets/select-cLkB0xx3.js","assets/tooltip-D9y133qH.js","assets/ChevronDown-BfrTp1Ch.js","assets/ChevronUp-MSW-WrWs.js","assets/switch-DvI4Ivs6.js","assets/textarea-DfbK_YWl.js","assets/checkbox-BW3fb6zN.js","assets/Eye-C1XDNiGB.js","assets/LinkExternal01-BM0S_VFU.js","assets/use-copy-CC8l0MM4.js","assets/Copy01-DDhuzJaA.js","assets/Key01-BVXgUn29.js","assets/Plus-D9m58hN2.js","assets/mcp-oauth-C23-dwpq.js","assets/Play-Bv09TV2w.js"])))=>i.map(i=>d[i]);
2
+ import{c as m,b as n,e as c,j as t,i as p,r as l,aV as f}from"./index-RzCbz7G4.js";import{R as u}from"./require-capability-BwJAyhw_.js";import"./use-capability-BAJSmOR6.js";import"./access-gate-Yfi4ekhF.js";import"./capability-load-error-BM3-quVD.js";const g=l.lazy(()=>f(()=>import("./registry-layout-B3NcP7G9.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])));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(p,{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};
@@ -0,0 +1 @@
1
+ import{c,a1 as i}from"./index-RzCbz7G4.js";class l extends Error{constructor(r,s){super(r),this.status=s,this.name="StudioToolError"}status}async function u(o,r,s){const t=await fetch(`/api/${encodeURIComponent(o)}/tools/${encodeURIComponent(r)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s??{})});if(!t.ok){let e=`${r} failed (${t.status})`;try{const n=await t.json();n?.error&&(e=n.error)}catch{}throw new l(e,t.status)}return await t.json()}function p(){const o=c.c(5),{org:r}=i(),s=r.slug;let t;o[0]!==s?(t=(n,a)=>u(s,n,a),o[0]=s,o[1]=t):t=o[1];let e;return o[2]!==s||o[3]!==t?(e={orgSlug:s,call:t},o[2]=s,o[3]=t,o[4]=e):e=o[4],e}export{u as c,p as u};
@@ -1 +1 @@
1
- import{r as c,j as i,aL as C,aP as y,aO as T,aR as I,bE as M,bD as H,aN as z,c as A,l as g}from"./index-Dgf9uMoE.js";var m="Switch",[L]=z(m),[O,U]=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]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(O,{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:I(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=U(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 q="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const 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=q;function N(r){return r?"checked":"unchecked"}var D=E,$=R;function W(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(D,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
1
+ import{r as c,j as i,aM as C,aQ as y,aP as T,aS as I,bF as M,bE as H,aO as z,c as A,l as g}from"./index-RzCbz7G4.js";var m="Switch",[O]=z(m),[U,q]=O(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)),S=c.useRef(!1),x=p?l||!!p.closest("form"):!0,[f,N]=T({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":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),x&&(S.current=b.isPropagationStopped(),S.current||b.stopPropagation())})}),x&&i.jsx(_,{control:p,bubbles:!S.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":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var F="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const 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=F;function j(r){return r?"checked":"unchecked"}var L=E,$=R;function Q(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(L,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{Q as S};
@@ -1 +1 @@
1
- import{c,l as i,j as r}from"./index-Dgf9uMoE.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,f as d,m as e};
1
+ import{c,l as i,j as r}from"./index-RzCbz7G4.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,f as d,m as e};
@@ -1 +1 @@
1
- import{r as v,j as d,b3 as S,aL as p,aR as T,b4 as y,aN as k,aQ as M,aO as P,aS as F,b5 as V,b6 as D,c as x,l as g}from"./index-Dgf9uMoE.js";var m="Tabs",[G]=k(m,[y]),N=y(),[L,h]=G(m),w=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=M(i),[c,b]=P({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});w.displayName=m;var C="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(C,a),o=N(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=C;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=N(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(S,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=w,K=j,B=_,O=A;function H(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(O,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,H as a,J as b,Q as c};
1
+ import{r as v,j as d,b4 as M,aM as p,aS as T,b5 as y,aO as P,aR as S,aP as k,aT as F,b6 as V,b7 as D,c as x,l as g}from"./index-RzCbz7G4.js";var m="Tabs",[G]=P(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=S(i),[c,b]=k({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(M,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,O=A;function H(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(O,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,H as a,Q as b,J as c};
@@ -1 +1 @@
1
- import{c as o,l,j as n}from"./index-Dgf9uMoE.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
1
+ import{c as o,l,j as n}from"./index-RzCbz7G4.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
@@ -1 +1 @@
1
- import{r as x,aO as b,j as c,aL as m,aR as k,aJ as p,b3 as M,b4 as T,aQ as S,b5 as A,aN as F,by as $,c as P,l as C}from"./index-Dgf9uMoE.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(O,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),O=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});h.displayName=v;var[B,L]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(B,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=L(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),H=h,J=N;const Q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function K(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(Q({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(J,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,q as a};
1
+ import{r as x,aP as b,j as c,aM as m,aS as k,aK as p,b4 as M,b5 as T,aR as S,b6 as A,aO as F,bz as $,c as P,l as C}from"./index-RzCbz7G4.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),z=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(O,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[I,R]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...r,ref:e})})}),O=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(I,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...r,ref:e})})});h.displayName=v;var[B,H]=w(v),y=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=z(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(B,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=R(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=z(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=R(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),K=h,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function J(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(K,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,J as a};
@@ -1 +1 @@
1
- import{c as d,l as f,j as b}from"./index-Dgf9uMoE.js";function x(l){const e=d.c(14);let n,t,s,o,r;e[0]!==l?({active:n,className:t,ref:o,type:r,...s}=l,e[0]=l,e[1]=n,e[2]=t,e[3]=s,e[4]=o,e[5]=r):(n=e[1],t=e[2],s=e[3],o=e[4],r=e[5]);const a=r===void 0?"button":r,u=n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let i;e[6]!==t||e[7]!==u?(i=f("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",u,t),e[6]=t,e[7]=u,e[8]=i):i=e[8];let c;return e[9]!==s||e[10]!==o||e[11]!==i||e[12]!==a?(c=b.jsx("button",{ref:o,type:a,className:i,...s}),e[9]=s,e[10]=o,e[11]=i,e[12]=a,e[13]=c):c=e[13],c}export{x as T};
1
+ import{c as d,l as f,j as b}from"./index-RzCbz7G4.js";function x(l){const e=d.c(14);let n,t,s,o,r;e[0]!==l?({active:n,className:t,ref:o,type:r,...s}=l,e[0]=l,e[1]=n,e[2]=t,e[3]=s,e[4]=o,e[5]=r):(n=e[1],t=e[2],s=e[3],o=e[4],r=e[5]);const a=r===void 0?"button":r,u=n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let i;e[6]!==t||e[7]!==u?(i=f("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",u,t),e[6]=t,e[7]=u,e[8]=i):i=e[8];let c;return e[9]!==s||e[10]!==o||e[11]!==i||e[12]!==a?(c=b.jsx("button",{ref:o,type:a,className:i,...s}),e[9]=s,e[10]=o,e[11]=i,e[12]=a,e[13]=c):c=e[13],c}export{x as T};
@@ -1 +1 @@
1
- import{c,r as m,j as r,l as x,e as $,ap as h,a6 as k,Z as N,_ as C}from"./index-Dgf9uMoE.js";const T=m.createContext(null);function u(){const t=m.use(T);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function p(t){const e=c.c(8),{children:s}=t,[l,o]=m.useState(null),[n,a]=m.useState(null),[f,E]=m.useState(null),[b,S]=m.useState(null);let g;e[0]!==f||e[1]!==b||e[2]!==n||e[3]!==l?(g={togglesEl:l,setTogglesEl:o,tabsEl:n,setTabsEl:a,centerEl:f,setCenterEl:E,rightEl:b,setRightEl:S},e[0]=f,e[1]=b,e[2]=n,e[3]=l,e[4]=g):g=e[4];let d;return e[5]!==s||e[6]!==g?(d=r.jsx(T,{value:g,children:s}),e[5]=s,e[6]=g,e[7]=d):d=e[7],d}function i(t){const e=c.c(2),{children:s}=t;let l;return e[0]!==s?(l=r.jsx(p,{children:r.jsx("div",{className:"flex flex-col h-full min-h-0",children:s})}),e[0]=s,e[1]=l):l=e[1],l}function L(t){const e=c.c(10);let s,l,o;e[0]!==t?({children:s,className:l,...o}=t,e[0]=t,e[1]=s,e[2]=l,e[3]=o):(s=e[1],l=e[2],o=e[3]);let n;e[4]!==l?(n=x("app-titlebar wco-drag relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 pt-0.25 h-12 bg-sidebar",l),e[4]=l,e[5]=n):n=e[5];let a;return e[6]!==s||e[7]!==o||e[8]!==n?(a=r.jsx("div",{className:n,...o,children:s}),e[6]=s,e[7]=o,e[8]=n,e[9]=a):a=e[9],a}function v(t){const e=c.c(2),{children:s}=t;let l;return e[0]!==s?(l=r.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:s}),e[0]=s,e[1]=l):l=e[1],l}function y(t){const e=c.c(2),{children:s}=t;let l;return e[0]!==s?(l=r.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:s}),e[0]=s,e[1]=l):l=e[1],l}function R(){const t=c.c(7),s=N().logo??C,l=typeof s=="string"?s:s.light,o=typeof s=="string"?s:s.dark;let n;t[0]!==l?(n=r.jsx("img",{src:l,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=l,t[1]=n):n=t[1];let a;t[2]!==o?(a=r.jsx("img",{src:o,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=o,t[3]=a):a=t[3];let f;return t[4]!==n||t[5]!==a?(f=r.jsxs("span",{className:"wco-hide flex items-center shrink-0 px-2",children:[n,a]}),t[4]=n,t[5]=a,t[6]=f):f=t[6],f}function j(){const t=c.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(m.Suspense,{fallback:r.jsx("span",{className:"wco-hide shrink-0 size-6 mx-2"}),children:r.jsx(R,{})}),t[0]=e):e=t[0],e}function w(){const t=c.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:s}=$(e);let l;t[1]!==s?(l={org:s},t[1]=s,t[2]=l):l=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(j,{}),t[3]=o):o=t[3];let n;return t[4]!==l?(n=r.jsx(k,{to:"/$org",params:l,"aria-label":"Back to home",title:"Back to home",className:"wco-no-drag flex items-center shrink-0 cursor-pointer pl-1",children:o}),t[4]=l,t[5]=n):n=t[5],n}function P(){const t=c.c(2),{setCenterEl:e}=u();let s;return t[0]!==e?(s=r.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=s):s=t[1],s}function _(t){const e=c.c(3),{children:s}=t,{centerEl:l}=u();if(!l)return null;let o;return e[0]!==l||e[1]!==s?(o=h.createPortal(s,l),e[0]=l,e[1]=s,e[2]=o):o=e[2],o}function z(t){const e=c.c(5),{className:s}=t,{setTabsEl:l}=u();let o;e[0]!==s?(o=x("shrink-0 flex items-center",s),e[0]=s,e[1]=o):o=e[1];let n;return e[2]!==l||e[3]!==o?(n=r.jsx("div",{ref:l,className:o}),e[2]=l,e[3]=o,e[4]=n):n=e[4],n}function B(t){const e=c.c(3),{children:s}=t,{tabsEl:l}=u();if(!l)return null;let o;return e[0]!==s||e[1]!==l?(o=h.createPortal(s,l),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function D(t){const e=c.c(5),{className:s}=t,{setTogglesEl:l}=u();let o;e[0]!==s?(o=x("contents",s),e[0]=s,e[1]=o):o=e[1];let n;return e[2]!==l||e[3]!==o?(n=r.jsx("div",{ref:l,className:o}),e[2]=l,e[3]=o,e[4]=n):n=e[4],n}function H(t){const e=c.c(3),{children:s}=t,{togglesEl:l}=u();if(!l)return null;let o;return e[0]!==s||e[1]!==l?(o=h.createPortal(s,l),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function I(){const t=c.c(2),{setRightEl:e}=u();let s;return t[0]!==e?(s=r.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=s):s=t[1],s}function O(t){const e=c.c(3),{children:s}=t,{rightEl:l}=u();if(!l)return null;let o;return e[0]!==s||e[1]!==l?(o=h.createPortal(s,l),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}i.Provider=p;i.Header=L;i.LeftColumn=v;i.RightColumn=y;i.Logo=j;i.LogoLink=w;i.CenterSlot=P;i.Center=_;i.TabsSlot=z;i.Tabs=B;i.TogglesSlot=D;i.Toggles=H;i.RightSlot=I;i.Right=O;export{i as T};
1
+ import{c,r as m,j as r,l as x,e as S,aq as h,L as k,$ as N,a0 as L}from"./index-RzCbz7G4.js";const T=m.createContext(null);function u(){const t=m.use(T);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function p(t){const e=c.c(8),{children:s}=t,[l,o]=m.useState(null),[n,a]=m.useState(null),[f,E]=m.useState(null),[b,$]=m.useState(null);let g;e[0]!==f||e[1]!==b||e[2]!==n||e[3]!==l?(g={togglesEl:l,setTogglesEl:o,tabsEl:n,setTabsEl:a,centerEl:f,setCenterEl:E,rightEl:b,setRightEl:$},e[0]=f,e[1]=b,e[2]=n,e[3]=l,e[4]=g):g=e[4];let d;return e[5]!==s||e[6]!==g?(d=r.jsx(T,{value:g,children:s}),e[5]=s,e[6]=g,e[7]=d):d=e[7],d}function i(t){const e=c.c(2),{children:s}=t;let l;return e[0]!==s?(l=r.jsx(p,{children:r.jsx("div",{className:"flex flex-col h-full min-h-0",children:s})}),e[0]=s,e[1]=l):l=e[1],l}function C(t){const e=c.c(10);let s,l,o;e[0]!==t?({children:s,className:l,...o}=t,e[0]=t,e[1]=s,e[2]=l,e[3]=o):(s=e[1],l=e[2],o=e[3]);let n;e[4]!==l?(n=x("app-titlebar wco-drag relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 pt-0.25 h-12 bg-sidebar",l),e[4]=l,e[5]=n):n=e[5];let a;return e[6]!==s||e[7]!==o||e[8]!==n?(a=r.jsx("div",{className:n,...o,children:s}),e[6]=s,e[7]=o,e[8]=n,e[9]=a):a=e[9],a}function v(t){const e=c.c(2),{children:s}=t;let l;return e[0]!==s?(l=r.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:s}),e[0]=s,e[1]=l):l=e[1],l}function y(t){const e=c.c(2),{children:s}=t;let l;return e[0]!==s?(l=r.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:s}),e[0]=s,e[1]=l):l=e[1],l}function R(){const t=c.c(7),s=N().logo??L,l=typeof s=="string"?s:s.light,o=typeof s=="string"?s:s.dark;let n;t[0]!==l?(n=r.jsx("img",{src:l,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=l,t[1]=n):n=t[1];let a;t[2]!==o?(a=r.jsx("img",{src:o,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=o,t[3]=a):a=t[3];let f;return t[4]!==n||t[5]!==a?(f=r.jsxs("span",{className:"wco-hide flex items-center shrink-0 px-2",children:[n,a]}),t[4]=n,t[5]=a,t[6]=f):f=t[6],f}function j(){const t=c.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(m.Suspense,{fallback:r.jsx("span",{className:"wco-hide shrink-0 size-6 mx-2"}),children:r.jsx(R,{})}),t[0]=e):e=t[0],e}function w(){const t=c.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:s}=S(e);let l;t[1]!==s?(l={org:s},t[1]=s,t[2]=l):l=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(j,{}),t[3]=o):o=t[3];let n;return t[4]!==l?(n=r.jsx(k,{to:"/$org",params:l,"aria-label":"Back to home",title:"Back to home",className:"wco-no-drag flex items-center shrink-0 cursor-pointer pl-1",children:o}),t[4]=l,t[5]=n):n=t[5],n}function P(){const t=c.c(2),{setCenterEl:e}=u();let s;return t[0]!==e?(s=r.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=s):s=t[1],s}function _(t){const e=c.c(3),{children:s}=t,{centerEl:l}=u();if(!l)return null;let o;return e[0]!==l||e[1]!==s?(o=h.createPortal(s,l),e[0]=l,e[1]=s,e[2]=o):o=e[2],o}function z(t){const e=c.c(5),{className:s}=t,{setTabsEl:l}=u();let o;e[0]!==s?(o=x("shrink-0 flex items-center",s),e[0]=s,e[1]=o):o=e[1];let n;return e[2]!==l||e[3]!==o?(n=r.jsx("div",{ref:l,className:o}),e[2]=l,e[3]=o,e[4]=n):n=e[4],n}function B(t){const e=c.c(3),{children:s}=t,{tabsEl:l}=u();if(!l)return null;let o;return e[0]!==s||e[1]!==l?(o=h.createPortal(s,l),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function D(t){const e=c.c(5),{className:s}=t,{setTogglesEl:l}=u();let o;e[0]!==s?(o=x("contents",s),e[0]=s,e[1]=o):o=e[1];let n;return e[2]!==l||e[3]!==o?(n=r.jsx("div",{ref:l,className:o}),e[2]=l,e[3]=o,e[4]=n):n=e[4],n}function H(t){const e=c.c(3),{children:s}=t,{togglesEl:l}=u();if(!l)return null;let o;return e[0]!==s||e[1]!==l?(o=h.createPortal(s,l),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function I(){const t=c.c(2),{setRightEl:e}=u();let s;return t[0]!==e?(s=r.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=s):s=t[1],s}function O(t){const e=c.c(3),{children:s}=t,{rightEl:l}=u();if(!l)return null;let o;return e[0]!==s||e[1]!==l?(o=h.createPortal(s,l),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}i.Provider=p;i.Header=C;i.LeftColumn=v;i.RightColumn=y;i.Logo=j;i.LogoLink=w;i.CenterSlot=P;i.Center=_;i.TabsSlot=z;i.Tabs=B;i.TogglesSlot=D;i.Toggles=H;i.RightSlot=I;i.Right=O;export{i as T};