decocms 4.622.0 → 4.622.1

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 (805) hide show
  1. package/dist/client/assets/AlertCircle-xosAEaLd.js +1 -0
  2. package/dist/client/assets/AreaChart-BL_nidm2.js +1 -0
  3. package/dist/client/assets/ArrowLeft-s_BV961r.js +1 -0
  4. package/dist/client/assets/ArrowRight-BoIkS6P4.js +1 -0
  5. package/dist/client/assets/ArrowUp-D4g_D7TY.js +1 -0
  6. package/dist/client/assets/BookOpen01-CuhzPAzU.js +1 -0
  7. package/dist/client/assets/CartesianChart-BKp0t2Tg.js +1 -0
  8. package/dist/client/assets/CategoricalChart-CAfWRlnl.js +33 -0
  9. package/dist/client/assets/CheckCircle-BKxt6JEi.js +1 -0
  10. package/dist/client/assets/ChevronDown-DIkHoN0o.js +1 -0
  11. package/dist/client/assets/ChevronSelectorVertical-TYlaEGrJ.js +1 -0
  12. package/dist/client/assets/ChevronUp-D61VSyxy.js +1 -0
  13. package/dist/client/assets/CreditCard01-7wh2SPUT.js +1 -0
  14. package/dist/client/assets/Eye-C0bB50C2.js +1 -0
  15. package/dist/client/assets/File02-Bf99ynSR.js +1 -0
  16. package/dist/client/assets/Fingerprint04-DeU3ipCm.js +1 -0
  17. package/dist/client/assets/Flag01-covUodPa.js +1 -0
  18. package/dist/client/assets/Globe04-DMmZoyet.js +1 -0
  19. package/dist/client/assets/Image01-BeGbQ3TX.js +1 -0
  20. package/dist/client/assets/Key01-Bu_xE8-A.js +1 -0
  21. package/dist/client/assets/LayoutLeft-CZDdpuNu.js +1 -0
  22. package/dist/client/assets/LinkBroken01-5IFNWpUM.js +1 -0
  23. package/dist/client/assets/MessageCircle01-MNDoLPzV.js +1 -0
  24. package/dist/client/assets/Minus-BXX2vBX8.js +1 -0
  25. package/dist/client/assets/Monitor01-CbmKbBlb.js +1 -0
  26. package/dist/client/assets/Play-mrw71pF0.js +1 -0
  27. package/dist/client/assets/Plus-BfHy14x9.js +1 -0
  28. package/dist/client/assets/ReferenceLine-DmnB-QtF.js +1 -0
  29. package/dist/client/assets/SearchMd-BrgKf_9M.js +1 -0
  30. package/dist/client/assets/ShoppingBag01-BP5VxAH1.js +1 -0
  31. package/dist/client/assets/Sun-6h__um8m.js +1 -0
  32. package/dist/client/assets/SwitchHorizontal01-kFmqIycT.js +1 -0
  33. package/dist/client/assets/Tool01-DOLqbPpg.js +1 -0
  34. package/dist/client/assets/Tooltip-B0rAI9Yx.js +1 -0
  35. package/dist/client/assets/Trash01-BKEk-Z9e.js +1 -0
  36. package/dist/client/assets/Upload01-m7-hvqhV.js +1 -0
  37. package/dist/client/assets/UserCheck01-D1hKwgA_.js +1 -0
  38. package/dist/client/assets/UserSquare-n5hmrVRJ.js +1 -0
  39. package/dist/client/assets/Users01-NuJAuUFJ.js +1 -0
  40. package/dist/client/assets/XClose-BjM1NE1O.js +1 -0
  41. package/dist/client/assets/Zap-RQlM8QGU.js +1 -0
  42. package/dist/client/assets/access-gate-Deebjbup.js +1 -0
  43. package/dist/client/assets/add-connection-dialog-BRti6Mfo.js +1 -0
  44. package/dist/client/assets/agent-app-D3xHS_9O.js +1 -0
  45. package/dist/client/assets/agent-assets-Bp6dDaDt.js +1 -0
  46. package/dist/client/assets/agent-automation-C_qYQV44.js +20 -0
  47. package/dist/client/assets/agent-automations-CO7P8tvo.js +1 -0
  48. package/dist/client/assets/agent-blog-CvFKRW3f.js +2 -0
  49. package/dist/client/assets/agent-blog-post-_6s7Pcys.js +2 -0
  50. package/dist/client/assets/agent-business-case-rnzjeF8I.js +1 -0
  51. package/dist/client/assets/agent-calendar-hbVli6LU.js +1 -0
  52. package/dist/client/assets/agent-capabilities-DVhTikaW.js +1 -0
  53. package/dist/client/assets/agent-connect-sources-P5XVVRxS.js +1 -0
  54. package/dist/client/assets/agent-deck-CeZ0YMQG.js +1 -0
  55. package/dist/client/assets/agent-e2e-BVXabYmD.js +1 -0
  56. package/dist/client/assets/agent-experiments-DP0bZBPv.js +1 -0
  57. package/dist/client/assets/agent-file-BZCiTwT5.js +1 -0
  58. package/dist/client/assets/agent-hosting-kuSMLTin.js +1 -0
  59. package/dist/client/assets/agent-icon-BZMMR_QJ.js +1 -0
  60. package/dist/client/assets/agent-library-YnAJPOyd.js +1 -0
  61. package/dist/client/assets/agent-library-file-C0Uek82F.js +1 -0
  62. package/dist/client/assets/agent-overview-88wLavNi.js +1 -0
  63. package/dist/client/assets/agent-releases-B_agBW4U.js +3 -0
  64. package/dist/client/assets/agent-settings-CCQvvroG.js +1 -0
  65. package/dist/client/assets/agent-site-editor-DCdX-loI.js +16 -0
  66. package/dist/client/assets/agent-site-editor-code-Cu1LKhQ6.js +2 -0
  67. package/dist/client/assets/agent-site-editor-content-CXL_jLch.js +1 -0
  68. package/dist/client/assets/agent-site-editor-preview-CxsUhdV_.js +1 -0
  69. package/dist/client/assets/agent-view-Bfp9D7se.js +1 -0
  70. package/dist/client/assets/agent-view-guard-ClFaVsNU.js +1 -0
  71. package/dist/client/assets/ai-providers-C0Spriv9.js +1 -0
  72. package/dist/client/assets/alert-C6OJD9mX.js +1 -0
  73. package/dist/client/assets/analytics-sections-HQhRq0qQ.js +1 -0
  74. package/dist/client/assets/api-keys-D3K4VQOC.js +1 -0
  75. package/dist/client/assets/api-keys-j0vbSuXw.js +1 -0
  76. package/dist/client/assets/app-editor-VOfrN3Zv.js +1 -0
  77. package/dist/client/assets/asset-utils-C15DH2bd.js +1 -0
  78. package/dist/client/assets/auth-CvnIsI04.js +1 -0
  79. package/dist/client/assets/auth-catchall-OA4Phs8O.js +1 -0
  80. package/dist/client/assets/auth-entry-DU-xKCrE.js +1 -0
  81. package/dist/client/assets/auth-split-layout-C81mAOmm.js +1 -0
  82. package/dist/client/assets/authenticate-and-persist-oauth-DaemhuPP.js +1 -0
  83. package/dist/client/assets/automation-list-row-CITSpiPp.js +1 -0
  84. package/dist/client/assets/automation-runs-t9taWemJ.js +1 -0
  85. package/dist/client/assets/automations-CcUm6ASD.js +1 -0
  86. package/dist/client/assets/badge-CIeWzjRT.js +1 -0
  87. package/dist/client/assets/block-document-DR5QT5Ed.js +3 -0
  88. package/dist/client/assets/blocks-preview-workspace-context-DR3LaAem.js +1 -0
  89. package/dist/client/assets/blocks-tab-states-BRGzD1lP.js +1 -0
  90. package/dist/client/assets/blog-preview-url-3SNzFsIK.js +1 -0
  91. package/dist/client/assets/blog-schema-NHj4GGMp.js +1 -0
  92. package/dist/client/assets/blog-source-gate-CCNho2Fm.js +1 -0
  93. package/dist/client/assets/blog-view-gate-BJWMoPhM.js +1 -0
  94. package/dist/client/assets/buckets-BFmZcW4K.js +1 -0
  95. package/dist/client/assets/build-improve-prompt-doc-BbAfPRhf.js +2 -0
  96. package/dist/client/assets/calendar-BioP8p-0.js +1 -0
  97. package/dist/client/assets/capability-load-error-BaDj2tkD.js +1 -0
  98. package/dist/client/assets/category-editor-BnsWop9k.js +1 -0
  99. package/dist/client/assets/category-tree-DPLQbdyM.js +18 -0
  100. package/dist/client/assets/chart-D8fbfT9z.js +13 -0
  101. package/dist/client/assets/chat-context-B57JGGXD.js +43 -0
  102. package/dist/client/assets/chat-draft-Csnb7GK_.js +1 -0
  103. package/dist/client/assets/checkbox-Oe_bUdt-.js +1 -0
  104. package/dist/client/assets/choose-editor-Big1y9Z7.js +1 -0
  105. package/dist/client/assets/cli-auth-success-4k1rQvu7.js +1 -0
  106. package/dist/client/assets/cms-settings-editor-DFjR5KPk.js +1 -0
  107. package/dist/client/assets/cms-store-drafts-DZYQtMgR.js +1 -0
  108. package/dist/client/assets/collapsible-BLrLgxvu.js +1 -0
  109. package/dist/client/assets/collection-detail-BU-wU37A.js +1 -0
  110. package/dist/client/assets/collection-display-button-6WFdz7np.js +1 -0
  111. package/dist/client/assets/collection-search-BQ9RmMTt.js +1 -0
  112. package/dist/client/assets/collection-table-wrapper-CQwajQ_4.js +1 -0
  113. package/dist/client/assets/collection-tabs-DOWocMGj.js +1 -0
  114. package/dist/client/assets/combobox-ClMHsWKf.js +1 -0
  115. package/dist/client/assets/command-Cos_TZ64.js +1 -0
  116. package/dist/client/assets/companion-mcps-section-BZFO7Fxb.js +1 -0
  117. package/dist/client/assets/config-BzidGPpX.js +1 -0
  118. package/dist/client/assets/connect-c8K_jL8B.js +9 -0
  119. package/dist/client/assets/connect-key-_dDwJeT2.js +1 -0
  120. package/dist/client/assets/connect-layout-DbFA138P.js +1 -0
  121. package/dist/client/assets/connect-source-dialog-2zWZKTK_.js +1 -0
  122. package/dist/client/assets/connection-BOiIeHWp.js +1 -0
  123. package/dist/client/assets/connection-card-5lJ3I9hk.js +1 -0
  124. package/dist/client/assets/connection-detail-BiLC8CJT.js +1 -0
  125. package/dist/client/assets/connection-form-helpers-C_TW2m1s.js +1 -0
  126. package/dist/client/assets/connection-slug-CEHz23mv.js +1 -0
  127. package/dist/client/assets/connections-BSrd3oIr.js +1 -0
  128. package/dist/client/assets/content-changes-FNFX2_bZ.js +1 -0
  129. package/dist/client/assets/content-tab-CSIu28gH.js +19 -0
  130. package/dist/client/assets/context-DnTd3ohD.js +1 -0
  131. package/dist/client/assets/context-menu-CdSXYKkv.js +1 -0
  132. package/dist/client/assets/context-shell-CkgLZQKQ.js +37 -0
  133. package/dist/client/assets/create-organization-dialog-BrxhdYKj.js +1 -0
  134. package/dist/client/assets/daily-pulse-BZb9-coL.js +1 -0
  135. package/dist/client/assets/device-hint-uUOlaNmd.js +1 -0
  136. package/dist/client/assets/discover-CxsnCQHg.js +1 -0
  137. package/dist/client/assets/domain-settings-Docq4pGC.js +1 -0
  138. package/dist/client/assets/drawer-D2axrXOY.js +1 -0
  139. package/dist/client/assets/editor-DGJpDety.js +11 -0
  140. package/dist/client/assets/editor-classes-XpYTxIiz.js +1 -0
  141. package/dist/client/assets/empty-state-CJc774IL.js +1 -0
  142. package/dist/client/assets/empty-state-D812T-Mt.js +1 -0
  143. package/dist/client/assets/experiments-tab-choice-goOLK7WE.js +1 -0
  144. package/dist/client/assets/extract-connection-data-CRkACtpa.js +1 -0
  145. package/dist/client/assets/feature-gate-D2dFefK7.js +1 -0
  146. package/dist/client/assets/feature-paywall-B2eIjeFg.js +1 -0
  147. package/dist/client/assets/file-explorer-8zdWjtbz.js +2 -0
  148. package/dist/client/assets/file-preview-JlNoEdzq.js +1 -0
  149. package/dist/client/assets/file-share-button-CY6ezckh.js +3 -0
  150. package/dist/client/assets/file-type-icon-C1mOEwCr.js +1 -0
  151. package/dist/client/assets/folder-icon-DubDNIpr.js +1 -0
  152. package/dist/client/assets/form-UA4ZfiDn.js +1 -0
  153. package/dist/client/assets/frame-navigation-BhLwtoCH.js +1 -0
  154. package/dist/client/assets/gateway-client-q0fGAtPo.js +1 -0
  155. package/dist/client/assets/general-Dc5sPGH_.js +1 -0
  156. package/dist/client/assets/github-icon-pW3AxBE2.js +1 -0
  157. package/dist/client/assets/held-block-view-Ffbaz9ft.js +3 -0
  158. package/dist/client/assets/home-nWZTCy--.js +1 -0
  159. package/dist/client/assets/home-overview-C9bxwmTD.js +1 -0
  160. package/dist/client/assets/hosted-reconcile-C3Nz5iSn.js +1 -0
  161. package/dist/client/assets/icon-button-BeOwu42o.js +1 -0
  162. package/dist/client/assets/index-3XPmP0KD.js +1 -0
  163. package/dist/client/assets/index-B2VfmBS0.js +69 -0
  164. package/dist/client/assets/index-BD4h7BSu.js +1 -0
  165. package/dist/client/assets/index-Cdi-Ldg8.js +273 -0
  166. package/dist/client/assets/index-CpyELSlc.js +1 -0
  167. package/dist/client/assets/index-D3MIBDEq.js +15 -0
  168. package/dist/client/assets/index-D55A1a2f.js +4 -0
  169. package/dist/client/assets/index-DOdWDmdN.js +4 -0
  170. package/dist/client/assets/index-DYXbN-l9.js +26 -0
  171. package/dist/client/assets/index-DYenlRl-.js +1 -0
  172. package/dist/client/assets/index-DcVhO2Af.js +5 -0
  173. package/dist/client/assets/index-DsG5KK7Q.js +1 -0
  174. package/dist/client/assets/index-Du4hWrNz.js +1 -0
  175. package/dist/client/assets/index-Dx6x4q1w.js +1 -0
  176. package/dist/client/assets/index-Dy9vlvDP.js +1 -0
  177. package/dist/client/assets/index-KvaEJOWj.js +1 -0
  178. package/dist/client/assets/index-UZPD-9ga.js +1 -0
  179. package/dist/client/assets/index-W5RoTrCZ.js +1 -0
  180. package/dist/client/assets/index-redirect-CJ4Qgtjj.js +1 -0
  181. package/dist/client/assets/infiniteQueryObserver-BleoIULP.js +1 -0
  182. package/dist/client/assets/infra-billing-CUAweYMM.js +1 -0
  183. package/dist/client/assets/input-BpI93aX7.js +17 -0
  184. package/dist/client/assets/input-CsSO0np1.js +1 -0
  185. package/dist/client/assets/integration-icon-Drf54WUO.js +1 -0
  186. package/dist/client/assets/item-actions-C0Ln6nkJ.js +1 -0
  187. package/dist/client/assets/jira-icon-DwJcS_go.js +1 -0
  188. package/dist/client/assets/label-ChY9Byh0.js +1 -0
  189. package/dist/client/assets/layout-D9byrehX.js +1 -0
  190. package/dist/client/assets/legacy-admin-welcome-dialog-DN-Or5F5.js +1 -0
  191. package/dist/client/assets/legacy-agents-deep-XKnfADPK.js +1 -0
  192. package/dist/client/assets/legacy-content-CAaGkiig.js +4 -0
  193. package/dist/client/assets/legacy-main-redirect-BVOK53Qs.js +1 -0
  194. package/dist/client/assets/library-Dd-XIrUM.js +1 -0
  195. package/dist/client/assets/library-tab-DXBp162L.js +162 -0
  196. package/dist/client/assets/login-CUsNaJCz.js +1 -0
  197. package/dist/client/assets/markdown-Dv__bH9G.js +93 -0
  198. package/dist/client/assets/mcp-app-renderer-DeBDKYlI.js +11 -0
  199. package/dist/client/assets/mcp-oauth-DBU5ziI3.js +1 -0
  200. package/dist/client/assets/mcp-oauth-jS3lIIsR.js +1 -0
  201. package/dist/client/assets/members-N-UeQK0K.js +1 -0
  202. package/dist/client/assets/memory-DqQXd03E.js +7 -0
  203. package/dist/client/assets/mock-board-COC01_Yz.js +10 -0
  204. package/dist/client/assets/monaco-editor-BJOiPOqK.js +9 -0
  205. package/dist/client/assets/monitoring-N82Vdhe_.js +2 -0
  206. package/dist/client/assets/monitoring-stats-row-BB-xpDXp.js +1 -0
  207. package/dist/client/assets/multi-select-ab44oN8C.js +1 -0
  208. package/dist/client/assets/mustache-2nLRsql9.js +4 -0
  209. package/dist/client/assets/named-rule-step-fxBoVyTf.js +1 -0
  210. package/dist/client/assets/named-rule-view-Blop-mfz.js +1 -0
  211. package/dist/client/assets/new-project-dialog-Bm8AoHrl.js +1 -0
  212. package/dist/client/assets/new-project-store-B3BdUURt.js +1 -0
  213. package/dist/client/assets/oauth-callback-BQbCmAPS.js +1 -0
  214. package/dist/client/assets/oauth-callback-ai-provider-BmURj5yr.js +1 -0
  215. package/dist/client/assets/oauth-consent-DVM6ZXZ-.js +1 -0
  216. package/dist/client/assets/onboarding-Dn1O0qwP.js +1 -0
  217. package/dist/client/assets/openai-conversation-5aGLGlHN.js +3 -0
  218. package/dist/client/assets/optimistic-project-sidebar-views-D_JiZIA7.js +1 -0
  219. package/dist/client/assets/order-monitor-day-DX2OGb3Z.js +1 -0
  220. package/dist/client/assets/organization-choice-enMTu-bk.js +1 -0
  221. package/dist/client/assets/orgs-5Ms0C7mU.js +1 -0
  222. package/dist/client/assets/own-accounts-section-Dg_vjqV1.js +1 -0
  223. package/dist/client/assets/pair-DCJ8mYMb.js +48 -0
  224. package/dist/client/assets/parse-sections-BW6uv4VK.js +4 -0
  225. package/dist/client/assets/plan-ladder-Cu4p20uS.js +1 -0
  226. package/dist/client/assets/plan-oohE-5Ud.js +1 -0
  227. package/dist/client/assets/plan-page-d5XLzcCi.js +6 -0
  228. package/dist/client/assets/plan-usage-card-yCzU-SVy.js +6 -0
  229. package/dist/client/assets/popover-C8oVHQrg.js +1 -0
  230. package/dist/client/assets/post-calendar-Cb9CEYxQ.js +1 -0
  231. package/dist/client/assets/post-editor-Ti8rflkc.js +2 -0
  232. package/dist/client/assets/preview-content-BTv_KCDY.js +1 -0
  233. package/dist/client/assets/preview-dialog-BwmCc8TN.js +1 -0
  234. package/dist/client/assets/preview-panel-BAEW-u26.js +1 -0
  235. package/dist/client/assets/preview-tab-inacG_8E.js +557 -0
  236. package/dist/client/assets/primitives-DxszQMwM.js +1 -0
  237. package/dist/client/assets/product-picker-dialog-BMqSdwuE.js +1 -0
  238. package/dist/client/assets/profile-BO1ioLhO.js +1 -0
  239. package/dist/client/assets/project-app-view-CtxJFHSp.js +1 -0
  240. package/dist/client/assets/project-apps-TD7NdJEg.js +1 -0
  241. package/dist/client/assets/project-icon-nOFVZOiX.js +1 -0
  242. package/dist/client/assets/project-index-C2Blu8T-.js +1 -0
  243. package/dist/client/assets/project-reports-DjfZbYuw.js +1 -0
  244. package/dist/client/assets/project-tasks-D9jCfqJP.js +1 -0
  245. package/dist/client/assets/projects-empty-state-rrZsictf.js +1 -0
  246. package/dist/client/assets/projects-wjhh4b2F.js +1 -0
  247. package/dist/client/assets/prompts-BSu83VTa.js +1 -0
  248. package/dist/client/assets/record-editor-B7O1PmqZ.js +1 -0
  249. package/dist/client/assets/redirect-editor-Ct4ejzqu.js +1 -0
  250. package/dist/client/assets/reports-7rncih93.js +1 -0
  251. package/dist/client/assets/reports-CZhcy59_.js +3 -0
  252. package/dist/client/assets/reports-onboarding-jb89khVx.js +1 -0
  253. package/dist/client/assets/reports-tab-BOhp4OQ1.js +2 -0
  254. package/dist/client/assets/repositories-CGUWttv1.js +1 -0
  255. package/dist/client/assets/repositories-DV4BwNnU.js +1 -0
  256. package/dist/client/assets/repository-binding-6XbvXAcD.js +1 -0
  257. package/dist/client/assets/repository-picker-BP31XB9K.js +1 -0
  258. package/dist/client/assets/require-capability-DZY2vK8Y.js +1 -0
  259. package/dist/client/assets/required-auth-layout-DSes7vPo.js +1 -0
  260. package/dist/client/assets/reset-password-DTr5b9jo.js +1 -0
  261. package/dist/client/assets/resizable-DtYPg1cS.js +1 -0
  262. package/dist/client/assets/resolve-tab-icon-BEl9jY-0.js +1 -0
  263. package/dist/client/assets/review-settings-BkYREPpd.js +1 -0
  264. package/dist/client/assets/role-color-DN57xP4h.js +1 -0
  265. package/dist/client/assets/roles-DN2RX5en.js +1 -0
  266. package/dist/client/assets/route-7YRLPYLu.js +1 -0
  267. package/dist/client/assets/route-BOwZPlPd.js +1 -0
  268. package/dist/client/assets/route-Cm_-PH6G.js +1 -0
  269. package/dist/client/assets/route-page-header-FL3qwgzC.js +1 -0
  270. package/dist/client/assets/sandbox-git-api-CvZm4Ih1.js +1 -0
  271. package/dist/client/assets/sandbox-lifecycle-context-DtRbGFIb.js +1 -0
  272. package/dist/client/assets/save-status-CUMO1vfv.js +1 -0
  273. package/dist/client/assets/schema-B7wLug5Z.js +1 -0
  274. package/dist/client/assets/schema-piMU2aDx.js +1 -0
  275. package/dist/client/assets/scroll-area-xrLBWH10.js +1 -0
  276. package/dist/client/assets/search-input-D7kGzsJ3.js +1 -0
  277. package/dist/client/assets/search-toggle-4jeRGC__.js +1 -0
  278. package/dist/client/assets/secret-picker-BQNOxxHS.js +1 -0
  279. package/dist/client/assets/secrets-Bk4q8jjr.js +1 -0
  280. package/dist/client/assets/section-array-field-DQPnV_AR.js +1 -0
  281. package/dist/client/assets/sections-BZXAOtKQ.js +1 -0
  282. package/dist/client/assets/sections-editor-DF7w1PWU.js +1 -0
  283. package/dist/client/assets/select-mLiWqUqQ.js +1 -0
  284. package/dist/client/assets/select-model-D9ouY6PP.js +1 -0
  285. package/dist/client/assets/seo-editor-vszxMFSG.js +1 -0
  286. package/dist/client/assets/separator-BKw-ZLtc.js +1 -0
  287. package/dist/client/assets/session-runtime-B-X2j6mK.js +1 -0
  288. package/dist/client/assets/settings-tab-BpSSpXCa.js +1 -0
  289. package/dist/client/assets/sheet-V9G9MKD_.js +1 -0
  290. package/dist/client/assets/shell-layout-aMr2_JYj.js +1 -0
  291. package/dist/client/assets/site-draft-actions-D7_bzyRO.js +7 -0
  292. package/dist/client/assets/site-draft-view-DjdsGDwM.js +1 -0
  293. package/dist/client/assets/site-editor-CsxEfLOw.js +1 -0
  294. package/dist/client/assets/site-editor-toast-dw1Pn_Dx.js +1 -0
  295. package/dist/client/assets/skills-DGtHAHAm.js +1 -0
  296. package/dist/client/assets/slider-Hmd9IxOX.js +1 -0
  297. package/dist/client/assets/sortable.esm-C6EwAxqy.js +1 -0
  298. package/dist/client/assets/sso-BVMprU4t.js +1 -0
  299. package/dist/client/assets/suggestion-DiN8e3O2.js +2 -0
  300. package/dist/client/assets/super-agent-icon-Cv2SkWEI.js +1 -0
  301. package/dist/client/assets/switch-C-msOQel.js +1 -0
  302. package/dist/client/assets/synced-repos-7kbPQ_lo.js +1 -0
  303. package/dist/client/assets/tab-icon-glyph-DVCsBFWB.js +1 -0
  304. package/dist/client/assets/table-D4bwd7tG.js +1 -0
  305. package/dist/client/assets/tabs-C6-jqCYP.js +1 -0
  306. package/dist/client/assets/task-board-aZEvWLsI.js +1 -0
  307. package/dist/client/assets/task-key-BjOTOW3y.js +5 -0
  308. package/dist/client/assets/task-route-yQe8kENc.js +1 -0
  309. package/dist/client/assets/task-status-B2rRCaGt.js +1 -0
  310. package/dist/client/assets/taskboard-analytics-C3WbMJp5.js +1 -0
  311. package/dist/client/assets/tasks-GTm5tSNR.js +4 -0
  312. package/dist/client/assets/tasks-hFmiVR4w.js +1 -0
  313. package/dist/client/assets/textarea--AVkwPvk.js +1 -0
  314. package/dist/client/assets/thread-analytics-zilazIia.js +1 -0
  315. package/dist/client/assets/thread-button-GINDMz1x.js +1 -0
  316. package/dist/client/assets/thread-intent-D0jCxjRo.js +15 -0
  317. package/dist/client/assets/thread-route-BRnKSjX8.js +1 -0
  318. package/dist/client/assets/thread-route-BrDRfI1Z.js +1 -0
  319. package/dist/client/assets/thread-sheet-body-Bi3jjGgj.js +1 -0
  320. package/dist/client/assets/time-range-picker-C4CQ_8V_.js +1 -0
  321. package/dist/client/assets/toggle-group-Bt99dpwe.js +1 -0
  322. package/dist/client/assets/tool-set-selector-IWP5bAeB.js +1 -0
  323. package/dist/client/assets/toolbar-icon-button-B201FBVH.js +1 -0
  324. package/dist/client/assets/tooltip-DQ0KlQ_6.js +1 -0
  325. package/dist/client/assets/tooltipContext-Cy-djwXr.js +1 -0
  326. package/dist/client/assets/track-Ba7sL2ey.js +1 -0
  327. package/dist/client/assets/types-BDlmg_WH.js +77 -0
  328. package/dist/client/assets/url-slug-Caxjze8n.js +1 -0
  329. package/dist/client/assets/usage-stats-CYjGdZ2U.js +141 -0
  330. package/dist/client/assets/use-ai-providers-DFecqYxb.js +1 -0
  331. package/dist/client/assets/use-api-keys-ByK3ztdl.js +1 -0
  332. package/dist/client/assets/use-apply-named-rule-CudFPluy.js +1 -0
  333. package/dist/client/assets/use-ask-in-chat-B5CWC5Ok.js +1 -0
  334. package/dist/client/assets/use-automations-CMgkgtfS.js +1 -0
  335. package/dist/client/assets/use-autosave-BLYEqkPN.js +1 -0
  336. package/dist/client/assets/use-blocks-v8-project-DiOBim9I.js +1 -0
  337. package/dist/client/assets/use-blog-view-BWs861dA.js +1 -0
  338. package/dist/client/assets/use-chat-layout-state-Bny7cjy4.js +1 -0
  339. package/dist/client/assets/use-cms-publish-actions-uZLWeOhJ.js +10 -0
  340. package/dist/client/assets/use-connect-companion-DsJAPed1.js +1 -0
  341. package/dist/client/assets/use-connection-JBI1rS5M.js +1 -0
  342. package/dist/client/assets/use-content-sync-B3Q-IEBL.js +1 -0
  343. package/dist/client/assets/use-copy-VPhtJFz_.js +1 -0
  344. package/dist/client/assets/use-current-view-D_kbHiwq.js +1 -0
  345. package/dist/client/assets/use-date-fns-locale-4Nxz4-V8.js +1 -0
  346. package/dist/client/assets/use-debounced-autosave-DW-WRCOS.js +1 -0
  347. package/dist/client/assets/use-debounced-value-CPqtQjku.js +1 -0
  348. package/dist/client/assets/use-deco-credits-BEpMzfhg.js +1 -0
  349. package/dist/client/assets/use-decopilot-events-D_Q7X953.js +1 -0
  350. package/dist/client/assets/use-delete-block-RxQmjBMS.js +1 -0
  351. package/dist/client/assets/use-delete-connection-DldqsElg.js +1 -0
  352. package/dist/client/assets/use-deployment-admin--gqHVRuO.js +1 -0
  353. package/dist/client/assets/use-entitlements-ByDJr900.js +1 -0
  354. package/dist/client/assets/use-fast-preview-draft-url-6vFB2DcW.js +1 -0
  355. package/dist/client/assets/use-file-configs-CBOpfPja.js +1 -0
  356. package/dist/client/assets/use-id-selection-CigEQpod.js +1 -0
  357. package/dist/client/assets/use-in-settings-CqQlGm69.js +1 -0
  358. package/dist/client/assets/use-inbox-feed-DspkzReR.js +1 -0
  359. package/dist/client/assets/use-infinite-scroll-OASH4IJn.js +1 -0
  360. package/dist/client/assets/use-join-requests-9KSsZ7h7.js +1 -0
  361. package/dist/client/assets/use-main-panel-tabs-Gch5efpY.js +1 -0
  362. package/dist/client/assets/use-mcp-auth-status-h6lxdgXh.js +1 -0
  363. package/dist/client/assets/use-mcp-client-DUPhaqI5.js +10 -0
  364. package/dist/client/assets/use-mcp-prompts-Cu6bA1zM.js +1 -0
  365. package/dist/client/assets/use-mcp-tools-BbvfyEqw.js +1 -0
  366. package/dist/client/assets/use-mobile-CUIjg5eg.js +1 -0
  367. package/dist/client/assets/use-move-blocks-Dr2ivqEX.js +1 -0
  368. package/dist/client/assets/use-navigate-to-agent-auqVYVQq.js +1 -0
  369. package/dist/client/assets/use-org-fs-mzJda8BT.js +1 -0
  370. package/dist/client/assets/use-org-notice-B7jRz0LR.js +1 -0
  371. package/dist/client/assets/use-org-repo-syncs-6IMB7KmW.js +1 -0
  372. package/dist/client/assets/use-org-sso-CofrLYLm.js +1 -0
  373. package/dist/client/assets/use-organization-settings-C2ZgOw0L.js +1 -0
  374. package/dist/client/assets/use-panel-navigate-gxWgO54K.js +1 -0
  375. package/dist/client/assets/use-project-native-view-presence-Cbn_yrc6.js +1 -0
  376. package/dist/client/assets/use-project-scope-D8nlb73E.js +1 -0
  377. package/dist/client/assets/use-recent-apps-Rc7BNVLA.js +1 -0
  378. package/dist/client/assets/use-reports-diagnostic-Cy9ShZK6.js +1 -0
  379. package/dist/client/assets/use-sandbox-events-69MPy-zM.js +2 -0
  380. package/dist/client/assets/use-secrets-OrZEwpu-.js +1 -0
  381. package/dist/client/assets/use-section-preview-base-DRNiUqaU.js +1 -0
  382. package/dist/client/assets/use-sidebar-collapsed-MMY2Rys1.js +1 -0
  383. package/dist/client/assets/use-tags-BVyIhEps.js +1 -0
  384. package/dist/client/assets/use-task-board-analytics-C-0rx5tM.js +1 -0
  385. package/dist/client/assets/use-task-board-item-prs-CLUxVift.js +1 -0
  386. package/dist/client/assets/use-task-board-items-CjdkGXzx.js +1 -0
  387. package/dist/client/assets/use-task-board-prompts--8zOxB9H.js +1 -0
  388. package/dist/client/assets/use-task-metadata-ByirHWtB.js +1 -0
  389. package/dist/client/assets/use-thread-outputs-CZ2ZFBWZ.js +1 -0
  390. package/dist/client/assets/use-view-draft-kind-DhH4-fSh.js +1 -0
  391. package/dist/client/assets/use-voice-input-B2QeFfLu.js +1 -0
  392. package/dist/client/assets/useInfiniteQuery-B9iLSNQU.js +1 -0
  393. package/dist/client/assets/useQueries-J_W9MBoN.js +1 -0
  394. package/dist/client/assets/useSuspenseInfiniteQuery-Bshhqoph.js +1 -0
  395. package/dist/client/assets/users-BCUy9nKO.js +1 -0
  396. package/dist/client/assets/utils-DUQl0AEe.js +4 -0
  397. package/dist/client/assets/variant-calendar-XQKSBmNA.js +1 -0
  398. package/dist/client/assets/variant-matcher-override-D63pJ9Ve.js +1 -0
  399. package/dist/client/assets/view-header-DTdoSSky.js +1 -0
  400. package/dist/client/assets/virtual-mcp-D8yER0ha.js +1 -0
  401. package/dist/client/assets/watch-sse-pool-BNxDzPla.js +1 -0
  402. package/dist/client/index.html +1 -1
  403. package/dist/server/server.js +1 -1
  404. package/package.json +1 -1
  405. package/dist/client/assets/AlertCircle-zs-4VsZH.js +0 -1
  406. package/dist/client/assets/AreaChart-BqJdUyPN.js +0 -1
  407. package/dist/client/assets/ArrowLeft-C6W2V0Wz.js +0 -1
  408. package/dist/client/assets/ArrowRight-KrRhtVTs.js +0 -1
  409. package/dist/client/assets/ArrowUp-Dee6sHNv.js +0 -1
  410. package/dist/client/assets/BookOpen01-CbTlL5fO.js +0 -1
  411. package/dist/client/assets/CartesianChart-euJHunXT.js +0 -1
  412. package/dist/client/assets/CategoricalChart-CArIOb7V.js +0 -33
  413. package/dist/client/assets/CheckCircle-COSnGnjh.js +0 -1
  414. package/dist/client/assets/ChevronDown-CNsLQB9X.js +0 -1
  415. package/dist/client/assets/ChevronSelectorVertical-Bcno_AMM.js +0 -1
  416. package/dist/client/assets/ChevronUp-BIDp2ptm.js +0 -1
  417. package/dist/client/assets/CreditCard01-DpMmVef7.js +0 -1
  418. package/dist/client/assets/Eye-C8IBFOJ4.js +0 -1
  419. package/dist/client/assets/File02-BPE81X6H.js +0 -1
  420. package/dist/client/assets/Fingerprint04-D2sxs8Jp.js +0 -1
  421. package/dist/client/assets/Flag01-DJexopqk.js +0 -1
  422. package/dist/client/assets/Globe04-CFnmWCFT.js +0 -1
  423. package/dist/client/assets/Image01-BQ_N_-hp.js +0 -1
  424. package/dist/client/assets/Key01-YbIqec_5.js +0 -1
  425. package/dist/client/assets/LayoutLeft-B398oVOF.js +0 -1
  426. package/dist/client/assets/LinkBroken01-JnPrABUL.js +0 -1
  427. package/dist/client/assets/MessageCircle01-xkB-KYwl.js +0 -1
  428. package/dist/client/assets/Minus-CeSa2hYk.js +0 -1
  429. package/dist/client/assets/Monitor01-vFwnyrQW.js +0 -1
  430. package/dist/client/assets/Play-CMB9KZlr.js +0 -1
  431. package/dist/client/assets/Plus-T4a-gWso.js +0 -1
  432. package/dist/client/assets/ReferenceLine-DBT_Xb_r.js +0 -1
  433. package/dist/client/assets/SearchMd-DEhP1OXm.js +0 -1
  434. package/dist/client/assets/ShoppingBag01-Dmv3_STe.js +0 -1
  435. package/dist/client/assets/Sun-BUcQiIPl.js +0 -1
  436. package/dist/client/assets/SwitchHorizontal01-CyqXFb8X.js +0 -1
  437. package/dist/client/assets/Tool01-XkpyIGeg.js +0 -1
  438. package/dist/client/assets/Tooltip-DfRxYwmq.js +0 -1
  439. package/dist/client/assets/Trash01-57nd_Led.js +0 -1
  440. package/dist/client/assets/Upload01-puJlDWvm.js +0 -1
  441. package/dist/client/assets/UserCheck01-Cf1MRytQ.js +0 -1
  442. package/dist/client/assets/UserSquare-Bxa1cuC8.js +0 -1
  443. package/dist/client/assets/Users01-ktVAj2Ya.js +0 -1
  444. package/dist/client/assets/XClose-C0dMm0LD.js +0 -1
  445. package/dist/client/assets/Zap-Bp9tzS_i.js +0 -1
  446. package/dist/client/assets/access-gate-Bde09VYu.js +0 -1
  447. package/dist/client/assets/add-connection-dialog-2481_pjY.js +0 -1
  448. package/dist/client/assets/agent-app-BsIHnsy3.js +0 -1
  449. package/dist/client/assets/agent-assets-BYdxh-AY.js +0 -1
  450. package/dist/client/assets/agent-automation-OQJpZnZG.js +0 -20
  451. package/dist/client/assets/agent-automations-BOIOvAOU.js +0 -1
  452. package/dist/client/assets/agent-blog-D3Vj_z7q.js +0 -2
  453. package/dist/client/assets/agent-blog-post-DyKkYJQO.js +0 -2
  454. package/dist/client/assets/agent-business-case-CRx0aRFr.js +0 -1
  455. package/dist/client/assets/agent-calendar-B28Mjfsg.js +0 -1
  456. package/dist/client/assets/agent-capabilities-BXuVa2AT.js +0 -1
  457. package/dist/client/assets/agent-connect-sources-DLqtyZsJ.js +0 -1
  458. package/dist/client/assets/agent-deck-JLzTNq7u.js +0 -1
  459. package/dist/client/assets/agent-e2e-CCbeY7tE.js +0 -1
  460. package/dist/client/assets/agent-experiments-D4jWOqlO.js +0 -1
  461. package/dist/client/assets/agent-file-DMhA2fSf.js +0 -1
  462. package/dist/client/assets/agent-hosting-BwJE9L3o.js +0 -1
  463. package/dist/client/assets/agent-icon-CQr8igXA.js +0 -1
  464. package/dist/client/assets/agent-library-D__mndff.js +0 -1
  465. package/dist/client/assets/agent-library-file-DJ5_nqJ7.js +0 -1
  466. package/dist/client/assets/agent-overview-Cimskqoo.js +0 -1
  467. package/dist/client/assets/agent-releases-BWOUYCL8.js +0 -3
  468. package/dist/client/assets/agent-settings-BXC1CfmE.js +0 -1
  469. package/dist/client/assets/agent-site-editor-DhZ_vpnc.js +0 -16
  470. package/dist/client/assets/agent-site-editor-code-U0L3Bj0_.js +0 -2
  471. package/dist/client/assets/agent-site-editor-content-M-YAoLLH.js +0 -1
  472. package/dist/client/assets/agent-site-editor-preview-ySISkHL-.js +0 -1
  473. package/dist/client/assets/agent-view-CfESc9ia.js +0 -1
  474. package/dist/client/assets/agent-view-guard-DZYwAeNh.js +0 -1
  475. package/dist/client/assets/ai-providers-CqpV3C1V.js +0 -1
  476. package/dist/client/assets/alert-DSaL78AL.js +0 -1
  477. package/dist/client/assets/analytics-sections-TEC5MPzk.js +0 -1
  478. package/dist/client/assets/api-keys-CoC2dv_0.js +0 -1
  479. package/dist/client/assets/api-keys-wnrwKzIy.js +0 -1
  480. package/dist/client/assets/app-editor-BiXfIJP4.js +0 -1
  481. package/dist/client/assets/asset-utils-KFwxVdDm.js +0 -1
  482. package/dist/client/assets/auth-BgrYkUnI.js +0 -1
  483. package/dist/client/assets/auth-catchall-mzWcFf4a.js +0 -1
  484. package/dist/client/assets/auth-entry-DpsIwGkR.js +0 -1
  485. package/dist/client/assets/auth-split-layout-D5uj6LZc.js +0 -1
  486. package/dist/client/assets/authenticate-and-persist-oauth-B48YSuL-.js +0 -1
  487. package/dist/client/assets/automation-list-row-N1F5xcxd.js +0 -1
  488. package/dist/client/assets/automation-runs-DEW6t1DG.js +0 -1
  489. package/dist/client/assets/automations-BrAg0C5O.js +0 -1
  490. package/dist/client/assets/badge-Dc2CiE9F.js +0 -1
  491. package/dist/client/assets/block-document-ldf6G-hR.js +0 -3
  492. package/dist/client/assets/blocks-preview-workspace-context-DjpSqFsz.js +0 -1
  493. package/dist/client/assets/blocks-tab-states-CH65ZuMR.js +0 -1
  494. package/dist/client/assets/blog-preview-url-9_QxFNI8.js +0 -1
  495. package/dist/client/assets/blog-schema-CP1SDehI.js +0 -1
  496. package/dist/client/assets/blog-source-gate-Bh4EkBw9.js +0 -1
  497. package/dist/client/assets/blog-view-gate-BAEmNabZ.js +0 -1
  498. package/dist/client/assets/buckets-Beoxnsfw.js +0 -1
  499. package/dist/client/assets/build-improve-prompt-doc-Dt06kt3u.js +0 -2
  500. package/dist/client/assets/calendar-oaD7GIMY.js +0 -1
  501. package/dist/client/assets/capability-load-error-BPr28tsy.js +0 -1
  502. package/dist/client/assets/category-editor-xfctzdTg.js +0 -1
  503. package/dist/client/assets/category-tree-DaQvlJrH.js +0 -18
  504. package/dist/client/assets/chart-D-ACSGiF.js +0 -13
  505. package/dist/client/assets/chat-context-BTezEUIM.js +0 -43
  506. package/dist/client/assets/chat-draft-BdLnDNOX.js +0 -1
  507. package/dist/client/assets/checkbox-29nVCrNH.js +0 -1
  508. package/dist/client/assets/choose-editor-BIOUzwn7.js +0 -1
  509. package/dist/client/assets/cli-auth-success-Cbvnr7MM.js +0 -1
  510. package/dist/client/assets/cms-settings-editor-LOmqRqSu.js +0 -1
  511. package/dist/client/assets/cms-store-drafts-DHWVVAjz.js +0 -1
  512. package/dist/client/assets/collapsible-3XVKS3uw.js +0 -1
  513. package/dist/client/assets/collection-detail-Ci4PaZDZ.js +0 -1
  514. package/dist/client/assets/collection-display-button-M5aJUo3o.js +0 -1
  515. package/dist/client/assets/collection-search-iDX69NsY.js +0 -1
  516. package/dist/client/assets/collection-table-wrapper-DUXNrlj0.js +0 -1
  517. package/dist/client/assets/collection-tabs-Btzyx4la.js +0 -1
  518. package/dist/client/assets/combobox-CGjprg9s.js +0 -1
  519. package/dist/client/assets/command-ytn_tnST.js +0 -1
  520. package/dist/client/assets/companion-mcps-section-BZwowdx4.js +0 -1
  521. package/dist/client/assets/config-Bd79MTdh.js +0 -1
  522. package/dist/client/assets/connect-D6K3BOuu.js +0 -9
  523. package/dist/client/assets/connect-key-BgyRg9_8.js +0 -1
  524. package/dist/client/assets/connect-layout-CHffhcM0.js +0 -1
  525. package/dist/client/assets/connect-source-dialog-BrkeXVaf.js +0 -1
  526. package/dist/client/assets/connection-BcmeUmb6.js +0 -1
  527. package/dist/client/assets/connection-card-9KWWOsyf.js +0 -1
  528. package/dist/client/assets/connection-detail-CvpjGRKo.js +0 -1
  529. package/dist/client/assets/connection-form-helpers-DyPpXtcN.js +0 -1
  530. package/dist/client/assets/connection-slug-CITEG2zd.js +0 -1
  531. package/dist/client/assets/connections-_zwIIJ2v.js +0 -1
  532. package/dist/client/assets/content-changes-CNE9At5r.js +0 -1
  533. package/dist/client/assets/content-tab-BiBzF0EH.js +0 -19
  534. package/dist/client/assets/context-XiHOjzpF.js +0 -1
  535. package/dist/client/assets/context-menu-Bj3D0el2.js +0 -1
  536. package/dist/client/assets/context-shell-CxA0zyG6.js +0 -37
  537. package/dist/client/assets/create-organization-dialog-DsUazB1H.js +0 -1
  538. package/dist/client/assets/daily-pulse-_gDmSKnX.js +0 -1
  539. package/dist/client/assets/delete-copy-CeNI6mL4.js +0 -4
  540. package/dist/client/assets/device-hint-DvcUYNDc.js +0 -1
  541. package/dist/client/assets/discover-Ck-PA83R.js +0 -1
  542. package/dist/client/assets/domain-settings-CZXf4SXI.js +0 -1
  543. package/dist/client/assets/drawer-DqVxP8Jv.js +0 -1
  544. package/dist/client/assets/editor-DfvbkBkA.js +0 -11
  545. package/dist/client/assets/editor-classes-CrWfM1MO.js +0 -1
  546. package/dist/client/assets/empty-state-BCAKng4r.js +0 -1
  547. package/dist/client/assets/empty-state-BuApx5zE.js +0 -1
  548. package/dist/client/assets/experiments-tab-choice-CrtVzTZA.js +0 -1
  549. package/dist/client/assets/extract-connection-data-B4yl9vIy.js +0 -1
  550. package/dist/client/assets/feature-gate-mqgWP6c4.js +0 -1
  551. package/dist/client/assets/feature-paywall-B54yMXCw.js +0 -1
  552. package/dist/client/assets/file-explorer-BoRe4nLO.js +0 -2
  553. package/dist/client/assets/file-preview-CNB-KC8v.js +0 -1
  554. package/dist/client/assets/file-share-button-Cy_9rI2b.js +0 -3
  555. package/dist/client/assets/file-type-icon-Bx89indJ.js +0 -1
  556. package/dist/client/assets/folder-icon-DUpHLnVa.js +0 -1
  557. package/dist/client/assets/form-BaNm1ncd.js +0 -1
  558. package/dist/client/assets/frame-navigation-B224U8Y_.js +0 -1
  559. package/dist/client/assets/gateway-client-bpMJMTjo.js +0 -1
  560. package/dist/client/assets/general-5CYgVBPS.js +0 -1
  561. package/dist/client/assets/github-icon-BpIeoUa2.js +0 -1
  562. package/dist/client/assets/held-block-view-D72TIWbg.js +0 -3
  563. package/dist/client/assets/home-CsRZFTku.js +0 -1
  564. package/dist/client/assets/home-overview-B5P57iaw.js +0 -1
  565. package/dist/client/assets/hosted-reconcile-C45iSGuX.js +0 -1
  566. package/dist/client/assets/icon-button-Dbv0tgir.js +0 -1
  567. package/dist/client/assets/index-BAuQgwYT.js +0 -1
  568. package/dist/client/assets/index-BGjxecA_.js +0 -15
  569. package/dist/client/assets/index-BMmgvdyP.js +0 -273
  570. package/dist/client/assets/index-BX6V8n33.js +0 -26
  571. package/dist/client/assets/index-BhMBQY03.js +0 -5
  572. package/dist/client/assets/index-BppUTz25.js +0 -1
  573. package/dist/client/assets/index-Bt2hcW3a.js +0 -4
  574. package/dist/client/assets/index-CExQfe9w.js +0 -1
  575. package/dist/client/assets/index-CP8cgaO3.js +0 -1
  576. package/dist/client/assets/index-CayOD16X.js +0 -1
  577. package/dist/client/assets/index-CdgMBpv2.js +0 -1
  578. package/dist/client/assets/index-ChVfhev5.js +0 -1
  579. package/dist/client/assets/index-Cwm3EyiD.js +0 -69
  580. package/dist/client/assets/index-D2apPugj.js +0 -1
  581. package/dist/client/assets/index-DB_Dn83c.js +0 -4
  582. package/dist/client/assets/index-DgmYGyM_.js +0 -1
  583. package/dist/client/assets/index-Dz6Au5o9.js +0 -1
  584. package/dist/client/assets/index-redirect-BuEDvQ8L.js +0 -1
  585. package/dist/client/assets/infiniteQueryObserver-DC9OQ0m9.js +0 -1
  586. package/dist/client/assets/infra-billing-BI93EPBe.js +0 -1
  587. package/dist/client/assets/input-B920MtH-.js +0 -17
  588. package/dist/client/assets/input-DZhb5gtf.js +0 -1
  589. package/dist/client/assets/integration-icon-yZavC8dD.js +0 -1
  590. package/dist/client/assets/item-actions-BNADkYVK.js +0 -1
  591. package/dist/client/assets/jira-icon-B2ILXL5z.js +0 -1
  592. package/dist/client/assets/label-BsdPbIgn.js +0 -1
  593. package/dist/client/assets/layout-DucMG4HI.js +0 -1
  594. package/dist/client/assets/legacy-admin-welcome-dialog-CM6EIPbl.js +0 -1
  595. package/dist/client/assets/legacy-agents-deep-12lm0zGE.js +0 -1
  596. package/dist/client/assets/legacy-main-redirect-Cx7uczmy.js +0 -1
  597. package/dist/client/assets/library-D7y0iNOc.js +0 -1
  598. package/dist/client/assets/library-tab-BFZxpvsQ.js +0 -162
  599. package/dist/client/assets/login-W9rMHAzJ.js +0 -1
  600. package/dist/client/assets/markdown-D8V7Sgds.js +0 -93
  601. package/dist/client/assets/mcp-app-renderer-6BfN4jr_.js +0 -11
  602. package/dist/client/assets/mcp-oauth-CV_BFPFK.js +0 -1
  603. package/dist/client/assets/mcp-oauth-oZ6ObBXt.js +0 -1
  604. package/dist/client/assets/members-DA1VMkyL.js +0 -1
  605. package/dist/client/assets/memory-CpT3jFpR.js +0 -7
  606. package/dist/client/assets/mock-board-DhiEwpvi.js +0 -10
  607. package/dist/client/assets/monaco-editor-BHijSa_4.js +0 -9
  608. package/dist/client/assets/monitoring-BLbOknPH.js +0 -2
  609. package/dist/client/assets/monitoring-stats-row-CQs9NuZd.js +0 -1
  610. package/dist/client/assets/multi-select-C7NTvkrm.js +0 -1
  611. package/dist/client/assets/mustache-D7kq_Yqj.js +0 -4
  612. package/dist/client/assets/named-rule-step-kZSRS2dP.js +0 -1
  613. package/dist/client/assets/named-rule-view-BhbqwO4a.js +0 -1
  614. package/dist/client/assets/new-project-dialog-CvLgVi1-.js +0 -1
  615. package/dist/client/assets/new-project-store-CWyQMqrI.js +0 -1
  616. package/dist/client/assets/oauth-callback-BvhhBsQz.js +0 -1
  617. package/dist/client/assets/oauth-callback-ai-provider-XKzosB85.js +0 -1
  618. package/dist/client/assets/oauth-consent-DEpUn2te.js +0 -1
  619. package/dist/client/assets/onboarding-iRoED3QV.js +0 -1
  620. package/dist/client/assets/openai-conversation-D8RSnFpd.js +0 -3
  621. package/dist/client/assets/optimistic-project-sidebar-views-6oKfsAsw.js +0 -1
  622. package/dist/client/assets/order-monitor-day-CVt1HaIA.js +0 -1
  623. package/dist/client/assets/organization-choice-BCsBjf7I.js +0 -1
  624. package/dist/client/assets/orgs-Da42b86J.js +0 -1
  625. package/dist/client/assets/own-accounts-section-DEperHet.js +0 -1
  626. package/dist/client/assets/pair-DEUaOPDK.js +0 -48
  627. package/dist/client/assets/parse-sections-BB68bRGp.js +0 -4
  628. package/dist/client/assets/plan-CxtLu9wT.js +0 -1
  629. package/dist/client/assets/plan-ladder-i18YlQV6.js +0 -1
  630. package/dist/client/assets/plan-page-C_l5wK4D.js +0 -6
  631. package/dist/client/assets/plan-usage-card-IkpVS8ea.js +0 -6
  632. package/dist/client/assets/popover-CKMvJYaH.js +0 -1
  633. package/dist/client/assets/post-calendar-42sHEuRx.js +0 -1
  634. package/dist/client/assets/post-editor-ColELUaT.js +0 -2
  635. package/dist/client/assets/preview-content-Bv6qPjyh.js +0 -1
  636. package/dist/client/assets/preview-dialog-BuwKwjMK.js +0 -1
  637. package/dist/client/assets/preview-panel-DSz621Cs.js +0 -1
  638. package/dist/client/assets/preview-tab-CFHKxx-p.js +0 -557
  639. package/dist/client/assets/primitives-Bq_3Wf-F.js +0 -1
  640. package/dist/client/assets/product-picker-dialog-B8dooJYV.js +0 -1
  641. package/dist/client/assets/profile-9GFbHJcp.js +0 -1
  642. package/dist/client/assets/project-app-view-BQ1CAB4E.js +0 -1
  643. package/dist/client/assets/project-apps-BB_IT0O4.js +0 -1
  644. package/dist/client/assets/project-icon-CILSP45k.js +0 -1
  645. package/dist/client/assets/project-index-D61H4EqW.js +0 -1
  646. package/dist/client/assets/project-reports-CKBtbiia.js +0 -1
  647. package/dist/client/assets/project-tasks-BaEZY4A1.js +0 -1
  648. package/dist/client/assets/projects-C22YMJHR.js +0 -1
  649. package/dist/client/assets/projects-empty-state-Cf86B9rH.js +0 -1
  650. package/dist/client/assets/prompts-Cp_kGeWz.js +0 -1
  651. package/dist/client/assets/record-editor-Du5DKM3i.js +0 -1
  652. package/dist/client/assets/redirect-editor-DyM0niUo.js +0 -1
  653. package/dist/client/assets/reports-BpRTWO1W.js +0 -1
  654. package/dist/client/assets/reports-onboarding-CeNgniZp.js +0 -1
  655. package/dist/client/assets/reports-tMovwGp_.js +0 -3
  656. package/dist/client/assets/reports-tab-BFrGNtx7.js +0 -2
  657. package/dist/client/assets/repositories-D-AVXLcC.js +0 -1
  658. package/dist/client/assets/repositories-DbEf0xxS.js +0 -1
  659. package/dist/client/assets/repository-binding-CLXJrD2F.js +0 -1
  660. package/dist/client/assets/repository-picker-BwrS_UEr.js +0 -1
  661. package/dist/client/assets/require-capability-BkfUGtJ4.js +0 -1
  662. package/dist/client/assets/required-auth-layout-BEVFmsHo.js +0 -1
  663. package/dist/client/assets/reset-password-ChOWZdKi.js +0 -1
  664. package/dist/client/assets/resizable-Cq7yFaMK.js +0 -1
  665. package/dist/client/assets/resolve-tab-icon-Bme8i971.js +0 -1
  666. package/dist/client/assets/review-settings-Dpc0SWV9.js +0 -1
  667. package/dist/client/assets/role-color-vHx_DAVI.js +0 -1
  668. package/dist/client/assets/roles-BX-2fwsw.js +0 -1
  669. package/dist/client/assets/route-C_DrCiSk.js +0 -1
  670. package/dist/client/assets/route-MWqHbops.js +0 -1
  671. package/dist/client/assets/route-NgHZ55sL.js +0 -1
  672. package/dist/client/assets/route-page-header-Dy5tce6D.js +0 -1
  673. package/dist/client/assets/sandbox-git-api-C3a7TLkx.js +0 -1
  674. package/dist/client/assets/sandbox-lifecycle-context-D3H00c3v.js +0 -1
  675. package/dist/client/assets/save-status-q5Dh_h2L.js +0 -1
  676. package/dist/client/assets/schema-BYOuoNw0.js +0 -1
  677. package/dist/client/assets/schema-CVPWx_yq.js +0 -1
  678. package/dist/client/assets/scroll-area-CfhdnDFt.js +0 -1
  679. package/dist/client/assets/search-input-CRRC_fWB.js +0 -1
  680. package/dist/client/assets/search-toggle-DZ2_2vgS.js +0 -1
  681. package/dist/client/assets/secret-picker-DlGRU-W3.js +0 -1
  682. package/dist/client/assets/secrets-ClhyBGRJ.js +0 -1
  683. package/dist/client/assets/section-array-field-rwGu-Qtr.js +0 -1
  684. package/dist/client/assets/sections-FOH8L8Lj.js +0 -1
  685. package/dist/client/assets/sections-editor-BNh4K-LH.js +0 -1
  686. package/dist/client/assets/select-Di5ANHUA.js +0 -1
  687. package/dist/client/assets/select-model-D5MRe0ZA.js +0 -1
  688. package/dist/client/assets/seo-editor-DTv-SJUd.js +0 -1
  689. package/dist/client/assets/separator-CO3x7tuo.js +0 -1
  690. package/dist/client/assets/session-runtime-ClRShm8T.js +0 -1
  691. package/dist/client/assets/settings-tab-B6QE6RyR.js +0 -1
  692. package/dist/client/assets/sheet-CFau8JoI.js +0 -1
  693. package/dist/client/assets/shell-layout-G2iXBjw3.js +0 -1
  694. package/dist/client/assets/site-draft-actions-Tq4wYUsu.js +0 -7
  695. package/dist/client/assets/site-draft-view-BuAhhomp.js +0 -1
  696. package/dist/client/assets/site-editor-BpVrO5I3.js +0 -1
  697. package/dist/client/assets/site-editor-toast-Coqou6or.js +0 -1
  698. package/dist/client/assets/skills-DXpwwG_L.js +0 -1
  699. package/dist/client/assets/slider-D8kQwdg9.js +0 -1
  700. package/dist/client/assets/sortable.esm-CEKuuK2i.js +0 -1
  701. package/dist/client/assets/sso-BXOx3buW.js +0 -1
  702. package/dist/client/assets/suggestion-C9J_wxr2.js +0 -2
  703. package/dist/client/assets/super-agent-icon-xHVDQIeV.js +0 -1
  704. package/dist/client/assets/switch-C_NPIZ5s.js +0 -1
  705. package/dist/client/assets/synced-repos-y1pbyNVO.js +0 -1
  706. package/dist/client/assets/tab-icon-glyph-B1LxUXUa.js +0 -1
  707. package/dist/client/assets/table-C0MdJiMz.js +0 -1
  708. package/dist/client/assets/tabs-CBGIDsQ6.js +0 -1
  709. package/dist/client/assets/task-board-g92HFb2J.js +0 -1
  710. package/dist/client/assets/task-key-CPvb47F-.js +0 -5
  711. package/dist/client/assets/task-route-BrlW4p8V.js +0 -1
  712. package/dist/client/assets/task-status-Dr_Gxqv3.js +0 -1
  713. package/dist/client/assets/taskboard-analytics-BoxYGZIv.js +0 -1
  714. package/dist/client/assets/tasks-B9bumv8s.js +0 -1
  715. package/dist/client/assets/tasks-BPM2YYB6.js +0 -4
  716. package/dist/client/assets/textarea-Cvk1urHb.js +0 -1
  717. package/dist/client/assets/thread-analytics-DRQdXilR.js +0 -1
  718. package/dist/client/assets/thread-button-7-27_BzH.js +0 -1
  719. package/dist/client/assets/thread-intent-Cu3cd8uc.js +0 -15
  720. package/dist/client/assets/thread-route-CB-N9w0l.js +0 -1
  721. package/dist/client/assets/thread-route-D-baj20o.js +0 -1
  722. package/dist/client/assets/thread-sheet-body-CRPIpLbZ.js +0 -1
  723. package/dist/client/assets/time-range-picker-Cd_RKSqA.js +0 -1
  724. package/dist/client/assets/toggle-group-DtbUkQGD.js +0 -1
  725. package/dist/client/assets/tool-set-selector-CYQ6kPG7.js +0 -1
  726. package/dist/client/assets/toolbar-icon-button-BQYtg1BA.js +0 -1
  727. package/dist/client/assets/tooltip-onAt6mjf.js +0 -1
  728. package/dist/client/assets/tooltipContext-JevyhW8a.js +0 -1
  729. package/dist/client/assets/track-DlyW4w72.js +0 -1
  730. package/dist/client/assets/types-B0-EO3Nz.js +0 -77
  731. package/dist/client/assets/url-slug-DBrcBZs3.js +0 -1
  732. package/dist/client/assets/usage-stats-C2NScOkv.js +0 -141
  733. package/dist/client/assets/use-ai-providers-DqbAZoXL.js +0 -1
  734. package/dist/client/assets/use-api-keys-SB8nK55B.js +0 -1
  735. package/dist/client/assets/use-apply-named-rule-CUSu9Nmp.js +0 -1
  736. package/dist/client/assets/use-ask-in-chat-CBmnPyLe.js +0 -1
  737. package/dist/client/assets/use-automations-DraCvvb5.js +0 -1
  738. package/dist/client/assets/use-autosave-CIXPUT0Y.js +0 -1
  739. package/dist/client/assets/use-blocks-v8-project-b59Z7CJU.js +0 -1
  740. package/dist/client/assets/use-blog-view-DfO2XREC.js +0 -1
  741. package/dist/client/assets/use-chat-layout-state-DRdyp_S-.js +0 -1
  742. package/dist/client/assets/use-cms-publish-actions-f6twx8VR.js +0 -10
  743. package/dist/client/assets/use-connect-companion-BbqIpor1.js +0 -1
  744. package/dist/client/assets/use-connection-DDQwEkLl.js +0 -1
  745. package/dist/client/assets/use-content-sync-BK8UJ--A.js +0 -1
  746. package/dist/client/assets/use-copy-AklJlq6l.js +0 -1
  747. package/dist/client/assets/use-current-view-CPSxcL3G.js +0 -1
  748. package/dist/client/assets/use-date-fns-locale-C6VxBk8K.js +0 -1
  749. package/dist/client/assets/use-debounced-autosave-B0kz-rMN.js +0 -1
  750. package/dist/client/assets/use-debounced-value-C0m9d99A.js +0 -1
  751. package/dist/client/assets/use-deco-credits-7oQsseQ9.js +0 -1
  752. package/dist/client/assets/use-decopilot-events-DV_tbPtl.js +0 -1
  753. package/dist/client/assets/use-delete-block-DCxtUQOn.js +0 -1
  754. package/dist/client/assets/use-delete-connection-DXaUCvqe.js +0 -1
  755. package/dist/client/assets/use-deployment-admin-BljDa5Bu.js +0 -1
  756. package/dist/client/assets/use-entitlements-BAwQwBa5.js +0 -1
  757. package/dist/client/assets/use-fast-preview-draft-url-CVWsv9CY.js +0 -1
  758. package/dist/client/assets/use-file-configs-D7b25syW.js +0 -1
  759. package/dist/client/assets/use-id-selection-COm6_IAg.js +0 -1
  760. package/dist/client/assets/use-in-settings-BeNAckmx.js +0 -1
  761. package/dist/client/assets/use-inbox-feed-D03ErDaq.js +0 -1
  762. package/dist/client/assets/use-infinite-scroll-C4Z2ynmw.js +0 -1
  763. package/dist/client/assets/use-join-requests-DbnRA27e.js +0 -1
  764. package/dist/client/assets/use-main-panel-tabs-WmnkoW-U.js +0 -1
  765. package/dist/client/assets/use-mcp-auth-status-B_4XtG5u.js +0 -1
  766. package/dist/client/assets/use-mcp-client-D-cTJfDR.js +0 -10
  767. package/dist/client/assets/use-mcp-prompts-B-75xSaN.js +0 -1
  768. package/dist/client/assets/use-mcp-tools-EqIk5sWe.js +0 -1
  769. package/dist/client/assets/use-mobile-0mea_Z-0.js +0 -1
  770. package/dist/client/assets/use-move-blocks-DM1425zY.js +0 -1
  771. package/dist/client/assets/use-navigate-to-agent-D-E94JGh.js +0 -1
  772. package/dist/client/assets/use-never-published-CMjfqWp4.js +0 -1
  773. package/dist/client/assets/use-org-fs-CiPkuCLc.js +0 -1
  774. package/dist/client/assets/use-org-notice-BVOjQvwT.js +0 -1
  775. package/dist/client/assets/use-org-repo-syncs-DEKQsTB4.js +0 -1
  776. package/dist/client/assets/use-org-sso-CGwCAGCo.js +0 -1
  777. package/dist/client/assets/use-organization-settings-C__c5w3v.js +0 -1
  778. package/dist/client/assets/use-panel-navigate-5WEiNzDG.js +0 -1
  779. package/dist/client/assets/use-project-native-view-presence-Cu22oXrh.js +0 -1
  780. package/dist/client/assets/use-project-scope-DRrw6nxr.js +0 -1
  781. package/dist/client/assets/use-recent-apps-C-t1e-Ku.js +0 -1
  782. package/dist/client/assets/use-reports-diagnostic-BICw9GAF.js +0 -1
  783. package/dist/client/assets/use-sandbox-events-DnkkMJds.js +0 -2
  784. package/dist/client/assets/use-secrets-D6650Sy-.js +0 -1
  785. package/dist/client/assets/use-section-preview-base-DT5e4pyX.js +0 -1
  786. package/dist/client/assets/use-sidebar-collapsed-Cfg9nZE8.js +0 -1
  787. package/dist/client/assets/use-tags-Og9trWKN.js +0 -1
  788. package/dist/client/assets/use-task-board-analytics-BLI3sTZK.js +0 -1
  789. package/dist/client/assets/use-task-board-item-prs-DeMf4M18.js +0 -1
  790. package/dist/client/assets/use-task-board-items-Ci7e8zOt.js +0 -1
  791. package/dist/client/assets/use-task-board-prompts-BtG_cTBL.js +0 -1
  792. package/dist/client/assets/use-task-metadata-CmH5A72m.js +0 -1
  793. package/dist/client/assets/use-thread-outputs-C3j8E_0I.js +0 -1
  794. package/dist/client/assets/use-view-draft-kind-Cn-cuGlE.js +0 -1
  795. package/dist/client/assets/use-voice-input-3XxheJL_.js +0 -1
  796. package/dist/client/assets/useInfiniteQuery-fo1UgepG.js +0 -1
  797. package/dist/client/assets/useQueries-Clz1ECPW.js +0 -1
  798. package/dist/client/assets/useSuspenseInfiniteQuery-BG0LO28C.js +0 -1
  799. package/dist/client/assets/users-BqP7_SVW.js +0 -1
  800. package/dist/client/assets/utils-BWtGOAbe.js +0 -4
  801. package/dist/client/assets/variant-calendar-VOOk6HE5.js +0 -1
  802. package/dist/client/assets/variant-matcher-override-DVQvWv8V.js +0 -1
  803. package/dist/client/assets/view-header-J91fl_Ku.js +0 -1
  804. package/dist/client/assets/virtual-mcp-BExHFzN_.js +0 -1
  805. package/dist/client/assets/watch-sse-pool-C17fWLa7.js +0 -1
