decocms 4.123.2 → 4.123.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/dist/client/assets/{AlertCircle-XCC42vnv.js → AlertCircle-L2_Sd6lU.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BbeQRNr_.js → AreaChart-JJ5_9ona.js} +1 -1
  3. package/dist/client/assets/{ArrowRight-BKBmhaLR.js → ArrowRight-B0OqN8Jo.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-CIc1qLBi.js → ArrowUp-CbmX8ovs.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-BfP64txw.js → ArrowUpRight-D3lh3ngo.js} +1 -1
  6. package/dist/client/assets/{Check-BqbTs6Sp.js → Check-DB5oZP13.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BPEhKJ6_.js → CheckCircle-alDZMW6G.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-BeuEDkJI.js → ChevronDown-GopahMj1.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-CpxTzNTm.js → ChevronRight-ui5XHzny.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-tFv_O9M0.js → ChevronUp-D5wDT63C.js} +1 -1
  11. package/dist/client/assets/{Copy01-DqXF8bW_.js → Copy01-DEfjLs9p.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-Ue6eGmYj.js → DotsVertical-CcPC0PNF.js} +1 -1
  13. package/dist/client/assets/{Eye-Bk2Xgrvg.js → Eye-Bc3sQzoR.js} +1 -1
  14. package/dist/client/assets/{FilterLines-8U9bkKls.js → FilterLines-tCdWL5hb.js} +1 -1
  15. package/dist/client/assets/{Globe01-D61pxNbc.js → Globe01-CbZESaEA.js} +1 -1
  16. package/dist/client/assets/{Globe04-BVIaxGYK.js → Globe04-M6U6T0H4.js} +1 -1
  17. package/dist/client/assets/{HardDrive-Dp3ZELAy.js → HardDrive-CGmWOYvw.js} +1 -1
  18. package/dist/client/assets/{Image01-C0tZD_4N.js → Image01-C2xzf1CN.js} +1 -1
  19. package/dist/client/assets/{Key01-C1OrSDs9.js → Key01-43eO7UlR.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-BR0426bP.js → LayoutLeft-DAphaI00.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-Dbdi7ThP.js → LinkExternal01--pNnV7cg.js} +1 -1
  22. package/dist/client/assets/{LogOut01-BGKt8uk-.js → LogOut01-B4flmmHC.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BpV1xCDw.js → Monitor01-Bst6l0Ku.js} +1 -1
  24. package/dist/client/assets/{Package-CPikbMFw.js → Package-D-IJM6gG.js} +1 -1
  25. package/dist/client/assets/{Palette-CI2gPMub.js → Palette-Ckwxyb-f.js} +1 -1
  26. package/dist/client/assets/{Play-Ce8b-45f.js → Play-DTEVz49q.js} +1 -1
  27. package/dist/client/assets/{Plus-BHn273te.js → Plus-FZpR4bVD.js} +1 -1
  28. package/dist/client/assets/{SearchLg-BhaN5Dkw.js → SearchLg-DdY4zxC_.js} +1 -1
  29. package/dist/client/assets/{SearchMd-ZOU8eHm5.js → SearchMd-OCRnz5Xb.js} +1 -1
  30. package/dist/client/assets/{Settings02-BMEbk95n.js → Settings02-JbKN9VPO.js} +1 -1
  31. package/dist/client/assets/{Shield01-ByBmvv87.js → Shield01-BgAua3_d.js} +1 -1
  32. package/dist/client/assets/{Star01-CXoaBlcx.js → Star01-CIumiSy1.js} +1 -1
  33. package/dist/client/assets/{Stars01-DzME0iEm.js → Stars01-BclRruC0.js} +1 -1
  34. package/dist/client/assets/{Stars02-aAWJ3II4.js → Stars02-4vri3Tgo.js} +1 -1
  35. package/dist/client/assets/{Sun-BvXvztsJ.js → Sun-xZL4-cAf.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-D0-CcWGL.js → SwitchHorizontal01-AhzMV8I6.js} +1 -1
  37. package/dist/client/assets/{Tool01-CsQku2ha.js → Tool01-DoBjW6xd.js} +1 -1
  38. package/dist/client/assets/{Tool02-9ZNic0qo.js → Tool02-B34b6yY_.js} +1 -1
  39. package/dist/client/assets/{Trash01-DxhoFTU2.js → Trash01--Xt0YUwx.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-DolEYhiE.js → TrendUp01-BEs6MtV5.js} +1 -1
  41. package/dist/client/assets/{Upload01-Cw1RTJdA.js → Upload01-Cw2sE8Su.js} +1 -1
  42. package/dist/client/assets/{User01-B9tHPp45.js → User01-BrzEmx_n.js} +1 -1
  43. package/dist/client/assets/{Users01-CtZ6-BIN.js → Users01-CW9SYrlM.js} +1 -1
  44. package/dist/client/assets/{Users03-DKzOXdwZ.js → Users03-brygpPBv.js} +1 -1
  45. package/dist/client/assets/{X-BlyIKSVp.js → X-CO8ug9st.js} +1 -1
  46. package/dist/client/assets/{XCircle-BS-TfzRr.js → XCircle-Py7Sro_B.js} +1 -1
  47. package/dist/client/assets/{XClose-CRX1ODGE.js → XClose-j_wqntHT.js} +1 -1
  48. package/dist/client/assets/{Zap-BbOt7jmA.js → Zap-B-6_JwgE.js} +1 -1
  49. package/dist/client/assets/{ZapSquare-CmpVcXwq.js → ZapSquare-BW0Q0EWX.js} +1 -1
  50. package/dist/client/assets/{ZoomOut-0gQoEQDY.js → ZoomOut-BOXM3_x6.js} +1 -1
  51. package/dist/client/assets/{access-gate-BVvy6Xvh.js → access-gate-BpbiSzai.js} +1 -1
  52. package/dist/client/assets/{add-section-modal-Q5ILcd5n.js → add-section-modal-Bk7A9rwD.js} +1 -1
  53. package/dist/client/assets/{agent-icon-D8X6NgHQ.js → agent-icon-QA5QJyND.js} +1 -1
  54. package/dist/client/assets/{agents-list-Djdw5X52.js → agents-list-PZORoRJz.js} +1 -1
  55. package/dist/client/assets/{ai-providers-CZhLConq.js → ai-providers-DDd9Rv0p.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-BbSxHfpk.js → alert-dialog-BfFWbJUO.js} +1 -1
  57. package/dist/client/assets/{alert-DZt6s1-5.js → alert-iiMsO05v.js} +1 -1
  58. package/dist/client/assets/{app-editor-meMLTo05.js → app-editor-DHvNQ2tz.js} +1 -1
  59. package/dist/client/assets/{auth-C0wxe8j1.js → auth-DdikGrcL.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-y2fJEFYv.js → auth-catchall-DIXtJ3rt.js} +1 -1
  61. package/dist/client/assets/{auth-entry-DcpdTLhj.js → auth-entry-IXyVNC1x.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-BKK4N-N6.js → auth-split-layout-SoCmq3R6.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-Bkljayza.js → authenticate-and-persist-oauth-4KHEaDSq.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-BjXQjt1z.js → automation-list-row-IkggA24q.js} +1 -1
  65. package/dist/client/assets/{automation-runs-B-1RH_oI.js → automation-runs-Blgk2dmd.js} +1 -1
  66. package/dist/client/assets/{automations-B_fbLWl9.js → automations-CYP5KE6_.js} +1 -1
  67. package/dist/client/assets/{autosend-Be-3DD9j.js → autosend-CBAfK5t4.js} +1 -1
  68. package/dist/client/assets/{avatar-CfUWjhDf.js → avatar-BhOHpW21.js} +1 -1
  69. package/dist/client/assets/{badge-DF-If9rp.js → badge-19AlEUXR.js} +1 -1
  70. package/dist/client/assets/{block-document-QDu2JdkJ.js → block-document-CuWQnQrC.js} +1 -1
  71. package/dist/client/assets/{brand-context-dVMghOOW.js → brand-context-Bo3DpM9C.js} +1 -1
  72. package/dist/client/assets/{buckets-Buo3pKQm.js → buckets-oXbjzbfo.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-CvwIPpKb.js → bulk-category-panel-DBggROrb.js} +1 -1
  74. package/dist/client/assets/{calendar-DDdEu02Z.js → calendar-C-cHCqU_.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-B47bErtJ.js → capability-load-error-BM2fvA8J.js} +1 -1
  76. package/dist/client/assets/{card-Di-QpnW-.js → card-B7wd2jZa.js} +1 -1
  77. package/dist/client/assets/{category-editor-BYmynf3_.js → category-editor-vKqnWUAz.js} +1 -1
  78. package/dist/client/assets/{chat-context-Bnmr5Esu.js → chat-context-cois9GbP.js} +1 -1
  79. package/dist/client/assets/{checkbox-Ca7NY1wR.js → checkbox-BgGYbIr_.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-BM4UbwaW.js → cli-auth-success-hOPsICHj.js} +1 -1
  81. package/dist/client/assets/{collection-detail-C_jvvVx2.js → collection-detail-C6Bk64cu.js} +1 -1
  82. package/dist/client/assets/{collection-display-button-Dvi-6XHb.js → collection-display-button-BKI48sXk.js} +1 -1
  83. package/dist/client/assets/{collection-search-2V1qih3c.js → collection-search-DAh3jqUZ.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-CVTrxPz3.js → collection-table-wrapper-DBNRWWjy.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-u1HJ_eBo.js → collection-tabs-Bzc-Bwya.js} +1 -1
  86. package/dist/client/assets/{command-DfYO983M.js → command-Rs12HCpy.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding--4NONN4b.js → commerce-onboarding-Czo3ithV.js} +1 -1
  88. package/dist/client/assets/{companions-core-BBPRO-hx.js → companions-core-DBTJnfkM.js} +1 -1
  89. package/dist/client/assets/{connect-CxMb3kaP.js → connect-an_JEppH.js} +1 -1
  90. package/dist/client/assets/{connect-desktop-dialog-CVoQrJ8F.js → connect-desktop-dialog-C7HEhd-r.js} +1 -1
  91. package/dist/client/assets/{connection-BbilOib-.js → connection-D6VZs-wu.js} +1 -1
  92. package/dist/client/assets/{connection-card-DrMoCtl4.js → connection-card-bQDcKo__.js} +1 -1
  93. package/dist/client/assets/{connection-detail-DhhlgQDD.js → connection-detail-C6hbUktG.js} +1 -1
  94. package/dist/client/assets/{connection-form-helpers-jobllNge.js → connection-form-helpers-C96vMPcq.js} +1 -1
  95. package/dist/client/assets/{connections-Cbwi0auT.js → connections-BQS1fv7n.js} +1 -1
  96. package/dist/client/assets/{decopilot-sse-pool-BuymyfF0.js → decopilot-sse-pool-iEQL5KR3.js} +1 -1
  97. package/dist/client/assets/{dialog-poX5N6OF.js → dialog-Dokyv2ZE.js} +1 -1
  98. package/dist/client/assets/{domain-settings-Bf7aOGCi.js → domain-settings-C8InK3WG.js} +1 -1
  99. package/dist/client/assets/{drawer-CemU5qiA.js → drawer-BMHlRNAg.js} +1 -1
  100. package/dist/client/assets/{dropdown-menu-C_IfrJtZ.js → dropdown-menu-BwJyXZfe.js} +1 -1
  101. package/dist/client/assets/{empty-state-BPgoMkQH.js → empty-state-BWJYsCr0.js} +1 -1
  102. package/dist/client/assets/{extract-connection-data-BP-6YHKf.js → extract-connection-data-sJyz_kmK.js} +1 -1
  103. package/dist/client/assets/{file-explorer-Ba3Y3MJx.js → file-explorer-TY-6AnWk.js} +1 -1
  104. package/dist/client/assets/{file-type-icon-CCvkC4UX.js → file-type-icon-aTlbGcrU.js} +1 -1
  105. package/dist/client/assets/{files-z7S0toY0.js → files-DWBGaZBx.js} +1 -1
  106. package/dist/client/assets/{form-CBy1yFE7.js → form-r2AJKFI1.js} +1 -1
  107. package/dist/client/assets/{general-CT5NFN2-.js → general-C8RpsLMU.js} +1 -1
  108. package/dist/client/assets/{github-repo-picker-WGLIOn68.js → github-repo-picker-DSga5RKA.js} +1 -1
  109. package/dist/client/assets/{hooks-DO_GgbQ9.js → hooks-BmjrNgnF.js} +1 -1
  110. package/dist/client/assets/{index-COExXZVa.js → index-BDzEvuYQ.js} +5 -5
  111. package/dist/client/assets/{index-BYB7faC2.js → index-BMGptcmo.js} +1 -1
  112. package/dist/client/assets/index-BgF6OVaJ.css +1 -0
  113. package/dist/client/assets/{index-BipIQ3Z0.js → index-CYpCj0X5.js} +1 -1
  114. package/dist/client/assets/{index-Dd3322Xk.js → index-C_cpSetb.js} +1 -1
  115. package/dist/client/assets/{index-BUOc0Rlo.js → index-Cnj4bt0G.js} +1 -1
  116. package/dist/client/assets/{index-DAtTWfgt.js → index-CqNjsMzG.js} +3 -3
  117. package/dist/client/assets/{index-C8Q5qfXW.js → index-CrvdPI25.js} +1 -1
  118. package/dist/client/assets/{index-yo4ZLMjW.js → index-D00LNXNE.js} +1 -1
  119. package/dist/client/assets/{index-BTDLuR6K.js → index-Dq9heBL0.js} +1 -1
  120. package/dist/client/assets/{index-CrVcfr0w.js → index-DyO-kHIK.js} +3 -3
  121. package/dist/client/assets/{index-BZketn2G.js → index-K6_aGvAH.js} +1 -1
  122. package/dist/client/assets/{index-AqXdWiS8.js → index-R4z1njSV.js} +1 -1
  123. package/dist/client/assets/{index-redirect-XUFJEhWY.js → index-redirect-CClUZvT7.js} +1 -1
  124. package/dist/client/assets/{index-NwnGjivz.js → index-xUaDrraM.js} +1 -1
  125. package/dist/client/assets/{input-BTaZQTwt.js → input-ILUIMU3o.js} +1 -1
  126. package/dist/client/assets/{integration-icon-BFQyCHkv.js → integration-icon-B9yypML4.js} +1 -1
  127. package/dist/client/assets/{invite-member-dialog-UtoUhAQN.js → invite-member-dialog-DQu_aj2a.js} +1 -1
  128. package/dist/client/assets/{label-CFiSNSYm.js → label-BJWYHgyq.js} +1 -1
  129. package/dist/client/assets/{layout-DNQqS4dI.js → layout-CT-jLU36.js} +1 -1
  130. package/dist/client/assets/{login-x836Suod.js → login-2pqt4_DP.js} +1 -1
  131. package/dist/client/assets/{mcp-oauth-DjzzahSx.js → mcp-oauth-C3Ko-bUZ.js} +1 -1
  132. package/dist/client/assets/{members-C0PCyfD6.js → members-Dm3RbH6S.js} +1 -1
  133. package/dist/client/assets/{monaco-editor-BQlr5iHl.js → monaco-editor-Cpij-8Ee.js} +1 -1
  134. package/dist/client/assets/{monitoring-stats-row-CYTksZ0o.js → monitoring-stats-row-hX1uqzrC.js} +1 -1
  135. package/dist/client/assets/{multi-select-g0Zcdpuc.js → multi-select-0Io0Tszk.js} +1 -1
  136. package/dist/client/assets/{oauth-callback-CUqReAyz.js → oauth-callback-DMU0KmYC.js} +1 -1
  137. package/dist/client/assets/{oauth-callback-ai-provider-BO8s14-F.js → oauth-callback-ai-provider-0gXu8UG3.js} +1 -1
  138. package/dist/client/assets/{onboarding-ifaPlnD7.js → onboarding-CuDhxLK1.js} +1 -1
  139. package/dist/client/assets/{org-install-HCRLLUwR.js → org-install-CU4DsRV8.js} +1 -1
  140. package/dist/client/assets/{org-layout-37oPrsYr.js → org-layout-DZjAF2rR.js} +1 -1
  141. package/dist/client/assets/{organization-choice-D4wTlG5B.js → organization-choice-DXlsYyFE.js} +1 -1
  142. package/dist/client/assets/{orgs-CO8Ia10y.js → orgs-BxvE7kR5.js} +1 -1
  143. package/dist/client/assets/{page-seo-form-BElu4PcX.js → page-seo-form-CQVW-O1X.js} +1 -1
  144. package/dist/client/assets/page-seo-sheet-Bn2fasY2.js +1 -0
  145. package/dist/client/assets/{popover-6uiYyt5u.js → popover-DOhWIyFn.js} +1 -1
  146. package/dist/client/assets/{post-editor-CsfSnGeq.js → post-editor-CRfeUeDM.js} +1 -1
  147. package/dist/client/assets/{primitives-BQwrCqaw.js → primitives-J19a0WJH.js} +1 -1
  148. package/dist/client/assets/{profile-BLmFaHgn.js → profile-BvmDkzuZ.js} +1 -1
  149. package/dist/client/assets/project-app-view-D-ZtKh4U.js +1 -0
  150. package/dist/client/assets/record-editor-DrzkM-Ds.js +1 -0
  151. package/dist/client/assets/{redirect-editor-CAt-r8L6.js → redirect-editor-vvFOQ-sT.js} +1 -1
  152. package/dist/client/assets/registry-C1Tf9F6q.js +2 -0
  153. package/dist/client/assets/{registry-layout-DzeMIQ1B.js → registry-layout-5WhPAYqh.js} +1 -1
  154. package/dist/client/assets/{reports-CjTucZb2.js → reports-EksgyE9q.js} +1 -1
  155. package/dist/client/assets/{require-capability-AlDMTe2M.js → require-capability-DWEWczmp.js} +1 -1
  156. package/dist/client/assets/{required-auth-layout-CxsIwght.js → required-auth-layout-CdxpGwvi.js} +1 -1
  157. package/dist/client/assets/{reset-password-fK3yI8C1.js → reset-password-kqpU-ZeR.js} +1 -1
  158. package/dist/client/assets/{roles-8n-_hcZU.js → roles-BKIJxSdo.js} +1 -1
  159. package/dist/client/assets/{search-input-BIlo3d_x.js → search-input-B12iY9RX.js} +1 -1
  160. package/dist/client/assets/{secrets-C5IXt4y-.js → secrets-46UfcHrR.js} +1 -1
  161. package/dist/client/assets/{sections-editor-C5e3xbtX.js → sections-editor-B3SI5BAU.js} +1 -1
  162. package/dist/client/assets/{select-C-lRFMd0.js → select-DX2MqsaL.js} +1 -1
  163. package/dist/client/assets/{select-model-CnP2KvlX.js → select-model-CM4XpLAg.js} +1 -1
  164. package/dist/client/assets/{self-tool-result-WKXfGLIo.js → self-tool-result-BbfuhcLu.js} +1 -1
  165. package/dist/client/assets/{seo-editor-DDHhP88k.js → seo-editor-DwQJUPZT.js} +1 -1
  166. package/dist/client/assets/{settings-layout-Bv0OyYHJ.js → settings-layout-BHscin5B.js} +1 -1
  167. package/dist/client/assets/{settings-section-DcvaTSLo.js → settings-section-Bqx6Ko_C.js} +1 -1
  168. package/dist/client/assets/{shell-controls-7jsmZLrB.js → shell-controls-D04aa56d.js} +1 -1
  169. package/dist/client/assets/{shell-layout-CxYEqHLt.js → shell-layout-BMdQWv4i.js} +1 -1
  170. package/dist/client/assets/{sidebar-BAm9qD2e.js → sidebar-B3VgZJII.js} +1 -1
  171. package/dist/client/assets/{skeleton-rk4WuHqh.js → skeleton-C72ZY1HZ.js} +1 -1
  172. package/dist/client/assets/{sso-CzAtA7Zs.js → sso-DWdCSoYl.js} +1 -1
  173. package/dist/client/assets/{store-DTElmzZA.js → store-BV44Ez0s.js} +1 -1
  174. package/dist/client/assets/store-registry-ulresH45.js +2 -0
  175. package/dist/client/assets/{studio-tools-B1eVxu6k.js → studio-tools-MuyFlJTV.js} +1 -1
  176. package/dist/client/assets/{switch-DItIkDat.js → switch-BSoG0kUR.js} +1 -1
  177. package/dist/client/assets/{table-Cp9c4BcU.js → table-B6jI9AVW.js} +1 -1
  178. package/dist/client/assets/{tabs-D7y8E5Ya.js → tabs-CkBj5MCc.js} +1 -1
  179. package/dist/client/assets/{textarea-uMNP0LCC.js → textarea-MPYuQyqu.js} +1 -1
  180. package/dist/client/assets/{toggle-group-BqEa1TEc.js → toggle-group-DtwUyJLF.js} +1 -1
  181. package/dist/client/assets/{toolbar-Dk_EQcxK.js → toolbar-CWIhmyMN.js} +1 -1
  182. package/dist/client/assets/{toolbar-icon-button-B3a3a06z.js → toolbar-icon-button-CECinnnr.js} +1 -1
  183. package/dist/client/assets/{tooltip-D1kWwXpZ.js → tooltip-D7hwOeSe.js} +1 -1
  184. package/dist/client/assets/{use-ai-providers-laCpnXdd.js → use-ai-providers-Y42muXEL.js} +1 -1
  185. package/dist/client/assets/{use-api-keys-CsDXZwqL.js → use-api-keys-BNueV1oS.js} +1 -1
  186. package/dist/client/assets/{use-automations-BfXgjd_V.js → use-automations-q6EI_dY5.js} +1 -1
  187. package/dist/client/assets/{use-autosave-BAraq6AW.js → use-autosave-BzKA2KKP.js} +1 -1
  188. package/dist/client/assets/{use-capability-DzC2Klfd.js → use-capability-5HUeaTDq.js} +1 -1
  189. package/dist/client/assets/{use-clock-tick-DRjNjgqA.js → use-clock-tick-CJJAB_wL.js} +1 -1
  190. package/dist/client/assets/{use-connection-Bmwh1M0H.js → use-connection-BQyGChT-.js} +1 -1
  191. package/dist/client/assets/{use-copy-CnoszhL7.js → use-copy-BuerO6-E.js} +1 -1
  192. package/dist/client/assets/{use-create-virtual-mcp-BsqQsVxp.js → use-create-virtual-mcp-z5dANjJD.js} +1 -1
  193. package/dist/client/assets/{use-debounced-autosave-BCK-z4zD.js → use-debounced-autosave-BlraeIQs.js} +1 -1
  194. package/dist/client/assets/{use-debounced-value-CV3OhKhZ.js → use-debounced-value-D9tRHIMk.js} +1 -1
  195. package/dist/client/assets/{use-deco-credits-DJYZaYfn.js → use-deco-credits-C6dke2-t.js} +1 -1
  196. package/dist/client/assets/{use-decopilot-events-CJAX9qbZ.js → use-decopilot-events-Bc6pqy_j.js} +1 -1
  197. package/dist/client/assets/{use-delete-connection-BbE8VrIR.js → use-delete-connection-BsIkDT1r.js} +1 -1
  198. package/dist/client/assets/{use-deployment-admin-BB1Jrj8e.js → use-deployment-admin-Di_6ggVj.js} +1 -1
  199. package/dist/client/assets/{use-file-configs-dIk120-N.js → use-file-configs-BP9fOC0B.js} +1 -1
  200. package/dist/client/assets/{use-infinite-scroll-B7e1w8Ad.js → use-infinite-scroll-BGp_7PZb.js} +1 -1
  201. package/dist/client/assets/{use-join-requests-BuakQTEO.js → use-join-requests-xK-uDZNz.js} +1 -1
  202. package/dist/client/assets/{use-mcp-auth-status-DUPES28-.js → use-mcp-auth-status-s-oHtK7W.js} +1 -1
  203. package/dist/client/assets/{use-mcp-client-B36Osh-D.js → use-mcp-client-CI9vRdOR.js} +1 -1
  204. package/dist/client/assets/{use-mcp-tools-C_xSJpE0.js → use-mcp-tools-BtjqptRQ.js} +1 -1
  205. package/dist/client/assets/{use-members-B218nv1M.js → use-members-Cj_lS9IA.js} +1 -1
  206. package/dist/client/assets/{use-mobile--PifyK00.js → use-mobile-pNwl6YMj.js} +1 -1
  207. package/dist/client/assets/{use-navigate-to-agent-BBbQ-aHe.js → use-navigate-to-agent-18iZTBeT.js} +1 -1
  208. package/dist/client/assets/{use-org-auth-client-DK6Nh6IP.js → use-org-auth-client-ClFP2Dye.js} +1 -1
  209. package/dist/client/assets/{use-org-sso-DZihocwz.js → use-org-sso-CZyxpc11.js} +1 -1
  210. package/dist/client/assets/{use-organization-roles-CdFvxl4s.js → use-organization-roles-vhor9mYq.js} +1 -1
  211. package/dist/client/assets/{use-organization-settings-CAH1_Gfq.js → use-organization-settings-DjyRISC-.js} +1 -1
  212. package/dist/client/assets/{use-registry-app-Bs5fLaKB.js → use-registry-app-Dnz4GcGV.js} +1 -1
  213. package/dist/client/assets/{use-registry-connections-C0Ibblmm.js → use-registry-connections-CpjlK4rr.js} +1 -1
  214. package/dist/client/assets/{use-secrets-BTSjhTGA.js → use-secrets-DXvXWNaC.js} +1 -1
  215. package/dist/client/assets/{use-status-sounds-CMNbO4bj.js → use-status-sounds-yvnB-s-L.js} +1 -1
  216. package/dist/client/assets/{use-view-mode-CPAZulMe.js → use-view-mode-BTDVrfiy.js} +1 -1
  217. package/dist/client/assets/{use-virtual-mcp-CQaiGnUU.js → use-virtual-mcp-BZtHaS9D.js} +1 -1
  218. package/dist/client/assets/useInfiniteQuery-FvNiAK3T.js +1 -0
  219. package/dist/client/assets/{useQueries-CF9YH8lZ.js → useQueries-XW8X05-G.js} +1 -1
  220. package/dist/client/assets/{useRouterState-C8-zqAk7.js → useRouterState-Bjk-3Mhg.js} +1 -1
  221. package/dist/client/assets/useSuspenseInfiniteQuery-CGl7DVJz.js +1 -0
  222. package/dist/client/assets/{users-BC5ArrE1.js → users-Do5m5ehb.js} +1 -1
  223. package/dist/client/assets/{variant-calendar-B8wZWFL-.js → variant-calendar-CAOmQWav.js} +1 -1
  224. package/dist/client/assets/{view-mode-toggle-Bmph2BY4.js → view-mode-toggle-DKpPWgw3.js} +1 -1
  225. package/dist/client/index.html +2 -2
  226. package/dist/server/cli.js +94 -94
  227. package/dist/server/server.js +126 -126
  228. package/package.json +1 -1
  229. package/dist/client/assets/index-BUug5fNW.css +0 -1
  230. package/dist/client/assets/page-seo-sheet-BqtOe7CO.js +0 -1
  231. package/dist/client/assets/project-app-view-QX-ZdCUU.js +0 -1
  232. package/dist/client/assets/record-editor-Bl1Ur8U7.js +0 -1
  233. package/dist/client/assets/registry-7xJw8GM7.js +0 -2
  234. package/dist/client/assets/store-registry-BuSUDYda.js +0 -2
  235. package/dist/client/assets/useInfiniteQuery-ByuEOZ10.js +0 -1
  236. package/dist/client/assets/useSuspenseInfiniteQuery-BVdkw7ML.js +0 -1
