decocms 4.150.21 → 4.150.23

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 (222) hide show
  1. package/dist/client/assets/{AlertCircle-BaA3X0Vc.js → AlertCircle-DcJb8iRa.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B4pcuH23.js → AreaChart-CnXGIMEc.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-Df4rbgne.js → ArrowUp-D0IVwHrj.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-fq20wgvL.js → ArrowUpRight-BDfLBQkt.js} +1 -1
  5. package/dist/client/assets/{Check-DdyKCl8O.js → Check-gjVkLyjz.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-IiUO6eKZ.js → CheckCircle-Brw1At1c.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-BSVV4L9A.js → ChevronDown-C6lfFArn.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CSgj0z6i.js → ChevronRight-D5LzDyDE.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-GR0-Yt4d.js → ChevronUp-eoLttylI.js} +1 -1
  10. package/dist/client/assets/{Copy01-Cv0Vuqbe.js → Copy01-xzQ4ogmG.js} +1 -1
  11. package/dist/client/assets/{CpuChip01-UMJdnf1a.js → CpuChip01-D3yBcvwh.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-OBlENp_a.js → DotsVertical-B81JSfTm.js} +1 -1
  13. package/dist/client/assets/{Eye-CkjEvMwH.js → Eye-Bbyfcz3U.js} +1 -1
  14. package/dist/client/assets/{FilterLines-Ca7W3tHb.js → FilterLines-g4cIObbX.js} +1 -1
  15. package/dist/client/assets/{HardDrive-B91rzidb.js → HardDrive-BAom8AR4.js} +1 -1
  16. package/dist/client/assets/{Key01-DVGzNfoY.js → Key01-3KmfaqoQ.js} +1 -1
  17. package/dist/client/assets/{LayoutLeft-Ciug-ep8.js → LayoutLeft-Cvh2z-Gq.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-CbfqV87q.js → LinkExternal01-CZSiz4Ic.js} +1 -1
  19. package/dist/client/assets/{LogOut01-B0JVxGo4.js → LogOut01-BV9cjMBN.js} +1 -1
  20. package/dist/client/assets/{Monitor01-CEdUOtdj.js → Monitor01-fc3ZhEXF.js} +1 -1
  21. package/dist/client/assets/{Palette-DgmLnO_l.js → Palette-B_TkkqR9.js} +1 -1
  22. package/dist/client/assets/{Play-DcSuTxiG.js → Play-DjHrAgT6.js} +1 -1
  23. package/dist/client/assets/{Plus-DUvbS-Yy.js → Plus-CikdUs38.js} +1 -1
  24. package/dist/client/assets/{SearchLg-CSWY8viA.js → SearchLg-JzU424qf.js} +1 -1
  25. package/dist/client/assets/{SearchMd-D0poZQV_.js → SearchMd-BOfFIRRH.js} +1 -1
  26. package/dist/client/assets/{Settings02-Sy5kNpSu.js → Settings02-CBDIwie_.js} +1 -1
  27. package/dist/client/assets/{Shield01-Bcql6hT4.js → Shield01-DefKd0oD.js} +1 -1
  28. package/dist/client/assets/{Star01-2mO5G0Xw.js → Star01-KVwXdwxj.js} +1 -1
  29. package/dist/client/assets/{Stars01-DqIThrOc.js → Stars01-C-4SXXn7.js} +1 -1
  30. package/dist/client/assets/{Stars02-cKtwD-F2.js → Stars02-BoANd6Kf.js} +1 -1
  31. package/dist/client/assets/{Sun-DsnsEGXF.js → Sun-HcIWpb0y.js} +1 -1
  32. package/dist/client/assets/{SwitchHorizontal01-BwAs_KcG.js → SwitchHorizontal01-DE5mPN2-.js} +1 -1
  33. package/dist/client/assets/{Tool01-D2fd-Mg5.js → Tool01-hFe2UsG9.js} +1 -1
  34. package/dist/client/assets/{Tool02-C17Y4pBP.js → Tool02-Byyk9Vee.js} +1 -1
  35. package/dist/client/assets/{Trash01-BiVOd2DS.js → Trash01-TtVBqMTN.js} +1 -1
  36. package/dist/client/assets/{TrendUp01-D1GkdBOV.js → TrendUp01-B2goMTVh.js} +1 -1
  37. package/dist/client/assets/{Upload01-k2Sn0RXQ.js → Upload01-CbyAB4oE.js} +1 -1
  38. package/dist/client/assets/{User01-cC3unvvx.js → User01-lSU_Ire_.js} +1 -1
  39. package/dist/client/assets/{Users01-BdNSg6CC.js → Users01-DwgtBHFJ.js} +1 -1
  40. package/dist/client/assets/{Users03-CqyDxwt6.js → Users03-Rq4uYvEF.js} +1 -1
  41. package/dist/client/assets/{X-Baqkpp1k.js → X-3PgyJoHo.js} +1 -1
  42. package/dist/client/assets/{XCircle-8Wd2-AR5.js → XCircle-j11o8nYG.js} +1 -1
  43. package/dist/client/assets/{XClose-CBFLmbVP.js → XClose-B5-EL_eq.js} +1 -1
  44. package/dist/client/assets/{Zap-C4qF8Cn-.js → Zap-YaHmPbs0.js} +1 -1
  45. package/dist/client/assets/{ZapSquare-BH7ie7zg.js → ZapSquare-BY3CWoiI.js} +1 -1
  46. package/dist/client/assets/{access-gate-CxXZPkIw.js → access-gate-BrRUOUYq.js} +1 -1
  47. package/dist/client/assets/{add-section-modal-C7ktQCug.js → add-section-modal-IHIfksTy.js} +1 -1
  48. package/dist/client/assets/{agent-icon-q4cV7U67.js → agent-icon-D5JzlR5X.js} +1 -1
  49. package/dist/client/assets/{agents-list-UZwnNOjT.js → agents-list-CaVLSFy6.js} +1 -1
  50. package/dist/client/assets/{ai-providers-Cput0kVL.js → ai-providers-BeddGROn.js} +1 -1
  51. package/dist/client/assets/{alert-DjeIAXMV.js → alert-DliKxZ_m.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-DIwINRgW.js → alert-dialog-BKskXtEG.js} +1 -1
  53. package/dist/client/assets/{app-editor-DdSH3pAD.js → app-editor-C2ptf1Dh.js} +1 -1
  54. package/dist/client/assets/{auth-catchall-6cph4qce.js → auth-catchall-CXtu3uVP.js} +1 -1
  55. package/dist/client/assets/{auth-entry-i0rNcujn.js → auth-entry-CqXrI1mX.js} +1 -1
  56. package/dist/client/assets/{auth-split-layout-3qPwGE8Z.js → auth-split-layout-C4pHBCKt.js} +1 -1
  57. package/dist/client/assets/{auth-FouChJbb.js → auth-t69bSn2K.js} +1 -1
  58. package/dist/client/assets/{authenticate-and-persist-oauth-Dx2DT3YD.js → authenticate-and-persist-oauth-DqnkEHz5.js} +1 -1
  59. package/dist/client/assets/{automation-list-row-Brn7k31U.js → automation-list-row-B3d7Fa8J.js} +1 -1
  60. package/dist/client/assets/{automation-runs-CP1cxXFo.js → automation-runs-Bwrqu-lm.js} +1 -1
  61. package/dist/client/assets/{automations-BlJndOBe.js → automations--79t6PzC.js} +1 -1
  62. package/dist/client/assets/{avatar-Du8HEobV.js → avatar-CPVdCa-q.js} +1 -1
  63. package/dist/client/assets/{badge-swCoKQnC.js → badge-PIDJwXZe.js} +1 -1
  64. package/dist/client/assets/{block-document-DiB0SOp5.js → block-document-D7e2Se-F.js} +1 -1
  65. package/dist/client/assets/{brand-context-C8l7XNKr.js → brand-context-BPLsCkvC.js} +1 -1
  66. package/dist/client/assets/{buckets-Bs0sTGAu.js → buckets-B1d9Lx14.js} +1 -1
  67. package/dist/client/assets/{bulk-category-panel-DE5pUVzi.js → bulk-category-panel-qFVuIjK-.js} +1 -1
  68. package/dist/client/assets/{calendar-BZcldUNV.js → calendar-BzP-iZOP.js} +1 -1
  69. package/dist/client/assets/{capability-load-error-CqwI-nav.js → capability-load-error-B7iCz6mL.js} +1 -1
  70. package/dist/client/assets/{card-9OUE6Bzl.js → card-rdaxkAgx.js} +1 -1
  71. package/dist/client/assets/{category-editor-JK7DojfI.js → category-editor-Dnug34di.js} +1 -1
  72. package/dist/client/assets/{chat-context-DYO1ODPB.js → chat-context-DUpUs54F.js} +1 -1
  73. package/dist/client/assets/{checkbox-Dd_rqLvT.js → checkbox-D-QJq7XZ.js} +1 -1
  74. package/dist/client/assets/{cli-auth-success-CFsjKhGa.js → cli-auth-success-BD5lLz9y.js} +1 -1
  75. package/dist/client/assets/{collection-detail-D0rtc2gf.js → collection-detail-wBVCEcj_.js} +1 -1
  76. package/dist/client/assets/{collection-display-button-iD10GGdW.js → collection-display-button-BCk9o0Bw.js} +1 -1
  77. package/dist/client/assets/{collection-search-5SFjfCC8.js → collection-search-lkrkOSW6.js} +1 -1
  78. package/dist/client/assets/{collection-table-wrapper-fW-dsmLE.js → collection-table-wrapper-C8UgE-LV.js} +1 -1
  79. package/dist/client/assets/{collection-tabs-DnykrgWW.js → collection-tabs-CTE8Yg6C.js} +1 -1
  80. package/dist/client/assets/{command-CDVbjOi5.js → command-D9ijNPQj.js} +1 -1
  81. package/dist/client/assets/{commerce-onboarding-CAOuADZ6.js → commerce-onboarding-Dqki5bhb.js} +1 -1
  82. package/dist/client/assets/{companions-core-6m5dy3es.js → companions-core-BQihQDwO.js} +1 -1
  83. package/dist/client/assets/{connect-B_K53Vaa.js → connect-CIafENMH.js} +1 -1
  84. package/dist/client/assets/{connection-DhlrJlFw.js → connection-D8Dv76YE.js} +1 -1
  85. package/dist/client/assets/{connection-card-CzF-xjYn.js → connection-card-B28rU1ux.js} +1 -1
  86. package/dist/client/assets/{connection-detail-DmWTCewb.js → connection-detail-BMNykvoh.js} +1 -1
  87. package/dist/client/assets/{connection-form-helpers-DRviH-Au.js → connection-form-helpers-LdFIzzLF.js} +1 -1
  88. package/dist/client/assets/{connections-DGvaZBx3.js → connections-CbFZ_fyr.js} +1 -1
  89. package/dist/client/assets/{decopilot-sse-pool-BXMXu1gQ.js → decopilot-sse-pool-6EUNiAy6.js} +1 -1
  90. package/dist/client/assets/{dialog-C82H2S70.js → dialog-Ezhjz9E0.js} +1 -1
  91. package/dist/client/assets/{domain-settings-DPn_9rd3.js → domain-settings-DrRRmNHM.js} +1 -1
  92. package/dist/client/assets/{drawer-lnIGl-vb.js → drawer-2Y1dMuWR.js} +1 -1
  93. package/dist/client/assets/{dropdown-menu-CRGAwBji.js → dropdown-menu-BmsikUlK.js} +1 -1
  94. package/dist/client/assets/{empty-state-BKzUesA7.js → empty-state-DEooU27n.js} +1 -1
  95. package/dist/client/assets/{extract-connection-data-B9TIJ0UC.js → extract-connection-data-DNA7o6q8.js} +1 -1
  96. package/dist/client/assets/{file-explorer-tNI79jXo.js → file-explorer-D0PiN9vT.js} +1 -1
  97. package/dist/client/assets/{form-DAiRK0vx.js → form-CdwOvuuM.js} +1 -1
  98. package/dist/client/assets/{general-CXtIEOrf.js → general-B8KMAgiV.js} +1 -1
  99. package/dist/client/assets/{github-repo-picker-DUNQ1oJW.js → github-repo-picker-DyeCKBgn.js} +1 -1
  100. package/dist/client/assets/{hooks-Bom1QoTc.js → hooks-DUfbKzwY.js} +1 -1
  101. package/dist/client/assets/{index-2KxPRjw5.js → index-30J4z2dD.js} +4 -4
  102. package/dist/client/assets/{index-D7cNsGmf.js → index-BE_dAky8.js} +3 -3
  103. package/dist/client/assets/{index-oBYlsJ_o.js → index-BH_MYqNK.js} +1 -1
  104. package/dist/client/assets/{index-BDQ6Ogmu.js → index-C0-pfybn.js} +5 -5
  105. package/dist/client/assets/{index-C_5SQGG6.js → index-CJmDrukF.js} +1 -1
  106. package/dist/client/assets/{index-Dv8k1EHh.js → index-CT4vVVkh.js} +1 -1
  107. package/dist/client/assets/{index-Df7LGqDK.js → index-CTHVCKuU.js} +1 -1
  108. package/dist/client/assets/{index-C-JAJ-o5.js → index-D5lX6giL.js} +1 -1
  109. package/dist/client/assets/{index-Z4CG7jJp.js → index-D97fya3E.js} +1 -1
  110. package/dist/client/assets/{index-DK8HHLRp.js → index-DsC6nOfN.js} +1 -1
  111. package/dist/client/assets/{index-redirect-Cj-NIgvU.js → index-redirect-C59786pk.js} +1 -1
  112. package/dist/client/assets/{index-B_kqSbsO.js → index-wU-cy7bZ.js} +1 -1
  113. package/dist/client/assets/{input-BAuCATqg.js → input-DO6f6Oyi.js} +1 -1
  114. package/dist/client/assets/{integration-icon-DKBuU8Fr.js → integration-icon-gnw4DLPa.js} +1 -1
  115. package/dist/client/assets/{invite-member-dialog-BiHY2r7m.js → invite-member-dialog-BptogSTb.js} +1 -1
  116. package/dist/client/assets/{label-onkw7wrh.js → label-BOL4d07L.js} +1 -1
  117. package/dist/client/assets/{layout-D8O9_Poo.js → layout-B3JKz_lV.js} +1 -1
  118. package/dist/client/assets/{login-B0j1yr6w.js → login-BtmJvFnQ.js} +1 -1
  119. package/dist/client/assets/{mcp-oauth-95IH3VKT.js → mcp-oauth-CxX_EpGC.js} +1 -1
  120. package/dist/client/assets/{members-Y7A-UiF5.js → members-CbR6NGyc.js} +1 -1
  121. package/dist/client/assets/{monaco-editor-CSUtCvVX.js → monaco-editor-DRxJlsld.js} +1 -1
  122. package/dist/client/assets/{monitoring-stats-row-Dcug_wR7.js → monitoring-stats-row-DxMqg_RE.js} +1 -1
  123. package/dist/client/assets/{multi-select-C68tqs9V.js → multi-select-Ds7z77R1.js} +1 -1
  124. package/dist/client/assets/{oauth-callback-ai-provider-C0UAY-58.js → oauth-callback-ai-provider-D3wpalZl.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-CqH1tIve.js → oauth-callback-o14AOSPq.js} +1 -1
  126. package/dist/client/assets/{onboarding-2ZJYmqTH.js → onboarding-C1H2Rzr-.js} +1 -1
  127. package/dist/client/assets/{org-layout-qZcaYBLo.js → org-layout-CYKFkwe2.js} +1 -1
  128. package/dist/client/assets/{organization-choice-CduZOMP9.js → organization-choice-CwtI_hHl.js} +1 -1
  129. package/dist/client/assets/{orgs-DU0BEJAc.js → orgs-DU7XL6NJ.js} +1 -1
  130. package/dist/client/assets/{page-seo-form-nxKDUI-6.js → page-seo-form-CB-OJgf8.js} +1 -1
  131. package/dist/client/assets/{popover-x1qHvmwD.js → popover-ddNYtuzN.js} +1 -1
  132. package/dist/client/assets/{post-editor-BhfI7Odx.js → post-editor-pDG0QWkr.js} +1 -1
  133. package/dist/client/assets/{primitives-DITXbj-2.js → primitives-CgsmqPQU.js} +1 -1
  134. package/dist/client/assets/{profile-Dl3k4wub.js → profile-D6QujN3h.js} +1 -1
  135. package/dist/client/assets/project-app-view-EqdJwELN.js +1 -0
  136. package/dist/client/assets/record-editor-FwZf9H_x.js +1 -0
  137. package/dist/client/assets/{redirect-editor-BamLe0Vb.js → redirect-editor-DjloRUnO.js} +1 -1
  138. package/dist/client/assets/{registry-layout-Cfgh3Q9S.js → registry-layout-CoT2siHJ.js} +1 -1
  139. package/dist/client/assets/registry-o-K-mNuJ.js +2 -0
  140. package/dist/client/assets/{reports-2omVoMUm.js → reports-CbBUMCyA.js} +1 -1
  141. package/dist/client/assets/{require-capability-B1pg4EtO.js → require-capability-D9owsYJv.js} +1 -1
  142. package/dist/client/assets/{required-auth-layout-wB2bMMGI.js → required-auth-layout-C0fEZd67.js} +1 -1
  143. package/dist/client/assets/{reset-password-BmxFRY37.js → reset-password-CG1TeRN5.js} +1 -1
  144. package/dist/client/assets/{roles-ClU1umGx.js → roles-BttwbRxs.js} +1 -1
  145. package/dist/client/assets/{search-input-DtCL1YcZ.js → search-input-Ceaa5r9L.js} +1 -1
  146. package/dist/client/assets/{secrets-B-dmTgLw.js → secrets-QKqtq4bv.js} +1 -1
  147. package/dist/client/assets/{sections-editor-DqY5dzLX.js → sections-editor-Df2cLClj.js} +1 -1
  148. package/dist/client/assets/{select-DfQiZ-4J.js → select-DHyC2wGe.js} +1 -1
  149. package/dist/client/assets/select-model-C26oRqlD.js +4 -0
  150. package/dist/client/assets/{self-tool-result-BCgUr0ik.js → self-tool-result-C28rj1Ae.js} +1 -1
  151. package/dist/client/assets/{seo-editor-CEUCMyKF.js → seo-editor-S5ZqoAxb.js} +1 -1
  152. package/dist/client/assets/{settings-layout-DJLSOlbv.js → settings-layout-DI56dbNY.js} +1 -1
  153. package/dist/client/assets/{settings-section-BaFcIjo5.js → settings-section-BgDF_9yt.js} +1 -1
  154. package/dist/client/assets/{shell-controls-DIMDYHkk.js → shell-controls-BhFgVo2Q.js} +1 -1
  155. package/dist/client/assets/{shell-layout-B56j-p5N.js → shell-layout-D-c2X1KV.js} +1 -1
  156. package/dist/client/assets/{sidebar-DpVJgBAa.js → sidebar-Cwhg81Iz.js} +1 -1
  157. package/dist/client/assets/{skeleton-BtiEyhAl.js → skeleton-I0ZeK4UC.js} +1 -1
  158. package/dist/client/assets/{spinner-DPfrt4Tp.js → spinner-mEqeXw5u.js} +1 -1
  159. package/dist/client/assets/{sso-CICOFYfX.js → sso-Bq8zylip.js} +1 -1
  160. package/dist/client/assets/{store-BJgQ6scG.js → store-F-pcSCHR.js} +1 -1
  161. package/dist/client/assets/store-registry-CfpNP5E9.js +2 -0
  162. package/dist/client/assets/{studio-tools-CTJuN7Yy.js → studio-tools-kQ3NEEWO.js} +1 -1
  163. package/dist/client/assets/{switch-DIwoxI1y.js → switch-BRa8kkrS.js} +1 -1
  164. package/dist/client/assets/{tab-id-DJIms9m1.js → tab-id-C4bMCjr3.js} +1 -1
  165. package/dist/client/assets/{table-BbRTH9fF.js → table-x0GONNLh.js} +1 -1
  166. package/dist/client/assets/{tabs-DKyQ4Qe1.js → tabs-Bq81Vyjl.js} +1 -1
  167. package/dist/client/assets/{textarea-Y242n44c.js → textarea-CUAzWR5L.js} +1 -1
  168. package/dist/client/assets/{toggle-group-BBsmjOfV.js → toggle-group-Gmqz3gDK.js} +1 -1
  169. package/dist/client/assets/{toolbar-BaZp82JP.js → toolbar-BkBl6JIj.js} +1 -1
  170. package/dist/client/assets/{tooltip-CEu_we5y.js → tooltip-B-SCkbF9.js} +1 -1
  171. package/dist/client/assets/{use-ai-providers-B2nAOoUO.js → use-ai-providers-DiMxVRip.js} +1 -1
  172. package/dist/client/assets/{use-automations-irLGHKpI.js → use-automations-XL_0RJHM.js} +1 -1
  173. package/dist/client/assets/{use-autosave-BAjK3u8R.js → use-autosave-Hi4rlXng.js} +1 -1
  174. package/dist/client/assets/{use-capability-Y4a4cK2y.js → use-capability-BtPReSHt.js} +1 -1
  175. package/dist/client/assets/{use-clock-tick-kQx_nmDK.js → use-clock-tick-DXfDu1U2.js} +1 -1
  176. package/dist/client/assets/{use-connection-CvBcj0iA.js → use-connection-D0ep6AoQ.js} +1 -1
  177. package/dist/client/assets/{use-copy-POYUhIaM.js → use-copy-BvxfdX6N.js} +1 -1
  178. package/dist/client/assets/{use-create-virtual-mcp-Df8fpCi4.js → use-create-virtual-mcp-DgvhUI5T.js} +1 -1
  179. package/dist/client/assets/{use-debounced-autosave-EvVOUA6S.js → use-debounced-autosave-CHhWSqXz.js} +1 -1
  180. package/dist/client/assets/{use-debounced-value-IOz7dnNR.js → use-debounced-value-C8ryVVpy.js} +1 -1
  181. package/dist/client/assets/{use-deco-credits-CBOWsaT-.js → use-deco-credits-D_UVlDt_.js} +1 -1
  182. package/dist/client/assets/{use-decopilot-events-Dc8-pFMU.js → use-decopilot-events-BnwcV4U8.js} +1 -1
  183. package/dist/client/assets/{use-delete-connection-CxX7cCR_.js → use-delete-connection-CphOcDpT.js} +1 -1
  184. package/dist/client/assets/{use-deployment-admin-ucDRDdNR.js → use-deployment-admin-jnxGa9l6.js} +1 -1
  185. package/dist/client/assets/{use-file-configs-BsCj6gUu.js → use-file-configs-DwBVeXP6.js} +1 -1
  186. package/dist/client/assets/{use-infinite-scroll-ccrh4_KW.js → use-infinite-scroll-DGDKOGPe.js} +1 -1
  187. package/dist/client/assets/{use-join-requests-DjYbXyL8.js → use-join-requests-C22v4g-F.js} +1 -1
  188. package/dist/client/assets/{use-mcp-auth-status-vzmxIRHi.js → use-mcp-auth-status-CzVoDeIA.js} +1 -1
  189. package/dist/client/assets/{use-mcp-client-DRwUSZdO.js → use-mcp-client-BsWOvAzd.js} +1 -1
  190. package/dist/client/assets/{use-mcp-tools-PCSBjtNq.js → use-mcp-tools-C9hT_wdC.js} +1 -1
  191. package/dist/client/assets/{use-members-DjRi0Onl.js → use-members-DzQELg6H.js} +1 -1
  192. package/dist/client/assets/{use-mobile-CLE626Yq.js → use-mobile-DKlFMukO.js} +1 -1
  193. package/dist/client/assets/{use-navigate-to-agent-CXMG3HNZ.js → use-navigate-to-agent-39LPUcH9.js} +1 -1
  194. package/dist/client/assets/{use-org-auth-client-BxtVWNiI.js → use-org-auth-client-JYyEKX5R.js} +1 -1
  195. package/dist/client/assets/{use-org-sso-DBExuOVV.js → use-org-sso-CMGzDI_I.js} +1 -1
  196. package/dist/client/assets/{use-organization-roles-DFLLP3Qo.js → use-organization-roles-Ce_u9VNe.js} +1 -1
  197. package/dist/client/assets/{use-organization-settings-DKSNQ1_z.js → use-organization-settings-CJWrHwUl.js} +1 -1
  198. package/dist/client/assets/{use-registry-connections-BRZCHKHD.js → use-registry-connections-BnLvWUJS.js} +1 -1
  199. package/dist/client/assets/{use-secrets-DfGoccAw.js → use-secrets-D5BP08GP.js} +1 -1
  200. package/dist/client/assets/{use-status-sounds-DcgHuUFX.js → use-status-sounds-CP2AjcIU.js} +1 -1
  201. package/dist/client/assets/{use-tags-DRM6xsgU.js → use-tags-B4cYgssP.js} +1 -1
  202. package/dist/client/assets/{use-view-mode-DvgBYhz6.js → use-view-mode-DDu5UVga.js} +1 -1
  203. package/dist/client/assets/{use-virtual-mcp-D7SVi-2E.js → use-virtual-mcp-BWey1L5Y.js} +1 -1
  204. package/dist/client/assets/useInfiniteQuery-CvMEicTQ.js +1 -0
  205. package/dist/client/assets/{useQueries-DVb_HjzV.js → useQueries-CSD0nmBi.js} +1 -1
  206. package/dist/client/assets/{useRouterState-CJ97gzOK.js → useRouterState-Cxw9BBYF.js} +1 -1
  207. package/dist/client/assets/useSuspenseInfiniteQuery-CtTWf1s0.js +1 -0
  208. package/dist/client/assets/{users-CX6W_kiO.js → users-cdoSh0K6.js} +1 -1
  209. package/dist/client/assets/{variant-calendar-BSUlgs-W.js → variant-calendar-R7vv4L9Y.js} +1 -1
  210. package/dist/client/assets/{view-mode-toggle-DULJqLEB.js → view-mode-toggle-D8EW-zjw.js} +1 -1
  211. package/dist/client/index.html +1 -1
  212. package/dist/server/cli.js +178 -177
  213. package/dist/server/migrate.js +7 -7
  214. package/dist/server/server.js +145 -145
  215. package/package.json +1 -1
  216. package/dist/client/assets/project-app-view-CrBgtatz.js +0 -1
  217. package/dist/client/assets/record-editor-DUGdKTe8.js +0 -1
  218. package/dist/client/assets/registry-B4ci0gM-.js +0 -2
  219. package/dist/client/assets/select-model-Clf7Hlwn.js +0 -4
  220. package/dist/client/assets/store-registry-Di0pCo7I.js +0 -2
  221. package/dist/client/assets/useInfiniteQuery-BWd6o-wh.js +0 -1
  222. package/dist/client/assets/useSuspenseInfiniteQuery-DPyRMURT.js +0 -1