@@ -1 +0,0 @@
1
- import{ii as ti,bu as ni,c as wn,b as Rn,r as b,m as le,j as r,cd as si,br as Cs,ij as Mo,B as It,Y as on,ax as ri,_ as oi,bt as ai,Z as ii,q as li,ik as bs,hO as ci,il as ui,im as di,h as fi,bv as wt,io as Qr,ip as xs,iq as mi,ir as pt,is as Xr,it as pi,fW as hi,iu as gi,iv as Yr,iw as vi,t as H,fA as Zr,ix as yi,iy as Bt,iz as Si,iA as bi,iB as xi,fo as eo,iC as _s,iD as _i,iE as ki,iF as wi,fl as Ri,fX as ji,iG as Ei,iH as Vi,fz as Ti,K as Ai,iI as to,eT as Ni,fP as Hn,fU as no,iJ as so,iK as Ci,iL as Pi,iM as Bi,iN as Ki,iO as Di,iP as Mi,iQ as ro,iR as Fi,iS as Ii,fn as oo,iT as Li,iU as Oi,fR as ao,iV as zi,fj as $i}from"./index-BMmgvdyP.js";import{u as Wi}from"./chat-context-BTezEUIM.js";import{a as Zn,M as io}from"./save-status-q5Dh_h2L.js";import{p as kn,f as Hi,n as qi}from"./parse-sections-BB68bRGp.js";import{a as Gi}from"./repository-binding-CLXJrD2F.js";import{t as Ui}from"./ChevronDown-CNsLQB9X.js";import{d as Fo,b as Ji}from"./UserCheck01-Cf1MRytQ.js";import{n as Qi}from"./ChevronUp-BIDp2ptm.js";import{b as Yn,e as Xi,Q as lo,L as co}from"./agent-icon-CQr8igXA.js";import{S as an}from"./scroll-area-CfhdnDFt.js";import{c as Rt,T as jt,a as Et}from"./tooltip-onAt6mjf.js";import{g as Yi,h as Zi,i as el,E as tl,j as nl,V as sl,k as rl,l as ol,G as al,s as Jn,v as Qn,u as il,a as qn,p as Io,m as ll,n as cl,c as uo,o as ul,q as dl,A as Gn,P as fo,w as mo,x as po,y as ks,z as fl,B as ml,D as ho,F as pl,J as go,K as vo,L as yo,M as hl,Q as So,T as ln,U as gl,W as vl}from"./held-block-view-D72TIWbg.js";import{j as yl,u as Sl,i as bl,v as xl,aB as _l,U as kl,k as bo,aU as xo,a9 as Kt,aa as Dt,aq as wl,aV as Rl,aW as jl,aO as _o,at as El,aA as Vl}from"./site-editor-toast-Coqou6or.js";import{u as Tl,ao as ko,c as wo,k as Al,A as Nl,ad as Cl,ae as Pl,aj as Bl}from"./blocks-tab-states-CH65ZuMR.js";import{u as Kl}from"./use-delete-block-DCxtUQOn.js";import{b as Dl,u as Ml,k as Un,e as xn}from"./use-never-published-CMjfqWp4.js";import{b as Es,f as Lo}from"./UserSquare-Bxa1cuC8.js";import{b as Fl}from"./MessageCircle01-xkB-KYwl.js";import{i as Ro}from"./Tool01-XkpyIGeg.js";import{s as jo}from"./Eye-C8IBFOJ4.js";import{s as Il}from"./Plus-T4a-gWso.js";import{s as Ll}from"./Trash01-57nd_Led.js";import{i as Vs}from"./Zap-Bp9tzS_i.js";import{u as Ol,a as Eo,n as zl,P as $l,o as Wl,C as Hl,D as ql,c as Gl}from"./task-key-CPvb47F-.js";import{u as Ul,s as Jl,a as Xn,S as Ql,v as Xl}from"./sortable.esm-CEKuuK2i.js";import{s as Yl,g as Zl,u as ec,A as tc}from"./use-section-preview-base-DT5e4pyX.js";import{m as nc,P as sc}from"./mustache-D7kq_Yqj.js";import{aR as Vo,aS as rc,X as oc,aT as ac,aU as ic,k as lc}from"./category-tree-DaQvlJrH.js";import{u as cc,a as uc,P as To,w as dc,b as fc}from"./seo-editor-DTv-SJUd.js";import{v as mc,k as ws,x as Ao,j as pc,y as hc}from"./named-rule-step-kZSRS2dP.js";import{u as gc}from"./use-apply-named-rule-CUSu9Nmp.js";import{o as Jt,f as Ts,y as As,q as Ft,h as cn,u as vc,n as Ut,r as Rs,m as Mt,k as _n,b as yc,s as No,z as Sc,A as bc,B as xc}from"./section-array-field-rwGu-Qtr.js";import{b as Co,a as _c}from"./variant-matcher-override-DVQvWv8V.js";import"./use-panel-navigate-5WEiNzDG.js";import"./thread-route-CB-N9w0l.js";import"./use-project-scope-DRrw6nxr.js";import"./use-view-draft-kind-Cn-cuGlE.js";import"./use-blog-view-DfO2XREC.js";import"./use-organization-settings-C__c5w3v.js";import"./schema-BYOuoNw0.js";import"./task-board-g92HFb2J.js";import"./thread-intent-Cu3cd8uc.js";import"./use-mcp-client-D-cTJfDR.js";import"./auth-BgrYkUnI.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C17fWLa7.js";import"./session-runtime-ClRShm8T.js";import"./use-entitlements-BAwQwBa5.js";import"./use-ai-providers-DqbAZoXL.js";import"./use-current-view-CPSxcL3G.js";import"./use-in-settings-BeNAckmx.js";import"./use-decopilot-events-DV_tbPtl.js";import"./use-org-fs-CiPkuCLc.js";import"./useInfiniteQuery-fo1UgepG.js";import"./infiniteQueryObserver-DC9OQ0m9.js";import"./Image01-BQ_N_-hp.js";import"./Upload01-puJlDWvm.js";import"./label-BsdPbIgn.js";import"./SwitchHorizontal01-CyqXFb8X.js";import"./popover-CKMvJYaH.js";import"./switch-C_NPIZ5s.js";import"./toggle-group-DtbUkQGD.js";import"./active-indicator-CCMhAsc_.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-D7b25syW.js";import"./asset-utils-KFwxVdDm.js";import"./AlertCircle-zs-4VsZH.js";import"./hosted-reconcile-C45iSGuX.js";import"./SearchMd-DEhP1OXm.js";import"./textarea-Cvk1urHb.js";import"./use-copy-AklJlq6l.js";import"./ChevronSelectorVertical-Bcno_AMM.js";import"./command-ytn_tnST.js";import"./index-BAuQgwYT.js";import"./Play-CMB9KZlr.js";import"./monaco-editor-BHijSa_4.js";import"./editor-DfvbkBkA.js";import"./ArrowUp-Dee6sHNv.js";import"./ArrowLeft-C6W2V0Wz.js";import"./ArrowRight-KrRhtVTs.js";import"./BookOpen01-CbTlL5fO.js";import"./Globe04-CFnmWCFT.js";import"./CheckCircle-COSnGnjh.js";import"./LinkBroken01-JnPrABUL.js";import"./CreditCard01-DpMmVef7.js";import"./File02-BPE81X6H.js";import"./Fingerprint04-D2sxs8Jp.js";import"./Flag01-DJexopqk.js";import"./Key01-YbIqec_5.js";import"./LayoutLeft-B398oVOF.js";import"./Minus-CeSa2hYk.js";import"./Monitor01-vFwnyrQW.js";import"./Sun-BUcQiIPl.js";import"./ShoppingBag01-Dmv3_STe.js";import"./Users01-ktVAj2Ya.js";import"./XClose-C0dMm0LD.js";import"./index-BdQq_4o_.js";import"./index-D2apPugj.js";import"./utils-BWtGOAbe.js";import"./calendar-oaD7GIMY.js";import"./usage-stats-C2NScOkv.js";import"./utils-CVEq3hMx.js";import"./markdown-D8V7Sgds.js";import"./use-mobile-0mea_Z-0.js";import"./gateway-client-bpMJMTjo.js";import"./form-BaNm1ncd.js";import"./select-Di5ANHUA.js";import"./editor-classes-CrWfM1MO.js";import"./combobox-CGjprg9s.js";import"./content-changes-CNE9At5r.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-DnkkMJds.js";import"./use-blocks-v8-project-b59Z7CJU.js";import"./use-voice-input-3XxheJL_.js";import"./drawer-DqVxP8Jv.js";import"./index-Bt2hcW3a.js";import"./checkbox-29nVCrNH.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./sandbox-git-api-C3a7TLkx.js";import"./empty-state-BuApx5zE.js";import"./search-input-CRRC_fWB.js";import"./tabs-CBGIDsQ6.js";import"./use-debounced-value-C0m9d99A.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DEUaOPDK.js";import"./collapsible-3XVKS3uw.js";import"./use-task-board-items-Ci7e8zOt.js";import"./config-Bd79MTdh.js";import"./task-route-BrlW4p8V.js";import"./project-index-D61H4EqW.js";import"./shell-layout-G2iXBjw3.js";import"./use-deployment-admin-BljDa5Bu.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BVOjQvwT.js";import"./integration-icon-yZavC8dD.js";import"./project-icon-CILSP45k.js";import"./use-navigate-to-agent-D-E94JGh.js";import"./new-project-dialog-CvLgVi1-.js";import"./repository-picker-BwrS_UEr.js";import"./github-icon-BpIeoUa2.js";import"./collection-search-iDX69NsY.js";import"./new-project-store-CWyQMqrI.js";import"./legacy-admin-welcome-dialog-CM6EIPbl.js";import"./required-auth-layout-BEVFmsHo.js";import"./use-org-sso-CGwCAGCo.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-6BfN4jr_.js";import"./types-B0-EO3Nz.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-CFau8JoI.js";import"./use-connection-DDQwEkLl.js";import"./use-mcp-prompts-B-75xSaN.js";import"./use-thread-outputs-C3j8E_0I.js";import"./file-type-icon-Bx89indJ.js";import"./slider-D8kQwdg9.js";import"./index-Dz6Au5o9.js";import"./tooltipContext-JevyhW8a.js";import"./CategoricalChart-CArIOb7V.js";import"./index-BppUTz25.js";import"./use-move-blocks-DM1425zY.js";const kc={escape:Yi};function wc(g,e){for(const p of Yl(g,e)){const S=typeof p.title=="string"?p.title:void 0;if(S?.includes("{{"))return S}}function Rc(g,e){if(!e)return;const p=ti(g,ni(e));if(p)try{const S=wc(p.resolveType,e);return S&&nc.render(S,p.data,{},kc).trim()||void 0}catch{return}}function jc(g){const e=wn.c(13),{icon:p,label:S,className:x}=g;let V;e[0]!==x?(V=le("size-3.5",x),e[0]=x,e[1]=V):V=e[1];let C;e[2]!==p||e[3]!==V?(C=r.jsx(p,{className:V}),e[2]=p,e[3]=V,e[4]=C):C=e[4];let _;e[5]!==S||e[6]!==C?(_=r.jsx(jt,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":S,className:"shrink-0 cursor-help",children:C})}),e[5]=S,e[6]=C,e[7]=_):_=e[7];let P;e[8]!==S?(P=r.jsx(Et,{className:"max-w-56",children:S}),e[8]=S,e[9]=P):P=e[9];let k;return e[10]!==_||e[11]!==P?(k=r.jsxs(Rt,{children:[_,P]}),e[10]=_,e[11]=P,e[12]=k):k=e[12],k}const Ec="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function Po(g){return Array.from({length:g},(e,p)=>({id:crypto.randomUUID(),index:p}))}function Oo(g){return g.map((e,p)=>({...e,index:p}))}function Vc(g,e){if(e===g.length)return g;if(e<g.length)return Oo(g.slice(0,e));const p=Array.from({length:e-g.length},(S,x)=>({id:crypto.randomUUID(),index:g.length+x}));return[...g,...p]}function zo(g){const e=wn.c(44),{section:p,raw:S,meta:x,decofile:V}=g,C=Rn(),_=Zn(),P=p.isSavedBlock===!0,k=p.isMultivariate===!0;let Y;e[0]!==x||e[1]!==S?(Y=S&&x?Zl(S,x):void 0,e[0]=x,e[1]=S,e[2]=Y):Y=e[2];const ge=Y;let Ue;e[3]!==x||e[4]!==k||e[5]!==S||e[6]!==P?(Ue=S&&x&&!P&&!k?Rc(S,x):void 0,e[3]=x,e[4]=k,e[5]=S,e[6]=P,e[7]=Ue):Ue=e[7];const Le=Ue;let Ce;e[8]!==V||e[9]!==x||e[10]!==S||e[11]!==p?(Ce=rl(S,p,V,x),e[8]=V,e[9]=x,e[10]=S,e[11]=p,e[12]=Ce):Ce=e[12];const Je=Ce;let w;e[13]!==k||e[14]!==S?.__resolveType?(w=!k&&Cs(S?.__resolveType??""),e[13]=k,e[14]=S?.__resolveType,e[15]=w):w=e[15];const c=w,xe=P?Yn:k?Fo:Lo;let G;e[16]!==k||e[17]!==P?(G=P?{color:ai}:k?{color:"oklch(0.65 0.15 160)"}:void 0,e[16]=k,e[17]=P,e[18]=G):G=e[18];const _e=G;let F;e[19]!==xe||e[20]!==_?(F=_?r.jsxs("span",{className:"relative size-4 shrink-0",children:[r.jsx(xe,{className:"absolute inset-0 size-4 text-muted-foreground transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"}),r.jsx(al,{"aria-hidden":!0,className:"absolute inset-0 size-4 opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100"})]}):r.jsx(Fl,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[19]=xe,e[20]=_,e[21]=F):F=e[21];let ke;e[22]!==ge?(ke=ge&&r.jsx("img",{src:ge,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover"}),e[22]=ge,e[23]=ke):ke=e[23];let d;e[24]!==_||e[25]!==_e?(d=!_&&r.jsx(Es,{className:"h-4 w-4 shrink-0",style:_e}),e[24]=_,e[25]=_e,e[26]=d):d=e[26];const Oe=_?"shrink":"flex-1",u=p.isHidden&&"line-through opacity-50";let Ee;e[27]!==u||e[28]!==Oe?(Ee=le("min-w-0 truncate text-sm font-medium",Oe,u),e[27]=u,e[28]=Oe,e[29]=Ee):Ee=e[29];const Z=Le??p.label;let ze;e[30]!==Ee||e[31]!==Z?(ze=r.jsx("span",{className:Ee,children:Z}),e[30]=Ee,e[31]=Z,e[32]=ze):ze=e[32];let nt;e[33]!==c||e[34]!==_||e[35]!==Je||e[36]!==C?(nt=_?r.jsxs(r.Fragment,{children:[c&&r.jsx(jc,{icon:Vs,label:C("sectionsEditor.sectionList.asyncBadge"),className:"text-muted-foreground"}),Je&&r.jsx(io,{}),r.jsx("span",{className:"min-w-0 flex-1"})]}):Je&&r.jsx(io,{className:"absolute -right-0.5 -top-0.5"}),e[33]=c,e[34]=_,e[35]=Je,e[36]=C,e[37]=nt):nt=e[37];let Pe;return e[38]!==ze||e[39]!==nt||e[40]!==F||e[41]!==ke||e[42]!==d?(Pe=r.jsxs(r.Fragment,{children:[F,ke,d,ze,nt]}),e[38]=ze,e[39]=nt,e[40]=F,e[41]=ke,e[42]=d,e[43]=Pe):Pe=e[43],Pe}const Tc="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",Ac="text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]";function $o(g,e,p){if(p)return ol({selected:e});const S=g.isSavedBlock===!0,x=g.isMultivariate===!0;return le("group relative flex select-none items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] px-2 py-2.5",e?"bg-accent text-accent-foreground":S?Tc:x?Ac:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function js(g,e){return le("h-7 shrink-0 overflow-hidden",e?"w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]":g?"w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100":"w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]")}function Nc(g){const e=wn.c(90),{section:p,raw:S,meta:x,decofile:V,sortableId:C,selected:_,onSelect:P,onDelete:k,onDuplicate:Y,onMakeReusable:ge,onToggleHidden:Ue,onToggleLazy:Le,onAddVariant:Ce,onDetach:Je}=g,w=Rn(),c=Zn(),xe=S?Cs(S.__resolveType??""):!1,G=p.isHidden===!0,_e=xe||G;let F;e[0]!==p?(F=Mo(p),e[0]=p,e[1]=F):F=e[1];const ke=F,d=!!Le&&!p.isMultivariate;let Oe;e[2]!==C?(Oe={id:C,animateLayoutChanges:Bc},e[2]=C,e[3]=Oe):Oe=e[3];const{attributes:u,listeners:Ee,setNodeRef:Z,transform:ze,isDragging:nt}=Ul(Oe);let Pe;e[4]!==ze?(Pe=Hl.Transform.toString(ze?{...ze,x:0}:null),e[4]=ze,e[5]=Pe):Pe=e[5];const st=nt?0:void 0;let de;e[6]!==Pe||e[7]!==st?(de={transform:Pe,opacity:st},e[6]=Pe,e[7]=st,e[8]=de):de=e[8];const v=de;let we;e[9]!==p?(we=el(p),e[9]=p,e[10]=we):we=e[10];const rt=we,ot="button",m=0;let I;e[11]!==P?(I=M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),P())},e[11]=P,e[12]=I):I=e[12];const Ze=nt?"cursor-grabbing":"cursor-pointer";let A;e[13]!==c||e[14]!==p||e[15]!==_||e[16]!==Ze?(A=le("touch-none transition-colors",Ze,$o(p,_,c)),e[13]=c,e[14]=p,e[15]=_,e[16]=Ze,e[17]=A):A=e[17];let Qe;e[18]!==V||e[19]!==x||e[20]!==S||e[21]!==p?(Qe=r.jsx(zo,{section:p,raw:S,meta:x,decofile:V}),e[18]=V,e[19]=x,e[20]=S,e[21]=p,e[22]=Qe):Qe=e[22];const W=!c&&d&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon","aria-label":w(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:le(js(_e,xe)),onClick:M=>{M.stopPropagation(),Le?.()},onPointerDown:Pc,children:r.jsx(Vs,{className:le("h-3.5 w-3.5",xe&&"text-warning")})})}),r.jsx(Et,{side:"bottom",children:w(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),at=c?r.jsx(tl,{label:w(G?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),active:G,onToggle:Ue,children:G?r.jsx(Ro,{className:"h-3.5 w-3.5"}):r.jsx(jo,{className:"h-3.5 w-3.5"})}):r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon","aria-label":w(G?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:le(js(_e,G)),onClick:M=>{M.stopPropagation(),Ue()},onPointerDown:Cc,children:G?r.jsx(Ro,{className:"h-3.5 w-3.5"}):r.jsx(jo,{className:"h-3.5 w-3.5"})})}),r.jsx(Et,{side:"bottom",children:w(G?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),fe=oi,Xe=nl;let ve;e[23]!==w?(ve=w("sectionsEditor.sectionList.sectionActionsMenu"),e[23]=w,e[24]=ve):ve=e[24];const it=le(js(_e,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let $e;e[25]!==Xe||e[26]!==ve||e[27]!==it?($e=r.jsx(Xe,{label:ve,classicClassName:it}),e[25]=Xe,e[26]=ve,e[27]=it,e[28]=$e):$e=e[28];let Be;e[29]!==c||e[30]!==d||e[31]!==xe||e[32]!==Le||e[33]!==w?(Be=c&&d&&r.jsxs(r.Fragment,{children:[r.jsxs(on,{onClick:M=>{M.stopPropagation(),Le?.()},children:[r.jsx(Vs,{className:"h-4 w-4"}),w(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")]}),r.jsx(ri,{})]}),e[29]=c,e[30]=d,e[31]=xe,e[32]=Le,e[33]=w,e[34]=Be):Be=e[34];let Ke;e[35]!==Y?(Ke=M=>{M.stopPropagation(),Y()},e[35]=Y,e[36]=Ke):Ke=e[36];let se;e[37]===Symbol.for("react.memo_cache_sentinel")?(se=r.jsx(Xi,{className:"h-4 w-4"}),e[37]=se):se=e[37];let X;e[38]!==w?(X=w("sectionsEditor.sectionList.duplicateMenuItem"),e[38]=w,e[39]=X):X=e[39];let ee;e[40]!==Ke||e[41]!==X?(ee=r.jsxs(on,{onClick:Ke,children:[se,X]}),e[40]=Ke,e[41]=X,e[42]=ee):ee=e[42];let D;e[43]!==c||e[44]!==ke||e[45]!==Ce||e[46]!==w?(D=ke&&r.jsxs(on,{className:le(!c&&sl),onClick:M=>{M.stopPropagation(),Ce()},children:[r.jsx(Fo,{className:"h-4 w-4"}),w("sectionsEditor.sectionList.addVariantMenuItem")]}),e[43]=c,e[44]=ke,e[45]=Ce,e[46]=w,e[47]=D):D=e[47];let T;e[48]!==c||e[49]!==rt||e[50]!==ge||e[51]!==w?(T=rt&&r.jsxs(on,{className:le(!c&&Ec),onClick:M=>{M.stopPropagation(),ge()},children:[c?r.jsx(Yn,{className:"h-4 w-4"}):r.jsx(Es,{className:"h-4 w-4"}),w("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[48]=c,e[49]=rt,e[50]=ge,e[51]=w,e[52]=T):T=e[52];let me;e[53]!==c||e[54]!==Je||e[55]!==p.isMultivariate||e[56]!==p.isSavedBlock||e[57]!==w?(me=p.isSavedBlock===!0&&!p.isMultivariate&&r.jsxs(on,{onClick:M=>{M.stopPropagation(),Je()},children:[c?r.jsx(Lo,{className:"h-4 w-4"}):r.jsx(Es,{className:"h-4 w-4"}),w("sectionsEditor.sectionList.detachMenuItem")]}),e[53]=c,e[54]=Je,e[55]=p.isMultivariate,e[56]=p.isSavedBlock,e[57]=w,e[58]=me):me=e[58];let We;e[59]!==k?(We=M=>{M.stopPropagation(),k()},e[59]=k,e[60]=We):We=e[60];let et;e[61]===Symbol.for("react.memo_cache_sentinel")?(et=r.jsx(Ll,{className:"h-4 w-4"}),e[61]=et):et=e[61];let De;e[62]!==w?(De=w("sectionsEditor.sectionList.deleteMenuItem"),e[62]=w,e[63]=De):De=e[63];let $;e[64]!==We||e[65]!==De?($=r.jsxs(on,{variant:"destructive",onClick:We,children:[et,De]}),e[64]=We,e[65]=De,e[66]=$):$=e[66];let ie;e[67]!==Be||e[68]!==ee||e[69]!==D||e[70]!==T||e[71]!==me||e[72]!==$?(ie=r.jsxs(ii,{align:"end",className:"w-44",children:[Be,ee,D,T,me,$]}),e[67]=Be,e[68]=ee,e[69]=D,e[70]=T,e[71]=me,e[72]=$,e[73]=ie):ie=e[73];let Ve;e[74]!==fe||e[75]!==$e||e[76]!==ie?(Ve=r.jsxs(fe,{children:[$e,ie]}),e[74]=fe,e[75]=$e,e[76]=ie,e[77]=Ve):Ve=e[77];let Te;return e[78]!==u||e[79]!==Ee||e[80]!==P||e[81]!==Z||e[82]!==v||e[83]!==A||e[84]!==Qe||e[85]!==W||e[86]!==at||e[87]!==Ve||e[88]!==I?(Te=r.jsxs("div",{ref:Z,style:v,...u,...Ee,role:ot,tabIndex:m,onClick:P,onKeyDown:I,className:A,children:[Qe,W,at,Ve]}),e[78]=u,e[79]=Ee,e[80]=P,e[81]=Z,e[82]=v,e[83]=A,e[84]=Qe,e[85]=W,e[86]=at,e[87]=Ve,e[88]=I,e[89]=Te):Te=e[89],Te}function Cc(g){return g.stopPropagation()}function Pc(g){return g.stopPropagation()}function Bc(){return!1}function Ns(g){const e=wn.c(11),{canAddSection:p,onAddSection:S,className:x,size:V}=g,C=Rn();let _;e[0]!==x?(_=le("w-full",x),e[0]=x,e[1]=_):_=e[1];const P=!p;let k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Il,{size:14}),e[2]=k):k=e[2];let Y;e[3]!==C?(Y=C("sectionsEditor.sectionList.addSectionButton"),e[3]=C,e[4]=Y):Y=e[4];let ge;return e[5]!==S||e[6]!==V||e[7]!==_||e[8]!==P||e[9]!==Y?(ge=r.jsxs(It,{type:"button",variant:"outline",size:V,className:_,disabled:P,onClick:S,children:[k,Y]}),e[5]=S,e[6]=V,e[7]=_,e[8]=P,e[9]=Y,e[10]=ge):ge=e[10],ge}function Kc(g){const e=wn.c(101),{listKey:p,rawSections:S,sections:x,meta:V,decofile:C,selectedIndex:_,onSelect:P,onReorder:k,onDelete:Y,onDuplicate:ge,onMakeReusable:Ue,onToggleHidden:Le,onToggleLazy:Ce,onAddVariant:Je,onDetach:w,onAddSection:c,canAddSection:xe}=g,G=xe===void 0?!0:xe,_e=Rn(),F=Zn();let ke;e[0]!==x.length?(ke=()=>Po(x.length),e[0]=x.length,e[1]=ke):ke=e[1];const[d,Oe]=b.useState(ke),[u,Ee]=b.useState(null),[Z,ze]=b.useState(p),[nt,Pe]=b.useState(x.length),st=b.useRef(!1);Z!==p?(ze(p),Pe(x.length),Oe(Po(x.length))):nt!==x.length&&(Pe(x.length),Oe(tt=>Vc(tt,x.length)));let de;e[2]===Symbol.for("react.memo_cache_sentinel")?(de={activationConstraint:{distance:8}},e[2]=de):de=e[2];let v;e[3]===Symbol.for("react.memo_cache_sentinel")?(v={coordinateGetter:Jl},e[3]=v):v=e[3];const we=Ol(Eo($l,de),Eo(zl,v));let rt;e[4]!==d?(rt=d.map(Dc),e[4]=d,e[5]=rt):rt=e[5];const ot=rt;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=tt=>{Ee(String(tt.active.id))},e[6]=m):m=e[6];const I=m;let Ze;e[7]!==ot||e[8]!==k?(Ze=tt=>{Ee(null);const{active:O,over:Ae}=tt;if(!Ae||O.id===Ae.id)return;const He=ot.indexOf(String(O.id)),ht=ot.indexOf(String(Ae.id));He===-1||ht===-1||(Oe(bt=>Oo(Xn([...bt],He,ht))),st.current=!0,requestAnimationFrame(()=>{st.current=!1}),k?.(He,ht))},e[7]=ot,e[8]=k,e[9]=Ze):Ze=e[9];const A=Ze;let Qe;e[10]===Symbol.for("react.memo_cache_sentinel")?(Qe=()=>{Ee(null)},e[10]=Qe):Qe=e[10];const W=Qe;let at,fe,Xe,ve,it,$e,Be,Ke,se,X,ee,D,T,me,We;if(e[11]!==u||e[12]!==G||e[13]!==F||e[14]!==C||e[15]!==d||e[16]!==ot||e[17]!==A||e[18]!==V||e[19]!==c||e[20]!==Je||e[21]!==Y||e[22]!==w||e[23]!==ge||e[24]!==Ue||e[25]!==P||e[26]!==Le||e[27]!==Ce||e[28]!==S||e[29]!==x||e[30]!==_||e[31]!==we||e[32]!==_e){me=Symbol.for("react.early_return_sentinel");e:{const tt=O=>{st.current||P(O)};if(e[48]!==u||e[49]!==G||e[50]!==F||e[51]!==d||e[52]!==c||e[53]!==S||e[54]!==x||e[55]!==_e){const O=u?d.find(Ae=>Ae.id===u):null;if(ve=O!=null?x[O.index]:null,Xe=O!=null?S[O.index]:void 0,d.length===0){let Ae;e[59]!==_e?(Ae=_e("sectionsEditor.sectionList.noSections"),e[59]=_e,e[60]=Ae):Ae=e[60];let He;e[61]!==Ae?(He=r.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:Ae}),e[61]=Ae,e[62]=He):He=e[62];const ht=He;let bt;e[63]!==G||e[64]!==F||e[65]!==ht||e[66]!==c?(bt=F?ht:r.jsxs("div",{className:"space-y-2",children:[ht,r.jsx(Ns,{canAddSection:G,onAddSection:c,size:"sm"})]}),e[63]=G,e[64]=F,e[65]=ht,e[66]=c,e[67]=bt):bt=e[67],me=bt;break e}T=le(O&&"cursor-grabbing"),e[48]=u,e[49]=G,e[50]=F,e[51]=d,e[52]=c,e[53]=S,e[54]=x,e[55]=_e,e[56]=Xe,e[57]=ve,e[58]=T}else Xe=e[56],ve=e[57],T=e[58];fe=ql,Ke=we,se=Gl,X=I,ee=A,D=W,at=Ql,$e=ot,Be=Xl,We="space-y-1",it=d.map(O=>{const Ae=x[O.index];return Ae?r.jsx(Nc,{sortableId:O.id,section:Ae,raw:S[O.index],meta:V,decofile:C,selected:_===O.index,onSelect:()=>tt(O.index),onDelete:()=>Y(O.index),onDuplicate:()=>ge(O.index),onMakeReusable:()=>Ue(O.index),onToggleHidden:()=>Le(O.index),onToggleLazy:Ce?()=>Ce(O.index):void 0,onAddVariant:()=>Je(O.index),onDetach:()=>w(O.index)},O.id):null})}e[11]=u,e[12]=G,e[13]=F,e[14]=C,e[15]=d,e[16]=ot,e[17]=A,e[18]=V,e[19]=c,e[20]=Je,e[21]=Y,e[22]=w,e[23]=ge,e[24]=Ue,e[25]=P,e[26]=Le,e[27]=Ce,e[28]=S,e[29]=x,e[30]=_,e[31]=we,e[32]=_e,e[33]=at,e[34]=fe,e[35]=Xe,e[36]=ve,e[37]=it,e[38]=$e,e[39]=Be,e[40]=Ke,e[41]=se,e[42]=X,e[43]=ee,e[44]=D,e[45]=T,e[46]=me,e[47]=We}else at=e[33],fe=e[34],Xe=e[35],ve=e[36],it=e[37],$e=e[38],Be=e[39],Ke=e[40],se=e[41],X=e[42],ee=e[43],D=e[44],T=e[45],me=e[46],We=e[47];if(me!==Symbol.for("react.early_return_sentinel"))return me;let et;e[68]!==it||e[69]!==We?(et=r.jsx("div",{className:We,children:it}),e[68]=it,e[69]=We,e[70]=et):et=e[70];let De;e[71]!==at||e[72]!==$e||e[73]!==Be||e[74]!==et?(De=r.jsx(at,{items:$e,strategy:Be,children:et}),e[71]=at,e[72]=$e,e[73]=Be,e[74]=et,e[75]=De):De=e[75];let $;e[76]!==Xe||e[77]!==ve||e[78]!==F||e[79]!==C||e[80]!==V?($=ve?r.jsx("div",{className:le("cursor-grabbing shadow-lift",$o(ve,!1,F)),children:r.jsx(zo,{section:ve,raw:Xe,meta:V,decofile:C})}):null,e[76]=Xe,e[77]=ve,e[78]=F,e[79]=C,e[80]=V,e[81]=$):$=e[81];let ie;e[82]!==$?(ie=si.createPortal(r.jsx(Wl,{dropAnimation:Zi,children:$}),document.body),e[82]=$,e[83]=ie):ie=e[83];let Ve;e[84]!==fe||e[85]!==Ke||e[86]!==se||e[87]!==X||e[88]!==ee||e[89]!==D||e[90]!==De||e[91]!==ie?(Ve=r.jsxs(fe,{sensors:Ke,collisionDetection:se,onDragStart:X,onDragEnd:ee,onDragCancel:D,children:[De,ie]}),e[84]=fe,e[85]=Ke,e[86]=se,e[87]=X,e[88]=ee,e[89]=D,e[90]=De,e[91]=ie,e[92]=Ve):Ve=e[92];let Te;e[93]!==G||e[94]!==F||e[95]!==c?(Te=!F&&r.jsx(Ns,{canAddSection:G,onAddSection:c,size:"sm",className:"mt-2"}),e[93]=G,e[94]=F,e[95]=c,e[96]=Te):Te=e[96];let M;return e[97]!==T||e[98]!==Ve||e[99]!==Te?(M=r.jsxs("div",{className:T,children:[Ve,Te]}),e[97]=T,e[98]=Ve,e[99]=Te,e[100]=M):M=e[100],M}function Dc(g){return g.id}function Mc(g,e,p,S){if(!g||typeof g!="object")return{kind:"error",reason:"no-matcher-rule"};const x=e.trim();if(!x)return Jt(g,p,S)?{kind:"inline",blockKey:g.__resolveType??"",inlinedRule:Ts(g,p,S)}:{kind:"noop"};const V=As(g,p,S);if(!V)return{kind:"error",reason:"unreadable-rule"};if(V.blockKey)return{kind:"updateBlock",blockKey:V.blockKey,blockData:Ft(V.resolveType,V.data,x)};const C=Jn(x),_=Qn(C,p);return _?{kind:"error",reason:"invalid-block-id",message:_}:{kind:"createBlock",blockId:C,blockData:Ft(V.resolveType,V.data,x),reference:cn(C)}}const Bo="section-form-stale-save",Fc=3;function Ko(g,e,p){const S=e.global&&e.pageKey?[{label:"Default",sections:[{__resolveType:e.pageKey}]}]:Io(e.pageKey?g[e.pageKey]?.sections:void 0,g,p),x=Math.max(0,Math.min(e.pageVariantIndex,S.length-1)),V=S[x]?.sections??[];return{pageVariants:S,variantIndex:x,rawSections:V,parsedSections:kn(V,g,p)}}const Do=new WeakMap;let Ic=0;function Lc(g){let e=Do.get(g);return e===void 0&&(e=++Ic,Do.set(g,e)),e}function Hf({orgSlug:g,virtualMcpId:e,branch:p,previewReady:S=!0,previewUrl:x,currentPath:V,activePageBlockKey:C=null,activeGlobalBlockKey:_=null,externalSelection:P,onSaved:k,initialEditSeo:Y=!1,onExitSeo:ge,onSelectRoot:Ue,onViewJsonFile:Le,onFocusedBlockChange:Ce,onSectionPicked:Je,onVariantPreviewOverride:w}){const c=Rn(),xe=Wi(),G=xe?.taskId??null,_e=S?{orgSlug:g,virtualMcpId:e,branch:p,threadId:G,previewUrl:x}:null,[F,ke]=b.useState([]),{data:d,isLoading:Oe}=yl(_e,{pollWhile:F.length>0}),{data:u,isLoading:Ee}=Tl(_e),Z=Zn(),ze=xe?.virtualMcpId,Pe=Gi(ze===e?e:null)?.metadata?.siteSlug??null,st=ec({virtualMcpId:e,branch:p,sandboxUrl:x}),de=Sl(e,p),v=bl(de),we=Ti(v),rt=!v,ot=!!st||v,[m,I]=b.useState(null),[Ze,A]=b.useState(null),[Qe,W]=b.useState(null),[at,fe]=b.useState(0),[Xe,ve]=b.useState(void 0),[it,$e]=b.useState(null),Be={index:it,remember:$e},[Ke,se]=b.useState(null),[X,ee]=b.useState(null),[D,T]=b.useState([]),me=b.useRef(null),[We,et]=b.useState(D.length);We!==D.length&&(et(D.length),requestAnimationFrame(()=>{me.current&&(me.current.scrollTop=0)}));const[De,$]=b.useState(0),[ie,Ve]=b.useState(null),[Te,M]=b.useState(null),[tt,O]=b.useState(null),[Ae,He]=b.useState(!1),[ht,bt]=b.useState(!1),jn=b.useRef(null),[En,Wo]=b.useState(!0),[Qt,Vn]=b.useState(!1),[Lt,Tn]=b.useState(!1),[Re,un]=b.useState(Y),[Ps,Bs]=b.useState(Y);Y&&!Ps&&(Bs(!0),un(!0),I(null),A(null),W(null),T([])),!Y&&Ps&&Bs(!1);const[Ho,dn]=b.useState(null),[Ks,An]=b.useState(void 0),[Ds,Ot]=b.useState([]),[Ms,Xt]=b.useState(0),[Me,lt]=b.useState(0),[qo,Fe]=b.useState(null),[Yt,qe]=b.useState(null),[Fs,Is]=b.useState(null),Nn=li(),Cn=xl({orgSlug:g,virtualMcpId:e,branch:p},{tunnel:!1}),fn=Dl({orgSlug:g,virtualMcpId:e,branch:p}),[Go,Uo]=b.useState(V),[Jo,Qo]=b.useState(C),[Xo,Yo]=b.useState(_);(Go!==V||Jo!==C||Xo!==_)&&(queueMicrotask(()=>fn.flush()),Uo(V),Qo(C),Yo(_),I(null),A(null),W(null),fe(0),se(null),ee(null),lt(0),Fe(null),qe(null),T([]),$(t=>t+1),un(!1),dn(null),An(void 0),Ot([]),Xt(t=>t+1));const L=Ml({orgSlug:g,virtualMcpId:e,branch:p}),Ls=il({orgSlug:g,virtualMcpId:e,branch:p},d??{},{onSaved:k}),mn=Ls.save,Pn=Kl({orgSlug:g,virtualMcpId:e,branch:p}),Os=gc({orgSlug:g,virtualMcpId:e,branch:p}),[Zt,en]=b.useState(!1),N=b.useRef(null),_t=b.useRef(null),gt=b.useRef(null),vt=b.useRef(null),Bn=b.useRef({}),zt=b.useRef(null),pn=b.useRef(!1),hn=b.useRef(!1),ye=b.useRef(new Map),tn=b.useRef(!1),ct=b.useRef([]),es=b.useRef(new WeakSet);_l(g,e,t=>{const{activePageKey:n,rawSections:s,parsedSections:o,selectedSectionIndex:a}=re.current,i=new Set;n&&i.add(n);for(const l of[_t.current?.sectionIndex,a]){const f=l==null?void 0:s[l],j=l==null?void 0:o[l],h=f&&j?.isSavedBlock?bs(f,j):null;h&&i.add(h)}if([...i].some(l=>t.has(l))){for(const l of[N,gt,vt])l.current&&clearTimeout(l.current),l.current=null;_t.current=null,ye.current.clear(),n&&t.has(n)&&(Bn.current={})}});const re=b.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null}),[zs,$s]=b.useState(0),[Zo,ea]=b.useState(0),Ws=ci(de,{orgSlug:g,virtualMcpId:e,branch:p}),Hs=ui(Ws,F[0]?.blockKey??null,di(d,F[0]?.blockKey??null)),[ta,na]=b.useState(null),ts=kl(g,e).epoch,[sa,ra]=b.useState(ts);cc(Re?{orgSlug:g,virtualMcpId:e,branch:p}:null,d??void 0,u??void 0);const qs=_??(d&&u?ko(wo(d,u),V,C)?.key??null:null),ns=bo({orgSlug:g,virtualMcpId:e,branch:p},qs?[qs]:[],{withRefs:!0}),[Gs,oa]=b.useState(!1),ss=bo({orgSlug:g,virtualMcpId:e,branch:p},Gs?Al:[]),Us={ready:!(de.kind==="protocol"&&de.hosted)||Gs&&ss.ready,failed:ss.failed,retry:ss.retry,request:()=>oa(!0)};if(ns.failed)return r.jsxs("div",{className:"h-full w-full flex flex-col items-center justify-center gap-3 p-6 text-center text-sm text-muted-foreground",children:[r.jsx("p",{children:c("sectionsEditor.hosted.blockLoadFailed")}),r.jsx("p",{children:c("sectionsEditor.hosted.blockLoadFailedHint")}),r.jsx(It,{variant:"outline",size:"sm",onClick:ns.retry,children:c("sectionsEditor.namedRules.tryAgain")})]});if(!S||Oe||Ee||!ns.ready)return r.jsx("div",{className:"h-full w-full flex items-center justify-center",children:r.jsx(fi,{className:"size-5 text-muted-foreground"})});if(!d||!u)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const aa=wo(d,u),q=!!_,oe=q?null:ko(aa,V,C),y=q?_:oe?.key??null,rs=q&&_?d[_]:void 0,Js=q&&_&&rs?Nl(_,rs):q&&_?_:"",nn=!q&&y&&d[y]?d[y]:null,os=Re&&d&&u&&y&&oe?Vo(d,{kind:"page",pageKey:y,pageName:String(oe.name??""),path:String(oe.path??"")},u):null,ia=Re?nn?.seo:void 0,Kn=Ks!==void 0?Ks:ia,la=Re?rc(Kn):void 0,Qs=os?.seoTypeOptions??[],Xs=Re&&u?oc(u):"",as=Ho??la??{},Dn=Re&&os?uc(as,os):null,Ys=Re&&Dn&&ac(Kn)?qn(Dn,u):null,Zs=Re?ic(d,u)?.seoData:void 0,pe=q?[{label:"Default",sections:[{__resolveType:_}]}]:Io(nn?.sections,d??{},v),yt=pe.length>1,te=Math.min(at,pe.length-1),Se=pe[te],B=Se?.sections??[],ce=kn(B,d,v),Mn=!q&&vc(nn?.sections,v);if(q&&_&&Fs!==_){Is(_);const t=B[0],n=ce[0];if(t&&n){I(0),lt(0),T([]);const s=wt(t,n,d,v);s&&(A(s.data),W(s.resolveType),qe(null),Fe(null))}}!q&&Fs!==null&&Is(null),re.current={rawSections:B,parsedSections:ce,decofile:d??{},activePageKey:y,pageVariants:pe,variantIndex:te,sectionVariantIndex:Me,selectedSectionIndex:m};const ca=()=>({multivariate:Mn,index:te,variants:pe.map(t=>({rule:t.rule})),lazyValues:v&&Mn&&Ni(nn?.sections?.variants?.[te]?.value)}),is=(t,n)=>{if(!w)return;if(!y||!Mn||t.length<=1){w(null);return}const s={multivariate:!0,index:n,variants:t},o=v?xo(y,s):Co(y,s,d,u);w(o.length>0?o:null)},ls=w&&y&&Mn&&yt&&!Oe&&!Ee?y:null;if(ls!==ta&&(na(ls),ls)){const t=pe.map(s=>({rule:s.rule})),n=te;queueMicrotask(()=>is(t,n))}const $t=(t,n,s)=>{if(!w)return;if(!y){w(null);return}const o=ca(),a=v?xo(y,o):Co(y,o,d,u);if(!t||n<0){w(a.length>0?a:null);return}const i={pageKey:y,page:o,sectionIndex:n,sectionLazy:ce[n]?.isLazy??!1,mvObj:t,selectedVariantIndex:s},l=v?Rl(i):_c({...i,decofile:d,meta:u}),f=v?jl(a,l):[...a,...l];w(f.length>0?f:null)},xt=(t,n,s,o=m??-1,a=!1)=>{const i=pt(t,n);if(!i){A(null),W(null),qe(null),Fe(null),a&&$t(null,o,s);return}const f=Xr(i,we)[s];if(!f){A(null),W(null),qe(null),Fe(null),a&&$t(null,o,s);return}const j=gi(f.value,d);A(j?.data??null),W(j?.resolveType??null);const{resolveType:h,formValue:R}=Ut(f.rule,d,u??void 0);qe(h),Fe(R),a&&$t(i,o,s)},cs=t=>{M(null),fe(t),I(null),A(null),W(null),T([]);const n=pe[t]?.rule,{resolveType:s,formValue:o}=Ut(n,d??{},u??void 0);ee(s),se(o),is(pe.map(a=>({rule:a.rule})),t)},ua=(t,n)=>{const s=B[t],o=ce[t];if(!s||!o)return!1;const a=o.isMultivariate?pt(s,o)?.variants?.length??0:0,i=n<a?n:0;if(I(t),lt(i),T([]),$(l=>l+1),o.isMultivariate)xt(s,o,i,t);else{const l=wt(s,o,d,v);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),qe(null),Fe(null)}return!0},er=P?.index;if(P!==void 0&&(P?.seq??null)!==Xe&&(ve(P?.seq??null),typeof er=="number"&&ua(er,0)),ts!==sa){ra(ts);const t=N.current!==null||ye.current.size>0||vt.current!==null||gt.current!==null||L.isPending||Ls.isPending||fn.isPending||F.length>0,n=m!==null&&Qr(me.current,document.activeElement);if(!t&&n&&(tn.current=!0),!t&&!n&&m!==null){const s=B[m],o=ce[m];if(T([]),$(a=>a+1),!s||!o)I(null),A(null),W(null);else if(o.isMultivariate)xt(s,o,Me,m);else{const a=wt(s,o,d,v);A(a?.data??null),W(a?.resolveType??null)}}!t&&Re&&(dn(null),An(void 0),Xt(s=>s+1))}if(zs!==Zo){ea(zs);const t=m!==null?B[m]:null,n=m!==null?ce[m]:null;if(t&&n&&m!==null)if(T([]),$(s=>s+1),n.isMultivariate)xt(t,n,Me,m);else{const s=wt(t,n,d,v);A(s?.data??null),W(s?.resolveType??null)}}const ut=F[0];if(ut){const{formBase:t,target:n}=ut,s=Ko(d,n,v),o=t.sectionIndex,a=s.rawSections.length===t.sectionCount?xs(s.rawSections[o],s.parsedSections[o],n.sectionVariantIndex,d,v):null,i=mi(ut,a,l=>Yr(t,l));if(i){const f=[{...ut,...i,changedAgain:!0},...F.slice(1)];ct.current=f,ke(f)}}const gn={orgSlug:g,virtualMcpId:e,branch:p,threadId:G,previewUrl:v?void 0:x??void 0,siteSlug:Pe},Fn=Qe&&u?qn(Qe,u):null,dt=(t,n)=>{if(!y)return;N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear(),vt.current&&(clearTimeout(vt.current),vt.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null);const s=ln(d,y,t,te,pe);L.mutate({blockKey:y,data:s},{onSuccess:()=>n?.onSuccess?.()??k?.(),onError:o=>{n?.onError?.(),L.reportError(o)}})},Wt=()=>{Ce?.(null),I(null),Tn(!1),A(null),W(null),lt(0),Fe(null),qe(null),T([]),$(t=>t+1)},tr=()=>Qr(me.current,document.activeElement),us=(t=c("sectionsEditor.sectionsEditor.blockChangedElsewhere"))=>{if(N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear(),_t.current=null,H.error(t,{id:Bo}),tr()){tn.current=!0;return}$s(n=>n+1)},nr=()=>{!tn.current||tr()||ct.current.length>0||N.current!==null||pn.current||hn.current||ye.current.size>0||(tn.current=!1,$s(t=>t+1))},sr=()=>{tn.current&&setTimeout(nr,0)},rr=de.kind==="protocol"&&de.source==="github",or=t=>Vl(Nn,Cn,t,de.kind==="protocol"?de:null),ar=t=>{ye.current.size!==0&&setTimeout(()=>{if(pn.current||hn.current)return;const n=[...ye.current.values()];ye.current.clear();for(const s of n)s()},t)},da=t=>{const{activePageKey:n,variantIndex:s,sectionVariantIndex:o}=re.current,a=zt.current;return{formBase:a?.sectionIndex===t&&a.variantIndex===o?a:null,pageKey:n,global:q,pageVariantIndex:s,sectionVariantIndex:o,schema:Fn}},vn=t=>{ct.current=t,ke(t)},fa=t=>{const n=ct.current,s=n.findIndex(i=>i.formBase===t.formBase),o=s>=0?n[s]:void 0,a=o?n.with(s,{...t,choices:so(o.plan,o.choices,t.plan),fresh:Li(o.plan,t.plan,o.fresh),changedAgain:o.changedAgain||Hn(o.plan.theirs)!==Hn(t.plan.theirs)}):[...n,{...t,changedAgain:es.current.has(t.formBase)}];vn(a)},ir=(t,n)=>{const s=ct.current,o=s.findIndex(l=>l.formBase===t),a=s[o];if(!a)return!1;if(Hn(a.plan.mine)===Hn(n))return!0;const i=no({...a.plan,mine:n});if(i.pointers.length===0){const l=s.filter(f=>f!==a);return vn(l),!1}return vn(s.with(o,{...a,plan:i,choices:so(a.plan,a.choices,i)})),!0},ma=t=>{const n=re.current;return n.selectedSectionIndex===t.formBase.sectionIndex&&n.activePageKey===t.target.pageKey&&n.variantIndex===t.target.pageVariantIndex&&n.sectionVariantIndex===t.target.sectionVariantIndex},pa=()=>{const t=ct.current[0];if(!t)return null;const{formBase:n,target:s}=t;N.current&&_t.current?.sectionIndex===n.sectionIndex&&_t.current.sectionVariantIndex===s.sectionVariantIndex&&(clearTimeout(N.current),N.current=null,_t.current=null),ye.current.delete(`${s.pageKey}:${n.sectionIndex}:${s.sectionVariantIndex}`);const o=n.emitted;return o&&typeof o=="object"&&!ir(n,o)&&yn(o,n.sectionIndex,0,s),ct.current[0]??null},ha=()=>{const t=ct.current[0],n=pa();if(!n||!t||n.formBase!==t.formBase||n.plan.pointers.some(i=>!t.plan.pointers.includes(i)))return;const s=ji(n.plan,n.choices);de.kind==="protocol"&&de.source==="github"&&Ei(n.plan,n.choices)&&wl(c,!1),vn(ct.current.slice(1));const{formBase:o,target:a}=n;o.base=n.plan.theirs,o.version=void 0,o.emitted=s,es.current.add(o),(zt.current===o||ma(n))&&(zt.current=o,A(s),$(i=>i+1)),yn(s,o.sectionIndex,0,a)},ga=t=>{const[n,...s]=ct.current;n&&vn([{...n,choices:t},...s])},yn=(t,n,s=0,o,a=!1)=>{const i=o??da(n),l=i.sectionVariantIndex,f=i.formBase,j=a||to(ct.current,f,i,n,v).runNow,h=_t.current;N.current&&(clearTimeout(N.current),N.current=null,h&&(h.sectionIndex!==n||h.sectionVariantIndex!==l)&&h.write());const R=`${i.pageKey}:${n}:${l}`,E=()=>{if(pn.current||hn.current){ye.current.set(R,E);return}const K=typeof t=="function"?t():t,z=to(ct.current,f,i,n,v).base;if(z&&ir(z,K))return;const ne=re.current.decofile,{rawSections:J,parsedSections:Ne,pageVariants:Q,variantIndex:be}=Ko(ne,i,v),Ie=i.pageKey,he=J[n];if(!he)return;const ue=Ne[n];if(!ue)return;const Ge=f?.base,Ye=xs(he,ue,l,ne,v),Nt=!!Ge&&!!Ye&&Ci(Ge,Ye)&&!(f&&Yr(f,Ye));if(Nt&&Ge&&Ye){if(Pi(Ge,Ye)){us(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}const U=ue.isSavedBlock?"here":Bi(Ge,J.map((ae,mt)=>xs(ae,Ne[mt],l,ne,v)),n,f?.sectionCount??J.length);if(U==="unknown"){us(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}if(typeof U=="number"&&f){f.sectionCount=J.length,f.sectionIndex=U,zt.current===f&&I(U),yn(K,U,s,i);return}}const Ct=Nt&&Ge&&Ye?no({ancestor:Ge,mine:K,theirs:Ye}):null;if(Ct&&Ct.pointers.length>0&&f){f.sectionCount=J.length,fa({plan:Ct,formBase:f,target:i,sectionIndex:n,choices:Ki(Ct),changedAgain:!1,blockKey:ue.isSavedBlock?bs(he,ue):Ie,fresh:{}});return}const Pt=Ct?Ct.merged:null,rn=Pt??K,Gr=Di({merged:!!Pt,tracked:f,current:zt.current,saved:K});Pt&&H.info(c("sectionsEditor.sectionsEditor.blockMergedWithOthers"),{id:Bo}),Gr&&f&&(f.emitted=Pt,A(Pt));const Ss=Gr||!Pt?rn:K;f&&(f.base=Ss,f.sectionCount=J.length,Mi(f,Ss));const Ur={onSuccess:()=>{f&&es.current.delete(f),k?.()},onError:U=>{if(f?.base===Ss&&Ge&&(f.base=Ge),U instanceof El){if(f&&(f.version=void 0),s<Fc){ye.current.delete(R),hn.current=!0;const ae=Oi(s,U.carriedStored);setTimeout(()=>{hn.current=!1,yn(()=>{const mt=f?.emitted;return mt&&typeof mt=="object"?mt:K},n,s+1,i,ae.immediate),ye.current.delete(R),ar(xn(v))},ae.delay)}else us();return}L.reportError(U)}},Jr=U=>{pn.current=!0;let ae=!1;L.mutateAsync(U).then(()=>Ur.onSuccess(),mt=>{ae=!0,Ur.onError(mt)}).finally(()=>{pn.current=!1,ar(ae?xn(v):0),nr()})};if(ue.isSavedBlock){const U=bs(he,ue);if(!U)return;Jr({blockKey:U,data:rn,...Ge?{base:{value:Fi({startedFrom:Ge,stored:Ye,rebased:!!Pt,refused:s>0})}}:{},rebaseOnConflict:!1,guard:ro({formBase:f,rebased:!!Pt,versionOf:or,productionVersionOf:ae=>ao(Nn,Cn,ae),...rr?{copy:{value:ne[U]}}:{}})});return}if(!Ie)return;const Wn={...ne[Ie]},Gt=[...J];if(ue.isMultivariate){const U=pt(he,ue);if(!U||!Ie)return;const ae=Ii(U,l,rn);Gt[n]=Bt(he,ue,ae)}else if(ue.isHidden){const U=Cs(he.__resolveType),ae=U?{...he.section}:{...he},mt=Array.isArray(ae.variants)?[...ae.variants]:[];mt[0]&&(mt[0]=oo(ae.__resolveType,mt[0],rn)),ae.variants=mt,U?Gt[n]={...he,section:ae}:Gt[n]=ae}else ue.isLazy?Gt[n]={...he,section:rn}:Gt[n]=rn;if(Q.length>1){const U=Wn.sections,ae=[...U?.variants??[]];ae[be]&&(ae[be]=oo(U?.__resolveType,ae[be],Gt)),Wn.sections={...U,variants:ae}}else Wn.sections=Gt;Jr({blockKey:Ie,data:Wn,rebaseOnConflict:!1,guard:ro({formBase:null,rebased:!1,versionOf:or,productionVersionOf:U=>ao(Nn,Cn,U),...rr?{copy:{value:ne[Ie]}}:{}})})};if(_t.current={sectionIndex:n,sectionVariantIndex:l,write:E},j){_t.current=null,E();return}N.current=setTimeout(()=>{N.current=null,E()},xn(v))},va=t=>{tn.current=!1,I(t),lt(0),T([]),$(a=>a+1);const n=B[t],s=ce[t];if(Ce?.(s?.isSavedBlock?s.resolveType??null:null),!n||!s)return;if(s.isMultivariate){xt(n,s,0,t);return}const o=wt(n,s,d,v);if(!o){A(null),W(null),qe(null),Fe(null),$t(null,t,0);return}A(o.data),W(o.resolveType),qe(null),Fe(null),$t(null,t,0)},lr=t=>{const n=t;m!==null&&(zt.current=Vi(zt.current,{sectionIndex:m,variantIndex:re.current.sectionVariantIndex,shown:Ze,next:n,sectionCount:re.current.rawSections.length})),A(n),m!==null&&yn(n,m)},ds=t=>{if(!y||!d||!u||!oe)return;const n={kind:"page",pageKey:y,pageName:String(oe.name??""),path:String(oe.path??"")},s=Vo(d,n,u);s&&fn.save(y,()=>{const o=Nn.getQueryData(Ai.decofile(Cn))?.[y];if(!o||typeof o!="object"||o===null||Array.isArray(o))return null;const a={...o,...Bn.current};return Bn.current={},t?.raw!==void 0?dc(a,t.raw,u):t?.inner!==void 0?fc(n,s,a,t.inner):a})},cr=(t,n)=>{y&&(Bn.current[t]=n,ds())},ya=(t,n)=>{if(!y)return;const s=Xn([...B],t,n);m!==null&&(m===t?I(n):t<m&&n>=m?I(m-1):t>m&&n<=m&&I(m+1)),dt(s)},Sa=t=>{if(!y)return;const n=B.filter((s,o)=>o!==t);m===t?Wt():m!==null&&m>t&&I(m-1),dt(n)},ba=t=>{if(!y)return;const n=B[t];if(!n)return;const s=[...B];s.splice(t+1,0,gl(n)),m!==null&&m>t&&I(m+1),dt(s)},xa=t=>{if(!y)return;const n=B[t],s=ce[t];if(!n||!s)return;const o=s.isHidden?ki(n,v):wi(n,u);if(!o)return;const a=[...B];a[t]=o,m===t&&Wt(),dt(a)},_a=t=>{if(!y)return;const n=B[t],s=ce[t];if(!n||!s||s.isMultivariate)return;const o=_i(n);if(!o)return;const a=[...B];a[t]=o,m===t&&Wt(),dt(a)},ka=t=>{if(!y)return;const n=B[t],s=ce[t];if(!n||!s?.isSavedBlock)return;const o=wt(n,s,d,v);if(!o?.data)return;const{name:a,...i}=o.data,l=[...B];s.isLazy?l[t]={...n,section:i}:l[t]=i,m===t&&Wt(),dt(l)},wa=t=>{if(!y)return;const n=qi(ce),s=[...B.slice(0,n),{__resolveType:t.resolveType},...B.slice(n)];dt(s,{onError:()=>{re.current.selectedSectionIndex===n&&Wt()}}),He(!1),I(n),lt(0),T([]),$(l=>l+1);const o=s[n],a=kn(s,d,v)[n];if(!o||!a)return;if(a.isMultivariate){xt(o,a,0);return}const i=wt(o,a,d,v);if(!i){A(null),W(null),qe(null),Fe(null);return}A(i.data),W(i.resolveType),qe(null),Fe(null)},ur=t=>{jn.current=t.append,He(!0)},Ra=t=>{const n=jn.current;if(!n){wa(t);return}n({__resolveType:t.resolveType}),He(!1),jn.current=null},dr=t=>{if(m===null)return;const n=B[m],s=ce[m];!n||!s?.isMultivariate||(lt(t),T([]),$(o=>o+1),xt(n,s,t,m,!0))},ja=t=>{if(m===null||!y)return;const n=B[m],s=ce[m];if(!n||!s?.isMultivariate)return;const o=pt(n,s);if(!o)return;const a=bi(o,t);if(!a){H.error(c("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const i=[...B];i[m]=Bt(n,s,a);const l=a.variants;let f=Me;t===Me?f=Math.min(t,l.length-1):t<Me&&(f=Me-1),lt(f),T([]),$(j=>j+1),xt(i[m],s,f),dt(i)},Ea=t=>{if(m===null||!y)return;const n=B[m],s=ce[m];if(!n||!s?.isMultivariate)return;const o=pt(n,s);if(!o)return;const a=xi(o,t,v),i=[...B];i[m]=Bt(n,s,a);const l=eo(o.variants??[],t,v);lt(l),T([]),$(f=>f+1),xt(i[m],s,l,m,v),dt(i)},Va=(t,n)=>{if(m===null||!y||t===n)return;const s=B[m],o=ce[m];if(!s||!o?.isMultivariate)return;const a=pt(s,o);if(!a)return;const i=yi(a,t,n),l=[...B];l[m]=Bt(s,o,i);let f=Me;Me===t?f=n:t<Me&&n>=Me?f=Me-1:t>Me&&n<=Me&&(f=Me+1),lt(f),xt(l[m],o,f,m,v),dt(l)},Sn=t=>{const n=t??m;if(n===null||!y)return;const s=B[n],o=ce[n];if(!s||!o)return;const a=vi(s,o,void 0,u,v);if(!a){H.error(c("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const i=[...B];i[n]=a.section;const l=kn(i,d,v)[n];if(!l?.isMultivariate){H.error(c("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}I(n),lt(a.newVariantIndex),T([]),$(f=>f+1),xt(a.section,l,a.newVariantIndex,n,v),dt(i)},fr=()=>{if(m===null||!y)return;const t=B[m],n=ce[m];if(!t||!n?.isMultivariate)return;const s=pt(t,n);if(!s)return;const o=Si(t,n,s);if(!o){H.error(c("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const a=[...B];a[m]=o;const i=kn(a,d,v)[m];if(!i)return;lt(0),qe(null),Fe(null),T([]),$(f=>f+1);const l=wt(o,i,d,v);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),$t(null,m,0),dt(a)},Ta=async t=>{if(ie===null||!y)return;const n=Qn(t,d,u);if(n){H.error(n);return}const s=B[ie],o=ce[ie];if(!s||!o)return;const a=wt(s,o,d,v);if(!a){H.error(c("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const i={...a.data,name:t};try{const l=await L.mutateAsync({blockKey:t,data:i,create:!0}),f=[...B];f[ie]={__resolveType:t},await L.mutateAsync({blockKey:y,data:ln(d,y,f,te,pe)}),m===ie&&Wt(),Ve(null),Un(l)||H.success(c("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),k?.()}catch(l){H.error(c("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"),{description:Kt(c,Dt(l))})}},mr=Se?.rule;if(yt&&m===null&&X===null&&mr){const{resolveType:t,formValue:n}=Ut(mr,d??{},u??void 0);ee(t),se(n)}const sn=u?ll(u):[],fs=u&&d?cl(u,d):[],Ht=v&&u&&d?mc(u,d):[],ms=(t,n)=>{if(Ht.length===0)return;const s=Cl(t);return{kinds:Ht,selected:s,campaignPrefill:pc(t),onPick:n,load:Us}},pr=!q&&!!(ot&&u&&d),hr=X&&u?qn(X,u):null,St=()=>{gt.current&&(clearTimeout(gt.current),gt.current=null),vt.current&&(clearTimeout(vt.current),vt.current=null)},qt=async(t,n)=>{if(bc(n,t,u,v))try{await Pn.mutateAsync({blockKey:t})}catch(s){H.error(c("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"),{description:Kt(c,Dt(s))})}},gr=t=>{gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{const{activePageKey:n,decofile:s,variantIndex:o}=re.current;if(!n)return;const a={...s[n]},i={...a.sections},l=[...i.variants??[]],f=l[o],j=f?.rule;if(Jt(j,s,u)){const h=j?.__resolveType??"",R=s[h],E=typeof R?.name=="string"?R.name:h,{__resolveType:K,...z}=t;L.mutate({blockKey:h,data:Ft(K??"",z,E)},{onSuccess:()=>k?.(),onError:L.reportError});return}f&&(l[o]={...f,rule:t}),a.sections={...i,variants:l},L.mutate({blockKey:n,data:a},{onSuccess:()=>k?.(),onError:L.reportError})},xn(v))},vr=t=>{ee(t);const n=t?No(t,u):{__resolveType:Zr(u)};se(t?n:{}),gr(n)},yr=t=>{const n=t;se(n);const s=X?{__resolveType:X,...n}:{...n};gr(s)},In=async(t,n,s)=>{const o=hc(n,t);if(!o.ok)return o.reason==="conflict"&&H.info(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.conflictTests"):c("sectionsEditor.namedRulePicker.conflictCampaigns"),_o),null;const a={};if(s){const i=s(o.rule);if(!i)return null;a[i.blockKey]=i.data}return o.blockWrite&&(a[o.blockWrite.blockKey]=o.blockWrite.block),Object.keys(a).length>0&&!(await Os.apply({writes:a})).ok?null:(o.blockWrite&&H.success(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.createdTest",{name:t.name.trim()}):c("sectionsEditor.namedRulePicker.createdCampaign",{name:t.name.trim()}),{..._o,description:c("sectionsEditor.namedRulePicker.createdHint")}),{rule:o.rule,projected:{...n,...a}})},Sr=Ht.length>0?{kinds:Ht,load:Us,prepare:async t=>(await In(t,re.current.decofile,void 0))?.rule??null,ensureBlock:async t=>{const n=Pl(re.current.decofile,t);return n.kind==="saved"?!0:n.kind==="conflict"?!1:(await Os.apply({writes:{[Bl(t).blockKey]:n.block}})).ok}}:null,br=async t=>{St();const{activePageKey:n,decofile:s,variantIndex:o}=re.current;if(!n)return;const a=await In(t,s,f=>{const j=s[n],h=j?.sections;if(!h||typeof h!="object"||Array.isArray(h))return null;const R=h;if(!Array.isArray(R.variants))return null;const E=[...R.variants],K=E[o];return K?(E[o]={...K,rule:f},{blockKey:n,data:{...j,sections:{...R,variants:E}}}):null});if(!a)return;const{resolveType:i,formValue:l}=Ut(a.rule,a.projected,u??void 0);ee(i),se(l),k?.()},xr=async t=>{St();const{activePageKey:n,decofile:s,variantIndex:o}=re.current;if(!n)return;const a=s[n],i=a?.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const f=[...l.variants],j=f[o];if(!j)return;const h=Mt(j.rule,s,u),R=cn(t);f[o]={...j,rule:R};const E={...s,[n]:{...a,sections:{...l,variants:f}}},{resolveType:K,formValue:z}=Ut(R,E,u??void 0);ee(K),se(z);try{await L.mutateAsync({blockKey:n,data:E[n]}),h&&h!==t&&await qt(h,E),k?.()}catch(ne){H.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Kt(c,Dt(ne))})}},_r=t=>{vt.current&&clearTimeout(vt.current);const{selectedSectionIndex:n,sectionVariantIndex:s}=re.current;n!==null&&(vt.current=setTimeout(()=>{const{rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(!l)return;const h=o[n],R=a[n];if(!h||!R?.isMultivariate)return;const E=pt(h,R);if(!E)return;const z=(E.variants??[])[s]?.rule;if(Jt(z,i,u)){const Q=z?.__resolveType??"",be=i[Q],Ie=typeof be?.name=="string"?be.name:Q,{__resolveType:he,...ue}=t;L.mutate({blockKey:Q,data:Ft(he??"",ue,Ie)},{onSuccess:()=>k?.(),onError:L.reportError});return}const ne=_s(E,s,t),J=[...o];J[n]=Bt(h,R,ne);const Ne=ln(i,l,J,j,f);L.mutate({blockKey:l,data:Ne},{onSuccess:()=>k?.(),onError:L.reportError})},xn(v)))},Aa=t=>{qe(t);const n=t?No(t,u):{__resolveType:Zr(u)};Fe(t?n:{}),_r(n)},Na=t=>{const n=t;Fe(n);const s=Yt?{__resolveType:Yt,...n}:{...n};_r(s)},Ca=async t=>{St();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(n===null||!l)return;const h=await In(t,i,K=>{const z=o[n],ne=a[n];if(!z||!ne?.isMultivariate)return null;const J=pt(z,ne);if(!J)return null;const Ne=[...o];return Ne[n]=Bt(z,ne,_s(J,s,K)),{blockKey:l,data:ln(i,l,Ne,j,f)}});if(!h)return;const{resolveType:R,formValue:E}=Ut(h.rule,h.projected,u??void 0);qe(R),Fe(E),k?.()},Pa=async t=>{St();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(n===null||!l)return;const h=o[n],R=a[n];if(!h||!R?.isMultivariate)return;const E=pt(h,R);if(!E)return;const K=E.variants??[],z=Mt(K[s]?.rule,i,u),ne=cn(t),J=_s(E,s,ne),Ne=[...o];Ne[n]=Bt(h,R,J);const Q=ln(i,l,Ne,j,f),be={...i,[l]:Q},{resolveType:Ie,formValue:he}=Ut(ne,be,u??void 0);qe(Ie),Fe(he);try{await L.mutateAsync({blockKey:l,data:Q}),z&&z!==t&&await qt(z,be),k?.()}catch(ue){H.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Kt(c,Dt(ue))})}};if(!q&&!oe)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.noPageFound",{currentPath:V})});if(q&&!rs)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.globalBlockNotFound")});const je=m!==null?ce[m]??null:null,kr=m!==null?B[m]:null,wr=kr&&je?.isMultivariate?pt(kr,je):null,Vt=wr?Xr(wr,we,v):[],Ln=Math.min(Me,Math.max(Vt.length-1,0)),kt=Vt[Ln]??null,Tt=je?.isMultivariate===!0,ps=m!==null&&je!==null,At=ps&&(Tt||!!(Fn&&Ze)),Ba=At&&!q&&je?.isSavedBlock===!0,ft=q||Ba,Rr=q?Js:je?.label??"",Ka=Yt&&u?qn(Yt,u):null,jr=(t,n)=>n&&Z?`${t} · ${n}`:t,Er=je?je.variantOf??je.label:"",Da=(()=>{const t=Tt&&kt?kt.label:null;return t?Z?[jr(Er,t)]:[je.label,t]:[je?.label??""]})(),hs=jr(oe?.name??"",yt?Se?.label:null),On=At&&(!q||D.length>0)?q?[Js,...D]:[hs,...Da,...D]:[],Vr=Re&&oe?[oe.name,"SEO",...Ds]:[],Tr=c("sectionsEditor.pageVariantTabs.variantsLabel"),Ar=Qt&&oe?[oe.name,Tr]:Lt&&oe&&je?[hs,Er,Tr]:[],zn=Ar.length>0?Ar:Vr.length>0?Vr:ft?On.length>0?On:[Rr]:On.length>0?On:[hs],Nr=ps&&!Tt&&!je?.isHidden&&!!y,Ma=ft||!q&&yt&&!!Se||Nr,Fa=ps&&!Tt&&!q&&D.length===0&&!!je&&Mo(je)&&!!y,Ia=Z&&At&&!Lt&&Tt&&D.length===0&&!!kt,Cr=Z&&D.length>0?uo(D[D.length-1]):null,La=D.length>1?uo(D[D.length-2]):null,Pr=ft?Rr:At?je?.label??"":oe?.name??"",Oa=Qt||Lt?c("sectionsEditor.pageVariantTabs.variantsLabel"):Re?c("sectionsEditor.panelSections.seo"):Cr??Pr,Br=Lt?je?.variantOf??je?.label??"":Qt||Re?oe?.name??"":Cr?La??Pr:ft?c("sectionsEditor.sectionsEditor.globalSectionSubtitle"):At?oe?.name??"":oe?.path??"",gs=!Qt&&!Lt&&!Re&&!At&&!ft,za=!Z&&!Re&&!q&&Tt&&D.length===0,bn=()=>{if(!y)return;St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const t=d[y],n=yc(t.sections,B,u,v);if(!n)return;const{sections:s,newVariantIndex:o}=n;L.mutate({blockKey:y,data:{...t,sections:s}},{onSuccess:()=>{fe(o),I(null),A(null),W(null),T([]),se(null),ee(null)},onError:L.reportError})},$n=(t,n,s)=>{if(!y)return;St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const o=d[y],a=o.sections;if(!a||typeof a!="object"||Array.isArray(a))return;const i=a;if(!Array.isArray(i.variants))return;const l=t([...i.variants]);if(!l)return;const f=Sc(i,l),j={...d,[y]:{...o,sections:f}};L.mutate({blockKey:y,data:j[y]},{onSuccess:()=>{n?.();const h=typeof s=="string"?[s]:s??[];(async()=>{for(const R of h)await qt(R,j)})()},onError:L.reportError})},Kr=(t,n)=>{if(t===n)return;let s=te;te===t?s=n:t<te&&n>=te?s=te-1:t>te&&n<=te&&(s=te+1),fe(s);const o=Xn(pe.map(a=>({rule:a.rule})),t,n);is(o,s),$n(a=>Xn(a,t,n))},Dr=t=>{const n=pe[t]?.rule,s=Mt(n,d??{},u??void 0);$n(o=>o.length<=1?null:(o.splice(t,1),o),()=>{pe.length-1===1?fe(0):t<te?fe(te-1):t===te&&fe(Math.max(0,t-1)),I(null),A(null),W(null),T([]),se(null),ee(null)},s)},$a=()=>{const t=pe.map((n,s)=>({variant:n,index:s})).filter(({variant:n})=>!Ri(n.rule)).map(({variant:n})=>Mt(n.rule,d??{},u??void 0)).filter(n=>!!n);$n(n=>{const s=zi({variants:n}),o=n[s];return o?[{...o,rule:$i(u)}]:null},()=>{fe(0),I(null),A(null),W(null),T([]),se(null),ee(null),Vn(!1)},t)},Mr=t=>{let n=t+1;$n(s=>(n=eo(s,t,v),xc(s,t,v)),()=>{fe(n),I(null),A(null),W(null),T([]),se(null),ee(null)})},Wa=async(t,n)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const s=re.current.activePageKey,o=re.current.decofile;if(!s)return;const a=o[s],i=a.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const f=[...l.variants],j=f[t];if(!j?.rule||typeof j.rule!="object"){H.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const h=j.rule,R=n.trim();en(!0);try{if(!R){if(!Jt(h,o,u)){M(null);return}const Q=h.__resolveType??"";f[t]={...j,rule:Ts(h,o,u)};const be={...o,[s]:{...a,sections:{...l,variants:f}}};await L.mutateAsync({blockKey:s,data:be[s]}),await qt(Q,be),M(null),k?.();return}const E=As(h,o,u);if(!E){H.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(E.blockKey){await L.mutateAsync({blockKey:E.blockKey,data:Ft(E.resolveType,E.data,R)}),M(null),k?.();return}const K=Jn(R),z=Qn(K,o,u);if(z){H.error(z);return}const ne=Ft(E.resolveType,E.data,R);let J=null,Ne=!1;try{const Q=await L.mutateAsync({blockKey:K,data:ne,create:!0});Ne=Un(Q),J=Ne?null:K,f[t]={...j,rule:cn(K)},await L.mutateAsync({blockKey:s,data:{...a,sections:{...l,variants:f}}}),J=null}catch(Q){throw J&&await Pn.mutateAsync({blockKey:J}).catch(()=>{}),Q}M(null),Ne||H.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:R})),k?.()}catch(E){H.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Kt(c,Dt(E))})}finally{en(!1)}},Ha=async(t,n)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{selectedSectionIndex:s,rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(s===null||!l)return;const h=o[s],R=a[s];if(!h||!R?.isMultivariate)return;const E=pt(h,R);if(!E)return;const K=E.variants??[],z=K[t];if(!z?.rule||typeof z.rule!="object"){H.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const ne=z.rule,J=n.trim();en(!0);const Ne=async Q=>{const be={...E,variants:Q},Ie=[...o];Ie[s]=Bt(h,R,be);const he=ln(i,l,Ie,j,f);return await L.mutateAsync({blockKey:l,data:he}),{...i,[l]:he}};try{if(!J){if(!Jt(ne,i,u)){O(null);return}const Ye=ne.__resolveType??"",Nt=[...K];Nt[t]={...z,rule:Ts(ne,i,u)};const Ct=await Ne(Nt);await qt(Ye,Ct),O(null),k?.();return}const Q=As(ne,i,u);if(!Q){H.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(Q.blockKey){await L.mutateAsync({blockKey:Q.blockKey,data:Ft(Q.resolveType,Q.data,J)}),O(null),k?.();return}const be=Jn(J),Ie=Qn(be,i,u);if(Ie){H.error(Ie);return}const he=Ft(Q.resolveType,Q.data,J);let ue=null,Ge=!1;try{const Ye=await L.mutateAsync({blockKey:be,data:he,create:!0});Ge=Un(Ye),ue=Ge?null:be;const Nt=[...K];Nt[t]={...z,rule:cn(be)},await Ne(Nt),ue=null}catch(Ye){throw ue&&await Pn.mutateAsync({blockKey:ue}).catch(()=>{}),Ye}O(null),Ge||H.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:J})),k?.()}catch(Q){H.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Kt(c,Dt(Q))})}finally{en(!1)}},Fr=async(t,n,s)=>{A(s);try{await L.mutateAsync({blockKey:t,data:s})}catch(o){throw A(a=>a===s?n:a),o}},qa={rename:async(t,n,s)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{activePageKey:o,decofile:a}=re.current;if(!o)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n],f=l?.rule&&typeof l.rule=="object"?l.rule:void 0,j=async R=>{const E={...t,variants:R};return await Fr(o,t,E),{...a,[o]:E}},h=Mc(f,s,a,u);if(h.kind!=="noop"){if(h.kind==="error"){H.error(h.reason==="no-matcher-rule"?c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"):h.reason==="unreadable-rule"?c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"):h.message??c("sectionsEditor.sectionsEditor.failedToRenameVariant"));return}en(!0);try{if(h.kind==="inline"){const K=[...i];K[n]={...l,rule:h.inlinedRule};const z=await j(K);await qt(h.blockKey,z),k?.();return}if(h.kind==="updateBlock"){await L.mutateAsync({blockKey:h.blockKey,data:h.blockData}),k?.();return}let R=null,E=!1;try{const K=await L.mutateAsync({blockKey:h.blockId,data:h.blockData,create:!0});E=Un(K),R=E?null:h.blockId;const z=[...i];z[n]={...l,rule:h.reference},await j(z),R=null}catch(K){throw R&&await Pn.mutateAsync({blockKey:R}).catch(()=>{}),K}E||H.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:s.trim()})),k?.()}catch(R){H.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Kt(c,Dt(R))})}finally{en(!1)}}},selectGlobal:async(t,n,s)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{activePageKey:o,decofile:a}=re.current;if(!o)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n];if(!l)return;const f=Mt(l.rule,a,u);i[n]={...l,rule:cn(s)};const j={...t,variants:i},h={...a,[o]:j};try{await Fr(o,t,j),f&&f!==s&&await qt(f,h),k?.()}catch(R){H.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Kt(c,Dt(R))})}},selectNamedRule:async(t,n,s)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{activePageKey:o,decofile:a}=re.current;if(!o)return;let i=null;!await In(s,a,f=>{const j=Array.isArray(t.variants)?[...t.variants]:[],h=j[n];return h?(j[n]={...h,rule:f},i={...t,variants:j},{blockKey:o,data:i}):null})||!i||(A(i),k?.())}},Ir=()=>{Wt(),v&&$t(null,-1,0)},Lr=t=>{dn(t),ds({inner:t})},Or=t=>{An(t),ds({raw:t})},zr=()=>{dn(null),Ot([])},$r=()=>Xt(t=>t+1),Wr=()=>{fn.flush(),un(!1),dn(null),An(void 0),Ot([]),Xt(t=>t+1),ge?.()},Ga=()=>{Vn(!1),Tn(!1),I(null),un(!0)},Ua=()=>{Re&&Wr(),I(null),Vn(!0)},Ja=()=>Tn(!0),vs=t=>{if(Qt&&t===0){Vn(!1);return}if(Lt&&t<2){Tn(!1),t===0&&I(null);return}if(Re){if(t===0){Wr();return}if(t===1){Ot([]),Xt(s=>s+1);return}Ot(Ds.slice(0,t-1)),Xt(s=>s+1);return}if(q){T(D.slice(0,t)),$(s=>s+1);return}if(t===0){Ir();return}if(t===1){T([]),$(s=>s+1);return}const n=!Z&&Tt&&kt?1:0;if(n===1&&t===2){T([]),$(s=>s+1);return}T(D.slice(0,t-1-n))},ys=zn.length>1?r.jsx("button",{type:"button",onClick:()=>vs(vl(zn.length,{isMultivariateSectionTop:za})),title:c("sectionsEditor.sectionsEditor.back"),"aria-label":c("sectionsEditor.sectionsEditor.back"),className:le("shrink-0 inline-flex size-6 items-center justify-center rounded-[var(--studio-control-radius,var(--radius-md))] transition-colors",ft?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:r.jsx(Ji,{className:"size-4"})}):null,Qa=ft||At||Re?Ma&&r.jsxs("div",{className:le("border-b px-3 py-2.5",ft&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[r.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!q&&yt&&Se&&r.jsxs("button",{type:"button",onClick:Ir,title:c("sectionsEditor.sectionsEditor.editingInVariant",{variant:Se.label}),className:le("shrink-0 inline-flex items-center gap-1 rounded-lg h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",dl),children:[r.jsx(ul,{rule:Rs(Se.rule,d??{},u??void 0),matchers:sn}),r.jsx("span",{className:"max-w-[160px] truncate",children:Se.label})]}),r.jsx("div",{className:"flex-1"}),ft&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Yn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Et,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Nr&&r.jsx(Gn,{onClick:()=>Sn()})]}),ft&&r.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:c("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):r.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[r.jsx("div",{className:"flex-1 min-w-0",children:r.jsx(fo,{pageKey:y,initialName:oe.name,initialPath:oe.path,onFieldChange:cr,variant:"header"})}),r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:()=>un(!0),children:r.jsx(lo,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>Le&&y?Le():bt(!0),children:r.jsx(co,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]}),r.jsx(Gn,{onClick:bn})]}),Xa=r.jsxs(r.Fragment,{children:[yt&&y&&r.jsx(mo,{listKey:y,variants:pe,activeIndex:te,decofile:d??{},meta:u,matchers:sn,onSelect:cs,onReorder:Kr,onRename:M,onDuplicate:Mr,onDelete:Dr,onAdd:bn}),yt&&X!==null&&r.jsx(po,{className:"mt-3",children:r.jsx("div",{className:le("space-y-3",Zt&&"pointer-events-none opacity-50"),children:r.jsx(ks,{currentRt:X,currentLabel:_n(Se?.rule,d??{},we,u??void 0),currentGlobalKey:Mt(Se?.rule,d??{},u??void 0)??void 0,matchers:sn,globals:fs,onSelect:vr,onSelectGlobal:xr,named:ms(Se?.rule,br),namedRow:ws(Se?.rule,Ht),rule:Se?.rule,schema:hr,formValue:Ke,onChange:yr,formKey:`${te}:${X??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:d,onSaveReferencedBlock:mn,sandbox:gn})})})]}),Hr=r.jsxs(r.Fragment,{children:[r.jsx(fl,{listKey:`${y??""}:${m??""}`,variants:Vt.map((t,n)=>({index:n,label:t.label})),selectedIndex:Ln,onSelect:dr,onRename:O,onDuplicate:Ea,onDelete:ja,onRemoveAll:fr,onReorder:Va,onAdd:()=>Sn()}),r.jsx(po,{children:r.jsx(ks,{currentRt:Yt??"",currentLabel:_n(kt?.rule,d??{},we,u??void 0),currentGlobalKey:Mt(kt?.rule,d??{},u??void 0)??void 0,matchers:sn,globals:fs,onSelect:Aa,onSelectGlobal:Pa,named:ms(kt?.rule,Ca),namedRow:ws(kt?.rule,Ht),rule:kt?.rule,schema:Ka,formValue:qo,onChange:Na,formKey:`${m??"none"}:${Ln}:${Yt??""}`,formWrapperClassName:"pt-1",meta:u??void 0,decofile:d,onSaveReferencedBlock:mn,sandbox:gn})})]}),qr=r.jsx("div",{className:le(Z?"px-2":"p-2 pt-3"),children:r.jsx(Kc,{listKey:`${y??""}-${te}`,rawSections:B,sections:ce,meta:u,decofile:d,selectedIndex:m,onSelect:t=>{va(t),Je?.(t)},onReorder:ya,onDelete:Sa,onDuplicate:ba,onMakeReusable:Ve,onToggleHidden:xa,onToggleLazy:rt?_a:void 0,onAddVariant:Sn,onDetach:ka,onAddSection:()=>He(!0),canAddSection:pr})}),Ya=r.jsxs("div",{className:"min-w-0 max-w-full space-y-4 overflow-x-hidden px-3",children:[y&&oe&&r.jsx(fo,{pageKey:y,initialName:oe.name,initialPath:oe.path,onFieldChange:cr}),nn&&y?r.jsx(To,{rawSeo:Kn,innerSeo:as,defaultResolveType:Xs,seoTypesLoading:v&&!u,seoSchema:Ys,activeResolveType:Dn,seoTypeOptions:Qs,formResetKey:Ms,siteDefaultSeo:Zs,onBreadcrumbChange:Ot,onPersistRaw:Or,onInnerChange:Lr,onClearForm:zr,onBumpFormKey:$r,asyncRenderAvailable:rt}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})]}),Za=r.jsx(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:r.jsx("div",{className:"mx-auto max-w-2xl",children:nn&&y?r.jsx(To,{rawSeo:Kn,innerSeo:as,defaultResolveType:Xs,seoTypesLoading:v&&!u,seoSchema:Ys,activeResolveType:Dn,seoTypeOptions:Qs,formResetKey:Ms,siteDefaultSeo:Zs,onBreadcrumbChange:Ot,onPersistRaw:Or,onInnerChange:Lr,onClearForm:zr,onBumpFormKey:$r,asyncRenderAvailable:rt}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"),ei=r.jsxs(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[yt&&y&&r.jsx(mo,{listKey:y,variants:pe,activeIndex:te,decofile:d??{},meta:u,matchers:sn,onSelect:cs,onReorder:Kr,onRename:M,onDuplicate:Mr,onDelete:Dr,onAdd:bn}),yt&&X!==null&&r.jsxs("div",{className:le("px-3 border-b",En?"pt-3 pb-5 space-y-3":"py-2"),children:[r.jsxs("button",{type:"button",onClick:()=>Wo(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-[var(--studio-control-radius,var(--radius-sm))] py-0.5 hover:bg-accent","aria-expanded":En,children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),En?r.jsx(Qi,{className:"size-3.5 shrink-0 text-muted-foreground"}):r.jsx(Ui,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),En&&r.jsx("div",{className:le("space-y-3",Zt&&"pointer-events-none opacity-50"),children:r.jsx(ks,{currentRt:X,currentLabel:_n(Se?.rule,d??{},we,u??void 0),currentGlobalKey:Mt(Se?.rule,d??{},u??void 0)??void 0,matchers:sn,globals:fs,onSelect:vr,onSelectGlobal:xr,named:ms(Se?.rule,br),namedRow:ws(Se?.rule,Ht),rule:Se?.rule,schema:hr,formValue:Ke,onChange:yr,formKey:`${te}:${X??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:d,onSaveReferencedBlock:mn,sandbox:gn})})]}),qr]},"editor-section-list");return r.jsx(lc,{value:v,children:r.jsx(ml,{children:r.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[!Z&&ys&&r.jsx("div",{className:"flex min-w-0 shrink-0 items-center gap-2 px-3 py-2",children:ys}),(Z||zn.length>1)&&r.jsx(Hi,{crumbs:zn,onSelect:vs,onSelectRoot:()=>{fn.flush(),Ue?Ue():vs(0)}}),r.jsx("div",{className:"shrink-0",children:Z?r.jsxs("div",{className:le("flex items-center gap-2 border-b px-3 py-2.5",ft&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[Z&&ys,ft&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Yn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Et,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),r.jsxs("div",{className:"flex min-w-0 flex-1 flex-col leading-tight",children:[r.jsx("span",{className:"truncate text-sm font-semibold",children:Oa}),Br&&r.jsx("span",{className:"truncate text-xs text-muted-foreground",children:Br})]}),gs&&yt&&Se&&r.jsx(ho,{variants:pe,activeIndex:te,onSelect:cs,onManage:Ua,onRemoveAll:$a}),Ia&&r.jsx(ho,{variants:Vt,activeIndex:Ln,onSelect:dr,onManage:Ja,onRemoveAll:fr}),gs&&!yt&&r.jsx(Gn,{onClick:bn}),Fa&&r.jsx(Gn,{onClick:()=>Sn()}),r.jsx(pl,{}),gs&&r.jsxs(r.Fragment,{children:[r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:Ga,children:r.jsx(lo,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),!Le&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>bt(!0),children:r.jsx(co,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]})]})]}):Qa}),ut&&r.jsx(pi,{open:!0,fields:hi(ut.plan,ut.target.schema),choices:ut.choices,changedAgain:ut.changedAgain,author:Hs??null,authorPending:Hs===void 0,fieldsAsLabeled:Ws!==null,fresh:ut.fresh,keepTyping:v,onChoose:(t,n)=>ga({...ut.choices,[t]:n}),onApply:ha},Lc(ut.formBase)),Lt?r.jsx(go,{onAdd:()=>Sn(),children:Hr},"editor-section-variants"):At?r.jsxs(an,{viewportRef:me,onBlur:sr,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[!Z&&Tt&&Vt.length>0&&D.length===0&&Hr,r.jsx(Ao,{value:Sr,children:r.jsx(vo,{value:q&&v?Be:null,children:r.jsx(yo,{activeSchema:Fn,formValue:Ze,formResetKey:De,onFormChange:lr,onBreadcrumbChange:T,breadcrumbPath:D,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:u,decofile:d,onSaveReferencedBlock:mn,sandbox:gn,previewBaseUrl:st,onRequestAddSection:ur,onVariantMatcherOp:q?qa:void 0})})})]},"editor-section-form"):q?r.jsx(an,{viewportRef:me,onBlur:sr,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx(Ao,{value:Sr,children:r.jsx(vo,{value:q&&v?Be:null,children:r.jsx(yo,{activeSchema:Fn,formValue:Ze,formResetKey:De,onFormChange:lr,onBreadcrumbChange:T,breadcrumbPath:D,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:u,decofile:d,onSaveReferencedBlock:mn,sandbox:gn,previewBaseUrl:st,onRequestAddSection:ur})})})},"editor-global-block"):Re?Z?r.jsx(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"p-3",children:Ya})},"editor-seo"):Za:Qt?r.jsx(go,{onAdd:bn,children:Xa},"editor-variants"):Z?r.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[r.jsx(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"py-2",children:qr})}),r.jsx("div",{className:"shrink-0 border-t p-2",children:r.jsx(Ns,{canAddSection:pr,onAddSection:()=>He(!0)})})]},"editor-section-list"):ei,r.jsx(hl,{open:ie!==null,onOpenChange:t=>{t||Ve(null)},defaultBlockId:ie!==null?Jn(ce[ie]?.label??""):"",isPending:L.isPending,onSubmit:Ta}),ot&&r.jsx(tc,{open:Ae,onOpenChange:t=>{He(t),t||(jn.current=null)},meta:u,decofile:d,previewBaseUrl:st,onSelect:Ra}),ht&&y&&d&&r.jsx(sc,{open:ht,onOpenChange:bt,pageKey:y,decofile:d}),Te!==null&&r.jsx(So,{open:!0,initialName:Jt(pe[Te]?.rule,d??{},u??void 0)?_n(pe[Te]?.rule,d??{},we,u??void 0):"",autoLabel:we(Rs(pe[Te]?.rule,d??{},u??void 0)),isPending:Zt,onSubmit:async t=>{await Wa(Te,t)},onOpenChange:t=>{!t&&!Zt&&M(null)}}),tt!==null&&r.jsx(So,{open:!0,initialName:Jt(Vt[tt]?.rule,d??{},u??void 0)?_n(Vt[tt]?.rule,d??{},we,u??void 0):"",autoLabel:we(Rs(Vt[tt]?.rule,d??{},u??void 0)),isPending:Zt,onSubmit:async t=>{await Ha(tt,t)},onOpenChange:t=>{!t&&!Zt&&O(null)}})]})})})}export{Hf as SectionsEditor};
@@ -1 +0,0 @@
1
- import{r as d,c3 as rt,c4 as _e,j as c,c5 as st,c6 as be,c7 as k,c8 as lt,c9 as j,ca as N,cb as $,cc as at,cd as Ee,ce as Re,cf as it,cg as ct,ch as dt,ci as ut,cj as pt,ck as ft,cl as mt,cm as ht,cn as vt,co as gt,cp as xt,cq as St,c as ee,m as oe,a_ as wt}from"./index-BMmgvdyP.js";import{c as Ne}from"./index-BdQq_4o_.js";import{V as Ct}from"./index-D2apPugj.js";import{t as je}from"./ChevronDown-CNsLQB9X.js";import{n as yt}from"./ChevronUp-BIDp2ptm.js";var It=[" ","Enter","ArrowUp","ArrowDown"],bt=[" ","Enter"],J="Select",[de,ue,Tt]=it(J),[ne]=vt(J,[Tt,Re]),pe=Re(),[_t,G]=ne(J),[Nt,Pt]=ne(J),Me=r=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:n,onOpenChange:l,value:s,defaultValue:a,onValueChange:i,dir:u,name:f,autoComplete:m,disabled:w,required:C,form:S}=r,p=pe(e),[g,y]=d.useState(null),[v,x]=d.useState(null),[F,M]=d.useState(!1),re=rt(u),[P,O]=_e({prop:o,defaultProp:n??!1,onChange:l,caller:J}),[U,q]=_e({prop:s,defaultProp:a,onChange:i,caller:J}),L=d.useRef(null),B=g?S||!!g.closest("form"):!0,[W,V]=d.useState(new Set),H=Array.from(W).map(E=>E.props.value).join(";");return c.jsx(st,{...p,children:c.jsxs(_t,{required:C,scope:e,trigger:g,onTriggerChange:y,valueNode:v,onValueNodeChange:x,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:be(),value:U,onValueChange:q,open:P,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:w,children:[c.jsx(de.Provider,{scope:e,children:c.jsx(Nt,{scope:r.__scopeSelect,onNativeOptionAdd:d.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:d.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?c.jsxs(et,{"aria-hidden":!0,required:C,tabIndex:-1,name:f,autoComplete:m,value:U,onChange:E=>q(E.target.value),disabled:w,form:S,children:[U===void 0?c.jsx("option",{value:""}):null,Array.from(W)]},H):null]})})};Me.displayName=J;var Ae="SelectTrigger",Oe=d.forwardRef((r,e)=>{const{__scopeSelect:t,disabled:o=!1,...n}=r,l=pe(t),s=G(Ae,t),a=s.disabled||o,i=k(e,s.onTriggerChange),u=ue(t),f=d.useRef("touch"),[m,w,C]=ot(p=>{const g=u().filter(x=>!x.disabled),y=g.find(x=>x.value===s.value),v=nt(g,p,y);v!==void 0&&s.onValueChange(v.value)}),S=p=>{a||(s.onOpenChange(!0),C()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(lt,{asChild:!0,...l,children:c.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":tt(s.value)?"":void 0,...n,ref:i,onClick:N(n.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&S(p)}),onPointerDown:N(n.onPointerDown,p=>{f.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:N(n.onKeyDown,p=>{const g=m.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&w(p.key),!(g&&p.key===" ")&&It.includes(p.key)&&(S(),p.preventDefault())})})})});Oe.displayName=Ae;var De="SelectValue",ke=d.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,children:l,placeholder:s="",...a}=r,i=G(De,t),{onValueNodeHasChildrenChange:u}=i,f=l!==void 0,m=k(e,i.onValueNodeChange);return $(()=>{u(f)},[u,f]),c.jsx(j.span,{...a,ref:m,style:{pointerEvents:"none"},children:tt(i.value)?c.jsx(c.Fragment,{children:s}):l})});ke.displayName=De;var Et="SelectIcon",Le=d.forwardRef((r,e)=>{const{__scopeSelect:t,children:o,...n}=r;return c.jsx(j.span,{"aria-hidden":!0,...n,ref:e,children:o||"▼"})});Le.displayName=Et;var Rt="SelectPortal",Be=r=>c.jsx(at,{asChild:!0,...r});Be.displayName=Rt;var Q="SelectContent",Ve=d.forwardRef((r,e)=>{const t=G(Q,r.__scopeSelect),[o,n]=d.useState();if($(()=>{n(new DocumentFragment)},[]),!t.open){const l=o;return l?Ee.createPortal(c.jsx(He,{scope:r.__scopeSelect,children:c.jsx(de.Slot,{scope:r.__scopeSelect,children:c.jsx("div",{children:r.children})})}),l):null}return c.jsx(ze,{...r,ref:e})});Ve.displayName=Q;var A=10,[He,Y]=ne(Q),jt="SelectContentImpl",Mt=gt("SelectContent.RemoveScroll"),ze=d.forwardRef((r,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:l,onPointerDownOutside:s,side:a,sideOffset:i,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:w,collisionPadding:C,sticky:S,hideWhenDetached:p,avoidCollisions:g,...y}=r,v=G(Q,t),[x,F]=d.useState(null),[M,re]=d.useState(null),P=k(e,h=>F(h)),[O,U]=d.useState(null),[q,L]=d.useState(null),B=ue(t),[W,V]=d.useState(!1),H=d.useRef(!1);d.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=d.useCallback(h=>{const[T,...R]=B().map(_=>_.ref.current),[I]=R.slice(-1),b=document.activeElement;for(const _ of h)if(_===b||(_?.scrollIntoView({block:"nearest"}),_===T&&M&&(M.scrollTop=0),_===I&&M&&(M.scrollTop=M.scrollHeight),_?.focus(),document.activeElement!==b))return},[B,M]),D=d.useCallback(()=>E([O,x]),[E,O,x]);d.useEffect(()=>{W&&D()},[W,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=v;d.useEffect(()=>{if(x){let h={x:0,y:0};const T=I=>{h={x:Math.abs(Math.round(I.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(I.pageY)-(K.current?.y??0))}},R=I=>{h.x<=10&&h.y<=10?I.preventDefault():x.contains(I.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),d.useEffect(()=>{const h=()=>z(!1);return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[z]);const[fe,ae]=ot(h=>{const T=B().filter(b=>!b.disabled),R=T.find(b=>b.ref.current===document.activeElement),I=nt(T,h,R);I&&setTimeout(()=>I.ref.current.focus())}),me=d.useCallback((h,T,R)=>{const I=!H.current&&!R;(v.value!==void 0&&v.value===T||I)&&(U(h),I&&(H.current=!0))},[v.value]),he=d.useCallback(()=>x?.focus(),[x]),te=d.useCallback((h,T,R)=>{const I=!H.current&&!R;(v.value!==void 0&&v.value===T||I)&&L(h)},[v.value]),ie=o==="popper"?Se:Fe,se=ie===Se?{side:a,sideOffset:i,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:w,collisionPadding:C,sticky:S,hideWhenDetached:p,avoidCollisions:g}:{};return c.jsx(He,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:W,searchRef:fe,children:c.jsx(ft,{as:Mt,allowPinchZoom:!0,children:c.jsx(mt,{asChild:!0,trapped:v.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:N(n,h=>{v.trigger?.focus({preventScroll:!0}),h.preventDefault()}),children:c.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:c.jsx(ie,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:h=>h.preventDefault(),...y,...se,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,h=>{const T=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!T&&h.key.length===1&&ae(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let I=B().filter(b=>!b.disabled).map(b=>b.ref.current);if(["ArrowUp","End"].includes(h.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){const b=h.target,_=I.indexOf(b);I=I.slice(_+1)}setTimeout(()=>E(I)),h.preventDefault()}})})})})})})});ze.displayName=jt;var At="SelectItemAlignedPosition",Fe=d.forwardRef((r,e)=>{const{__scopeSelect:t,onPlaced:o,...n}=r,l=G(Q,t),s=Y(Q,t),[a,i]=d.useState(null),[u,f]=d.useState(null),m=k(e,P=>f(P)),w=ue(t),C=d.useRef(!1),S=d.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:y,focusSelectedItem:v}=s,x=d.useCallback(()=>{if(l.trigger&&l.valueNode&&a&&u&&p&&g&&y){const P=l.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),U=l.valueNode.getBoundingClientRect(),q=y.getBoundingClientRect();if(l.dir!=="rtl"){const b=q.left-O.left,_=U.left-b,X=P.left-_,Z=P.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(_,[A,Math.max(A,ge-ve)]);a.style.minWidth=Z+"px",a.style.left=xe+"px"}else{const b=O.right-q.right,_=window.innerWidth-U.right-b,X=window.innerWidth-P.right-_,Z=P.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(_,[A,Math.max(A,ge-ve)]);a.style.minWidth=Z+"px",a.style.right=xe+"px"}const L=w(),B=window.innerHeight-A*2,W=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+W+z+D,fe=Math.min(g.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=P.top+P.height/2-A,ie=B-te,se=g.offsetHeight/2,h=g.offsetTop+se,T=H+E+h,R=K-T;if(T<=te){const b=L.length>0&&g===L[L.length-1].ref.current;a.style.bottom="0px";const _=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ie,se+(b?he:0)+_+D),Z=T+X;a.style.height=Z+"px"}else{const b=L.length>0&&g===L[0].ref.current;a.style.top="0px";const X=Math.max(te,H+p.offsetTop+(b?me:0)+se)+R;a.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}a.style.margin=`${A}px 0`,a.style.minHeight=fe+"px",a.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>C.current=!0)}},[w,l.trigger,l.valueNode,a,u,p,g,y,l.dir,o]);$(()=>x(),[x]);const[F,M]=d.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=d.useCallback(P=>{P&&S.current===!0&&(x(),v?.(),S.current=!1)},[x,v]);return c.jsx(Dt,{scope:t,contentWrapper:a,shouldExpandOnScrollRef:C,onScrollButtonChange:re,children:c.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:c.jsx(j.div,{...n,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});Fe.displayName=At;var Ot="SelectPopperPosition",Se=d.forwardRef((r,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=A,...l}=r,s=pe(t);return c.jsx(xt,{...s,...l,ref:e,align:o,collisionPadding:n,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=Ot;var[Dt,Te]=ne(Q,{}),we="SelectViewport",Ue=d.forwardRef((r,e)=>{const{__scopeSelect:t,nonce:o,...n}=r,l=Y(we,t),s=Te(we,t),a=k(e,l.onViewportChange),i=d.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(de.Slot,{scope:t,children:c.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:N(n.onScroll,u=>{const f=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:w}=s;if(w?.current&&m){const C=Math.abs(i.current-f.scrollTop);if(C>0){const S=window.innerHeight-A*2,p=parseFloat(m.style.minHeight),g=parseFloat(m.style.height),y=Math.max(p,g);if(y<S){const v=y+C,x=Math.min(S,v),F=v-x;m.style.height=x+"px",m.style.bottom==="0px"&&(f.scrollTop=F>0?F:0,m.style.justifyContent="flex-end")}}}i.current=f.scrollTop})})})]})});Ue.displayName=we;var We="SelectGroup",[kt,Lt]=ne(We),Bt=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=be();return c.jsx(kt,{scope:t,id:n,children:c.jsx(j.div,{role:"group","aria-labelledby":n,...o,ref:e})})});Bt.displayName=We;var Ke="SelectLabel",Vt=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=Lt(Ke,t);return c.jsx(j.div,{id:n.id,...o,ref:e})});Vt.displayName=Ke;var ce="SelectItem",[Ht,$e]=ne(ce),Ge=d.forwardRef((r,e)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:l,...s}=r,a=G(ce,t),i=Y(ce,t),u=a.value===o,[f,m]=d.useState(l??""),[w,C]=d.useState(!1),S=k(e,v=>i.itemRefCallback?.(v,o,n)),p=be(),g=d.useRef("touch"),y=()=>{n||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(Ht,{scope:t,value:o,disabled:n,textId:p,isSelected:u,onItemTextChange:d.useCallback(v=>{m(x=>x||(v?.textContent??"").trim())},[]),children:c.jsx(de.ItemSlot,{scope:t,value:o,disabled:n,textValue:f,children:c.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":w?"":void 0,"aria-selected":u&&w,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:S,onFocus:N(s.onFocus,()=>C(!0)),onBlur:N(s.onBlur,()=>C(!1)),onClick:N(s.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:N(s.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:N(s.onPointerDown,v=>{g.current=v.pointerType}),onPointerMove:N(s.onPointerMove,v=>{g.current=v.pointerType,n?i.onItemLeave?.():g.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,v=>{v.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,v=>{i.searchRef?.current!==""&&v.key===" "||(bt.includes(v.key)&&y(),v.key===" "&&v.preventDefault())})})})})});Ge.displayName=ce;var le="SelectItemText",Ye=d.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,...l}=r,s=G(le,t),a=Y(le,t),i=$e(le,t),u=Pt(le,t),[f,m]=d.useState(null),w=k(e,y=>m(y),i.onItemTextChange,y=>a.itemTextRefCallback?.(y,i.value,i.disabled)),C=f?.textContent,S=d.useMemo(()=>c.jsx("option",{value:i.value,disabled:i.disabled,children:C},i.value),[i.disabled,i.value,C]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return $(()=>(p(S),()=>g(S)),[p,g,S]),c.jsxs(c.Fragment,{children:[c.jsx(j.span,{id:i.textId,...l,ref:w}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ee.createPortal(l.children,s.valueNode):null]})});Ye.displayName=le;var qe="SelectItemIndicator",Xe=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return $e(qe,t).isSelected?c.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});Xe.displayName=qe;var Ce="SelectScrollUpButton",Ze=d.forwardRef((r,e)=>{const t=Y(Ce,r.__scopeSelect),o=Te(Ce,r.__scopeSelect),[n,l]=d.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let a=function(){const u=i.scrollTop>0;l(u)};const i=t.viewport;return a(),i.addEventListener("scroll",a),()=>i.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),n?c.jsx(Qe,{...r,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:i}=t;a&&i&&(a.scrollTop=a.scrollTop-i.offsetHeight)}}):null});Ze.displayName=Ce;var ye="SelectScrollDownButton",Je=d.forwardRef((r,e)=>{const t=Y(ye,r.__scopeSelect),o=Te(ye,r.__scopeSelect),[n,l]=d.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let a=function(){const u=i.scrollHeight-i.clientHeight,f=Math.ceil(i.scrollTop)<u;l(f)};const i=t.viewport;return a(),i.addEventListener("scroll",a),()=>i.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),n?c.jsx(Qe,{...r,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:i}=t;a&&i&&(a.scrollTop=a.scrollTop+i.offsetHeight)}}):null});Je.displayName=ye;var Qe=d.forwardRef((r,e)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=r,l=Y("SelectScrollButton",t),s=d.useRef(null),a=ue(t),i=d.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return d.useEffect(()=>()=>i(),[i]),$(()=>{a().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),c.jsx(j.div,{"aria-hidden":!0,...n,ref:e,style:{flexShrink:0,...n.style},onPointerDown:N(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:N(n.onPointerMove,()=>{l.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:N(n.onPointerLeave,()=>{i()})})}),zt="SelectSeparator",Ft=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return c.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});Ft.displayName=zt;var Ie="SelectArrow",Ut=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=pe(t),l=G(Ie,t),s=Y(Ie,t);return l.open&&s.position==="popper"?c.jsx(St,{...n,...o,ref:e}):null});Ut.displayName=Ie;var Wt="SelectBubbleInput",et=d.forwardRef(({__scopeSelect:r,value:e,...t},o)=>{const n=d.useRef(null),l=k(o,n),s=ct(e);return d.useEffect(()=>{const a=n.current;if(!a)return;const i=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(i,"value").set;if(s!==e&&f){const m=new Event("change",{bubbles:!0});f.call(a,e),a.dispatchEvent(m)}},[s,e]),c.jsx(j.select,{...t,style:{...Ct,...t.style},ref:l,defaultValue:e})});et.displayName=Wt;function tt(r){return r===""||r===void 0}function ot(r){const e=dt(r),t=d.useRef(""),o=d.useRef(0),n=d.useCallback(s=>{const a=t.current+s;e(a),(function i(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>i(""),1e3))})(a)},[e]),l=d.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,l]}function nt(r,e,t){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,l=t?r.indexOf(t):-1;let s=Kt(r,Math.max(l,0));n.length===1&&(s=s.filter(u=>u!==t));const i=s.find(u=>u.textValue.toLowerCase().startsWith(n.toLowerCase()));return i!==t?i:void 0}function Kt(r,e){return r.map((t,o)=>r[(e+o)%r.length])}var $t=Me,Gt=Oe,Yt=ke,qt=Le,Xt=Be,Zt=Ve,Jt=Ue,Qt=Ge,Pe=Ye,eo=Xe,to=Ze,oo=Je;function uo(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=c.jsx($t,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=c.jsx(Yt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function fo(r){const e=ee.c(15);let t,o,n,l,s;e[0]!==r?({className:o,size:l,variant:s,children:t,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=l,e[5]=s):(t=e[1],o=e[2],n=e[3],l=e[4],s=e[5]);const a=l===void 0?"default":l,i=s===void 0?"outline":s;let u;e[6]!==o?(u=oe("data-[placeholder]:text-subtle-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-ring aria-invalid:bg-destructive/10 aria-invalid:shadow-[inset_0_0_0_1px_var(--destructive)] flex w-fit items-center justify-between gap-1.5 px-3 text-sm whitespace-nowrap transition-[color,background-color,box-shadow] outline-none disabled:text-subtle-foreground disabled:pointer-events-none","data-[variant=outline]:rounded-[var(--studio-control-radius,var(--radius-lg))] data-[variant=outline]:bg-[var(--studio-input-background)] data-[variant=outline]:shadow-edge data-[variant=outline]:hover:bg-sidebar","data-[variant=filled]:rounded-full data-[variant=filled]:bg-muted data-[variant=filled]:hover:bg-secondary-hover","data-[variant=pill]:rounded-full data-[variant=pill]:bg-card data-[variant=pill]:shadow-edge data-[variant=pill]:hover:bg-[var(--studio-outline-hover-background)]","data-[size=default]:h-[var(--studio-control-height,2.25rem)] data-[size=default]:pl-4 data-[size=sm]:h-8 data-[size=xs]:h-7 data-[size=xs]:px-2.5 data-[size=xs]:text-xs data-[size=xs]:font-medium","*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",o),e[6]=o,e[7]=u):u=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=c.jsx(qt,{asChild:!0,children:c.jsx(je,{className:"size-3.5 stroke-[1.5]"})}),e[8]=f):f=e[8];let m;return e[9]!==t||e[10]!==n||e[11]!==a||e[12]!==u||e[13]!==i?(m=c.jsxs(Gt,{"data-slot":"select-trigger","data-size":a,"data-variant":i,className:u,...n,children:[t,f]}),e[9]=t,e[10]=n,e[11]=a,e[12]=u,e[13]=i,e[14]=m):m=e[14],m}function mo(r){const e=ee.c(25);let t,o,n,l,s;e[0]!==r?({className:o,children:t,position:l,hideScrollButtons:s,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=l,e[5]=s):(t=e[1],o=e[2],n=e[3],l=e[4],s=e[5]);const a=l===void 0?"popper":l,i=s===void 0?!1:s,u=a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let f;e[6]!==o||e[7]!==u?(f=oe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--studio-surface-radius,var(--radius-lg))] border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=f):f=e[8];let m;e[9]!==i?(m=!i&&c.jsx(no,{}),e[9]=i,e[10]=m):m=e[10];const w=a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let C;e[11]!==w?(C=oe("p-1",w),e[11]=w,e[12]=C):C=e[12];let S;e[13]!==t||e[14]!==C?(S=c.jsx(Jt,{className:C,children:t}),e[13]=t,e[14]=C,e[15]=S):S=e[15];let p;e[16]!==i?(p=!i&&c.jsx(ro,{}),e[16]=i,e[17]=p):p=e[17];let g;return e[18]!==a||e[19]!==n||e[20]!==f||e[21]!==m||e[22]!==S||e[23]!==p?(g=c.jsx(Xt,{children:c.jsxs(Zt,{"data-slot":"select-content",translate:"no",className:f,position:a,...n,children:[m,S,p]})}),e[18]=a,e[19]=n,e[20]=f,e[21]=m,e[22]=S,e[23]=p,e[24]=g):g=e[24],g}function ho(r){const e=ee.c(19);let t,o,n,l,s;e[0]!==r?({className:o,children:t,description:n,hideCheck:s,...l}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=l,e[5]=s):(t=e[1],o=e[2],n=e[3],l=e[4],s=e[5]);const a=s===void 0?!1:s,i=n&&"items-start py-2";let u;e[6]!==o||e[7]!==i?(u=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",i,o),e[6]=o,e[7]=i,e[8]=u):u=e[8];let f;e[9]!==a?(f=!a&&c.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(eo,{children:c.jsx(wt,{className:"size-4"})})}),e[9]=a,e[10]=f):f=e[10];let m;e[11]!==t||e[12]!==n?(m=n?c.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c.jsx(Pe,{children:t}),c.jsx("span",{className:"text-xs text-muted-foreground whitespace-normal",children:n})]}):c.jsx(Pe,{children:t}),e[11]=t,e[12]=n,e[13]=m):m=e[13];let w;return e[14]!==l||e[15]!==u||e[16]!==f||e[17]!==m?(w=c.jsxs(Qt,{"data-slot":"select-item",className:u,...l,children:[f,m]}),e[14]=l,e[15]=u,e[16]=f,e[17]=m,e[18]=w):w=e[18],w}function no(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(yt,{className:"size-4"}),e[5]=l):l=e[5];let s;return e[6]!==o||e[7]!==n?(s=c.jsx(to,{"data-slot":"select-scroll-up-button",className:n,...o,children:l}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}function ro(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(je,{className:"size-4"}),e[5]=l):l=e[5];let s;return e[6]!==o||e[7]!==n?(s=c.jsx(oo,{"data-slot":"select-scroll-down-button",className:n,...o,children:l}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}export{uo as S,po as a,fo as b,ho as c,mo as d};
@@ -1 +0,0 @@
1
- import{c as $,b as A,r as R,m as G,j as s,B as H,s as J,x as K,v as Q,D as U}from"./index-BMmgvdyP.js";import{d as V,b as W,a as X,D as Y}from"./drawer-DqVxP8Jv.js";import{u as Z}from"./use-mobile-0mea_Z-0.js";import{d as ee}from"./chat-context-BTezEUIM.js";import{S as F,a as se,M as le,c as te}from"./index-Bt2hcW3a.js";function me(L){const e=$.c(48),{variant:o,className:t,placeholder:n,model:l,isLoading:I,credentialId:P,onCredentialChange:k,onModelChange:b,filterModels:E}=L,z=o===void 0?"borderless":o,w=n===void 0?"Select model":n,r=A(),[a,S]=R.useState(!1),i=b!==void 0,q=Z(),O=z==="borderless"?"ghost":"outline",_=z==="borderless"&&"md:border-none";let d;e[0]!==t||e[1]!==_?(d=G("text-sm hover:bg-accent py-0.5 px-1 gap-1 shadow-none cursor-pointer border-0 group min-w-0 shrink justify-start overflow-hidden",_,t),e[0]=t,e[1]=_,e[2]=d):d=e[2];let c;e[3]!==I||e[4]!==l||e[5]!==w||e[6]!==i?(c=i?s.jsx(F,{model:l??null,placeholder:w,isLoading:I}):s.jsx(ne,{placeholder:w}),e[3]=I,e[4]=l,e[5]=w,e[6]=i,e[7]=c):c=e[7];let D;e[8]!==O||e[9]!==d||e[10]!==c?(D=s.jsx(H,{variant:O,size:"sm",className:d,children:c}),e[8]=O,e[9]=d,e[10]=c,e[11]=D):D=e[11];const m=D;let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(se,{}),e[12]=y):y=e[12];let N;e[13]!==P||e[14]!==E||e[15]!==l||e[16]!==k||e[17]!==b||e[18]!==i?(N=s.jsx(R.Suspense,{fallback:y,children:i?s.jsx(le,{onClose:()=>S(!1),credentialId:P??null,onCredentialChange:k??oe,selectedModel:l??null,onModelChange:b,filterModels:E}):s.jsx(te,{onClose:()=>S(!1)})}),e[13]=P,e[14]=E,e[15]=l,e[16]=k,e[17]=b,e[18]=i,e[19]=N):N=e[19];const f=N;if(q){let g;e[20]!==m?(g=s.jsx(V,{asChild:!0,children:m}),e[20]=m,e[21]=g):g=e[21];let j;e[22]!==r?(j=r("chat.selectModel.selectModel"),e[22]=r,e[23]=j):j=e[23];let M;e[24]!==j?(M=s.jsx(W,{className:"sr-only",children:j}),e[24]=j,e[25]=M):M=e[25];let C;e[26]!==f?(C=s.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden",children:f}),e[26]=f,e[27]=C):C=e[27];let v;e[28]!==M||e[29]!==C?(v=s.jsxs(X,{className:"p-0 flex flex-col max-h-[95vh]",children:[M,C]}),e[28]=M,e[29]=C,e[30]=v):v=e[30];let T;return e[31]!==a||e[32]!==g||e[33]!==v?(T=s.jsxs(Y,{open:a,onOpenChange:S,children:[g,v]}),e[31]=a,e[32]=g,e[33]=v,e[34]=T):T=e[34],T}let h;e[35]!==m?(h=s.jsx(J,{asChild:!0,children:m}),e[35]=m,e[36]=h):h=e[36];let x;e[37]!==r?(x=r("chat.selectModel.selectModel"),e[37]=r,e[38]=x):x=e[38];let p;e[39]!==x?(p=s.jsx(K,{className:"sr-only",children:x}),e[39]=x,e[40]=p):p=e[40];let u;e[41]!==f||e[42]!==p?(u=s.jsxs(Q,{className:"p-0 gap-0 sm:max-w-fit overflow-hidden h-[100dvh] sm:h-auto max-h-[100dvh] sm:max-h-[85vh] w-full max-w-full sm:max-w-fit rounded-none sm:rounded-xl border-0 sm:border",closeButtonClassName:"top-3.5 right-3.5 z-20",children:[p,f]}),e[41]=f,e[42]=p,e[43]=u):u=e[43];let B;return e[44]!==a||e[45]!==h||e[46]!==u?(B=s.jsxs(U,{open:a,onOpenChange:S,children:[h,u]}),e[44]=a,e[45]=h,e[46]=u,e[47]=B):B=e[47],B}function oe(){}function ne(L){const e=$.c(4),{placeholder:o}=L,{selectedModel:t,isModelsLoading:n}=ee();let l;return e[0]!==n||e[1]!==t||e[2]!==o?(l=s.jsx(F,{model:t,placeholder:o,isLoading:n}),e[0]=n,e[1]=t,e[2]=o,e[3]=l):l=e[3],l}export{me as M};
@@ -1 +0,0 @@
1
- import{c as C,b as ee,j as s,q as ze,K as Ne,r as Z,av as Ae,B as Ue,h as Pe}from"./index-BMmgvdyP.js";import{Q as we}from"./agent-icon-CQr8igXA.js";import{S as Ee}from"./scroll-area-CfhdnDFt.js";import{X as Re,d as _e}from"./held-block-view-D72TIWbg.js";import{a0 as Ie,z as Oe}from"./blocks-tab-states-CH65ZuMR.js";import{aV as Be,aT as fe,Y as Me,aW as He,aX as Qe,aY as Ye,aZ as Ve,aR as We,aS as Xe,a_ as qe,X as Ge,aU as Ze}from"./category-tree-DaQvlJrH.js";import{L as Fe}from"./label-BsdPbIgn.js";import{S as Ce}from"./switch-C_NPIZ5s.js";import{a as Je}from"./save-status-q5Dh_h2L.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-Di5ANHUA.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-Coqou6or.js";import{b as ct}from"./use-never-published-CMjfqWp4.js";import{c as dt,u as ft}from"./hosted-reconcile-C45iSGuX.js";import{a as Ke}from"./Image01-BQ_N_-hp.js";const mt="https://deco.cx/docs/en/performance/edge-async-render";function ut(a){const e=C.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:d,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Je();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let f;e[2]!==t?(f=Be(t),e[2]=t,e[3]=f):f=e[3];const h=f,x=!n&&u;let y;e[4]!==c?(y=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=y):y=e[5];let v;e[6]!==y?(v=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:y}),e[6]=y,e[7]=v):v=e[7];const k=x&&l?"seo-enable-hint":void 0;let b;e[8]!==x||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:x,"aria-describedby":k,onCheckedChange:i}),e[8]=x,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==v||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v,b]}),e[13]=v,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==x||e[17]!==l?(j=x&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=x,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==h||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==d||e[24]!==c?(g=n&&(m||!d?o:s.jsxs(s.Fragment,{children:[o,s.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:c("sectionsEditor.seoFormChrome.asyncRenderLabel")}),s.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",s.jsx("a",{href:mt,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:c("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),s.jsx(Ce,{id:"seo-async-render",checked:h,onCheckedChange:d,className:"shrink-0"})]})]})),e[19]=h,e[20]=o,e[21]=m,e[22]=n,e[23]=d,e[24]=c,e[25]=g):g=e[25];let N;return e[26]!==g||e[27]!==S||e[28]!==j?(N=s.jsxs("div",{className:"space-y-4",children:[S,j,g]}),e[26]=g,e[27]=S,e[28]=j,e[29]=N):N=e[29],N}function pt(a){const e=C.c(20),{options:t,value:i,onChange:d}=a,r=ee();if(t.length<=1)return null;let l;e[0]!==r?(l=r("sectionsEditor.seoTypeSelect.label"),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==l?(o=s.jsx(Fe,{className:"text-xs text-muted-foreground",children:l}),e[2]=l,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("sectionsEditor.seoTypeSelect.placeholder"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==u?(c=s.jsx(tt,{className:"w-full",children:s.jsx(st,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(xt).map(ht),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(lt,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(ot,{value:i,onValueChange:d,children:[c,p]}),e[12]=d,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let f;return e[17]!==o||e[18]!==n?(f=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=f):f=e[19],f}function ht(a){return s.jsx(et,{value:a.resolveType,children:a.title},a.resolveType)}function xt(a){return a.resolveType.length>0}function yt(a){const e=C.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:d,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:f,onBumpFormKey:h,beforeFields:x,asyncRenderAvailable:y,seoTypesLoading:v}=a,k=y===void 0?!0:y,b=v===void 0?!1:v,S=ee(),g=!Me()||!b&&d!=="";let N;e[0]!==d||e[1]!==h||e[2]!==f||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Qe(d);p($),f(),h();return}p(null),f(),h()},e[0]=d,e[1]=h,e[2]=f,e[3]=p,e[4]=g,e[5]=N):N=e[5];const w=N;let E;e[6]!==p||e[7]!==t?(E=K=>{const $=He(K,t);p($)},e[6]=p,e[7]=t,e[8]=E):E=e[8];const T=E;let _;e[9]!==h||e[10]!==n?(_=K=>{n({__resolveType:K}),h()},e[9]=h,e[10]=n,e[11]=_):_=e[11];const L=_,z=!g;let R;e[12]!==g||e[13]!==b||e[14]!==S?(R=g||b?void 0:S("sectionsEditor.seoFormChrome.noSeoTypeHint"),e[12]=g,e[13]=b,e[14]=S,e[15]=R):R=e[15];const q=k?T:void 0;let P;e[16]!==l||e[17]!==L||e[18]!==t||e[19]!==r||e[20]!==o?(P=fe(t)&&r&&l&&o&&o.length>0&&s.jsx(pt,{options:o,value:l,onChange:L}),e[16]=l,e[17]=L,e[18]=t,e[19]=r,e[20]=o,e[21]=P):P=e[21];let F;e[22]!==l||e[23]!==u||e[24]!==i||e[25]!==m||e[26]!==n||e[27]!==t||e[28]!==r||e[29]!==c?(F=fe(t)&&r&&l&&s.jsx(Re,{schema:r,resolveType:l,value:i,formResetKey:u,onChange:K=>n(K),onBreadcrumbChange:m,siteDefaultSeo:c}),e[22]=l,e[23]=u,e[24]=i,e[25]=m,e[26]=n,e[27]=t,e[28]=r,e[29]=c,e[30]=F):F=e[30];let O;return e[31]!==x||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==q||e[38]!==P?(O=s.jsxs(ut,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:q,children:[x,P,F]}),e[31]=x,e[32]=w,e[33]=t,e[34]=F,e[35]=z,e[36]=R,e[37]=q,e[38]=P,e[39]=O):O=e[39],O}function Se(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function vt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const d=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:Ye(i,d)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function gt(a,e,t){if(e===null&&Ie(t??void 0)){const{seo:i,...d}=a;return d}return{...a,seo:e}}function bt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function St(a){const e=C.c(29),{orgSlug:t,virtualMcpId:i,branch:d,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze();let m;e[0]!==d||e[1]!==t||e[2]!==i?(m={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=m):m=e[3];const p=it(m);let n;e[4]!==d||e[5]!==t||e[6]!==i?(n={orgSlug:t,virtualMcpId:i,branch:d},e[4]=d,e[5]=t,e[6]=i,e[7]=n):n=e[7];let f;e[8]!==u?(f={onSaved:u,holdsCopy:!0},e[8]=u,e[9]=f):f=e[9];const{save:h,flush:x,isPending:y,hold:v,v8:k}=ct(n,f),b=k?p:`${t}/${i}/${d}`;let S;e[10]!==b||e[11]!==c||e[12]!==l||e[13]!==h||e[14]!==r?(S=E=>{l&&h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return vt(r,l,_,E)})},e[10]=b,e[11]=c,e[12]=l,e[13]=h,e[14]=r,e[15]=S):S=e[15];const j=S;let g;e[16]!==b||e[17]!==o||e[18]!==c||e[19]!==l||e[20]!==h||e[21]!==r?(g=E=>{!l||r.kind!=="page"||h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return Se(_)?gt(_,E,o):null})},e[16]=b,e[17]=o,e[18]=c,e[19]=l,e[20]=h,e[21]=r,e[22]=g):g=e[22];const N=g;let w;return e[23]!==x||e[24]!==v||e[25]!==y||e[26]!==N||e[27]!==j?(w={persistSeo:j,persistRawSeo:N,flush:x,isPending:y,hold:v},e[23]=x,e[24]=v,e[25]=y,e[26]=N,e[27]=j,e[28]=w):w=e[28],w}function J(a){return typeof a=="string"&&a.trim()?a:void 0}function Te(a,e){if(a){if(e)try{const t=new URL(a,e).href;return _e(t)}catch{return}return _e(a)}}function jt(a){if(!a)return{};const e=J(a.title),t=J(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:J(a.description),image:J(a.image),favicon:J(a.favicon)}}function kt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const Nt=[{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 je(a){const e=C.c(10),{src:t,className:i,iconSize:d}=a,r=d===void 0?20:d;if(t){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={objectFit:"cover"},e[0]=c):c=e[0];let m;return e[1]!==i||e[2]!==t?(m=s.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:i,style:c}),e[1]=i,e[2]=t,e[3]=m):m=e[3],m}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=l):l=e[4];let o;e[5]!==r?(o=s.jsx(Ke,{size:r}),e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==i||e[8]!==o?(u=s.jsx("div",{className:i,style:l,children:o}),e[7]=i,e[8]=o,e[9]=u):u=e[9],u}function wt(a){const e=C.c(33),{seo:t,host:i,path:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #dadce0"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={background:"#f1f3f4"},e[1]=o):o=e[1];let u;e[2]!==t.favicon?(u=s.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:o,children:t.favicon?s.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):s.jsx(Ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=u):u=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#202124"},e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsx("div",{className:"truncate text-[13px] leading-tight",style:c,children:i}),e[5]=i,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let n;e[8]!==i||e[9]!==d?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,d]}),e[8]=i,e[9]=d,e[10]=n):n=e[10];let f;e[11]!==m||e[12]!==n?(f=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[14]=u,e[15]=f,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 v;e[21]!==y?(v=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=v):v=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={color:"#4d5156"},e[23]=k):k=e[23];let b;e[24]!==t.description||e[25]!==r?(b=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=b):b=e[26];let S;e[27]!==b?(S=s.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:k,children:b}),e[27]=b,e[28]=S):S=e[28];let j;return e[29]!==v||e[30]!==S||e[31]!==h?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[h,v,S]}),e[29]=v,e[30]=S,e[31]=h,e[32]=j):j=e[32],j}function Et(a){const e=C.c(26),{seo:t,host:i,t:d}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let l;e[1]!==t.image?(l=s.jsx(je,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:"1px solid #e2e8f0"},e[3]=o):o=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[4]=u):u=e[4];let c;e[5]!==i?(c=s.jsx("div",{className:"truncate text-[11px]",style:u,children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];let p;e[8]!==t.title||e[9]!==d?(p=t.title??d("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=d,e[10]=p):p=e[10];let n;e[11]!==p?(n=s.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[11]=p,e[12]=n):n=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#60666c"},e[13]=f):f=e[13];let h;e[14]!==t.description||e[15]!==d?(h=t.description??d("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=d,e[16]=h):h=e[16];let x;e[17]!==h?(x=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:f,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==c||e[21]!==n?(y=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,x]}),e[19]=x,e[20]=c,e[21]=n,e[22]=y):y=e[22];let v;return e[23]!==y||e[24]!==l?(v=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,y]}),e[23]=y,e[24]=l,e[25]=v):v=e[25],v}function _t(a){const e=C.c(36),{seo:t,host:i,accent:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#f0f2f5"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#3b4045"},e[1]=o):o=e[1];let u;e[2]!==r?(u=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==u?(c=s.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:o,children:u}),e[4]=u,e[5]=c):c=e[5];const m=`3px solid ${d}`;let p;e[6]!==m?(p={background:"#fff",borderLeft:m},e[6]=m,e[7]=p):p=e[7];let n;e[8]!==t.image?(n=s.jsx(je,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=n):n=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1c2024"},e[10]=f):f=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=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:f,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 v;e[17]!==t.description||e[18]!==r?(v=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=v):v=e[19];let k;e[20]!==v?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:v}),e[20]=v,e[21]=k):k=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#8a9099"},e[22]=b):b=e[22];let S;e[23]!==i?(S=s.jsx("div",{className:"mt-0.5 text-[10px]",style:b,children:i}),e[23]=i,e[24]=S):S=e[24];let j;e[25]!==x||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[x,k,S]}),e[25]=x,e[26]=k,e[27]=S,e[28]=j):j=e[28];let g;e[29]!==j||e[30]!==p||e[31]!==n?(g=s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:p,children:[n,j]}),e[29]=j,e[30]=p,e[31]=n,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==c?(N=s.jsxs("div",{className:"rounded-lg p-2 text-left",style:l,children:[c,g]}),e[33]=g,e[34]=c,e[35]=N):N=e[35],N}function Ct(a){const e=C.c(39),{seo:t,host:i,accent:d,dark:r,t:l}=a,o=r?"#2b2d31":"#fff",u=r?"#00a8fc":"#1264a3",c=r?"#dbdee1":"#3b4045",m=r?"#949ba4":"#8a9099",p=r?"none":"1px solid #e2e8f0";let n;e[0]!==o||e[1]!==p?(n={background:o,border:p},e[0]=o,e[1]=p,e[2]=n):n=e[2];const f=`3px solid ${d}`;let h;e[3]!==f?(h={borderLeft:f,borderRadius:2},e[3]=f,e[4]=h):h=e[4];let x;e[5]!==m?(x={color:m},e[5]=m,e[6]=x):x=e[6];let y;e[7]!==i||e[8]!==x?(y=s.jsx("div",{className:"text-[10px]",style:x,children:i}),e[7]=i,e[8]=x,e[9]=y):y=e[9];let v;e[10]!==u?(v={color:u},e[10]=u,e[11]=v):v=e[11];let k;e[12]!==t.title||e[13]!==l?(k=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=l,e[14]=k):k=e[14];let b;e[15]!==v||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:k}),e[15]=v,e[16]=k,e[17]=b):b=e[17];let S;e[18]!==c?(S={color:c},e[18]=c,e[19]=S):S=e[19];let j;e[20]!==t.description||e[21]!==l?(j=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=l,e[22]=j):j=e[22];let g;e[23]!==S||e[24]!==j?(g=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:S,children:j}),e[23]=S,e[24]=j,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==y||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[y,b,g]}),e[26]=g,e[27]=y,e[28]=b,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=s.jsx(je,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==h?(E=s.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):E=e[35];let T;return e[36]!==E||e[37]!==n?(T=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=T):T=e[38],T}function Tt(a){const e=C.c(21),{platform:t,seo:i,host:d,path:r,t:l}=a;let o;e[0]!==d||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==i||e[6]!==l?(o=t.layout==="search"?s.jsx(wt,{seo:i,host:d,path:r,t:l}):t.layout==="card"?s.jsx(Et,{seo:i,host:d,path:r,t:l}):t.layout==="chat"?s.jsx(_t,{seo:i,host:d,path:r,accent:t.color,t:l}):s.jsx(Ct,{seo:i,host:d,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=d,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=i,e[6]=l,e[7]=o):o=e[7];const u=o;let c;e[8]!==t.color?(c=s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=c):c=e[9];let m;e[10]!==t.labelKey||e[11]!==l?(m=l(t.labelKey),e[10]=t.labelKey,e[11]=l,e[12]=m):m=e[12];let p;e[13]!==m?(p=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m}),e[13]=m,e[14]=p):p=e[14];let n;e[15]!==c||e[16]!==p?(n=s.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c,p]}),e[15]=c,e[16]=p,e[17]=n):n=e[17];let f;return e[18]!==u||e[19]!==n?(f=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=f):f=e[20],f}function Pt(a){const e=C.c(18),{seo:t,url:i,path:d}=a,r=d===void 0?"/":d,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const v=jt(t);o=v,u=Te(v.image,i),c=Te(v.favicon,i),e[0]=t,e[1]=i,e[2]=o,e[3]=u,e[4]=c}else o=e[2],u=e[3],c=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==c?(m={...o,image:u,favicon:c},e[5]=o,e[6]=u,e[7]=c,e[8]=m):m=e[8];const p=m;let n;e[9]!==i?(n=kt(i),e[9]=i,e[10]=n):n=e[10];const f=n,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==f||e[13]!==l||e[14]!==p?(x=Nt.map(v=>s.jsx(Tt,{platform:v,seo:p,host:f,path:h,t:l},v.id)),e[11]=h,e[12]=f,e[13]=l,e[14]=p,e[15]=x):x=e[15];let y;return e[16]!==x?(y=s.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 De(a,e,t){const i=C.c(3);let d;return i[0]!==e||i[1]!==t?(d=e?Ve(e,t):[],i[0]=e,i[1]=t,i[2]=d):d=i[2],nt(a,d)}function Rt(a){const e=C.c(7),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l}=a;let o;if(e[0]!==d||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=o):o=e[3],!De(o,r,l).ready){let m;return e[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-full w-full flex items-center justify-center",children:s.jsx(Pe,{className:"size-5 text-muted-foreground"})}),e[4]=m):m=e[4],m}let c;return e[5]!==a?(c=s.jsx(Ft,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Ft(a){const e=C.c(77),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),f=We(r,o,l),h=rt(i,d);let x;e[0]!==h?(x=at(h),e[0]=h,e[1]=x):x=e[1];const y=!x,v=f?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=Z.useState(k),[j,g]=Z.useState(null),[N,w]=Z.useState(0),[E,T]=Z.useState(void 0),{persistSeo:_,persistRawSeo:L,flush:z,isPending:R,hold:q}=St({orgSlug:t,virtualMcpId:i,branch:d,target:o,resolved:f,meta:l,onSaved:c});let P;e[2]!==d||e[3]!==t||e[4]!==i?(P=dt({orgSlug:t,virtualMcpId:i,branch:d}),e[2]=d,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=ft(P)(f?.blockKey??""),[O,K]=Z.useState(F);(b!==k||O!==F)&&(f&&q(f.blockKey),S(k),K(F),g(null),T(void 0),w(Dt));const $=o.kind==="page",$e=$?f?.rawSeoData:void 0,G=E!==void 0?E:$e,Le=$?Xe(G)??void 0:void 0,D=j??Le??v??{},A=f?qe(bt(D,f),r,l):null,B=A&&(!$||fe(G))?Oe(A,l):null;let te;e[6]!==l?(te=Ge(l),e[6]=l,e[7]=te):te=e[7];const me=te;let U,se;e[8]!==r||e[9]!==D||e[10]!==l||e[11]!==o.kind?(U=o.kind==="page"?Ze(r,l)?.seoData??{}:{},se=o.kind==="page"?Lt(U,D):D,e[8]=r,e[9]=D,e[10]=l,e[11]=o.kind,e[12]=U,e[13]=se):(U=e[12],se=e[13]);const ue=se;let le;e[14]!==_||e[15]!==f||e[16]!==g?(le=I=>{if(!f)return;const ke=I;g(ke),_(ke)},e[14]=_,e[15]=f,e[16]=g,e[17]=le):le=e[17];const pe=le;let oe;e[18]!==g?(oe=()=>g(null),e[18]=g,e[19]=oe):oe=e[19];const he=oe;let ie;e[20]!==w?(ie=()=>w(Kt),e[20]=w,e[21]=ie):ie=e[21];const xe=ie;let ne;e[22]!==z||e[23]!==p?(ne=()=>{z(),p?.()},e[22]=z,e[23]=p,e[24]=ne):ne=e[24];const ye=ne,M=o.kind==="page"?o.path:"/";let re;e[25]!==M||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?$t(M,u):u??null,e[25]=M,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==f||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(f?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=f,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&f,be=o.kind==="site"&&f&&B;let H;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(H=o.kind==="page"?s.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[s.jsx("button",{type:"button",onClick:ye,title:o.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),s.jsx(Ae,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(we,{size:16,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:n("sectionsEditor.seoEditor.defaultSeoLabel")}),s.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",n("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=ye,e[34]=n,e[35]=o.kind,e[36]=o.pageName,e[37]=H):H=e[37];let Q;e[38]!==R?(Q=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=Q):Q=e[39];let Y;e[40]!==m||e[41]!==n||e[42]!==o.kind?(Y=o.kind==="page"&&m&&s.jsxs(Ue,{type:"button",variant:"outline",size:"sm",onClick:m,children:[s.jsx(we,{size:14}),n("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=m,e[41]=n,e[42]=o.kind,e[43]=Y):Y=e[43];let V;e[44]!==Q||e[45]!==Y?(V=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[Q,Y]}),e[44]=Q,e[45]=Y,e[46]=V):V=e[46];let W;e[47]!==H||e[48]!==V?(W=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[H,V]}),e[47]=H,e[48]=V,e[49]=W):W=e[49];let X;e[50]!==A||e[51]!==y||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==G||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==M||e[61]!==L||e[62]!==_||e[63]!==ue||e[64]!==ve||e[65]!==f||e[66]!==B||e[67]!==g||e[68]!==T||e[69]!==ce||e[70]!==be||e[71]!==U||e[72]!==n?(X=!f||!ce&&!be?s.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ge}):s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsx(Ee,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-5 py-4",children:ce?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:n("sectionsEditor.seoEditor.emptyFieldsHint")}),s.jsx(yt,{rawSeo:G,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:f.seoTypeOptions,formResetKey:N,siteDefaultSeo:U,onPersistRaw:I=>{T(I),L(I)},onInnerChange:I=>{g(I),_(I)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:y})]}):B&&A&&s.jsx(Re,{schema:B,resolveType:A,value:D,formResetKey:N,onChange:pe})})}),s.jsx(Ee,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"@container px-5 py-4",children:s.jsx(Pt,{seo:ue,url:ve,path:M})})})]}),e[50]=A,e[51]=y,e[52]=xe,e[53]=he,e[54]=me,e[55]=G,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=M,e[61]=L,e[62]=_,e[63]=ue,e[64]=ve,e[65]=f,e[66]=B,e[67]=g,e[68]=T,e[69]=ce,e[70]=be,e[71]=U,e[72]=n,e[73]=X):X=e[73];let de;return e[74]!==W||e[75]!==X?(de=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,X]}),e[74]=W,e[75]=X,e[76]=de):de=e[76],de}function Kt(a){return a+1}function Dt(a){return a+1}function $t(a,e){try{return new URL(a,e).href}catch{return e}}function Lt(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const d={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(d[r]=l));return d}const Gt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Rt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{yt as P,bt as a,vt as b,Gt as s,De as u,gt as w};
@@ -1 +0,0 @@
1
- import{c as p,m as d,j as f,f_ as m}from"./index-BMmgvdyP.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
@@ -1 +0,0 @@
1
- import{dY as o}from"./index-BMmgvdyP.js";function s(r){return r.toLowerCase().trim().replace(/\//g,"-").replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function n(r){const t=r?.trim();if(!t)return null;try{const e=new URL(t);return e.protocol!=="http:"&&e.protocol!=="https:"?null:e.href}catch{return null}}function i(r){return n(r?.previewServerUrl)??n(r?.productionUrl)}function u(r){const t=r?.trim();if(!t)return null;const e=/^https?:\/\//i.test(t)?t:`https://${t}`;return n(e)}function p(r){const t=s(r??"");return t?u(`${t}.deco.site`):null}const d=["cms","sandbox"];function c(r){return r==="cms"||r==="sandbox"?r:null}function l(r){return!!i(r)&&(o(r)||r?.fastPreview===!0)}function a(r){return l(r)?"cms":"sandbox"}function m(r,t){return c(r?.runtime)??a(t)}export{d as T,m as a,u as b,p as c,a as d,s as e,c as p,i as r,n as s};
@@ -1 +0,0 @@
1
- import{c as e,j as o}from"./index-BMmgvdyP.js";import{V as a}from"./index-DB_Dn83c.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
@@ -1 +0,0 @@
1
- import{c as n,m as u,j as i,eL as z,d$ as R,aU as k,eM as B,eN as D,b8 as E,e1 as O,e0 as P}from"./index-BMmgvdyP.js";function L(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function T(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(P,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("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=i.jsx(O,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function M(o){const e=n.c(29);let t,s,a,l,m,h,x;e[0]!==o?({className:s,children:t,side:m,size:h,hideCloseButton:x,container:a,...l}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=m,e[6]=h,e[7]=x):(t=e[1],s=e[2],a=e[3],l=e[4],m=e[5],h=e[6],x=e[7]);const r=m===void 0?"right":m,C=h===void 0?"sm":h,g=x===void 0?!1:x,N=a?"absolute":void 0;let c;e[8]!==N?(c=i.jsx(F,{className:N}),e[8]=N,e[9]=c):c=e[9];const j=a&&"absolute",v=r==="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",y=r==="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",S=(r==="left"||r==="right")&&(C==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),$=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",w=r==="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 d;e[10]!==s||e[11]!==$||e[12]!==w||e[13]!==j||e[14]!==v||e[15]!==y||e[16]!==S?(d=u("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",j,v,y,S,$,w,s),e[10]=s,e[11]=$,e[12]=w,e[13]=j,e[14]=v,e[15]=y,e[16]=S,e[17]=d):d=e[17];let f;e[18]!==g?(f=!g&&i.jsxs(D,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(E,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[18]=g,e[19]=f):f=e[19];let p;e[20]!==t||e[21]!==l||e[22]!==d||e[23]!==f?(p=i.jsxs(k,{"data-slot":"sheet-content",className:d,...l,children:[t,f]}),e[20]=t,e[21]=l,e[22]=d,e[23]=f,e[24]=p):p=e[24];let b;return e[25]!==a||e[26]!==p||e[27]!==c?(b=i.jsxs(T,{container:a,children:[c,p]}),e[25]=a,e[26]=p,e[27]=c,e[28]=b):b=e[28],b}function U(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("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=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function q(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function A(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(z,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function G(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("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=i.jsx(B,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{A as S,M as a,L as b,U as c,G as d,q as e};
@@ -1 +0,0 @@
1
- import{c as R,b as Q,e as Xe,j as n,B as F,t as We,o as gt,cu as pe,ai as zt,a as fe,M as cn,V as Ft,K as ht,cv as Bt,cw as Kt,aw as Ze,m as bt,bb as dn,C as kt,r as X,af as un,ag as ie,cx as mn,w as Mt,x as qt,v as Ht,D as Ut,d as Jt,a6 as jt,H as fn,T as Vt,i as et,E as xt,aY as Gt,cy as gn,cz as hn,b9 as Tt,J as pn,cA as yn,bG as bn,aW as xn,y as wn,cB as Sn,cC as jn,cD as vn,cE as kn,cF as Tn,a7 as Nn,u as Pn,a8 as _n,cG as In,cH as On,l as Wt,cI as Nt,cJ as An,O as Cn,b3 as Pt,cK as En,a0 as $n}from"./index-BMmgvdyP.js";import{t as Yt}from"./Globe04-CFnmWCFT.js";import{a as Ln,s as se}from"./UserSquare-Bxa1cuC8.js";import{u as Dn}from"./use-deployment-admin-BljDa5Bu.js";import{a as Rn}from"./admin-fetch-BhTJlAsX.js";import{a0 as zn,B as yt,y as Fn,a1 as Bn,a2 as Kn,n as _t,h as Mn,a3 as qn,k as Hn,a4 as Un}from"./agent-icon-CQr8igXA.js";import{s as Jn,d as Vn}from"./UserCheck01-Cf1MRytQ.js";import{s as Gn}from"./XClose-C0dMm0LD.js";import{l as Qt,i as Wn,c as Yn,b as Qn,a as Xn,w as Zn,O as es,j as ts,u as ns,k as ss,o as os}from"./use-org-notice-BVOjQvwT.js";import{u as is,a as as}from"./use-project-scope-DRrw6nxr.js";import{u as Xt,a as rs}from"./use-panel-navigate-5WEiNzDG.js";import{i as me}from"./CheckCircle-COSnGnjh.js";import{i as It}from"./Monitor01-vFwnyrQW.js";import{i as Ve}from"./Zap-Bp9tzS_i.js";import{s as Ot}from"./Plus-T4a-gWso.js";import{a as ls}from"./Tool01-XkpyIGeg.js";import{e as Ge,b as oe,d as cs,a as ds,c as us,C as ms}from"./command-ytn_tnST.js";import{I as fs}from"./integration-icon-yZavC8dD.js";import{P as gs}from"./project-icon-CILSP45k.js";import{a as hs}from"./use-navigate-to-agent-D-E94JGh.js";import{u as ps}from"./use-debounced-value-C0m9d99A.js";import{a as ys,m as bs}from"./use-mcp-client-D-cTJfDR.js";import{a as xs}from"./new-project-dialog-CvLgVi1-.js";import{u as ws,n as Ss}from"./new-project-store-CWyQMqrI.js";import{L as js}from"./legacy-admin-welcome-dialog-CM6EIPbl.js";import{R as vs}from"./required-auth-layout-BEVFmsHo.js";import{t as ks,u as Ts,b as Ns,A as At}from"./use-view-draft-kind-Cn-cuGlE.js";import{u as Ps,a as _s,c as Is,b as Os}from"./thread-route-CB-N9w0l.js";import{c as As,f as Cs}from"./thread-intent-Cu3cd8uc.js";import{u as Es}from"./use-blog-view-DfO2XREC.js";import{u as $s}from"./use-org-sso-CGwCAGCo.js";function Ls(t){const e=R.c(49),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a||e[1]!==i?(c=async()=>{const I=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await I.json();if(!I.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=c):c=e[2];let f;e[3]!==a?(f=I=>{window.location.href=`/${I.slug??a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==i?(g=I=>{We.error(I instanceof Error?I.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h),u=Ds;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let y;e[14]!==o||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=y):y=e[16];let m;e[17]!==y?(m=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=m):m=e[18];let w;e[19]!==r||e[20]!==i?(w=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let j;e[22]!==w?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[22]=w,e[23]=j):j=e[23];let p;e[24]!==m||e[25]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[m,j]}),e[24]=m,e[25]=j,e[26]=p):p=e[26];let b;e[27]!==d?(b=()=>d.mutate(),e[27]=d,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==o||e[31]!==i?(S=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=d.isPending,e[30]=o,e[31]=i,e[32]=S):S=e[32];let x;e[33]!==d.isPending||e[34]!==b||e[35]!==S?(x=n.jsx(F,{onClick:b,disabled:d.isPending,children:S}),e[33]=d.isPending,e[34]=b,e[35]=S,e[36]=x):x=e[36];const k=d.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let v;e[39]!==d.isPending||e[40]!==T?(v=n.jsx(F,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=d.isPending,e[40]=T,e[41]=v):v=e[41];let P;e[42]!==x||e[43]!==v?(P=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,v]}),e[42]=x,e[43]=v,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==l?(_=n.jsxs(pe,{children:[l,p,P]}),e[45]=p,e[46]=P,e[47]=l,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function Ct(t){const e=R.c(26),{orgSlug:o,orgId:a,orgName:s,reason:r}=t,i=Q(),{isAdmin:c}=Dn(),f=Rs,g=r==="not-found",h=g?Ln:zt;let d;e[0]!==g||e[1]!==i?(d=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=d):d=e[2];const u=d;let l;e[3]!==g||e[4]!==s||e[5]!==o||e[6]!==i?(l=g?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:s??o}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=s,e[5]=o,e[6]=i,e[7]=l):l=e[7];const y=l;let m;e[8]!==h?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=m):m=e[9];let w;e[10]!==u?(w=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=w):w=e[11];let j;e[12]!==y?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=j):j=e[13];let p;e[14]!==w||e[15]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[w,j]}),e[14]=w,e[15]=j,e[16]=p):p=e[16];let b;e[17]!==c||e[18]!==a||e[19]!==o||e[20]!==i?(b=c&&a?n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n.jsx(zs,{orgId:a,orgSlug:o}),n.jsx(F,{variant:"ghost",onClick:f,children:i("common.goHome")})]}):n.jsx(F,{onClick:f,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==m||e[23]!==p||e[24]!==b?(S=n.jsxs(pe,{children:[m,p,b]}),e[22]=m,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function Rs(){window.location.href="/"}function zs(t){const e=R.c(20),{orgId:o,orgSlug:a}=t,s=Q(),{data:r}=fe.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==o?(c=()=>Rn(`/api/_admin/orgs/${o}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==a?(f=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==s?(g=w=>{We.error(w instanceof Error?w.message:s("common.noAccessScreen.adminJoinFailed"))},e[5]=s,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h);let u;e[11]!==d?(u=()=>d.mutate(),e[11]=d,e[12]=u):u=e[12];const l=!i||d.isPending;let y;e[13]!==d.isPending||e[14]!==s?(y=d.isPending?s("common.noAccessScreen.adminJoining"):s("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=s,e[15]=y):y=e[15];let m;return e[16]!==u||e[17]!==l||e[18]!==y?(m=n.jsx(F,{onClick:u,disabled:l,children:y}),e[16]=u,e[17]=l,e[18]=y,e[19]=m):m=e[19],m}function Fs(t){const e=R.c(59),{invitationId:o,orgName:a,orgSlug:s,orgLogo:r}=t,i=Q();let c;e[0]!==o?(c=async()=>{const O=await fe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=c):c=e[1];let f;e[2]!==s?(f=()=>{cn(),window.location.href=`/${s}`},e[2]=s,e[3]=f):f=e[3];let g;e[4]!==i?(g=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==c||e[7]!==f||e[8]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[6]=c,e[7]=f,e[8]=g,e[9]=h):h=e[9];const d=Xe(h);let u;e[10]!==o?(u=async()=>{const O=await fe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=u):u=e[11];let l,y;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=y):(l=e[13],y=e[14]);let m;e[15]!==u||e[16]!==l||e[17]!==y?(m={mutationFn:u,onSuccess:l,onError:y},e[15]=u,e[16]=l,e[17]=y,e[18]=m):m=e[18];const w=Xe(m),j=d.isPending||w.isPending;let p;e[19]!==r||e[20]!==a?(p=r?n.jsx(gt,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(zn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=p):p=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 x;e[27]!==i?(x=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=x):x=e[28];let k;e[29]!==x?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[29]=x,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=n.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let v;e[34]!==d?(v=()=>d.mutate(),e[34]=d,e[35]=v):v=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==j||e[40]!==v||e[41]!==P?(_=n.jsx(F,{onClick:v,disabled:j,children:P}),e[39]=j,e[40]=v,e[41]=P,e[42]=_):_=e[42];let I;e[43]!==w?(I=()=>w.mutate(),e[43]=w,e[44]=I):I=e[44];let A;e[45]!==w.isPending||e[46]!==i?(A=w.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=w.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==j||e[49]!==I||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:I,disabled:j,children:A}),e[48]=j,e[49]=I,e[50]=A,e[51]=E):E=e[51];let $;e[52]!==_||e[53]!==E?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,E]}),e[52]=_,e[53]=E,e[54]=$):$=e[54];let L;return e[55]!==T||e[56]!==$||e[57]!==p?(L=n.jsxs(pe,{children:[p,T,$]}),e[55]=T,e[56]=$,e[57]=p,e[58]=L):L=e[58],L}function Bs(t){const e=R.c(23),{orgName:o,orgLogo:a}=t,s=Q();let r;e[0]!==a||e[1]!==o?(r=a?n.jsx(gt,{url:a,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Jn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let f;e[7]!==o||e[8]!==s?(f=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=f):f=e[9];let g;e[10]!==f?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[10]=f,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==g?(h=n.jsxs("div",{className:"space-y-2",children:[c,g]}),e[12]=c,e[13]=g,e[14]=h):h=e[14];let d;e[15]!==s?(d=s("common.goHome"),e[15]=s,e[16]=d):d=e[16];let u;e[17]!==d?(u=n.jsx(F,{variant:"ghost",onClick:Ks,children:d}),e[17]=d,e[18]=u):u=e[18];let l;return e[19]!==r||e[20]!==h||e[21]!==u?(l=n.jsxs(pe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=l):l=e[22],l}function Ks(){window.location.href="/"}function Ms(t){const e=R.c(45),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??"Failed to request access");return I},e[0]=a,e[1]=c):c=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=Hs,e[2]=f):f=e[2];let g;e[3]!==i?(g=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==c||e[6]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[5]=c,e[6]=g,e[7]=h):h=e[7];const d=Xe(h);let u;e[8]!==s||e[9]!==o?(u=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=u):u=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let y;e[14]!==l?(y=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r||e[17]!==i?(m=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=m):m=e[18];let w;e[19]!==m?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[19]=m,e[20]=w):w=e[20];let j;e[21]!==y||e[22]!==w?(j=n.jsxs("div",{className:"space-y-2",children:[y,w]}),e[21]=y,e[22]=w,e[23]=j):j=e[23];let p;e[24]!==d?(p=()=>d.mutate(),e[24]=d,e[25]=p):p=e[25];let b;e[26]!==d.isPending||e[27]!==i?(b=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==p||e[31]!==b?(S=n.jsx(F,{onClick:p,disabled:d.isPending,children:b}),e[29]=d.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const x=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==d.isPending||e[36]!==k?(T=n.jsx(F,{variant:"ghost",onClick:qs,disabled:x,children:k}),e[35]=d.isPending,e[36]=k,e[37]=T):T=e[37];let v;e[38]!==S||e[39]!==T?(v=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=v):v=e[40];let P;return e[41]!==j||e[42]!==v||e[43]!==u?(P=n.jsxs(pe,{children:[u,j,v]}),e[41]=j,e[42]=v,e[43]=u,e[44]=P):P=e[44],P}function qs(){window.location.href="/"}function Hs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Us(t){const e=R.c(7);let o;e[0]!==t?(o=ht.orgAccessStatus(t),e[0]=t,e[1]=o):o=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 s;return e[4]!==o||e[5]!==a?(s={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=s):s=e[6],Ft(s)}function Js({orgSlug:t}){const{data:e}=Us(t);if(e.status!=="member"){const o=Bt()?.org===t;o&&Kt();const a=localStorage.getItem(Ze.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ze.lastOrgSlug()),(o||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(Ct,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Ls,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ms,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Bs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(Ct,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Zt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:s,title:r,description:i,icon:c,children:f,footerLeading:g,actions:h,onDismiss:d,tone:u}=t,l=u===void 0?"neutral":u,y=g||h;let m;e[0]!==l?(m=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=m):m=e[1];let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(Gn,{size:14}),e[2]=w):w=e[2];let j;e[3]!==a||e[4]!==d?(j=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:w}),e[3]=a,e[4]=d,e[5]=j):j=e[5];const p=c&&"flex items-start gap-3",b=f&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=bt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let x;e[9]!==c?(x=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=x):x=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let T;e[13]!==r?(T=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let v;e[15]!==i?(v=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=v):v=e[16];let P;e[17]!==T||e[18]!==v||e[19]!==k?(P=n.jsxs("div",{children:[k,T,v]}),e[17]=T,e[18]=v,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==f?(_=f&&n.jsx("div",{className:"mt-3",children:f}),e[21]=f,e[22]=_):_=e[22];let I;e[23]!==P||e[24]!==_?(I=n.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=I):I=e[25];let A;e[26]!==I||e[27]!==S||e[28]!==x?(A=n.jsxs("div",{className:S,children:[x,I]}),e[26]=I,e[27]=S,e[28]=x,e[29]=A):A=e[29];let E;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==l?(E=y&&n.jsxs("div",{className:bt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=l,e[34]=E):E=e[34];let $;return e[35]!==o||e[36]!==A||e[37]!==E||e[38]!==m||e[39]!==j||e[40]!==l?($=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[m,j,A,E]}),e[35]=o,e[36]=A,e[37]=E,e[38]=m,e[39]=j,e[40]=l,e[41]=$):$=e[41],$}const Vs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function Gs(t){return Vs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Ws(t,e){return Gs(e).map(o=>({element:Qt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const Ys=Qt("switcher"),Qs=30;function en(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Xs(t,e){return Ws(t,e).filter(o=>typeof o.element=="string"&&en(o.element))}function Zs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:a})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>a.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Qe=!1},steps:e}}let Qe=!1;async function eo(){return(await dn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function to(t,e){if(Qe)return;Qe=!0;let o=0;const a=()=>{if(!en(Ys)&&o++<Qs){requestAnimationFrame(a);return}const s=Xs(t,e);if(s.length===0){Qe=!1;return}eo().then(r=>{r(Zs(t,s)).drive()}).catch(()=>{Qe=!1})};a()}const tn=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:It,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:yt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Vn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:kt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:se,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:It,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:se,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:me,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:Ve,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:se,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:me,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:Ve,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:me,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:se,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:Ve,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:se,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:me,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:Ve,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:se,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:me,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:Ve,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:se,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:yt,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:me,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:kt,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:Ve,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:me,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:se,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:yt,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:se,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:Fn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ft="studio.release-feed.v1",wt=new Set;let ge="",he={},St=!1;function no(){if(St)return ge||"{}";try{return localStorage.getItem(ft)??"{}"}catch{return ge||"{}"}}function nn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Et(){const t=no();return t!==ge&&(ge=t,he=nn(t)),he}function so(t){wt.add(t);const e=o=>{if(!(o.key!==ft&&o.key!==null)){try{const a=localStorage.getItem(ft)??"{}",r={...nn(a),...he};he=r,ge=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{wt.delete(t),window.removeEventListener("storage",e)}}function oo(t){he=t,ge=JSON.stringify(t);try{localStorage.setItem(ft,ge),St=!1}catch{St=!0}wt.forEach(e=>e())}function io(){const t=R.c(7),e=X.useSyncExternalStore(so,Et,Et);let o;t[0]!==e?(o=f=>!!e[f],t[0]=e,t[1]=o):o=t[1];const a=o,s=ao;let r;t[2]!==e?(r=tn.reduce((f,g)=>e[g.id]?f:f+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:s,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function ao(t){he[t]||oo({...he,[t]:{seenAt:new Date().toISOString()}})}const $t=new Map;function sn(t){let e=$t.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},$t.set(t,e)),e}function ro(t,e){const o=sn(t);return o.subscribers.add(e),o.intervalId===null&&(o.intervalId=setInterval(()=>{o.now=Date.now();for(const a of o.subscribers)a()},t)),()=>{o.subscribers.delete(e),o.subscribers.size===0&&o.intervalId!==null&&(clearInterval(o.intervalId),o.intervalId=null)}}function lo(t){const e=R.c(4),o=t===void 0?6e4:t;let a;e[0]!==o?(a=()=>sn(o).now,e[0]=o,e[1]=a):a=e[1];const s=a;let r;return e[2]!==o?(r=i=>ro(o,i),e[2]=o,e[3]=r):r=e[3],X.useSyncExternalStore(r,s,s)}const co=720*60*60*1e3,uo=10080*60*1e3;function mo(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function fo(t){const e=tn[0];if(!e)return null;const o=mo(e.date),a=t-o;return a<0||a>co?null:e}function go(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 ho(t,e){const o=go(t);return o===null?!1:e-o>=uo}function po(){const t=R.c(46),e=Q(),o=is(),a=un(),s=Xt(),r=!!o,i=a===ie.home&&!o;let c;t[0]!==s||t[1]!==r?(c=r&&!!s&&Wn(s),t[0]=s,t[1]=r,t[2]=c):c=t[2];const f=c,{data:g}=fe.useSession(),{isSeen:h,markSeen:d}=io(),u=lo(6e4);let l,y,m;if(t[3]!==h||t[4]!==u||t[5]!==g?.user?.createdAt){m=Symbol.for("react.early_return_sentinel");e:{if(l=fo(u),!l){m=null;break e}if(!ho(g?.user?.createdAt,u)){m=null;break e}y=h(l.id)}t[3]=h,t[4]=u,t[5]=g?.user?.createdAt,t[6]=l,t[7]=y,t[8]=m}else l=t[6],y=t[7],m=t[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;if(y)return null;let w;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==f||t[14]!==e?(w=()=>{d(l.id),to(e,{onOrgHome:i,inProject:r,onSiteEditor:f})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=f,t[14]=e,t[15]=w):w=t[15];const j=w;let p;t[16]!==e?(p=e("announcements.release.ariaLabel"),t[16]=e,t[17]=p):p=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const S=l.eyebrow,x=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let T;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(T=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=T):T=t[27];let v;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==j?(v=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:j,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=j,t[32]=v):v=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(yo),t[33]=l.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let I;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==v||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(I=n.jsx(Zt,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:x,onDismiss:k,footerLeading:T,actions:v,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=v,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=I):I=t[45],I}function yo(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)}function bo(t){const e=R.c(11),{open:o,onOpenChange:a}=t,s=Q();let r;e[0]!==s?(r=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Mt,{children:n.jsx(qt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:mn.map(xo)}),e[4]=c):c=e[4];let f;e[5]!==i?(f=n.jsxs(Ht,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=f):f=e[6];let g;return e[7]!==a||e[8]!==o||e[9]!==f?(g=n.jsx(Ut,{open:o,onOpenChange:a,children:f}),e[7]=a,e[8]=o,e[9]=f,e[10]=g):g=e[10],g}function xo(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(wo)})]},t.label)}function wo(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(So)})]},t.description)}function So(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 Lt=8,Ye=["all","organizations","projects","chats","connections","actions"],jo=5;function Dt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function vo(t,e){const o=a=>{const s=e.indexOf(a);return s===-1?Number.POSITIVE_INFINITY:s};return[...t].sort((a,s)=>o(a.slug)-o(s.slug)||a.name.localeCompare(s.name))}function ko(t,e){const{org:o}=jt(),a=ys({connectionId:Vt,orgId:o.id,orgSlug:o.slug}),{data:s}=et({queryKey:ht.globalSearch(o.id,t,Lt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Lt}})).structuredContent?.items??[]}catch{return[]}}});return s??[]}function To(t){const e=R.c(213),{open:o,onOpenChange:a}=t,s=Q(),r=Jt(),{org:i}=jt(),{projects:c,hasProjects:f}=as(),{remember:g}=hs(i.slug),[h,d]=X.useState(""),[u,l]=X.useState("all");let y;e[0]!==u?(y=z=>u==="all"||u===z,e[0]=u,e[1]=y):y=e[1];const m=y,w=X.useDeferredValue(h),j=ko(w,m("chats")||m("connections")),p=Yn(),{data:b}=fn(),{recent:S}=Qn();let x;e[2]!==h?(x=h.trim(),e[2]=h,e[3]=x):x=e[3];const k=x,T=ps(k,150),{hits:v}=Xn(m("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==v||e[6]!==b||e[7]!==S){const z=vo(Zn(b??[],i),S);let U;e[10]!==v?(U=new Set(v.map(Io)),e[10]=v,e[11]=U):U=e[11],P=U,_=[...z,...v.filter(Ie=>!z.some(B=>B.id===Ie.id))],e[4]=i,e[5]=v,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const I=_;let A;e[12]!==I||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?I.filter(z=>z.slug!==i.slug).slice(0,jo):I,e[12]=I,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const E=A;let $;e[17]!==a?($=()=>{a(!1),d(""),l("all")},e[17]=a,e[18]=$):$=e[18];const L=$;let O;e[19]!==u?(O=z=>{const U=Ye.indexOf(u);l(Ye[(U+z+Ye.length)%Ye.length]??"all")},e[19]=u,e[20]=O):O=e[20];const K=O;let H;e[21]!==L?(H=(z,U)=>{xt("command_palette_used",{kind:U}),z(),L()},e[21]=L,e[22]=H):H=e[22];const D=H;let ae;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(ae=z=>{if(z.type==="connection"){if(!z.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:z.slug}});return}if(z.type==="task"){r({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const U=Gt(i.id).id;gn(r,hn({org:i.slug,agentId:z.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:z.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=ae):ae=e[26];const Z=ae;let ee;e[27]!==h?(ee=[h],e[27]=h,e[28]=ee):ee=e[28];const ne=ee;let te,J,V,q,G,W,Y,C,M,ye,be,re,le,ce,de,ue;if(e[29]!==L||e[30]!==K||e[31]!==D||e[32]!==f||e[33]!==j||e[34]!==r||e[35]!==a||e[36]!==o||e[37]!==Z||e[38]!==i.slug||e[39]!==E||e[40]!==c||e[41]!==g||e[42]!==ne||e[43]!==u||e[44]!==P||e[45]!==m||e[46]!==s||e[47]!==h||e[48]!==p){const z=j.filter(_o),U=j.filter(Po);let Ie;e[65]!==i.slug?(Ie={org:i.slug},e[65]=i.slug,e[66]=Ie):Ie=e[66];const B=Ie;let Oe;e[67]!==s?(Oe=s("sidebar.navDestinations.home"),e[67]=s,e[68]=Oe):Oe=e[68];let at;e[69]===Symbol.for("react.memo_cache_sentinel")?(at=n.jsx(Mn,{"aria-hidden":"true"}),e[69]=at):at=e[69];let Ae;e[70]!==B||e[71]!==Oe?(Ae={key:"home",label:Oe,icon:at,to:ie.home,params:B},e[70]=B,e[71]=Oe,e[72]=Ae):Ae=e[72];let Ce;e[73]!==s?(Ce=s("sidebar.navDestinations.reports"),e[73]=s,e[74]=Ce):Ce=e[74];let rt;e[75]===Symbol.for("react.memo_cache_sentinel")?(rt=n.jsx(qn,{"aria-hidden":"true"}),e[75]=rt):rt=e[75];let Ee;e[76]!==B||e[77]!==Ce?(Ee={key:"reports",label:Ce,icon:rt,to:ie.reports,params:B},e[76]=B,e[77]=Ce,e[78]=Ee):Ee=e[78];let $e;e[79]!==s?($e=s("sidebar.navDestinations.tasks"),e[79]=s,e[80]=$e):$e=e[80];let lt;e[81]===Symbol.for("react.memo_cache_sentinel")?(lt=n.jsx(_t,{"aria-hidden":"true"}),e[81]=lt):lt=e[81];let Le;e[82]!==i.slug?(Le={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=Le):Le=e[83];let De;e[84]!==$e||e[85]!==Le?(De={key:"tasks",label:$e,icon:lt,to:ie.tasks,params:Le},e[84]=$e,e[85]=Le,e[86]=De):De=e[86];let Re;e[87]!==s?(Re=s("sidebar.navDestinations.library"),e[87]=s,e[88]=Re):Re=e[88];let ct;e[89]===Symbol.for("react.memo_cache_sentinel")?(ct=n.jsx(Hn,{"aria-hidden":"true"}),e[89]=ct):ct=e[89];let ze;e[90]!==B||e[91]!==Re?(ze={key:"library",label:Re,icon:ct,to:ie.library,params:B},e[90]=B,e[91]=Re,e[92]=ze):ze=e[92];let Fe;e[93]!==s?(Fe=s("sidebar.navDestinations.discover"),e[93]=s,e[94]=Fe):Fe=e[94];let dt;e[95]===Symbol.for("react.memo_cache_sentinel")?(dt=n.jsx(Un,{"aria-hidden":"true"}),e[95]=dt):dt=e[95];let Be;e[96]!==B||e[97]!==Fe?(Be={key:"discover",label:Fe,icon:dt,to:ie.discover,params:B},e[96]=B,e[97]=Fe,e[98]=Be):Be=e[98];let ut;e[99]!==Ae||e[100]!==Ee||e[101]!==De||e[102]!==ze||e[103]!==Be?(ut=[Ae,Ee,De,ze,Be],e[99]=Ae,e[100]=Ee,e[101]=De,e[102]=ze,e[103]=Be,e[104]=ut):ut=e[104];const pt=ut;J=cs,be=o,e[105]!==L||e[106]!==a?(re=N=>N?a(!0):L(),e[105]=L,e[106]=a,e[107]=re):re=e[107],e[108]!==s?(le=s("commandPalette.title"),e[108]=s,e[109]=le):le=e[109],e[110]!==s?(ce=s("commandPalette.description"),e[110]=s,e[111]=ce):ce=e[111];let Ke;e[112]!==u||e[113]!==s?(Ke=u==="all"?s("commandPalette.placeholder"):s("commandPalette.placeholderScoped",{scope:s(Dt(u)).toLowerCase()}),e[112]=u,e[113]=s,e[114]=Ke):Ke=e[114];let Me;e[115]!==s?(Me=s("commandPalette.placeholder"),e[115]=s,e[116]=Me):Me=e[116];let qe;e[117]!==K||e[118]!==u||e[119]!==h?(qe=N=>{if(N.key==="Tab"){N.preventDefault(),K(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),l("all"))},e[117]=K,e[118]=u,e[119]=h,e[120]=qe):qe=e[120],e[121]!==Ke||e[122]!==Me||e[123]!==qe||e[124]!==h?(de=n.jsx(ds,{placeholder:Ke,"aria-label":Me,value:h,onValueChange:d,onKeyDown:qe}),e[121]=Ke,e[122]=Me,e[123]=qe,e[124]=h,e[125]=de):de=e[125];let He;e[126]!==s?(He=s("commandPalette.scope.label"),e[126]=s,e[127]=He):He=e[127];let Ue;e[128]!==u||e[129]!==s?(Ue=Ye.map(N=>n.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:No,onClick:()=>l(N),className:bt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",u===N?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:s(Dt(N))},N)),e[128]=u,e[129]=s,e[130]=Ue):Ue=e[130],e[131]!==He||e[132]!==Ue?(ue=n.jsx("div",{role:"radiogroup","aria-label":He,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ue}),e[131]=He,e[132]=Ue,e[133]=ue):ue=e[133],te=us,V="h-[min(420px,60vh)] max-h-none";let Je;e[134]!==s?(Je=s("commandPalette.empty"),e[134]=s,e[135]=Je):Je=e[135],e[136]!==Je?(q=n.jsx(ms,{children:Je}),e[136]=Je,e[137]=q):q=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==E||e[141]!==P||e[142]!==m||e[143]!==s||e[144]!==h||e[145]!==p?(G=m("organizations")&&E.length>0&&n.jsx(Ge,{heading:s("commandPalette.organizations"),children:E.map(N=>n.jsxs(oe,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[n.jsx(es,{org:N,size:"xs"}),n.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&n.jsx("span",{className:"text-meta shrink-0",children:s("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=E,e[141]=P,e[142]=m,e[143]=s,e[144]=h,e[145]=p,e[146]=G):G=e[146],e[147]!==pt||e[148]!==D||e[149]!==r||e[150]!==m||e[151]!==s?(W=m("actions")&&n.jsx(Ge,{heading:s("commandPalette.goTo"),children:pt.map(N=>n.jsxs(oe,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,n.jsx("span",{children:N.label})]},N.key))}),e[147]=pt,e[148]=D,e[149]=r,e[150]=m,e[151]=s,e[152]=W):W=e[152],e[153]!==D||e[154]!==f||e[155]!==r||e[156]!==i.slug||e[157]!==c||e[158]!==g||e[159]!==m||e[160]!==s?(Y=m("projects")&&f&&n.jsx(Ge,{heading:s("commandPalette.projects"),children:c.map(N=>n.jsxs(oe,{value:`project ${N.title}`,onSelect:()=>D(()=>{g(N.id),r({to:ie.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[n.jsx(gs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),n.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=f,e[155]=r,e[156]=i.slug,e[157]=c,e[158]=g,e[159]=m,e[160]=s,e[161]=Y):Y=e[161],e[162]!==D||e[163]!==r||e[164]!==B||e[165]!==m||e[166]!==s?(C=m("actions")&&n.jsxs(Ge,{heading:s("commandPalette.actions"),children:[n.jsxs(oe,{value:s("commandPalette.newProject"),onSelect:()=>D(()=>r({to:ie.home,params:B}),"new_project"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.newProject")})]}),n.jsxs(oe,{value:s("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:B}),"invite"),children:[n.jsx(Bn,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.inviteTeammate")})]}),n.jsxs(oe,{value:s("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:B,search:{tab:"all"}}),"add_connection"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.addConnection")})]}),n.jsxs(oe,{value:s("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:B}),"settings"),children:[n.jsx(ls,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=B,e[165]=m,e[166]=s,e[167]=C):C=e[167],M=m("connections")&&z.length>0&&n.jsx(Ge,{heading:s("commandPalette.connections"),children:z.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),"connection"),children:[n.jsx(fs,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),ye=m("chats")&&U.length>0&&n.jsx(Ge,{heading:s("commandPalette.results"),children:U.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),N.type),children:[N.type==="thread"?n.jsx(Kn,{"aria-hidden":"true"}):n.jsx(_t,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=L,e[30]=K,e[31]=D,e[32]=f,e[33]=j,e[34]=r,e[35]=a,e[36]=o,e[37]=Z,e[38]=i.slug,e[39]=E,e[40]=c,e[41]=g,e[42]=ne,e[43]=u,e[44]=P,e[45]=m,e[46]=s,e[47]=h,e[48]=p,e[49]=te,e[50]=J,e[51]=V,e[52]=q,e[53]=G,e[54]=W,e[55]=Y,e[56]=C,e[57]=M,e[58]=ye,e[59]=be,e[60]=re,e[61]=le,e[62]=ce,e[63]=de,e[64]=ue}else te=e[49],J=e[50],V=e[51],q=e[52],G=e[53],W=e[54],Y=e[55],C=e[56],M=e[57],ye=e[58],be=e[59],re=e[60],le=e[61],ce=e[62],de=e[63],ue=e[64];let xe;e[168]!==te||e[169]!==V||e[170]!==q||e[171]!==G||e[172]!==W||e[173]!==Y||e[174]!==C||e[175]!==M||e[176]!==ye?(xe=n.jsxs(te,{className:V,children:[q,G,W,Y,C,M,ye]}),e[168]=te,e[169]=V,e[170]=q,e[171]=G,e[172]=W,e[173]=Y,e[174]=C,e[175]=M,e[176]=ye,e[177]=xe):xe=e[177];let tt;e[178]===Symbol.for("react.memo_cache_sentinel")?(tt=["↑","↓"],e[178]=tt):tt=e[178];let we;e[179]!==s?(we=s("commandPalette.hint.navigate"),e[179]=s,e[180]=we):we=e[180];let Se;e[181]!==we?(Se=n.jsx(mt,{keys:tt,label:we}),e[181]=we,e[182]=Se):Se=e[182];let nt;e[183]===Symbol.for("react.memo_cache_sentinel")?(nt=["↵"],e[183]=nt):nt=e[183];let je;e[184]!==s?(je=s("commandPalette.hint.open"),e[184]=s,e[185]=je):je=e[185];let ve;e[186]!==je?(ve=n.jsx(mt,{keys:nt,label:je}),e[186]=je,e[187]=ve):ve=e[187];let st;e[188]===Symbol.for("react.memo_cache_sentinel")?(st=["Tab"],e[188]=st):st=e[188];let ke;e[189]!==s?(ke=s("commandPalette.hint.filter"),e[189]=s,e[190]=ke):ke=e[190];let Te;e[191]!==ke?(Te=n.jsx(mt,{keys:st,label:ke}),e[191]=ke,e[192]=Te):Te=e[192];let ot;e[193]===Symbol.for("react.memo_cache_sentinel")?(ot=["Esc"],e[193]=ot):ot=e[193];let Ne;e[194]!==s?(Ne=s("commandPalette.hint.close"),e[194]=s,e[195]=Ne):Ne=e[195];let Pe;e[196]!==Ne?(Pe=n.jsx(mt,{keys:ot,label:Ne}),e[196]=Ne,e[197]=Pe):Pe=e[197];let _e;e[198]!==Se||e[199]!==ve||e[200]!==Te||e[201]!==Pe?(_e=n.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[Se,ve,Te,Pe]}),e[198]=Se,e[199]=ve,e[200]=Te,e[201]=Pe,e[202]=_e):_e=e[202];let it;return e[203]!==J||e[204]!==be||e[205]!==re||e[206]!==le||e[207]!==ce||e[208]!==de||e[209]!==ue||e[210]!==xe||e[211]!==_e?(it=n.jsxs(J,{open:be,onOpenChange:re,title:le,description:ce,children:[de,ue,xe,_e]}),e[203]=J,e[204]=be,e[205]=re,e[206]=le,e[207]=ce,e[208]=de,e[209]=ue,e[210]=xe,e[211]=_e,e[212]=it):it=e[212],it}function No(t){return t.preventDefault()}function Po(t){return t.type!=="connection"}function _o(t){return t.type==="connection"}function Io(t){return t.id}function mt(t){const e=R.c(7),{keys:o,label:a}=t;let s;e[0]!==o?(s=o.map(Oo),e[0]=o,e[1]=s):s=e[1];let r;e[2]!==s?(r=n.jsx("span",{className:"flex items-center gap-0.5",children:s}),e[2]=s,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=n.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Oo(t){return n.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const Ao=300*1e3,Co=2;function Eo(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function $o(t,e){return t.count>=Co&&t.version!==null&&t.version!==e}function Lo(){const t=R.c(31),e=Q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:ht.appVersionCheck(),queryFn:Ro,refetchInterval:Ao,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:s}=et(o),[r,i]=X.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[f,g]=X.useState(c);s!==r&&(i(s),g(v=>Eo(v,a,"4.622.0")));const[h,d]=X.useState(null);if(!$o(f,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let m;t[8]!==e?(m=e("announcements.version.title"),t[8]=e,t[9]=m):m=t[9];let w;t[10]!==e?(w=e("announcements.version.description"),t[10]=e,t[11]=w):w=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Tt,{size:16}),t[12]=j):j=t[12];let p;t[13]!==f.version?(p=()=>d(f.version),t[13]=f.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.622.0"}),t[15]=e,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("announcements.version.refresh"),t[17]=e,t[18]=S):S=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Tt,{size:14}),t[19]=x):x=t[19];let k;t[20]!==S?(k=n.jsxs(F,{size:"sm",onClick:Do,children:[S,x]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==l||t[25]!==y||t[26]!==m||t[27]!==w||t[28]!==p||t[29]!==b?(T=n.jsx(Zt,{ariaLabel:u,dismissLabel:l,eyebrow:y,title:m,description:w,icon:j,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=l,t[25]=y,t[26]=m,t[27]=w,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Do(){return window.location.reload()}async function Ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function zo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Fo=Date.parse("2026-07-21T00:00:00Z"),Rt=t=>zo(Ze.ptBrAnnouncementSeen(t));function Bo(){const t=R.c(35),e=Q(),[o,a]=pn(),{data:s,isPending:r}=fe.useSession(),i=s?.user,c=i?.id,f=i?.createdAt,g=f!=null&&new Date(f).getTime()<Fo,h=yn()==="pt-BR",d=!r&&!!c&&g&&h&&o.language==="en"&&!Rt(c).has()&&!bn(),[u,l]=X.useState(!1),[y,m]=X.useState(!1);!u&&!r&&(l(!0),d&&c&&(Rt(c).mark(),a(Mo),m(!0),xt("pt_br_auto_switch_shown")));let w;t[0]===Symbol.for("react.memo_cache_sentinel")?(w=D=>{xt("pt_br_auto_switch_closed",{action:D}),m(!1)},t[0]=w):w=t[0];const j=w;let p;t[1]!==a?(p=()=>{a(Ko),j("switch-back")},t[1]=a,t[2]=p):p=t[2];const b=p;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=D=>!D&&j("dismiss"),t[3]=S):S=t[3];let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=x):x=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let T;t[7]!==k?(T=n.jsx(qt,{children:k}),t[7]=k,t[8]=T):T=t[8];let v;t[9]!==e?(v=e("announcements.ptBr.description"),t[9]=e,t[10]=v):v=t[10];let P;t[11]!==v?(P=n.jsx(xn,{children:v}),t[11]=v,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=n.jsxs(Mt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let I;t[16]!==e?(I=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=I):I=t[17];let A;t[18]!==b||t[19]!==I?(A=n.jsx(F,{variant:"outline",onClick:b,children:I}),t[18]=b,t[19]=I,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>j("ok"),t[21]=E):E=t[21];let $;t[22]!==e?($=e("announcements.ptBr.ok"),t[22]=e,t[23]=$):$=t[23];let L;t[24]!==$?(L=n.jsx(F,{onClick:E,children:$}),t[24]=$,t[25]=L):L=t[25];let O;t[26]!==A||t[27]!==L?(O=n.jsxs(wn,{children:[A,L]}),t[26]=A,t[27]=L,t[28]=O):O=t[28];let K;t[29]!==O||t[30]!==_?(K=n.jsxs(Ht,{className:"sm:max-w-md",children:[x,_,O]}),t[29]=O,t[30]=_,t[31]=K):K=t[31];let H;return t[32]!==y||t[33]!==K?(H=n.jsx(Ut,{open:y,onOpenChange:S,children:K}),t[32]=y,t[33]=K,t[34]=H):H=t[34],H}function Ko(t){return{...t,language:"en"}}function Mo(t){return{...t,language:"pt-BR"}}function qo(t){const e=Sn(t);return typeof e=="string"?e:void 0}function Ho(){return qo("experiment-pipeline-check"),null}function Uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;jn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),vn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ho,{}),e[0]=a):a=e[0],a}function Jo(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:s,opts:r,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const f=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(o??f)!==f;let d,u;return r?.panel?u=r.panel:r?.newThread&&!h&&kn(e.tabId)?(u=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):s?(u=s.tab,s.sidepanel!==void 0&&(d=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!h&&e.tabId&&!Tn(e.tabId)&&(u=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:ks(u,t.target,t.blogView),search:c}}const on="studio:thread-layout:v4",Vo=50;function an(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function Go(t,e,o,a=Vo){const s=t.filter(([r])=>r!==e);for(s.push([e,an(o)]);s.length>a;)s.shift();return s}function vt(){try{const t=sessionStorage.getItem(on);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function rn(t){try{sessionStorage.setItem(on,JSON.stringify(t))}catch{}}function Wo(t,e){t&&rn(Go(vt(),t,e))}function Yo(t){if(!t)return null;const e=vt().find(([o])=>o===t);return e?an(e[1]):null}function Ki(t){if(!t)return;const e=vt(),o=e.filter(([a])=>a!==t);o.length!==e.length&&rn(o)}function ln(t){return{queryKey:ht.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 Mi(t){const e=R.c(10);let o;e[0]!==t?(o=ln(t),e[0]=t,e[1]=o):o=e[1];const a=et(o);let s;e[2]!==a.data?.prompts?(s=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=s):s=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]!==s||e[8]!==r?(i={isLoading:a.isLoading,prompts:s,tiles:r},e[6]=a.isLoading,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function Qo(t){const e=R.c(31),{orgSlug:o,orgName:a,domain:s}=t,r=Q();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,f=Xo;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(zt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let d;e[5]!==h?(d=n.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=d):d=e[6];let u;e[7]!==s||e[8]!==a||e[9]!==r?(u=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${r("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=a,e[9]=r,e[10]=u):u=e[10];let l;e[11]!==u?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=l):l=e[12];let y;e[13]!==d||e[14]!==l?(y=n.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r?(m=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=m):m=e[17];let w;e[18]!==c||e[19]!==m?(w=n.jsx(F,{onClick:c,children:m}),e[18]=c,e[19]=m,e[20]=w):w=e[20];let j;e[21]!==r?(j=r("common.goBack"),e[21]=r,e[22]=j):j=e[22];let p;e[23]!==j?(p=n.jsx(F,{variant:"ghost",onClick:f,children:j}),e[23]=j,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==w?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,p]}),e[25]=p,e[26]=w,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=n.jsxs(pe,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function Xo(){window.location.href="/"}function Zo(t){const e=R.c(27),{notice:o,orgSlug:a}=t,s=Q();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(Nn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let f;e[5]!==i||e[6]!==c?(f=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=f):f=e[7];let g;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(g=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==s?(d=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=d):d=e[12];let u;e[13]!==h||e[14]!==d?(u=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:h,children:d})}),e[13]=h,e[14]=d,e[15]=u):u=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let y;e[18]!==l?(y=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=y):y=e[19];let m;e[20]!==y||e[21]!==g||e[22]!==u?(m=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,u,y]}),e[20]=y,e[21]=g,e[22]=u,e[23]=m):m=e[23];let w;return e[24]!==m||e[25]!==f?(w=n.jsxs(pe,{children:[r,f,m]}),e[24]=m,e[25]=f,e[26]=w):w=e[26],w}const ei="/settings/infra-billing";function ti(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(ei)}function ni(t){const e=R.c(7),{org:o,children:a}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const r=s;let i;return e[3]!==a||e[4]!==o||e[5]!==r?(i=n.jsx($n,{org:o,project:r,children:a}),e[3]=a,e[4]=o,e[5]=r,e[6]=i):i=e[6],i}function si(){const t=Jt(),e=As(),{org:o}=jt(),a=Pn({strict:!1}),s=Xt(),{openPanel:r,closePanel:i}=rs(),c=Ps(),f=_s(),g=Is(),h=Os(),d=Ts(),u=Es(),{data:l}=fe.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),m=()=>y(p=>({...p,sidepanel:!0})),w=(p,b,S)=>{const x=!!f&&f===p;f&&!x&&Wo(f,{tab:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=x?null:Yo(p),T=Gt(o.id).id;if(b===T&&!S?.panel)return h(p,()=>S?.autosend?{autosend:At}:{});const v=Jo({prev:{virtualmcpid:c,tabId:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:At,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>v.search,{virtualMcpId:b,view:{tabId:v.tabId}})};return{openSidePanel:m,setTaskId:w,createNewTask:async(p,b,S)=>{const x=crypto.randomUUID(),k=p??g,T=d==="blog"&&k===g&&!S?.panel?Ns(b,Cs(l?.user)):null;try{await e?.create({id:x,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}w(x,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const oi=new Set(["/$org/","/$org/home"]);function ii(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ai},t[0]=e):e=t[0],Wt(e)}function ai(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&oi.has(e)}function ri(){const t=R.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=_n(e)?.params.org,[s,r]=X.useState(!1),[i,c]=ts(),[f,g]=ws(),h=In(),d=ii(),u=a??"";let l;t[1]!==u?(l=ln(u),t[1]=u,t[2]=l):l=t[2];const y=!!a&&d;let m;t[3]!==l||t[4]!==y?(m={...l,enabled:y},t[3]=l,t[4]=y,t[5]=m):m=t[5],et(m);const{data:w}=fe.useSession(),j=w?.user?.id;let p,b;t[6]!==h?(p=()=>{const C=M=>{if(Pt(M)&&M.code==="KeyK"){M.preventDefault(),os();return}if(M.key==="?"&&!En(M.target)){M.preventDefault(),r(!0);return}Pt(M)&&M.code==="BracketLeft"&&h.history.canGoBack()&&(M.preventDefault(),h.history.back())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),X.useEffect(p,b);let S;t[9]!==a||t[10]!==j?(S=On(a,j),t[9]=a,t[10]=j,t[11]=S):S=t[11];const{data:x}=Ft(S),k=x?.id,T=x?.slug,{data:v}=$s(k,T),P=!!v?.ssoRequired&&!v.authenticated,{data:_}=ns(T);let I;t[12]===Symbol.for("react.memo_cache_sentinel")?(I={select:li},t[12]=I):I=t[12];const A=Wt(I),E=_?.severity==="block"&&!ti(A),$=k??"",L=T??"";let O;t[13]!==L||t[14]!==$?(O=bs({connectionId:Vt,orgId:$,orgSlug:L}),t[13]=L,t[14]=$,t[15]=O):O=t[15];const K=!!k&&!!T;let H;if(t[16]!==O||t[17]!==K?(H={...O,enabled:K},t[16]=O,t[17]=K,t[18]=H):H=t[18],et(H),(!x||Nt(x)||P||E)&&ss(),!x){let C;return t[19]!==a?(C=n.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=C):C=t[20],C}if(Nt(x)){localStorage.getItem(Ze.lastOrgSlug())===a&&localStorage.removeItem(Ze.lastOrgSlug()),Bt()?.org===a&&Kt();let C;return t[21]!==x.name?(C=n.jsx(An,{orgName:x.name}),t[21]=x.name,t[22]=C):C=t[22],C}if(E&&_){let C;return t[23]!==x.slug||t[24]!==_?(C=n.jsx(Zo,{notice:_,orgSlug:x.slug}),t[23]=x.slug,t[24]=_,t[25]=C):C=t[25],C}if(P){let C;return t[26]!==x.id||t[27]!==x.name||t[28]!==x.slug||t[29]!==v.domain?(C=n.jsx(Qo,{orgId:x.id,orgSlug:x.slug,orgName:x.name,domain:v.domain}),t[26]=x.id,t[27]=x.name,t[28]=x.slug,t[29]=v.domain,t[30]=C):C=t[30],C}const ae=x.logo??null;let Z;t[31]!==x||t[32]!==ae?(Z={...x,logo:ae},t[31]=x,t[32]=ae,t[33]=Z):Z=t[33];let ee;t[34]!==x?(ee=n.jsx(Uo,{activeOrg:x}),t[34]=x,t[35]=ee):ee=t[35];let ne;t[36]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Cn,{}),t[36]=ne):ne=t[36];let te;t[37]===Symbol.for("react.memo_cache_sentinel")?(te=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(po,{}),n.jsx(Lo,{})]}),t[37]=te):te=t[37];let J;t[38]!==i||t[39]!==c?(J=i&&n.jsx(To,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=J):J=t[40];let V;t[41]!==f||t[42]!==g?(V=f&&n.jsx(xs,{open:!0,onOpenChange:g,source:Ss()}),t[41]=f,t[42]=g,t[43]=V):V=t[43];let q;t[44]!==s?(q=n.jsx(bo,{open:s,onOpenChange:r}),t[44]=s,t[45]=q):q=t[45];let G,W;t[46]===Symbol.for("react.memo_cache_sentinel")?(G=n.jsx(Bo,{}),W=n.jsx(js,{}),t[46]=G,t[47]=W):(G=t[46],W=t[47]);let Y;return t[48]!==Z||t[49]!==ee||t[50]!==J||t[51]!==V||t[52]!==q?(Y=n.jsxs(ni,{org:Z,children:[ee,ne,te,J,V,q,G,W]}),t[48]=Z,t[49]=ee,t[50]=J,t[51]=V,t[52]=q,t[53]=Y):Y=t[53],Y}function li(t){return t.location.pathname}function ci(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(vs,{children:n.jsx(ri,{})}),t[0]=e):e=t[0],e}const qi=Object.freeze(Object.defineProperty({__proto__:null,default:ci,usePanelActions:si},Symbol.toStringTag,{value:"Module"}));export{lo as a,Mi as b,Ki as f,qi as s,si as u};