decocms 4.166.0 → 4.166.2

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 (221) hide show
  1. package/dist/client/assets/{AlertCircle-BGHhwPMz.js → AlertCircle-DH3qtgBe.js} +1 -1
  2. package/dist/client/assets/{AreaChart-ARF_scZ5.js → AreaChart-CUxSq8CM.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-RkZpUqyg.js → ArrowUp-Bw-aOPaU.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-BDWcfY0c.js → ArrowUpRight-Cc2KMNxL.js} +1 -1
  5. package/dist/client/assets/{Check-CHkRYtKv.js → Check-lBHxT1HX.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-BRfhpwch.js → CheckCircle-Cva3EkPV.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-iz8GGXYf.js → ChevronDown-QYK7Lenl.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-IZpQro-r.js → ChevronRight-CWURfvDb.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-B_5wkNuX.js → ChevronUp-BMvYccDe.js} +1 -1
  10. package/dist/client/assets/{Copy01-DqCXRbuf.js → Copy01-CAqSjpf_.js} +1 -1
  11. package/dist/client/assets/{CpuChip01-CSPqCMu_.js → CpuChip01-lsdcDtEC.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-D8cy0gVu.js → DotsVertical-C58fabD-.js} +1 -1
  13. package/dist/client/assets/{Eye-B3l_I5H4.js → Eye-Dw90cLwR.js} +1 -1
  14. package/dist/client/assets/{FilterLines-1XQzY6ly.js → FilterLines-BafoDeSJ.js} +1 -1
  15. package/dist/client/assets/{HardDrive-Cntx7QhC.js → HardDrive-BuNe2d8F.js} +1 -1
  16. package/dist/client/assets/{Key01-CTICJm_V.js → Key01-DSruLSCx.js} +1 -1
  17. package/dist/client/assets/{LayoutLeft-i2g0QuKY.js → LayoutLeft-BV4kR0Cl.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-BB8z5B3f.js → LinkExternal01-DltqAIeP.js} +1 -1
  19. package/dist/client/assets/{LogOut01-C-LAGZ7R.js → LogOut01-B1kROqne.js} +1 -1
  20. package/dist/client/assets/{Monitor01-DzTNjVje.js → Monitor01-Ba7OYhMO.js} +1 -1
  21. package/dist/client/assets/{Palette-kESI43-X.js → Palette-CwJTW0Hm.js} +1 -1
  22. package/dist/client/assets/{Play-T2v41POK.js → Play-B47Q6pNp.js} +1 -1
  23. package/dist/client/assets/{Plus-9ZthcVz_.js → Plus-Bi2kvuIY.js} +1 -1
  24. package/dist/client/assets/{SearchLg-01k2H3ZU.js → SearchLg-UBODIUpH.js} +1 -1
  25. package/dist/client/assets/{SearchMd-DDDVQvP3.js → SearchMd-Swr0KhLg.js} +1 -1
  26. package/dist/client/assets/{Settings02-CAuG4C_k.js → Settings02-Crp31NAs.js} +1 -1
  27. package/dist/client/assets/{Shield01-CznW2JFr.js → Shield01-D6aMdI8b.js} +1 -1
  28. package/dist/client/assets/{Star01-CrRln1Rx.js → Star01-WZXTBc9P.js} +1 -1
  29. package/dist/client/assets/{Stars01-CG7B88Hp.js → Stars01-CbClslIT.js} +1 -1
  30. package/dist/client/assets/{Stars02-CS8WQJ6g.js → Stars02-D3Ts30Xu.js} +1 -1
  31. package/dist/client/assets/{Sun-DzgMotQ7.js → Sun-DOEVL1Eu.js} +1 -1
  32. package/dist/client/assets/{SwitchHorizontal01-sltmgIjh.js → SwitchHorizontal01-5PmCZ0_U.js} +1 -1
  33. package/dist/client/assets/{Tool01-CI-RLBBN.js → Tool01-BgrN_XhB.js} +1 -1
  34. package/dist/client/assets/{Tool02-Cl243TWc.js → Tool02-C8_nzaSV.js} +1 -1
  35. package/dist/client/assets/{Trash01-DMTjAPun.js → Trash01-BB8WWZkr.js} +1 -1
  36. package/dist/client/assets/{TrendUp01-BlCy62Rs.js → TrendUp01-cPdEBjok.js} +1 -1
  37. package/dist/client/assets/{Upload01-BsMkvI2Y.js → Upload01-HoFghnaA.js} +1 -1
  38. package/dist/client/assets/{User01-BNqxMqFJ.js → User01-CU43n4aC.js} +1 -1
  39. package/dist/client/assets/{Users01-BfvEASmn.js → Users01-BfmGwOWr.js} +1 -1
  40. package/dist/client/assets/{Users03-B6z_0qm4.js → Users03-BrSAA7CP.js} +1 -1
  41. package/dist/client/assets/{X-CuyklNqf.js → X-BW2EYO4B.js} +1 -1
  42. package/dist/client/assets/{XCircle-kQ0ojGH_.js → XCircle-Mv4us9Z1.js} +1 -1
  43. package/dist/client/assets/{XClose-D6-r04ej.js → XClose-DCuiifka.js} +1 -1
  44. package/dist/client/assets/{Zap-BjF8Jp4Q.js → Zap-fP1c7xXe.js} +1 -1
  45. package/dist/client/assets/{ZapSquare-DoqhYI6E.js → ZapSquare-DYA2y0UF.js} +1 -1
  46. package/dist/client/assets/{access-gate-BALm-VCD.js → access-gate-BOsNScRg.js} +1 -1
  47. package/dist/client/assets/{add-section-modal--pW36YsF.js → add-section-modal-_WTg53uR.js} +1 -1
  48. package/dist/client/assets/{agent-icon-CCUMqxdM.js → agent-icon-Dx4NCRpv.js} +1 -1
  49. package/dist/client/assets/{agents-list-B3k8pxFo.js → agents-list-B6Umsglt.js} +1 -1
  50. package/dist/client/assets/{ai-providers-C7pBRErM.js → ai-providers-B61Bdd0p.js} +1 -1
  51. package/dist/client/assets/{alert-C2_NzIm1.js → alert-NAuelKid.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-DVNkUJjm.js → alert-dialog-C9XbRCXw.js} +1 -1
  53. package/dist/client/assets/{app-editor-DJT_Qz-J.js → app-editor-9ydsOs0i.js} +1 -1
  54. package/dist/client/assets/{auth-COfv9D-B.js → auth-B6HaqNKN.js} +1 -1
  55. package/dist/client/assets/{auth-catchall-B1Ik9Itk.js → auth-catchall-CgRGtxCe.js} +1 -1
  56. package/dist/client/assets/{auth-entry-CY_ssxmW.js → auth-entry-iN06W9mE.js} +1 -1
  57. package/dist/client/assets/{auth-split-layout-CvuEv68p.js → auth-split-layout-CbLuIloM.js} +1 -1
  58. package/dist/client/assets/{authenticate-and-persist-oauth-B5djp_oM.js → authenticate-and-persist-oauth-B4pAf04F.js} +1 -1
  59. package/dist/client/assets/{automation-list-row-D8s_P_fv.js → automation-list-row-BRUbqICU.js} +1 -1
  60. package/dist/client/assets/{automation-runs-Bd8cRFcO.js → automation-runs-BJxujaRz.js} +11 -11
  61. package/dist/client/assets/{automations-Du69F5M_.js → automations-DM2CfSl8.js} +1 -1
  62. package/dist/client/assets/{avatar-CTumFCbj.js → avatar-D9ru8t7J.js} +1 -1
  63. package/dist/client/assets/{badge-DJBwpmtq.js → badge-DuDSo4B5.js} +1 -1
  64. package/dist/client/assets/{block-document-Dlm_Dzpe.js → block-document-Bj42QOMt.js} +1 -1
  65. package/dist/client/assets/{brand-context-B1Qzip09.js → brand-context-BUhPcaYQ.js} +1 -1
  66. package/dist/client/assets/{buckets-CIjiU_3o.js → buckets-bVh7oMEv.js} +1 -1
  67. package/dist/client/assets/{bulk-category-panel-C2IclmsB.js → bulk-category-panel-88hyriYd.js} +1 -1
  68. package/dist/client/assets/{calendar-BWxZGbm4.js → calendar-CyEY0jbs.js} +1 -1
  69. package/dist/client/assets/{capability-load-error-OUTqyDRM.js → capability-load-error-D5Gggd0Y.js} +1 -1
  70. package/dist/client/assets/{card-D9wL9dTh.js → card-F2SMEUTI.js} +1 -1
  71. package/dist/client/assets/{category-editor-AqrzC3KY.js → category-editor-DW9xGXQm.js} +1 -1
  72. package/dist/client/assets/{chat-context-BfEg8nLE.js → chat-context-BPHBf2SD.js} +1 -1
  73. package/dist/client/assets/{checkbox-CBG5xl1d.js → checkbox-ttemAxHh.js} +1 -1
  74. package/dist/client/assets/{cli-auth-success-BVXGOFm6.js → cli-auth-success-CqGPeKLM.js} +1 -1
  75. package/dist/client/assets/{collection-detail-CI9aEA1H.js → collection-detail-Dfuq9bfs.js} +1 -1
  76. package/dist/client/assets/{collection-display-button-BkkjTo6d.js → collection-display-button-BRJWc_xO.js} +1 -1
  77. package/dist/client/assets/{collection-search-B2fbRBQJ.js → collection-search-C_lEkJSM.js} +1 -1
  78. package/dist/client/assets/{collection-table-wrapper-DKjUMz3H.js → collection-table-wrapper-CzY9tIKJ.js} +1 -1
  79. package/dist/client/assets/{collection-tabs-Grs389jJ.js → collection-tabs-DKMXuAh7.js} +1 -1
  80. package/dist/client/assets/{command-Bao-cGlR.js → command-BaN3HpzD.js} +1 -1
  81. package/dist/client/assets/{commerce-onboarding-IkNVAerO.js → commerce-onboarding-Cbx7Kx6o.js} +1 -1
  82. package/dist/client/assets/{companions-core-LjY7XBGa.js → companions-core-DBvnypYt.js} +1 -1
  83. package/dist/client/assets/{connect-DCKPjTx7.js → connect-CsGthfpX.js} +1 -1
  84. package/dist/client/assets/{connection-Dd8ev5HO.js → connection-D4s1OcN3.js} +1 -1
  85. package/dist/client/assets/{connection-card-b_DqdKo_.js → connection-card-ClxMiq53.js} +1 -1
  86. package/dist/client/assets/{connection-detail-BT84-wag.js → connection-detail-CD343aW8.js} +1 -1
  87. package/dist/client/assets/{connection-form-helpers-CUpc9Yvi.js → connection-form-helpers-BL_ujE81.js} +1 -1
  88. package/dist/client/assets/{connections-D-UAPTVc.js → connections-CUCSFMwK.js} +1 -1
  89. package/dist/client/assets/{decopilot-sse-pool-D1_ZD6_y.js → decopilot-sse-pool-DvMExQy8.js} +1 -1
  90. package/dist/client/assets/{dialog-BAq0LYoh.js → dialog-1l6V_AO-.js} +1 -1
  91. package/dist/client/assets/{domain-settings-B3F521Q6.js → domain-settings-DNGGLfRt.js} +1 -1
  92. package/dist/client/assets/{drawer-CnX4ynVO.js → drawer-D_dlIrgq.js} +1 -1
  93. package/dist/client/assets/{dropdown-menu-Bh6_ogTn.js → dropdown-menu-BSq_T2rN.js} +1 -1
  94. package/dist/client/assets/{empty-state-BCvGyZLy.js → empty-state-DbpV7XVc.js} +1 -1
  95. package/dist/client/assets/{extract-connection-data-CrCZ-wtE.js → extract-connection-data-DsmAsG2q.js} +1 -1
  96. package/dist/client/assets/{file-explorer-D89KT_1L.js → file-explorer-qDmxYOXW.js} +1 -1
  97. package/dist/client/assets/{form-BESoe__r.js → form-BBhau0Q4.js} +1 -1
  98. package/dist/client/assets/{general-CZGOpzbT.js → general-DEP7lOkZ.js} +1 -1
  99. package/dist/client/assets/{github-repo-picker-Cky-dO7f.js → github-repo-picker-DZFkRYw0.js} +1 -1
  100. package/dist/client/assets/{hooks-BjnWnySg.js → hooks-D1TjgNd-.js} +1 -1
  101. package/dist/client/assets/{index-CE-GAU54.js → index-B09P05BF.js} +1 -1
  102. package/dist/client/assets/{index-C5z96HUa.js → index-B1INhWoo.js} +27 -27
  103. package/dist/client/assets/{index-B0tLvq56.js → index-B1Tuj6zE.js} +1 -1
  104. package/dist/client/assets/{index-B2zjCJKf.js → index-Bg79Fd9u.js} +5 -5
  105. package/dist/client/assets/{index-3BU1GVh0.js → index-C_7kU-Qk.js} +1 -1
  106. package/dist/client/assets/{index-ByEwmsIV.js → index-CiqXq-Gv.js} +1 -1
  107. package/dist/client/assets/{index-BzKLOnFf.js → index-CtHwx2FP.js} +1 -1
  108. package/dist/client/assets/{index-PyVbwLgh.js → index-D0yzSc_G.js} +1 -1
  109. package/dist/client/assets/{index-FmKCot8W.js → index-D8Oyc-Sj.js} +1 -1
  110. package/dist/client/assets/{index-DLA40b1F.js → index-LnErdRrl.js} +3 -3
  111. package/dist/client/assets/{index-BMpbhEhn.js → index-SpY-wt3w.js} +1 -1
  112. package/dist/client/assets/{index-redirect-DvUmQQly.js → index-redirect-CSLJ76k2.js} +1 -1
  113. package/dist/client/assets/{input-CbEIVRiv.js → input-DkjdpI9N.js} +1 -1
  114. package/dist/client/assets/{integration-icon-BaxJDQkh.js → integration-icon-eRBxSPRX.js} +1 -1
  115. package/dist/client/assets/{invite-member-dialog-CAZNrLTY.js → invite-member-dialog-DW8BgMeK.js} +1 -1
  116. package/dist/client/assets/{label-e_K4YDqp.js → label-BxyuqrG3.js} +1 -1
  117. package/dist/client/assets/{layout-Cy_J0p_o.js → layout-Cu8cokWN.js} +1 -1
  118. package/dist/client/assets/{login-xGEpDivd.js → login-cHpOzdtv.js} +1 -1
  119. package/dist/client/assets/{mcp-oauth-C-pMNz9v.js → mcp-oauth-BWVH0_CJ.js} +1 -1
  120. package/dist/client/assets/{members-CC-2cCAT.js → members-CywL8X1G.js} +1 -1
  121. package/dist/client/assets/{monaco-editor-DUyZdAa_.js → monaco-editor-Mtdo8aZY.js} +1 -1
  122. package/dist/client/assets/{monitoring-stats-row-bNijYvvx.js → monitoring-stats-row-je0A9zFO.js} +1 -1
  123. package/dist/client/assets/{multi-select-gtHlBK9r.js → multi-select-Cna0azbN.js} +1 -1
  124. package/dist/client/assets/{oauth-callback-DNfh6ZtW.js → oauth-callback-DTQkysno.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-ai-provider-CTTnR4Mu.js → oauth-callback-ai-provider-Bz_8J_A5.js} +1 -1
  126. package/dist/client/assets/{onboarding-CoFIBVvV.js → onboarding-CjSfkbXS.js} +1 -1
  127. package/dist/client/assets/{org-layout-JbEu2nBF.js → org-layout-BjpSi748.js} +1 -1
  128. package/dist/client/assets/{organization-choice-DkBUMeta.js → organization-choice-NAhiEtg0.js} +1 -1
  129. package/dist/client/assets/{orgs-FFap09Yo.js → orgs-CrVyQZvg.js} +1 -1
  130. package/dist/client/assets/{page-seo-form-XQBBNsnP.js → page-seo-form-vyR-JMew.js} +1 -1
  131. package/dist/client/assets/{popover-DsXc6l2I.js → popover-PONP-IrS.js} +1 -1
  132. package/dist/client/assets/{post-editor-Xy1CQHW4.js → post-editor-DAuwYe2r.js} +1 -1
  133. package/dist/client/assets/{primitives-BRbKcQWJ.js → primitives-D8K2Kshy.js} +1 -1
  134. package/dist/client/assets/{profile-BCgRKRSx.js → profile-YApiO9LU.js} +1 -1
  135. package/dist/client/assets/project-app-view-ZWIwvBP5.js +1 -0
  136. package/dist/client/assets/record-editor-CzQMCL3u.js +1 -0
  137. package/dist/client/assets/{redirect-editor-B6avvLR2.js → redirect-editor-BTed9W7Z.js} +1 -1
  138. package/dist/client/assets/registry-PrAxBk77.js +2 -0
  139. package/dist/client/assets/{registry-layout-D4CeNzPB.js → registry-layout-xuewIiFA.js} +1 -1
  140. package/dist/client/assets/{reports-BeuSE98w.js → reports-CNXGX--9.js} +1 -1
  141. package/dist/client/assets/{require-capability-B2xNqWlE.js → require-capability-RQbEgO2R.js} +1 -1
  142. package/dist/client/assets/{required-auth-layout-DKB0DSoW.js → required-auth-layout-Cp2xOp41.js} +1 -1
  143. package/dist/client/assets/{reset-password-B3xAhRZC.js → reset-password-DTmQ8ZLF.js} +1 -1
  144. package/dist/client/assets/{roles-Brd8jWim.js → roles-DteJLIyV.js} +1 -1
  145. package/dist/client/assets/{search-input-pF42nMvu.js → search-input-l0QwIQw1.js} +1 -1
  146. package/dist/client/assets/{secrets-B7Pozgu1.js → secrets-4vWsgQBd.js} +1 -1
  147. package/dist/client/assets/{sections-editor-BNH4SlNG.js → sections-editor-C_KhTOCu.js} +1 -1
  148. package/dist/client/assets/{select-CfHjzQs1.js → select-CzAV5CH5.js} +1 -1
  149. package/dist/client/assets/{select-model-BZGyVnGU.js → select-model-CUI7TW7J.js} +2 -2
  150. package/dist/client/assets/self-tool-result-CFJjEh0u.js +1 -0
  151. package/dist/client/assets/{seo-editor-o2hT1Fd1.js → seo-editor-Dd2fVK23.js} +1 -1
  152. package/dist/client/assets/{settings-layout-Bw3eywxs.js → settings-layout-DQBiJK3p.js} +1 -1
  153. package/dist/client/assets/{settings-section-BA0c6PY5.js → settings-section-CoPqg6gm.js} +1 -1
  154. package/dist/client/assets/{shell-controls-BX6v9ABL.js → shell-controls-DZPzbjgh.js} +1 -1
  155. package/dist/client/assets/{shell-layout-B14LHt19.js → shell-layout-BWjH-Sfe.js} +1 -1
  156. package/dist/client/assets/{sidebar-CqFJJsn_.js → sidebar-DD3SRmGs.js} +1 -1
  157. package/dist/client/assets/{skeleton-C6AkZENI.js → skeleton-ZVeLusnT.js} +1 -1
  158. package/dist/client/assets/{spinner-BKOlJNrL.js → spinner-CeQixqey.js} +1 -1
  159. package/dist/client/assets/{sso-CtTJKqYM.js → sso-ioZ6VXWU.js} +1 -1
  160. package/dist/client/assets/{store-B8ngEb7f.js → store-DsMfvWEf.js} +1 -1
  161. package/dist/client/assets/store-registry-eAQ_7jJi.js +2 -0
  162. package/dist/client/assets/{studio-tools-CLFVLlmy.js → studio-tools-QMuOj6-u.js} +1 -1
  163. package/dist/client/assets/{switch-BbwFIFVc.js → switch-DvFygQiJ.js} +1 -1
  164. package/dist/client/assets/{tab-id-C4ltBuCa.js → tab-id-8wArXECU.js} +1 -1
  165. package/dist/client/assets/{table-D-BeO5iq.js → table-TbcMVTO8.js} +1 -1
  166. package/dist/client/assets/{tabs-DKxrb6gS.js → tabs-CFfkTu0X.js} +1 -1
  167. package/dist/client/assets/{textarea-CuGss4kW.js → textarea-DkC87OzG.js} +1 -1
  168. package/dist/client/assets/{toggle-group-BefwCY1T.js → toggle-group-CTKp_-5Y.js} +1 -1
  169. package/dist/client/assets/{toolbar-iFmi5hLl.js → toolbar-xTOW3jV5.js} +1 -1
  170. package/dist/client/assets/{tooltip-Bvm9Xbb5.js → tooltip-DvQ0XsJD.js} +1 -1
  171. package/dist/client/assets/{use-ai-providers-DpuyC8C4.js → use-ai-providers-CXx6vxgf.js} +1 -1
  172. package/dist/client/assets/{use-automations-CuNoYyo2.js → use-automations-CIRY26Sm.js} +1 -1
  173. package/dist/client/assets/{use-autosave-RO8-WsHU.js → use-autosave-BFchLnE-.js} +1 -1
  174. package/dist/client/assets/{use-capability-DkBqztj8.js → use-capability-CbsdK6kc.js} +1 -1
  175. package/dist/client/assets/{use-clock-tick-CCMI_QzN.js → use-clock-tick-yxMgruH1.js} +1 -1
  176. package/dist/client/assets/{use-connection-BCaQjlRr.js → use-connection-Crt7Wnf6.js} +1 -1
  177. package/dist/client/assets/{use-copy-DszG7Ezv.js → use-copy-D8LT9wzj.js} +1 -1
  178. package/dist/client/assets/{use-create-virtual-mcp-Bjq7Dbci.js → use-create-virtual-mcp-CYPHz2tM.js} +1 -1
  179. package/dist/client/assets/{use-debounced-autosave-FrA4S0j-.js → use-debounced-autosave-Bk4kxnd7.js} +1 -1
  180. package/dist/client/assets/{use-debounced-value-Byzx0x69.js → use-debounced-value-C7ql9pQ9.js} +1 -1
  181. package/dist/client/assets/{use-deco-credits-4VjgP2qZ.js → use-deco-credits-D09kZAP8.js} +1 -1
  182. package/dist/client/assets/{use-decopilot-events-CI4d8DWY.js → use-decopilot-events-C_3NeXEi.js} +1 -1
  183. package/dist/client/assets/{use-delete-connection-BYEy0smD.js → use-delete-connection-C37Wf7oV.js} +1 -1
  184. package/dist/client/assets/{use-deployment-admin-Bz0fhG6h.js → use-deployment-admin-s6rTcF1z.js} +1 -1
  185. package/dist/client/assets/{use-file-configs-BqypoWGa.js → use-file-configs-d0gxFXga.js} +1 -1
  186. package/dist/client/assets/{use-infinite-scroll-CA4EtLp-.js → use-infinite-scroll-GIf_V4mg.js} +1 -1
  187. package/dist/client/assets/{use-join-requests-B6PctWgv.js → use-join-requests-CTSz7464.js} +1 -1
  188. package/dist/client/assets/{use-mcp-auth-status-D1B-7_GU.js → use-mcp-auth-status-BXPNVCkT.js} +1 -1
  189. package/dist/client/assets/{use-mcp-client-BYtR6Aj1.js → use-mcp-client-Cpe5VVFd.js} +1 -1
  190. package/dist/client/assets/{use-mcp-tools-BU63GSUC.js → use-mcp-tools-vrGNFP62.js} +1 -1
  191. package/dist/client/assets/{use-members-DsTlXoH1.js → use-members-Di-wqSFo.js} +1 -1
  192. package/dist/client/assets/{use-mobile-B6O3bT8M.js → use-mobile-BDpXfOGb.js} +1 -1
  193. package/dist/client/assets/{use-navigate-to-agent-DZ1moCkE.js → use-navigate-to-agent-xBQA-nI3.js} +1 -1
  194. package/dist/client/assets/{use-org-auth-client-D5_yKvt2.js → use-org-auth-client-xlorPrK7.js} +1 -1
  195. package/dist/client/assets/{use-org-sso-DhnjOsdB.js → use-org-sso-BP9JFiDp.js} +1 -1
  196. package/dist/client/assets/{use-organization-roles-VEKl-lNF.js → use-organization-roles-LBstF68U.js} +1 -1
  197. package/dist/client/assets/{use-organization-settings-UbVLVwZl.js → use-organization-settings-BxnffxCo.js} +1 -1
  198. package/dist/client/assets/{use-registry-connections-DkNVOupz.js → use-registry-connections-CMbVPAo5.js} +1 -1
  199. package/dist/client/assets/{use-secrets-BCUyTIPx.js → use-secrets-BvEnn7fN.js} +1 -1
  200. package/dist/client/assets/{use-status-sounds-DFcxItJU.js → use-status-sounds-Cuh2VhxF.js} +1 -1
  201. package/dist/client/assets/{use-tags-U4MW2IKo.js → use-tags-Ro4HIuso.js} +1 -1
  202. package/dist/client/assets/{use-view-mode-CNYTRP_z.js → use-view-mode-BPzd0kmg.js} +1 -1
  203. package/dist/client/assets/{use-virtual-mcp-4HBmTrxs.js → use-virtual-mcp-CRbRiAY-.js} +1 -1
  204. package/dist/client/assets/useInfiniteQuery-C-RqwYQP.js +1 -0
  205. package/dist/client/assets/{useQueries-wDLuP_61.js → useQueries-D1qVck3-.js} +1 -1
  206. package/dist/client/assets/{useRouterState-ByzhxHyn.js → useRouterState-BK4V-Kyf.js} +1 -1
  207. package/dist/client/assets/useSuspenseInfiniteQuery-QRgmbC8e.js +1 -0
  208. package/dist/client/assets/{users-CsSQqyF1.js → users-DG9dviv7.js} +1 -1
  209. package/dist/client/assets/{variant-calendar-Dv1Q208w.js → variant-calendar-B31vNriY.js} +1 -1
  210. package/dist/client/assets/{view-mode-toggle-C0MvSLJ0.js → view-mode-toggle-Ckvgwera.js} +1 -1
  211. package/dist/client/index.html +1 -1
  212. package/dist/server/cli.js +218 -218
  213. package/dist/server/server.js +40 -40
  214. package/package.json +1 -1
  215. package/dist/client/assets/project-app-view-Cm8HmU1B.js +0 -1
  216. package/dist/client/assets/record-editor-BcexChf4.js +0 -1
  217. package/dist/client/assets/registry-Bn_PSmDC.js +0 -2
  218. package/dist/client/assets/self-tool-result-BUVCvp3t.js +0 -1
  219. package/dist/client/assets/store-registry-Cn0U3BtV.js +0 -2
  220. package/dist/client/assets/useInfiniteQuery-hqL0Oy0c.js +0 -1
  221. package/dist/client/assets/useSuspenseInfiniteQuery-Dx-lbWy-.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-C5z96HUa.js";import{i as ke}from"./ChevronRight-IZpQro-r.js";import{a5 as fe}from"./agent-icon-CCUMqxdM.js";import{l as xe}from"./automation-runs-Bd8cRFcO.js";import{r as Ne,c as we,u as _e,a as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-XQBBNsnP.js";import{a8 as ue,a0 as Ke}from"./index-B2zjCJKf.js";import{a as ye}from"./Tool01-CI-RLBBN.js";import"./AlertCircle-BGHhwPMz.js";import"./ArrowUp-RkZpUqyg.js";import"./Settings02-CAuG4C_k.js";import"./Tool02-Cl243TWc.js";import"./XCircle-kQ0ojGH_.js";import"./ArrowUpRight-BDWcfY0c.js";import"./TrendUp01-BlCy62Rs.js";import"./ZapSquare-DoqhYI6E.js";import"./Users03-B6z_0qm4.js";import"./CheckCircle-BRfhpwch.js";import"./Check-CHkRYtKv.js";import"./ChevronDown-iz8GGXYf.js";import"./ChevronUp-B_5wkNuX.js";import"./DotsVertical-D8cy0gVu.js";import"./Stars02-CS8WQJ6g.js";import"./Copy01-DqCXRbuf.js";import"./CpuChip01-CSPqCMu_.js";import"./Eye-B3l_I5H4.js";import"./FilterLines-1XQzY6ly.js";import"./Star01-CrRln1Rx.js";import"./Palette-kESI43-X.js";import"./SwitchHorizontal01-sltmgIjh.js";import"./HardDrive-Cntx7QhC.js";import"./Key01-CTICJm_V.js";import"./LayoutLeft-i2g0QuKY.js";import"./LinkExternal01-BB8z5B3f.js";import"./LogOut01-C-LAGZ7R.js";import"./Monitor01-DzTNjVje.js";import"./Sun-DzgMotQ7.js";import"./Play-T2v41POK.js";import"./Plus-9ZthcVz_.js";import"./SearchLg-01k2H3ZU.js";import"./SearchMd-DDDVQvP3.js";import"./Shield01-CznW2JFr.js";import"./Stars01-CG7B88Hp.js";import"./Trash01-DMTjAPun.js";import"./Upload01-BsMkvI2Y.js";import"./User01-BNqxMqFJ.js";import"./Users01-BfvEASmn.js";import"./XClose-D6-r04ej.js";import"./X-CuyklNqf.js";import"./Zap-BjF8Jp4Q.js";import"./select-CfHjzQs1.js";import"./tooltip-Bvm9Xbb5.js";import"./useInfiniteQuery-hqL0Oy0c.js";import"./use-infinite-scroll-CA4EtLp-.js";import"./use-connection-BCaQjlRr.js";import"./use-mcp-client-BYtR6Aj1.js";import"./auth-COfv9D-B.js";import"./use-virtual-mcp-4HBmTrxs.js";import"./card-D9wL9dTh.js";import"./sidebar-CqFJJsn_.js";import"./use-mobile-B6O3bT8M.js";import"./table-D-BeO5iq.js";import"./empty-state-BCvGyZLy.js";import"./use-members-DsTlXoH1.js";import"./use-org-auth-client-D5_yKvt2.js";import"./use-clock-tick-CCMI_QzN.js";import"./use-automations-CuNoYyo2.js";import"./studio-tools-CLFVLlmy.js";import"./useSuspenseInfiniteQuery-Dx-lbWy-.js";import"./avatar-CTumFCbj.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DszG7Ezv.js";import"./calendar-BWxZGbm4.js";import"./dialog-BAq0LYoh.js";import"./tab-id-C4ltBuCa.js";import"./hooks-BjnWnySg.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-D1_ZD6_y.js";import"./chat-context-BfEg8nLE.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-DpuyC8C4.js";import"./use-decopilot-events-CI4d8DWY.js";import"./use-organization-settings-UbVLVwZl.js";import"./monaco-editor-DUyZdAa_.js";import"./spinner-BKOlJNrL.js";import"./index-BzKLOnFf.js";import"./shell-layout-B14LHt19.js";import"./required-auth-layout-DKB0DSoW.js";import"./use-org-sso-DhnjOsdB.js";import"./integration-icon-BaxJDQkh.js";import"./use-navigate-to-agent-DZ1moCkE.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-ARF_scZ5.js";import"./form-BESoe__r.js";import"./label-e_K4YDqp.js";import"./input-CbEIVRiv.js";import"./switch-BbwFIFVc.js";import"./drawer-CnX4ynVO.js";import"./collection-search-B2fbRBQJ.js";import"./index-DLA40b1F.js";import"./get-initials-D-f_fDFw.js";import"./popover-DsXc6l2I.js";import"./dropdown-menu-Bh6_ogTn.js";import"./github-repo-picker-Cky-dO7f.js";import"./use-debounced-value-Byzx0x69.js";import"./authenticate-and-persist-oauth-B5djp_oM.js";import"./mcp-oauth-C-pMNz9v.js";import"./use-mcp-tools-BU63GSUC.js";import"./extract-connection-data-CrCZ-wtE.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CAXumITS.js";import"./use-tags-U4MW2IKo.js";import"./skeleton-C6AkZENI.js";import"./command-Bao-cGlR.js";import"./index-ByEwmsIV.js";import"./companions-core-LjY7XBGa.js";import"./tabs-DKxrb6gS.js";import"./toggle-group-BefwCY1T.js";import"./use-deco-credits-4VjgP2qZ.js";import"./alert-dialog-DVNkUJjm.js";import"./toolbar-iFmi5hLl.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-b_DqdKo_.js";import"./use-registry-connections-DkNVOupz.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CuGss4kW.js";import"./connection-form-helpers-CUpc9Yvi.js";import"./collection-tabs-Grs389jJ.js";import"./badge-DJBwpmtq.js";import"./select-model-BZGyVnGU.js";import"./checkbox-CBG5xl1d.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BA0c6PY5.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DFcxItJU.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-DkBqztj8.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-D1B-7_GU.js";import"./use-debounced-autosave-FrA4S0j-.js";import"./index-FmKCot8W.js";import"./search-input-pF42nMvu.js";import"./use-secrets-BCUyTIPx.js";import"./useQueries-wDLuP_61.js";import"./use-file-configs-BqypoWGa.js";import"./automation-list-row-D8s_P_fv.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Ie(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Be(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function zi(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=we({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?_e(U)??void 0:void 0,E=S??be??h??{},F=c?Ee(E,c):null,K=F&&(!M||Pe(U))?Ke(F,s):null;let G;e[0]!==s?(G=Te(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let B;e[41]!==L||e[42]!==D?(B=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=B):B=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Re,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Ce,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==B||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[B,O]}),e[67]=B,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{zi as SeoEditor};