@@ -1 +1 @@
1
- import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-DAtTWfgt.js";import{i as ke}from"./ChevronRight-CpxTzNTm.js";import{a0 as fe}from"./agent-icon-D8X6NgHQ.js";import{m as xe}from"./automation-runs-B-1RH_oI.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-BElu4PcX.js";import{a5 as ue,r as Ke}from"./index-COExXZVa.js";import{a as ye}from"./Image01-C0tZD_4N.js";import"./AlertCircle-XCC42vnv.js";import"./Tool01-CsQku2ha.js";import"./ArrowUp-CIc1qLBi.js";import"./Settings02-BMEbk95n.js";import"./Tool02-9ZNic0qo.js";import"./ArrowRight-BKBmhaLR.js";import"./ArrowUpRight-BfP64txw.js";import"./TrendUp01-DolEYhiE.js";import"./ZapSquare-CmpVcXwq.js";import"./ZoomOut-0gQoEQDY.js";import"./Users03-DKzOXdwZ.js";import"./CheckCircle-BPEhKJ6_.js";import"./Check-BqbTs6Sp.js";import"./ChevronDown-BeuEDkJI.js";import"./ChevronUp-tFv_O9M0.js";import"./DotsVertical-Ue6eGmYj.js";import"./Stars02-aAWJ3II4.js";import"./Copy01-DqXF8bW_.js";import"./Globe01-D61pxNbc.js";import"./Eye-Bk2Xgrvg.js";import"./FilterLines-8U9bkKls.js";import"./Star01-CXoaBlcx.js";import"./Globe04-BVIaxGYK.js";import"./SwitchHorizontal01-D0-CcWGL.js";import"./HardDrive-Dp3ZELAy.js";import"./Key01-C1OrSDs9.js";import"./LayoutLeft-BR0426bP.js";import"./XCircle-BS-TfzRr.js";import"./LinkExternal01-Dbdi7ThP.js";import"./LogOut01-BGKt8uk-.js";import"./Monitor01-BpV1xCDw.js";import"./Sun-BvXvztsJ.js";import"./Package-CPikbMFw.js";import"./Palette-CI2gPMub.js";import"./Play-Ce8b-45f.js";import"./Plus-BHn273te.js";import"./SearchLg-BhaN5Dkw.js";import"./SearchMd-ZOU8eHm5.js";import"./Shield01-ByBmvv87.js";import"./Stars01-DzME0iEm.js";import"./Trash01-DxhoFTU2.js";import"./Upload01-Cw1RTJdA.js";import"./User01-B9tHPp45.js";import"./Users01-CtZ6-BIN.js";import"./XClose-CRX1ODGE.js";import"./X-BlyIKSVp.js";import"./Zap-BbOt7jmA.js";import"./select-C-lRFMd0.js";import"./tooltip-D1kWwXpZ.js";import"./useInfiniteQuery-ByuEOZ10.js";import"./use-infinite-scroll-B7e1w8Ad.js";import"./use-connection-Bmwh1M0H.js";import"./use-mcp-client-B36Osh-D.js";import"./auth-C0wxe8j1.js";import"./use-virtual-mcp-CQaiGnUU.js";import"./card-Di-QpnW-.js";import"./sidebar-BAm9qD2e.js";import"./use-mobile--PifyK00.js";import"./table-Cp9c4BcU.js";import"./empty-state-BPgoMkQH.js";import"./use-members-B218nv1M.js";import"./use-org-auth-client-DK6Nh6IP.js";import"./use-clock-tick-DRjNjgqA.js";import"./use-automations-BfXgjd_V.js";import"./studio-tools-B1eVxu6k.js";import"./useSuspenseInfiniteQuery-BVdkw7ML.js";import"./avatar-CfUWjhDf.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CnoszhL7.js";import"./file-type-icon-CCvkC4UX.js";import"./dialog-poX5N6OF.js";import"./tab-id-BijBBRwE.js";import"./hooks-DO_GgbQ9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BuymyfF0.js";import"./chat-context-Bnmr5Esu.js";import"./autosend-Be-3DD9j.js";import"./use-ai-providers-laCpnXdd.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-CJAX9qbZ.js";import"./use-organization-settings-CAH1_Gfq.js";import"./monaco-editor-BQlr5iHl.js";import"./index-AqXdWiS8.js";import"./index-yo4ZLMjW.js";import"./calendar-DDdEu02Z.js";import"./shell-layout-CxYEqHLt.js";import"./required-auth-layout-CxsIwght.js";import"./use-org-sso-DZihocwz.js";import"./integration-icon-BFQyCHkv.js";import"./use-navigate-to-agent-BBbQ-aHe.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BbeQRNr_.js";import"./form-CBy1yFE7.js";import"./label-CFiSNSYm.js";import"./input-BTaZQTwt.js";import"./switch-DItIkDat.js";import"./drawer-CemU5qiA.js";import"./collection-search-2V1qih3c.js";import"./index-CrVcfr0w.js";import"./get-initials-D-f_fDFw.js";import"./popover-6uiYyt5u.js";import"./use-registry-app-Bs5fLaKB.js";import"./use-mcp-tools-C_xSJpE0.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-Bkljayza.js";import"./mcp-oauth-DjzzahSx.js";import"./extract-connection-data-BP-6YHKf.js";import"./metadata-dUsYcpuu.js";import"./dropdown-menu-C_IfrJtZ.js";import"./command-DfYO983M.js";import"./index-BTDLuR6K.js";import"./companions-core-BBPRO-hx.js";import"./tabs-D7y8E5Ya.js";import"./toggle-group-BqEa1TEc.js";import"./use-deco-credits-DJYZaYfn.js";import"./alert-dialog-BbSxHfpk.js";import"./toolbar-icon-button-B3a3a06z.js";import"./skeleton-rk4WuHqh.js";import"./github-repo-picker-WGLIOn68.js";import"./use-debounced-value-CV3OhKhZ.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-DrMoCtl4.js";import"./use-registry-connections-C0Ibblmm.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-uMNP0LCC.js";import"./connection-form-helpers-jobllNge.js";import"./collection-tabs-u1HJ_eBo.js";import"./badge-DF-If9rp.js";import"./connect-desktop-dialog-CVoQrJ8F.js";import"./select-model-CnP2KvlX.js";import"./checkbox-Ca7NY1wR.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DcvaTSLo.js";import"./index-BYB7faC2.js";import"./toolbar-Dk_EQcxK.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CMNbO4bj.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-DzC2Klfd.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-DUPES28-.js";import"./use-debounced-autosave-BCK-z4zD.js";import"./index-NwnGjivz.js";import"./search-input-BIlo3d_x.js";import"./use-secrets-BTSjhTGA.js";import"./useQueries-CF9YH8lZ.js";import"./use-file-configs-dIk120-N.js";import"./automation-list-row-BjXQjt1z.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,l=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]!==l?(i=o.jsx(ye,{size:l}),e[5]=l,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:l}=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 r;e[8]!==n||e[9]!==v?(r=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=r):r=e[10];let c;e[11]!==p||e[12]!==r?(c=o.jsxs("div",{className:"min-w-0",children:[p,r]}),e[11]=p,e[12]=r,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]!==l?(y=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=l,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]!==l?(g=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=l,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 l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #e2e8f0"},e[0]=l):l=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 r;e[11]!==f?(r=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=r):r=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]!==r?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,r,x]}),e[19]=x,e[20]=m,e[21]=r,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:l,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:l}=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]!==l?(a=l("sectionsEditor.seoPreview.chatCardHint"),e[2]=l,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 r;e[8]!==t.image?(r=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=r):r=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]!==l?(h=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=l,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]!==l?(u=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=l,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]!==r?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[r,j]}),e[29]=j,e[30]=f,e[31]=r,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:l,t:s}=d,i=l?"#2b2d31":"#fff",a=l?"#00a8fc":"#1264a3",m=l?"#dbdee1":"#3b4045",p=l?"#949ba4":"#8a9099",f=l?"none":"1px solid #e2e8f0";let r;e[0]!==i||e[1]!==f?(r={background:i,border:f},e[0]=i,e[1]=f,e[2]=r):r=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]!==r?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:r,children:_}),e[36]=_,e[37]=r,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:l,t:s}=d;let i;e[0]!==v||e[1]!==l||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:l,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:l,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:l,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:l,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=l,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 r;e[15]!==m||e[16]!==f?(r=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=r):r=e[17];let c;return e[18]!==a||e[19]!==r?(c=o.jsxs("div",{children:[r,a]}),e[18]=a,e[19]=r,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,l=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 r;e[9]!==n?(r=De(n),e[9]=n,e[10]=r):r=e[10];const c=r,h=l==="/"?"":l;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 Gi(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:l,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,r=ve(),c=Ne(l,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]!==l||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(l,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=l,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 re=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const le=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]!==r||e[25]!==i.kind?(X=i.kind==="site"?r("sectionsEditor.seoEditor.noSiteSeoBlock"):r(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=r,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]!==r||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:r("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",r("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=r,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]!==r||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}),r("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=r,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]!==le||e[46]!==re||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]!==r?(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:r("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:re,onBumpFormKey:le})]}):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]=le,e[46]=re,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]=r,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[l,s]of Object.entries(e))l!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[l]=s));return v}export{Gi as SeoEditor};
1
+ import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-CqNjsMzG.js";import{i as ke}from"./ChevronRight-ui5XHzny.js";import{a0 as fe}from"./agent-icon-QA5QJyND.js";import{m as xe}from"./automation-runs-Blgk2dmd.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-CQVW-O1X.js";import{a5 as ue,r as Ke}from"./index-BDzEvuYQ.js";import{a as ye}from"./Image01-C2xzf1CN.js";import"./AlertCircle-L2_Sd6lU.js";import"./Tool01-DoBjW6xd.js";import"./ArrowUp-CbmX8ovs.js";import"./Settings02-JbKN9VPO.js";import"./Tool02-B34b6yY_.js";import"./ArrowRight-B0OqN8Jo.js";import"./ArrowUpRight-D3lh3ngo.js";import"./TrendUp01-BEs6MtV5.js";import"./ZapSquare-BW0Q0EWX.js";import"./ZoomOut-BOXM3_x6.js";import"./Users03-brygpPBv.js";import"./CheckCircle-alDZMW6G.js";import"./Check-DB5oZP13.js";import"./ChevronDown-GopahMj1.js";import"./ChevronUp-D5wDT63C.js";import"./DotsVertical-CcPC0PNF.js";import"./Stars02-4vri3Tgo.js";import"./Copy01-DEfjLs9p.js";import"./Globe01-CbZESaEA.js";import"./Eye-Bc3sQzoR.js";import"./FilterLines-tCdWL5hb.js";import"./Star01-CIumiSy1.js";import"./Globe04-M6U6T0H4.js";import"./SwitchHorizontal01-AhzMV8I6.js";import"./HardDrive-CGmWOYvw.js";import"./Key01-43eO7UlR.js";import"./LayoutLeft-DAphaI00.js";import"./XCircle-Py7Sro_B.js";import"./LinkExternal01--pNnV7cg.js";import"./LogOut01-B4flmmHC.js";import"./Monitor01-Bst6l0Ku.js";import"./Sun-xZL4-cAf.js";import"./Package-D-IJM6gG.js";import"./Palette-Ckwxyb-f.js";import"./Play-DTEVz49q.js";import"./Plus-FZpR4bVD.js";import"./SearchLg-DdY4zxC_.js";import"./SearchMd-OCRnz5Xb.js";import"./Shield01-BgAua3_d.js";import"./Stars01-BclRruC0.js";import"./Trash01--Xt0YUwx.js";import"./Upload01-Cw2sE8Su.js";import"./User01-BrzEmx_n.js";import"./Users01-CW9SYrlM.js";import"./XClose-j_wqntHT.js";import"./X-CO8ug9st.js";import"./Zap-B-6_JwgE.js";import"./select-DX2MqsaL.js";import"./tooltip-D7hwOeSe.js";import"./useInfiniteQuery-FvNiAK3T.js";import"./use-infinite-scroll-BGp_7PZb.js";import"./use-connection-BQyGChT-.js";import"./use-mcp-client-CI9vRdOR.js";import"./auth-DdikGrcL.js";import"./use-virtual-mcp-BZtHaS9D.js";import"./card-B7wd2jZa.js";import"./sidebar-B3VgZJII.js";import"./use-mobile-pNwl6YMj.js";import"./table-B6jI9AVW.js";import"./empty-state-BWJYsCr0.js";import"./use-members-Cj_lS9IA.js";import"./use-org-auth-client-ClFP2Dye.js";import"./use-clock-tick-CJJAB_wL.js";import"./use-automations-q6EI_dY5.js";import"./studio-tools-MuyFlJTV.js";import"./useSuspenseInfiniteQuery-CGl7DVJz.js";import"./avatar-BhOHpW21.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BuerO6-E.js";import"./file-type-icon-aTlbGcrU.js";import"./dialog-Dokyv2ZE.js";import"./tab-id-BijBBRwE.js";import"./hooks-BmjrNgnF.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-iEQL5KR3.js";import"./chat-context-cois9GbP.js";import"./autosend-CBAfK5t4.js";import"./use-ai-providers-Y42muXEL.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-Bc6pqy_j.js";import"./use-organization-settings-DjyRISC-.js";import"./monaco-editor-Cpij-8Ee.js";import"./index-R4z1njSV.js";import"./index-D00LNXNE.js";import"./calendar-C-cHCqU_.js";import"./shell-layout-BMdQWv4i.js";import"./required-auth-layout-CdxpGwvi.js";import"./use-org-sso-CZyxpc11.js";import"./integration-icon-B9yypML4.js";import"./use-navigate-to-agent-18iZTBeT.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-JJ5_9ona.js";import"./form-r2AJKFI1.js";import"./label-BJWYHgyq.js";import"./input-ILUIMU3o.js";import"./switch-BSoG0kUR.js";import"./drawer-BMHlRNAg.js";import"./collection-search-DAh3jqUZ.js";import"./index-DyO-kHIK.js";import"./get-initials-D-f_fDFw.js";import"./popover-DOhWIyFn.js";import"./use-registry-app-Dnz4GcGV.js";import"./use-mcp-tools-BtjqptRQ.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-4KHEaDSq.js";import"./mcp-oauth-C3Ko-bUZ.js";import"./extract-connection-data-sJyz_kmK.js";import"./metadata-dUsYcpuu.js";import"./dropdown-menu-BwJyXZfe.js";import"./command-Rs12HCpy.js";import"./index-Dq9heBL0.js";import"./companions-core-DBTJnfkM.js";import"./tabs-CkBj5MCc.js";import"./toggle-group-DtwUyJLF.js";import"./use-deco-credits-C6dke2-t.js";import"./alert-dialog-BfFWbJUO.js";import"./toolbar-icon-button-CECinnnr.js";import"./skeleton-C72ZY1HZ.js";import"./github-repo-picker-DSga5RKA.js";import"./use-debounced-value-D9tRHIMk.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-bQDcKo__.js";import"./use-registry-connections-CpjlK4rr.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-MPYuQyqu.js";import"./connection-form-helpers-C96vMPcq.js";import"./collection-tabs-Bzc-Bwya.js";import"./badge-19AlEUXR.js";import"./connect-desktop-dialog-C7HEhd-r.js";import"./select-model-CM4XpLAg.js";import"./checkbox-BgGYbIr_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Bqx6Ko_C.js";import"./index-BMGptcmo.js";import"./toolbar-CWIhmyMN.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yvnB-s-L.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-5HUeaTDq.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-s-oHtK7W.js";import"./use-debounced-autosave-BlraeIQs.js";import"./index-xUaDrraM.js";import"./search-input-B12iY9RX.js";import"./use-secrets-DXvXWNaC.js";import"./useQueries-XW8X05-G.js";import"./use-file-configs-BP9fOC0B.js";import"./automation-list-row-IkggA24q.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,l=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]!==l?(i=o.jsx(ye,{size:l}),e[5]=l,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:l}=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 r;e[8]!==n||e[9]!==v?(r=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=r):r=e[10];let c;e[11]!==p||e[12]!==r?(c=o.jsxs("div",{className:"min-w-0",children:[p,r]}),e[11]=p,e[12]=r,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]!==l?(y=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=l,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]!==l?(g=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=l,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 l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #e2e8f0"},e[0]=l):l=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 r;e[11]!==f?(r=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=r):r=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]!==r?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,r,x]}),e[19]=x,e[20]=m,e[21]=r,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:l,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:l}=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]!==l?(a=l("sectionsEditor.seoPreview.chatCardHint"),e[2]=l,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 r;e[8]!==t.image?(r=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=r):r=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]!==l?(h=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=l,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]!==l?(u=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=l,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]!==r?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[r,j]}),e[29]=j,e[30]=f,e[31]=r,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:l,t:s}=d,i=l?"#2b2d31":"#fff",a=l?"#00a8fc":"#1264a3",m=l?"#dbdee1":"#3b4045",p=l?"#949ba4":"#8a9099",f=l?"none":"1px solid #e2e8f0";let r;e[0]!==i||e[1]!==f?(r={background:i,border:f},e[0]=i,e[1]=f,e[2]=r):r=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]!==r?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:r,children:_}),e[36]=_,e[37]=r,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:l,t:s}=d;let i;e[0]!==v||e[1]!==l||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:l,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:l,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:l,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:l,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=l,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 r;e[15]!==m||e[16]!==f?(r=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=r):r=e[17];let c;return e[18]!==a||e[19]!==r?(c=o.jsxs("div",{children:[r,a]}),e[18]=a,e[19]=r,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,l=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 r;e[9]!==n?(r=De(n),e[9]=n,e[10]=r):r=e[10];const c=r,h=l==="/"?"":l;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 Gi(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:l,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,r=ve(),c=Ne(l,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]!==l||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(l,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=l,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 re=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const le=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]!==r||e[25]!==i.kind?(X=i.kind==="site"?r("sectionsEditor.seoEditor.noSiteSeoBlock"):r(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=r,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]!==r||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:r("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",r("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=r,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]!==r||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}),r("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=r,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]!==le||e[46]!==re||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]!==r?(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:r("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:re,onBumpFormKey:le})]}):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]=le,e[46]=re,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]=r,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[l,s]of Object.entries(e))l!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[l]=s));return v}export{Gi as SeoEditor};
@@ -1 +1 @@
1
- import{c as j,b as q,j as t,f as D,F as K,m as z,y as U,L as T,p as E,P as G,a as B,k as V,r as X,O as Y}from"./index-DAtTWfgt.js";import{u as Z}from"./useRouterState-C8-zqAk7.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-BAm9qD2e.js";import{a as le}from"./index-NwnGjivz.js";import{n as re,i as oe,a as ae,c as ce,b as me}from"./ZapSquare-CmpVcXwq.js";import{t as fe,a as A}from"./Users03-DKzOXdwZ.js";import{i as de}from"./HardDrive-Dp3ZELAy.js";import{i as xe}from"./Key01-C1OrSDs9.js";import{n as be}from"./LinkExternal01-Dbdi7ThP.js";import{i as F}from"./LogOut01-BGKt8uk-.js";import{i as ue}from"./Shield01-ByBmvv87.js";import{s as ge}from"./User01-B9tHPp45.js";import{i as pe}from"./Zap-BbOt7jmA.js";import{a as he}from"./use-capability-DzC2Klfd.js";import{u as je}from"./use-join-requests-BuakQTEO.js";import{u as H}from"./use-mobile--PifyK00.js";import{u as ye}from"./use-status-sounds-CMNbO4bj.js";import{T as _}from"./toolbar-Dk_EQcxK.js";import{S as _e,M as ve}from"./shell-controls-7jsmZLrB.js";import"./LayoutLeft-BR0426bP.js";import"./X-BlyIKSVp.js";import"./tooltip-D1kWwXpZ.js";import"./studio-tools-B1eVxu6k.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-CJAX9qbZ.js";import"./decopilot-sse-pool-BuymyfF0.js";import"./backoff-CrEUbyZT.js";import"./toolbar-icon-button-B3a3a06z.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=he(),a=je().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(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 p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ae,{size:14}),e[14]=p):p=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(A,{size:14}),e[15]=u):u=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(pe,{size:14}),e[16]=y):y=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ce,{size:14}),e[17]=h):h=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(U,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ge,{size:14}),e[22]=$):$=e[22];const w=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:"Connect to clients",icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:b,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:g,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:p,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:u,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:y,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:h,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:v,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:S,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:k,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:N,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:$,to:"/$org/settings/profile"}]}];if(i||l){c=w;break e}r=w.map(P=>({...P,items:P.items.filter(C=>C.privilegedOnly?n:C.requires?n||o[C.requires]:!0)})).filter(Se)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Se(e){return e.items.length>0}function Q(e){const s=j.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function W(){const e=j.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=D(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:ke},e[1]=n):n=e[1];const i=Z(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ke(e){return e.location.pathname}function Ne(){const e=j.c(19),s=q(),o=J(),{org:n,isActive:i}=W();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(g,p)=>t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&t.jsx("p",{className:z("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:g.items.map(u=>t.jsx(I,{children:t.jsx(R,{asChild:!0,isActive:i(u.to),children:t.jsxs(T,{to:u.to,params:{org:n},onClick:()=>E("settings_nav_clicked",{section_key:u.key,group_key:g.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(Q,{icon:u.icon,badge:u.badge}),t.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},g.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:t.jsx(I,{children:t.jsxs(R,{onClick:$e,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.123.2"]})}),e[16]=d):d=e[16];let x;return e[17]!==f?(x=t.jsxs(ne,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=x):x=e[18],x}function $e(){E("signed_out",{source:"settings_sidebar"}),G(),B.signOut()}function ze(e){const s=j.c(21),{onClose:o}=e,n=q(),i=J(),{org:l,isActive:a}=W();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let p;s[5]!==a||s[6]!==o||s[7]!==l?(p=(u,y)=>t.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&t.jsx("p",{className:z("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",y>0&&"mt-3"),children:u.label}),u.items.map(h=>t.jsxs(T,{to:h.to,params:{org:l},onClick:o,className:z("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(h.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[t.jsx(Q,{icon:h.icon,badge:h.badge}),t.jsx("span",{className:"truncate",children:h.label})]},h.key))]},u.key),s[5]=a,s[6]=o,s[7]=l,s[8]=p):p=s[8],r=i.map(p),s[0]=i,s[1]=a,s[2]=o,s[3]=l,s[4]=r}else r=s[4];let c;s[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"h-px bg-border/50 my-2"}),s[9]=c):c=s[9];let m;s[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),s[10]=m):m=s[10];let f;s[11]!==n?(f=n("settings.nav.signOut"),s[11]=n,s[12]=f):f=s[12];let d;s[13]!==f?(d=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[c,t.jsxs("button",{type:"button",onClick:Ce,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[m,t.jsx("span",{className:"truncate",children:f})]})]}),s[13]=f,s[14]=d):d=s[14];let x;s[15]!==r||s[16]!==d?(x=t.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[r,d]}),s[15]=r,s[16]=d,s[17]=x):x=s[17];let b;s[18]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.123.2"]})}),s[18]=b):b=s[18];let g;return s[19]!==x?(g=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[x,b]}),s[19]=x,s[20]=g):g=s[20],g}function Ce(){G(),B.signOut()}function qe(){const e=j.c(4),s=H(),{org:o}=K();ye(o.slug);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(V,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(X.Suspense,{fallback:n,children:t.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:t.jsx(le,{value:"p-0",children:t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:t.jsx(Y,{})})})})}),e[1]=i):i=e[1];const l=i;if(s){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=r):r=e[2],r}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex-1 min-h-0 p-1",children:t.jsx("div",{className:z("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=a):a=e[3],a}function ls(){const e=j.c(21),s=H();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(_.LogoLink,{}),e[0]=o):o=e[0];let n;e[1]!==s?(n=s&&t.jsx(_e,{}),e[1]=s,e[2]=n):n=e[2];let i;e[3]!==n?(i=t.jsxs(_.LeftColumn,{children:[o,n]}),e[3]=n,e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_.CenterSlot,{}),e[5]=l):l=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_.RightColumn,{children:t.jsx("span",{})}),e[6]=a):a=e[6];let r;e[7]!==i?(r=t.jsxs(_.Header,{children:[i,l,a]}),e[7]=i,e[8]=r):r=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={"--sidebar-width-icon":"3.125rem"},e[9]=c):c=e[9];let m;e[10]!==s?(m=!s&&t.jsx(Ne,{}),e[10]=s,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ee,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:t.jsx(qe,{})}),e[12]=f):f=e[12];let d;e[13]!==m?(d=t.jsxs(se,{className:"flex-1 bg-sidebar min-h-0",style:c,children:[m,f]}),e[13]=m,e[14]=d):d=e[14];let x;e[15]!==s?(x=s&&t.jsx(ve,{renderSidebar:we}),e[15]=s,e[16]=x):x=e[16];let b;return e[17]!==x||e[18]!==r||e[19]!==d?(b=t.jsx(_.Provider,{children:t.jsx(te,{defaultOpen:!0,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[r,d,x]})})}),e[17]=x,e[18]=r,e[19]=d,e[20]=b):b=e[20],b}function we(e){const{onClose:s}=e;return t.jsx(ze,{onClose:s})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ls as default};
1
+ import{c as j,b as q,j as t,f as D,F as K,m as z,y as U,L as T,p as E,P as G,a as B,k as V,r as X,O as Y}from"./index-CqNjsMzG.js";import{u as Z}from"./useRouterState-Bjk-3Mhg.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-B3VgZJII.js";import{a as le}from"./index-xUaDrraM.js";import{n as re,i as oe,a as ae,c as ce,b as me}from"./ZapSquare-BW0Q0EWX.js";import{t as fe,a as A}from"./Users03-brygpPBv.js";import{i as de}from"./HardDrive-CGmWOYvw.js";import{i as xe}from"./Key01-43eO7UlR.js";import{n as be}from"./LinkExternal01--pNnV7cg.js";import{i as F}from"./LogOut01-B4flmmHC.js";import{i as ue}from"./Shield01-BgAua3_d.js";import{s as ge}from"./User01-BrzEmx_n.js";import{i as pe}from"./Zap-B-6_JwgE.js";import{a as he}from"./use-capability-5HUeaTDq.js";import{u as je}from"./use-join-requests-xK-uDZNz.js";import{u as H}from"./use-mobile-pNwl6YMj.js";import{u as ye}from"./use-status-sounds-yvnB-s-L.js";import{T as _}from"./toolbar-CWIhmyMN.js";import{S as _e,M as ve}from"./shell-controls-D04aa56d.js";import"./LayoutLeft-DAphaI00.js";import"./X-CO8ug9st.js";import"./tooltip-D7hwOeSe.js";import"./studio-tools-MuyFlJTV.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-Bc6pqy_j.js";import"./decopilot-sse-pool-iEQL5KR3.js";import"./backoff-CrEUbyZT.js";import"./toolbar-icon-button-CECinnnr.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=he(),a=je().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(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 p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ae,{size:14}),e[14]=p):p=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(A,{size:14}),e[15]=u):u=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(pe,{size:14}),e[16]=y):y=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ce,{size:14}),e[17]=h):h=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(U,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ge,{size:14}),e[22]=$):$=e[22];const w=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:"Connect to clients",icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:b,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:g,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:p,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:u,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:y,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:h,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:v,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:S,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:k,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:N,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:$,to:"/$org/settings/profile"}]}];if(i||l){c=w;break e}r=w.map(P=>({...P,items:P.items.filter(C=>C.privilegedOnly?n:C.requires?n||o[C.requires]:!0)})).filter(Se)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Se(e){return e.items.length>0}function Q(e){const s=j.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function W(){const e=j.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=D(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:ke},e[1]=n):n=e[1];const i=Z(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ke(e){return e.location.pathname}function Ne(){const e=j.c(19),s=q(),o=J(),{org:n,isActive:i}=W();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(g,p)=>t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&t.jsx("p",{className:z("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:g.items.map(u=>t.jsx(I,{children:t.jsx(R,{asChild:!0,isActive:i(u.to),children:t.jsxs(T,{to:u.to,params:{org:n},onClick:()=>E("settings_nav_clicked",{section_key:u.key,group_key:g.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(Q,{icon:u.icon,badge:u.badge}),t.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},g.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:t.jsx(I,{children:t.jsxs(R,{onClick:$e,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.123.4"]})}),e[16]=d):d=e[16];let x;return e[17]!==f?(x=t.jsxs(ne,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=x):x=e[18],x}function $e(){E("signed_out",{source:"settings_sidebar"}),G(),B.signOut()}function ze(e){const s=j.c(21),{onClose:o}=e,n=q(),i=J(),{org:l,isActive:a}=W();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let p;s[5]!==a||s[6]!==o||s[7]!==l?(p=(u,y)=>t.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&t.jsx("p",{className:z("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",y>0&&"mt-3"),children:u.label}),u.items.map(h=>t.jsxs(T,{to:h.to,params:{org:l},onClick:o,className:z("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(h.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[t.jsx(Q,{icon:h.icon,badge:h.badge}),t.jsx("span",{className:"truncate",children:h.label})]},h.key))]},u.key),s[5]=a,s[6]=o,s[7]=l,s[8]=p):p=s[8],r=i.map(p),s[0]=i,s[1]=a,s[2]=o,s[3]=l,s[4]=r}else r=s[4];let c;s[9]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"h-px bg-border/50 my-2"}),s[9]=c):c=s[9];let m;s[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),s[10]=m):m=s[10];let f;s[11]!==n?(f=n("settings.nav.signOut"),s[11]=n,s[12]=f):f=s[12];let d;s[13]!==f?(d=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[c,t.jsxs("button",{type:"button",onClick:Ce,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[m,t.jsx("span",{className:"truncate",children:f})]})]}),s[13]=f,s[14]=d):d=s[14];let x;s[15]!==r||s[16]!==d?(x=t.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[r,d]}),s[15]=r,s[16]=d,s[17]=x):x=s[17];let b;s[18]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.123.4"]})}),s[18]=b):b=s[18];let g;return s[19]!==x?(g=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[x,b]}),s[19]=x,s[20]=g):g=s[20],g}function Ce(){G(),B.signOut()}function qe(){const e=j.c(4),s=H(),{org:o}=K();ye(o.slug);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(V,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(X.Suspense,{fallback:n,children:t.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:t.jsx(le,{value:"p-0",children:t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:t.jsx(Y,{})})})})}),e[1]=i):i=e[1];const l=i;if(s){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=r):r=e[2],r}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex-1 min-h-0 p-1",children:t.jsx("div",{className:z("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=a):a=e[3],a}function ls(){const e=j.c(21),s=H();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(_.LogoLink,{}),e[0]=o):o=e[0];let n;e[1]!==s?(n=s&&t.jsx(_e,{}),e[1]=s,e[2]=n):n=e[2];let i;e[3]!==n?(i=t.jsxs(_.LeftColumn,{children:[o,n]}),e[3]=n,e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_.CenterSlot,{}),e[5]=l):l=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_.RightColumn,{children:t.jsx("span",{})}),e[6]=a):a=e[6];let r;e[7]!==i?(r=t.jsxs(_.Header,{children:[i,l,a]}),e[7]=i,e[8]=r):r=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={"--sidebar-width-icon":"3.125rem"},e[9]=c):c=e[9];let m;e[10]!==s?(m=!s&&t.jsx(Ne,{}),e[10]=s,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ee,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:t.jsx(qe,{})}),e[12]=f):f=e[12];let d;e[13]!==m?(d=t.jsxs(se,{className:"flex-1 bg-sidebar min-h-0",style:c,children:[m,f]}),e[13]=m,e[14]=d):d=e[14];let x;e[15]!==s?(x=s&&t.jsx(ve,{renderSidebar:we}),e[15]=s,e[16]=x):x=e[16];let b;return e[17]!==x||e[18]!==r||e[19]!==d?(b=t.jsx(_.Provider,{children:t.jsx(te,{defaultOpen:!0,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[r,d,x]})})}),e[17]=x,e[18]=r,e[19]=d,e[20]=b):b=e[20],b}function we(e){const{onClose:s}=e;return t.jsx(ze,{onClose:s})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ls as default};
@@ -1 +1 @@
1
- import{c as v,m as N,j as r,r as S}from"./index-DAtTWfgt.js";import{C as w}from"./card-Di-QpnW-.js";import{i as E}from"./ArrowUpRight-BfP64txw.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-CqNjsMzG.js";import{C as w}from"./card-B7wd2jZa.js";import{i as E}from"./ArrowUpRight-D3lh3ngo.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-DAtTWfgt.js";import{u as d,m as h,p as S,q as x}from"./sidebar-BAm9qD2e.js";import{i as g}from"./LayoutLeft-BR0426bP.js";import{T as j}from"./toolbar-icon-button-B3a3a06z.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-CqNjsMzG.js";import{u as d,m as h,p as S,q as x}from"./sidebar-B3VgZJII.js";import{i as g}from"./LayoutLeft-DAphaI00.js";import{T as j}from"./toolbar-icon-button-CECinnnr.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 L,b as F,e as ae,j as n,B as $,t as te,bP as ee,y as ke,a as Z,w as Fe,x as Ne,K as ce,bQ as Me,bR as Be,G as X,m as ge,r as M,n as re,av as he,v as Ue,bS as Je,p as pe,bT as He,bU as Ke,d as Ge,F as Ve,f as _e,u as We,J as Qe,aV as Ye,bV as Xe,bW as xe,bX as Ze,bY as et,S as tt,O as nt,bZ as st}from"./index-DAtTWfgt.js";import{A as de}from"./avatar-CfUWjhDf.js";import{t as Te,a as ot}from"./Users03-DKzOXdwZ.js";import{i as it}from"./SearchLg-BhaN5Dkw.js";import{i as at,s as rt,a as U,n as lt}from"./Stars02-aAWJ3II4.js";import{s as ct}from"./XClose-CRX1ODGE.js";import{i as K}from"./CheckCircle-BPEhKJ6_.js";import{i as ye}from"./FilterLines-8U9bkKls.js";import{i as Y}from"./Zap-BbOt7jmA.js";import{a as Ae,b as Oe,d as Ce,e as Pe,h as dt,c as ut}from"./dialog-poX5N6OF.js";import{R as mt}from"./required-auth-layout-CxsIwght.js";import{A as ft}from"./autosend-Be-3DD9j.js";import{a as be,m as gt,S as ht}from"./use-mcp-client-B36Osh-D.js";import{c as pt}from"./hooks-DO_GgbQ9.js";import{q as xt}from"./tab-id-BijBBRwE.js";import{d as yt}from"./use-organization-settings-CAH1_Gfq.js";import{u as bt}from"./use-org-sso-DZihocwz.js";function St(t){const e=L.c(49),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=F();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 d;e[3]!==a?(d=N=>{window.location.href=`/${N.slug??a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==i?(g=N=>{te.error(N instanceof Error?N.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let w;e[7]!==r||e[8]!==d||e[9]!==g?(w={mutationFn:r,onSuccess:d,onError:g},e[7]=r,e[8]=d,e[9]=g,e[10]=w):w=e[10];const m=ae(w),p=wt;let c;e[11]!==l||e[12]!==o?(c=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(Te,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=o,e[13]=c):c=e[13];let u;e[14]!==o||e[15]!==i?(u=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=u):u=e[16];let f;e[17]!==u?(f=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=f):f=e[18];let h;e[19]!==s||e[20]!==i?(h=i("common.autoDomainJoinScreen.joinDescription",{domain:s}),e[19]=s,e[20]=i,e[21]=h):h=e[21];let x;e[22]!==h?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[22]=h,e[23]=x):x=e[23];let y;e[24]!==f||e[25]!==x?(y=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=y):y=e[26];let S;e[27]!==m?(S=()=>m.mutate(),e[27]=m,e[28]=S):S=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]!==S||e[35]!==v?(_=n.jsx($,{onClick:S,disabled:m.isPending,children:v}),e[33]=m.isPending,e[34]=S,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:p,disabled:k,children:j}),e[39]=m.isPending,e[40]=j,e[41]=b):b=e[41];let T;e[42]!==_||e[43]!==b?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,b]}),e[42]=_,e[43]=b,e[44]=T):T=e[44];let A;return e[45]!==y||e[46]!==T||e[47]!==c?(A=n.jsxs(ee,{children:[c,y,T]}),e[45]=y,e[46]=T,e[47]=c,e[48]=A):A=e[48],A}function wt(){window.location.href="/"}function Se(t){const e=L.c(25),{orgSlug:o,orgName:a,reason:l}=t,s=F(),i=vt,r=l==="not-found",d=r?it:ke;let g;e[0]!==r||e[1]!==s?(g=s(r?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=r,e[1]=s,e[2]=g):g=e[2];const w=g;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 p=m;let c;e[8]!==d?(c=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=c):c=e[9];let u;e[10]!==w?(u=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[10]=w,e[11]=u):u=e[11];let f;e[12]!==p?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=n.jsxs("div",{className:"space-y-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]!==s?(x=s("common.noAccessScreen.goToHome"),e[17]=s,e[18]=x):x=e[18];let y;e[19]!==x?(y=n.jsx($,{onClick:i,children:x}),e[19]=x,e[20]=y):y=e[20];let S;return e[21]!==c||e[22]!==h||e[23]!==y?(S=n.jsxs(ee,{children:[c,h,y]}),e[21]=c,e[22]=h,e[23]=y,e[24]=S):S=e[24],S}function vt(){window.location.href="/"}function jt(t){const e=L.c(59),{invitationId:o,orgName:a,orgSlug:l,orgLogo:s}=t,i=F();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 d;e[2]!==l?(d=()=>{Fe(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let g;e[4]!==i?(g=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let w;e[6]!==r||e[7]!==d||e[8]!==g?(w={mutationFn:r,onSuccess:d,onError:g},e[6]=r,e[7]=d,e[8]=g,e[9]=w):w=e[9];const m=ae(w);let p;e[10]!==o?(p=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]=p):p=e[11];let c,u;e[12]!==i?(c=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=u):(c=e[13],u=e[14]);let f;e[15]!==p||e[16]!==c||e[17]!==u?(f={mutationFn:p,onSuccess:c,onError:u},e[15]=p,e[16]=c,e[17]=u,e[18]=f):f=e[18];const h=ae(f),x=m.isPending||h.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(at,{className:"h-6 w-6 text-primary"})}),e[19]=s,e[20]=a,e[21]=y):y=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,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 T;e[36]!==m.isPending||e[37]!==i?(T=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=T):T=e[38];let A;e[39]!==x||e[40]!==b||e[41]!==T?(A=n.jsx($,{onClick:b,disabled:x,children:T}),e[39]=x,e[40]=b,e[41]=T,e[42]=A):A=e[42];let N;e[43]!==h?(N=()=>h.mutate(),e[43]=h,e[44]=N):N=e[44];let O;e[45]!==h.isPending||e[46]!==i?(O=h.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=h.isPending,e[46]=i,e[47]=O):O=e[47];let I;e[48]!==x||e[49]!==N||e[50]!==O?(I=n.jsx($,{variant:"ghost",onClick:N,disabled:x,children:O}),e[48]=x,e[49]=N,e[50]=O,e[51]=I):I=e[51];let C;e[52]!==A||e[53]!==I?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[A,I]}),e[52]=A,e[53]=I,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=L.c(23),{orgName:o,orgLogo:a}=t,l=F();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(rt,{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 d;e[7]!==o||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=l,e[9]=d):d=e[9];let g;e[10]!==d?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=g):g=e[11];let w;e[12]!==r||e[13]!==g?(w=n.jsxs("div",{className:"space-y-2",children:[r,g]}),e[12]=r,e[13]=g,e[14]=w):w=e[14];let m;e[15]!==l?(m=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=m):m=e[16];let p;e[17]!==m?(p=n.jsx($,{variant:"ghost",onClick:Nt,children:m}),e[17]=m,e[18]=p):p=e[18];let c;return e[19]!==s||e[20]!==w||e[21]!==p?(c=n.jsxs(ee,{children:[s,w,p]}),e[19]=s,e[20]=w,e[21]=p,e[22]=c):c=e[22],c}function Nt(){window.location.href="/"}function _t(t){const e=L.c(45),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=F();let r;e[0]!==a?(r=async()=>{const A=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),N=await A.json();if(!A.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=a,e[1]=r):r=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=At,e[2]=d):d=e[2];let g;e[3]!==i?(g=A=>{te.error(A instanceof Error?A.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let w;e[5]!==r||e[6]!==g?(w={mutationFn:r,onSuccess:d,onError:g},e[5]=r,e[6]=g,e[7]=w):w=e[7];const m=ae(w);let p;e[8]!==l||e[9]!==o?(p=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(Te,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=o,e[10]=p):p=e[10];let c;e[11]!==o||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=c):c=e[13];let u;e[14]!==c?(u=n.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=u):u=e[15];let f;e[16]!==s||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:s}),e[16]=s,e[17]=i,e[18]=f):f=e[18];let h;e[19]!==f?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=h):h=e[20];let x;e[21]!==u||e[22]!==h?(x=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[21]=u,e[22]=h,e[23]=x):x=e[23];let y;e[24]!==m?(y=()=>m.mutate(),e[24]=m,e[25]=y):y=e[25];let S;e[26]!==m.isPending||e[27]!==i?(S=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==m.isPending||e[30]!==y||e[31]!==S?(v=n.jsx($,{onClick:y,disabled:m.isPending,children:S}),e[29]=m.isPending,e[30]=y,e[31]=S,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:Tt,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 T;return e[41]!==x||e[42]!==b||e[43]!==p?(T=n.jsxs(ee,{children:[p,x,b]}),e[41]=x,e[42]=b,e[43]=p,e[44]=T):T=e[44],T}function Tt(){window.location.href="/"}function At(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Ot(t){const e=L.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],Ne(l)}function Ct({orgSlug:t}){const{data:e}=Ot(t);if(e.status!=="member"){Me()?.org===t&&Be();const o=localStorage.getItem(X.lastOrgSlug())===t;if(o&&localStorage.removeItem(X.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(Se,{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(St,{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(Se,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Ee(t){const e=L.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:l,title:s,description:i,icon:r,children:d,footerLeading:g,actions:w,onDismiss:m,tone:p}=t,c=p===void 0?"neutral":p,u=g||w;let f;e[0]!==c?(f=c==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(ct,{size:14}),e[2]=h):h=e[2];let x;e[3]!==a||e[4]!==m?(x=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:h}),e[3]=a,e[4]=m,e[5]=x):x=e[5];const y=r&&"flex items-start gap-3",S=d&&"pb-3";let v;e[6]!==y||e[7]!==S?(v=ge("p-4 pr-11",y,S),e[6]=y,e[7]=S,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 T;e[17]!==j||e[18]!==b||e[19]!==k?(T=n.jsxs("div",{children:[k,j,b]}),e[17]=j,e[18]=b,e[19]=k,e[20]=T):T=e[20];let A;e[21]!==d?(A=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=A):A=e[22];let N;e[23]!==T||e[24]!==A?(N=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,A]}),e[23]=T,e[24]=A,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 I;e[30]!==w||e[31]!==g||e[32]!==u||e[33]!==c?(I=u&&n.jsxs("div",{className:ge("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:w})]}),e[30]=w,e[31]=g,e[32]=u,e[33]=c,e[34]=I):I=e[34];let C;return e[35]!==o||e[36]!==O||e[37]!==I||e[38]!==f||e[39]!==x||e[40]!==c?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":c,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:[f,x,O,I]}),e[35]=o,e[36]=O,e[37]=I,e[38]=f,e[39]=x,e[40]=c,e[41]=C):C=e[41],C}const Ie=[{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:Y,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:Y,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:Y,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:Y,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:Y,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:ot,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Y,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:lt,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 G="",V={},me=!1;function Pt(){if(me)return G||"{}";try{return localStorage.getItem(le)??"{}"}catch{return G||"{}"}}function Le(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function we(){const t=Pt();return t!==G&&(G=t,V=Le(t)),V}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),...V};V=s,G=JSON.stringify(s)}catch{}t()}};return window.addEventListener("storage",e),()=>{ue.delete(t),window.removeEventListener("storage",e)}}function It(t){V=t,G=JSON.stringify(t);try{localStorage.setItem(le,G),me=!1}catch{me=!0}ue.forEach(e=>e())}function Lt(){const t=L.c(7),e=M.useSyncExternalStore(Et,we,we);let o;t[0]!==e?(o=d=>!!e[d],t[0]=e,t[1]=o):o=t[1];const a=o,l=Dt;let s;t[2]!==e?(s=Ie.reduce((d,g)=>e[g.id]?d:d+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){V[t]||It({...V,[t]:{seenAt:new Date().toISOString()}})}const $t=720*60*60*1e3,zt=10080*60*1e3;function qt(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 Rt(t){const e=Ie[0];if(!e)return null;const o=qt(e.date),a=t-o;return a<0||a>$t?null:e}function Ft(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 Mt(t,e){const o=Ft(t);return o===null?!1:e-o>=zt}function Bt(){const t=L.c(34),e=F(),{data:o}=Z.useSession(),{isSeen:a,markSeen:l}=Lt();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=Rt(y),!s){r=null;break e}if(!Mt(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 d;t[5]!==e?(d=e("announcements.release.ariaLabel"),t[5]=e,t[6]=d):d=t[6];let g;t[7]!==e?(g=e("announcements.release.dismiss"),t[7]=e,t[8]=g):g=t[8];const w=s.eyebrow,m=s.title;let p;t[9]!==s.id||t[10]!==l?(p=()=>l(s.id),t[9]=s.id,t[10]=l,t[11]=p):p=t[11];let c;t[12]!==s.id||t[13]!==s.learnMoreHref||t[14]!==l||t[15]!==e?(c=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]=c):c=t[16];let u;t[17]!==s.cta||t[18]!==s.id||t[19]!==l?(u=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]=u):u=t[20];let f;t[21]!==s.bullets?(f=s.bullets.map(Ut),t[21]=s.bullets,t[22]=f):f=t[22];let h;t[23]!==f?(h=n.jsx("ul",{className:"flex flex-col gap-3",children:f}),t[23]=f,t[24]=h):h=t[24];let x;return t[25]!==s.eyebrow||t[26]!==s.title||t[27]!==h||t[28]!==d||t[29]!==g||t[30]!==p||t[31]!==c||t[32]!==u?(x=n.jsx(Ee,{ariaLabel:d,dismissLabel:g,eyebrow:w,title:m,onDismiss:p,footerLeading:c,actions:u,children:h}),t[25]=s.eyebrow,t[26]=s.title,t[27]=h,t[28]=d,t[29]=g,t[30]=p,t[31]=c,t[32]=u,t[33]=x):x=t[33],x}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 De=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=De?"⌘":"Ctrl",q={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Jt=[{label:"General",shortcuts:[q.keyboardShortcuts,q.back,q.newTask,q.toggleDaemon]},{label:"Editor",shortcuts:[q.saveAndFormat]},{label:"Chat",shortcuts:[q.focusChatInput,q.togglePlanMode,q.sendMessage,q.newLine]},{label:"Questions",shortcuts:[q.selectOption]},{label:"Monitoring",shortcuts:[q.applyFilter]}];function ve(t){return De?t.metaKey:t.ctrlKey}function Ht(t){const e=L.c(11),{open:o,onOpenChange:a}=t,l=F();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(Oe,{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:Jt.map(Kt)}),e[4]=r):r=e[4];let d;e[5]!==i?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[i,r]}),e[5]=i,e[6]=d):d=e[6];let g;return e[7]!==a||e[8]!==o||e[9]!==d?(g=n.jsx(Pe,{open:o,onOpenChange:a,children:d}),e[7]=a,e[8]=o,e[9]=d,e[10]=g):g=e[10],g}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=L.c(31),e=F();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]=M.useState(0);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={version:null,count:0},t[1]=r):r=t[1];const[d,g]=M.useState(r);l!==s&&(i(l),g(b=>Yt(b,a,"4.123.2")));const[w,m]=M.useState(null);if(!Xt(d,w))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let u;t[6]!==e?(u=e("announcements.version.eyebrow"),t[6]=e,t[7]=u):u=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let h;t[10]!==e?(h=e("announcements.version.description"),t[10]=e,t[11]=h):h=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(he,{size:16}),t[12]=x):x=t[12];let y;t[13]!==d.version?(y=()=>m(d.version),t[13]=d.version,t[14]=y):y=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.123.2"}),t[15]=e,t[16]=S):S=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]!==p||t[24]!==c||t[25]!==u||t[26]!==f||t[27]!==h||t[28]!==y||t[29]!==S?(j=n.jsx(Ee,{ariaLabel:p,dismissLabel:c,eyebrow:u,title:f,description:h,icon:x,tone:"system",onDismiss:y,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=c,t[25]=u,t[26]=f,t[27]=h,t[28]=y,t[29]=S,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}function nn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const sn=Date.parse("2026-07-21T00:00:00Z"),je=t=>nn(X.ptBrAnnouncementSeen(t));function on(){const t=L.c(35),e=F(),[o,a]=Ue(),{data:l,isPending:s}=Z.useSession(),i=l?.user,r=i?.id,d=i?.createdAt,g=d!=null&&new Date(d).getTime()<sn,w=Je()==="pt-BR",m=!s&&!!r&&g&&w&&o.language==="en"&&!je(r).has(),[p,c]=M.useState(!1),[u,f]=M.useState(!1);!p&&!s&&(c(!0),m&&r&&(je(r).mark(),a(rn),f(!0),pe("pt_br_auto_switch_shown")));let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=R=>{pe("pt_br_auto_switch_closed",{action:R}),f(!1)},t[0]=h):h=t[0];const x=h;let y;t[1]!==a?(y=()=>{a(an),x("switch-back")},t[1]=a,t[2]=y):y=t[2];const S=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=R=>!R&&x("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(Oe,{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 T;t[11]!==b?(T=n.jsx(dt,{children:b}),t[11]=b,t[12]=T):T=t[12];let A;t[13]!==j||t[14]!==T?(A=n.jsxs(Ae,{children:[j,T]}),t[13]=j,t[14]=T,t[15]=A):A=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]!==S||t[19]!==N?(O=n.jsx($,{variant:"outline",onClick:S,children:N}),t[18]=S,t[19]=N,t[20]=O):O=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>x("ok"),t[21]=I):I=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:I,children:C}),t[24]=C,t[25]=D):D=t[25];let P;t[26]!==O||t[27]!==D?(P=n.jsxs(ut,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=P):P=t[28];let H;t[29]!==P||t[30]!==A?(H=n.jsxs(Ce,{className:"sm:max-w-md",children:[_,A,P]}),t[29]=P,t[30]=A,t[31]=H):H=t[31];let B;return t[32]!==u||t[33]!==H?(B=n.jsx(Pe,{open:u,onOpenChange:v,children:H}),t[32]=u,t[33]=H,t[34]=B):B=t[34],B}function an(t){return{...t,language:"en"}}function rn(t){return{...t,language:"pt-BR"}}function ln({activeOrg:t}){return t&&(He(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Ke()),null}function cn(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 d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,w=(o??d)!==d;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(!w){const p=e.main;p&&typeof p=="string"&&!xt(p)&&(r.main=p)}return r.sidepanel=m,s?.autosend&&(r.autosend=i),r}const $e="studio:thread-layout:v1",dn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function un(t,e,o,a=dn){const l=t.filter(([s])=>s!==e);for(l.push([e,ze(o)]);l.length>a;)l.shift();return l}function fe(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function mn(t,e){t&&qe(un(fe(),t,e))}function fn(t){if(!t)return null;const e=fe().find(([o])=>o===t);return e?ze(e[1]):null}function qn(t){if(!t)return;const e=fe(),o=e.filter(([a])=>a!==t);o.length!==e.length&&qe(o)}function Re(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 Rn(t){const e=L.c(10);let o;e[0]!==t?(o=Re(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 gn(t){const e=L.c(31),{orgSlug:o,orgName:a,domain:l}=t,s=F();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,d=hn;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let w;e[3]!==s?(w=s("common.ssoRequiredScreen.title"),e[3]=s,e[4]=w):w=e[4];let m;e[5]!==w?(m=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[5]=w,e[6]=m):m=e[6];let p;e[7]!==l||e[8]!==a||e[9]!==s?(p=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]=p):p=e[10];let c;e[11]!==p?(c=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=c):c=e[12];let u;e[13]!==m||e[14]!==c?(u=n.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=u):u=e[15];let f;e[16]!==s?(f=s("common.ssoRequiredScreen.signInWithSso"),e[16]=s,e[17]=f):f=e[17];let h;e[18]!==r||e[19]!==f?(h=n.jsx($,{onClick:r,children:f}),e[18]=r,e[19]=f,e[20]=h):h=e[20];let x;e[21]!==s?(x=s("common.ssoRequiredScreen.goBack"),e[21]=s,e[22]=x):x=e[22];let y;e[23]!==x?(y=n.jsx($,{variant:"ghost",onClick:d,children:x}),e[23]=x,e[24]=y):y=e[24];let S;e[25]!==y||e[26]!==h?(S=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,y]}),e[25]=y,e[26]=h,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==u?(v=n.jsxs(ee,{children:[g,u,S]}),e[28]=S,e[29]=u,e[30]=v):v=e[30],v}function hn(){window.location.href="/"}function pn(t){const e=L.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 d;return e[4]!==a||e[5]!==o||e[6]!==r?(d=n.jsx(st,{org:o,project:r,children:a}),e[4]=a,e[5]=o,e[6]=r,e[7]=d):d=e[7],d}function xn(){const t=Ge(),e=pt(),{org:o}=Ve(),a=_e({strict:!1}),l=We({strict:!1}),s=a.org??"",i=a.taskId??"",r=(c,u,f=!0)=>t({to:"/$org/$taskId",params:{org:s,taskId:c},search:u,replace:f}),d=(c,u=!0)=>r(i,c,u),g=c=>d(u=>({...u,sidepanel:c})),w=(c,u,f)=>{const h=!!i&&i===c;i&&!h&&mn(i,{main:l.main,sidepanel:l.sidepanel});const x=h?null:fn(c),y=be(o.id).id;return r(c,S=>cn({prev:S,virtualMcpId:u,decopilotId:y,savedLayout:x,opts:f,autosendValue:ft}),!1)};return{openSidePanel:g,setTaskId:w,createNewTask:async c=>{const u=crypto.randomUUID(),f=c??l.virtualmcpid??be(o.id).id;try{await e?.create({id:u,virtual_mcp_id:f})}catch{}w(u,f)},openTab:c=>r(i||crypto.randomUUID(),u=>({...u,main:c}))}}function yn(){const t=L.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Qe(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:s}=_e(l),[i,r]=M.useState(!1),d=Ye(),g=a??"";let w;t[2]!==g?(w=Re(g),t[2]=g,t[3]=w):w=t[3];const m=!!a&&!s;let p;t[4]!==w||t[5]!==m?(p={...w,enabled:m},t[4]=w,t[5]=m,t[6]=p):p=t[6],re(p);const{data:c}=Z.useSession(),u=c?.user?.id;let f;t[7]!==a||t[8]!==u?(f=a&&u?Xe(u,a):null,t[7]=a,t[8]=u,t[9]=f):f=t[9];const h=f;let x,y;t[10]!==d?(x=()=>{const E=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),r(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},y=[d],t[10]=d,t[11]=x,t[12]=y):(x=t[11],y=t[12]),M.useEffect(x,y);let S;t[13]!==a?(S=ce.activeOrganization(a),t[13]=a,t[14]=S):S=t[14];let v;t[15]!==a||t[16]!==u?(v=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:E}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(bn),z=xe(E);return E&&!z&&localStorage.setItem(X.lastOrgSlug(),a),u&&E&&et(u,a,E),E},t[15]=a,t[16]=u,t[17]=v):v=t[17];const _=h?h.data:void 0,k=h?.updatedAt;let j;t[18]!==v||t[19]!==_||t[20]!==k||t[21]!==S?(j={queryKey:S,queryFn:v,initialData:_,initialDataUpdatedAt:k,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=_,t[20]=k,t[21]=S,t[22]=j):j=t[22];const{data:b}=Ne(j),T=b?.id,A=b?.slug,{data:N}=bt(T,A),O=T??"",I=A??"";let C;t[23]!==O||t[24]!==I?(C=gt({connectionId:ht,orgId:O,orgSlug:I}),t[23]=O,t[24]=I,t[25]=C):C=t[25];const D=!!T&&!!A;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(tt,{}),t[29]=E):E=t[29];let z;return t[30]!==a?(z=n.jsx(M.Suspense,{fallback:E,children:n.jsx(Ct,{orgSlug:a})}),t[30]=a,t[31]=z):z=t[31],z}if(xe(b)){localStorage.getItem(X.lastOrgSlug())===a&&localStorage.removeItem(X.lastOrgSlug());let E;return t[32]!==b.name?(E=n.jsx(Ze,{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(gn,{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 R;t[39]!==b||t[40]!==B?(R={...b,logo:B},t[39]=b,t[40]=B,t[41]=R):R=t[41];let W;t[42]!==b?(W=n.jsx(ln,{activeOrg:b}),t[42]=b,t[43]=W):W=t[43];let ne;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(nt,{}),t[44]=ne):ne=t[44];let se;t[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Bt,{}),n.jsx(Zt,{})]}),t[45]=se):se=t[45];let Q;t[46]!==i?(Q=n.jsx(Ht,{open:i,onOpenChange:r}),t[46]=i,t[47]=Q):Q=t[47];let oe;t[48]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(on,{}),t[48]=oe):oe=t[48];let ie;return t[49]!==R||t[50]!==W||t[51]!==Q?(ie=n.jsxs(pn,{org:R,children:[W,ne,se,Q,oe]}),t[49]=R,t[50]=W,t[51]=Q,t[52]=ie):ie=t[52],ie}function bn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Sn(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(mt,{children:n.jsx(yn,{})}),t[0]=e):e=t[0],e}const Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Sn,usePanelActions:xn},Symbol.toStringTag,{value:"Module"}));export{q as K,Rn as a,qn as f,ve as i,nn as m,Fn as s,xn as u};
1
+ import{c as L,b as F,e as ae,j as n,B as $,t as te,bP as ee,y as ke,a as Z,w as Fe,x as Ne,K as ce,bQ as Me,bR as Be,G as X,m as ge,r as M,n as re,av as he,v as Ue,bS as Je,p as pe,bT as He,bU as Ke,d as Ge,F as Ve,f as _e,u as We,J as Qe,aV as Ye,bV as Xe,bW as xe,bX as Ze,bY as et,S as tt,O as nt,bZ as st}from"./index-CqNjsMzG.js";import{A as de}from"./avatar-BhOHpW21.js";import{t as Te,a as ot}from"./Users03-brygpPBv.js";import{i as it}from"./SearchLg-DdY4zxC_.js";import{i as at,s as rt,a as U,n as lt}from"./Stars02-4vri3Tgo.js";import{s as ct}from"./XClose-j_wqntHT.js";import{i as K}from"./CheckCircle-alDZMW6G.js";import{i as ye}from"./FilterLines-tCdWL5hb.js";import{i as Y}from"./Zap-B-6_JwgE.js";import{a as Ae,b as Oe,d as Ce,e as Pe,h as dt,c as ut}from"./dialog-Dokyv2ZE.js";import{R as mt}from"./required-auth-layout-CdxpGwvi.js";import{A as ft}from"./autosend-CBAfK5t4.js";import{a as be,m as gt,S as ht}from"./use-mcp-client-CI9vRdOR.js";import{c as pt}from"./hooks-BmjrNgnF.js";import{q as xt}from"./tab-id-BijBBRwE.js";import{d as yt}from"./use-organization-settings-DjyRISC-.js";import{u as bt}from"./use-org-sso-CZyxpc11.js";function St(t){const e=L.c(49),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=F();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 d;e[3]!==a?(d=N=>{window.location.href=`/${N.slug??a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==i?(g=N=>{te.error(N instanceof Error?N.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let w;e[7]!==r||e[8]!==d||e[9]!==g?(w={mutationFn:r,onSuccess:d,onError:g},e[7]=r,e[8]=d,e[9]=g,e[10]=w):w=e[10];const m=ae(w),p=wt;let c;e[11]!==l||e[12]!==o?(c=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(Te,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=o,e[13]=c):c=e[13];let u;e[14]!==o||e[15]!==i?(u=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=u):u=e[16];let f;e[17]!==u?(f=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=f):f=e[18];let h;e[19]!==s||e[20]!==i?(h=i("common.autoDomainJoinScreen.joinDescription",{domain:s}),e[19]=s,e[20]=i,e[21]=h):h=e[21];let x;e[22]!==h?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[22]=h,e[23]=x):x=e[23];let y;e[24]!==f||e[25]!==x?(y=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=y):y=e[26];let S;e[27]!==m?(S=()=>m.mutate(),e[27]=m,e[28]=S):S=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]!==S||e[35]!==v?(_=n.jsx($,{onClick:S,disabled:m.isPending,children:v}),e[33]=m.isPending,e[34]=S,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:p,disabled:k,children:j}),e[39]=m.isPending,e[40]=j,e[41]=b):b=e[41];let T;e[42]!==_||e[43]!==b?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,b]}),e[42]=_,e[43]=b,e[44]=T):T=e[44];let A;return e[45]!==y||e[46]!==T||e[47]!==c?(A=n.jsxs(ee,{children:[c,y,T]}),e[45]=y,e[46]=T,e[47]=c,e[48]=A):A=e[48],A}function wt(){window.location.href="/"}function Se(t){const e=L.c(25),{orgSlug:o,orgName:a,reason:l}=t,s=F(),i=vt,r=l==="not-found",d=r?it:ke;let g;e[0]!==r||e[1]!==s?(g=s(r?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=r,e[1]=s,e[2]=g):g=e[2];const w=g;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 p=m;let c;e[8]!==d?(c=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=c):c=e[9];let u;e[10]!==w?(u=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[10]=w,e[11]=u):u=e[11];let f;e[12]!==p?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=n.jsxs("div",{className:"space-y-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]!==s?(x=s("common.noAccessScreen.goToHome"),e[17]=s,e[18]=x):x=e[18];let y;e[19]!==x?(y=n.jsx($,{onClick:i,children:x}),e[19]=x,e[20]=y):y=e[20];let S;return e[21]!==c||e[22]!==h||e[23]!==y?(S=n.jsxs(ee,{children:[c,h,y]}),e[21]=c,e[22]=h,e[23]=y,e[24]=S):S=e[24],S}function vt(){window.location.href="/"}function jt(t){const e=L.c(59),{invitationId:o,orgName:a,orgSlug:l,orgLogo:s}=t,i=F();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 d;e[2]!==l?(d=()=>{Fe(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let g;e[4]!==i?(g=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let w;e[6]!==r||e[7]!==d||e[8]!==g?(w={mutationFn:r,onSuccess:d,onError:g},e[6]=r,e[7]=d,e[8]=g,e[9]=w):w=e[9];const m=ae(w);let p;e[10]!==o?(p=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]=p):p=e[11];let c,u;e[12]!==i?(c=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=u):(c=e[13],u=e[14]);let f;e[15]!==p||e[16]!==c||e[17]!==u?(f={mutationFn:p,onSuccess:c,onError:u},e[15]=p,e[16]=c,e[17]=u,e[18]=f):f=e[18];const h=ae(f),x=m.isPending||h.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(at,{className:"h-6 w-6 text-primary"})}),e[19]=s,e[20]=a,e[21]=y):y=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,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 T;e[36]!==m.isPending||e[37]!==i?(T=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=T):T=e[38];let A;e[39]!==x||e[40]!==b||e[41]!==T?(A=n.jsx($,{onClick:b,disabled:x,children:T}),e[39]=x,e[40]=b,e[41]=T,e[42]=A):A=e[42];let N;e[43]!==h?(N=()=>h.mutate(),e[43]=h,e[44]=N):N=e[44];let O;e[45]!==h.isPending||e[46]!==i?(O=h.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=h.isPending,e[46]=i,e[47]=O):O=e[47];let I;e[48]!==x||e[49]!==N||e[50]!==O?(I=n.jsx($,{variant:"ghost",onClick:N,disabled:x,children:O}),e[48]=x,e[49]=N,e[50]=O,e[51]=I):I=e[51];let C;e[52]!==A||e[53]!==I?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[A,I]}),e[52]=A,e[53]=I,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=L.c(23),{orgName:o,orgLogo:a}=t,l=F();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(rt,{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 d;e[7]!==o||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=l,e[9]=d):d=e[9];let g;e[10]!==d?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=g):g=e[11];let w;e[12]!==r||e[13]!==g?(w=n.jsxs("div",{className:"space-y-2",children:[r,g]}),e[12]=r,e[13]=g,e[14]=w):w=e[14];let m;e[15]!==l?(m=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=m):m=e[16];let p;e[17]!==m?(p=n.jsx($,{variant:"ghost",onClick:Nt,children:m}),e[17]=m,e[18]=p):p=e[18];let c;return e[19]!==s||e[20]!==w||e[21]!==p?(c=n.jsxs(ee,{children:[s,w,p]}),e[19]=s,e[20]=w,e[21]=p,e[22]=c):c=e[22],c}function Nt(){window.location.href="/"}function _t(t){const e=L.c(45),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=F();let r;e[0]!==a?(r=async()=>{const A=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),N=await A.json();if(!A.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=a,e[1]=r):r=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=At,e[2]=d):d=e[2];let g;e[3]!==i?(g=A=>{te.error(A instanceof Error?A.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let w;e[5]!==r||e[6]!==g?(w={mutationFn:r,onSuccess:d,onError:g},e[5]=r,e[6]=g,e[7]=w):w=e[7];const m=ae(w);let p;e[8]!==l||e[9]!==o?(p=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(Te,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=o,e[10]=p):p=e[10];let c;e[11]!==o||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=c):c=e[13];let u;e[14]!==c?(u=n.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=u):u=e[15];let f;e[16]!==s||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:s}),e[16]=s,e[17]=i,e[18]=f):f=e[18];let h;e[19]!==f?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=h):h=e[20];let x;e[21]!==u||e[22]!==h?(x=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[21]=u,e[22]=h,e[23]=x):x=e[23];let y;e[24]!==m?(y=()=>m.mutate(),e[24]=m,e[25]=y):y=e[25];let S;e[26]!==m.isPending||e[27]!==i?(S=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==m.isPending||e[30]!==y||e[31]!==S?(v=n.jsx($,{onClick:y,disabled:m.isPending,children:S}),e[29]=m.isPending,e[30]=y,e[31]=S,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:Tt,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 T;return e[41]!==x||e[42]!==b||e[43]!==p?(T=n.jsxs(ee,{children:[p,x,b]}),e[41]=x,e[42]=b,e[43]=p,e[44]=T):T=e[44],T}function Tt(){window.location.href="/"}function At(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Ot(t){const e=L.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],Ne(l)}function Ct({orgSlug:t}){const{data:e}=Ot(t);if(e.status!=="member"){Me()?.org===t&&Be();const o=localStorage.getItem(X.lastOrgSlug())===t;if(o&&localStorage.removeItem(X.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(Se,{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(St,{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(Se,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Ee(t){const e=L.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:l,title:s,description:i,icon:r,children:d,footerLeading:g,actions:w,onDismiss:m,tone:p}=t,c=p===void 0?"neutral":p,u=g||w;let f;e[0]!==c?(f=c==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(ct,{size:14}),e[2]=h):h=e[2];let x;e[3]!==a||e[4]!==m?(x=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:h}),e[3]=a,e[4]=m,e[5]=x):x=e[5];const y=r&&"flex items-start gap-3",S=d&&"pb-3";let v;e[6]!==y||e[7]!==S?(v=ge("p-4 pr-11",y,S),e[6]=y,e[7]=S,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 T;e[17]!==j||e[18]!==b||e[19]!==k?(T=n.jsxs("div",{children:[k,j,b]}),e[17]=j,e[18]=b,e[19]=k,e[20]=T):T=e[20];let A;e[21]!==d?(A=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=A):A=e[22];let N;e[23]!==T||e[24]!==A?(N=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,A]}),e[23]=T,e[24]=A,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 I;e[30]!==w||e[31]!==g||e[32]!==u||e[33]!==c?(I=u&&n.jsxs("div",{className:ge("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:w})]}),e[30]=w,e[31]=g,e[32]=u,e[33]=c,e[34]=I):I=e[34];let C;return e[35]!==o||e[36]!==O||e[37]!==I||e[38]!==f||e[39]!==x||e[40]!==c?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":c,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:[f,x,O,I]}),e[35]=o,e[36]=O,e[37]=I,e[38]=f,e[39]=x,e[40]=c,e[41]=C):C=e[41],C}const Ie=[{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:Y,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:Y,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:Y,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:Y,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:Y,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:ot,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Y,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:lt,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 G="",V={},me=!1;function Pt(){if(me)return G||"{}";try{return localStorage.getItem(le)??"{}"}catch{return G||"{}"}}function Le(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function we(){const t=Pt();return t!==G&&(G=t,V=Le(t)),V}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),...V};V=s,G=JSON.stringify(s)}catch{}t()}};return window.addEventListener("storage",e),()=>{ue.delete(t),window.removeEventListener("storage",e)}}function It(t){V=t,G=JSON.stringify(t);try{localStorage.setItem(le,G),me=!1}catch{me=!0}ue.forEach(e=>e())}function Lt(){const t=L.c(7),e=M.useSyncExternalStore(Et,we,we);let o;t[0]!==e?(o=d=>!!e[d],t[0]=e,t[1]=o):o=t[1];const a=o,l=Dt;let s;t[2]!==e?(s=Ie.reduce((d,g)=>e[g.id]?d:d+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){V[t]||It({...V,[t]:{seenAt:new Date().toISOString()}})}const $t=720*60*60*1e3,zt=10080*60*1e3;function qt(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 Rt(t){const e=Ie[0];if(!e)return null;const o=qt(e.date),a=t-o;return a<0||a>$t?null:e}function Ft(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 Mt(t,e){const o=Ft(t);return o===null?!1:e-o>=zt}function Bt(){const t=L.c(34),e=F(),{data:o}=Z.useSession(),{isSeen:a,markSeen:l}=Lt();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=Rt(y),!s){r=null;break e}if(!Mt(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 d;t[5]!==e?(d=e("announcements.release.ariaLabel"),t[5]=e,t[6]=d):d=t[6];let g;t[7]!==e?(g=e("announcements.release.dismiss"),t[7]=e,t[8]=g):g=t[8];const w=s.eyebrow,m=s.title;let p;t[9]!==s.id||t[10]!==l?(p=()=>l(s.id),t[9]=s.id,t[10]=l,t[11]=p):p=t[11];let c;t[12]!==s.id||t[13]!==s.learnMoreHref||t[14]!==l||t[15]!==e?(c=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]=c):c=t[16];let u;t[17]!==s.cta||t[18]!==s.id||t[19]!==l?(u=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]=u):u=t[20];let f;t[21]!==s.bullets?(f=s.bullets.map(Ut),t[21]=s.bullets,t[22]=f):f=t[22];let h;t[23]!==f?(h=n.jsx("ul",{className:"flex flex-col gap-3",children:f}),t[23]=f,t[24]=h):h=t[24];let x;return t[25]!==s.eyebrow||t[26]!==s.title||t[27]!==h||t[28]!==d||t[29]!==g||t[30]!==p||t[31]!==c||t[32]!==u?(x=n.jsx(Ee,{ariaLabel:d,dismissLabel:g,eyebrow:w,title:m,onDismiss:p,footerLeading:c,actions:u,children:h}),t[25]=s.eyebrow,t[26]=s.title,t[27]=h,t[28]=d,t[29]=g,t[30]=p,t[31]=c,t[32]=u,t[33]=x):x=t[33],x}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 De=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=De?"⌘":"Ctrl",q={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Jt=[{label:"General",shortcuts:[q.keyboardShortcuts,q.back,q.newTask,q.toggleDaemon]},{label:"Editor",shortcuts:[q.saveAndFormat]},{label:"Chat",shortcuts:[q.focusChatInput,q.togglePlanMode,q.sendMessage,q.newLine]},{label:"Questions",shortcuts:[q.selectOption]},{label:"Monitoring",shortcuts:[q.applyFilter]}];function ve(t){return De?t.metaKey:t.ctrlKey}function Ht(t){const e=L.c(11),{open:o,onOpenChange:a}=t,l=F();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(Oe,{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:Jt.map(Kt)}),e[4]=r):r=e[4];let d;e[5]!==i?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[i,r]}),e[5]=i,e[6]=d):d=e[6];let g;return e[7]!==a||e[8]!==o||e[9]!==d?(g=n.jsx(Pe,{open:o,onOpenChange:a,children:d}),e[7]=a,e[8]=o,e[9]=d,e[10]=g):g=e[10],g}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=L.c(31),e=F();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]=M.useState(0);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={version:null,count:0},t[1]=r):r=t[1];const[d,g]=M.useState(r);l!==s&&(i(l),g(b=>Yt(b,a,"4.123.4")));const[w,m]=M.useState(null);if(!Xt(d,w))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let u;t[6]!==e?(u=e("announcements.version.eyebrow"),t[6]=e,t[7]=u):u=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let h;t[10]!==e?(h=e("announcements.version.description"),t[10]=e,t[11]=h):h=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(he,{size:16}),t[12]=x):x=t[12];let y;t[13]!==d.version?(y=()=>m(d.version),t[13]=d.version,t[14]=y):y=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.123.4"}),t[15]=e,t[16]=S):S=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]!==p||t[24]!==c||t[25]!==u||t[26]!==f||t[27]!==h||t[28]!==y||t[29]!==S?(j=n.jsx(Ee,{ariaLabel:p,dismissLabel:c,eyebrow:u,title:f,description:h,icon:x,tone:"system",onDismiss:y,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=c,t[25]=u,t[26]=f,t[27]=h,t[28]=y,t[29]=S,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}function nn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const sn=Date.parse("2026-07-21T00:00:00Z"),je=t=>nn(X.ptBrAnnouncementSeen(t));function on(){const t=L.c(35),e=F(),[o,a]=Ue(),{data:l,isPending:s}=Z.useSession(),i=l?.user,r=i?.id,d=i?.createdAt,g=d!=null&&new Date(d).getTime()<sn,w=Je()==="pt-BR",m=!s&&!!r&&g&&w&&o.language==="en"&&!je(r).has(),[p,c]=M.useState(!1),[u,f]=M.useState(!1);!p&&!s&&(c(!0),m&&r&&(je(r).mark(),a(rn),f(!0),pe("pt_br_auto_switch_shown")));let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=R=>{pe("pt_br_auto_switch_closed",{action:R}),f(!1)},t[0]=h):h=t[0];const x=h;let y;t[1]!==a?(y=()=>{a(an),x("switch-back")},t[1]=a,t[2]=y):y=t[2];const S=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=R=>!R&&x("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(Oe,{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 T;t[11]!==b?(T=n.jsx(dt,{children:b}),t[11]=b,t[12]=T):T=t[12];let A;t[13]!==j||t[14]!==T?(A=n.jsxs(Ae,{children:[j,T]}),t[13]=j,t[14]=T,t[15]=A):A=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]!==S||t[19]!==N?(O=n.jsx($,{variant:"outline",onClick:S,children:N}),t[18]=S,t[19]=N,t[20]=O):O=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>x("ok"),t[21]=I):I=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:I,children:C}),t[24]=C,t[25]=D):D=t[25];let P;t[26]!==O||t[27]!==D?(P=n.jsxs(ut,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=P):P=t[28];let H;t[29]!==P||t[30]!==A?(H=n.jsxs(Ce,{className:"sm:max-w-md",children:[_,A,P]}),t[29]=P,t[30]=A,t[31]=H):H=t[31];let B;return t[32]!==u||t[33]!==H?(B=n.jsx(Pe,{open:u,onOpenChange:v,children:H}),t[32]=u,t[33]=H,t[34]=B):B=t[34],B}function an(t){return{...t,language:"en"}}function rn(t){return{...t,language:"pt-BR"}}function ln({activeOrg:t}){return t&&(He(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Ke()),null}function cn(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 d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,w=(o??d)!==d;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(!w){const p=e.main;p&&typeof p=="string"&&!xt(p)&&(r.main=p)}return r.sidepanel=m,s?.autosend&&(r.autosend=i),r}const $e="studio:thread-layout:v1",dn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function un(t,e,o,a=dn){const l=t.filter(([s])=>s!==e);for(l.push([e,ze(o)]);l.length>a;)l.shift();return l}function fe(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function mn(t,e){t&&qe(un(fe(),t,e))}function fn(t){if(!t)return null;const e=fe().find(([o])=>o===t);return e?ze(e[1]):null}function qn(t){if(!t)return;const e=fe(),o=e.filter(([a])=>a!==t);o.length!==e.length&&qe(o)}function Re(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 Rn(t){const e=L.c(10);let o;e[0]!==t?(o=Re(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 gn(t){const e=L.c(31),{orgSlug:o,orgName:a,domain:l}=t,s=F();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,d=hn;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let w;e[3]!==s?(w=s("common.ssoRequiredScreen.title"),e[3]=s,e[4]=w):w=e[4];let m;e[5]!==w?(m=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[5]=w,e[6]=m):m=e[6];let p;e[7]!==l||e[8]!==a||e[9]!==s?(p=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]=p):p=e[10];let c;e[11]!==p?(c=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=c):c=e[12];let u;e[13]!==m||e[14]!==c?(u=n.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=u):u=e[15];let f;e[16]!==s?(f=s("common.ssoRequiredScreen.signInWithSso"),e[16]=s,e[17]=f):f=e[17];let h;e[18]!==r||e[19]!==f?(h=n.jsx($,{onClick:r,children:f}),e[18]=r,e[19]=f,e[20]=h):h=e[20];let x;e[21]!==s?(x=s("common.ssoRequiredScreen.goBack"),e[21]=s,e[22]=x):x=e[22];let y;e[23]!==x?(y=n.jsx($,{variant:"ghost",onClick:d,children:x}),e[23]=x,e[24]=y):y=e[24];let S;e[25]!==y||e[26]!==h?(S=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,y]}),e[25]=y,e[26]=h,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==u?(v=n.jsxs(ee,{children:[g,u,S]}),e[28]=S,e[29]=u,e[30]=v):v=e[30],v}function hn(){window.location.href="/"}function pn(t){const e=L.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 d;return e[4]!==a||e[5]!==o||e[6]!==r?(d=n.jsx(st,{org:o,project:r,children:a}),e[4]=a,e[5]=o,e[6]=r,e[7]=d):d=e[7],d}function xn(){const t=Ge(),e=pt(),{org:o}=Ve(),a=_e({strict:!1}),l=We({strict:!1}),s=a.org??"",i=a.taskId??"",r=(c,u,f=!0)=>t({to:"/$org/$taskId",params:{org:s,taskId:c},search:u,replace:f}),d=(c,u=!0)=>r(i,c,u),g=c=>d(u=>({...u,sidepanel:c})),w=(c,u,f)=>{const h=!!i&&i===c;i&&!h&&mn(i,{main:l.main,sidepanel:l.sidepanel});const x=h?null:fn(c),y=be(o.id).id;return r(c,S=>cn({prev:S,virtualMcpId:u,decopilotId:y,savedLayout:x,opts:f,autosendValue:ft}),!1)};return{openSidePanel:g,setTaskId:w,createNewTask:async c=>{const u=crypto.randomUUID(),f=c??l.virtualmcpid??be(o.id).id;try{await e?.create({id:u,virtual_mcp_id:f})}catch{}w(u,f)},openTab:c=>r(i||crypto.randomUUID(),u=>({...u,main:c}))}}function yn(){const t=L.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Qe(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:s}=_e(l),[i,r]=M.useState(!1),d=Ye(),g=a??"";let w;t[2]!==g?(w=Re(g),t[2]=g,t[3]=w):w=t[3];const m=!!a&&!s;let p;t[4]!==w||t[5]!==m?(p={...w,enabled:m},t[4]=w,t[5]=m,t[6]=p):p=t[6],re(p);const{data:c}=Z.useSession(),u=c?.user?.id;let f;t[7]!==a||t[8]!==u?(f=a&&u?Xe(u,a):null,t[7]=a,t[8]=u,t[9]=f):f=t[9];const h=f;let x,y;t[10]!==d?(x=()=>{const E=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),r(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},y=[d],t[10]=d,t[11]=x,t[12]=y):(x=t[11],y=t[12]),M.useEffect(x,y);let S;t[13]!==a?(S=ce.activeOrganization(a),t[13]=a,t[14]=S):S=t[14];let v;t[15]!==a||t[16]!==u?(v=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:E}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(bn),z=xe(E);return E&&!z&&localStorage.setItem(X.lastOrgSlug(),a),u&&E&&et(u,a,E),E},t[15]=a,t[16]=u,t[17]=v):v=t[17];const _=h?h.data:void 0,k=h?.updatedAt;let j;t[18]!==v||t[19]!==_||t[20]!==k||t[21]!==S?(j={queryKey:S,queryFn:v,initialData:_,initialDataUpdatedAt:k,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=_,t[20]=k,t[21]=S,t[22]=j):j=t[22];const{data:b}=Ne(j),T=b?.id,A=b?.slug,{data:N}=bt(T,A),O=T??"",I=A??"";let C;t[23]!==O||t[24]!==I?(C=gt({connectionId:ht,orgId:O,orgSlug:I}),t[23]=O,t[24]=I,t[25]=C):C=t[25];const D=!!T&&!!A;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(tt,{}),t[29]=E):E=t[29];let z;return t[30]!==a?(z=n.jsx(M.Suspense,{fallback:E,children:n.jsx(Ct,{orgSlug:a})}),t[30]=a,t[31]=z):z=t[31],z}if(xe(b)){localStorage.getItem(X.lastOrgSlug())===a&&localStorage.removeItem(X.lastOrgSlug());let E;return t[32]!==b.name?(E=n.jsx(Ze,{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(gn,{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 R;t[39]!==b||t[40]!==B?(R={...b,logo:B},t[39]=b,t[40]=B,t[41]=R):R=t[41];let W;t[42]!==b?(W=n.jsx(ln,{activeOrg:b}),t[42]=b,t[43]=W):W=t[43];let ne;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(nt,{}),t[44]=ne):ne=t[44];let se;t[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Bt,{}),n.jsx(Zt,{})]}),t[45]=se):se=t[45];let Q;t[46]!==i?(Q=n.jsx(Ht,{open:i,onOpenChange:r}),t[46]=i,t[47]=Q):Q=t[47];let oe;t[48]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(on,{}),t[48]=oe):oe=t[48];let ie;return t[49]!==R||t[50]!==W||t[51]!==Q?(ie=n.jsxs(pn,{org:R,children:[W,ne,se,Q,oe]}),t[49]=R,t[50]=W,t[51]=Q,t[52]=ie):ie=t[52],ie}function bn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Sn(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(mt,{children:n.jsx(yn,{})}),t[0]=e):e=t[0],e}const Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Sn,usePanelActions:xn},Symbol.toStringTag,{value:"Module"}));export{q as K,Rn as a,qn as f,ve as i,nn as m,Fn as s,xn as u};
@@ -1 +1 @@
1
- import{c as b,m as g,j as o,cI as P,cJ as H,H as R,cK as A,cL as L,cM as V,cN as W,r as O,B as q,b5 as G,bt as F}from"./index-DAtTWfgt.js";import{i as J}from"./LayoutLeft-BR0426bP.js";import{u as K}from"./use-mobile--PifyK00.js";import{i as Q}from"./X-BlyIKSVp.js";import{b as z,T as B,a as D,c as k}from"./tooltip-D1kWwXpZ.js";function U(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(H,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(W,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Y,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(V,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(Q,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(X,{children:[m,o.jsxs(R,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=O.createContext(null);function T(){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=K(),[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(z,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=T();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Z,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let I;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(I=o.jsx(U,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=I):I=e[17],I}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}=T();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(J,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(B,{asChild:!0,children:o.jsxs(q,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(z,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?G:"button",{isMobile:x}=T();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(B,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(D,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,T as u};
1
+ import{c as b,m as g,j as o,cI as P,cJ as H,H as R,cK as A,cL as L,cM as V,cN as W,r as O,B as q,b5 as G,bt as F}from"./index-CqNjsMzG.js";import{i as J}from"./LayoutLeft-DAphaI00.js";import{u as K}from"./use-mobile-pNwl6YMj.js";import{i as Q}from"./X-CO8ug9st.js";import{b as z,T as B,a as D,c as k}from"./tooltip-D7hwOeSe.js";function U(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(H,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(W,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Y,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(V,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(Q,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(X,{children:[m,o.jsxs(R,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=O.createContext(null);function T(){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=K(),[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(z,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=T();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Z,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let I;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(I=o.jsx(U,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=I):I=e[17],I}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}=T();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(J,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(B,{asChild:!0,children:o.jsxs(q,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(z,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?G:"button",{isMobile:x}=T();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(B,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(D,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,T as u};
@@ -1 +1 @@
1
- import{c as n,m as c,j as i}from"./index-DAtTWfgt.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-CqNjsMzG.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,p as C,t as c,c as k}from"./index-DAtTWfgt.js";import{D as z}from"./domain-settings-Bf7aOGCi.js";import{P as x}from"./index-NwnGjivz.js";import{A as T,a as O,b as R,c as F,e as q,f as M,g as U}from"./alert-dialog-BbSxHfpk.js";import{I as d}from"./input-BTaZQTwt.js";import{S as $}from"./switch-DItIkDat.js";import{a as H,b as G,c as J,d as K}from"./use-org-sso-DZihocwz.js";import{c as Q,S as y,a as E,b as a,d as D}from"./settings-section-DcvaTSLo.js";import{s as V}from"./Trash01-DxhoFTU2.js";import{R as W}from"./require-capability-AlDMTe2M.js";import"./studio-tools-B1eVxu6k.js";import"./badge-DF-If9rp.js";import"./select-C-lRFMd0.js";import"./tooltip-D1kWwXpZ.js";import"./Check-BqbTs6Sp.js";import"./ChevronDown-BeuEDkJI.js";import"./ChevronUp-tFv_O9M0.js";import"./sidebar-BAm9qD2e.js";import"./LayoutLeft-BR0426bP.js";import"./use-mobile--PifyK00.js";import"./X-BlyIKSVp.js";import"./card-Di-QpnW-.js";import"./ArrowUpRight-BfP64txw.js";import"./use-capability-DzC2Klfd.js";import"./access-gate-BVvy6Xvh.js";import"./capability-load-error-B47bErtJ.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=G(o.id,o.slug),p=J(o.id,o.slug),b=K(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,S]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),S(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),S(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await p.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),S(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(Q,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(z,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx($,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:p.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>S(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(O,{children:[e.jsx(R,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(q,{children:[e.jsx(M,{disabled:p.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(U,{onClick:w,disabled:p.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function Ee(){const s=k.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{Ee as default};
1
+ import{b as B,F as L,r as v,j as e,B as u,p as C,t as c,c as k}from"./index-CqNjsMzG.js";import{D as z}from"./domain-settings-C8InK3WG.js";import{P as x}from"./index-xUaDrraM.js";import{A as T,a as O,b as R,c as F,e as q,f as M,g as U}from"./alert-dialog-BfFWbJUO.js";import{I as d}from"./input-ILUIMU3o.js";import{S as $}from"./switch-BSoG0kUR.js";import{a as H,b as G,c as J,d as K}from"./use-org-sso-CZyxpc11.js";import{c as Q,S as y,a as E,b as a,d as D}from"./settings-section-Bqx6Ko_C.js";import{s as V}from"./Trash01--Xt0YUwx.js";import{R as W}from"./require-capability-DWEWczmp.js";import"./studio-tools-MuyFlJTV.js";import"./badge-19AlEUXR.js";import"./select-DX2MqsaL.js";import"./tooltip-D7hwOeSe.js";import"./Check-DB5oZP13.js";import"./ChevronDown-GopahMj1.js";import"./ChevronUp-D5wDT63C.js";import"./sidebar-B3VgZJII.js";import"./LayoutLeft-DAphaI00.js";import"./use-mobile-pNwl6YMj.js";import"./X-CO8ug9st.js";import"./card-B7wd2jZa.js";import"./ArrowUpRight-D3lh3ngo.js";import"./use-capability-5HUeaTDq.js";import"./access-gate-BpbiSzai.js";import"./capability-load-error-BM2fvA8J.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};