@@ -1 +1 @@
1
- import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-2KxPRjw5.js";import{i as ke}from"./ChevronRight-CSgj0z6i.js";import{a6 as fe}from"./agent-icon-q4cV7U67.js";import{n as xe}from"./automation-runs-CP1cxXFo.js";import{r as Ne,c as we,u as _e,a as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-nxKDUI-6.js";import{ab as ue,a3 as Ke}from"./index-BDQ6Ogmu.js";import{a as ye}from"./Tool01-D2fd-Mg5.js";import"./AlertCircle-BaA3X0Vc.js";import"./ArrowUp-Df4rbgne.js";import"./Settings02-Sy5kNpSu.js";import"./Tool02-C17Y4pBP.js";import"./XCircle-8Wd2-AR5.js";import"./ArrowUpRight-fq20wgvL.js";import"./TrendUp01-D1GkdBOV.js";import"./ZapSquare-BH7ie7zg.js";import"./Users03-CqyDxwt6.js";import"./CheckCircle-IiUO6eKZ.js";import"./Check-DdyKCl8O.js";import"./ChevronDown-BSVV4L9A.js";import"./ChevronUp-GR0-Yt4d.js";import"./DotsVertical-OBlENp_a.js";import"./Stars02-cKtwD-F2.js";import"./Copy01-Cv0Vuqbe.js";import"./CpuChip01-UMJdnf1a.js";import"./Eye-CkjEvMwH.js";import"./FilterLines-Ca7W3tHb.js";import"./Star01-2mO5G0Xw.js";import"./Palette-DgmLnO_l.js";import"./SwitchHorizontal01-BwAs_KcG.js";import"./HardDrive-B91rzidb.js";import"./Key01-DVGzNfoY.js";import"./LayoutLeft-Ciug-ep8.js";import"./LinkExternal01-CbfqV87q.js";import"./LogOut01-B0JVxGo4.js";import"./Monitor01-CEdUOtdj.js";import"./Sun-DsnsEGXF.js";import"./Play-DcSuTxiG.js";import"./Plus-DUvbS-Yy.js";import"./SearchLg-CSWY8viA.js";import"./SearchMd-D0poZQV_.js";import"./Shield01-Bcql6hT4.js";import"./Stars01-DqIThrOc.js";import"./Trash01-BiVOd2DS.js";import"./Upload01-k2Sn0RXQ.js";import"./User01-cC3unvvx.js";import"./Users01-BdNSg6CC.js";import"./XClose-CBFLmbVP.js";import"./X-Baqkpp1k.js";import"./Zap-C4qF8Cn-.js";import"./select-DfQiZ-4J.js";import"./tooltip-CEu_we5y.js";import"./useInfiniteQuery-BWd6o-wh.js";import"./use-infinite-scroll-ccrh4_KW.js";import"./use-connection-CvBcj0iA.js";import"./use-mcp-client-DRwUSZdO.js";import"./auth-FouChJbb.js";import"./use-virtual-mcp-D7SVi-2E.js";import"./card-9OUE6Bzl.js";import"./sidebar-DpVJgBAa.js";import"./use-mobile-CLE626Yq.js";import"./table-BbRTH9fF.js";import"./empty-state-BKzUesA7.js";import"./use-members-DjRi0Onl.js";import"./use-org-auth-client-BxtVWNiI.js";import"./use-clock-tick-kQx_nmDK.js";import"./use-automations-irLGHKpI.js";import"./studio-tools-CTJuN7Yy.js";import"./useSuspenseInfiniteQuery-DPyRMURT.js";import"./avatar-Du8HEobV.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-POYUhIaM.js";import"./dialog-C82H2S70.js";import"./tab-id-DJIms9m1.js";import"./hooks-Bom1QoTc.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BXMXu1gQ.js";import"./chat-context-DYO1ODPB.js";import"./use-ai-providers-B2nAOoUO.js";import"./use-decopilot-events-Dc8-pFMU.js";import"./use-organization-settings-DKSNQ1_z.js";import"./monaco-editor-CSUtCvVX.js";import"./spinner-DPfrt4Tp.js";import"./index-Dv8k1EHh.js";import"./calendar-BZcldUNV.js";import"./shell-layout-B56j-p5N.js";import"./required-auth-layout-wB2bMMGI.js";import"./use-org-sso-DBExuOVV.js";import"./integration-icon-DKBuU8Fr.js";import"./use-navigate-to-agent-CXMG3HNZ.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-B4pcuH23.js";import"./form-DAiRK0vx.js";import"./label-onkw7wrh.js";import"./input-BAuCATqg.js";import"./switch-DIwoxI1y.js";import"./drawer-lnIGl-vb.js";import"./collection-search-5SFjfCC8.js";import"./index-D7cNsGmf.js";import"./get-initials-D-f_fDFw.js";import"./popover-x1qHvmwD.js";import"./dropdown-menu-CRGAwBji.js";import"./github-repo-picker-DUNQ1oJW.js";import"./use-debounced-value-IOz7dnNR.js";import"./authenticate-and-persist-oauth-Dx2DT3YD.js";import"./mcp-oauth-95IH3VKT.js";import"./use-mcp-tools-PCSBjtNq.js";import"./extract-connection-data-B9TIJ0UC.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-C2RHf8fG.js";import"./use-tags-DRM6xsgU.js";import"./command-CDVbjOi5.js";import"./index-Z4CG7jJp.js";import"./companions-core-6m5dy3es.js";import"./tabs-DKyQ4Qe1.js";import"./toggle-group-BBsmjOfV.js";import"./use-deco-credits-CBOWsaT-.js";import"./alert-dialog-DIwINRgW.js";import"./toolbar-BaZp82JP.js";import"./skeleton-BtiEyhAl.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CzF-xjYn.js";import"./use-registry-connections-BRZCHKHD.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-Y242n44c.js";import"./connection-form-helpers-DRviH-Au.js";import"./collection-tabs-DnykrgWW.js";import"./badge-swCoKQnC.js";import"./select-model-Clf7Hlwn.js";import"./checkbox-Dd_rqLvT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BaFcIjo5.js";import"./use-is-desktop-app-BNujXJc_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DcgHuUFX.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-Y4a4cK2y.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-vzmxIRHi.js";import"./use-debounced-autosave-EvVOUA6S.js";import"./index-oBYlsJ_o.js";import"./search-input-DtCL1YcZ.js";import"./use-secrets-DfGoccAw.js";import"./useQueries-DVb_HjzV.js";import"./use-file-configs-BsCj6gUu.js";import"./automation-list-row-Brn7k31U.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,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 i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Ie(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Be(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function zi(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=we({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?_e(U)??void 0:void 0,E=S??be??h??{},F=c?Ee(E,c):null,K=F&&(!M||Pe(U))?Ke(F,s):null;let G;e[0]!==s?(G=Te(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let B;e[41]!==L||e[42]!==D?(B=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=B):B=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Re,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Ce,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==B||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[B,O]}),e[67]=B,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{zi as SeoEditor};
1
+ import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-30J4z2dD.js";import{i as ke}from"./ChevronRight-D5LzDyDE.js";import{a6 as fe}from"./agent-icon-D5JzlR5X.js";import{n as xe}from"./automation-runs-Bwrqu-lm.js";import{r as Ne,c as we,u as _e,a as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-CB-OJgf8.js";import{ab as ue,a3 as Ke}from"./index-C0-pfybn.js";import{a as ye}from"./Tool01-hFe2UsG9.js";import"./AlertCircle-DcJb8iRa.js";import"./ArrowUp-D0IVwHrj.js";import"./Settings02-CBDIwie_.js";import"./Tool02-Byyk9Vee.js";import"./XCircle-j11o8nYG.js";import"./ArrowUpRight-BDfLBQkt.js";import"./TrendUp01-B2goMTVh.js";import"./ZapSquare-BY3CWoiI.js";import"./Users03-Rq4uYvEF.js";import"./CheckCircle-Brw1At1c.js";import"./Check-gjVkLyjz.js";import"./ChevronDown-C6lfFArn.js";import"./ChevronUp-eoLttylI.js";import"./DotsVertical-B81JSfTm.js";import"./Stars02-BoANd6Kf.js";import"./Copy01-xzQ4ogmG.js";import"./CpuChip01-D3yBcvwh.js";import"./Eye-Bbyfcz3U.js";import"./FilterLines-g4cIObbX.js";import"./Star01-KVwXdwxj.js";import"./Palette-B_TkkqR9.js";import"./SwitchHorizontal01-DE5mPN2-.js";import"./HardDrive-BAom8AR4.js";import"./Key01-3KmfaqoQ.js";import"./LayoutLeft-Cvh2z-Gq.js";import"./LinkExternal01-CZSiz4Ic.js";import"./LogOut01-BV9cjMBN.js";import"./Monitor01-fc3ZhEXF.js";import"./Sun-HcIWpb0y.js";import"./Play-DjHrAgT6.js";import"./Plus-CikdUs38.js";import"./SearchLg-JzU424qf.js";import"./SearchMd-BOfFIRRH.js";import"./Shield01-DefKd0oD.js";import"./Stars01-C-4SXXn7.js";import"./Trash01-TtVBqMTN.js";import"./Upload01-CbyAB4oE.js";import"./User01-lSU_Ire_.js";import"./Users01-DwgtBHFJ.js";import"./XClose-B5-EL_eq.js";import"./X-3PgyJoHo.js";import"./Zap-YaHmPbs0.js";import"./select-DHyC2wGe.js";import"./tooltip-B-SCkbF9.js";import"./useInfiniteQuery-CvMEicTQ.js";import"./use-infinite-scroll-DGDKOGPe.js";import"./use-connection-D0ep6AoQ.js";import"./use-mcp-client-BsWOvAzd.js";import"./auth-t69bSn2K.js";import"./use-virtual-mcp-BWey1L5Y.js";import"./card-rdaxkAgx.js";import"./sidebar-Cwhg81Iz.js";import"./use-mobile-DKlFMukO.js";import"./table-x0GONNLh.js";import"./empty-state-DEooU27n.js";import"./use-members-DzQELg6H.js";import"./use-org-auth-client-JYyEKX5R.js";import"./use-clock-tick-DXfDu1U2.js";import"./use-automations-XL_0RJHM.js";import"./studio-tools-kQ3NEEWO.js";import"./useSuspenseInfiniteQuery-CtTWf1s0.js";import"./avatar-CPVdCa-q.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BvxfdX6N.js";import"./dialog-Ezhjz9E0.js";import"./tab-id-C4bMCjr3.js";import"./hooks-DUfbKzwY.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-6EUNiAy6.js";import"./chat-context-DUpUs54F.js";import"./use-ai-providers-DiMxVRip.js";import"./use-decopilot-events-BnwcV4U8.js";import"./use-organization-settings-CJWrHwUl.js";import"./monaco-editor-DRxJlsld.js";import"./spinner-mEqeXw5u.js";import"./index-CT4vVVkh.js";import"./calendar-BzP-iZOP.js";import"./shell-layout-D-c2X1KV.js";import"./required-auth-layout-C0fEZd67.js";import"./use-org-sso-CMGzDI_I.js";import"./integration-icon-gnw4DLPa.js";import"./use-navigate-to-agent-39LPUcH9.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CnXGIMEc.js";import"./form-CdwOvuuM.js";import"./label-BOL4d07L.js";import"./input-DO6f6Oyi.js";import"./switch-BRa8kkrS.js";import"./drawer-2Y1dMuWR.js";import"./collection-search-lkrkOSW6.js";import"./index-BE_dAky8.js";import"./get-initials-D-f_fDFw.js";import"./popover-ddNYtuzN.js";import"./dropdown-menu-BmsikUlK.js";import"./github-repo-picker-DyeCKBgn.js";import"./use-debounced-value-C8ryVVpy.js";import"./authenticate-and-persist-oauth-DqnkEHz5.js";import"./mcp-oauth-CxX_EpGC.js";import"./use-mcp-tools-C9hT_wdC.js";import"./extract-connection-data-DNA7o6q8.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-C2RHf8fG.js";import"./use-tags-B4cYgssP.js";import"./command-D9ijNPQj.js";import"./index-D97fya3E.js";import"./companions-core-BQihQDwO.js";import"./tabs-Bq81Vyjl.js";import"./toggle-group-Gmqz3gDK.js";import"./use-deco-credits-D_UVlDt_.js";import"./alert-dialog-BKskXtEG.js";import"./toolbar-BkBl6JIj.js";import"./skeleton-I0ZeK4UC.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-B28rU1ux.js";import"./use-registry-connections-BnLvWUJS.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CUAzWR5L.js";import"./connection-form-helpers-LdFIzzLF.js";import"./collection-tabs-CTE8Yg6C.js";import"./badge-PIDJwXZe.js";import"./select-model-C26oRqlD.js";import"./checkbox-D-QJq7XZ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BgDF_9yt.js";import"./use-is-desktop-app-BNujXJc_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CP2AjcIU.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-BtPReSHt.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-CzVoDeIA.js";import"./use-debounced-autosave-CHhWSqXz.js";import"./index-BH_MYqNK.js";import"./search-input-Ceaa5r9L.js";import"./use-secrets-D5BP08GP.js";import"./useQueries-CSD0nmBi.js";import"./use-file-configs-DwBVeXP6.js";import"./automation-list-row-B3d7Fa8J.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,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 i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Ie(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Be(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function zi(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=we({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?_e(U)??void 0:void 0,E=S??be??h??{},F=c?Ee(E,c):null,K=F&&(!M||Pe(U))?Ke(F,s):null;let G;e[0]!==s?(G=Te(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let B;e[41]!==L||e[42]!==D?(B=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=B):B=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Re,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Ce,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==B||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[B,O]}),e[67]=B,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{zi as SeoEditor};
@@ -1 +1 @@
1
- import{c as j,b as q,j as t,f as D,F as K,m as z,y as U,L as T,p as E,P as G,a as B,k as V,r as X,O as Y}from"./index-2KxPRjw5.js";import{u as Z}from"./useRouterState-CJ97gzOK.js";import{j as ee,k as se,l as te,S as M,a as O,b as L,d as I,c as R,g as ie,h as ne}from"./sidebar-DpVJgBAa.js";import{a as le}from"./index-oBYlsJ_o.js";import{n as re,a as oe,c as ae,b as ce}from"./ZapSquare-BH7ie7zg.js";import{t as me,a as A}from"./Users03-CqyDxwt6.js";import{i as fe}from"./CpuChip01-UMJdnf1a.js";import{i as de}from"./HardDrive-B91rzidb.js";import{i as xe}from"./Key01-DVGzNfoY.js";import{n as be}from"./LinkExternal01-CbfqV87q.js";import{i as F}from"./LogOut01-B0JVxGo4.js";import{i as ue}from"./Shield01-Bcql6hT4.js";import{s as ge}from"./User01-cC3unvvx.js";import{i as pe}from"./Zap-C4qF8Cn-.js";import{a as he}from"./use-capability-Y4a4cK2y.js";import{u as je}from"./use-join-requests-DjYbXyL8.js";import{u as H}from"./use-mobile-CLE626Yq.js";import{u as ye}from"./use-status-sounds-DcgHuUFX.js";import{a as _}from"./toolbar-BaZp82JP.js";import{S as _e,M as ve}from"./shell-controls-DIMDYHkk.js";import"./LayoutLeft-Ciug-ep8.js";import"./X-Baqkpp1k.js";import"./tooltip-CEu_we5y.js";import"./studio-tools-CTJuN7Yy.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-Dc8-pFMU.js";import"./decopilot-sse-pool-BXMXu1gQ.js";import"./backoff-CrEUbyZT.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=he(),a=je().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(me,{size:14}),e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(be,{size:14}),e[9]=f):f=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(re,{size:14}),e[10]=d):d=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(fe,{size:14}),e[11]=x):x=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(xe,{size:14}),e[12]=b):b=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(de,{size:14}),e[13]=g):g=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(oe,{size:14}),e[14]=p):p=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(A,{size:14}),e[15]=u):u=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(pe,{size:14}),e[16]=y):y=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ae,{size:14}),e[17]=h):h=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ce,{size:14}),e[18]=v):v=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(A,{size:14}),e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ue,{size:14}),e[20]=k):k=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(U,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ge,{size:14}),e[22]=$):$=e[22];const w=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:"Connect to clients",icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:b,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:g,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:p,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:u,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:y,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:h,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:v,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:S,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:k,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:N,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:$,to:"/$org/settings/profile"}]}];if(i||l){c=w;break e}r=w.map(P=>({...P,items:P.items.filter(C=>C.privilegedOnly?n:C.requires?n||o[C.requires]:!0)})).filter(Se)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Se(e){return e.items.length>0}function Q(e){const s=j.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function W(){const e=j.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=D(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:ke},e[1]=n):n=e[1];const i=Z(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ke(e){return e.location.pathname}function Ne(){const e=j.c(19),s=q(),o=J(),{org:n,isActive:i}=W();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(g,p)=>t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&t.jsx("p",{className:z("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:g.items.map(u=>t.jsx(I,{children:t.jsx(R,{asChild:!0,isActive:i(u.to),children:t.jsxs(T,{to:u.to,params:{org:n},onClick:()=>E("settings_nav_clicked",{section_key:u.key,group_key:g.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(Q,{icon:u.icon,badge:u.badge}),t.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},g.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:t.jsx(I,{children:t.jsxs(R,{onClick:$e,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.150.21"]})}),e[16]=d):d=e[16];let x;return e[17]!==f?(x=t.jsxs(ne,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=x):x=e[18],x}function $e(){E("signed_out",{source:"settings_sidebar"}),G(),B.signOut()}function ze(e){const s=j.c(21),{onClose:o}=e,n=q(),i=J(),{org:l,isActive:a}=W();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let p;s[5]!==a||s[6]!==o||s[7]!==l?(p=(u,y)=>t.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&t.jsx("p",{className:z("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",y>0&&"mt-3"),children:u.label}),u.items.map(h=>t.jsxs(T,{to:h.to,params:{org:l},onClick:o,className:z("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(h.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[t.jsx(Q,{icon:h.icon,badge:h.badge}),t.jsx("span",{className:"truncate",children:h.label})]},h.key))]},u.key),s[5]=a,s[6]=o,s[7]=l,s[8]=p):p=s[8],r=i.map(p),s[0]=i,s[1]=a,s[2]=o,s[3]=l,s[4]=r}else r=s[4];let c;s[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"h-px bg-border/50 my-2"}),s[9]=c):c=s[9];let m;s[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),s[10]=m):m=s[10];let f;s[11]!==n?(f=n("settings.nav.signOut"),s[11]=n,s[12]=f):f=s[12];let d;s[13]!==f?(d=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[c,t.jsxs("button",{type:"button",onClick:Ce,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[m,t.jsx("span",{className:"truncate",children:f})]})]}),s[13]=f,s[14]=d):d=s[14];let x;s[15]!==r||s[16]!==d?(x=t.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[r,d]}),s[15]=r,s[16]=d,s[17]=x):x=s[17];let b;s[18]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.150.21"]})}),s[18]=b):b=s[18];let g;return s[19]!==x?(g=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[x,b]}),s[19]=x,s[20]=g):g=s[20],g}function Ce(){G(),B.signOut()}function qe(){const e=j.c(4),s=H(),{org:o}=K();ye(o.slug);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(V,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(X.Suspense,{fallback:n,children:t.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:t.jsx(le,{value:"p-0",children:t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:t.jsx(Y,{})})})})}),e[1]=i):i=e[1];const l=i;if(s){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=r):r=e[2],r}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex-1 min-h-0 p-1",children:t.jsx("div",{className:z("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=a):a=e[3],a}function ls(){const e=j.c(21),s=H();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(_.LogoLink,{}),e[0]=o):o=e[0];let n;e[1]!==s?(n=s&&t.jsx(_e,{}),e[1]=s,e[2]=n):n=e[2];let i;e[3]!==n?(i=t.jsxs(_.LeftColumn,{children:[o,n]}),e[3]=n,e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_.CenterSlot,{}),e[5]=l):l=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_.RightColumn,{children:t.jsx("span",{})}),e[6]=a):a=e[6];let r;e[7]!==i?(r=t.jsxs(_.Header,{children:[i,l,a]}),e[7]=i,e[8]=r):r=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={"--sidebar-width-icon":"3.125rem"},e[9]=c):c=e[9];let m;e[10]!==s?(m=!s&&t.jsx(Ne,{}),e[10]=s,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ee,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:t.jsx(qe,{})}),e[12]=f):f=e[12];let d;e[13]!==m?(d=t.jsxs(se,{className:"flex-1 bg-sidebar min-h-0",style:c,children:[m,f]}),e[13]=m,e[14]=d):d=e[14];let x;e[15]!==s?(x=s&&t.jsx(ve,{renderSidebar:we}),e[15]=s,e[16]=x):x=e[16];let b;return e[17]!==x||e[18]!==r||e[19]!==d?(b=t.jsx(_.Provider,{children:t.jsx(te,{defaultOpen:!0,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[r,d,x]})})}),e[17]=x,e[18]=r,e[19]=d,e[20]=b):b=e[20],b}function we(e){const{onClose:s}=e;return t.jsx(ze,{onClose:s})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ls as default};
1
+ import{c as j,b as q,j as t,f as D,F as K,m as z,y as U,L as T,p as E,P as G,a as B,k as V,r as X,O as Y}from"./index-30J4z2dD.js";import{u as Z}from"./useRouterState-Cxw9BBYF.js";import{j as ee,k as se,l as te,S as M,a as O,b as L,d as I,c as R,g as ie,h as ne}from"./sidebar-Cwhg81Iz.js";import{a as le}from"./index-BH_MYqNK.js";import{n as re,a as oe,c as ae,b as ce}from"./ZapSquare-BY3CWoiI.js";import{t as me,a as A}from"./Users03-Rq4uYvEF.js";import{i as fe}from"./CpuChip01-D3yBcvwh.js";import{i as de}from"./HardDrive-BAom8AR4.js";import{i as xe}from"./Key01-3KmfaqoQ.js";import{n as be}from"./LinkExternal01-CZSiz4Ic.js";import{i as F}from"./LogOut01-BV9cjMBN.js";import{i as ue}from"./Shield01-DefKd0oD.js";import{s as ge}from"./User01-lSU_Ire_.js";import{i as pe}from"./Zap-YaHmPbs0.js";import{a as he}from"./use-capability-BtPReSHt.js";import{u as je}from"./use-join-requests-C22v4g-F.js";import{u as H}from"./use-mobile-DKlFMukO.js";import{u as ye}from"./use-status-sounds-CP2AjcIU.js";import{a as _}from"./toolbar-BkBl6JIj.js";import{S as _e,M as ve}from"./shell-controls-BhFgVo2Q.js";import"./LayoutLeft-Cvh2z-Gq.js";import"./X-3PgyJoHo.js";import"./tooltip-B-SCkbF9.js";import"./studio-tools-kQ3NEEWO.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-BnwcV4U8.js";import"./decopilot-sse-pool-6EUNiAy6.js";import"./backoff-CrEUbyZT.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=he(),a=je().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(me,{size:14}),e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(be,{size:14}),e[9]=f):f=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(re,{size:14}),e[10]=d):d=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(fe,{size:14}),e[11]=x):x=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(xe,{size:14}),e[12]=b):b=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(de,{size:14}),e[13]=g):g=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(oe,{size:14}),e[14]=p):p=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(A,{size:14}),e[15]=u):u=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(pe,{size:14}),e[16]=y):y=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ae,{size:14}),e[17]=h):h=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ce,{size:14}),e[18]=v):v=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(A,{size:14}),e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ue,{size:14}),e[20]=k):k=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(U,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ge,{size:14}),e[22]=$):$=e[22];const w=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:"Connect to clients",icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:b,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:g,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:p,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:u,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:y,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:h,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:v,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:S,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:k,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:N,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:$,to:"/$org/settings/profile"}]}];if(i||l){c=w;break e}r=w.map(P=>({...P,items:P.items.filter(C=>C.privilegedOnly?n:C.requires?n||o[C.requires]:!0)})).filter(Se)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Se(e){return e.items.length>0}function Q(e){const s=j.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function W(){const e=j.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=D(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:ke},e[1]=n):n=e[1];const i=Z(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ke(e){return e.location.pathname}function Ne(){const e=j.c(19),s=q(),o=J(),{org:n,isActive:i}=W();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(g,p)=>t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&t.jsx("p",{className:z("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:g.items.map(u=>t.jsx(I,{children:t.jsx(R,{asChild:!0,isActive:i(u.to),children:t.jsxs(T,{to:u.to,params:{org:n},onClick:()=>E("settings_nav_clicked",{section_key:u.key,group_key:g.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(Q,{icon:u.icon,badge:u.badge}),t.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},g.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:t.jsx(I,{children:t.jsxs(R,{onClick:$e,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.150.23"]})}),e[16]=d):d=e[16];let x;return e[17]!==f?(x=t.jsxs(ne,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=x):x=e[18],x}function $e(){E("signed_out",{source:"settings_sidebar"}),G(),B.signOut()}function ze(e){const s=j.c(21),{onClose:o}=e,n=q(),i=J(),{org:l,isActive:a}=W();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let p;s[5]!==a||s[6]!==o||s[7]!==l?(p=(u,y)=>t.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&t.jsx("p",{className:z("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",y>0&&"mt-3"),children:u.label}),u.items.map(h=>t.jsxs(T,{to:h.to,params:{org:l},onClick:o,className:z("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(h.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[t.jsx(Q,{icon:h.icon,badge:h.badge}),t.jsx("span",{className:"truncate",children:h.label})]},h.key))]},u.key),s[5]=a,s[6]=o,s[7]=l,s[8]=p):p=s[8],r=i.map(p),s[0]=i,s[1]=a,s[2]=o,s[3]=l,s[4]=r}else r=s[4];let c;s[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"h-px bg-border/50 my-2"}),s[9]=c):c=s[9];let m;s[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),s[10]=m):m=s[10];let f;s[11]!==n?(f=n("settings.nav.signOut"),s[11]=n,s[12]=f):f=s[12];let d;s[13]!==f?(d=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[c,t.jsxs("button",{type:"button",onClick:Ce,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[m,t.jsx("span",{className:"truncate",children:f})]})]}),s[13]=f,s[14]=d):d=s[14];let x;s[15]!==r||s[16]!==d?(x=t.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[r,d]}),s[15]=r,s[16]=d,s[17]=x):x=s[17];let b;s[18]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.150.23"]})}),s[18]=b):b=s[18];let g;return s[19]!==x?(g=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[x,b]}),s[19]=x,s[20]=g):g=s[20],g}function Ce(){G(),B.signOut()}function qe(){const e=j.c(4),s=H(),{org:o}=K();ye(o.slug);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(V,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(X.Suspense,{fallback:n,children:t.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:t.jsx(le,{value:"p-0",children:t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:t.jsx(Y,{})})})})}),e[1]=i):i=e[1];const l=i;if(s){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=r):r=e[2],r}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex-1 min-h-0 p-1",children:t.jsx("div",{className:z("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=a):a=e[3],a}function ls(){const e=j.c(21),s=H();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(_.LogoLink,{}),e[0]=o):o=e[0];let n;e[1]!==s?(n=s&&t.jsx(_e,{}),e[1]=s,e[2]=n):n=e[2];let i;e[3]!==n?(i=t.jsxs(_.LeftColumn,{children:[o,n]}),e[3]=n,e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_.CenterSlot,{}),e[5]=l):l=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_.RightColumn,{children:t.jsx("span",{})}),e[6]=a):a=e[6];let r;e[7]!==i?(r=t.jsxs(_.Header,{children:[i,l,a]}),e[7]=i,e[8]=r):r=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={"--sidebar-width-icon":"3.125rem"},e[9]=c):c=e[9];let m;e[10]!==s?(m=!s&&t.jsx(Ne,{}),e[10]=s,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ee,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:t.jsx(qe,{})}),e[12]=f):f=e[12];let d;e[13]!==m?(d=t.jsxs(se,{className:"flex-1 bg-sidebar min-h-0",style:c,children:[m,f]}),e[13]=m,e[14]=d):d=e[14];let x;e[15]!==s?(x=s&&t.jsx(ve,{renderSidebar:we}),e[15]=s,e[16]=x):x=e[16];let b;return e[17]!==x||e[18]!==r||e[19]!==d?(b=t.jsx(_.Provider,{children:t.jsx(te,{defaultOpen:!0,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[r,d,x]})})}),e[17]=x,e[18]=r,e[19]=d,e[20]=b):b=e[20],b}function we(e){const{onClose:s}=e;return t.jsx(ze,{onClose:s})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ls as default};
@@ -1 +1 @@
1
- import{c as v,m as N,j as r,r as S}from"./index-2KxPRjw5.js";import{C as w}from"./card-9OUE6Bzl.js";import{i as E}from"./ArrowUpRight-fq20wgvL.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
1
+ import{c as v,m as N,j as r,r as S}from"./index-30J4z2dD.js";import{C as w}from"./card-rdaxkAgx.js";import{i as E}from"./ArrowUpRight-BDfLBQkt.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
@@ -1 +1 @@
1
- import{c as p,b,j as m}from"./index-2KxPRjw5.js";import{u as d,m as h,p as S,q as x}from"./sidebar-DpVJgBAa.js";import{i as g}from"./LayoutLeft-Ciug-ep8.js";import{T as j}from"./toolbar-BaZp82JP.js";function B(u){const e=p.c(7),{className:l}=u,n=b(),{toggleSidebar:i}=d();let t;e[0]!==n?(t=n("layouts.shellControls.toggleSidebar"),e[0]=n,e[1]=t):t=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsx(g,{size:16}),e[2]=s):s=e[2];let o;return e[3]!==l||e[4]!==t||e[5]!==i?(o=m.jsx(j,{onClick:i,"aria-label":t,className:l,children:s}),e[3]=l,e[4]=t,e[5]=i,e[6]=o):o=e[6],o}function N(u){const e=p.c(16),{renderSidebar:l}=u,n=b(),{openMobile:i,setOpenMobile:t}=d();let s;e[0]!==n?(s=n("layouts.shellControls.navigationTitle"),e[0]=n,e[1]=s):s=e[1];let o;e[2]!==s?(o=m.jsx(h,{className:"sr-only",children:s}),e[2]=s,e[3]=o):o=e[3];let r;e[4]!==t?(r=()=>t(!1),e[4]=t,e[5]=r):r=e[5];let a;e[6]!==l||e[7]!==r?(a=l({onClose:r}),e[6]=l,e[7]=r,e[8]=a):a=e[8];let c;e[9]!==o||e[10]!==a?(c=m.jsxs(S,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[o,a]}),e[9]=o,e[10]=a,e[11]=c):c=e[11];let f;return e[12]!==i||e[13]!==t||e[14]!==c?(f=m.jsx(x,{open:i,onOpenChange:t,children:c}),e[12]=i,e[13]=t,e[14]=c,e[15]=f):f=e[15],f}export{N as M,B as S};
1
+ import{c as p,b,j as m}from"./index-30J4z2dD.js";import{u as d,m as h,p as S,q as x}from"./sidebar-Cwhg81Iz.js";import{i as g}from"./LayoutLeft-Cvh2z-Gq.js";import{T as j}from"./toolbar-BkBl6JIj.js";function B(u){const e=p.c(7),{className:l}=u,n=b(),{toggleSidebar:i}=d();let t;e[0]!==n?(t=n("layouts.shellControls.toggleSidebar"),e[0]=n,e[1]=t):t=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsx(g,{size:16}),e[2]=s):s=e[2];let o;return e[3]!==l||e[4]!==t||e[5]!==i?(o=m.jsx(j,{onClick:i,"aria-label":t,className:l,children:s}),e[3]=l,e[4]=t,e[5]=i,e[6]=o):o=e[6],o}function N(u){const e=p.c(16),{renderSidebar:l}=u,n=b(),{openMobile:i,setOpenMobile:t}=d();let s;e[0]!==n?(s=n("layouts.shellControls.navigationTitle"),e[0]=n,e[1]=s):s=e[1];let o;e[2]!==s?(o=m.jsx(h,{className:"sr-only",children:s}),e[2]=s,e[3]=o):o=e[3];let r;e[4]!==t?(r=()=>t(!1),e[4]=t,e[5]=r):r=e[5];let a;e[6]!==l||e[7]!==r?(a=l({onClose:r}),e[6]=l,e[7]=r,e[8]=a):a=e[8];let c;e[9]!==o||e[10]!==a?(c=m.jsxs(S,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[o,a]}),e[9]=o,e[10]=a,e[11]=c):c=e[11];let f;return e[12]!==i||e[13]!==t||e[14]!==c?(f=m.jsx(x,{open:i,onOpenChange:t,children:c}),e[12]=i,e[13]=t,e[14]=c,e[15]=f):f=e[15],f}export{N as M,B as S};
@@ -1 +1 @@
1
- import{c as I,b as F,e as ae,j as n,B as D,t as te,bO as ee,y as ke,a as Z,w as qe,x as Ne,K as ce,bP as Fe,bQ as Be,G as X,m as ge,r as q,n as re,aw as he,v as Ue,bR as He,p as pe,bS as Je,bT as Ke,d as Ge,F as We,f as Ae,u as Ve,J as Qe,aW as Ye,bU as Xe,bV as ye,bW as Ze,bX as et,S as tt,O as nt,bY as st}from"./index-2KxPRjw5.js";import{A as de}from"./avatar-Du8HEobV.js";import{t as _e,a as ot}from"./Users03-CqyDxwt6.js";import{i as it}from"./SearchLg-CSWY8viA.js";import{i as at,s as rt,a as B,n as lt}from"./Stars02-cKtwD-F2.js";import{s as ct}from"./XClose-CBFLmbVP.js";import{D as dt,q as ut,A as mt}from"./tab-id-DJIms9m1.js";import{i as K}from"./CheckCircle-IiUO6eKZ.js";import{i as ft}from"./CpuChip01-UMJdnf1a.js";import{i as xe}from"./FilterLines-Ca7W3tHb.js";import{i as gt}from"./Monitor01-CEdUOtdj.js";import{i as G}from"./Zap-C4qF8Cn-.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as ht,c as pt}from"./dialog-C82H2S70.js";import{R as yt}from"./required-auth-layout-wB2bMMGI.js";import{a as be,m as xt,S as bt}from"./use-mcp-client-DRwUSZdO.js";import{c as wt}from"./hooks-Bom1QoTc.js";import{g as St}from"./use-organization-settings-DKSNQ1_z.js";import{u as vt}from"./use-org-sso-DBExuOVV.js";function jt(t){const e=I.c(49),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=F();let o;e[0]!==a||e[1]!==i?(o=async()=>{const A=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await A.json();if(!A.ok||!O.success)throw new Error(O.error??i("common.autoDomainJoinScreen.joinError"));return O},e[0]=a,e[1]=i,e[2]=o):o=e[2];let c;e[3]!==a?(c=A=>{window.location.href=`/${A.slug??a}`},e[3]=a,e[4]=c):c=e[4];let g;e[5]!==i?(g=A=>{te.error(A instanceof Error?A.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let b;e[7]!==o||e[8]!==c||e[9]!==g?(b={mutationFn:o,onSuccess:c,onError:g},e[7]=o,e[8]=c,e[9]=g,e[10]=b):b=e[10];const u=ae(b),S=kt;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let d;e[14]!==s||e[15]!==i?(d=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=d):d=e[16];let h;e[17]!==d?(h=n.jsx("h3",{className:"text-lg font-medium",children:d}),e[17]=d,e[18]=h):h=e[18];let f;e[19]!==r||e[20]!==i?(f=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=f):f=e[21];let p;e[22]!==f?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[22]=f,e[23]=p):p=e[23];let y;e[24]!==h||e[25]!==p?(y=n.jsxs("div",{className:"space-y-2",children:[h,p]}),e[24]=h,e[25]=p,e[26]=y):y=e[26];let x;e[27]!==u?(x=()=>u.mutate(),e[27]=u,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==s||e[31]!==i?(v=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=u.isPending,e[30]=s,e[31]=i,e[32]=v):v=e[32];let N;e[33]!==u.isPending||e[34]!==x||e[35]!==v?(N=n.jsx(D,{onClick:x,disabled:u.isPending,children:v}),e[33]=u.isPending,e[34]=x,e[35]=v,e[36]=N):N=e[36];const j=u.isPending;let k;e[37]!==i?(k=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=k):k=e[38];let w;e[39]!==u.isPending||e[40]!==k?(w=n.jsx(D,{variant:"ghost",onClick:S,disabled:j,children:k}),e[39]=u.isPending,e[40]=k,e[41]=w):w=e[41];let _;e[42]!==N||e[43]!==w?(_=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,w]}),e[42]=N,e[43]=w,e[44]=_):_=e[44];let T;return e[45]!==y||e[46]!==_||e[47]!==m?(T=n.jsxs(ee,{children:[m,y,_]}),e[45]=y,e[46]=_,e[47]=m,e[48]=T):T=e[48],T}function kt(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:s,orgName:a,reason:l}=t,r=F(),i=Nt,o=l==="not-found",c=o?it:ke;let g;e[0]!==o||e[1]!==r?(g=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=g):g=e[2];const b=g;let u;e[3]!==o||e[4]!==a||e[5]!==s||e[6]!==r?(u=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=a,e[5]=s,e[6]=r,e[7]=u):u=e[7];const S=u;let m;e[8]!==c?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(c,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=c,e[9]=m):m=e[9];let d;e[10]!==b?(d=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[10]=b,e[11]=d):d=e[11];let h;e[12]!==S?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[12]=S,e[13]=h):h=e[13];let f;e[14]!==d||e[15]!==h?(f=n.jsxs("div",{className:"space-y-2",children:[d,h]}),e[14]=d,e[15]=h,e[16]=f):f=e[16];let p;e[17]!==r?(p=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=p):p=e[18];let y;e[19]!==p?(y=n.jsx(D,{onClick:i,children:p}),e[19]=p,e[20]=y):y=e[20];let x;return e[21]!==m||e[22]!==f||e[23]!==y?(x=n.jsxs(ee,{children:[m,f,y]}),e[21]=m,e[22]=f,e[23]=y,e[24]=x):x=e[24],x}function Nt(){window.location.href="/"}function At(t){const e=I.c(59),{invitationId:s,orgName:a,orgSlug:l,orgLogo:r}=t,i=F();let o;e[0]!==s?(o=async()=>{const E=await Z.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let c;e[2]!==l?(c=()=>{qe(),window.location.href=`/${l}`},e[2]=l,e[3]=c):c=e[3];let g;e[4]!==i?(g=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let b;e[6]!==o||e[7]!==c||e[8]!==g?(b={mutationFn:o,onSuccess:c,onError:g},e[6]=o,e[7]=c,e[8]=g,e[9]=b):b=e[9];const u=ae(b);let S;e[10]!==s?(S=async()=>{const E=await Z.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=S):S=e[11];let m,d;e[12]!==i?(m=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},d=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=m,e[14]=d):(m=e[13],d=e[14]);let h;e[15]!==S||e[16]!==m||e[17]!==d?(h={mutationFn:S,onSuccess:m,onError:d},e[15]=S,e[16]=m,e[17]=d,e[18]=h):h=e[18];const f=ae(h),p=u.isPending||f.isPending;let y;e[19]!==r||e[20]!==a?(y=r?n.jsx(de,{url:r,fallback:a.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(at,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=y):y=e[21];let x;e[22]!==a||e[23]!==i?(x=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=x):x=e[24];let v;e[25]!==x?(v=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=v):v=e[26];let N;e[27]!==i?(N=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let k;e[31]!==v||e[32]!==j?(k=n.jsxs("div",{className:"space-y-2",children:[v,j]}),e[31]=v,e[32]=j,e[33]=k):k=e[33];let w;e[34]!==u?(w=()=>u.mutate(),e[34]=u,e[35]=w):w=e[35];let _;e[36]!==u.isPending||e[37]!==i?(_=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=_):_=e[38];let T;e[39]!==p||e[40]!==w||e[41]!==_?(T=n.jsx(D,{onClick:w,disabled:p,children:_}),e[39]=p,e[40]=w,e[41]=_,e[42]=T):T=e[42];let A;e[43]!==f?(A=()=>f.mutate(),e[43]=f,e[44]=A):A=e[44];let O;e[45]!==f.isPending||e[46]!==i?(O=f.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=f.isPending,e[46]=i,e[47]=O):O=e[47];let P;e[48]!==p||e[49]!==A||e[50]!==O?(P=n.jsx(D,{variant:"ghost",onClick:A,disabled:p,children:O}),e[48]=p,e[49]=A,e[50]=O,e[51]=P):P=e[51];let C;e[52]!==T||e[53]!==P?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,P]}),e[52]=T,e[53]=P,e[54]=C):C=e[54];let $;return e[55]!==k||e[56]!==C||e[57]!==y?($=n.jsxs(ee,{children:[y,k,C]}),e[55]=k,e[56]=C,e[57]=y,e[58]=$):$=e[58],$}function _t(t){const e=I.c(23),{orgName:s,orgLogo:a}=t,l=F();let r;e[0]!==a||e[1]!==s?(r=a?n.jsx(de,{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(rt,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==l?(i=l("common.requestPendingScreen.title"),e[3]=l,e[4]=i):i=e[4];let o;e[5]!==i?(o=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=o):o=e[6];let c;e[7]!==s||e[8]!==l?(c=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=c):c=e[9];let g;e[10]!==c?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[10]=c,e[11]=g):g=e[11];let b;e[12]!==o||e[13]!==g?(b=n.jsxs("div",{className:"space-y-2",children:[o,g]}),e[12]=o,e[13]=g,e[14]=b):b=e[14];let u;e[15]!==l?(u=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=u):u=e[16];let S;e[17]!==u?(S=n.jsx(D,{variant:"ghost",onClick:Tt,children:u}),e[17]=u,e[18]=S):S=e[18];let m;return e[19]!==r||e[20]!==b||e[21]!==S?(m=n.jsxs(ee,{children:[r,b,S]}),e[19]=r,e[20]=b,e[21]=S,e[22]=m):m=e[22],m}function Tt(){window.location.href="/"}function Ot(t){const e=I.c(45),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=F();let o;e[0]!==a?(o=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await T.json();if(!T.ok||!A.success)throw new Error(A.error??"Failed to request access");return A},e[0]=a,e[1]=o):o=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=Et,e[2]=c):c=e[2];let g;e[3]!==i?(g=T=>{te.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let b;e[5]!==o||e[6]!==g?(b={mutationFn:o,onSuccess:c,onError:g},e[5]=o,e[6]=g,e[7]=b):b=e[7];const u=ae(b);let S;e[8]!==l||e[9]!==s?(S=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=S):S=e[10];let m;e[11]!==s||e[12]!==i?(m=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=m):m=e[13];let d;e[14]!==m?(d=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=d):d=e[15];let h;e[16]!==r||e[17]!==i?(h=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=h):h=e[18];let f;e[19]!==h?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=f):f=e[20];let p;e[21]!==d||e[22]!==f?(p=n.jsxs("div",{className:"space-y-2",children:[d,f]}),e[21]=d,e[22]=f,e[23]=p):p=e[23];let y;e[24]!==u?(y=()=>u.mutate(),e[24]=u,e[25]=y):y=e[25];let x;e[26]!==u.isPending||e[27]!==i?(x=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==y||e[31]!==x?(v=n.jsx(D,{onClick:y,disabled:u.isPending,children:x}),e[29]=u.isPending,e[30]=y,e[31]=x,e[32]=v):v=e[32];const N=u.isPending;let j;e[33]!==i?(j=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=j):j=e[34];let k;e[35]!==u.isPending||e[36]!==j?(k=n.jsx(D,{variant:"ghost",onClick:Ct,disabled:N,children:j}),e[35]=u.isPending,e[36]=j,e[37]=k):k=e[37];let w;e[38]!==v||e[39]!==k?(w=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,k]}),e[38]=v,e[39]=k,e[40]=w):w=e[40];let _;return e[41]!==p||e[42]!==w||e[43]!==S?(_=n.jsxs(ee,{children:[S,p,w]}),e[41]=p,e[42]=w,e[43]=S,e[44]=_):_=e[44],_}function Ct(){window.location.href="/"}function Et(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Lt(t){const e=I.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=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]=a):a=e[3];let l;return e[4]!==s||e[5]!==a?(l={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=l):l=e[6],Ne(l)}function Pt({orgSlug:t}){const{data:e}=Lt(t);if(e.status!=="member"){Fe()?.org===t&&Be();const s=localStorage.getItem(X.lastOrgSlug())===t;if(s&&localStorage.removeItem(X.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(At,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(jt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ot,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(_t,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=I.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:l,title:r,description:i,icon:o,children:c,footerLeading:g,actions:b,onDismiss:u,tone:S}=t,m=S===void 0?"neutral":S,d=g||b;let h;e[0]!==m?(h=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=h):h=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(ct,{size:14}),e[2]=f):f=e[2];let p;e[3]!==a||e[4]!==u?(p=n.jsx(D,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:f}),e[3]=a,e[4]=u,e[5]=p):p=e[5];const y=o&&"flex items-start gap-3",x=c&&"pb-3";let v;e[6]!==y||e[7]!==x?(v=ge("p-4 pr-11",y,x),e[6]=y,e[7]=x,e[8]=v):v=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let k;e[13]!==r?(k=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=k):k=e[14];let w;e[15]!==i?(w=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=w):w=e[16];let _;e[17]!==k||e[18]!==w||e[19]!==j?(_=n.jsxs("div",{children:[j,k,w]}),e[17]=k,e[18]=w,e[19]=j,e[20]=_):_=e[20];let T;e[21]!==c?(T=c&&n.jsx("div",{className:"mt-3",children:c}),e[21]=c,e[22]=T):T=e[22];let A;e[23]!==_||e[24]!==T?(A=n.jsxs("div",{className:"min-w-0 flex-1",children:[_,T]}),e[23]=_,e[24]=T,e[25]=A):A=e[25];let O;e[26]!==A||e[27]!==v||e[28]!==N?(O=n.jsxs("div",{className:v,children:[N,A]}),e[26]=A,e[27]=v,e[28]=N,e[29]=O):O=e[29];let P;e[30]!==b||e[31]!==g||e[32]!==d||e[33]!==m?(P=d&&n.jsxs("div",{className:ge("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:b})]}),e[30]=b,e[31]=g,e[32]=d,e[33]=m,e[34]=P):P=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==P||e[38]!==h||e[39]!==p||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,p,O,P]}),e[35]=s,e[36]=O,e[37]=P,e[38]=h,e[39]=p,e[40]=m,e[41]=C):C=e[41],C}const It=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:B,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:ft,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:gt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:B,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:B,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:B,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:B,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:B,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:B,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ot,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:B,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:B,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:lt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Pe=It,le="studio.release-feed.v1",ue=new Set;let W="",V={},me=!1;function Dt(){if(me)return W||"{}";try{return localStorage.getItem(le)??"{}"}catch{return W||"{}"}}function Ie(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=Dt();return t!==W&&(W=t,V=Ie(t)),V}function $t(t){ue.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const a=localStorage.getItem(le)??"{}",r={...Ie(a),...V};V=r,W=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{ue.delete(t),window.removeEventListener("storage",e)}}function zt(t){V=t,W=JSON.stringify(t);try{localStorage.setItem(le,W),me=!1}catch{me=!0}ue.forEach(e=>e())}function Rt(){const t=I.c(7),e=q.useSyncExternalStore($t,Se,Se);let s;t[0]!==e?(s=c=>!!e[c],t[0]=e,t[1]=s):s=t[1];const a=s,l=Mt;let r;t[2]!==e?(r=Pe.reduce((c,g)=>e[g.id]?c:c+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let o;return t[4]!==a||t[5]!==i?(o={isSeen:a,markSeen:l,unseenCount:i},t[4]=a,t[5]=i,t[6]=o):o=t[6],o}function Mt(t){V[t]||zt({...V,[t]:{seenAt:new Date().toISOString()}})}const qt=720*60*60*1e3,Ft=10080*60*1e3;function Bt(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function Ut(t){const e=Pe[0];if(!e)return null;const s=Bt(e.date),a=t-s;return a<0||a>qt?null:e}function Ht(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 Jt(t,e){const s=Ht(t);return s===null?!1:e-s>=Ft}function Kt(){const t=I.c(41),e=F(),{data:s}=Z.useSession(),{isSeen:a,markSeen:l}=Rt(),[r,i]=q.useState(!1);let o,c,g;if(t[0]!==a||t[1]!==s?.user?.createdAt){g=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Ut(j),!o){g=null;break e}if(!Jt(s?.user?.createdAt,j)){g=null;break e}c=a(o.id)}t[0]=a,t[1]=s?.user?.createdAt,t[2]=o,t[3]=c,t[4]=g}else o=t[2],c=t[3],g=t[4];if(g!==Symbol.for("react.early_return_sentinel"))return g;if(c)return null;let b;t[5]!==e?(b=e("announcements.release.ariaLabel"),t[5]=e,t[6]=b):b=t[6];let u;t[7]!==e?(u=e("announcements.release.dismiss"),t[7]=e,t[8]=u):u=t[8];const S=o.eyebrow,m=o.title;let d;t[9]!==o.id||t[10]!==l?(d=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=d):d=t[11];let h;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(h=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=h):h=t[16];let f;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(f=o.cta?"href"in o.cta?n.jsx(D,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx(D,{size:"sm",onClick:()=>i(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=f):f=t[20];let p;t[21]!==o.bullets?(p=o.bullets.map(Gt),t[21]=o.bullets,t[22]=p):p=t[22];let y;t[23]!==p?(y=n.jsx("ul",{className:"flex flex-col gap-3",children:p}),t[23]=p,t[24]=y):y=t[24];let x;t[25]!==o.id||t[26]!==l?(x=j=>{i(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=x):x=t[27];let v;t[28]!==r||t[29]!==x?(v=n.jsx(dt,{open:r,onOpenChange:x}),t[28]=r,t[29]=x,t[30]=v):v=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==y||t[34]!==v||t[35]!==b||t[36]!==u||t[37]!==d||t[38]!==h||t[39]!==f?(N=n.jsxs(Le,{ariaLabel:b,dismissLabel:u,eyebrow:S,title:m,onDismiss:d,footerLeading:h,actions:f,children:[y,v]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=y,t[34]=v,t[35]=b,t[36]=u,t[37]=d,t[38]=h,t[39]=f,t[40]=N):N=t[40],N}function Gt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const De=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),H=De?"⌘":"Ctrl",R={keyboardShortcuts:{keys:[H,"K"],description:"Keyboard shortcuts"},back:{keys:[H,"["],description:"Back to previous"},focusChatInput:{keys:[H,"L"],description:"Focus chat input"},saveAndFormat:{keys:[H,"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:[H,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[H,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",H,"S"],description:"New task"},toggleDaemon:{keys:[H,"D"],description:"Toggle daemon logs"}},Wt=[{label:"General",shortcuts:[R.keyboardShortcuts,R.back,R.newTask,R.toggleDaemon]},{label:"Editor",shortcuts:[R.saveAndFormat]},{label:"Chat",shortcuts:[R.focusChatInput,R.togglePlanMode,R.sendMessage,R.newLine]},{label:"Questions",shortcuts:[R.selectOption]},{label:"Monitoring",shortcuts:[R.applyFilter]}];function ve(t){return De?t.metaKey:t.ctrlKey}function Vt(t){const e=I.c(11),{open:s,onOpenChange:a}=t,l=F();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=i):i=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Wt.map(Qt)}),e[4]=o):o=e[4];let c;e[5]!==i?(c=n.jsxs(Ce,{className:"sm:max-w-md",children:[i,o]}),e[5]=i,e[6]=c):c=e[6];let g;return e[7]!==a||e[8]!==s||e[9]!==c?(g=n.jsx(Ee,{open:s,onOpenChange:a,children:c}),e[7]=a,e[8]=s,e[9]=c,e[10]=g):g=e[10],g}function Qt(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(Yt)})]},t.label)}function Yt(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(Xt)})]},t.description)}function Xt(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 Zt=300*1e3,en=2;function tn(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 nn(t,e){return t.count>=en&&t.version!==null&&t.version!==e}function sn(){const t=I.c(31),e=F();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:ce.appVersionCheck(),queryFn:an,refetchInterval:Zt,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:l}=re(s),[r,i]=q.useState(0);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={version:null,count:0},t[1]=o):o=t[1];const[c,g]=q.useState(o);l!==r&&(i(l),g(w=>tn(w,a,"4.150.21")));const[b,u]=q.useState(null);if(!nn(c,b))return null;let S;t[2]!==e?(S=e("announcements.version.ariaLabel"),t[2]=e,t[3]=S):S=t[3];let m;t[4]!==e?(m=e("announcements.version.dismiss"),t[4]=e,t[5]=m):m=t[5];let d;t[6]!==e?(d=e("announcements.version.eyebrow"),t[6]=e,t[7]=d):d=t[7];let h;t[8]!==e?(h=e("announcements.version.title"),t[8]=e,t[9]=h):h=t[9];let f;t[10]!==e?(f=e("announcements.version.description"),t[10]=e,t[11]=f):f=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(he,{size:16}),t[12]=p):p=t[12];let y;t[13]!==c.version?(y=()=>u(c.version),t[13]=c.version,t[14]=y):y=t[14];let x;t[15]!==e?(x=e("announcements.version.currentSession",{version:"4.150.21"}),t[15]=e,t[16]=x):x=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(he,{size:14}),t[19]=N):N=t[19];let j;t[20]!==v?(j=n.jsxs(D,{size:"sm",onClick:on,children:[v,N]}),t[20]=v,t[21]=j):j=t[21];let k;return t[22]!==j||t[23]!==S||t[24]!==m||t[25]!==d||t[26]!==h||t[27]!==f||t[28]!==y||t[29]!==x?(k=n.jsx(Le,{ariaLabel:S,dismissLabel:m,eyebrow:d,title:h,description:f,icon:p,tone:"system",onDismiss:y,footerLeading:x,actions:j}),t[22]=j,t[23]=S,t[24]=m,t[25]=d,t[26]=h,t[27]=f,t[28]=y,t[29]=x,t[30]=k):k=t[30],k}function on(){return window.location.reload()}async function an(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function rn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const ln=Date.parse("2026-07-21T00:00:00Z"),je=t=>rn(X.ptBrAnnouncementSeen(t));function cn(){const t=I.c(35),e=F(),[s,a]=Ue(),{data:l,isPending:r}=Z.useSession(),i=l?.user,o=i?.id,c=i?.createdAt,g=c!=null&&new Date(c).getTime()<ln,b=He()==="pt-BR",u=!r&&!!o&&g&&b&&s.language==="en"&&!je(o).has(),[S,m]=q.useState(!1),[d,h]=q.useState(!1);!S&&!r&&(m(!0),u&&o&&(je(o).mark(),a(un),h(!0),pe("pt_br_auto_switch_shown")));let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=M=>{pe("pt_br_auto_switch_closed",{action:M}),h(!1)},t[0]=f):f=t[0];const p=f;let y;t[1]!==a?(y=()=>{a(dn),p("switch-back")},t[1]=a,t[2]=y):y=t[2];const x=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=M=>!M&&p("dismiss"),t[3]=v):v=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let k;t[7]!==j?(k=n.jsx(Oe,{children:j}),t[7]=j,t[8]=k):k=t[8];let w;t[9]!==e?(w=e("announcements.ptBr.description"),t[9]=e,t[10]=w):w=t[10];let _;t[11]!==w?(_=n.jsx(ht,{children:w}),t[11]=w,t[12]=_):_=t[12];let T;t[13]!==k||t[14]!==_?(T=n.jsxs(Te,{children:[k,_]}),t[13]=k,t[14]=_,t[15]=T):T=t[15];let A;t[16]!==e?(A=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=A):A=t[17];let O;t[18]!==x||t[19]!==A?(O=n.jsx(D,{variant:"outline",onClick:x,children:A}),t[18]=x,t[19]=A,t[20]=O):O=t[20];let P;t[21]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p("ok"),t[21]=P):P=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let $;t[24]!==C?($=n.jsx(D,{onClick:P,children:C}),t[24]=C,t[25]=$):$=t[25];let E;t[26]!==O||t[27]!==$?(E=n.jsxs(pt,{children:[O,$]}),t[26]=O,t[27]=$,t[28]=E):E=t[28];let J;t[29]!==E||t[30]!==T?(J=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,T,E]}),t[29]=E,t[30]=T,t[31]=J):J=t[31];let U;return t[32]!==d||t[33]!==J?(U=n.jsx(Ee,{open:d,onOpenChange:v,children:J}),t[32]=d,t[33]=J,t[34]=U):U=t[34],U}function dn(t){return{...t,language:"en"}}function un(t){return{...t,language:"pt-BR"}}function mn({activeOrg:t}){return t&&(Je(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Ke()),null}function fn(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:l,opts:r,autosendValue:i}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const c=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,b=(s??c)!==c;let u;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(u=l.sidepanel);else if(!b){const S=e.main;S&&typeof S=="string"&&!ut(S)&&(o.main=S)}return u!==void 0&&(o.sidepanel=u),r?.autosend&&(o.autosend=i),o}const $e="studio:thread-layout:v1",gn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function hn(t,e,s,a=gn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>a;)l.shift();return l}function fe(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Re(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function pn(t,e){t&&Re(hn(fe(),t,e))}function yn(t){if(!t)return null;const e=fe().find(([s])=>s===t);return e?ze(e[1]):null}function Un(t){if(!t)return;const e=fe(),s=e.filter(([a])=>a!==t);s.length!==e.length&&Re(s)}function Me(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Hn(t){const e=I.c(10);let s;e[0]!==t?(s=Me(t),e[0]=t,e[1]=s):s=e[1];const a=re(s);let l;e[2]!==a.data?.prompts?(l=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==l||e[8]!==r?(i={isLoading:a.isLoading,prompts:l,tiles:r},e[6]=a.isLoading,e[7]=l,e[8]=r,e[9]=i):i=e[9],i}function xn(t){const e=I.c(31),{orgSlug:s,orgName:a,domain:l}=t,r=F();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const o=i,c=bn;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let b;e[3]!==r?(b=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=b):b=e[4];let u;e[5]!==b?(u=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[5]=b,e[6]=u):u=e[6];let S;e[7]!==l||e[8]!==a||e[9]!==r?(S=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=a,e[9]=r,e[10]=S):S=e[10];let m;e[11]!==S?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[11]=S,e[12]=m):m=e[12];let d;e[13]!==u||e[14]!==m?(d=n.jsxs("div",{className:"space-y-2",children:[u,m]}),e[13]=u,e[14]=m,e[15]=d):d=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let f;e[18]!==o||e[19]!==h?(f=n.jsx(D,{onClick:o,children:h}),e[18]=o,e[19]=h,e[20]=f):f=e[20];let p;e[21]!==r?(p=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=p):p=e[22];let y;e[23]!==p?(y=n.jsx(D,{variant:"ghost",onClick:c,children:p}),e[23]=p,e[24]=y):y=e[24];let x;e[25]!==y||e[26]!==f?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,y]}),e[25]=y,e[26]=f,e[27]=x):x=e[27];let v;return e[28]!==x||e[29]!==d?(v=n.jsxs(ee,{children:[g,d,x]}),e[28]=x,e[29]=d,e[30]=v):v=e[30],v}function bn(){window.location.href="/"}function wn(t){const e=I.c(8),{org:s,children:a}=t,r=St(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 o=i;let c;return e[4]!==a||e[5]!==s||e[6]!==o?(c=n.jsx(st,{org:s,project:o,children:a}),e[4]=a,e[5]=s,e[6]=o,e[7]=c):c=e[7],c}function Sn(){const t=Ge(),e=wt(),{org:s}=We(),a=Ae({strict:!1}),l=Ve({strict:!1}),r=a.org??"",i=a.taskId??"",o=(m,d,h=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:d,replace:h}),c=(m,d=!0)=>o(i,m,d),g=m=>c(d=>({...d,sidepanel:m})),b=(m,d,h)=>{const f=!!i&&i===m;i&&!f&&pn(i,{main:l.main,sidepanel:l.sidepanel});const p=f?null:yn(m),y=be(s.id).id;return o(m,x=>fn({prev:x,virtualMcpId:d,decopilotId:y,savedLayout:p,opts:h,autosendValue:mt}),!1)};return{openSidePanel:g,setTaskId:b,createNewTask:async(m,d)=>{const h=crypto.randomUUID(),f=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:h,virtual_mcp_id:f,...d?{branch:d}:{}})}catch{}b(h,f)},openTab:m=>o(i||crypto.randomUUID(),d=>({...d,main:m}))}}function vn(){const t=I.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Qe(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[i,o]=q.useState(!1),c=Ye(),g=a??"";let b;t[2]!==g?(b=Me(g),t[2]=g,t[3]=b):b=t[3];const u=!!a&&!r;let S;t[4]!==b||t[5]!==u?(S={...b,enabled:u},t[4]=b,t[5]=u,t[6]=S):S=t[6],re(S);const{data:m}=Z.useSession(),d=m?.user?.id;let h;t[7]!==a||t[8]!==d?(h=a&&d?Xe(d,a):null,t[7]=a,t[8]=d,t[9]=h):h=t[9];const f=h;let p,y;t[10]!==c?(p=()=>{const L=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&c.history.canGoBack()&&(z.preventDefault(),c.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[c],t[10]=c,t[11]=p,t[12]=y):(p=t[11],y=t[12]),q.useEffect(p,y);let x;t[13]!==a?(x=ce.activeOrganization(a),t[13]=a,t[14]=x):x=t[14];let v;t[15]!==a||t[16]!==d?(v=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(jn),z=ye(L);return L&&!z&&localStorage.setItem(X.lastOrgSlug(),a),d&&L&&et(d,a,L),L},t[15]=a,t[16]=d,t[17]=v):v=t[17];const N=f?f.data:void 0,j=f?.updatedAt;let k;t[18]!==v||t[19]!==N||t[20]!==j||t[21]!==x?(k={queryKey:x,queryFn:v,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=N,t[20]=j,t[21]=x,t[22]=k):k=t[22];const{data:w}=Ne(k),_=w?.id,T=w?.slug,{data:A}=vt(_,T),O=_??"",P=T??"";let C;t[23]!==O||t[24]!==P?(C=xt({connectionId:bt,orgId:O,orgSlug:P}),t[23]=O,t[24]=P,t[25]=C):C=t[25];const $=!!_&&!!T;let E;if(t[26]!==C||t[27]!==$?(E={...C,enabled:$},t[26]=C,t[27]=$,t[28]=E):E=t[28],re(E),!w){let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx(tt,{}),t[29]=L):L=t[29];let z;return t[30]!==a?(z=n.jsx(q.Suspense,{fallback:L,children:n.jsx(Pt,{orgSlug:a})}),t[30]=a,t[31]=z):z=t[31],z}if(ye(w)){localStorage.getItem(X.lastOrgSlug())===a&&localStorage.removeItem(X.lastOrgSlug());let L;return t[32]!==w.name?(L=n.jsx(Ze,{orgName:w.name}),t[32]=w.name,t[33]=L):L=t[33],L}if(A?.ssoRequired&&!A.authenticated){let L;return t[34]!==w.id||t[35]!==w.name||t[36]!==w.slug||t[37]!==A.domain?(L=n.jsx(xn,{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]=L):L=t[38],L}const U=w.logo??null;let M;t[39]!==w||t[40]!==U?(M={...w,logo:U},t[39]=w,t[40]=U,t[41]=M):M=t[41];let Q;t[42]!==w?(Q=n.jsx(mn,{activeOrg:w}),t[42]=w,t[43]=Q):Q=t[43];let ne;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(nt,{}),t[44]=ne):ne=t[44];let se;t[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Kt,{}),n.jsx(sn,{})]}),t[45]=se):se=t[45];let Y;t[46]!==i?(Y=n.jsx(Vt,{open:i,onOpenChange:o}),t[46]=i,t[47]=Y):Y=t[47];let oe;t[48]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(cn,{}),t[48]=oe):oe=t[48];let ie;return t[49]!==M||t[50]!==Q||t[51]!==Y?(ie=n.jsxs(wn,{org:M,children:[Q,ne,se,Y,oe]}),t[49]=M,t[50]=Q,t[51]=Y,t[52]=ie):ie=t[52],ie}function jn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function kn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(yt,{children:n.jsx(vn,{})}),t[0]=e):e=t[0],e}const Jn=Object.freeze(Object.defineProperty({__proto__:null,default:kn,usePanelActions:Sn},Symbol.toStringTag,{value:"Module"}));export{R as K,Hn as a,Un as f,ve as i,rn as m,Jn as s,Sn as u};
1
+ import{c as I,b as F,e as ae,j as n,B as D,t as te,bO as ee,y as ke,a as Z,w as qe,x as Ne,K as ce,bP as Fe,bQ as Be,G as X,m as ge,r as q,n as re,aw as he,v as Ue,bR as He,p as pe,bS as Je,bT as Ke,d as Ge,F as We,f as Ae,u as Ve,J as Qe,aW as Ye,bU as Xe,bV as ye,bW as Ze,bX as et,S as tt,O as nt,bY as st}from"./index-30J4z2dD.js";import{A as de}from"./avatar-CPVdCa-q.js";import{t as _e,a as ot}from"./Users03-Rq4uYvEF.js";import{i as it}from"./SearchLg-JzU424qf.js";import{i as at,s as rt,a as B,n as lt}from"./Stars02-BoANd6Kf.js";import{s as ct}from"./XClose-B5-EL_eq.js";import{D as dt,q as ut,A as mt}from"./tab-id-C4bMCjr3.js";import{i as K}from"./CheckCircle-Brw1At1c.js";import{i as ft}from"./CpuChip01-D3yBcvwh.js";import{i as xe}from"./FilterLines-g4cIObbX.js";import{i as gt}from"./Monitor01-fc3ZhEXF.js";import{i as G}from"./Zap-YaHmPbs0.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as ht,c as pt}from"./dialog-Ezhjz9E0.js";import{R as yt}from"./required-auth-layout-C0fEZd67.js";import{a as be,m as xt,S as bt}from"./use-mcp-client-BsWOvAzd.js";import{c as wt}from"./hooks-DUfbKzwY.js";import{g as St}from"./use-organization-settings-CJWrHwUl.js";import{u as vt}from"./use-org-sso-CMGzDI_I.js";function jt(t){const e=I.c(49),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=F();let o;e[0]!==a||e[1]!==i?(o=async()=>{const A=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await A.json();if(!A.ok||!O.success)throw new Error(O.error??i("common.autoDomainJoinScreen.joinError"));return O},e[0]=a,e[1]=i,e[2]=o):o=e[2];let c;e[3]!==a?(c=A=>{window.location.href=`/${A.slug??a}`},e[3]=a,e[4]=c):c=e[4];let g;e[5]!==i?(g=A=>{te.error(A instanceof Error?A.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let b;e[7]!==o||e[8]!==c||e[9]!==g?(b={mutationFn:o,onSuccess:c,onError:g},e[7]=o,e[8]=c,e[9]=g,e[10]=b):b=e[10];const u=ae(b),S=kt;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let d;e[14]!==s||e[15]!==i?(d=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=d):d=e[16];let h;e[17]!==d?(h=n.jsx("h3",{className:"text-lg font-medium",children:d}),e[17]=d,e[18]=h):h=e[18];let f;e[19]!==r||e[20]!==i?(f=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=f):f=e[21];let p;e[22]!==f?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[22]=f,e[23]=p):p=e[23];let y;e[24]!==h||e[25]!==p?(y=n.jsxs("div",{className:"space-y-2",children:[h,p]}),e[24]=h,e[25]=p,e[26]=y):y=e[26];let x;e[27]!==u?(x=()=>u.mutate(),e[27]=u,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==s||e[31]!==i?(v=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=u.isPending,e[30]=s,e[31]=i,e[32]=v):v=e[32];let N;e[33]!==u.isPending||e[34]!==x||e[35]!==v?(N=n.jsx(D,{onClick:x,disabled:u.isPending,children:v}),e[33]=u.isPending,e[34]=x,e[35]=v,e[36]=N):N=e[36];const j=u.isPending;let k;e[37]!==i?(k=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=k):k=e[38];let w;e[39]!==u.isPending||e[40]!==k?(w=n.jsx(D,{variant:"ghost",onClick:S,disabled:j,children:k}),e[39]=u.isPending,e[40]=k,e[41]=w):w=e[41];let _;e[42]!==N||e[43]!==w?(_=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,w]}),e[42]=N,e[43]=w,e[44]=_):_=e[44];let T;return e[45]!==y||e[46]!==_||e[47]!==m?(T=n.jsxs(ee,{children:[m,y,_]}),e[45]=y,e[46]=_,e[47]=m,e[48]=T):T=e[48],T}function kt(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:s,orgName:a,reason:l}=t,r=F(),i=Nt,o=l==="not-found",c=o?it:ke;let g;e[0]!==o||e[1]!==r?(g=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=g):g=e[2];const b=g;let u;e[3]!==o||e[4]!==a||e[5]!==s||e[6]!==r?(u=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=a,e[5]=s,e[6]=r,e[7]=u):u=e[7];const S=u;let m;e[8]!==c?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(c,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=c,e[9]=m):m=e[9];let d;e[10]!==b?(d=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[10]=b,e[11]=d):d=e[11];let h;e[12]!==S?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[12]=S,e[13]=h):h=e[13];let f;e[14]!==d||e[15]!==h?(f=n.jsxs("div",{className:"space-y-2",children:[d,h]}),e[14]=d,e[15]=h,e[16]=f):f=e[16];let p;e[17]!==r?(p=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=p):p=e[18];let y;e[19]!==p?(y=n.jsx(D,{onClick:i,children:p}),e[19]=p,e[20]=y):y=e[20];let x;return e[21]!==m||e[22]!==f||e[23]!==y?(x=n.jsxs(ee,{children:[m,f,y]}),e[21]=m,e[22]=f,e[23]=y,e[24]=x):x=e[24],x}function Nt(){window.location.href="/"}function At(t){const e=I.c(59),{invitationId:s,orgName:a,orgSlug:l,orgLogo:r}=t,i=F();let o;e[0]!==s?(o=async()=>{const E=await Z.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let c;e[2]!==l?(c=()=>{qe(),window.location.href=`/${l}`},e[2]=l,e[3]=c):c=e[3];let g;e[4]!==i?(g=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let b;e[6]!==o||e[7]!==c||e[8]!==g?(b={mutationFn:o,onSuccess:c,onError:g},e[6]=o,e[7]=c,e[8]=g,e[9]=b):b=e[9];const u=ae(b);let S;e[10]!==s?(S=async()=>{const E=await Z.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=S):S=e[11];let m,d;e[12]!==i?(m=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},d=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=m,e[14]=d):(m=e[13],d=e[14]);let h;e[15]!==S||e[16]!==m||e[17]!==d?(h={mutationFn:S,onSuccess:m,onError:d},e[15]=S,e[16]=m,e[17]=d,e[18]=h):h=e[18];const f=ae(h),p=u.isPending||f.isPending;let y;e[19]!==r||e[20]!==a?(y=r?n.jsx(de,{url:r,fallback:a.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(at,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=y):y=e[21];let x;e[22]!==a||e[23]!==i?(x=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=x):x=e[24];let v;e[25]!==x?(v=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=v):v=e[26];let N;e[27]!==i?(N=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let k;e[31]!==v||e[32]!==j?(k=n.jsxs("div",{className:"space-y-2",children:[v,j]}),e[31]=v,e[32]=j,e[33]=k):k=e[33];let w;e[34]!==u?(w=()=>u.mutate(),e[34]=u,e[35]=w):w=e[35];let _;e[36]!==u.isPending||e[37]!==i?(_=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=_):_=e[38];let T;e[39]!==p||e[40]!==w||e[41]!==_?(T=n.jsx(D,{onClick:w,disabled:p,children:_}),e[39]=p,e[40]=w,e[41]=_,e[42]=T):T=e[42];let A;e[43]!==f?(A=()=>f.mutate(),e[43]=f,e[44]=A):A=e[44];let O;e[45]!==f.isPending||e[46]!==i?(O=f.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=f.isPending,e[46]=i,e[47]=O):O=e[47];let P;e[48]!==p||e[49]!==A||e[50]!==O?(P=n.jsx(D,{variant:"ghost",onClick:A,disabled:p,children:O}),e[48]=p,e[49]=A,e[50]=O,e[51]=P):P=e[51];let C;e[52]!==T||e[53]!==P?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,P]}),e[52]=T,e[53]=P,e[54]=C):C=e[54];let $;return e[55]!==k||e[56]!==C||e[57]!==y?($=n.jsxs(ee,{children:[y,k,C]}),e[55]=k,e[56]=C,e[57]=y,e[58]=$):$=e[58],$}function _t(t){const e=I.c(23),{orgName:s,orgLogo:a}=t,l=F();let r;e[0]!==a||e[1]!==s?(r=a?n.jsx(de,{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(rt,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==l?(i=l("common.requestPendingScreen.title"),e[3]=l,e[4]=i):i=e[4];let o;e[5]!==i?(o=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=o):o=e[6];let c;e[7]!==s||e[8]!==l?(c=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=c):c=e[9];let g;e[10]!==c?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[10]=c,e[11]=g):g=e[11];let b;e[12]!==o||e[13]!==g?(b=n.jsxs("div",{className:"space-y-2",children:[o,g]}),e[12]=o,e[13]=g,e[14]=b):b=e[14];let u;e[15]!==l?(u=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=u):u=e[16];let S;e[17]!==u?(S=n.jsx(D,{variant:"ghost",onClick:Tt,children:u}),e[17]=u,e[18]=S):S=e[18];let m;return e[19]!==r||e[20]!==b||e[21]!==S?(m=n.jsxs(ee,{children:[r,b,S]}),e[19]=r,e[20]=b,e[21]=S,e[22]=m):m=e[22],m}function Tt(){window.location.href="/"}function Ot(t){const e=I.c(45),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=F();let o;e[0]!==a?(o=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await T.json();if(!T.ok||!A.success)throw new Error(A.error??"Failed to request access");return A},e[0]=a,e[1]=o):o=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=Et,e[2]=c):c=e[2];let g;e[3]!==i?(g=T=>{te.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let b;e[5]!==o||e[6]!==g?(b={mutationFn:o,onSuccess:c,onError:g},e[5]=o,e[6]=g,e[7]=b):b=e[7];const u=ae(b);let S;e[8]!==l||e[9]!==s?(S=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=S):S=e[10];let m;e[11]!==s||e[12]!==i?(m=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=m):m=e[13];let d;e[14]!==m?(d=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=d):d=e[15];let h;e[16]!==r||e[17]!==i?(h=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=h):h=e[18];let f;e[19]!==h?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=f):f=e[20];let p;e[21]!==d||e[22]!==f?(p=n.jsxs("div",{className:"space-y-2",children:[d,f]}),e[21]=d,e[22]=f,e[23]=p):p=e[23];let y;e[24]!==u?(y=()=>u.mutate(),e[24]=u,e[25]=y):y=e[25];let x;e[26]!==u.isPending||e[27]!==i?(x=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==y||e[31]!==x?(v=n.jsx(D,{onClick:y,disabled:u.isPending,children:x}),e[29]=u.isPending,e[30]=y,e[31]=x,e[32]=v):v=e[32];const N=u.isPending;let j;e[33]!==i?(j=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=j):j=e[34];let k;e[35]!==u.isPending||e[36]!==j?(k=n.jsx(D,{variant:"ghost",onClick:Ct,disabled:N,children:j}),e[35]=u.isPending,e[36]=j,e[37]=k):k=e[37];let w;e[38]!==v||e[39]!==k?(w=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,k]}),e[38]=v,e[39]=k,e[40]=w):w=e[40];let _;return e[41]!==p||e[42]!==w||e[43]!==S?(_=n.jsxs(ee,{children:[S,p,w]}),e[41]=p,e[42]=w,e[43]=S,e[44]=_):_=e[44],_}function Ct(){window.location.href="/"}function Et(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Lt(t){const e=I.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=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]=a):a=e[3];let l;return e[4]!==s||e[5]!==a?(l={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=l):l=e[6],Ne(l)}function Pt({orgSlug:t}){const{data:e}=Lt(t);if(e.status!=="member"){Fe()?.org===t&&Be();const s=localStorage.getItem(X.lastOrgSlug())===t;if(s&&localStorage.removeItem(X.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(At,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(jt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ot,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(_t,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=I.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:l,title:r,description:i,icon:o,children:c,footerLeading:g,actions:b,onDismiss:u,tone:S}=t,m=S===void 0?"neutral":S,d=g||b;let h;e[0]!==m?(h=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=h):h=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(ct,{size:14}),e[2]=f):f=e[2];let p;e[3]!==a||e[4]!==u?(p=n.jsx(D,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:f}),e[3]=a,e[4]=u,e[5]=p):p=e[5];const y=o&&"flex items-start gap-3",x=c&&"pb-3";let v;e[6]!==y||e[7]!==x?(v=ge("p-4 pr-11",y,x),e[6]=y,e[7]=x,e[8]=v):v=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let k;e[13]!==r?(k=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=k):k=e[14];let w;e[15]!==i?(w=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=w):w=e[16];let _;e[17]!==k||e[18]!==w||e[19]!==j?(_=n.jsxs("div",{children:[j,k,w]}),e[17]=k,e[18]=w,e[19]=j,e[20]=_):_=e[20];let T;e[21]!==c?(T=c&&n.jsx("div",{className:"mt-3",children:c}),e[21]=c,e[22]=T):T=e[22];let A;e[23]!==_||e[24]!==T?(A=n.jsxs("div",{className:"min-w-0 flex-1",children:[_,T]}),e[23]=_,e[24]=T,e[25]=A):A=e[25];let O;e[26]!==A||e[27]!==v||e[28]!==N?(O=n.jsxs("div",{className:v,children:[N,A]}),e[26]=A,e[27]=v,e[28]=N,e[29]=O):O=e[29];let P;e[30]!==b||e[31]!==g||e[32]!==d||e[33]!==m?(P=d&&n.jsxs("div",{className:ge("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:b})]}),e[30]=b,e[31]=g,e[32]=d,e[33]=m,e[34]=P):P=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==P||e[38]!==h||e[39]!==p||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,p,O,P]}),e[35]=s,e[36]=O,e[37]=P,e[38]=h,e[39]=p,e[40]=m,e[41]=C):C=e[41],C}const It=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:B,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:ft,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:gt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:B,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:B,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:B,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:B,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:B,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:B,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ot,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:B,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:B,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:lt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Pe=It,le="studio.release-feed.v1",ue=new Set;let W="",V={},me=!1;function Dt(){if(me)return W||"{}";try{return localStorage.getItem(le)??"{}"}catch{return W||"{}"}}function Ie(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=Dt();return t!==W&&(W=t,V=Ie(t)),V}function $t(t){ue.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const a=localStorage.getItem(le)??"{}",r={...Ie(a),...V};V=r,W=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{ue.delete(t),window.removeEventListener("storage",e)}}function zt(t){V=t,W=JSON.stringify(t);try{localStorage.setItem(le,W),me=!1}catch{me=!0}ue.forEach(e=>e())}function Rt(){const t=I.c(7),e=q.useSyncExternalStore($t,Se,Se);let s;t[0]!==e?(s=c=>!!e[c],t[0]=e,t[1]=s):s=t[1];const a=s,l=Mt;let r;t[2]!==e?(r=Pe.reduce((c,g)=>e[g.id]?c:c+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let o;return t[4]!==a||t[5]!==i?(o={isSeen:a,markSeen:l,unseenCount:i},t[4]=a,t[5]=i,t[6]=o):o=t[6],o}function Mt(t){V[t]||zt({...V,[t]:{seenAt:new Date().toISOString()}})}const qt=720*60*60*1e3,Ft=10080*60*1e3;function Bt(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function Ut(t){const e=Pe[0];if(!e)return null;const s=Bt(e.date),a=t-s;return a<0||a>qt?null:e}function Ht(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 Jt(t,e){const s=Ht(t);return s===null?!1:e-s>=Ft}function Kt(){const t=I.c(41),e=F(),{data:s}=Z.useSession(),{isSeen:a,markSeen:l}=Rt(),[r,i]=q.useState(!1);let o,c,g;if(t[0]!==a||t[1]!==s?.user?.createdAt){g=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Ut(j),!o){g=null;break e}if(!Jt(s?.user?.createdAt,j)){g=null;break e}c=a(o.id)}t[0]=a,t[1]=s?.user?.createdAt,t[2]=o,t[3]=c,t[4]=g}else o=t[2],c=t[3],g=t[4];if(g!==Symbol.for("react.early_return_sentinel"))return g;if(c)return null;let b;t[5]!==e?(b=e("announcements.release.ariaLabel"),t[5]=e,t[6]=b):b=t[6];let u;t[7]!==e?(u=e("announcements.release.dismiss"),t[7]=e,t[8]=u):u=t[8];const S=o.eyebrow,m=o.title;let d;t[9]!==o.id||t[10]!==l?(d=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=d):d=t[11];let h;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(h=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=h):h=t[16];let f;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(f=o.cta?"href"in o.cta?n.jsx(D,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx(D,{size:"sm",onClick:()=>i(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=f):f=t[20];let p;t[21]!==o.bullets?(p=o.bullets.map(Gt),t[21]=o.bullets,t[22]=p):p=t[22];let y;t[23]!==p?(y=n.jsx("ul",{className:"flex flex-col gap-3",children:p}),t[23]=p,t[24]=y):y=t[24];let x;t[25]!==o.id||t[26]!==l?(x=j=>{i(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=x):x=t[27];let v;t[28]!==r||t[29]!==x?(v=n.jsx(dt,{open:r,onOpenChange:x}),t[28]=r,t[29]=x,t[30]=v):v=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==y||t[34]!==v||t[35]!==b||t[36]!==u||t[37]!==d||t[38]!==h||t[39]!==f?(N=n.jsxs(Le,{ariaLabel:b,dismissLabel:u,eyebrow:S,title:m,onDismiss:d,footerLeading:h,actions:f,children:[y,v]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=y,t[34]=v,t[35]=b,t[36]=u,t[37]=d,t[38]=h,t[39]=f,t[40]=N):N=t[40],N}function Gt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const De=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),H=De?"⌘":"Ctrl",R={keyboardShortcuts:{keys:[H,"K"],description:"Keyboard shortcuts"},back:{keys:[H,"["],description:"Back to previous"},focusChatInput:{keys:[H,"L"],description:"Focus chat input"},saveAndFormat:{keys:[H,"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:[H,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[H,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",H,"S"],description:"New task"},toggleDaemon:{keys:[H,"D"],description:"Toggle daemon logs"}},Wt=[{label:"General",shortcuts:[R.keyboardShortcuts,R.back,R.newTask,R.toggleDaemon]},{label:"Editor",shortcuts:[R.saveAndFormat]},{label:"Chat",shortcuts:[R.focusChatInput,R.togglePlanMode,R.sendMessage,R.newLine]},{label:"Questions",shortcuts:[R.selectOption]},{label:"Monitoring",shortcuts:[R.applyFilter]}];function ve(t){return De?t.metaKey:t.ctrlKey}function Vt(t){const e=I.c(11),{open:s,onOpenChange:a}=t,l=F();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=i):i=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Wt.map(Qt)}),e[4]=o):o=e[4];let c;e[5]!==i?(c=n.jsxs(Ce,{className:"sm:max-w-md",children:[i,o]}),e[5]=i,e[6]=c):c=e[6];let g;return e[7]!==a||e[8]!==s||e[9]!==c?(g=n.jsx(Ee,{open:s,onOpenChange:a,children:c}),e[7]=a,e[8]=s,e[9]=c,e[10]=g):g=e[10],g}function Qt(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(Yt)})]},t.label)}function Yt(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(Xt)})]},t.description)}function Xt(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 Zt=300*1e3,en=2;function tn(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 nn(t,e){return t.count>=en&&t.version!==null&&t.version!==e}function sn(){const t=I.c(31),e=F();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:ce.appVersionCheck(),queryFn:an,refetchInterval:Zt,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:l}=re(s),[r,i]=q.useState(0);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={version:null,count:0},t[1]=o):o=t[1];const[c,g]=q.useState(o);l!==r&&(i(l),g(w=>tn(w,a,"4.150.23")));const[b,u]=q.useState(null);if(!nn(c,b))return null;let S;t[2]!==e?(S=e("announcements.version.ariaLabel"),t[2]=e,t[3]=S):S=t[3];let m;t[4]!==e?(m=e("announcements.version.dismiss"),t[4]=e,t[5]=m):m=t[5];let d;t[6]!==e?(d=e("announcements.version.eyebrow"),t[6]=e,t[7]=d):d=t[7];let h;t[8]!==e?(h=e("announcements.version.title"),t[8]=e,t[9]=h):h=t[9];let f;t[10]!==e?(f=e("announcements.version.description"),t[10]=e,t[11]=f):f=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(he,{size:16}),t[12]=p):p=t[12];let y;t[13]!==c.version?(y=()=>u(c.version),t[13]=c.version,t[14]=y):y=t[14];let x;t[15]!==e?(x=e("announcements.version.currentSession",{version:"4.150.23"}),t[15]=e,t[16]=x):x=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(he,{size:14}),t[19]=N):N=t[19];let j;t[20]!==v?(j=n.jsxs(D,{size:"sm",onClick:on,children:[v,N]}),t[20]=v,t[21]=j):j=t[21];let k;return t[22]!==j||t[23]!==S||t[24]!==m||t[25]!==d||t[26]!==h||t[27]!==f||t[28]!==y||t[29]!==x?(k=n.jsx(Le,{ariaLabel:S,dismissLabel:m,eyebrow:d,title:h,description:f,icon:p,tone:"system",onDismiss:y,footerLeading:x,actions:j}),t[22]=j,t[23]=S,t[24]=m,t[25]=d,t[26]=h,t[27]=f,t[28]=y,t[29]=x,t[30]=k):k=t[30],k}function on(){return window.location.reload()}async function an(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function rn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const ln=Date.parse("2026-07-21T00:00:00Z"),je=t=>rn(X.ptBrAnnouncementSeen(t));function cn(){const t=I.c(35),e=F(),[s,a]=Ue(),{data:l,isPending:r}=Z.useSession(),i=l?.user,o=i?.id,c=i?.createdAt,g=c!=null&&new Date(c).getTime()<ln,b=He()==="pt-BR",u=!r&&!!o&&g&&b&&s.language==="en"&&!je(o).has(),[S,m]=q.useState(!1),[d,h]=q.useState(!1);!S&&!r&&(m(!0),u&&o&&(je(o).mark(),a(un),h(!0),pe("pt_br_auto_switch_shown")));let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=M=>{pe("pt_br_auto_switch_closed",{action:M}),h(!1)},t[0]=f):f=t[0];const p=f;let y;t[1]!==a?(y=()=>{a(dn),p("switch-back")},t[1]=a,t[2]=y):y=t[2];const x=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=M=>!M&&p("dismiss"),t[3]=v):v=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let k;t[7]!==j?(k=n.jsx(Oe,{children:j}),t[7]=j,t[8]=k):k=t[8];let w;t[9]!==e?(w=e("announcements.ptBr.description"),t[9]=e,t[10]=w):w=t[10];let _;t[11]!==w?(_=n.jsx(ht,{children:w}),t[11]=w,t[12]=_):_=t[12];let T;t[13]!==k||t[14]!==_?(T=n.jsxs(Te,{children:[k,_]}),t[13]=k,t[14]=_,t[15]=T):T=t[15];let A;t[16]!==e?(A=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=A):A=t[17];let O;t[18]!==x||t[19]!==A?(O=n.jsx(D,{variant:"outline",onClick:x,children:A}),t[18]=x,t[19]=A,t[20]=O):O=t[20];let P;t[21]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p("ok"),t[21]=P):P=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let $;t[24]!==C?($=n.jsx(D,{onClick:P,children:C}),t[24]=C,t[25]=$):$=t[25];let E;t[26]!==O||t[27]!==$?(E=n.jsxs(pt,{children:[O,$]}),t[26]=O,t[27]=$,t[28]=E):E=t[28];let J;t[29]!==E||t[30]!==T?(J=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,T,E]}),t[29]=E,t[30]=T,t[31]=J):J=t[31];let U;return t[32]!==d||t[33]!==J?(U=n.jsx(Ee,{open:d,onOpenChange:v,children:J}),t[32]=d,t[33]=J,t[34]=U):U=t[34],U}function dn(t){return{...t,language:"en"}}function un(t){return{...t,language:"pt-BR"}}function mn({activeOrg:t}){return t&&(Je(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Ke()),null}function fn(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:l,opts:r,autosendValue:i}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const c=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,b=(s??c)!==c;let u;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(u=l.sidepanel);else if(!b){const S=e.main;S&&typeof S=="string"&&!ut(S)&&(o.main=S)}return u!==void 0&&(o.sidepanel=u),r?.autosend&&(o.autosend=i),o}const $e="studio:thread-layout:v1",gn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function hn(t,e,s,a=gn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>a;)l.shift();return l}function fe(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Re(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function pn(t,e){t&&Re(hn(fe(),t,e))}function yn(t){if(!t)return null;const e=fe().find(([s])=>s===t);return e?ze(e[1]):null}function Un(t){if(!t)return;const e=fe(),s=e.filter(([a])=>a!==t);s.length!==e.length&&Re(s)}function Me(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Hn(t){const e=I.c(10);let s;e[0]!==t?(s=Me(t),e[0]=t,e[1]=s):s=e[1];const a=re(s);let l;e[2]!==a.data?.prompts?(l=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==l||e[8]!==r?(i={isLoading:a.isLoading,prompts:l,tiles:r},e[6]=a.isLoading,e[7]=l,e[8]=r,e[9]=i):i=e[9],i}function xn(t){const e=I.c(31),{orgSlug:s,orgName:a,domain:l}=t,r=F();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const o=i,c=bn;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let b;e[3]!==r?(b=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=b):b=e[4];let u;e[5]!==b?(u=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[5]=b,e[6]=u):u=e[6];let S;e[7]!==l||e[8]!==a||e[9]!==r?(S=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=a,e[9]=r,e[10]=S):S=e[10];let m;e[11]!==S?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[11]=S,e[12]=m):m=e[12];let d;e[13]!==u||e[14]!==m?(d=n.jsxs("div",{className:"space-y-2",children:[u,m]}),e[13]=u,e[14]=m,e[15]=d):d=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let f;e[18]!==o||e[19]!==h?(f=n.jsx(D,{onClick:o,children:h}),e[18]=o,e[19]=h,e[20]=f):f=e[20];let p;e[21]!==r?(p=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=p):p=e[22];let y;e[23]!==p?(y=n.jsx(D,{variant:"ghost",onClick:c,children:p}),e[23]=p,e[24]=y):y=e[24];let x;e[25]!==y||e[26]!==f?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,y]}),e[25]=y,e[26]=f,e[27]=x):x=e[27];let v;return e[28]!==x||e[29]!==d?(v=n.jsxs(ee,{children:[g,d,x]}),e[28]=x,e[29]=d,e[30]=v):v=e[30],v}function bn(){window.location.href="/"}function wn(t){const e=I.c(8),{org:s,children:a}=t,r=St(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 o=i;let c;return e[4]!==a||e[5]!==s||e[6]!==o?(c=n.jsx(st,{org:s,project:o,children:a}),e[4]=a,e[5]=s,e[6]=o,e[7]=c):c=e[7],c}function Sn(){const t=Ge(),e=wt(),{org:s}=We(),a=Ae({strict:!1}),l=Ve({strict:!1}),r=a.org??"",i=a.taskId??"",o=(m,d,h=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:d,replace:h}),c=(m,d=!0)=>o(i,m,d),g=m=>c(d=>({...d,sidepanel:m})),b=(m,d,h)=>{const f=!!i&&i===m;i&&!f&&pn(i,{main:l.main,sidepanel:l.sidepanel});const p=f?null:yn(m),y=be(s.id).id;return o(m,x=>fn({prev:x,virtualMcpId:d,decopilotId:y,savedLayout:p,opts:h,autosendValue:mt}),!1)};return{openSidePanel:g,setTaskId:b,createNewTask:async(m,d)=>{const h=crypto.randomUUID(),f=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:h,virtual_mcp_id:f,...d?{branch:d}:{}})}catch{}b(h,f)},openTab:m=>o(i||crypto.randomUUID(),d=>({...d,main:m}))}}function vn(){const t=I.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Qe(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[i,o]=q.useState(!1),c=Ye(),g=a??"";let b;t[2]!==g?(b=Me(g),t[2]=g,t[3]=b):b=t[3];const u=!!a&&!r;let S;t[4]!==b||t[5]!==u?(S={...b,enabled:u},t[4]=b,t[5]=u,t[6]=S):S=t[6],re(S);const{data:m}=Z.useSession(),d=m?.user?.id;let h;t[7]!==a||t[8]!==d?(h=a&&d?Xe(d,a):null,t[7]=a,t[8]=d,t[9]=h):h=t[9];const f=h;let p,y;t[10]!==c?(p=()=>{const L=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&c.history.canGoBack()&&(z.preventDefault(),c.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[c],t[10]=c,t[11]=p,t[12]=y):(p=t[11],y=t[12]),q.useEffect(p,y);let x;t[13]!==a?(x=ce.activeOrganization(a),t[13]=a,t[14]=x):x=t[14];let v;t[15]!==a||t[16]!==d?(v=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(jn),z=ye(L);return L&&!z&&localStorage.setItem(X.lastOrgSlug(),a),d&&L&&et(d,a,L),L},t[15]=a,t[16]=d,t[17]=v):v=t[17];const N=f?f.data:void 0,j=f?.updatedAt;let k;t[18]!==v||t[19]!==N||t[20]!==j||t[21]!==x?(k={queryKey:x,queryFn:v,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=N,t[20]=j,t[21]=x,t[22]=k):k=t[22];const{data:w}=Ne(k),_=w?.id,T=w?.slug,{data:A}=vt(_,T),O=_??"",P=T??"";let C;t[23]!==O||t[24]!==P?(C=xt({connectionId:bt,orgId:O,orgSlug:P}),t[23]=O,t[24]=P,t[25]=C):C=t[25];const $=!!_&&!!T;let E;if(t[26]!==C||t[27]!==$?(E={...C,enabled:$},t[26]=C,t[27]=$,t[28]=E):E=t[28],re(E),!w){let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx(tt,{}),t[29]=L):L=t[29];let z;return t[30]!==a?(z=n.jsx(q.Suspense,{fallback:L,children:n.jsx(Pt,{orgSlug:a})}),t[30]=a,t[31]=z):z=t[31],z}if(ye(w)){localStorage.getItem(X.lastOrgSlug())===a&&localStorage.removeItem(X.lastOrgSlug());let L;return t[32]!==w.name?(L=n.jsx(Ze,{orgName:w.name}),t[32]=w.name,t[33]=L):L=t[33],L}if(A?.ssoRequired&&!A.authenticated){let L;return t[34]!==w.id||t[35]!==w.name||t[36]!==w.slug||t[37]!==A.domain?(L=n.jsx(xn,{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]=L):L=t[38],L}const U=w.logo??null;let M;t[39]!==w||t[40]!==U?(M={...w,logo:U},t[39]=w,t[40]=U,t[41]=M):M=t[41];let Q;t[42]!==w?(Q=n.jsx(mn,{activeOrg:w}),t[42]=w,t[43]=Q):Q=t[43];let ne;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(nt,{}),t[44]=ne):ne=t[44];let se;t[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Kt,{}),n.jsx(sn,{})]}),t[45]=se):se=t[45];let Y;t[46]!==i?(Y=n.jsx(Vt,{open:i,onOpenChange:o}),t[46]=i,t[47]=Y):Y=t[47];let oe;t[48]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(cn,{}),t[48]=oe):oe=t[48];let ie;return t[49]!==M||t[50]!==Q||t[51]!==Y?(ie=n.jsxs(wn,{org:M,children:[Q,ne,se,Y,oe]}),t[49]=M,t[50]=Q,t[51]=Y,t[52]=ie):ie=t[52],ie}function jn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function kn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(yt,{children:n.jsx(vn,{})}),t[0]=e):e=t[0],e}const Jn=Object.freeze(Object.defineProperty({__proto__:null,default:kn,usePanelActions:Sn},Symbol.toStringTag,{value:"Module"}));export{R as K,Hn as a,Un as f,ve as i,rn as m,Jn as s,Sn as u};
@@ -1 +1 @@
1
- import{c as b,m as g,j as o,cP as P,cp as R,H,cQ as A,cq as q,cR as V,cr as W,r as T,B as G,b4 as L,bs as F}from"./index-2KxPRjw5.js";import{i as Q}from"./LayoutLeft-Ciug-ep8.js";import{u as J}from"./use-mobile-CLE626Yq.js";import{i as K}from"./X-Baqkpp1k.js";import{b as z,T as B,a as D,c as k}from"./tooltip-CEu_we5y.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(q,{"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(K,{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(H,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function 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=J(),[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(z,{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(Q,{}),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(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(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(z,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=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(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]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,I as u};
1
+ import{c as b,m as g,j as o,cP as P,cp as R,H,cQ as A,cq as q,cR as V,cr as W,r as T,B as G,b4 as L,bs as F}from"./index-30J4z2dD.js";import{i as Q}from"./LayoutLeft-Cvh2z-Gq.js";import{u as J}from"./use-mobile-DKlFMukO.js";import{i as K}from"./X-3PgyJoHo.js";import{b as z,T as B,a as D,c as k}from"./tooltip-B-SCkbF9.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(q,{"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(K,{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(H,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function 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=J(),[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(z,{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(Q,{}),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(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(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(z,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=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(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]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,I as u};
@@ -1 +1 @@
1
- import{c as n,m as c,j as i}from"./index-2KxPRjw5.js";function r(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{r as S};
1
+ import{c as n,m as c,j as i}from"./index-30J4z2dD.js";function r(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{r as S};
@@ -1 +1 @@
1
- import{c as C,m as d,bs as m,j as l}from"./index-2KxPRjw5.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=l.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=a,e[4]=i):(a=e[3],i=e[4]);let s;e[5]!==t?(s=l.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=l.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
1
+ import{c as C,m as d,bs as m,j as l}from"./index-30J4z2dD.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=l.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=a,e[4]=i):(a=e[3],i=e[4]);let s;e[5]!==t?(s=l.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=l.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};