decocms 4.105.0 → 4.106.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/client/assets/{AlertCircle-492EEp2A.js → AlertCircle-DY_zDIC_.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DEAqBgfK.js → AreaChart-DVPFgrTE.js} +1 -1
  3. package/dist/client/assets/{ArrowRight-Ddlybx70.js → ArrowRight-4rUEqKVq.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-D_gyGK0X.js → ArrowUp-CJPXZRX0.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-Chggeoxo.js → ArrowUpRight-DQ1ltOUw.js} +1 -1
  6. package/dist/client/assets/{Check-B5KuwkVX.js → Check-Cnez_IQh.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-D3ZmgI8t.js → CheckCircle-pA7GzUJX.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-DTXciC2Y.js → ChevronDown-ncA3h8F6.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-BTtZur33.js → ChevronRight-DBBXusFc.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-BOcmGc7e.js → ChevronUp-C9y04a8F.js} +1 -1
  11. package/dist/client/assets/{Copy01-CAaBoZr7.js → Copy01-CnQ9-KvL.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-B8seWlU9.js → DotsVertical-nghs-9ch.js} +1 -1
  13. package/dist/client/assets/{Eye-BMnoA72h.js → Eye-NAV4B6_7.js} +1 -1
  14. package/dist/client/assets/{FilterLines-CpAgznVL.js → FilterLines-BVMKJFk4.js} +1 -1
  15. package/dist/client/assets/{Globe01-B-1bG2yF.js → Globe01-DoUM29Rz.js} +1 -1
  16. package/dist/client/assets/{Globe04-CCEFQFJh.js → Globe04-Cy3T2xAT.js} +1 -1
  17. package/dist/client/assets/{HardDrive-D1ThzSZL.js → HardDrive-CtHSCDeQ.js} +1 -1
  18. package/dist/client/assets/{Image01-396lPFTh.js → Image01-Dp9MuRd0.js} +1 -1
  19. package/dist/client/assets/{Key01-B6k80syQ.js → Key01-BZIwkIt-.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-DrmvAZtO.js → LayoutLeft-B2dvdNWS.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-Bj-DHKZ2.js → LinkExternal01-CSt2aBCB.js} +1 -1
  22. package/dist/client/assets/{Monitor01-BGhWWzLO.js → Monitor01-DlBaUGbP.js} +1 -1
  23. package/dist/client/assets/{Package-CkO_i381.js → Package-C_IRn5e4.js} +1 -1
  24. package/dist/client/assets/{Palette-DXYpYsID.js → Palette-BG4jjoTd.js} +1 -1
  25. package/dist/client/assets/{Play-BRYEOEKR.js → Play-tkSNItqO.js} +1 -1
  26. package/dist/client/assets/{Plus-n0d6qLEa.js → Plus-BjwUeIOu.js} +1 -1
  27. package/dist/client/assets/{SearchLg-CWL4NO6j.js → SearchLg-LcQ3wPaj.js} +1 -1
  28. package/dist/client/assets/{SearchMd-mEQCCGF2.js → SearchMd-DYFHECi9.js} +1 -1
  29. package/dist/client/assets/{Settings02-1z5a1jSn.js → Settings02-B8qG_3kP.js} +1 -1
  30. package/dist/client/assets/{Shield01-6qmS4aUT.js → Shield01-Dd4sDT_o.js} +1 -1
  31. package/dist/client/assets/{Star01-DVVpP6Mt.js → Star01-DY1NWiTb.js} +1 -1
  32. package/dist/client/assets/{Stars01-Byvzs38L.js → Stars01-1MV8ElRx.js} +1 -1
  33. package/dist/client/assets/{Stars02-vHkWqwAy.js → Stars02-CgAzcj_M.js} +1 -1
  34. package/dist/client/assets/{Sun-rLSQUUKZ.js → Sun-CUhaoFhq.js} +1 -1
  35. package/dist/client/assets/{SwitchHorizontal01-CQHdcmBH.js → SwitchHorizontal01-0Kq847c5.js} +1 -1
  36. package/dist/client/assets/{Tool01-DM0uV1pi.js → Tool01-DFAsyNUU.js} +1 -1
  37. package/dist/client/assets/{Tool02-B0-LSNq8.js → Tool02-RKDZaiJk.js} +1 -1
  38. package/dist/client/assets/{Trash01-DpAfQYpB.js → Trash01-DXzlmJ34.js} +1 -1
  39. package/dist/client/assets/{TrendUp01-BBNetlbH.js → TrendUp01-0srLzsOh.js} +1 -1
  40. package/dist/client/assets/{Upload01-CCm1ioeI.js → Upload01-BylKJ3WB.js} +1 -1
  41. package/dist/client/assets/{User01-CIB_r_NM.js → User01-xn3joisa.js} +1 -1
  42. package/dist/client/assets/{Users01-sXy9V9nC.js → Users01-DeKf9ivH.js} +1 -1
  43. package/dist/client/assets/{Users03-CAcpBuhQ.js → Users03-Dh_yamMu.js} +1 -1
  44. package/dist/client/assets/{X-DKUaOMiG.js → X-B-U9vY4e.js} +1 -1
  45. package/dist/client/assets/{XCircle-D6ezyvCf.js → XCircle-BNxdXQeR.js} +1 -1
  46. package/dist/client/assets/{XClose-D59rN56m.js → XClose-BIVjAPO7.js} +1 -1
  47. package/dist/client/assets/{Zap-FhQNjqjY.js → Zap-DLI-HN8x.js} +1 -1
  48. package/dist/client/assets/{ZapSquare-BEOr1Qo2.js → ZapSquare-C8QQPbrq.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-9c6sHVLZ.js → ZoomOut-C_iv5T7a.js} +1 -1
  50. package/dist/client/assets/{access-gate-axaZ1vUD.js → access-gate-DoRnqeAN.js} +1 -1
  51. package/dist/client/assets/{add-section-modal-DokvGJIt.js → add-section-modal-BopI2eId.js} +1 -1
  52. package/dist/client/assets/{agent-icon-JkG_B24O.js → agent-icon-BnGJPmET.js} +1 -1
  53. package/dist/client/assets/agents-list-BEkZ8SA8.js +1 -0
  54. package/dist/client/assets/{ai-providers-DVZGLcnx.js → ai-providers-CoOLwd4Q.js} +1 -1
  55. package/dist/client/assets/{alert-C4kpJoy4.js → alert-KDufTM8R.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-ByGGCVaW.js → alert-dialog-wCHBPMgf.js} +1 -1
  57. package/dist/client/assets/app-editor-Bg3iSXd6.js +1 -0
  58. package/dist/client/assets/{auth-DYlyeYuK.js → auth-Bkh-2aIu.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-yLacPHoj.js → auth-catchall-BEGXdoCZ.js} +1 -1
  60. package/dist/client/assets/{auth-entry-DDBfLf77.js → auth-entry-DSEtXMqf.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-CqqeWuFf.js → auth-split-layout-NXKBpHJt.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-Cs_ey_Si.js → authenticate-and-persist-oauth-DM0vv-ut.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-CThb8tG3.js → automation-list-row-EUdIsHnf.js} +1 -1
  64. package/dist/client/assets/{automation-runs-BXiPs_VZ.js → automation-runs-DlDnbzVo.js} +1 -1
  65. package/dist/client/assets/{automations-CgMxz4Pb.js → automations-BcVzcRj2.js} +1 -1
  66. package/dist/client/assets/{autosend-CEnJWoYu.js → autosend-6si99-kP.js} +1 -1
  67. package/dist/client/assets/{avatar-h4p7JkEM.js → avatar-D-XB1bPv.js} +1 -1
  68. package/dist/client/assets/{badge-Bp_khuBP.js → badge-CIuy-tuu.js} +1 -1
  69. package/dist/client/assets/{block-document-DFy6dXPM.js → block-document--FuBFCwM.js} +1 -1
  70. package/dist/client/assets/{brand-context-fZVDwuzx.js → brand-context-xzUxgxTN.js} +1 -1
  71. package/dist/client/assets/{buckets-B4aetspo.js → buckets-BvuEc8o_.js} +1 -1
  72. package/dist/client/assets/bulk-category-panel-y6kpzyhI.js +1 -0
  73. package/dist/client/assets/{calendar-B3zsx3QX.js → calendar-DmxrSWLN.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-Azqebb7t.js → capability-load-error-BmWjgACv.js} +1 -1
  75. package/dist/client/assets/{card-D2g28w4T.js → card-cDcO8pqf.js} +1 -1
  76. package/dist/client/assets/category-editor-bL-IE2xw.js +1 -0
  77. package/dist/client/assets/{chat-context-CB8jbSht.js → chat-context-CuCijtZ1.js} +1 -1
  78. package/dist/client/assets/{checkbox-BY_iLtFn.js → checkbox-IKaHw5Sh.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-BvR7NCLC.js → cli-auth-success-CqjvHcoW.js} +1 -1
  80. package/dist/client/assets/{collection-detail-nENYDdvy.js → collection-detail-JQP_kejq.js} +1 -1
  81. package/dist/client/assets/{collection-display-button-C5l35Zv5.js → collection-display-button-BWuPUEJH.js} +1 -1
  82. package/dist/client/assets/{collection-search-CnSAD3aA.js → collection-search-CXWHt_gZ.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-CmAtnFvh.js → collection-table-wrapper-DoZwoCNS.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-Caaa8VYN.js → collection-tabs-1Vmi5jiO.js} +1 -1
  85. package/dist/client/assets/{command-BfdqzURV.js → command-BOxyJvkQ.js} +1 -1
  86. package/dist/client/assets/{commerce-onboarding-Bb3mAsEa.js → commerce-onboarding-Bqa-QcZ0.js} +1 -1
  87. package/dist/client/assets/{companions-core-BkvWSECf.js → companions-core-Dh0Lubu9.js} +1 -1
  88. package/dist/client/assets/{connect-desktop-dialog-kJLqahzj.js → connect-desktop-dialog-B7zmuhEM.js} +1 -1
  89. package/dist/client/assets/{connect-DaaAOtif.js → connect-llUfgd77.js} +1 -1
  90. package/dist/client/assets/{connection-card-F8nXjLqn.js → connection-card--LroopWJ.js} +1 -1
  91. package/dist/client/assets/{connection-detail-DUSprILA.js → connection-detail-xFcxOBhE.js} +1 -1
  92. package/dist/client/assets/{connection-form-helpers-C9rI-4sl.js → connection-form-helpers-CzrFES2G.js} +1 -1
  93. package/dist/client/assets/{connections-ClHUezf0.js → connections-DPsMVF-m.js} +1 -1
  94. package/dist/client/assets/deco-site-production-url-CaKZ7xBn.js +1 -0
  95. package/dist/client/assets/{decopilot-sse-pool-Cbh8qGU5.js → decopilot-sse-pool-Baab5vaV.js} +1 -1
  96. package/dist/client/assets/{dialog-CfZpY_2q.js → dialog-DRW5Z6kg.js} +1 -1
  97. package/dist/client/assets/{domain-settings-BPHG1eY7.js → domain-settings-ByeSQQ2j.js} +1 -1
  98. package/dist/client/assets/{drawer-FjwmDRnN.js → drawer-B2XvIIAe.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-Co3SNGsi.js → dropdown-menu-CqLN4WnX.js} +1 -1
  100. package/dist/client/assets/{empty-state-BmD_9SdS.js → empty-state-Bb0NBhmq.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-C6WAUA-A.js → extract-connection-data-DOMEDQks.js} +1 -1
  102. package/dist/client/assets/file-explorer-BqzbHsNq.js +2 -0
  103. package/dist/client/assets/{file-type-icon-CkvpmZpM.js → file-type-icon-BoXrEv8-.js} +1 -1
  104. package/dist/client/assets/{files-DqIz0vBK.js → files-BZ0ExIG_.js} +1 -1
  105. package/dist/client/assets/{form-D9b_xMf4.js → form-BDz4mzCI.js} +1 -1
  106. package/dist/client/assets/{general-B1teWa2G.js → general-wSFMY7ZS.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-DKILGua9.js → github-repo-picker-Cf7WxVaD.js} +1 -1
  108. package/dist/client/assets/{hooks-DX67BKd6.js → hooks-BBLaeAIm.js} +1 -1
  109. package/dist/client/assets/{index-DRA8GwsZ.js → index-B515rC-W.js} +1 -1
  110. package/dist/client/assets/{index-BUv3Mmxm.js → index-BkAHmUua.js} +27 -27
  111. package/dist/client/assets/{index-BTACFcn3.js → index-Byz54suu.js} +1 -1
  112. package/dist/client/assets/{index-vlkNtRf9.js → index-CYBuqj-B.js} +1 -1
  113. package/dist/client/assets/{index-DHV3B5K5.js → index-CaHnwqJ5.js} +1 -1
  114. package/dist/client/assets/{index-C0goCxJd.js → index-CmDlyqXv.js} +1 -1
  115. package/dist/client/assets/{index-DUDC1cQm.js → index-CpjGdekK.js} +1 -1
  116. package/dist/client/assets/{index-80l59WlJ.js → index-DKqSqqBL.js} +1 -1
  117. package/dist/client/assets/{index-Dyk7ikoX.js → index-DPUSzQFm.js} +27 -27
  118. package/dist/client/assets/{index-CXYm1db3.js → index-DPm1wrvx.js} +1 -1
  119. package/dist/client/assets/{index-CNjiAiv0.js → index-DjiPLxSv.js} +1 -1
  120. package/dist/client/assets/{index-C0pe4Aj2.js → index-I0yOjx7S.js} +3 -3
  121. package/dist/client/assets/{index-DpBmVLF2.js → index-cX02Wkot.js} +1 -1
  122. package/dist/client/assets/{index-redirect-vLff4NOz.js → index-redirect-COcF7DoT.js} +1 -1
  123. package/dist/client/assets/{input-CrADDofK.js → input-C6HduerO.js} +1 -1
  124. package/dist/client/assets/{integration-icon-CucAI7jv.js → integration-icon-D4PGsH2F.js} +1 -1
  125. package/dist/client/assets/{invite-member-dialog-D4NuIerI.js → invite-member-dialog-Bejbrcbz.js} +1 -1
  126. package/dist/client/assets/{label-CgRI3EAv.js → label-CGAP8lVf.js} +1 -1
  127. package/dist/client/assets/{layout-BLasXy5s.js → layout-DrnUKgNU.js} +1 -1
  128. package/dist/client/assets/{login-DNMfeoOI.js → login-A6XZUv1X.js} +1 -1
  129. package/dist/client/assets/{mcp-oauth-W2q9PxhY.js → mcp-oauth-BfBEuniq.js} +1 -1
  130. package/dist/client/assets/{members-gkvguwUu.js → members-DiEYkGBN.js} +1 -1
  131. package/dist/client/assets/{monaco-editor-BtyI72zE.js → monaco-editor-Da497IIr.js} +1 -1
  132. package/dist/client/assets/{monitoring-stats-row-DEwAdd22.js → monitoring-stats-row-DZqUxWwZ.js} +1 -1
  133. package/dist/client/assets/{multi-select-CvUZtk1N.js → multi-select-DDYBF_ep.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-BoqqypMU.js → oauth-callback-DFYta4AR.js} +1 -1
  135. package/dist/client/assets/{oauth-callback-ai-provider-D34gLcnd.js → oauth-callback-ai-provider-CfnPJ6yF.js} +1 -1
  136. package/dist/client/assets/{onboarding-WOkgg_xq.js → onboarding-BHO_Rnzq.js} +1 -1
  137. package/dist/client/assets/{org-install-qJDeUsWL.js → org-install-2TXEdZlz.js} +1 -1
  138. package/dist/client/assets/{org-layout-xRPdPHsF.js → org-layout-Cjj7Fm4r.js} +1 -1
  139. package/dist/client/assets/{organization-choice-DLt3vbdn.js → organization-choice-CkWg9KNH.js} +1 -1
  140. package/dist/client/assets/{orgs-r8WNelqp.js → orgs-KlPXlyiP.js} +1 -1
  141. package/dist/client/assets/{page-seo-form-Z4BD-gHj.js → page-seo-form-DjriBZMx.js} +1 -1
  142. package/dist/client/assets/page-seo-sheet-DD3urSRp.js +1 -0
  143. package/dist/client/assets/{popover-DLFsO9ql.js → popover-B3xv6k0f.js} +1 -1
  144. package/dist/client/assets/post-editor-BavM-_1w.js +1 -0
  145. package/dist/client/assets/{primitives-DymvxVoH.js → primitives-4r5UvWxF.js} +1 -1
  146. package/dist/client/assets/{profile-3e8Rritk.js → profile-DCVo9oBR.js} +1 -1
  147. package/dist/client/assets/project-app-view-CIsYoev0.js +1 -0
  148. package/dist/client/assets/record-editor-DaQl56m6.js +1 -0
  149. package/dist/client/assets/redirect-editor-B6fqsY-U.js +1 -0
  150. package/dist/client/assets/registry-CnzeAXf6.js +2 -0
  151. package/dist/client/assets/{registry-layout-CueA0Phw.js → registry-layout-fNbPN3WV.js} +1 -1
  152. package/dist/client/assets/{reports-BvwvhCgB.js → reports-jXwe3eD7.js} +1 -1
  153. package/dist/client/assets/{require-capability-DEQ0QqLK.js → require-capability-CHlf1rTn.js} +1 -1
  154. package/dist/client/assets/{required-auth-layout-Cx4vAYLa.js → required-auth-layout-DFIfQpbY.js} +1 -1
  155. package/dist/client/assets/{reset-password-BJ4m64S2.js → reset-password-DbCY-Kmq.js} +1 -1
  156. package/dist/client/assets/{roles-BDblC0hV.js → roles-BNMbLFNf.js} +1 -1
  157. package/dist/client/assets/{search-input-A-rUbWgA.js → search-input-BDbpjvkV.js} +1 -1
  158. package/dist/client/assets/{secrets-YwMUYNpK.js → secrets-BlxKtTsE.js} +1 -1
  159. package/dist/client/assets/{sections-editor-QZQZe38v.js → sections-editor-DZ6I4T5H.js} +2 -2
  160. package/dist/client/assets/{select-BpDhPcun.js → select-DmXTa4oO.js} +1 -1
  161. package/dist/client/assets/{select-model-CatZPcMe.js → select-model-CdVm102U.js} +1 -1
  162. package/dist/client/assets/{self-tool-result-CR7hwEPJ.js → self-tool-result-C7Qwny0_.js} +1 -1
  163. package/dist/client/assets/seo-editor-BjIwY6PS.js +1 -0
  164. package/dist/client/assets/{settings-layout-DF7IHwQP.js → settings-layout-BzzXOvqO.js} +1 -1
  165. package/dist/client/assets/{settings-section-BMZXZlUy.js → settings-section-Dz9Hgc5z.js} +1 -1
  166. package/dist/client/assets/{shell-controls-rjSUQvGy.js → shell-controls-DfAgWbzA.js} +1 -1
  167. package/dist/client/assets/{shell-layout-CXlEJw1W.js → shell-layout-D8oi0xqO.js} +1 -1
  168. package/dist/client/assets/{sidebar-B5e9YFZV.js → sidebar-BPtwSHPU.js} +1 -1
  169. package/dist/client/assets/{skeleton-iIH-l5ge.js → skeleton-DL2SpY2q.js} +1 -1
  170. package/dist/client/assets/{sso-DXqtVqzR.js → sso-2ehoRgV-.js} +1 -1
  171. package/dist/client/assets/store-registry-By05kKAJ.js +2 -0
  172. package/dist/client/assets/{store-CBMWVYX8.js → store-rfQUPJd5.js} +1 -1
  173. package/dist/client/assets/{studio-tools-BMu9ujdK.js → studio-tools-NTdqO4cY.js} +1 -1
  174. package/dist/client/assets/{switch-Bm3cV4VT.js → switch-BV4z0b9T.js} +1 -1
  175. package/dist/client/assets/{table-11-lI2-U.js → table-CnZR0VSr.js} +1 -1
  176. package/dist/client/assets/{tabs-B1IIhvpI.js → tabs-BAuVnieJ.js} +1 -1
  177. package/dist/client/assets/{textarea-C7Ka9--4.js → textarea-BfGzPoPY.js} +1 -1
  178. package/dist/client/assets/{toggle-group-aVQoPUrJ.js → toggle-group-CYMdMteR.js} +1 -1
  179. package/dist/client/assets/{toolbar-Cl3ZgcxS.js → toolbar-PLpyNcZI.js} +1 -1
  180. package/dist/client/assets/{toolbar-icon-button-DXJqGPLR.js → toolbar-icon-button-CeJ-M4Lq.js} +1 -1
  181. package/dist/client/assets/{tooltip-CXgiQhhm.js → tooltip-DWRiLMWp.js} +1 -1
  182. package/dist/client/assets/{use-ai-providers-MB5_8NZz.js → use-ai-providers-BjwhishN.js} +1 -1
  183. package/dist/client/assets/{use-api-keys-DqQKr5gb.js → use-api-keys-DDbCgoYH.js} +1 -1
  184. package/dist/client/assets/{use-automations-BadyXyvk.js → use-automations-CmDGzCKs.js} +1 -1
  185. package/dist/client/assets/{use-autosave-aQZAMQ3d.js → use-autosave-2cLkLrpA.js} +1 -1
  186. package/dist/client/assets/{use-capability-DOkFocRF.js → use-capability-D6Cr5XLD.js} +1 -1
  187. package/dist/client/assets/{use-clock-tick-DH_5Vx8H.js → use-clock-tick-YX4GFMxo.js} +1 -1
  188. package/dist/client/assets/{use-connection-CvtYxdhN.js → use-connection-DZt9M_kE.js} +1 -1
  189. package/dist/client/assets/{use-copy-B8XjwaPC.js → use-copy-D-oq_4A-.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-BMw67F1n.js → use-create-virtual-mcp-CkptpNw0.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-Ca3ejIda.js → use-debounced-autosave-BRdvgfun.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-uO_bm41c.js → use-debounced-value-nEW22WWj.js} +1 -1
  193. package/dist/client/assets/{use-deco-credits-BWO36018.js → use-deco-credits-B7d_ENOZ.js} +1 -1
  194. package/dist/client/assets/{use-decopilot-events-CGYwsG7F.js → use-decopilot-events-Bt_io3vc.js} +1 -1
  195. package/dist/client/assets/{use-delete-connection-B45LKTd-.js → use-delete-connection-C9ZwRw1E.js} +1 -1
  196. package/dist/client/assets/{use-deployment-admin-TjdSAKBI.js → use-deployment-admin-CaK-Wxy5.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-D0UXwKC-.js → use-file-configs-CI89wAsg.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-Hw6OI4g1.js → use-infinite-scroll-CshkwFkA.js} +1 -1
  199. package/dist/client/assets/{use-join-requests-lAPAhnwD.js → use-join-requests-HMxdQYrC.js} +1 -1
  200. package/dist/client/assets/{use-mcp-auth-status-DUmtbF9a.js → use-mcp-auth-status-DUifxaiD.js} +1 -1
  201. package/dist/client/assets/{use-mcp-client-DmQaIOOa.js → use-mcp-client-D4kRoqsh.js} +1 -1
  202. package/dist/client/assets/{use-mcp-tools-a_XYf5q4.js → use-mcp-tools-BYxoQiZ3.js} +1 -1
  203. package/dist/client/assets/{use-members-BV0XC_mc.js → use-members-D4YIm-jB.js} +1 -1
  204. package/dist/client/assets/{use-mobile-Drq4EVlE.js → use-mobile-C_lJg_dg.js} +1 -1
  205. package/dist/client/assets/{use-navigate-to-agent-Bot51FWx.js → use-navigate-to-agent-DjMxrQKV.js} +1 -1
  206. package/dist/client/assets/{use-org-auth-client-CBYYA83j.js → use-org-auth-client-DgP2VDdS.js} +1 -1
  207. package/dist/client/assets/{use-org-sso-8BJQP_6U.js → use-org-sso-QZb4zZJx.js} +1 -1
  208. package/dist/client/assets/{use-organization-roles-FQaweo2A.js → use-organization-roles-FhltwO5c.js} +1 -1
  209. package/dist/client/assets/{use-organization-settings-C_BR8EF_.js → use-organization-settings-vlBvr0tn.js} +1 -1
  210. package/dist/client/assets/{use-registry-app-ZmEmrGrH.js → use-registry-app-K85L0rUl.js} +1 -1
  211. package/dist/client/assets/{use-registry-connections-C3-SU_T2.js → use-registry-connections-B3nNZ4qn.js} +1 -1
  212. package/dist/client/assets/{use-secrets-BcAG0HqF.js → use-secrets-B0jJgRIg.js} +1 -1
  213. package/dist/client/assets/{use-status-sounds-rDer6b7Q.js → use-status-sounds-z4VxJ46O.js} +1 -1
  214. package/dist/client/assets/{use-view-mode-nVUSu4-W.js → use-view-mode-DQq45P_3.js} +1 -1
  215. package/dist/client/assets/{use-virtual-mcp-Cf1nyRqm.js → use-virtual-mcp-GuNcK9nz.js} +1 -1
  216. package/dist/client/assets/useInfiniteQuery-BXBurSQ0.js +1 -0
  217. package/dist/client/assets/{useQueries-BoKQ4HCM.js → useQueries-DRp_cFJk.js} +1 -1
  218. package/dist/client/assets/{useRouterState-DPiq3iqZ.js → useRouterState-B-qu9Nmh.js} +1 -1
  219. package/dist/client/assets/useSuspenseInfiniteQuery-CLVVU3Ta.js +1 -0
  220. package/dist/client/assets/{users-C_J62pbJ.js → users-Cg-wv6bv.js} +1 -1
  221. package/dist/client/assets/{variant-calendar-DehNI1DC.js → variant-calendar-BFuuTNsI.js} +1 -1
  222. package/dist/client/assets/{view-mode-toggle-VHJQUsyn.js → view-mode-toggle-Byh8oua5.js} +1 -1
  223. package/dist/client/index.html +1 -1
  224. package/dist/server/cli.js +175 -126
  225. package/dist/server/server.js +14 -14
  226. package/package.json +1 -1
  227. package/dist/client/assets/agents-list-B1NKYkwk.js +0 -1
  228. package/dist/client/assets/app-editor-BeXRyBkE.js +0 -1
  229. package/dist/client/assets/bulk-category-panel-gIdN0C2r.js +0 -1
  230. package/dist/client/assets/category-editor-BpvOF675.js +0 -1
  231. package/dist/client/assets/file-explorer-DqNiOL8G.js +0 -2
  232. package/dist/client/assets/page-seo-sheet-BI8dc_BJ.js +0 -1
  233. package/dist/client/assets/post-editor-Cpt2UCzl.js +0 -1
  234. package/dist/client/assets/project-app-view-CAalALic.js +0 -1
  235. package/dist/client/assets/record-editor-CUXDJmZd.js +0 -1
  236. package/dist/client/assets/redirect-editor-C90Qs93V.js +0 -1
  237. package/dist/client/assets/registry-DoqNLs97.js +0 -2
  238. package/dist/client/assets/seo-editor-BFPg6rGR.js +0 -1
  239. package/dist/client/assets/store-registry-DN6ZDMrJ.js +0 -2
  240. package/dist/client/assets/useInfiniteQuery-CVGu7rzp.js +0 -1
  241. package/dist/client/assets/useSuspenseInfiniteQuery-CjrVCjrM.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-DPUSzQFm.js";import{i as ke}from"./ChevronRight-DBBXusFc.js";import{a6 as fe}from"./agent-icon-BnGJPmET.js";import{m as xe}from"./automation-runs-DlDnbzVo.js";import{r as Ne,u as we,a as _e,b as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-DjriBZMx.js";import{a5 as ue,r as Ke}from"./index-BkAHmUua.js";import{a as ye}from"./Image01-Dp9MuRd0.js";import"./AlertCircle-DY_zDIC_.js";import"./Tool01-DFAsyNUU.js";import"./ArrowUp-CJPXZRX0.js";import"./Settings02-B8qG_3kP.js";import"./Tool02-RKDZaiJk.js";import"./ArrowRight-4rUEqKVq.js";import"./ArrowUpRight-DQ1ltOUw.js";import"./TrendUp01-0srLzsOh.js";import"./ZapSquare-C8QQPbrq.js";import"./ZoomOut-C_iv5T7a.js";import"./Users03-Dh_yamMu.js";import"./CheckCircle-pA7GzUJX.js";import"./Check-Cnez_IQh.js";import"./ChevronDown-ncA3h8F6.js";import"./ChevronUp-C9y04a8F.js";import"./DotsVertical-nghs-9ch.js";import"./Stars02-CgAzcj_M.js";import"./Copy01-CnQ9-KvL.js";import"./Globe01-DoUM29Rz.js";import"./Eye-NAV4B6_7.js";import"./FilterLines-BVMKJFk4.js";import"./Star01-DY1NWiTb.js";import"./Globe04-Cy3T2xAT.js";import"./SwitchHorizontal01-0Kq847c5.js";import"./HardDrive-CtHSCDeQ.js";import"./Key01-BZIwkIt-.js";import"./LayoutLeft-B2dvdNWS.js";import"./XCircle-BNxdXQeR.js";import"./LinkExternal01-CSt2aBCB.js";import"./Monitor01-DlBaUGbP.js";import"./Sun-CUhaoFhq.js";import"./Package-C_IRn5e4.js";import"./Palette-BG4jjoTd.js";import"./Play-tkSNItqO.js";import"./Plus-BjwUeIOu.js";import"./SearchLg-LcQ3wPaj.js";import"./SearchMd-DYFHECi9.js";import"./Shield01-Dd4sDT_o.js";import"./Stars01-1MV8ElRx.js";import"./Trash01-DXzlmJ34.js";import"./Upload01-BylKJ3WB.js";import"./User01-xn3joisa.js";import"./Users01-DeKf9ivH.js";import"./XClose-BIVjAPO7.js";import"./X-B-U9vY4e.js";import"./Zap-DLI-HN8x.js";import"./select-DmXTa4oO.js";import"./tooltip-DWRiLMWp.js";import"./useInfiniteQuery-BXBurSQ0.js";import"./use-infinite-scroll-CshkwFkA.js";import"./use-connection-DZt9M_kE.js";import"./use-mcp-client-D4kRoqsh.js";import"./auth-Bkh-2aIu.js";import"./use-virtual-mcp-GuNcK9nz.js";import"./card-cDcO8pqf.js";import"./sidebar-BPtwSHPU.js";import"./use-mobile-C_lJg_dg.js";import"./table-CnZR0VSr.js";import"./empty-state-Bb0NBhmq.js";import"./use-members-D4YIm-jB.js";import"./use-org-auth-client-DgP2VDdS.js";import"./use-clock-tick-YX4GFMxo.js";import"./use-automations-CmDGzCKs.js";import"./studio-tools-NTdqO4cY.js";import"./useSuspenseInfiniteQuery-CLVVU3Ta.js";import"./avatar-D-XB1bPv.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D-oq_4A-.js";import"./file-type-icon-BoXrEv8-.js";import"./dialog-DRW5Z6kg.js";import"./tab-id-BijBBRwE.js";import"./hooks-BBLaeAIm.js";import"./decopilot-sse-pool-Baab5vaV.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-CuCijtZ1.js";import"./autosend-6si99-kP.js";import"./use-ai-providers-BjwhishN.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-Bt_io3vc.js";import"./use-organization-settings-vlBvr0tn.js";import"./monaco-editor-Da497IIr.js";import"./index-CmDlyqXv.js";import"./index-DPm1wrvx.js";import"./calendar-DmxrSWLN.js";import"./shell-layout-D8oi0xqO.js";import"./required-auth-layout-DFIfQpbY.js";import"./use-org-sso-QZb4zZJx.js";import"./integration-icon-D4PGsH2F.js";import"./use-navigate-to-agent-DjMxrQKV.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DVPFgrTE.js";import"./form-BDz4mzCI.js";import"./label-CGAP8lVf.js";import"./input-C6HduerO.js";import"./switch-BV4z0b9T.js";import"./drawer-B2XvIIAe.js";import"./collection-search-CXWHt_gZ.js";import"./index-I0yOjx7S.js";import"./get-initials-D-f_fDFw.js";import"./popover-B3xv6k0f.js";import"./use-registry-app-K85L0rUl.js";import"./use-mcp-tools-BYxoQiZ3.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-DM0vv-ut.js";import"./mcp-oauth-BfBEuniq.js";import"./extract-connection-data-DOMEDQks.js";import"./dropdown-menu-CqLN4WnX.js";import"./command-BOxyJvkQ.js";import"./index-CpjGdekK.js";import"./companions-core-Dh0Lubu9.js";import"./tabs-BAuVnieJ.js";import"./toggle-group-CYMdMteR.js";import"./use-deco-credits-B7d_ENOZ.js";import"./connection-card--LroopWJ.js";import"./use-registry-connections-B3nNZ4qn.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BfGzPoPY.js";import"./connection-form-helpers-CzrFES2G.js";import"./collection-tabs-1Vmi5jiO.js";import"./badge-CIuy-tuu.js";import"./connect-desktop-dialog-B7zmuhEM.js";import"./select-model-CdVm102U.js";import"./checkbox-IKaHw5Sh.js";import"./skeleton-DL2SpY2q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Dz9Hgc5z.js";import"./index-Byz54suu.js";import"./alert-dialog-wCHBPMgf.js";import"./toolbar-PLpyNcZI.js";import"./use-debounced-value-nEW22WWj.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-z4VxJ46O.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-D6Cr5XLD.js";import"./toolbar-icon-button-CeJ-M4Lq.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-DUifxaiD.js";import"./use-debounced-autosave-BRdvgfun.js";import"./index-cX02Wkot.js";import"./search-input-BDbpjvkV.js";import"./github-repo-picker-Cf7WxVaD.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-B0jJgRIg.js";import"./useQueries-DRp_cFJk.js";import"./use-file-configs-CI89wAsg.js";import"./automation-list-row-EUdIsHnf.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 Ai(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{Ai as SeoEditor};