1
+ import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-B1INhWoo.js";import{i as ke}from"./ChevronRight-CWURfvDb.js";import{a5 as fe}from"./agent-icon-Dx4NCRpv.js";import{l as xe}from"./automation-runs-BJxujaRz.js";import{r as Ne,c as we,u as _e,a as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-vyR-JMew.js";import{a8 as ue,a0 as Ke}from"./index-Bg79Fd9u.js";import{a as ye}from"./Tool01-BgrN_XhB.js";import"./AlertCircle-DH3qtgBe.js";import"./ArrowUp-Bw-aOPaU.js";import"./Settings02-Crp31NAs.js";import"./Tool02-C8_nzaSV.js";import"./XCircle-Mv4us9Z1.js";import"./ArrowUpRight-Cc2KMNxL.js";import"./TrendUp01-cPdEBjok.js";import"./ZapSquare-DYA2y0UF.js";import"./Users03-BrSAA7CP.js";import"./CheckCircle-Cva3EkPV.js";import"./Check-lBHxT1HX.js";import"./ChevronDown-QYK7Lenl.js";import"./ChevronUp-BMvYccDe.js";import"./DotsVertical-C58fabD-.js";import"./Stars02-D3Ts30Xu.js";import"./Copy01-CAqSjpf_.js";import"./CpuChip01-lsdcDtEC.js";import"./Eye-Dw90cLwR.js";import"./FilterLines-BafoDeSJ.js";import"./Star01-WZXTBc9P.js";import"./Palette-CwJTW0Hm.js";import"./SwitchHorizontal01-5PmCZ0_U.js";import"./HardDrive-BuNe2d8F.js";import"./Key01-DSruLSCx.js";import"./LayoutLeft-BV4kR0Cl.js";import"./LinkExternal01-DltqAIeP.js";import"./LogOut01-B1kROqne.js";import"./Monitor01-Ba7OYhMO.js";import"./Sun-DOEVL1Eu.js";import"./Play-B47Q6pNp.js";import"./Plus-Bi2kvuIY.js";import"./SearchLg-UBODIUpH.js";import"./SearchMd-Swr0KhLg.js";import"./Shield01-D6aMdI8b.js";import"./Stars01-CbClslIT.js";import"./Trash01-BB8WWZkr.js";import"./Upload01-HoFghnaA.js";import"./User01-CU43n4aC.js";import"./Users01-BfmGwOWr.js";import"./XClose-DCuiifka.js";import"./X-BW2EYO4B.js";import"./Zap-fP1c7xXe.js";import"./select-CzAV5CH5.js";import"./tooltip-DvQ0XsJD.js";import"./useInfiniteQuery-C-RqwYQP.js";import"./use-infinite-scroll-GIf_V4mg.js";import"./use-connection-Crt7Wnf6.js";import"./use-mcp-client-Cpe5VVFd.js";import"./auth-B6HaqNKN.js";import"./use-virtual-mcp-CRbRiAY-.js";import"./card-F2SMEUTI.js";import"./sidebar-DD3SRmGs.js";import"./use-mobile-BDpXfOGb.js";import"./table-TbcMVTO8.js";import"./empty-state-DbpV7XVc.js";import"./use-members-Di-wqSFo.js";import"./use-org-auth-client-xlorPrK7.js";import"./use-clock-tick-yxMgruH1.js";import"./use-automations-CIRY26Sm.js";import"./studio-tools-QMuOj6-u.js";import"./useSuspenseInfiniteQuery-QRgmbC8e.js";import"./avatar-D9ru8t7J.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D8LT9wzj.js";import"./calendar-CyEY0jbs.js";import"./dialog-1l6V_AO-.js";import"./tab-id-8wArXECU.js";import"./hooks-D1TjgNd-.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DvMExQy8.js";import"./chat-context-BPHBf2SD.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-CXx6vxgf.js";import"./use-decopilot-events-C_3NeXEi.js";import"./use-organization-settings-BxnffxCo.js";import"./monaco-editor-Mtdo8aZY.js";import"./spinner-CeQixqey.js";import"./index-CtHwx2FP.js";import"./shell-layout-BWjH-Sfe.js";import"./required-auth-layout-Cp2xOp41.js";import"./use-org-sso-BP9JFiDp.js";import"./integration-icon-eRBxSPRX.js";import"./use-navigate-to-agent-xBQA-nI3.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CUxSq8CM.js";import"./form-BBhau0Q4.js";import"./label-BxyuqrG3.js";import"./input-DkjdpI9N.js";import"./switch-DvFygQiJ.js";import"./drawer-D_dlIrgq.js";import"./collection-search-C_lEkJSM.js";import"./index-LnErdRrl.js";import"./get-initials-D-f_fDFw.js";import"./popover-PONP-IrS.js";import"./dropdown-menu-BSq_T2rN.js";import"./github-repo-picker-DZFkRYw0.js";import"./use-debounced-value-C7ql9pQ9.js";import"./authenticate-and-persist-oauth-B4pAf04F.js";import"./mcp-oauth-BWVH0_CJ.js";import"./use-mcp-tools-vrGNFP62.js";import"./extract-connection-data-DsmAsG2q.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CAXumITS.js";import"./use-tags-Ro4HIuso.js";import"./skeleton-ZVeLusnT.js";import"./command-BaN3HpzD.js";import"./index-CiqXq-Gv.js";import"./companions-core-DBvnypYt.js";import"./tabs-CFfkTu0X.js";import"./toggle-group-CTKp_-5Y.js";import"./use-deco-credits-D09kZAP8.js";import"./alert-dialog-C9XbRCXw.js";import"./toolbar-xTOW3jV5.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-ClxMiq53.js";import"./use-registry-connections-CMbVPAo5.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DkC87OzG.js";import"./connection-form-helpers-BL_ujE81.js";import"./collection-tabs-DKMXuAh7.js";import"./badge-DuDSo4B5.js";import"./select-model-CUI7TW7J.js";import"./checkbox-ttemAxHh.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CoPqg6gm.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Cuh2VhxF.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-CbsdK6kc.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-BXPNVCkT.js";import"./use-debounced-autosave-Bk4kxnd7.js";import"./index-D8Oyc-Sj.js";import"./search-input-l0QwIQw1.js";import"./use-secrets-BvEnn7fN.js";import"./useQueries-D1qVck3-.js";import"./use-file-configs-d0gxFXga.js";import"./automation-list-row-BRUbqICU.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Ie(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Be(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function zi(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=we({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?_e(U)??void 0:void 0,E=S??be??h??{},F=c?Ee(E,c):null,K=F&&(!M||Pe(U))?Ke(F,s):null;let G;e[0]!==s?(G=Te(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let B;e[41]!==L||e[42]!==D?(B=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=B):B=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Re,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Ce,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==B||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[B,O]}),e[67]=B,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{zi as SeoEditor};
@@ -1 +1 @@
1
- import{c as j,b as q,j as t,f as D,F as K,m as z,y as U,L as T,p as E,P as G,a as B,k as V,r as X,O as Y}from"./index-C5z96HUa.js";import{u as Z}from"./useRouterState-ByzhxHyn.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-CqFJJsn_.js";import{a as le}from"./index-FmKCot8W.js";import{n as re,a as oe,c as ae,b as ce}from"./ZapSquare-DoqhYI6E.js";import{t as me,a as A}from"./Users03-B6z_0qm4.js";import{i as fe}from"./CpuChip01-CSPqCMu_.js";import{i as de}from"./HardDrive-Cntx7QhC.js";import{i as xe}from"./Key01-CTICJm_V.js";import{n as be}from"./LinkExternal01-BB8z5B3f.js";import{i as F}from"./LogOut01-C-LAGZ7R.js";import{i as ue}from"./Shield01-CznW2JFr.js";import{s as ge}from"./User01-BNqxMqFJ.js";import{i as pe}from"./Zap-BjF8Jp4Q.js";import{a as he}from"./use-capability-DkBqztj8.js";import{u as je}from"./use-join-requests-B6PctWgv.js";import{u as H}from"./use-mobile-B6O3bT8M.js";import{u as ye}from"./use-status-sounds-DFcxItJU.js";import{a as _}from"./toolbar-iFmi5hLl.js";import{S as _e,M as ve}from"./shell-controls-BX6v9ABL.js";import"./LayoutLeft-i2g0QuKY.js";import"./X-CuyklNqf.js";import"./tooltip-Bvm9Xbb5.js";import"./studio-tools-CLFVLlmy.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-CI4d8DWY.js";import"./decopilot-sse-pool-D1_ZD6_y.js";import"./backoff-CrEUbyZT.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=he(),a=je().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(me,{size:14}),e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(be,{size:14}),e[9]=f):f=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(re,{size:14}),e[10]=d):d=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(fe,{size:14}),e[11]=x):x=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(xe,{size:14}),e[12]=b):b=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(de,{size:14}),e[13]=g):g=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(oe,{size:14}),e[14]=p):p=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(A,{size:14}),e[15]=u):u=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(pe,{size:14}),e[16]=y):y=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ae,{size:14}),e[17]=h):h=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ce,{size:14}),e[18]=v):v=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(A,{size:14}),e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ue,{size:14}),e[20]=k):k=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(U,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ge,{size:14}),e[22]=$):$=e[22];const w=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:"Connect to clients",icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:b,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:g,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:p,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:u,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:y,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:h,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:v,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:S,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:k,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:N,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:$,to:"/$org/settings/profile"}]}];if(i||l){c=w;break e}r=w.map(P=>({...P,items:P.items.filter(C=>C.privilegedOnly?n:C.requires?n||o[C.requires]:!0)})).filter(Se)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Se(e){return e.items.length>0}function Q(e){const s=j.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function W(){const e=j.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=D(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:ke},e[1]=n):n=e[1];const i=Z(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ke(e){return e.location.pathname}function Ne(){const e=j.c(19),s=q(),o=J(),{org:n,isActive:i}=W();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(g,p)=>t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&t.jsx("p",{className:z("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:g.items.map(u=>t.jsx(I,{children:t.jsx(R,{asChild:!0,isActive:i(u.to),children:t.jsxs(T,{to:u.to,params:{org:n},onClick:()=>E("settings_nav_clicked",{section_key:u.key,group_key:g.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(Q,{icon:u.icon,badge:u.badge}),t.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},g.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:t.jsx(I,{children:t.jsxs(R,{onClick:$e,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.166.0"]})}),e[16]=d):d=e[16];let x;return e[17]!==f?(x=t.jsxs(ne,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=x):x=e[18],x}function $e(){E("signed_out",{source:"settings_sidebar"}),G(),B.signOut()}function ze(e){const s=j.c(21),{onClose:o}=e,n=q(),i=J(),{org:l,isActive:a}=W();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let 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.166.0"]})}),s[18]=b):b=s[18];let g;return s[19]!==x?(g=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[x,b]}),s[19]=x,s[20]=g):g=s[20],g}function Ce(){G(),B.signOut()}function qe(){const e=j.c(4),s=H(),{org:o}=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-B1INhWoo.js";import{u as Z}from"./useRouterState-BK4V-Kyf.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-DD3SRmGs.js";import{a as le}from"./index-D8Oyc-Sj.js";import{n as re,a as oe,c as ae,b as ce}from"./ZapSquare-DYA2y0UF.js";import{t as me,a as A}from"./Users03-BrSAA7CP.js";import{i as fe}from"./CpuChip01-lsdcDtEC.js";import{i as de}from"./HardDrive-BuNe2d8F.js";import{i as xe}from"./Key01-DSruLSCx.js";import{n as be}from"./LinkExternal01-DltqAIeP.js";import{i as F}from"./LogOut01-B1kROqne.js";import{i as ue}from"./Shield01-D6aMdI8b.js";import{s as ge}from"./User01-CU43n4aC.js";import{i as pe}from"./Zap-fP1c7xXe.js";import{a as he}from"./use-capability-CbsdK6kc.js";import{u as je}from"./use-join-requests-CTSz7464.js";import{u as H}from"./use-mobile-BDpXfOGb.js";import{u as ye}from"./use-status-sounds-Cuh2VhxF.js";import{a as _}from"./toolbar-xTOW3jV5.js";import{S as _e,M as ve}from"./shell-controls-DZPzbjgh.js";import"./LayoutLeft-BV4kR0Cl.js";import"./X-BW2EYO4B.js";import"./tooltip-DvQ0XsJD.js";import"./studio-tools-QMuOj6-u.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-C_3NeXEi.js";import"./decopilot-sse-pool-DvMExQy8.js";import"./backoff-CrEUbyZT.js";function J(){const e=j.c(23),s=q(),{capabilities:o,isPrivileged:n,loading:i,error:l}=he(),a=je().length;let r,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==s){c=Symbol.for("react.early_return_sentinel");e:{let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(me,{size:14}),e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(be,{size:14}),e[9]=f):f=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(re,{size:14}),e[10]=d):d=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(fe,{size:14}),e[11]=x):x=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(xe,{size:14}),e[12]=b):b=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(de,{size:14}),e[13]=g):g=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(oe,{size:14}),e[14]=p):p=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(A,{size:14}),e[15]=u):u=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(pe,{size:14}),e[16]=y):y=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ae,{size:14}),e[17]=h):h=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ce,{size:14}),e[18]=v):v=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(A,{size:14}),e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ue,{size:14}),e[20]=k):k=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(U,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ge,{size:14}),e[22]=$):$=e[22];const w=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:m,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:"Connect to clients",icon:f,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:s("settings.nav.secrets"),icon:b,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:g,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:p,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:u,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:y,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:h,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:v,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:S,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:k,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:N,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:$,to:"/$org/settings/profile"}]}];if(i||l){c=w;break e}r=w.map(P=>({...P,items:P.items.filter(C=>C.privilegedOnly?n:C.requires?n||o[C.requires]:!0)})).filter(Se)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=s,e[6]=r,e[7]=c}else r=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Se(e){return e.items.length>0}function Q(e){const s=j.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function W(){const e=j.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=D(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:ke},e[1]=n):n=e[1];const i=Z(n);let l;e[2]!==o||e[3]!==i?(l=c=>{const m=c.replace("$org",o);return i.startsWith(m)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ke(e){return e.location.pathname}function Ne(){const e=j.c(19),s=q(),o=J(),{org:n,isActive:i}=W();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(g,p)=>t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&t.jsx("p",{className:z("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:g.items.map(u=>t.jsx(I,{children:t.jsx(R,{asChild:!0,isActive:i(u.to),children:t.jsxs(T,{to:u.to,params:{org:n},onClick:()=>E("settings_nav_clicked",{section_key:u.key,group_key:g.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(Q,{icon:u.icon,badge:u.badge}),t.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},g.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(F,{size:14})}),e[8]=r):r=e[8];let c;e[9]!==s?(c=s("settings.nav.signOut"),e[9]=s,e[10]=c):c=e[10];let m;e[11]!==c?(m=t.jsxs(M,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(O,{children:t.jsx(L,{className:"gap-0.5",children:t.jsx(I,{children:t.jsxs(R,{onClick:$e,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:c})]})})})})]}),e[11]=c,e[12]=m):m=e[12];let f;e[13]!==l||e[14]!==m?(f=t.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,m]}),e[13]=l,e[14]=m,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.166.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.166.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 +1 @@
1
- import{c as v,m as N,j as r,r as S}from"./index-C5z96HUa.js";import{C as w}from"./card-D9wL9dTh.js";import{i as E}from"./ArrowUpRight-BDWcfY0c.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-B1INhWoo.js";import{C as w}from"./card-F2SMEUTI.js";import{i as E}from"./ArrowUpRight-Cc2KMNxL.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-C5z96HUa.js";import{u as d,m as h,p as S,q as x}from"./sidebar-CqFJJsn_.js";import{i as g}from"./LayoutLeft-i2g0QuKY.js";import{T as j}from"./toolbar-iFmi5hLl.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-B1INhWoo.js";import{u as d,m as h,p as S,q as x}from"./sidebar-DD3SRmGs.js";import{i as g}from"./LayoutLeft-BV4kR0Cl.js";import{T as j}from"./toolbar-xTOW3jV5.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 P,b as U,e as ne,j as n,B as $,t as te,bX as ee,y as ke,a as Z,w as Fe,x as Ne,K as ce,bY as qe,bZ as Be,G as X,m as ue,r as B,n as re,av as he,v as Ue,b_ as He,p as pe,b$ as Je,c0 as Ke,d as Ge,F as We,f as Ae,u as Ve,J as Qe,b2 as Ye,c1 as Xe,c2 as ye,c3 as Ze,c4 as et,S as tt,O as nt,c5 as st}from"./index-C5z96HUa.js";import{A as de}from"./avatar-CTumFCbj.js";import{t as _e,a as ot}from"./Users03-B6z_0qm4.js";import{i as it}from"./SearchLg-01k2H3ZU.js";import{i as at,s as rt,a as H,n as lt}from"./Stars02-CS8WQJ6g.js";import{s as ct}from"./XClose-D6-r04ej.js";import{D as dt,s as ut,A as mt}from"./tab-id-C4ltBuCa.js";import{i as K}from"./CheckCircle-BRfhpwch.js";import{i as ft}from"./CpuChip01-CSPqCMu_.js";import{i as xe}from"./FilterLines-1XQzY6ly.js";import{i as gt}from"./Monitor01-DzTNjVje.js";import{i as G}from"./Zap-BjF8Jp4Q.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as ht,c as pt}from"./dialog-BAq0LYoh.js";import{u as yt}from"./use-is-desktop-app-BNujXJc_.js";import{R as xt}from"./required-auth-layout-DKB0DSoW.js";import{a as be,m as bt,S as wt}from"./use-mcp-client-BYtR6Aj1.js";import{c as St}from"./hooks-BjnWnySg.js";import{g as vt}from"./use-organization-settings-UbVLVwZl.js";import{u as jt}from"./use-org-sso-DhnjOsdB.js";function kt(t){const e=P.c(49),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=U();let o;e[0]!==a||e[1]!==i?(o=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await k.json();if(!k.ok||!O.success)throw new Error(O.error??i("common.autoDomainJoinScreen.joinError"));return O},e[0]=a,e[1]=i,e[2]=o):o=e[2];let d;e[3]!==a?(d=k=>{window.location.href=`/${k.slug??a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==i?(f=k=>{te.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==o||e[8]!==d||e[9]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[7]=o,e[8]=d,e[9]=f,e[10]=y):y=e[10];const c=ne(y),v=Nt;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let u;e[14]!==s||e[15]!==i?(u=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=u):u=e[16];let h;e[17]!==u?(h=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=h):h=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let x;e[22]!==g?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=x):x=e[23];let w;e[24]!==h||e[25]!==x?(w=n.jsxs("div",{className:"space-y-2",children:[h,x]}),e[24]=h,e[25]=x,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(S=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=S):S=e[32];let N;e[33]!==c.isPending||e[34]!==b||e[35]!==S?(N=n.jsx($,{onClick:b,disabled:c.isPending,children:S}),e[33]=c.isPending,e[34]=b,e[35]=S,e[36]=N):N=e[36];const j=c.isPending;let A;e[37]!==i?(A=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=A):A=e[38];let p;e[39]!==c.isPending||e[40]!==A?(p=n.jsx($,{variant:"ghost",onClick:v,disabled:j,children:A}),e[39]=c.isPending,e[40]=A,e[41]=p):p=e[41];let T;e[42]!==N||e[43]!==p?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,p]}),e[42]=N,e[43]=p,e[44]=T):T=e[44];let _;return e[45]!==w||e[46]!==T||e[47]!==m?(_=n.jsxs(ee,{children:[m,w,T]}),e[45]=w,e[46]=T,e[47]=m,e[48]=_):_=e[48],_}function Nt(){window.location.href="/"}function we(t){const e=P.c(25),{orgSlug:s,orgName:a,reason:l}=t,r=U(),i=At,o=l==="not-found",d=o?it:ke;let f;e[0]!==o||e[1]!==r?(f=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=f):f=e[2];const y=f;let c;e[3]!==o||e[4]!==a||e[5]!==s||e[6]!==r?(c=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=a,e[5]=s,e[6]=r,e[7]=c):c=e[7];const v=c;let m;e[8]!==d?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=m):m=e[9];let u;e[10]!==y?(u=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[10]=y,e[11]=u):u=e[11];let h;e[12]!==v?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[12]=v,e[13]=h):h=e[13];let g;e[14]!==u||e[15]!==h?(g=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[14]=u,e[15]=h,e[16]=g):g=e[16];let x;e[17]!==r?(x=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=x):x=e[18];let w;e[19]!==x?(w=n.jsx($,{onClick:i,children:x}),e[19]=x,e[20]=w):w=e[20];let b;return e[21]!==m||e[22]!==g||e[23]!==w?(b=n.jsxs(ee,{children:[m,g,w]}),e[21]=m,e[22]=g,e[23]=w,e[24]=b):b=e[24],b}function At(){window.location.href="/"}function _t(t){const e=P.c(59),{invitationId:s,orgName:a,orgSlug:l,orgLogo:r}=t,i=U();let o;e[0]!==s?(o=async()=>{const E=await Z.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let d;e[2]!==l?(d=()=>{Fe(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let f;e[4]!==i?(f=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let y;e[6]!==o||e[7]!==d||e[8]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[6]=o,e[7]=d,e[8]=f,e[9]=y):y=e[9];const c=ne(y);let v;e[10]!==s?(v=async()=>{const E=await Z.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=v):v=e[11];let m,u;e[12]!==i?(m=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=m,e[14]=u):(m=e[13],u=e[14]);let h;e[15]!==v||e[16]!==m||e[17]!==u?(h={mutationFn:v,onSuccess:m,onError:u},e[15]=v,e[16]=m,e[17]=u,e[18]=h):h=e[18];const g=ne(h),x=c.isPending||g.isPending;let w;e[19]!==r||e[20]!==a?(w=r?n.jsx(de,{url:r,fallback:a.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(at,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=w):w=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let N;e[27]!==i?(N=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let A;e[31]!==S||e[32]!==j?(A=n.jsxs("div",{className:"space-y-2",children:[S,j]}),e[31]=S,e[32]=j,e[33]=A):A=e[33];let p;e[34]!==c?(p=()=>c.mutate(),e[34]=c,e[35]=p):p=e[35];let T;e[36]!==c.isPending||e[37]!==i?(T=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=T):T=e[38];let _;e[39]!==x||e[40]!==p||e[41]!==T?(_=n.jsx($,{onClick:p,disabled:x,children:T}),e[39]=x,e[40]=p,e[41]=T,e[42]=_):_=e[42];let k;e[43]!==g?(k=()=>g.mutate(),e[43]=g,e[44]=k):k=e[44];let O;e[45]!==g.isPending||e[46]!==i?(O=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=O):O=e[47];let L;e[48]!==x||e[49]!==k||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:k,disabled:x,children:O}),e[48]=x,e[49]=k,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==_||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,L]}),e[52]=_,e[53]=L,e[54]=C):C=e[54];let I;return e[55]!==A||e[56]!==C||e[57]!==w?(I=n.jsxs(ee,{children:[w,A,C]}),e[55]=A,e[56]=C,e[57]=w,e[58]=I):I=e[58],I}function Tt(t){const e=P.c(23),{orgName:s,orgLogo:a}=t,l=U();let r;e[0]!==a||e[1]!==s?(r=a?n.jsx(de,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(rt,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==l?(i=l("common.requestPendingScreen.title"),e[3]=l,e[4]=i):i=e[4];let o;e[5]!==i?(o=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=o):o=e[6];let d;e[7]!==s||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=d):d=e[9];let f;e[10]!==d?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let y;e[12]!==o||e[13]!==f?(y=n.jsxs("div",{className:"space-y-2",children:[o,f]}),e[12]=o,e[13]=f,e[14]=y):y=e[14];let c;e[15]!==l?(c=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=c):c=e[16];let v;e[17]!==c?(v=n.jsx($,{variant:"ghost",onClick:Ot,children:c}),e[17]=c,e[18]=v):v=e[18];let m;return e[19]!==r||e[20]!==y||e[21]!==v?(m=n.jsxs(ee,{children:[r,y,v]}),e[19]=r,e[20]=y,e[21]=v,e[22]=m):m=e[22],m}function Ot(){window.location.href="/"}function Ct(t){const e=P.c(45),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=U();let o;e[0]!==a?(o=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=a,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Lt,e[2]=d):d=e[2];let f;e[3]!==i?(f=_=>{te.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let y;e[5]!==o||e[6]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[5]=o,e[6]=f,e[7]=y):y=e[7];const c=ne(y);let v;e[8]!==l||e[9]!==s?(v=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=v):v=e[10];let m;e[11]!==s||e[12]!==i?(m=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=m):m=e[13];let u;e[14]!==m?(u=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r||e[17]!==i?(h=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=h):h=e[18];let g;e[19]!==h?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=g):g=e[20];let x;e[21]!==u||e[22]!==g?(x=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[21]=u,e[22]=g,e[23]=x):x=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==i?(b=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(S=n.jsx($,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=S):S=e[32];const N=c.isPending;let j;e[33]!==i?(j=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=j):j=e[34];let A;e[35]!==c.isPending||e[36]!==j?(A=n.jsx($,{variant:"ghost",onClick:Et,disabled:N,children:j}),e[35]=c.isPending,e[36]=j,e[37]=A):A=e[37];let p;e[38]!==S||e[39]!==A?(p=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,A]}),e[38]=S,e[39]=A,e[40]=p):p=e[40];let T;return e[41]!==x||e[42]!==p||e[43]!==v?(T=n.jsxs(ee,{children:[v,x,p]}),e[41]=x,e[42]=p,e[43]=v,e[44]=T):T=e[44],T}function Et(){window.location.href="/"}function Lt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Dt(t){const e=P.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let l;return e[4]!==s||e[5]!==a?(l={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=l):l=e[6],Ne(l)}function It({orgSlug:t}){const{data:e}=Dt(t);if(e.status!=="member"){qe()?.org===t&&Be();const s=localStorage.getItem(X.lastOrgSlug())===t;if(s&&localStorage.removeItem(X.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(_t,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(kt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ct,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Tt,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=P.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:l,title:r,description:i,icon:o,children:d,footerLeading:f,actions:y,onDismiss:c,tone:v}=t,m=v===void 0?"neutral":v,u=f||y;let h;e[0]!==m?(h=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=h):h=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ct,{size:14}),e[2]=g):g=e[2];let x;e[3]!==a||e[4]!==c?(x=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:g}),e[3]=a,e[4]=c,e[5]=x):x=e[5];const w=o&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==w||e[7]!==b?(S=ue("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=S):S=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let A;e[13]!==r?(A=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=A):A=e[14];let p;e[15]!==i?(p=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=p):p=e[16];let T;e[17]!==A||e[18]!==p||e[19]!==j?(T=n.jsxs("div",{children:[j,A,p]}),e[17]=A,e[18]=p,e[19]=j,e[20]=T):T=e[20];let _;e[21]!==d?(_=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let k;e[23]!==T||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]}),e[23]=T,e[24]=_,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==S||e[28]!==N?(O=n.jsxs("div",{className:S,children:[N,k]}),e[26]=k,e[27]=S,e[28]=N,e[29]=O):O=e[29];let L;e[30]!==y||e[31]!==f||e[32]!==u||e[33]!==m?(L=u&&n.jsxs("div",{className:ue("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=u,e[33]=m,e[34]=L):L=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==L||e[38]!==h||e[39]!==x||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,x,O,L]}),e[35]=s,e[36]=O,e[37]=L,e[38]=h,e[39]=x,e[40]=m,e[41]=C):C=e[41],C}const Pt=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:H,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:ft,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:gt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:H,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:H,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:H,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:H,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:H,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:H,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ot,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:H,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:H,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:lt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],De=Pt,le="studio.release-feed.v1",me=new Set;let W="",V={},fe=!1;function $t(){if(fe)return W||"{}";try{return localStorage.getItem(le)??"{}"}catch{return W||"{}"}}function Ie(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=$t();return t!==W&&(W=t,V=Ie(t)),V}function zt(t){me.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const a=localStorage.getItem(le)??"{}",r={...Ie(a),...V};V=r,W=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{me.delete(t),window.removeEventListener("storage",e)}}function Mt(t){V=t,W=JSON.stringify(t);try{localStorage.setItem(le,W),fe=!1}catch{fe=!0}me.forEach(e=>e())}function Rt(){const t=P.c(7),e=B.useSyncExternalStore(zt,Se,Se);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,l=Ft;let r;t[2]!==e?(r=De.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let o;return t[4]!==a||t[5]!==i?(o={isSeen:a,markSeen:l,unseenCount:i},t[4]=a,t[5]=i,t[6]=o):o=t[6],o}function Ft(t){V[t]||Mt({...V,[t]:{seenAt:new Date().toISOString()}})}const qt=720*60*60*1e3,Bt=10080*60*1e3;function Ut(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function Ht(t){const e=De[0];if(!e)return null;const s=Ut(e.date),a=t-s;return a<0||a>qt?null:e}function Jt(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 Kt(t,e){const s=Jt(t);return s===null?!1:e-s>=Bt}function Gt(){const t=P.c(41),e=U(),{data:s}=Z.useSession(),{isSeen:a,markSeen:l}=Rt(),[r,i]=B.useState(!1);let o,d,f;if(t[0]!==a||t[1]!==s?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Ht(j),!o){f=null;break e}if(!Kt(s?.user?.createdAt,j)){f=null;break e}d=a(o.id)}t[0]=a,t[1]=s?.user?.createdAt,t[2]=o,t[3]=d,t[4]=f}else o=t[2],d=t[3],f=t[4];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(d)return null;let y;t[5]!==e?(y=e("announcements.release.ariaLabel"),t[5]=e,t[6]=y):y=t[6];let c;t[7]!==e?(c=e("announcements.release.dismiss"),t[7]=e,t[8]=c):c=t[8];const v=o.eyebrow,m=o.title;let u;t[9]!==o.id||t[10]!==l?(u=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=u):u=t[11];let h;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(h=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=h):h=t[16];let g;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(g=o.cta?"href"in o.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx($,{size:"sm",onClick:()=>i(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=g):g=t[20];let x;t[21]!==o.bullets?(x=o.bullets.map(Wt),t[21]=o.bullets,t[22]=x):x=t[22];let w;t[23]!==x?(w=n.jsx("ul",{className:"flex flex-col gap-3",children:x}),t[23]=x,t[24]=w):w=t[24];let b;t[25]!==o.id||t[26]!==l?(b=j=>{i(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=b):b=t[27];let S;t[28]!==r||t[29]!==b?(S=n.jsx(dt,{open:r,onOpenChange:b}),t[28]=r,t[29]=b,t[30]=S):S=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==w||t[34]!==S||t[35]!==y||t[36]!==c||t[37]!==u||t[38]!==h||t[39]!==g?(N=n.jsxs(Le,{ariaLabel:y,dismissLabel:c,eyebrow:v,title:m,onDismiss:u,footerLeading:h,actions:g,children:[w,S]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=w,t[34]=S,t[35]=y,t[36]=c,t[37]=u,t[38]=h,t[39]=g,t[40]=N):N=t[40],N}function Wt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Pe=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=Pe?"⌘":"Ctrl",R={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"}},Vt=[{label:"General",shortcuts:[R.keyboardShortcuts,R.back,R.newTask,R.toggleDaemon]},{label:"Editor",shortcuts:[R.saveAndFormat]},{label:"Chat",shortcuts:[R.focusChatInput,R.togglePlanMode,R.sendMessage,R.newLine]},{label:"Questions",shortcuts:[R.selectOption]},{label:"Monitoring",shortcuts:[R.applyFilter]}];function ve(t){return Pe?t.metaKey:t.ctrlKey}function Qt(t){const e=P.c(11),{open:s,onOpenChange:a}=t,l=U();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=i):i=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Vt.map(Yt)}),e[4]=o):o=e[4];let d;e[5]!==i?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[i,o]}),e[5]=i,e[6]=d):d=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==d?(f=n.jsx(Ee,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function Yt(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Xt)})]},t.label)}function Xt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Zt)})]},t.description)}function Zt(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 en=300*1e3,tn=2;function nn(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function sn(t,e){return t.count>=tn&&t.version!==null&&t.version!==e}function on(){const t=P.c(43),e=U(),s=yt();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={mutationFn:rn},t[0]=a):a=t[0];const l=ne(a);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:ce.appVersionCheck(),queryFn:an,refetchInterval:en,refetchIntervalInBackground:!0,staleTime:0},t[1]=r):r=t[1];const{data:i,dataUpdatedAt:o}=re(r),[d,f]=B.useState(0);let y;t[2]===Symbol.for("react.memo_cache_sentinel")?(y={version:null,count:0},t[2]=y):y=t[2];const[c,v]=B.useState(y);o!==d&&(f(o),v(F=>nn(F,i,"4.166.0")));const[m,u]=B.useState(null),h=s;let g;t[3]!==s||t[4]!==l?(g=()=>window.location.reload(),t[3]=s,t[4]=l,t[5]=g):g=t[5];const x=g,w="announcements.version.refresh";if(!sn(c,m))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let S;t[8]!==e?(S=e("announcements.version.dismiss"),t[8]=e,t[9]=S):S=t[9];let N;t[10]!==e?(N=e("announcements.version.eyebrow"),t[10]=e,t[11]=N):N=t[11];let j;t[12]!==e?(j=e("announcements.version.title"),t[12]=e,t[13]=j):j=t[13];const A="announcements.version.description";let p;t[14]!==e||t[15]!==A?(p=e(A),t[14]=e,t[15]=A,t[16]=p):p=t[16];let T;t[17]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{size:16}),t[17]=T):T=t[17];let _;t[18]!==c.version?(_=()=>u(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.166.0"}),t[20]=e,t[21]=k):k=t[21];let O;t[22]!==w||t[23]!==e?(O=e(w),t[22]=w,t[23]=e,t[24]=O):O=t[24];const L=h;let C;t[25]!==L?(C=ue(L),t[25]=L,t[26]=C):C=t[26];let I;t[27]!==C?(I=n.jsx(he,{size:14,className:C}),t[27]=C,t[28]=I):I=t[28];let E;t[29]!==x||t[30]!==h||t[31]!==O||t[32]!==I?(E=n.jsxs($,{size:"sm",disabled:h,onClick:x,children:[O,I]}),t[29]=x,t[30]=h,t[31]=O,t[32]=I,t[33]=E):E=t[33];let M;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==b||t[38]!==S||t[39]!==N||t[40]!==j||t[41]!==p?(M=n.jsx(Le,{ariaLabel:b,dismissLabel:S,eyebrow:N,title:j,description:p,icon:T,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=b,t[38]=S,t[39]=N,t[40]=j,t[41]=p,t[42]=M):M=t[42],M}async function an(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function rn(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function ln(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const cn=Date.parse("2026-07-21T00:00:00Z"),je=t=>ln(X.ptBrAnnouncementSeen(t));function dn(){const t=P.c(35),e=U(),[s,a]=Ue(),{data:l,isPending:r}=Z.useSession(),i=l?.user,o=i?.id,d=i?.createdAt,f=d!=null&&new Date(d).getTime()<cn,y=He()==="pt-BR",c=!r&&!!o&&f&&y&&s.language==="en"&&!je(o).has(),[v,m]=B.useState(!1),[u,h]=B.useState(!1);!v&&!r&&(m(!0),c&&o&&(je(o).mark(),a(mn),h(!0),pe("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=q=>{pe("pt_br_auto_switch_closed",{action:q}),h(!1)},t[0]=g):g=t[0];const x=g;let w;t[1]!==a?(w=()=>{a(un),x("switch-back")},t[1]=a,t[2]=w):w=t[2];const b=w;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=q=>!q&&x("dismiss"),t[3]=S):S=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let A;t[7]!==j?(A=n.jsx(Oe,{children:j}),t[7]=j,t[8]=A):A=t[8];let p;t[9]!==e?(p=e("announcements.ptBr.description"),t[9]=e,t[10]=p):p=t[10];let T;t[11]!==p?(T=n.jsx(ht,{children:p}),t[11]=p,t[12]=T):T=t[12];let _;t[13]!==A||t[14]!==T?(_=n.jsxs(Te,{children:[A,T]}),t[13]=A,t[14]=T,t[15]=_):_=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let O;t[18]!==b||t[19]!==k?(O=n.jsx($,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>x("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let I;t[24]!==C?(I=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=I):I=t[25];let E;t[26]!==O||t[27]!==I?(E=n.jsxs(pt,{children:[O,I]}),t[26]=O,t[27]=I,t[28]=E):E=t[28];let M;t[29]!==E||t[30]!==_?(M=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,_,E]}),t[29]=E,t[30]=_,t[31]=M):M=t[31];let F;return t[32]!==u||t[33]!==M?(F=n.jsx(Ee,{open:u,onOpenChange:S,children:M}),t[32]=u,t[33]=M,t[34]=F):F=t[34],F}function un(t){return{...t,language:"en"}}function mn(t){return{...t,language:"pt-BR"}}function fn({activeOrg:t}){return t&&(Je(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Ke()),null}function gn(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:l,opts:r,autosendValue:i}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(s??d)!==d;let c;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(c=l.sidepanel);else if(!y){const v=e.main;v&&typeof v=="string"&&!ut(v)&&(o.main=v)}return c!==void 0&&(o.sidepanel=c),r?.autosend&&(o.autosend=i),o}const $e="studio:thread-layout:v1",hn=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 pn(t,e,s,a=hn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>a;)l.shift();return l}function ge(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Me(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function yn(t,e){t&&Me(pn(ge(),t,e))}function xn(t){if(!t)return null;const e=ge().find(([s])=>s===t);return e?ze(e[1]):null}function Jn(t){if(!t)return;const e=ge(),s=e.filter(([a])=>a!==t);s.length!==e.length&&Me(s)}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 Kn(t){const e=P.c(10);let s;e[0]!==t?(s=Re(t),e[0]=t,e[1]=s):s=e[1];const a=re(s);let l;e[2]!==a.data?.prompts?(l=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==l||e[8]!==r?(i={isLoading:a.isLoading,prompts:l,tiles:r},e[6]=a.isLoading,e[7]=l,e[8]=r,e[9]=i):i=e[9],i}function bn(t){const e=P.c(31),{orgSlug:s,orgName:a,domain:l}=t,r=U();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const o=i,d=wn;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let c;e[5]!==y?(c=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=c):c=e[6];let v;e[7]!==l||e[8]!==a||e[9]!==r?(v=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=a,e[9]=r,e[10]=v):v=e[10];let m;e[11]!==v?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[11]=v,e[12]=m):m=e[12];let u;e[13]!==c||e[14]!==m?(u=n.jsxs("div",{className:"space-y-2",children:[c,m]}),e[13]=c,e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let g;e[18]!==o||e[19]!==h?(g=n.jsx($,{onClick:o,children:h}),e[18]=o,e[19]=h,e[20]=g):g=e[20];let x;e[21]!==r?(x=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=x):x=e[22];let w;e[23]!==x?(w=n.jsx($,{variant:"ghost",onClick:d,children:x}),e[23]=x,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==g?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,w]}),e[25]=w,e[26]=g,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==u?(S=n.jsxs(ee,{children:[f,u,b]}),e[28]=b,e[29]=u,e[30]=S):S=e[30],S}function wn(){window.location.href="/"}function Sn(t){const e=P.c(8),{org:s,children:a}=t,r=vt(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=i):i=e[3];const o=i;let d;return e[4]!==a||e[5]!==s||e[6]!==o?(d=n.jsx(st,{org:s,project:o,children:a}),e[4]=a,e[5]=s,e[6]=o,e[7]=d):d=e[7],d}function vn(){const t=Ge(),e=St(),{org:s}=We(),a=Ae({strict:!1}),l=Ve({strict:!1}),r=a.org??"",i=a.taskId??"",o=(m,u,h=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:u,replace:h}),d=(m,u=!0)=>o(i,m,u),f=m=>d(u=>({...u,sidepanel:m})),y=(m,u,h)=>{const g=!!i&&i===m;i&&!g&&yn(i,{main:l.main,sidepanel:l.sidepanel});const x=g?null:xn(m),w=be(s.id).id;return o(m,b=>gn({prev:b,virtualMcpId:u,decopilotId:w,savedLayout:x,opts:h,autosendValue:mt}),!1)};return{openSidePanel:f,setTaskId:y,createNewTask:async(m,u)=>{const h=crypto.randomUUID(),g=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:h,virtual_mcp_id:g,...u?{branch:u}:{}})}catch{}y(h,g)},openTab:m=>o(i||crypto.randomUUID(),u=>({...u,main:m}))}}function jn(){const t=P.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Qe(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[i,o]=B.useState(!1),d=Ye(),f=a??"";let y;t[2]!==f?(y=Re(f),t[2]=f,t[3]=y):y=t[3];const c=!!a&&!r;let v;t[4]!==y||t[5]!==c?(v={...y,enabled:c},t[4]=y,t[5]=c,t[6]=v):v=t[6],re(v);const{data:m}=Z.useSession(),u=m?.user?.id;let h;t[7]!==a||t[8]!==u?(h=a&&u?Xe(u,a):null,t[7]=a,t[8]=u,t[9]=h):h=t[9];const g=h;let x,w;t[10]!==d?(x=()=>{const D=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},w=[d],t[10]=d,t[11]=x,t[12]=w):(x=t[11],w=t[12]),B.useEffect(x,w);let b;t[13]!==a?(b=ce.activeOrganization(a),t[13]=a,t[14]=b):b=t[14];let S;t[15]!==a||t[16]!==u?(S=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:D}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(kn),z=ye(D);return D&&!z&&localStorage.setItem(X.lastOrgSlug(),a),u&&D&&et(u,a,D),D},t[15]=a,t[16]=u,t[17]=S):S=t[17];const N=g?g.data:void 0,j=g?.updatedAt;let A;t[18]!==S||t[19]!==N||t[20]!==j||t[21]!==b?(A={queryKey:b,queryFn:S,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=S,t[19]=N,t[20]=j,t[21]=b,t[22]=A):A=t[22];const{data:p}=Ne(A),T=p?.id,_=p?.slug,{data:k}=jt(T,_),O=T??"",L=_??"";let C;t[23]!==O||t[24]!==L?(C=bt({connectionId:wt,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const I=!!T&&!!_;let E;if(t[26]!==C||t[27]!==I?(E={...C,enabled:I},t[26]=C,t[27]=I,t[28]=E):E=t[28],re(E),!p){let D;t[29]===Symbol.for("react.memo_cache_sentinel")?(D=n.jsx(tt,{}),t[29]=D):D=t[29];let z;return t[30]!==a?(z=n.jsx(B.Suspense,{fallback:D,children:n.jsx(It,{orgSlug:a})}),t[30]=a,t[31]=z):z=t[31],z}if(ye(p)){localStorage.getItem(X.lastOrgSlug())===a&&localStorage.removeItem(X.lastOrgSlug());let D;return t[32]!==p.name?(D=n.jsx(Ze,{orgName:p.name}),t[32]=p.name,t[33]=D):D=t[33],D}if(k?.ssoRequired&&!k.authenticated){let D;return t[34]!==p.id||t[35]!==p.name||t[36]!==p.slug||t[37]!==k.domain?(D=n.jsx(bn,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:k.domain}),t[34]=p.id,t[35]=p.name,t[36]=p.slug,t[37]=k.domain,t[38]=D):D=t[38],D}const F=p.logo??null;let q;t[39]!==p||t[40]!==F?(q={...p,logo:F},t[39]=p,t[40]=F,t[41]=q):q=t[41];let Q;t[42]!==p?(Q=n.jsx(fn,{activeOrg:p}),t[42]=p,t[43]=Q):Q=t[43];let se;t[44]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(nt,{}),t[44]=se):se=t[44];let oe;t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Gt,{}),n.jsx(on,{})]}),t[45]=oe):oe=t[45];let Y;t[46]!==i?(Y=n.jsx(Qt,{open:i,onOpenChange:o}),t[46]=i,t[47]=Y):Y=t[47];let ie;t[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(dn,{}),t[48]=ie):ie=t[48];let ae;return t[49]!==q||t[50]!==Q||t[51]!==Y?(ae=n.jsxs(Sn,{org:q,children:[Q,se,oe,Y,ie]}),t[49]=q,t[50]=Q,t[51]=Y,t[52]=ae):ae=t[52],ae}function kn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Nn(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(xt,{children:n.jsx(jn,{})}),t[0]=e):e=t[0],e}const Gn=Object.freeze(Object.defineProperty({__proto__:null,default:Nn,usePanelActions:vn},Symbol.toStringTag,{value:"Module"}));export{R as K,Kn as a,Jn as f,ve as i,ln as m,Gn as s,vn as u};
1
+ import{c as P,b as U,e as ne,j as n,B as $,t as te,bX as ee,y as ke,a as Z,w as Fe,x as Ne,K as ce,bY as qe,bZ as Be,G as X,m as ue,r as B,n as re,av as he,v as Ue,b_ as He,p as pe,b$ as Je,c0 as Ke,d as Ge,F as We,f as Ae,u as Ve,J as Qe,b2 as Ye,c1 as Xe,c2 as ye,c3 as Ze,c4 as et,S as tt,O as nt,c5 as st}from"./index-B1INhWoo.js";import{A as de}from"./avatar-D9ru8t7J.js";import{t as _e,a as ot}from"./Users03-BrSAA7CP.js";import{i as it}from"./SearchLg-UBODIUpH.js";import{i as at,s as rt,a as H,n as lt}from"./Stars02-D3Ts30Xu.js";import{s as ct}from"./XClose-DCuiifka.js";import{D as dt,s as ut,A as mt}from"./tab-id-8wArXECU.js";import{i as K}from"./CheckCircle-Cva3EkPV.js";import{i as ft}from"./CpuChip01-lsdcDtEC.js";import{i as xe}from"./FilterLines-BafoDeSJ.js";import{i as gt}from"./Monitor01-Ba7OYhMO.js";import{i as G}from"./Zap-fP1c7xXe.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as ht,c as pt}from"./dialog-1l6V_AO-.js";import{u as yt}from"./use-is-desktop-app-BNujXJc_.js";import{R as xt}from"./required-auth-layout-Cp2xOp41.js";import{a as be,m as bt,S as wt}from"./use-mcp-client-Cpe5VVFd.js";import{c as St}from"./hooks-D1TjgNd-.js";import{g as vt}from"./use-organization-settings-BxnffxCo.js";import{u as jt}from"./use-org-sso-BP9JFiDp.js";function kt(t){const e=P.c(49),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=U();let o;e[0]!==a||e[1]!==i?(o=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await k.json();if(!k.ok||!O.success)throw new Error(O.error??i("common.autoDomainJoinScreen.joinError"));return O},e[0]=a,e[1]=i,e[2]=o):o=e[2];let d;e[3]!==a?(d=k=>{window.location.href=`/${k.slug??a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==i?(f=k=>{te.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==o||e[8]!==d||e[9]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[7]=o,e[8]=d,e[9]=f,e[10]=y):y=e[10];const c=ne(y),v=Nt;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let u;e[14]!==s||e[15]!==i?(u=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=u):u=e[16];let h;e[17]!==u?(h=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=h):h=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let x;e[22]!==g?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=x):x=e[23];let w;e[24]!==h||e[25]!==x?(w=n.jsxs("div",{className:"space-y-2",children:[h,x]}),e[24]=h,e[25]=x,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(S=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=S):S=e[32];let N;e[33]!==c.isPending||e[34]!==b||e[35]!==S?(N=n.jsx($,{onClick:b,disabled:c.isPending,children:S}),e[33]=c.isPending,e[34]=b,e[35]=S,e[36]=N):N=e[36];const j=c.isPending;let A;e[37]!==i?(A=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=A):A=e[38];let p;e[39]!==c.isPending||e[40]!==A?(p=n.jsx($,{variant:"ghost",onClick:v,disabled:j,children:A}),e[39]=c.isPending,e[40]=A,e[41]=p):p=e[41];let T;e[42]!==N||e[43]!==p?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,p]}),e[42]=N,e[43]=p,e[44]=T):T=e[44];let _;return e[45]!==w||e[46]!==T||e[47]!==m?(_=n.jsxs(ee,{children:[m,w,T]}),e[45]=w,e[46]=T,e[47]=m,e[48]=_):_=e[48],_}function Nt(){window.location.href="/"}function we(t){const e=P.c(25),{orgSlug:s,orgName:a,reason:l}=t,r=U(),i=At,o=l==="not-found",d=o?it:ke;let f;e[0]!==o||e[1]!==r?(f=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=f):f=e[2];const y=f;let c;e[3]!==o||e[4]!==a||e[5]!==s||e[6]!==r?(c=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=a,e[5]=s,e[6]=r,e[7]=c):c=e[7];const v=c;let m;e[8]!==d?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=m):m=e[9];let u;e[10]!==y?(u=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[10]=y,e[11]=u):u=e[11];let h;e[12]!==v?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[12]=v,e[13]=h):h=e[13];let g;e[14]!==u||e[15]!==h?(g=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[14]=u,e[15]=h,e[16]=g):g=e[16];let x;e[17]!==r?(x=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=x):x=e[18];let w;e[19]!==x?(w=n.jsx($,{onClick:i,children:x}),e[19]=x,e[20]=w):w=e[20];let b;return e[21]!==m||e[22]!==g||e[23]!==w?(b=n.jsxs(ee,{children:[m,g,w]}),e[21]=m,e[22]=g,e[23]=w,e[24]=b):b=e[24],b}function At(){window.location.href="/"}function _t(t){const e=P.c(59),{invitationId:s,orgName:a,orgSlug:l,orgLogo:r}=t,i=U();let o;e[0]!==s?(o=async()=>{const E=await Z.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let d;e[2]!==l?(d=()=>{Fe(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let f;e[4]!==i?(f=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let y;e[6]!==o||e[7]!==d||e[8]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[6]=o,e[7]=d,e[8]=f,e[9]=y):y=e[9];const c=ne(y);let v;e[10]!==s?(v=async()=>{const E=await Z.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=v):v=e[11];let m,u;e[12]!==i?(m=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=E=>{te.error(E instanceof Error?E.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=m,e[14]=u):(m=e[13],u=e[14]);let h;e[15]!==v||e[16]!==m||e[17]!==u?(h={mutationFn:v,onSuccess:m,onError:u},e[15]=v,e[16]=m,e[17]=u,e[18]=h):h=e[18];const g=ne(h),x=c.isPending||g.isPending;let w;e[19]!==r||e[20]!==a?(w=r?n.jsx(de,{url:r,fallback:a.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(at,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=w):w=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let N;e[27]!==i?(N=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let A;e[31]!==S||e[32]!==j?(A=n.jsxs("div",{className:"space-y-2",children:[S,j]}),e[31]=S,e[32]=j,e[33]=A):A=e[33];let p;e[34]!==c?(p=()=>c.mutate(),e[34]=c,e[35]=p):p=e[35];let T;e[36]!==c.isPending||e[37]!==i?(T=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=T):T=e[38];let _;e[39]!==x||e[40]!==p||e[41]!==T?(_=n.jsx($,{onClick:p,disabled:x,children:T}),e[39]=x,e[40]=p,e[41]=T,e[42]=_):_=e[42];let k;e[43]!==g?(k=()=>g.mutate(),e[43]=g,e[44]=k):k=e[44];let O;e[45]!==g.isPending||e[46]!==i?(O=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=O):O=e[47];let L;e[48]!==x||e[49]!==k||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:k,disabled:x,children:O}),e[48]=x,e[49]=k,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==_||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,L]}),e[52]=_,e[53]=L,e[54]=C):C=e[54];let I;return e[55]!==A||e[56]!==C||e[57]!==w?(I=n.jsxs(ee,{children:[w,A,C]}),e[55]=A,e[56]=C,e[57]=w,e[58]=I):I=e[58],I}function Tt(t){const e=P.c(23),{orgName:s,orgLogo:a}=t,l=U();let r;e[0]!==a||e[1]!==s?(r=a?n.jsx(de,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(rt,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==l?(i=l("common.requestPendingScreen.title"),e[3]=l,e[4]=i):i=e[4];let o;e[5]!==i?(o=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=o):o=e[6];let d;e[7]!==s||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=d):d=e[9];let f;e[10]!==d?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let y;e[12]!==o||e[13]!==f?(y=n.jsxs("div",{className:"space-y-2",children:[o,f]}),e[12]=o,e[13]=f,e[14]=y):y=e[14];let c;e[15]!==l?(c=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=c):c=e[16];let v;e[17]!==c?(v=n.jsx($,{variant:"ghost",onClick:Ot,children:c}),e[17]=c,e[18]=v):v=e[18];let m;return e[19]!==r||e[20]!==y||e[21]!==v?(m=n.jsxs(ee,{children:[r,y,v]}),e[19]=r,e[20]=y,e[21]=v,e[22]=m):m=e[22],m}function Ot(){window.location.href="/"}function Ct(t){const e=P.c(45),{orgName:s,orgSlug:a,orgLogo:l,domain:r}=t,i=U();let o;e[0]!==a?(o=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=a,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Lt,e[2]=d):d=e[2];let f;e[3]!==i?(f=_=>{te.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let y;e[5]!==o||e[6]!==f?(y={mutationFn:o,onSuccess:d,onError:f},e[5]=o,e[6]=f,e[7]=y):y=e[7];const c=ne(y);let v;e[8]!==l||e[9]!==s?(v=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=v):v=e[10];let m;e[11]!==s||e[12]!==i?(m=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=m):m=e[13];let u;e[14]!==m?(u=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r||e[17]!==i?(h=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=h):h=e[18];let g;e[19]!==h?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=g):g=e[20];let x;e[21]!==u||e[22]!==g?(x=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[21]=u,e[22]=g,e[23]=x):x=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==i?(b=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(S=n.jsx($,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=S):S=e[32];const N=c.isPending;let j;e[33]!==i?(j=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=j):j=e[34];let A;e[35]!==c.isPending||e[36]!==j?(A=n.jsx($,{variant:"ghost",onClick:Et,disabled:N,children:j}),e[35]=c.isPending,e[36]=j,e[37]=A):A=e[37];let p;e[38]!==S||e[39]!==A?(p=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,A]}),e[38]=S,e[39]=A,e[40]=p):p=e[40];let T;return e[41]!==x||e[42]!==p||e[43]!==v?(T=n.jsxs(ee,{children:[v,x,p]}),e[41]=x,e[42]=p,e[43]=v,e[44]=T):T=e[44],T}function Et(){window.location.href="/"}function Lt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Dt(t){const e=P.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let l;return e[4]!==s||e[5]!==a?(l={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=l):l=e[6],Ne(l)}function It({orgSlug:t}){const{data:e}=Dt(t);if(e.status!=="member"){qe()?.org===t&&Be();const s=localStorage.getItem(X.lastOrgSlug())===t;if(s&&localStorage.removeItem(X.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(_t,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(kt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ct,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Tt,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=P.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:l,title:r,description:i,icon:o,children:d,footerLeading:f,actions:y,onDismiss:c,tone:v}=t,m=v===void 0?"neutral":v,u=f||y;let h;e[0]!==m?(h=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=h):h=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ct,{size:14}),e[2]=g):g=e[2];let x;e[3]!==a||e[4]!==c?(x=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:g}),e[3]=a,e[4]=c,e[5]=x):x=e[5];const w=o&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==w||e[7]!==b?(S=ue("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=S):S=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let A;e[13]!==r?(A=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=A):A=e[14];let p;e[15]!==i?(p=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=p):p=e[16];let T;e[17]!==A||e[18]!==p||e[19]!==j?(T=n.jsxs("div",{children:[j,A,p]}),e[17]=A,e[18]=p,e[19]=j,e[20]=T):T=e[20];let _;e[21]!==d?(_=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let k;e[23]!==T||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]}),e[23]=T,e[24]=_,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==S||e[28]!==N?(O=n.jsxs("div",{className:S,children:[N,k]}),e[26]=k,e[27]=S,e[28]=N,e[29]=O):O=e[29];let L;e[30]!==y||e[31]!==f||e[32]!==u||e[33]!==m?(L=u&&n.jsxs("div",{className:ue("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=u,e[33]=m,e[34]=L):L=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==L||e[38]!==h||e[39]!==x||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,x,O,L]}),e[35]=s,e[36]=O,e[37]=L,e[38]=h,e[39]=x,e[40]=m,e[41]=C):C=e[41],C}const Pt=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:H,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:ft,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:gt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:H,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:H,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:H,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:H,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:H,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:H,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ot,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:H,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:H,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:lt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],De=Pt,le="studio.release-feed.v1",me=new Set;let W="",V={},fe=!1;function $t(){if(fe)return W||"{}";try{return localStorage.getItem(le)??"{}"}catch{return W||"{}"}}function Ie(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=$t();return t!==W&&(W=t,V=Ie(t)),V}function zt(t){me.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const a=localStorage.getItem(le)??"{}",r={...Ie(a),...V};V=r,W=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{me.delete(t),window.removeEventListener("storage",e)}}function Mt(t){V=t,W=JSON.stringify(t);try{localStorage.setItem(le,W),fe=!1}catch{fe=!0}me.forEach(e=>e())}function Rt(){const t=P.c(7),e=B.useSyncExternalStore(zt,Se,Se);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,l=Ft;let r;t[2]!==e?(r=De.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let o;return t[4]!==a||t[5]!==i?(o={isSeen:a,markSeen:l,unseenCount:i},t[4]=a,t[5]=i,t[6]=o):o=t[6],o}function Ft(t){V[t]||Mt({...V,[t]:{seenAt:new Date().toISOString()}})}const qt=720*60*60*1e3,Bt=10080*60*1e3;function Ut(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function Ht(t){const e=De[0];if(!e)return null;const s=Ut(e.date),a=t-s;return a<0||a>qt?null:e}function Jt(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 Kt(t,e){const s=Jt(t);return s===null?!1:e-s>=Bt}function Gt(){const t=P.c(41),e=U(),{data:s}=Z.useSession(),{isSeen:a,markSeen:l}=Rt(),[r,i]=B.useState(!1);let o,d,f;if(t[0]!==a||t[1]!==s?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Ht(j),!o){f=null;break e}if(!Kt(s?.user?.createdAt,j)){f=null;break e}d=a(o.id)}t[0]=a,t[1]=s?.user?.createdAt,t[2]=o,t[3]=d,t[4]=f}else o=t[2],d=t[3],f=t[4];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(d)return null;let y;t[5]!==e?(y=e("announcements.release.ariaLabel"),t[5]=e,t[6]=y):y=t[6];let c;t[7]!==e?(c=e("announcements.release.dismiss"),t[7]=e,t[8]=c):c=t[8];const v=o.eyebrow,m=o.title;let u;t[9]!==o.id||t[10]!==l?(u=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=u):u=t[11];let h;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(h=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=h):h=t[16];let g;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(g=o.cta?"href"in o.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx($,{size:"sm",onClick:()=>i(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=g):g=t[20];let x;t[21]!==o.bullets?(x=o.bullets.map(Wt),t[21]=o.bullets,t[22]=x):x=t[22];let w;t[23]!==x?(w=n.jsx("ul",{className:"flex flex-col gap-3",children:x}),t[23]=x,t[24]=w):w=t[24];let b;t[25]!==o.id||t[26]!==l?(b=j=>{i(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=b):b=t[27];let S;t[28]!==r||t[29]!==b?(S=n.jsx(dt,{open:r,onOpenChange:b}),t[28]=r,t[29]=b,t[30]=S):S=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==w||t[34]!==S||t[35]!==y||t[36]!==c||t[37]!==u||t[38]!==h||t[39]!==g?(N=n.jsxs(Le,{ariaLabel:y,dismissLabel:c,eyebrow:v,title:m,onDismiss:u,footerLeading:h,actions:g,children:[w,S]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=w,t[34]=S,t[35]=y,t[36]=c,t[37]=u,t[38]=h,t[39]=g,t[40]=N):N=t[40],N}function Wt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Pe=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=Pe?"⌘":"Ctrl",R={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"}},Vt=[{label:"General",shortcuts:[R.keyboardShortcuts,R.back,R.newTask,R.toggleDaemon]},{label:"Editor",shortcuts:[R.saveAndFormat]},{label:"Chat",shortcuts:[R.focusChatInput,R.togglePlanMode,R.sendMessage,R.newLine]},{label:"Questions",shortcuts:[R.selectOption]},{label:"Monitoring",shortcuts:[R.applyFilter]}];function ve(t){return Pe?t.metaKey:t.ctrlKey}function Qt(t){const e=P.c(11),{open:s,onOpenChange:a}=t,l=U();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=i):i=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Vt.map(Yt)}),e[4]=o):o=e[4];let d;e[5]!==i?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[i,o]}),e[5]=i,e[6]=d):d=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==d?(f=n.jsx(Ee,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function Yt(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Xt)})]},t.label)}function Xt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Zt)})]},t.description)}function Zt(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 en=300*1e3,tn=2;function nn(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function sn(t,e){return t.count>=tn&&t.version!==null&&t.version!==e}function on(){const t=P.c(43),e=U(),s=yt();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={mutationFn:rn},t[0]=a):a=t[0];const l=ne(a);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:ce.appVersionCheck(),queryFn:an,refetchInterval:en,refetchIntervalInBackground:!0,staleTime:0},t[1]=r):r=t[1];const{data:i,dataUpdatedAt:o}=re(r),[d,f]=B.useState(0);let y;t[2]===Symbol.for("react.memo_cache_sentinel")?(y={version:null,count:0},t[2]=y):y=t[2];const[c,v]=B.useState(y);o!==d&&(f(o),v(F=>nn(F,i,"4.166.2")));const[m,u]=B.useState(null),h=s;let g;t[3]!==s||t[4]!==l?(g=()=>window.location.reload(),t[3]=s,t[4]=l,t[5]=g):g=t[5];const x=g,w="announcements.version.refresh";if(!sn(c,m))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let S;t[8]!==e?(S=e("announcements.version.dismiss"),t[8]=e,t[9]=S):S=t[9];let N;t[10]!==e?(N=e("announcements.version.eyebrow"),t[10]=e,t[11]=N):N=t[11];let j;t[12]!==e?(j=e("announcements.version.title"),t[12]=e,t[13]=j):j=t[13];const A="announcements.version.description";let p;t[14]!==e||t[15]!==A?(p=e(A),t[14]=e,t[15]=A,t[16]=p):p=t[16];let T;t[17]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{size:16}),t[17]=T):T=t[17];let _;t[18]!==c.version?(_=()=>u(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.166.2"}),t[20]=e,t[21]=k):k=t[21];let O;t[22]!==w||t[23]!==e?(O=e(w),t[22]=w,t[23]=e,t[24]=O):O=t[24];const L=h;let C;t[25]!==L?(C=ue(L),t[25]=L,t[26]=C):C=t[26];let I;t[27]!==C?(I=n.jsx(he,{size:14,className:C}),t[27]=C,t[28]=I):I=t[28];let E;t[29]!==x||t[30]!==h||t[31]!==O||t[32]!==I?(E=n.jsxs($,{size:"sm",disabled:h,onClick:x,children:[O,I]}),t[29]=x,t[30]=h,t[31]=O,t[32]=I,t[33]=E):E=t[33];let M;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==b||t[38]!==S||t[39]!==N||t[40]!==j||t[41]!==p?(M=n.jsx(Le,{ariaLabel:b,dismissLabel:S,eyebrow:N,title:j,description:p,icon:T,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=b,t[38]=S,t[39]=N,t[40]=j,t[41]=p,t[42]=M):M=t[42],M}async function an(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function rn(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function ln(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const cn=Date.parse("2026-07-21T00:00:00Z"),je=t=>ln(X.ptBrAnnouncementSeen(t));function dn(){const t=P.c(35),e=U(),[s,a]=Ue(),{data:l,isPending:r}=Z.useSession(),i=l?.user,o=i?.id,d=i?.createdAt,f=d!=null&&new Date(d).getTime()<cn,y=He()==="pt-BR",c=!r&&!!o&&f&&y&&s.language==="en"&&!je(o).has(),[v,m]=B.useState(!1),[u,h]=B.useState(!1);!v&&!r&&(m(!0),c&&o&&(je(o).mark(),a(mn),h(!0),pe("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=q=>{pe("pt_br_auto_switch_closed",{action:q}),h(!1)},t[0]=g):g=t[0];const x=g;let w;t[1]!==a?(w=()=>{a(un),x("switch-back")},t[1]=a,t[2]=w):w=t[2];const b=w;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=q=>!q&&x("dismiss"),t[3]=S):S=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let A;t[7]!==j?(A=n.jsx(Oe,{children:j}),t[7]=j,t[8]=A):A=t[8];let p;t[9]!==e?(p=e("announcements.ptBr.description"),t[9]=e,t[10]=p):p=t[10];let T;t[11]!==p?(T=n.jsx(ht,{children:p}),t[11]=p,t[12]=T):T=t[12];let _;t[13]!==A||t[14]!==T?(_=n.jsxs(Te,{children:[A,T]}),t[13]=A,t[14]=T,t[15]=_):_=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let O;t[18]!==b||t[19]!==k?(O=n.jsx($,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>x("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let I;t[24]!==C?(I=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=I):I=t[25];let E;t[26]!==O||t[27]!==I?(E=n.jsxs(pt,{children:[O,I]}),t[26]=O,t[27]=I,t[28]=E):E=t[28];let M;t[29]!==E||t[30]!==_?(M=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,_,E]}),t[29]=E,t[30]=_,t[31]=M):M=t[31];let F;return t[32]!==u||t[33]!==M?(F=n.jsx(Ee,{open:u,onOpenChange:S,children:M}),t[32]=u,t[33]=M,t[34]=F):F=t[34],F}function un(t){return{...t,language:"en"}}function mn(t){return{...t,language:"pt-BR"}}function fn({activeOrg:t}){return t&&(Je(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Ke()),null}function gn(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:l,opts:r,autosendValue:i}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(s??d)!==d;let c;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(c=l.sidepanel);else if(!y){const v=e.main;v&&typeof v=="string"&&!ut(v)&&(o.main=v)}return c!==void 0&&(o.sidepanel=c),r?.autosend&&(o.autosend=i),o}const $e="studio:thread-layout:v1",hn=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 pn(t,e,s,a=hn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>a;)l.shift();return l}function ge(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Me(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function yn(t,e){t&&Me(pn(ge(),t,e))}function xn(t){if(!t)return null;const e=ge().find(([s])=>s===t);return e?ze(e[1]):null}function Jn(t){if(!t)return;const e=ge(),s=e.filter(([a])=>a!==t);s.length!==e.length&&Me(s)}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 Kn(t){const e=P.c(10);let s;e[0]!==t?(s=Re(t),e[0]=t,e[1]=s):s=e[1];const a=re(s);let l;e[2]!==a.data?.prompts?(l=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==l||e[8]!==r?(i={isLoading:a.isLoading,prompts:l,tiles:r},e[6]=a.isLoading,e[7]=l,e[8]=r,e[9]=i):i=e[9],i}function bn(t){const e=P.c(31),{orgSlug:s,orgName:a,domain:l}=t,r=U();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const o=i,d=wn;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let c;e[5]!==y?(c=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=c):c=e[6];let v;e[7]!==l||e[8]!==a||e[9]!==r?(v=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=a,e[9]=r,e[10]=v):v=e[10];let m;e[11]!==v?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[11]=v,e[12]=m):m=e[12];let u;e[13]!==c||e[14]!==m?(u=n.jsxs("div",{className:"space-y-2",children:[c,m]}),e[13]=c,e[14]=m,e[15]=u):u=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let g;e[18]!==o||e[19]!==h?(g=n.jsx($,{onClick:o,children:h}),e[18]=o,e[19]=h,e[20]=g):g=e[20];let x;e[21]!==r?(x=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=x):x=e[22];let w;e[23]!==x?(w=n.jsx($,{variant:"ghost",onClick:d,children:x}),e[23]=x,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==g?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,w]}),e[25]=w,e[26]=g,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==u?(S=n.jsxs(ee,{children:[f,u,b]}),e[28]=b,e[29]=u,e[30]=S):S=e[30],S}function wn(){window.location.href="/"}function Sn(t){const e=P.c(8),{org:s,children:a}=t,r=vt(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=i):i=e[3];const o=i;let d;return e[4]!==a||e[5]!==s||e[6]!==o?(d=n.jsx(st,{org:s,project:o,children:a}),e[4]=a,e[5]=s,e[6]=o,e[7]=d):d=e[7],d}function vn(){const t=Ge(),e=St(),{org:s}=We(),a=Ae({strict:!1}),l=Ve({strict:!1}),r=a.org??"",i=a.taskId??"",o=(m,u,h=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:u,replace:h}),d=(m,u=!0)=>o(i,m,u),f=m=>d(u=>({...u,sidepanel:m})),y=(m,u,h)=>{const g=!!i&&i===m;i&&!g&&yn(i,{main:l.main,sidepanel:l.sidepanel});const x=g?null:xn(m),w=be(s.id).id;return o(m,b=>gn({prev:b,virtualMcpId:u,decopilotId:w,savedLayout:x,opts:h,autosendValue:mt}),!1)};return{openSidePanel:f,setTaskId:y,createNewTask:async(m,u)=>{const h=crypto.randomUUID(),g=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:h,virtual_mcp_id:g,...u?{branch:u}:{}})}catch{}y(h,g)},openTab:m=>o(i||crypto.randomUUID(),u=>({...u,main:m}))}}function jn(){const t=P.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Qe(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[i,o]=B.useState(!1),d=Ye(),f=a??"";let y;t[2]!==f?(y=Re(f),t[2]=f,t[3]=y):y=t[3];const c=!!a&&!r;let v;t[4]!==y||t[5]!==c?(v={...y,enabled:c},t[4]=y,t[5]=c,t[6]=v):v=t[6],re(v);const{data:m}=Z.useSession(),u=m?.user?.id;let h;t[7]!==a||t[8]!==u?(h=a&&u?Xe(u,a):null,t[7]=a,t[8]=u,t[9]=h):h=t[9];const g=h;let x,w;t[10]!==d?(x=()=>{const D=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},w=[d],t[10]=d,t[11]=x,t[12]=w):(x=t[11],w=t[12]),B.useEffect(x,w);let b;t[13]!==a?(b=ce.activeOrganization(a),t[13]=a,t[14]=b):b=t[14];let S;t[15]!==a||t[16]!==u?(S=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:D}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(kn),z=ye(D);return D&&!z&&localStorage.setItem(X.lastOrgSlug(),a),u&&D&&et(u,a,D),D},t[15]=a,t[16]=u,t[17]=S):S=t[17];const N=g?g.data:void 0,j=g?.updatedAt;let A;t[18]!==S||t[19]!==N||t[20]!==j||t[21]!==b?(A={queryKey:b,queryFn:S,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=S,t[19]=N,t[20]=j,t[21]=b,t[22]=A):A=t[22];const{data:p}=Ne(A),T=p?.id,_=p?.slug,{data:k}=jt(T,_),O=T??"",L=_??"";let C;t[23]!==O||t[24]!==L?(C=bt({connectionId:wt,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const I=!!T&&!!_;let E;if(t[26]!==C||t[27]!==I?(E={...C,enabled:I},t[26]=C,t[27]=I,t[28]=E):E=t[28],re(E),!p){let D;t[29]===Symbol.for("react.memo_cache_sentinel")?(D=n.jsx(tt,{}),t[29]=D):D=t[29];let z;return t[30]!==a?(z=n.jsx(B.Suspense,{fallback:D,children:n.jsx(It,{orgSlug:a})}),t[30]=a,t[31]=z):z=t[31],z}if(ye(p)){localStorage.getItem(X.lastOrgSlug())===a&&localStorage.removeItem(X.lastOrgSlug());let D;return t[32]!==p.name?(D=n.jsx(Ze,{orgName:p.name}),t[32]=p.name,t[33]=D):D=t[33],D}if(k?.ssoRequired&&!k.authenticated){let D;return t[34]!==p.id||t[35]!==p.name||t[36]!==p.slug||t[37]!==k.domain?(D=n.jsx(bn,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:k.domain}),t[34]=p.id,t[35]=p.name,t[36]=p.slug,t[37]=k.domain,t[38]=D):D=t[38],D}const F=p.logo??null;let q;t[39]!==p||t[40]!==F?(q={...p,logo:F},t[39]=p,t[40]=F,t[41]=q):q=t[41];let Q;t[42]!==p?(Q=n.jsx(fn,{activeOrg:p}),t[42]=p,t[43]=Q):Q=t[43];let se;t[44]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(nt,{}),t[44]=se):se=t[44];let oe;t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Gt,{}),n.jsx(on,{})]}),t[45]=oe):oe=t[45];let Y;t[46]!==i?(Y=n.jsx(Qt,{open:i,onOpenChange:o}),t[46]=i,t[47]=Y):Y=t[47];let ie;t[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(dn,{}),t[48]=ie):ie=t[48];let ae;return t[49]!==q||t[50]!==Q||t[51]!==Y?(ae=n.jsxs(Sn,{org:q,children:[Q,se,oe,Y,ie]}),t[49]=q,t[50]=Q,t[51]=Y,t[52]=ae):ae=t[52],ae}function kn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Nn(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(xt,{children:n.jsx(jn,{})}),t[0]=e):e=t[0],e}const Gn=Object.freeze(Object.defineProperty({__proto__:null,default:Nn,usePanelActions:vn},Symbol.toStringTag,{value:"Module"}));export{R as K,Kn as a,Jn as f,ve as i,ln as m,Gn as s,vn as u};
@@ -1 +1 @@
1
- import{c as b,m as g,j as o,cY as P,cy as A,H,cZ as R,cz as V,c_ as W,cA as q,r as T,B as G,bd as L,bB as F}from"./index-C5z96HUa.js";import{i as Y}from"./LayoutLeft-i2g0QuKY.js";import{u as Z}from"./use-mobile-B6O3bT8M.js";import{i as J}from"./X-CuyklNqf.js";import{b as B,T as I,a as D,c as k}from"./tooltip-Bvm9Xbb5.js";function K(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(A,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function Q(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function U(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function X(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(U,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(J,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(Q,{children:[m,o.jsxs(H,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(R,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function z(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=Z(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(B,{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}=z();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(X,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(K,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=z();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Y,{}),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(I,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(B,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=z();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let 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(I,{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,X as p,K as q,xe as r,z as u};
1
+ import{c as b,m as g,j as o,cY as P,cy as A,H,cZ as R,cz as V,c_ as W,cA as q,r as T,B as G,bd as L,bB as F}from"./index-B1INhWoo.js";import{i as Y}from"./LayoutLeft-BV4kR0Cl.js";import{u as Z}from"./use-mobile-BDpXfOGb.js";import{i as J}from"./X-BW2EYO4B.js";import{b as B,T as I,a as D,c as k}from"./tooltip-DvQ0XsJD.js";function K(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(A,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function Q(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function U(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function X(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(U,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(J,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(Q,{children:[m,o.jsxs(H,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(R,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function z(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=Z(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(B,{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}=z();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(X,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(K,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=z();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Y,{}),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(I,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(B,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=z();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let 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(I,{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,X as p,K as q,xe as r,z as u};
@@ -1 +1 @@
1
- import{c as n,m as c,j as i}from"./index-C5z96HUa.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-B1INhWoo.js";function r(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{r as S};
@@ -1 +1 @@
1
- import{c as C,m as d,bB as m,j as l}from"./index-C5z96HUa.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=l.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=a,e[4]=i):(a=e[3],i=e[4]);let s;e[5]!==t?(s=l.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=l.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
1
+ import{c as C,m as d,bB as m,j as l}from"./index-B1INhWoo.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=l.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=a,e[4]=i):(a=e[3],i=e[4]);let s;e[5]!==t?(s=l.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=l.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};