@@ -1 +1 @@
1
- import{c as j,b as q,j as t,f as X,F as D,m as z,y as K,L as T,q as E,X as G,a as B,k as U,r as V,O as Y}from"./index-Dyk7ikoX.js";import{u as Z}from"./useRouterState-DPiq3iqZ.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-B5e9YFZV.js";import{a as le}from"./index-DpBmVLF2.js";import{n as re,c as oe,a as ae,d as ce,b as me,i as F}from"./ZapSquare-BEOr1Qo2.js";import{t as fe,a as A}from"./Users03-CAcpBuhQ.js";import{i as de}from"./HardDrive-D1ThzSZL.js";import{i as xe}from"./Key01-B6k80syQ.js";import{n as be}from"./LinkExternal01-Bj-DHKZ2.js";import{i as ue}from"./Shield01-6qmS4aUT.js";import{s as ge}from"./User01-CIB_r_NM.js";import{i as he}from"./Zap-FhQNjqjY.js";import{a as pe}from"./use-capability-DOkFocRF.js";import{u as je}from"./use-join-requests-lAPAhnwD.js";import{u as H}from"./use-mobile-Drq4EVlE.js";import{u as ye}from"./use-status-sounds-rDer6b7Q.js";import{T as _}from"./toolbar-Cl3ZgcxS.js";import{S as _e,M as ve}from"./shell-controls-rjSUQvGy.js";import"./LayoutLeft-DrmvAZtO.js";import"./X-DKUaOMiG.js";import"./tooltip-CXgiQhhm.js";import"./studio-tools-BMu9ujdK.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-CGYwsG7F.js";import"./decopilot-sse-pool-Cbh8qGU5.js";import"./backoff-CrEUbyZT.js";import"./toolbar-icon-button-DXJqGPLR.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=pe(),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(fe,{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(oe,{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 h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ae,{size:14}),e[14]=h):h=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(he,{size:14}),e[16]=y):y=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ce,{size:14}),e[17]=p):p=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(me,{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(K,{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:h,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:p,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}=X(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,h)=>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",h>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.105.0"]})}),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 h;s[5]!==a||s[6]!==o||s[7]!==l?(h=(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(p=>t.jsxs(T,{to:p.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(p.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:p.icon,badge:p.badge}),t.jsx("span",{className:"truncate",children:p.label})]},p.key))]},u.key),s[5]=a,s[6]=o,s[7]=l,s[8]=h):h=s[8],r=i.map(h),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.105.0"]})}),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}=D();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(U,{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(V.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 ns(){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,ns as default};
1
+ import{c as j,b as q,j as t,f as X,F as D,m as z,y as K,L as T,q as E,X as G,a as B,k as U,r as V,O as Y}from"./index-DPUSzQFm.js";import{u as Z}from"./useRouterState-B-qu9Nmh.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-BPtwSHPU.js";import{a as le}from"./index-cX02Wkot.js";import{n as re,c as oe,a as ae,d as ce,b as me,i as F}from"./ZapSquare-C8QQPbrq.js";import{t as fe,a as A}from"./Users03-Dh_yamMu.js";import{i as de}from"./HardDrive-CtHSCDeQ.js";import{i as xe}from"./Key01-BZIwkIt-.js";import{n as be}from"./LinkExternal01-CSt2aBCB.js";import{i as ue}from"./Shield01-Dd4sDT_o.js";import{s as ge}from"./User01-xn3joisa.js";import{i as he}from"./Zap-DLI-HN8x.js";import{a as pe}from"./use-capability-D6Cr5XLD.js";import{u as je}from"./use-join-requests-HMxdQYrC.js";import{u as H}from"./use-mobile-C_lJg_dg.js";import{u as ye}from"./use-status-sounds-z4VxJ46O.js";import{T as _}from"./toolbar-PLpyNcZI.js";import{S as _e,M as ve}from"./shell-controls-DfAgWbzA.js";import"./LayoutLeft-B2dvdNWS.js";import"./X-B-U9vY4e.js";import"./tooltip-DWRiLMWp.js";import"./studio-tools-NTdqO4cY.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-Bt_io3vc.js";import"./decopilot-sse-pool-Baab5vaV.js";import"./backoff-CrEUbyZT.js";import"./toolbar-icon-button-CeJ-M4Lq.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=pe(),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(fe,{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(oe,{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 h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ae,{size:14}),e[14]=h):h=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(he,{size:14}),e[16]=y):y=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ce,{size:14}),e[17]=p):p=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(me,{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(K,{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:h,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:p,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}=X(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,h)=>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",h>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.106.0"]})}),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 h;s[5]!==a||s[6]!==o||s[7]!==l?(h=(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(p=>t.jsxs(T,{to:p.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(p.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:p.icon,badge:p.badge}),t.jsx("span",{className:"truncate",children:p.label})]},p.key))]},u.key),s[5]=a,s[6]=o,s[7]=l,s[8]=h):h=s[8],r=i.map(h),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.106.0"]})}),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}=D();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(U,{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(V.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 ns(){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,ns as default};
@@ -1 +1 @@
1
- import{c as v,m as N,j as r,r as S}from"./index-Dyk7ikoX.js";import{C as w}from"./card-D2g28w4T.js";import{i as E}from"./ArrowUpRight-Chggeoxo.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-DPUSzQFm.js";import{C as w}from"./card-cDcO8pqf.js";import{i as E}from"./ArrowUpRight-DQ1ltOUw.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-Dyk7ikoX.js";import{u as d,m as h,p as S,q as x}from"./sidebar-B5e9YFZV.js";import{i as g}from"./LayoutLeft-DrmvAZtO.js";import{T as j}from"./toolbar-icon-button-DXJqGPLR.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-DPUSzQFm.js";import{u as d,m as h,p as S,q as x}from"./sidebar-BPtwSHPU.js";import{i as g}from"./LayoutLeft-B2dvdNWS.js";import{T as j}from"./toolbar-icon-button-CeJ-M4Lq.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 R,e as ae,j as n,B as $,t as te,bX as ee,y as je,a as Z,w as Me,x as ke,K as ce,bY as Re,bZ as Fe,G,m as ge,r as F,n as re,aA as he,v as Be,b_ as Ue,q as pe,b$ as He,c0 as Je,d as Ke,F as Ge,f as Ne,u as Ve,V as We,a$ as Qe,c1 as Ye,c2 as xe,c3 as Xe,c4 as Ze,S as et,O as tt,c5 as nt}from"./index-Dyk7ikoX.js";import{A as de}from"./avatar-h4p7JkEM.js";import{t as _e,a as st}from"./Users03-CAcpBuhQ.js";import{i as ot}from"./SearchLg-CWL4NO6j.js";import{i as it,s as at,a as U,n as rt}from"./Stars02-vHkWqwAy.js";import{s as lt}from"./XClose-D59rN56m.js";import{i as K}from"./CheckCircle-D3ZmgI8t.js";import{i as ye}from"./FilterLines-CpAgznVL.js";import{i as X}from"./Zap-FhQNjqjY.js";import{a as Ae,b as Te,d as Oe,e as Ce,h as ct,c as dt}from"./dialog-CfZpY_2q.js";import{R as ut}from"./required-auth-layout-Cx4vAYLa.js";import{A as mt}from"./autosend-CEnJWoYu.js";import{a as be,m as ft,S as gt}from"./use-mcp-client-DmQaIOOa.js";import{d as ht,c as pt}from"./hooks-DX67BKd6.js";import{q as xt}from"./tab-id-BijBBRwE.js";import{d as yt}from"./use-organization-settings-C_BR8EF_.js";import{u as bt}from"./use-org-sso-8BJQP_6U.js";function wt(t){const e=I.c(49),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=R();let r;e[0]!==a||e[1]!==i?(r=async()=>{const N=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await N.json();if(!N.ok||!O.success)throw new Error(O.error??i("common.autoDomainJoinScreen.joinError"));return O},e[0]=a,e[1]=i,e[2]=r):r=e[2];let c;e[3]!==a?(c=N=>{window.location.href=`/${N.slug??a}`},e[3]=a,e[4]=c):c=e[4];let h;e[5]!==i?(h=N=>{te.error(N instanceof Error?N.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let S;e[7]!==r||e[8]!==c||e[9]!==h?(S={mutationFn:r,onSuccess:c,onError:h},e[7]=r,e[8]=c,e[9]=h,e[10]=S):S=e[10];const m=ae(S),x=St;let g;e[11]!==l||e[12]!==o?(g=l?n.jsx(de,{url:l,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=o,e[13]=g):g=e[13];let d;e[14]!==o||e[15]!==i?(d=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=d):d=e[16];let u;e[17]!==d?(u=n.jsx("h3",{className:"text-lg font-medium",children:d}),e[17]=d,e[18]=u):u=e[18];let f;e[19]!==s||e[20]!==i?(f=i("common.autoDomainJoinScreen.joinDescription",{domain:s}),e[19]=s,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]!==u||e[25]!==p?(y=n.jsxs("div",{className:"space-y-2",children:[u,p]}),e[24]=u,e[25]=p,e[26]=y):y=e[26];let w;e[27]!==m?(w=()=>m.mutate(),e[27]=m,e[28]=w):w=e[28];let v;e[29]!==m.isPending||e[30]!==o||e[31]!==i?(v=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=m.isPending,e[30]=o,e[31]=i,e[32]=v):v=e[32];let _;e[33]!==m.isPending||e[34]!==w||e[35]!==v?(_=n.jsx($,{onClick:w,disabled:m.isPending,children:v}),e[33]=m.isPending,e[34]=w,e[35]=v,e[36]=_):_=e[36];const k=m.isPending;let j;e[37]!==i?(j=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=j):j=e[38];let b;e[39]!==m.isPending||e[40]!==j?(b=n.jsx($,{variant:"ghost",onClick:x,disabled:k,children:j}),e[39]=m.isPending,e[40]=j,e[41]=b):b=e[41];let A;e[42]!==_||e[43]!==b?(A=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,b]}),e[42]=_,e[43]=b,e[44]=A):A=e[44];let T;return e[45]!==y||e[46]!==A||e[47]!==g?(T=n.jsxs(ee,{children:[g,y,A]}),e[45]=y,e[46]=A,e[47]=g,e[48]=T):T=e[48],T}function St(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:o,orgName:a,reason:l}=t,s=R(),i=vt,r=l==="not-found",c=r?ot:je;let h;e[0]!==r||e[1]!==s?(h=s(r?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=r,e[1]=s,e[2]=h):h=e[2];const S=h;let m;e[3]!==r||e[4]!==a||e[5]!==o||e[6]!==s?(m=r?n.jsxs(n.Fragment,{children:[s("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[s("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??o}),".",n.jsx("br",{}),s("common.noAccessScreen.askAdminToInvite")]}),e[3]=r,e[4]=a,e[5]=o,e[6]=s,e[7]=m):m=e[7];const x=m;let g;e[8]!==c?(g=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]=g):g=e[9];let d;e[10]!==S?(d=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[10]=S,e[11]=d):d=e[11];let u;e[12]!==x?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[12]=x,e[13]=u):u=e[13];let f;e[14]!==d||e[15]!==u?(f=n.jsxs("div",{className:"space-y-2",children:[d,u]}),e[14]=d,e[15]=u,e[16]=f):f=e[16];let p;e[17]!==s?(p=s("common.noAccessScreen.goToHome"),e[17]=s,e[18]=p):p=e[18];let y;e[19]!==p?(y=n.jsx($,{onClick:i,children:p}),e[19]=p,e[20]=y):y=e[20];let w;return e[21]!==g||e[22]!==f||e[23]!==y?(w=n.jsxs(ee,{children:[g,f,y]}),e[21]=g,e[22]=f,e[23]=y,e[24]=w):w=e[24],w}function vt(){window.location.href="/"}function jt(t){const e=I.c(59),{invitationId:o,orgName:a,orgSlug:l,orgLogo:s}=t,i=R();let r;e[0]!==o?(r=async()=>{const P=await Z.organization.acceptInvitation({invitationId:o});if(P.error)throw new Error(P.error.message);return P.data},e[0]=o,e[1]=r):r=e[1];let c;e[2]!==l?(c=()=>{Me(),window.location.href=`/${l}`},e[2]=l,e[3]=c):c=e[3];let h;e[4]!==i?(h=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let S;e[6]!==r||e[7]!==c||e[8]!==h?(S={mutationFn:r,onSuccess:c,onError:h},e[6]=r,e[7]=c,e[8]=h,e[9]=S):S=e[9];const m=ae(S);let x;e[10]!==o?(x=async()=>{const P=await Z.organization.rejectInvitation({invitationId:o});if(P.error)throw new Error(P.error.message);return P.data},e[10]=o,e[11]=x):x=e[11];let g,d;e[12]!==i?(g=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},d=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=g,e[14]=d):(g=e[13],d=e[14]);let u;e[15]!==x||e[16]!==g||e[17]!==d?(u={mutationFn:x,onSuccess:g,onError:d},e[15]=x,e[16]=g,e[17]=d,e[18]=u):u=e[18];const f=ae(u),p=m.isPending||f.isPending;let y;e[19]!==s||e[20]!==a?(y=s?n.jsx(de,{url:s,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(it,{className:"h-6 w-6 text-primary"})}),e[19]=s,e[20]=a,e[21]=y):y=e[21];let w;e[22]!==a||e[23]!==i?(w=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=w):w=e[24];let v;e[25]!==w?(v=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[25]=w,e[26]=v):v=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let k;e[29]!==_?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=n.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let b;e[34]!==m?(b=()=>m.mutate(),e[34]=m,e[35]=b):b=e[35];let A;e[36]!==m.isPending||e[37]!==i?(A=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=A):A=e[38];let T;e[39]!==p||e[40]!==b||e[41]!==A?(T=n.jsx($,{onClick:b,disabled:p,children:A}),e[39]=p,e[40]=b,e[41]=A,e[42]=T):T=e[42];let N;e[43]!==f?(N=()=>f.mutate(),e[43]=f,e[44]=N):N=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 L;e[48]!==p||e[49]!==N||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:N,disabled:p,children:O}),e[48]=p,e[49]=N,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==T||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,L]}),e[52]=T,e[53]=L,e[54]=C):C=e[54];let D;return e[55]!==j||e[56]!==C||e[57]!==y?(D=n.jsxs(ee,{children:[y,j,C]}),e[55]=j,e[56]=C,e[57]=y,e[58]=D):D=e[58],D}function kt(t){const e=I.c(23),{orgName:o,orgLogo:a}=t,l=R();let s;e[0]!==a||e[1]!==o?(s=a?n.jsx(de,{url:a,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(at,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=s):s=e[2];let i;e[3]!==l?(i=l("common.requestPendingScreen.title"),e[3]=l,e[4]=i):i=e[4];let r;e[5]!==i?(r=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=r):r=e[6];let c;e[7]!==o||e[8]!==l?(c=l("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=l,e[9]=c):c=e[9];let h;e[10]!==c?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[10]=c,e[11]=h):h=e[11];let S;e[12]!==r||e[13]!==h?(S=n.jsxs("div",{className:"space-y-2",children:[r,h]}),e[12]=r,e[13]=h,e[14]=S):S=e[14];let m;e[15]!==l?(m=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=m):m=e[16];let x;e[17]!==m?(x=n.jsx($,{variant:"ghost",onClick:Nt,children:m}),e[17]=m,e[18]=x):x=e[18];let g;return e[19]!==s||e[20]!==S||e[21]!==x?(g=n.jsxs(ee,{children:[s,S,x]}),e[19]=s,e[20]=S,e[21]=x,e[22]=g):g=e[22],g}function Nt(){window.location.href="/"}function _t(t){const e=I.c(45),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=R();let r;e[0]!==a?(r=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})}),N=await T.json();if(!T.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=a,e[1]=r):r=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=Tt,e[2]=c):c=e[2];let h;e[3]!==i?(h=T=>{te.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let S;e[5]!==r||e[6]!==h?(S={mutationFn:r,onSuccess:c,onError:h},e[5]=r,e[6]=h,e[7]=S):S=e[7];const m=ae(S);let x;e[8]!==l||e[9]!==o?(x=l?n.jsx(de,{url:l,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=o,e[10]=x):x=e[10];let g;e[11]!==o||e[12]!==i?(g=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=g):g=e[13];let d;e[14]!==g?(d=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[14]=g,e[15]=d):d=e[15];let u;e[16]!==s||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:s}),e[16]=s,e[17]=i,e[18]=u):u=e[18];let f;e[19]!==u?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,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]!==m?(y=()=>m.mutate(),e[24]=m,e[25]=y):y=e[25];let w;e[26]!==m.isPending||e[27]!==i?(w=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=w):w=e[28];let v;e[29]!==m.isPending||e[30]!==y||e[31]!==w?(v=n.jsx($,{onClick:y,disabled:m.isPending,children:w}),e[29]=m.isPending,e[30]=y,e[31]=w,e[32]=v):v=e[32];const _=m.isPending;let k;e[33]!==i?(k=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==m.isPending||e[36]!==k?(j=n.jsx($,{variant:"ghost",onClick:At,disabled:_,children:k}),e[35]=m.isPending,e[36]=k,e[37]=j):j=e[37];let b;e[38]!==v||e[39]!==j?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=b):b=e[40];let A;return e[41]!==p||e[42]!==b||e[43]!==x?(A=n.jsxs(ee,{children:[x,p,b]}),e[41]=p,e[42]=b,e[43]=x,e[44]=A):A=e[44],A}function At(){window.location.href="/"}function Tt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Ot(t){const e=I.c(7);let o;e[0]!==t?(o=ce.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const s=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!s.ok)throw new Error(`org-access-status failed (${s.status})`);return await s.json()},e[2]=t,e[3]=a):a=e[3];let l;return e[4]!==o||e[5]!==a?(l={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=l):l=e[6],ke(l)}function Ct({orgSlug:t}){const{data:e}=Ot(t);if(e.status!=="member"){Re()?.org===t&&Fe();const o=localStorage.getItem(G.lastOrgSlug())===t;if(o&&localStorage.removeItem(G.lastOrgSlug()),o&&(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(jt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(wt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(_t,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(kt,{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 Pe(t){const e=I.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:l,title:s,description:i,icon:r,children:c,footerLeading:h,actions:S,onDismiss:m,tone:x}=t,g=x===void 0?"neutral":x,d=h||S;let u;e[0]!==g?(u=g==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=g,e[1]=u):u=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(lt,{size:14}),e[2]=f):f=e[2];let p;e[3]!==a||e[4]!==m?(p=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:f}),e[3]=a,e[4]=m,e[5]=p):p=e[5];const y=r&&"flex items-start gap-3",w=c&&"pb-3";let v;e[6]!==y||e[7]!==w?(v=ge("p-4 pr-11",y,w),e[6]=y,e[7]=w,e[8]=v):v=e[8];let _;e[9]!==r?(_=r&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:r}),e[9]=r,e[10]=_):_=e[10];let k;e[11]!==l?(k=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=k):k=e[12];let j;e[13]!==s?(j=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:s}),e[13]=s,e[14]=j):j=e[14];let b;e[15]!==i?(b=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=b):b=e[16];let A;e[17]!==j||e[18]!==b||e[19]!==k?(A=n.jsxs("div",{children:[k,j,b]}),e[17]=j,e[18]=b,e[19]=k,e[20]=A):A=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 N;e[23]!==A||e[24]!==T?(N=n.jsxs("div",{className:"min-w-0 flex-1",children:[A,T]}),e[23]=A,e[24]=T,e[25]=N):N=e[25];let O;e[26]!==N||e[27]!==v||e[28]!==_?(O=n.jsxs("div",{className:v,children:[_,N]}),e[26]=N,e[27]=v,e[28]=_,e[29]=O):O=e[29];let L;e[30]!==S||e[31]!==h||e[32]!==d||e[33]!==g?(L=d&&n.jsxs("div",{className:ge("flex items-center justify-between gap-3 px-4 py-2.5",g==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=h,e[32]=d,e[33]=g,e[34]=L):L=e[34];let C;return e[35]!==o||e[36]!==O||e[37]!==L||e[38]!==u||e[39]!==p||e[40]!==g?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":g,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:[u,p,O,L]}),e[35]=o,e[36]=O,e[37]=L,e[38]=u,e[39]=p,e[40]=g,e[41]=C):C=e[41],C}const Ee=[{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:U,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:X,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:U,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:X,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:U,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:X,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:U,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:X,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:U,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:X,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:U,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:ye,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:st,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:X,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:U,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:ye,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:U,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:rt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],le="studio.release-feed.v1",ue=new Set;let V="",W={},me=!1;function Pt(){if(me)return V||"{}";try{return localStorage.getItem(le)??"{}"}catch{return V||"{}"}}function Le(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=Pt();return t!==V&&(V=t,W=Le(t)),W}function Et(t){ue.add(t);const e=o=>{if(!(o.key!==le&&o.key!==null)){try{const a=localStorage.getItem(le)??"{}",s={...Le(a),...W};W=s,V=JSON.stringify(s)}catch{}t()}};return window.addEventListener("storage",e),()=>{ue.delete(t),window.removeEventListener("storage",e)}}function Lt(t){W=t,V=JSON.stringify(t);try{localStorage.setItem(le,V),me=!1}catch{me=!0}ue.forEach(e=>e())}function It(){const t=I.c(7),e=F.useSyncExternalStore(Et,Se,Se);let o;t[0]!==e?(o=c=>!!e[c],t[0]=e,t[1]=o):o=t[1];const a=o,l=Dt;let s;t[2]!==e?(s=Ee.reduce((c,h)=>e[h.id]?c:c+1,0),t[2]=e,t[3]=s):s=t[3];const i=s;let r;return t[4]!==a||t[5]!==i?(r={isSeen:a,markSeen:l,unseenCount:i},t[4]=a,t[5]=i,t[6]=r):r=t[6],r}function Dt(t){W[t]||Lt({...W,[t]:{seenAt:new Date().toISOString()}})}const $t=720*60*60*1e3,qt=10080*60*1e3;function zt(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function Mt(t){const e=Ee[0];if(!e)return null;const o=zt(e.date),a=t-o;return a<0||a>$t?null:e}function Rt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ft(t,e){const o=Rt(t);return o===null?!1:e-o>=qt}function Bt(){const t=I.c(34),e=R(),{data:o}=Z.useSession(),{isSeen:a,markSeen:l}=It();let s,i,r;if(t[0]!==a||t[1]!==o?.user?.createdAt){r=Symbol.for("react.early_return_sentinel");e:{const y=Date.now();if(s=Mt(y),!s){r=null;break e}if(!Ft(o?.user?.createdAt,y)){r=null;break e}i=a(s.id)}t[0]=a,t[1]=o?.user?.createdAt,t[2]=s,t[3]=i,t[4]=r}else s=t[2],i=t[3],r=t[4];if(r!==Symbol.for("react.early_return_sentinel"))return r;if(i)return null;let c;t[5]!==e?(c=e("announcements.release.ariaLabel"),t[5]=e,t[6]=c):c=t[6];let h;t[7]!==e?(h=e("announcements.release.dismiss"),t[7]=e,t[8]=h):h=t[8];const S=s.eyebrow,m=s.title;let x;t[9]!==s.id||t[10]!==l?(x=()=>l(s.id),t[9]=s.id,t[10]=l,t[11]=x):x=t[11];let g;t[12]!==s.id||t[13]!==s.learnMoreHref||t[14]!==l||t[15]!==e?(g=s.learnMoreHref?n.jsx("a",{href:s.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(s.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=s.id,t[13]=s.learnMoreHref,t[14]=l,t[15]=e,t[16]=g):g=t[16];let d;t[17]!==s.cta||t[18]!==s.id||t[19]!==l?(d=s.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(s.id),children:n.jsx("a",{href:s.cta.href,children:s.cta.label})}):null,t[17]=s.cta,t[18]=s.id,t[19]=l,t[20]=d):d=t[20];let u;t[21]!==s.bullets?(u=s.bullets.map(Ut),t[21]=s.bullets,t[22]=u):u=t[22];let f;t[23]!==u?(f=n.jsx("ul",{className:"flex flex-col gap-3",children:u}),t[23]=u,t[24]=f):f=t[24];let p;return t[25]!==s.eyebrow||t[26]!==s.title||t[27]!==f||t[28]!==c||t[29]!==h||t[30]!==x||t[31]!==g||t[32]!==d?(p=n.jsx(Pe,{ariaLabel:c,dismissLabel:h,eyebrow:S,title:m,onDismiss:x,footerLeading:g,actions:d,children:f}),t[25]=s.eyebrow,t[26]=s.title,t[27]=f,t[28]=c,t[29]=h,t[30]=x,t[31]=g,t[32]=d,t[33]=p):p=t[33],p}function Ut(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ie=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),H=Ie?"⌘":"Ctrl",z={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"}},Ht=[{label:"General",shortcuts:[z.keyboardShortcuts,z.back,z.newTask,z.toggleDaemon]},{label:"Editor",shortcuts:[z.saveAndFormat]},{label:"Chat",shortcuts:[z.focusChatInput,z.togglePlanMode,z.sendMessage,z.newLine]},{label:"Questions",shortcuts:[z.selectOption]},{label:"Monitoring",shortcuts:[z.applyFilter]}];function ve(t){return Ie?t.metaKey:t.ctrlKey}function Jt(t){const e=I.c(11),{open:o,onOpenChange:a}=t,l=R();let s;e[0]!==l?(s=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=s):s=e[1];let i;e[2]!==s?(i=n.jsx(Ae,{children:n.jsx(Te,{children:s})}),e[2]=s,e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"flex flex-col gap-4",children:Ht.map(Kt)}),e[4]=r):r=e[4];let c;e[5]!==i?(c=n.jsxs(Oe,{className:"sm:max-w-md",children:[i,r]}),e[5]=i,e[6]=c):c=e[6];let h;return e[7]!==a||e[8]!==o||e[9]!==c?(h=n.jsx(Ce,{open:o,onOpenChange:a,children:c}),e[7]=a,e[8]=o,e[9]=c,e[10]=h):h=e[10],h}function Kt(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(Gt)})]},t.label)}function Gt(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(Vt)})]},t.description)}function Vt(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const Wt=300*1e3,Qt=2;function Yt(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Xt(t,e){return t.count>=Qt&&t.version!==null&&t.version!==e}function Zt(){const t=I.c(31),e=R();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:ce.appVersionCheck(),queryFn:tn,refetchInterval:Wt,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:l}=re(o),[s,i]=F.useState(0);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={version:null,count:0},t[1]=r):r=t[1];const[c,h]=F.useState(r);l!==s&&(i(l),h(b=>Yt(b,a,"4.105.0")));const[S,m]=F.useState(null);if(!Xt(c,S))return null;let x;t[2]!==e?(x=e("announcements.version.ariaLabel"),t[2]=e,t[3]=x):x=t[3];let g;t[4]!==e?(g=e("announcements.version.dismiss"),t[4]=e,t[5]=g):g=t[5];let d;t[6]!==e?(d=e("announcements.version.eyebrow"),t[6]=e,t[7]=d):d=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=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=()=>m(c.version),t[13]=c.version,t[14]=y):y=t[14];let w;t[15]!==e?(w=e("announcements.version.currentSession",{version:"4.105.0"}),t[15]=e,t[16]=w):w=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let _;t[19]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(he,{size:14}),t[19]=_):_=t[19];let k;t[20]!==v?(k=n.jsxs($,{size:"sm",onClick:en,children:[v,_]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==x||t[24]!==g||t[25]!==d||t[26]!==u||t[27]!==f||t[28]!==y||t[29]!==w?(j=n.jsx(Pe,{ariaLabel:x,dismissLabel:g,eyebrow:d,title:u,description:f,icon:p,tone:"system",onDismiss:y,footerLeading:w,actions:k}),t[22]=k,t[23]=x,t[24]=g,t[25]=d,t[26]=u,t[27]=f,t[28]=y,t[29]=w,t[30]=j):j=t[30],j}function en(){return window.location.reload()}async function tn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}const nn=Date.parse("2026-07-21T00:00:00Z");function sn(t){try{localStorage.setItem(G.ptBrAnnouncementSeen(t),"1")}catch{}}function on(t){try{return localStorage.getItem(G.ptBrAnnouncementSeen(t))==="1"}catch{return!1}}function an(){const t=I.c(35),e=R(),[o,a]=Be(),{data:l,isPending:s}=Z.useSession(),i=l?.user,r=i?.id,c=i?.createdAt,h=c!=null&&new Date(c).getTime()<nn,S=Ue()==="pt-BR",m=!s&&!!r&&h&&S&&o.language==="en"&&!on(r),[x,g]=F.useState(!1),[d,u]=F.useState(!1);!x&&!s&&(g(!0),m&&r&&(sn(r),a(ln),u(!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}),u(!1)},t[0]=f):f=t[0];const p=f;let y;t[1]!==a?(y=()=>{a(rn),p("switch-back")},t[1]=a,t[2]=y):y=t[2];const w=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=M=>!M&&p("dismiss"),t[3]=v):v=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=n.jsx(Te,{children:k}),t[7]=k,t[8]=j):j=t[8];let b;t[9]!==e?(b=e("announcements.ptBr.description"),t[9]=e,t[10]=b):b=t[10];let A;t[11]!==b?(A=n.jsx(ct,{children:b}),t[11]=b,t[12]=A):A=t[12];let T;t[13]!==j||t[14]!==A?(T=n.jsxs(Ae,{children:[j,A]}),t[13]=j,t[14]=A,t[15]=T):T=t[15];let N;t[16]!==e?(N=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=N):N=t[17];let O;t[18]!==w||t[19]!==N?(O=n.jsx($,{variant:"outline",onClick:w,children:N}),t[18]=w,t[19]=N,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>p("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=D):D=t[25];let P;t[26]!==O||t[27]!==D?(P=n.jsxs(dt,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=P):P=t[28];let J;t[29]!==P||t[30]!==T?(J=n.jsxs(Oe,{className:"sm:max-w-md",children:[_,T,P]}),t[29]=P,t[30]=T,t[31]=J):J=t[31];let B;return t[32]!==d||t[33]!==J?(B=n.jsx(Ce,{open:d,onOpenChange:v,children:J}),t[32]=d,t[33]=J,t[34]=B):B=t[34],B}function rn(t){return{...t,language:"en"}}function ln(t){return{...t,language:"pt-BR"}}function cn({activeOrg:t}){return t&&(He(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Je()),null}function dn(t,e,o){if(!o)return null;const a=ht(t,e);return a?a.threads.get().find(s=>s.id===o)?.branch??null:null}function un(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:l,opts:s,autosendValue:i}=t,r={};o?r.virtualmcpid=o:e.virtualmcpid&&(r.virtualmcpid=e.virtualmcpid);const c=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,S=(o??c)!==c;let m="chat";if(s?.main)r.main=s.main;else if(l)l.main!==void 0&&(r.main=l.main),l.sidepanel!==void 0&&(m=l.sidepanel);else if(!S){const x=e.main;x&&typeof x=="string"&&!xt(x)&&(r.main=x)}return r.sidepanel=m,s?.autosend&&(r.autosend=i),r}const De="studio:thread-layout:v1",mn=50;function $e(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 fn(t,e,o,a=mn){const l=t.filter(([s])=>s!==e);for(l.push([e,$e(o)]);l.length>a;)l.shift();return l}function fe(){try{const t=sessionStorage.getItem(De);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qe(t){try{sessionStorage.setItem(De,JSON.stringify(t))}catch{}}function gn(t,e){t&&qe(fn(fe(),t,e))}function hn(t){if(!t)return null;const e=fe().find(([o])=>o===t);return e?$e(e[1]):null}function Rn(t){if(!t)return;const e=fe(),o=e.filter(([a])=>a!==t);o.length!==e.length&&qe(o)}function ze(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 Fn(t){const e=I.c(10);let o;e[0]!==t?(o=ze(t),e[0]=t,e[1]=o):o=e[1];const a=re(o);let l;e[2]!==a.data?.prompts?(l=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=l):l=e[3];let s;e[4]!==a.data?.tiles?(s=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=s):s=e[5];let i;return e[6]!==a.isLoading||e[7]!==l||e[8]!==s?(i={isLoading:a.isLoading,prompts:l,tiles:s},e[6]=a.isLoading,e[7]=l,e[8]=s,e[9]=i):i=e[9],i}function pn(t){const e=I.c(31),{orgSlug:o,orgName:a,domain:l}=t,s=R();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const r=i,c=xn;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(je,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let S;e[3]!==s?(S=s("common.ssoRequiredScreen.title"),e[3]=s,e[4]=S):S=e[4];let m;e[5]!==S?(m=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=m):m=e[6];let x;e[7]!==l||e[8]!==a||e[9]!==s?(x=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",s("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${s("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):s("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=a,e[9]=s,e[10]=x):x=e[10];let g;e[11]!==x?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[11]=x,e[12]=g):g=e[12];let d;e[13]!==m||e[14]!==g?(d=n.jsxs("div",{className:"space-y-2",children:[m,g]}),e[13]=m,e[14]=g,e[15]=d):d=e[15];let u;e[16]!==s?(u=s("common.ssoRequiredScreen.signInWithSso"),e[16]=s,e[17]=u):u=e[17];let f;e[18]!==r||e[19]!==u?(f=n.jsx($,{onClick:r,children:u}),e[18]=r,e[19]=u,e[20]=f):f=e[20];let p;e[21]!==s?(p=s("common.ssoRequiredScreen.goBack"),e[21]=s,e[22]=p):p=e[22];let y;e[23]!==p?(y=n.jsx($,{variant:"ghost",onClick:c,children:p}),e[23]=p,e[24]=y):y=e[24];let w;e[25]!==y||e[26]!==f?(w=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,y]}),e[25]=y,e[26]=f,e[27]=w):w=e[27];let v;return e[28]!==w||e[29]!==d?(v=n.jsxs(ee,{children:[h,d,w]}),e[28]=w,e[29]=d,e[30]=v):v=e[30],v}function xn(){window.location.href="/"}function yn(t){const e=I.c(8),{org:o,children:a}=t,s=yt(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==s?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:s,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s,e[3]=i):i=e[3];const r=i;let c;return e[4]!==a||e[5]!==o||e[6]!==r?(c=n.jsx(nt,{org:o,project:r,children:a}),e[4]=a,e[5]=o,e[6]=r,e[7]=c):c=e[7],c}function bn(){const t=Ke(),e=pt(),{org:o,locator:a}=Ge(),l=Ne({strict:!1}),s=Ve({strict:!1}),i=l.org??"",r=l.taskId??"",c=(d,u,f=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:d},search:u,replace:f}),h=(d,u=!0)=>c(r,d,u),S=d=>h(u=>({...u,sidepanel:d})),m=(d,u,f)=>{const p=!!r&&r===d;r&&!p&&gn(r,{main:s.main,sidepanel:s.sidepanel});const y=p?null:hn(d),w=be(o.id).id;return c(d,v=>un({prev:v,virtualMcpId:u,decopilotId:w,savedLayout:y,opts:f,autosendValue:mt}),!1)};return{openSidePanel:S,setTaskId:m,createNewTask:async d=>{const u=crypto.randomUUID(),f=d??s.virtualmcpid??be(o.id).id,y=f===s.virtualmcpid?dn(o.slug,a,r):null;try{await e?.create({id:u,virtual_mcp_id:f,...y?{branch:y}:{}})}catch{}m(u,f)},openTab:d=>c(r||crypto.randomUUID(),u=>({...u,main:d}))}}function wn(){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=We(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:s}=Ne(l),[i,r]=F.useState(!1),c=Qe(),h=a??"";let S;t[2]!==h?(S=ze(h),t[2]=h,t[3]=S):S=t[3];const m=!!a&&!s;let x;t[4]!==S||t[5]!==m?(x={...S,enabled:m},t[4]=S,t[5]=m,t[6]=x):x=t[6],re(x);const{data:g}=Z.useSession(),d=g?.user?.id;let u;t[7]!==a||t[8]!==d?(u=a&&d?Ye(d,a):null,t[7]=a,t[8]=d,t[9]=u):u=t[9];const f=u;let p,y;t[10]!==c?(p=()=>{const E=q=>{if(ve(q)&&q.code==="KeyK"){q.preventDefault(),r(!0);return}ve(q)&&q.code==="BracketLeft"&&c.history.canGoBack()&&(q.preventDefault(),c.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},y=[c],t[10]=c,t[11]=p,t[12]=y):(p=t[11],y=t[12]),F.useEffect(p,y);let w;t[13]!==a?(w=ce.activeOrganization(a),t[13]=a,t[14]=w):w=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:E}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(Sn),q=xe(E);return E&&!q&&localStorage.setItem(G.lastOrgSlug(),a),d&&E&&Ze(d,a,E),E},t[15]=a,t[16]=d,t[17]=v):v=t[17];const _=f?f.data:void 0,k=f?.updatedAt;let j;t[18]!==v||t[19]!==_||t[20]!==k||t[21]!==w?(j={queryKey:w,queryFn:v,initialData:_,initialDataUpdatedAt:k,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=_,t[20]=k,t[21]=w,t[22]=j):j=t[22];const{data:b}=ke(j),A=b?.id,T=b?.slug,{data:N}=bt(A,T),O=A??"",L=T??"";let C;t[23]!==O||t[24]!==L?(C=ft({connectionId:gt,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const D=!!A&&!!T;let P;if(t[26]!==C||t[27]!==D?(P={...C,enabled:D},t[26]=C,t[27]=D,t[28]=P):P=t[28],re(P),!b){let E;t[29]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(et,{}),t[29]=E):E=t[29];let q;return t[30]!==a?(q=n.jsx(F.Suspense,{fallback:E,children:n.jsx(Ct,{orgSlug:a})}),t[30]=a,t[31]=q):q=t[31],q}if(xe(b)){localStorage.getItem(G.lastOrgSlug())===a&&localStorage.removeItem(G.lastOrgSlug());let E;return t[32]!==b.name?(E=n.jsx(Xe,{orgName:b.name}),t[32]=b.name,t[33]=E):E=t[33],E}if(N?.ssoRequired&&!N.authenticated){let E;return t[34]!==b.id||t[35]!==b.name||t[36]!==b.slug||t[37]!==N.domain?(E=n.jsx(pn,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:N.domain}),t[34]=b.id,t[35]=b.name,t[36]=b.slug,t[37]=N.domain,t[38]=E):E=t[38],E}const B=b.logo??null;let M;t[39]!==b||t[40]!==B?(M={...b,logo:B},t[39]=b,t[40]=B,t[41]=M):M=t[41];let Q;t[42]!==b?(Q=n.jsx(cn,{activeOrg:b}),t[42]=b,t[43]=Q):Q=t[43];let ne;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(tt,{}),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(Bt,{}),n.jsx(Zt,{})]}),t[45]=se):se=t[45];let Y;t[46]!==i?(Y=n.jsx(Jt,{open:i,onOpenChange:r}),t[46]=i,t[47]=Y):Y=t[47];let oe;t[48]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(an,{}),t[48]=oe):oe=t[48];let ie;return t[49]!==M||t[50]!==Q||t[51]!==Y?(ie=n.jsxs(yn,{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 Sn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function vn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ut,{children:n.jsx(wn,{})}),t[0]=e):e=t[0],e}const Bn=Object.freeze(Object.defineProperty({__proto__:null,default:vn,usePanelActions:bn},Symbol.toStringTag,{value:"Module"}));export{z as K,Fn as a,Rn as f,ve as i,dn as r,Bn as s,bn as u};
1
+ import{c as I,b as R,e as ae,j as n,B as $,t as te,bX as ee,y as je,a as Z,w as Me,x as ke,K as ce,bY as Re,bZ as Fe,G,m as ge,r as F,n as re,aA as he,v as Be,b_ as Ue,q as pe,b$ as He,c0 as Je,d as Ke,F as Ge,f as Ne,u as Ve,V as We,a$ as Qe,c1 as Ye,c2 as xe,c3 as Xe,c4 as Ze,S as et,O as tt,c5 as nt}from"./index-DPUSzQFm.js";import{A as de}from"./avatar-D-XB1bPv.js";import{t as _e,a as st}from"./Users03-Dh_yamMu.js";import{i as ot}from"./SearchLg-LcQ3wPaj.js";import{i as it,s as at,a as U,n as rt}from"./Stars02-CgAzcj_M.js";import{s as lt}from"./XClose-BIVjAPO7.js";import{i as K}from"./CheckCircle-pA7GzUJX.js";import{i as ye}from"./FilterLines-BVMKJFk4.js";import{i as X}from"./Zap-DLI-HN8x.js";import{a as Ae,b as Te,d as Oe,e as Ce,h as ct,c as dt}from"./dialog-DRW5Z6kg.js";import{R as ut}from"./required-auth-layout-DFIfQpbY.js";import{A as mt}from"./autosend-6si99-kP.js";import{a as be,m as ft,S as gt}from"./use-mcp-client-D4kRoqsh.js";import{d as ht,c as pt}from"./hooks-BBLaeAIm.js";import{q as xt}from"./tab-id-BijBBRwE.js";import{d as yt}from"./use-organization-settings-vlBvr0tn.js";import{u as bt}from"./use-org-sso-QZb4zZJx.js";function wt(t){const e=I.c(49),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=R();let r;e[0]!==a||e[1]!==i?(r=async()=>{const N=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await N.json();if(!N.ok||!O.success)throw new Error(O.error??i("common.autoDomainJoinScreen.joinError"));return O},e[0]=a,e[1]=i,e[2]=r):r=e[2];let c;e[3]!==a?(c=N=>{window.location.href=`/${N.slug??a}`},e[3]=a,e[4]=c):c=e[4];let h;e[5]!==i?(h=N=>{te.error(N instanceof Error?N.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let S;e[7]!==r||e[8]!==c||e[9]!==h?(S={mutationFn:r,onSuccess:c,onError:h},e[7]=r,e[8]=c,e[9]=h,e[10]=S):S=e[10];const m=ae(S),x=St;let g;e[11]!==l||e[12]!==o?(g=l?n.jsx(de,{url:l,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=o,e[13]=g):g=e[13];let d;e[14]!==o||e[15]!==i?(d=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=d):d=e[16];let u;e[17]!==d?(u=n.jsx("h3",{className:"text-lg font-medium",children:d}),e[17]=d,e[18]=u):u=e[18];let f;e[19]!==s||e[20]!==i?(f=i("common.autoDomainJoinScreen.joinDescription",{domain:s}),e[19]=s,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]!==u||e[25]!==p?(y=n.jsxs("div",{className:"space-y-2",children:[u,p]}),e[24]=u,e[25]=p,e[26]=y):y=e[26];let w;e[27]!==m?(w=()=>m.mutate(),e[27]=m,e[28]=w):w=e[28];let v;e[29]!==m.isPending||e[30]!==o||e[31]!==i?(v=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=m.isPending,e[30]=o,e[31]=i,e[32]=v):v=e[32];let _;e[33]!==m.isPending||e[34]!==w||e[35]!==v?(_=n.jsx($,{onClick:w,disabled:m.isPending,children:v}),e[33]=m.isPending,e[34]=w,e[35]=v,e[36]=_):_=e[36];const k=m.isPending;let j;e[37]!==i?(j=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=j):j=e[38];let b;e[39]!==m.isPending||e[40]!==j?(b=n.jsx($,{variant:"ghost",onClick:x,disabled:k,children:j}),e[39]=m.isPending,e[40]=j,e[41]=b):b=e[41];let A;e[42]!==_||e[43]!==b?(A=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,b]}),e[42]=_,e[43]=b,e[44]=A):A=e[44];let T;return e[45]!==y||e[46]!==A||e[47]!==g?(T=n.jsxs(ee,{children:[g,y,A]}),e[45]=y,e[46]=A,e[47]=g,e[48]=T):T=e[48],T}function St(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:o,orgName:a,reason:l}=t,s=R(),i=vt,r=l==="not-found",c=r?ot:je;let h;e[0]!==r||e[1]!==s?(h=s(r?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=r,e[1]=s,e[2]=h):h=e[2];const S=h;let m;e[3]!==r||e[4]!==a||e[5]!==o||e[6]!==s?(m=r?n.jsxs(n.Fragment,{children:[s("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[s("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??o}),".",n.jsx("br",{}),s("common.noAccessScreen.askAdminToInvite")]}),e[3]=r,e[4]=a,e[5]=o,e[6]=s,e[7]=m):m=e[7];const x=m;let g;e[8]!==c?(g=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]=g):g=e[9];let d;e[10]!==S?(d=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[10]=S,e[11]=d):d=e[11];let u;e[12]!==x?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[12]=x,e[13]=u):u=e[13];let f;e[14]!==d||e[15]!==u?(f=n.jsxs("div",{className:"space-y-2",children:[d,u]}),e[14]=d,e[15]=u,e[16]=f):f=e[16];let p;e[17]!==s?(p=s("common.noAccessScreen.goToHome"),e[17]=s,e[18]=p):p=e[18];let y;e[19]!==p?(y=n.jsx($,{onClick:i,children:p}),e[19]=p,e[20]=y):y=e[20];let w;return e[21]!==g||e[22]!==f||e[23]!==y?(w=n.jsxs(ee,{children:[g,f,y]}),e[21]=g,e[22]=f,e[23]=y,e[24]=w):w=e[24],w}function vt(){window.location.href="/"}function jt(t){const e=I.c(59),{invitationId:o,orgName:a,orgSlug:l,orgLogo:s}=t,i=R();let r;e[0]!==o?(r=async()=>{const P=await Z.organization.acceptInvitation({invitationId:o});if(P.error)throw new Error(P.error.message);return P.data},e[0]=o,e[1]=r):r=e[1];let c;e[2]!==l?(c=()=>{Me(),window.location.href=`/${l}`},e[2]=l,e[3]=c):c=e[3];let h;e[4]!==i?(h=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let S;e[6]!==r||e[7]!==c||e[8]!==h?(S={mutationFn:r,onSuccess:c,onError:h},e[6]=r,e[7]=c,e[8]=h,e[9]=S):S=e[9];const m=ae(S);let x;e[10]!==o?(x=async()=>{const P=await Z.organization.rejectInvitation({invitationId:o});if(P.error)throw new Error(P.error.message);return P.data},e[10]=o,e[11]=x):x=e[11];let g,d;e[12]!==i?(g=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},d=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=g,e[14]=d):(g=e[13],d=e[14]);let u;e[15]!==x||e[16]!==g||e[17]!==d?(u={mutationFn:x,onSuccess:g,onError:d},e[15]=x,e[16]=g,e[17]=d,e[18]=u):u=e[18];const f=ae(u),p=m.isPending||f.isPending;let y;e[19]!==s||e[20]!==a?(y=s?n.jsx(de,{url:s,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(it,{className:"h-6 w-6 text-primary"})}),e[19]=s,e[20]=a,e[21]=y):y=e[21];let w;e[22]!==a||e[23]!==i?(w=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=w):w=e[24];let v;e[25]!==w?(v=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[25]=w,e[26]=v):v=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let k;e[29]!==_?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=n.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let b;e[34]!==m?(b=()=>m.mutate(),e[34]=m,e[35]=b):b=e[35];let A;e[36]!==m.isPending||e[37]!==i?(A=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=A):A=e[38];let T;e[39]!==p||e[40]!==b||e[41]!==A?(T=n.jsx($,{onClick:b,disabled:p,children:A}),e[39]=p,e[40]=b,e[41]=A,e[42]=T):T=e[42];let N;e[43]!==f?(N=()=>f.mutate(),e[43]=f,e[44]=N):N=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 L;e[48]!==p||e[49]!==N||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:N,disabled:p,children:O}),e[48]=p,e[49]=N,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==T||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,L]}),e[52]=T,e[53]=L,e[54]=C):C=e[54];let D;return e[55]!==j||e[56]!==C||e[57]!==y?(D=n.jsxs(ee,{children:[y,j,C]}),e[55]=j,e[56]=C,e[57]=y,e[58]=D):D=e[58],D}function kt(t){const e=I.c(23),{orgName:o,orgLogo:a}=t,l=R();let s;e[0]!==a||e[1]!==o?(s=a?n.jsx(de,{url:a,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(at,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=s):s=e[2];let i;e[3]!==l?(i=l("common.requestPendingScreen.title"),e[3]=l,e[4]=i):i=e[4];let r;e[5]!==i?(r=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=r):r=e[6];let c;e[7]!==o||e[8]!==l?(c=l("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=l,e[9]=c):c=e[9];let h;e[10]!==c?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[10]=c,e[11]=h):h=e[11];let S;e[12]!==r||e[13]!==h?(S=n.jsxs("div",{className:"space-y-2",children:[r,h]}),e[12]=r,e[13]=h,e[14]=S):S=e[14];let m;e[15]!==l?(m=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=m):m=e[16];let x;e[17]!==m?(x=n.jsx($,{variant:"ghost",onClick:Nt,children:m}),e[17]=m,e[18]=x):x=e[18];let g;return e[19]!==s||e[20]!==S||e[21]!==x?(g=n.jsxs(ee,{children:[s,S,x]}),e[19]=s,e[20]=S,e[21]=x,e[22]=g):g=e[22],g}function Nt(){window.location.href="/"}function _t(t){const e=I.c(45),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=R();let r;e[0]!==a?(r=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})}),N=await T.json();if(!T.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=a,e[1]=r):r=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=Tt,e[2]=c):c=e[2];let h;e[3]!==i?(h=T=>{te.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let S;e[5]!==r||e[6]!==h?(S={mutationFn:r,onSuccess:c,onError:h},e[5]=r,e[6]=h,e[7]=S):S=e[7];const m=ae(S);let x;e[8]!==l||e[9]!==o?(x=l?n.jsx(de,{url:l,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=o,e[10]=x):x=e[10];let g;e[11]!==o||e[12]!==i?(g=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=g):g=e[13];let d;e[14]!==g?(d=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[14]=g,e[15]=d):d=e[15];let u;e[16]!==s||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:s}),e[16]=s,e[17]=i,e[18]=u):u=e[18];let f;e[19]!==u?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,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]!==m?(y=()=>m.mutate(),e[24]=m,e[25]=y):y=e[25];let w;e[26]!==m.isPending||e[27]!==i?(w=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=w):w=e[28];let v;e[29]!==m.isPending||e[30]!==y||e[31]!==w?(v=n.jsx($,{onClick:y,disabled:m.isPending,children:w}),e[29]=m.isPending,e[30]=y,e[31]=w,e[32]=v):v=e[32];const _=m.isPending;let k;e[33]!==i?(k=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==m.isPending||e[36]!==k?(j=n.jsx($,{variant:"ghost",onClick:At,disabled:_,children:k}),e[35]=m.isPending,e[36]=k,e[37]=j):j=e[37];let b;e[38]!==v||e[39]!==j?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=b):b=e[40];let A;return e[41]!==p||e[42]!==b||e[43]!==x?(A=n.jsxs(ee,{children:[x,p,b]}),e[41]=p,e[42]=b,e[43]=x,e[44]=A):A=e[44],A}function At(){window.location.href="/"}function Tt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Ot(t){const e=I.c(7);let o;e[0]!==t?(o=ce.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const s=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!s.ok)throw new Error(`org-access-status failed (${s.status})`);return await s.json()},e[2]=t,e[3]=a):a=e[3];let l;return e[4]!==o||e[5]!==a?(l={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=l):l=e[6],ke(l)}function Ct({orgSlug:t}){const{data:e}=Ot(t);if(e.status!=="member"){Re()?.org===t&&Fe();const o=localStorage.getItem(G.lastOrgSlug())===t;if(o&&localStorage.removeItem(G.lastOrgSlug()),o&&(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(jt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(wt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(_t,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(kt,{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 Pe(t){const e=I.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:l,title:s,description:i,icon:r,children:c,footerLeading:h,actions:S,onDismiss:m,tone:x}=t,g=x===void 0?"neutral":x,d=h||S;let u;e[0]!==g?(u=g==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=g,e[1]=u):u=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(lt,{size:14}),e[2]=f):f=e[2];let p;e[3]!==a||e[4]!==m?(p=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:f}),e[3]=a,e[4]=m,e[5]=p):p=e[5];const y=r&&"flex items-start gap-3",w=c&&"pb-3";let v;e[6]!==y||e[7]!==w?(v=ge("p-4 pr-11",y,w),e[6]=y,e[7]=w,e[8]=v):v=e[8];let _;e[9]!==r?(_=r&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:r}),e[9]=r,e[10]=_):_=e[10];let k;e[11]!==l?(k=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=k):k=e[12];let j;e[13]!==s?(j=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:s}),e[13]=s,e[14]=j):j=e[14];let b;e[15]!==i?(b=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=b):b=e[16];let A;e[17]!==j||e[18]!==b||e[19]!==k?(A=n.jsxs("div",{children:[k,j,b]}),e[17]=j,e[18]=b,e[19]=k,e[20]=A):A=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 N;e[23]!==A||e[24]!==T?(N=n.jsxs("div",{className:"min-w-0 flex-1",children:[A,T]}),e[23]=A,e[24]=T,e[25]=N):N=e[25];let O;e[26]!==N||e[27]!==v||e[28]!==_?(O=n.jsxs("div",{className:v,children:[_,N]}),e[26]=N,e[27]=v,e[28]=_,e[29]=O):O=e[29];let L;e[30]!==S||e[31]!==h||e[32]!==d||e[33]!==g?(L=d&&n.jsxs("div",{className:ge("flex items-center justify-between gap-3 px-4 py-2.5",g==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=h,e[32]=d,e[33]=g,e[34]=L):L=e[34];let C;return e[35]!==o||e[36]!==O||e[37]!==L||e[38]!==u||e[39]!==p||e[40]!==g?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":g,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:[u,p,O,L]}),e[35]=o,e[36]=O,e[37]=L,e[38]=u,e[39]=p,e[40]=g,e[41]=C):C=e[41],C}const Ee=[{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:U,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:X,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:U,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:X,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:U,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:X,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:U,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:X,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:U,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:X,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:U,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:ye,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:st,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:X,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:U,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:ye,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:U,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:rt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],le="studio.release-feed.v1",ue=new Set;let V="",W={},me=!1;function Pt(){if(me)return V||"{}";try{return localStorage.getItem(le)??"{}"}catch{return V||"{}"}}function Le(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=Pt();return t!==V&&(V=t,W=Le(t)),W}function Et(t){ue.add(t);const e=o=>{if(!(o.key!==le&&o.key!==null)){try{const a=localStorage.getItem(le)??"{}",s={...Le(a),...W};W=s,V=JSON.stringify(s)}catch{}t()}};return window.addEventListener("storage",e),()=>{ue.delete(t),window.removeEventListener("storage",e)}}function Lt(t){W=t,V=JSON.stringify(t);try{localStorage.setItem(le,V),me=!1}catch{me=!0}ue.forEach(e=>e())}function It(){const t=I.c(7),e=F.useSyncExternalStore(Et,Se,Se);let o;t[0]!==e?(o=c=>!!e[c],t[0]=e,t[1]=o):o=t[1];const a=o,l=Dt;let s;t[2]!==e?(s=Ee.reduce((c,h)=>e[h.id]?c:c+1,0),t[2]=e,t[3]=s):s=t[3];const i=s;let r;return t[4]!==a||t[5]!==i?(r={isSeen:a,markSeen:l,unseenCount:i},t[4]=a,t[5]=i,t[6]=r):r=t[6],r}function Dt(t){W[t]||Lt({...W,[t]:{seenAt:new Date().toISOString()}})}const $t=720*60*60*1e3,qt=10080*60*1e3;function zt(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function Mt(t){const e=Ee[0];if(!e)return null;const o=zt(e.date),a=t-o;return a<0||a>$t?null:e}function Rt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ft(t,e){const o=Rt(t);return o===null?!1:e-o>=qt}function Bt(){const t=I.c(34),e=R(),{data:o}=Z.useSession(),{isSeen:a,markSeen:l}=It();let s,i,r;if(t[0]!==a||t[1]!==o?.user?.createdAt){r=Symbol.for("react.early_return_sentinel");e:{const y=Date.now();if(s=Mt(y),!s){r=null;break e}if(!Ft(o?.user?.createdAt,y)){r=null;break e}i=a(s.id)}t[0]=a,t[1]=o?.user?.createdAt,t[2]=s,t[3]=i,t[4]=r}else s=t[2],i=t[3],r=t[4];if(r!==Symbol.for("react.early_return_sentinel"))return r;if(i)return null;let c;t[5]!==e?(c=e("announcements.release.ariaLabel"),t[5]=e,t[6]=c):c=t[6];let h;t[7]!==e?(h=e("announcements.release.dismiss"),t[7]=e,t[8]=h):h=t[8];const S=s.eyebrow,m=s.title;let x;t[9]!==s.id||t[10]!==l?(x=()=>l(s.id),t[9]=s.id,t[10]=l,t[11]=x):x=t[11];let g;t[12]!==s.id||t[13]!==s.learnMoreHref||t[14]!==l||t[15]!==e?(g=s.learnMoreHref?n.jsx("a",{href:s.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(s.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=s.id,t[13]=s.learnMoreHref,t[14]=l,t[15]=e,t[16]=g):g=t[16];let d;t[17]!==s.cta||t[18]!==s.id||t[19]!==l?(d=s.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(s.id),children:n.jsx("a",{href:s.cta.href,children:s.cta.label})}):null,t[17]=s.cta,t[18]=s.id,t[19]=l,t[20]=d):d=t[20];let u;t[21]!==s.bullets?(u=s.bullets.map(Ut),t[21]=s.bullets,t[22]=u):u=t[22];let f;t[23]!==u?(f=n.jsx("ul",{className:"flex flex-col gap-3",children:u}),t[23]=u,t[24]=f):f=t[24];let p;return t[25]!==s.eyebrow||t[26]!==s.title||t[27]!==f||t[28]!==c||t[29]!==h||t[30]!==x||t[31]!==g||t[32]!==d?(p=n.jsx(Pe,{ariaLabel:c,dismissLabel:h,eyebrow:S,title:m,onDismiss:x,footerLeading:g,actions:d,children:f}),t[25]=s.eyebrow,t[26]=s.title,t[27]=f,t[28]=c,t[29]=h,t[30]=x,t[31]=g,t[32]=d,t[33]=p):p=t[33],p}function Ut(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ie=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),H=Ie?"⌘":"Ctrl",z={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"}},Ht=[{label:"General",shortcuts:[z.keyboardShortcuts,z.back,z.newTask,z.toggleDaemon]},{label:"Editor",shortcuts:[z.saveAndFormat]},{label:"Chat",shortcuts:[z.focusChatInput,z.togglePlanMode,z.sendMessage,z.newLine]},{label:"Questions",shortcuts:[z.selectOption]},{label:"Monitoring",shortcuts:[z.applyFilter]}];function ve(t){return Ie?t.metaKey:t.ctrlKey}function Jt(t){const e=I.c(11),{open:o,onOpenChange:a}=t,l=R();let s;e[0]!==l?(s=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=s):s=e[1];let i;e[2]!==s?(i=n.jsx(Ae,{children:n.jsx(Te,{children:s})}),e[2]=s,e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"flex flex-col gap-4",children:Ht.map(Kt)}),e[4]=r):r=e[4];let c;e[5]!==i?(c=n.jsxs(Oe,{className:"sm:max-w-md",children:[i,r]}),e[5]=i,e[6]=c):c=e[6];let h;return e[7]!==a||e[8]!==o||e[9]!==c?(h=n.jsx(Ce,{open:o,onOpenChange:a,children:c}),e[7]=a,e[8]=o,e[9]=c,e[10]=h):h=e[10],h}function Kt(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(Gt)})]},t.label)}function Gt(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(Vt)})]},t.description)}function Vt(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const Wt=300*1e3,Qt=2;function Yt(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Xt(t,e){return t.count>=Qt&&t.version!==null&&t.version!==e}function Zt(){const t=I.c(31),e=R();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:ce.appVersionCheck(),queryFn:tn,refetchInterval:Wt,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:l}=re(o),[s,i]=F.useState(0);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={version:null,count:0},t[1]=r):r=t[1];const[c,h]=F.useState(r);l!==s&&(i(l),h(b=>Yt(b,a,"4.106.0")));const[S,m]=F.useState(null);if(!Xt(c,S))return null;let x;t[2]!==e?(x=e("announcements.version.ariaLabel"),t[2]=e,t[3]=x):x=t[3];let g;t[4]!==e?(g=e("announcements.version.dismiss"),t[4]=e,t[5]=g):g=t[5];let d;t[6]!==e?(d=e("announcements.version.eyebrow"),t[6]=e,t[7]=d):d=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=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=()=>m(c.version),t[13]=c.version,t[14]=y):y=t[14];let w;t[15]!==e?(w=e("announcements.version.currentSession",{version:"4.106.0"}),t[15]=e,t[16]=w):w=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let _;t[19]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(he,{size:14}),t[19]=_):_=t[19];let k;t[20]!==v?(k=n.jsxs($,{size:"sm",onClick:en,children:[v,_]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==x||t[24]!==g||t[25]!==d||t[26]!==u||t[27]!==f||t[28]!==y||t[29]!==w?(j=n.jsx(Pe,{ariaLabel:x,dismissLabel:g,eyebrow:d,title:u,description:f,icon:p,tone:"system",onDismiss:y,footerLeading:w,actions:k}),t[22]=k,t[23]=x,t[24]=g,t[25]=d,t[26]=u,t[27]=f,t[28]=y,t[29]=w,t[30]=j):j=t[30],j}function en(){return window.location.reload()}async function tn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}const nn=Date.parse("2026-07-21T00:00:00Z");function sn(t){try{localStorage.setItem(G.ptBrAnnouncementSeen(t),"1")}catch{}}function on(t){try{return localStorage.getItem(G.ptBrAnnouncementSeen(t))==="1"}catch{return!1}}function an(){const t=I.c(35),e=R(),[o,a]=Be(),{data:l,isPending:s}=Z.useSession(),i=l?.user,r=i?.id,c=i?.createdAt,h=c!=null&&new Date(c).getTime()<nn,S=Ue()==="pt-BR",m=!s&&!!r&&h&&S&&o.language==="en"&&!on(r),[x,g]=F.useState(!1),[d,u]=F.useState(!1);!x&&!s&&(g(!0),m&&r&&(sn(r),a(ln),u(!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}),u(!1)},t[0]=f):f=t[0];const p=f;let y;t[1]!==a?(y=()=>{a(rn),p("switch-back")},t[1]=a,t[2]=y):y=t[2];const w=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=M=>!M&&p("dismiss"),t[3]=v):v=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=n.jsx(Te,{children:k}),t[7]=k,t[8]=j):j=t[8];let b;t[9]!==e?(b=e("announcements.ptBr.description"),t[9]=e,t[10]=b):b=t[10];let A;t[11]!==b?(A=n.jsx(ct,{children:b}),t[11]=b,t[12]=A):A=t[12];let T;t[13]!==j||t[14]!==A?(T=n.jsxs(Ae,{children:[j,A]}),t[13]=j,t[14]=A,t[15]=T):T=t[15];let N;t[16]!==e?(N=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=N):N=t[17];let O;t[18]!==w||t[19]!==N?(O=n.jsx($,{variant:"outline",onClick:w,children:N}),t[18]=w,t[19]=N,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>p("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=D):D=t[25];let P;t[26]!==O||t[27]!==D?(P=n.jsxs(dt,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=P):P=t[28];let J;t[29]!==P||t[30]!==T?(J=n.jsxs(Oe,{className:"sm:max-w-md",children:[_,T,P]}),t[29]=P,t[30]=T,t[31]=J):J=t[31];let B;return t[32]!==d||t[33]!==J?(B=n.jsx(Ce,{open:d,onOpenChange:v,children:J}),t[32]=d,t[33]=J,t[34]=B):B=t[34],B}function rn(t){return{...t,language:"en"}}function ln(t){return{...t,language:"pt-BR"}}function cn({activeOrg:t}){return t&&(He(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Je()),null}function dn(t,e,o){if(!o)return null;const a=ht(t,e);return a?a.threads.get().find(s=>s.id===o)?.branch??null:null}function un(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:l,opts:s,autosendValue:i}=t,r={};o?r.virtualmcpid=o:e.virtualmcpid&&(r.virtualmcpid=e.virtualmcpid);const c=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,S=(o??c)!==c;let m="chat";if(s?.main)r.main=s.main;else if(l)l.main!==void 0&&(r.main=l.main),l.sidepanel!==void 0&&(m=l.sidepanel);else if(!S){const x=e.main;x&&typeof x=="string"&&!xt(x)&&(r.main=x)}return r.sidepanel=m,s?.autosend&&(r.autosend=i),r}const De="studio:thread-layout:v1",mn=50;function $e(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 fn(t,e,o,a=mn){const l=t.filter(([s])=>s!==e);for(l.push([e,$e(o)]);l.length>a;)l.shift();return l}function fe(){try{const t=sessionStorage.getItem(De);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qe(t){try{sessionStorage.setItem(De,JSON.stringify(t))}catch{}}function gn(t,e){t&&qe(fn(fe(),t,e))}function hn(t){if(!t)return null;const e=fe().find(([o])=>o===t);return e?$e(e[1]):null}function Rn(t){if(!t)return;const e=fe(),o=e.filter(([a])=>a!==t);o.length!==e.length&&qe(o)}function ze(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 Fn(t){const e=I.c(10);let o;e[0]!==t?(o=ze(t),e[0]=t,e[1]=o):o=e[1];const a=re(o);let l;e[2]!==a.data?.prompts?(l=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=l):l=e[3];let s;e[4]!==a.data?.tiles?(s=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=s):s=e[5];let i;return e[6]!==a.isLoading||e[7]!==l||e[8]!==s?(i={isLoading:a.isLoading,prompts:l,tiles:s},e[6]=a.isLoading,e[7]=l,e[8]=s,e[9]=i):i=e[9],i}function pn(t){const e=I.c(31),{orgSlug:o,orgName:a,domain:l}=t,s=R();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const r=i,c=xn;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(je,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let S;e[3]!==s?(S=s("common.ssoRequiredScreen.title"),e[3]=s,e[4]=S):S=e[4];let m;e[5]!==S?(m=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=m):m=e[6];let x;e[7]!==l||e[8]!==a||e[9]!==s?(x=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",s("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${s("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):s("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=a,e[9]=s,e[10]=x):x=e[10];let g;e[11]!==x?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[11]=x,e[12]=g):g=e[12];let d;e[13]!==m||e[14]!==g?(d=n.jsxs("div",{className:"space-y-2",children:[m,g]}),e[13]=m,e[14]=g,e[15]=d):d=e[15];let u;e[16]!==s?(u=s("common.ssoRequiredScreen.signInWithSso"),e[16]=s,e[17]=u):u=e[17];let f;e[18]!==r||e[19]!==u?(f=n.jsx($,{onClick:r,children:u}),e[18]=r,e[19]=u,e[20]=f):f=e[20];let p;e[21]!==s?(p=s("common.ssoRequiredScreen.goBack"),e[21]=s,e[22]=p):p=e[22];let y;e[23]!==p?(y=n.jsx($,{variant:"ghost",onClick:c,children:p}),e[23]=p,e[24]=y):y=e[24];let w;e[25]!==y||e[26]!==f?(w=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,y]}),e[25]=y,e[26]=f,e[27]=w):w=e[27];let v;return e[28]!==w||e[29]!==d?(v=n.jsxs(ee,{children:[h,d,w]}),e[28]=w,e[29]=d,e[30]=v):v=e[30],v}function xn(){window.location.href="/"}function yn(t){const e=I.c(8),{org:o,children:a}=t,s=yt(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==s?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:s,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s,e[3]=i):i=e[3];const r=i;let c;return e[4]!==a||e[5]!==o||e[6]!==r?(c=n.jsx(nt,{org:o,project:r,children:a}),e[4]=a,e[5]=o,e[6]=r,e[7]=c):c=e[7],c}function bn(){const t=Ke(),e=pt(),{org:o,locator:a}=Ge(),l=Ne({strict:!1}),s=Ve({strict:!1}),i=l.org??"",r=l.taskId??"",c=(d,u,f=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:d},search:u,replace:f}),h=(d,u=!0)=>c(r,d,u),S=d=>h(u=>({...u,sidepanel:d})),m=(d,u,f)=>{const p=!!r&&r===d;r&&!p&&gn(r,{main:s.main,sidepanel:s.sidepanel});const y=p?null:hn(d),w=be(o.id).id;return c(d,v=>un({prev:v,virtualMcpId:u,decopilotId:w,savedLayout:y,opts:f,autosendValue:mt}),!1)};return{openSidePanel:S,setTaskId:m,createNewTask:async d=>{const u=crypto.randomUUID(),f=d??s.virtualmcpid??be(o.id).id,y=f===s.virtualmcpid?dn(o.slug,a,r):null;try{await e?.create({id:u,virtual_mcp_id:f,...y?{branch:y}:{}})}catch{}m(u,f)},openTab:d=>c(r||crypto.randomUUID(),u=>({...u,main:d}))}}function wn(){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=We(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:s}=Ne(l),[i,r]=F.useState(!1),c=Qe(),h=a??"";let S;t[2]!==h?(S=ze(h),t[2]=h,t[3]=S):S=t[3];const m=!!a&&!s;let x;t[4]!==S||t[5]!==m?(x={...S,enabled:m},t[4]=S,t[5]=m,t[6]=x):x=t[6],re(x);const{data:g}=Z.useSession(),d=g?.user?.id;let u;t[7]!==a||t[8]!==d?(u=a&&d?Ye(d,a):null,t[7]=a,t[8]=d,t[9]=u):u=t[9];const f=u;let p,y;t[10]!==c?(p=()=>{const E=q=>{if(ve(q)&&q.code==="KeyK"){q.preventDefault(),r(!0);return}ve(q)&&q.code==="BracketLeft"&&c.history.canGoBack()&&(q.preventDefault(),c.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},y=[c],t[10]=c,t[11]=p,t[12]=y):(p=t[11],y=t[12]),F.useEffect(p,y);let w;t[13]!==a?(w=ce.activeOrganization(a),t[13]=a,t[14]=w):w=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:E}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(Sn),q=xe(E);return E&&!q&&localStorage.setItem(G.lastOrgSlug(),a),d&&E&&Ze(d,a,E),E},t[15]=a,t[16]=d,t[17]=v):v=t[17];const _=f?f.data:void 0,k=f?.updatedAt;let j;t[18]!==v||t[19]!==_||t[20]!==k||t[21]!==w?(j={queryKey:w,queryFn:v,initialData:_,initialDataUpdatedAt:k,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=_,t[20]=k,t[21]=w,t[22]=j):j=t[22];const{data:b}=ke(j),A=b?.id,T=b?.slug,{data:N}=bt(A,T),O=A??"",L=T??"";let C;t[23]!==O||t[24]!==L?(C=ft({connectionId:gt,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const D=!!A&&!!T;let P;if(t[26]!==C||t[27]!==D?(P={...C,enabled:D},t[26]=C,t[27]=D,t[28]=P):P=t[28],re(P),!b){let E;t[29]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(et,{}),t[29]=E):E=t[29];let q;return t[30]!==a?(q=n.jsx(F.Suspense,{fallback:E,children:n.jsx(Ct,{orgSlug:a})}),t[30]=a,t[31]=q):q=t[31],q}if(xe(b)){localStorage.getItem(G.lastOrgSlug())===a&&localStorage.removeItem(G.lastOrgSlug());let E;return t[32]!==b.name?(E=n.jsx(Xe,{orgName:b.name}),t[32]=b.name,t[33]=E):E=t[33],E}if(N?.ssoRequired&&!N.authenticated){let E;return t[34]!==b.id||t[35]!==b.name||t[36]!==b.slug||t[37]!==N.domain?(E=n.jsx(pn,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:N.domain}),t[34]=b.id,t[35]=b.name,t[36]=b.slug,t[37]=N.domain,t[38]=E):E=t[38],E}const B=b.logo??null;let M;t[39]!==b||t[40]!==B?(M={...b,logo:B},t[39]=b,t[40]=B,t[41]=M):M=t[41];let Q;t[42]!==b?(Q=n.jsx(cn,{activeOrg:b}),t[42]=b,t[43]=Q):Q=t[43];let ne;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(tt,{}),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(Bt,{}),n.jsx(Zt,{})]}),t[45]=se):se=t[45];let Y;t[46]!==i?(Y=n.jsx(Jt,{open:i,onOpenChange:r}),t[46]=i,t[47]=Y):Y=t[47];let oe;t[48]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(an,{}),t[48]=oe):oe=t[48];let ie;return t[49]!==M||t[50]!==Q||t[51]!==Y?(ie=n.jsxs(yn,{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 Sn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function vn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ut,{children:n.jsx(wn,{})}),t[0]=e):e=t[0],e}const Bn=Object.freeze(Object.defineProperty({__proto__:null,default:vn,usePanelActions:bn},Symbol.toStringTag,{value:"Module"}));export{z as K,Fn as a,Rn as f,ve as i,dn as r,Bn as s,bn as u};
@@ -1 +1 @@
1
- import{c as b,m as g,j as o,cP as P,cQ as R,H,cR as A,cS as V,cT as W,cU as q,r as O,B as G,bd as L,bB as F}from"./index-Dyk7ikoX.js";import{i as Q}from"./LayoutLeft-DrmvAZtO.js";import{u as U}from"./use-mobile-Drq4EVlE.js";import{i as J}from"./X-DKUaOMiG.js";import{c as I,T as z,a as D,b as k}from"./tooltip-CXgiQhhm.js";function K(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Y,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(J,{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=O.createContext(null);function B(){const i=O.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=U(),[r,m]=O.useState(d),[u,h]=O.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(I,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=B();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 T;e[10]!==n||e[11]!==_?(T=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]=T):T=e[12];let M;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==T?(M=o.jsx(K,{open:h,onOpenChange:f,...a,children:T}),e[13]=h,e[14]=a,e[15]=f,e[16]=T,e[17]=M):M=e[17],M}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}=B();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(z,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(I,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function 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}=B();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(z,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(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,K as q,xe as r,B as u};
1
+ import{c as b,m as g,j as o,cP as P,cQ as R,H,cR as A,cS as V,cT as W,cU as q,r as O,B as G,bd as L,bB as F}from"./index-DPUSzQFm.js";import{i as Q}from"./LayoutLeft-B2dvdNWS.js";import{u as U}from"./use-mobile-C_lJg_dg.js";import{i as J}from"./X-B-U9vY4e.js";import{c as I,T as z,a as D,b as k}from"./tooltip-DWRiLMWp.js";function K(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Y,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(J,{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=O.createContext(null);function B(){const i=O.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=U(),[r,m]=O.useState(d),[u,h]=O.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(I,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=B();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 T;e[10]!==n||e[11]!==_?(T=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]=T):T=e[12];let M;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==T?(M=o.jsx(K,{open:h,onOpenChange:f,...a,children:T}),e[13]=h,e[14]=a,e[15]=f,e[16]=T,e[17]=M):M=e[17],M}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}=B();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(z,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(I,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function 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}=B();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(z,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(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,K as q,xe as r,B as u};
@@ -1 +1 @@
1
- import{c as n,m as c,j as i}from"./index-Dyk7ikoX.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-DPUSzQFm.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{b as B,F as L,r as v,j as e,B as u,q as C,t as c,c as k}from"./index-Dyk7ikoX.js";import{D as z}from"./domain-settings-BPHG1eY7.js";import{P as x}from"./index-DpBmVLF2.js";import{f as T,e as O,b as R,A as F,d as q,c as M,g as U}from"./alert-dialog-ByGGCVaW.js";import{I as d}from"./input-CrADDofK.js";import{S as $}from"./switch-Bm3cV4VT.js";import{a as H,b as G,c as J,d as K}from"./use-org-sso-8BJQP_6U.js";import{c as Q,S as y,a as E,b as a,d as D}from"./settings-section-BMZXZlUy.js";import{s as V}from"./Trash01-DpAfQYpB.js";import{R as W}from"./require-capability-DEQ0QqLK.js";import"./studio-tools-BMu9ujdK.js";import"./badge-Bp_khuBP.js";import"./select-BpDhPcun.js";import"./tooltip-CXgiQhhm.js";import"./Check-B5KuwkVX.js";import"./ChevronDown-DTXciC2Y.js";import"./ChevronUp-BOcmGc7e.js";import"./sidebar-B5e9YFZV.js";import"./LayoutLeft-DrmvAZtO.js";import"./use-mobile-Drq4EVlE.js";import"./X-DKUaOMiG.js";import"./card-D2g28w4T.js";import"./ArrowUpRight-Chggeoxo.js";import"./use-capability-DOkFocRF.js";import"./access-gate-axaZ1vUD.js";import"./capability-load-error-Azqebb7t.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=G(o.id,o.slug),p=J(o.id,o.slug),b=K(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,S]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),S(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),S(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await p.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),S(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(Q,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(z,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx($,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:p.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>S(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(O,{children:[e.jsx(R,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(q,{children:[e.jsx(M,{disabled:p.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(U,{onClick:w,disabled:p.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function Ee(){const s=k.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{Ee as default};
1
+ import{b as B,F as L,r as v,j as e,B as u,q as C,t as c,c as k}from"./index-DPUSzQFm.js";import{D as z}from"./domain-settings-ByeSQQ2j.js";import{P as x}from"./index-cX02Wkot.js";import{f as T,e as O,b as R,A as F,d as q,c as M,g as U}from"./alert-dialog-wCHBPMgf.js";import{I as d}from"./input-C6HduerO.js";import{S as $}from"./switch-BV4z0b9T.js";import{a as H,b as G,c as J,d as K}from"./use-org-sso-QZb4zZJx.js";import{c as Q,S as y,a as E,b as a,d as D}from"./settings-section-Dz9Hgc5z.js";import{s as V}from"./Trash01-DXzlmJ34.js";import{R as W}from"./require-capability-CHlf1rTn.js";import"./studio-tools-NTdqO4cY.js";import"./badge-CIuy-tuu.js";import"./select-DmXTa4oO.js";import"./tooltip-DWRiLMWp.js";import"./Check-Cnez_IQh.js";import"./ChevronDown-ncA3h8F6.js";import"./ChevronUp-C9y04a8F.js";import"./sidebar-BPtwSHPU.js";import"./LayoutLeft-B2dvdNWS.js";import"./use-mobile-C_lJg_dg.js";import"./X-B-U9vY4e.js";import"./card-cDcO8pqf.js";import"./ArrowUpRight-DQ1ltOUw.js";import"./use-capability-D6Cr5XLD.js";import"./access-gate-DoRnqeAN.js";import"./capability-load-error-BmWjgACv.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=G(o.id,o.slug),p=J(o.id,o.slug),b=K(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,S]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),S(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),S(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await p.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),S(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(Q,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(z,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx($,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:p.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>S(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(O,{children:[e.jsx(R,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(q,{children:[e.jsx(M,{disabled:p.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(U,{onClick:w,disabled:p.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function Ee(){const s=k.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{Ee as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-fNbPN3WV.js","assets/index-DPUSzQFm.js","assets/index-BfpiUr3Z.css","assets/Tool02-RKDZaiJk.js","assets/CheckCircle-pA7GzUJX.js","assets/Settings02-B8qG_3kP.js","assets/use-mcp-client-D4kRoqsh.js","assets/auth-Bkh-2aIu.js","assets/useInfiniteQuery-BXBurSQ0.js","assets/use-infinite-scroll-CshkwFkA.js","assets/studio-tools-NTdqO4cY.js","assets/badge-CIuy-tuu.js","assets/input-C6HduerO.js","assets/dropdown-menu-CqLN4WnX.js","assets/Check-Cnez_IQh.js","assets/ChevronRight-DBBXusFc.js","assets/DotsVertical-nghs-9ch.js","assets/table-CnZR0VSr.js","assets/toggle-group-CYMdMteR.js","assets/use-view-mode-DQq45P_3.js","assets/use-mobile-C_lJg_dg.js","assets/FilterLines-BVMKJFk4.js","assets/Globe01-DoUM29Rz.js","assets/SearchMd-DYFHECi9.js","assets/dialog-DRW5Z6kg.js","assets/X-B-U9vY4e.js","assets/AlertCircle-DY_zDIC_.js","assets/Upload01-BylKJ3WB.js","assets/alert-dialog-wCHBPMgf.js","assets/card-cDcO8pqf.js","assets/Trash01-DXzlmJ34.js","assets/label-CGAP8lVf.js","assets/select-DmXTa4oO.js","assets/tooltip-DWRiLMWp.js","assets/ChevronDown-ncA3h8F6.js","assets/ChevronUp-C9y04a8F.js","assets/switch-BV4z0b9T.js","assets/textarea-BfGzPoPY.js","assets/ArrowRight-4rUEqKVq.js","assets/XCircle-BNxdXQeR.js","assets/checkbox-IKaHw5Sh.js","assets/Eye-NAV4B6_7.js","assets/LinkExternal01-CSt2aBCB.js","assets/use-copy-D-oq_4A-.js","assets/Copy01-CnQ9-KvL.js","assets/Key01-BZIwkIt-.js","assets/Plus-BjwUeIOu.js","assets/mcp-oauth-BfBEuniq.js","assets/Play-tkSNItqO.js"])))=>i.map(i=>d[i]);
2
+ import{c as m,d as n,f as c,j as t,k as f,r as l,aN as p}from"./index-DPUSzQFm.js";import{R as u}from"./require-capability-CHlf1rTn.js";import"./use-capability-D6Cr5XLD.js";import"./access-gate-DoRnqeAN.js";import"./capability-load-error-BmWjgACv.js";const g=l.lazy(()=>p(()=>import("./registry-layout-fNbPN3WV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};