decocms 4.369.0 → 4.370.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/dist/client/assets/{AlertCircle-C2lWpOgU.js → AlertCircle-1tXYA983.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CDW2X2rN.js → AreaChart-DYf14-A3.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CU3-fYWo.js → ArrowLeft-WIs9fDWZ.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-qxhrF_kb.js → ArrowRight-DG-WBoIq.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BhS_1mYc.js → ArrowUp-Bmzltodu.js} +1 -1
  6. package/dist/client/assets/{Check-rqGVCswn.js → Check-xTJ1BAFS.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-M7bvdMAJ.js → CheckCircle-TQcdsUhf.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-B0oqU00R.js → ChevronRight-DCqx7EGT.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-DfxfQUMI.js → ChevronUp-3UEDdaPB.js} +1 -1
  10. package/dist/client/assets/{Copy01-DVkNiM-0.js → Copy01-PeYhBCOM.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-eB7EWH17.js → CreditCard01-B_48CqcT.js} +1 -1
  12. package/dist/client/assets/{Database01-D35ryavs.js → Database01-D7iG5IyO.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-DZU1UmXa.js → DotsVertical-Cmi2iJK5.js} +1 -1
  14. package/dist/client/assets/{Download01-DwQ1G6ye.js → Download01-CYV7uDn8.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-CJYWuNcr.js → ErrorBarContext-Cvf7aqY-.js} +1 -1
  16. package/dist/client/assets/{Eye-CtH1p9zC.js → Eye-Mzs0aJc5.js} +1 -1
  17. package/dist/client/assets/{File02-DxwsPnN4.js → File02-CNlyjEK_.js} +1 -1
  18. package/dist/client/assets/{GitBranch01-addX0JVd.js → GitBranch01-CxhsRVwc.js} +1 -1
  19. package/dist/client/assets/{Globe01-BVQZQLys.js → Globe01-v8HQ0xMJ.js} +1 -1
  20. package/dist/client/assets/{HardDrive-CgCPR9N9.js → HardDrive-C7VatbUo.js} +1 -1
  21. package/dist/client/assets/{Image01-CrMDp3Vo.js → Image01-MSm7Xy3L.js} +1 -1
  22. package/dist/client/assets/{Key01-DhyF5uqa.js → Key01-DRBJEGwt.js} +1 -1
  23. package/dist/client/assets/{Link01-hmn4gufb.js → Link01-C3EHqcJH.js} +1 -1
  24. package/dist/client/assets/{LinkExternal01-mgQOyqV5.js → LinkExternal01-C3fl891t.js} +1 -1
  25. package/dist/client/assets/{MessageCircle01-DDAnC61_.js → MessageCircle01-Cmf8JuHq.js} +1 -1
  26. package/dist/client/assets/{Monitor01-d_wX2Fmi.js → Monitor01-DjiqQChm.js} +1 -1
  27. package/dist/client/assets/{Package-qMBF9Z41.js → Package-Df1Gh2IO.js} +1 -1
  28. package/dist/client/assets/{Palette-DpdMsEg8.js → Palette-HbqVhRK2.js} +1 -1
  29. package/dist/client/assets/{Play--LDHvpGS.js → Play-BlYc7EZj.js} +1 -1
  30. package/dist/client/assets/{Plus-CoArXql3.js → Plus-CpSwTr0T.js} +1 -1
  31. package/dist/client/assets/{Printer-DgFSeDVy.js → Printer-N721Xhfh.js} +1 -1
  32. package/dist/client/assets/{SearchLg-Cfc9ks4j.js → SearchLg-CLkCoNgY.js} +1 -1
  33. package/dist/client/assets/{SearchMd-B17DCXA1.js → SearchMd-DprD9K_4.js} +1 -1
  34. package/dist/client/assets/{Sector-DKNnM_B8.js → Sector-B5QMzQy1.js} +1 -1
  35. package/dist/client/assets/{Settings02-DS55cdFG.js → Settings02-BVyAPz4l.js} +1 -1
  36. package/dist/client/assets/{Share07-TiIVn1wF.js → Share07-rj7fj4qY.js} +1 -1
  37. package/dist/client/assets/{Shield01-CH_njjpt.js → Shield01-CVKjCa0y.js} +1 -1
  38. package/dist/client/assets/{Stars01-BoUj0aQ2.js → Stars01-DO6CR_Qj.js} +1 -1
  39. package/dist/client/assets/{Sun-Bf5fAE_C.js → Sun-B_gCoMT5.js} +1 -1
  40. package/dist/client/assets/{SwitchHorizontal01-WLp0jVF6.js → SwitchHorizontal01-BtDvtERO.js} +1 -1
  41. package/dist/client/assets/{Tool01-JAyMpj3A.js → Tool01-VOdgFe0j.js} +1 -1
  42. package/dist/client/assets/{Tool02-BpsCMUE8.js → Tool02-1JJuM2Jx.js} +1 -1
  43. package/dist/client/assets/{Trash01-B_0aDdmF.js → Trash01-CPzbb236.js} +1 -1
  44. package/dist/client/assets/{TrendUp01-DGRDTPSm.js → TrendUp01-DTKK0BbY.js} +1 -1
  45. package/dist/client/assets/{Upload01-DEQ3dwz0.js → Upload01-BGp95TSG.js} +1 -1
  46. package/dist/client/assets/{User01-CBghCDg6.js → User01-CIu4j4bY.js} +1 -1
  47. package/dist/client/assets/{UserSquare-DQQQtBnB.js → UserSquare-fo3u6U30.js} +1 -1
  48. package/dist/client/assets/{Users01-BOkEXzvv.js → Users01-BFn7BMw2.js} +1 -1
  49. package/dist/client/assets/{Users03-DwyDrG4M.js → Users03-CkPCcVwN.js} +1 -1
  50. package/dist/client/assets/{X-Bo-nL9WD.js → X-BK5U4CXr.js} +1 -1
  51. package/dist/client/assets/{XCircle-tKzUjg2f.js → XCircle-BO_JoMNT.js} +1 -1
  52. package/dist/client/assets/{XClose-DrZOiEWO.js → XClose-DKf6lRYV.js} +1 -1
  53. package/dist/client/assets/{Zap-C3oJkRYj.js → Zap-Cmej57-r.js} +1 -1
  54. package/dist/client/assets/{ZoomOut-BhJBCe49.js → ZoomOut-DnUqC8ul.js} +1 -1
  55. package/dist/client/assets/{access-gate-DFPEFDON.js → access-gate-DNVd82a-.js} +1 -1
  56. package/dist/client/assets/{add-connection-dialog-ASPwZQfa.js → add-connection-dialog-BLTjYSH1.js} +1 -1
  57. package/dist/client/assets/{agent-analytics-CCyYYc0N.js → agent-analytics-CkQGSo_n.js} +1 -1
  58. package/dist/client/assets/agent-app-BhGS4mQ9.js +1 -0
  59. package/dist/client/assets/{agent-assets-DikxnyCb.js → agent-assets-CUvTaKlG.js} +1 -1
  60. package/dist/client/assets/{agent-automation-k56DIR-3.js → agent-automation-BWknYPi6.js} +1 -1
  61. package/dist/client/assets/{agent-automations-a2VFoLfj.js → agent-automations-DG3VrbcX.js} +1 -1
  62. package/dist/client/assets/{agent-connect-sources-Bt53VdX4.js → agent-connect-sources-DOhnax4O.js} +1 -1
  63. package/dist/client/assets/agent-deck-Bqt-SDOn.js +1 -0
  64. package/dist/client/assets/{agent-e2e-ENCxB69L.js → agent-e2e-Cscw-cIr.js} +1 -1
  65. package/dist/client/assets/{agent-experiments-OZmD0UEu.js → agent-experiments-WP_CUdVh.js} +1 -1
  66. package/dist/client/assets/agent-file-CJeRH4S4.js +1 -0
  67. package/dist/client/assets/{agent-git-Cm4zJ1tF.js → agent-git-BbNQJ_lx.js} +1 -1
  68. package/dist/client/assets/{agent-hosting-VggutAo8.js → agent-hosting-BN9JQM58.js} +1 -1
  69. package/dist/client/assets/{agent-icon-BpOMBDFI.js → agent-icon-DVpNns9U.js} +1 -1
  70. package/dist/client/assets/agent-library-file-BnBTHelr.js +1 -0
  71. package/dist/client/assets/{agent-monitor-DH5aJvld.js → agent-monitor-DHOuLLWJ.js} +1 -1
  72. package/dist/client/assets/{agent-overview-DiXRzsSz.js → agent-overview-Bxbjzi_h.js} +1 -1
  73. package/dist/client/assets/agent-settings-sJcx6kKb.js +1 -0
  74. package/dist/client/assets/{agent-site-editor-_xasoUjO.js → agent-site-editor-CICC8l8c.js} +1 -1
  75. package/dist/client/assets/agent-site-editor-code-BI4vvGu8.js +2 -0
  76. package/dist/client/assets/{agent-site-editor-content-B10w54cK.js → agent-site-editor-content-B3TDs3qI.js} +2 -2
  77. package/dist/client/assets/{agent-site-editor-preview-ZOZbioaU.js → agent-site-editor-preview-BPXVqm7J.js} +3 -3
  78. package/dist/client/assets/agent-view-BfULp7pV.js +1 -0
  79. package/dist/client/assets/{agent-view-guard-DOyeGkcw.js → agent-view-guard-Dkma4AN4.js} +1 -1
  80. package/dist/client/assets/{agents-list-DqBw8PZ3.js → agents-list-BpqceprA.js} +1 -1
  81. package/dist/client/assets/{ai-providers-DduOcV7L.js → ai-providers-Dsvao1Pr.js} +1 -1
  82. package/dist/client/assets/{alert-DR250ZD_.js → alert-CobWIC47.js} +1 -1
  83. package/dist/client/assets/{alert-dialog-DCDCFOfA.js → alert-dialog-wT7jiyfA.js} +1 -1
  84. package/dist/client/assets/api-keys-BVrNC9rq.js +1 -0
  85. package/dist/client/assets/{api-keys-FoUBI_te.js → api-keys-CkjHxdGu.js} +1 -1
  86. package/dist/client/assets/app-editor-CtV10j6O.js +1 -0
  87. package/dist/client/assets/{asset-utils-NJ9bu6ns.js → asset-utils-LA8ZX19y.js} +1 -1
  88. package/dist/client/assets/{auth-catchall-BioA_BsD.js → auth-catchall-DQ5akX44.js} +1 -1
  89. package/dist/client/assets/{auth-entry-DcLIsH9_.js → auth-entry-D7I605v8.js} +1 -1
  90. package/dist/client/assets/{auth-split-layout-B8I691Ut.js → auth-split-layout-C5ka_xbG.js} +1 -1
  91. package/dist/client/assets/{auth-D1dR15pD.js → auth-xyflLJOA.js} +1 -1
  92. package/dist/client/assets/{authenticate-and-persist-oauth-x4sNo_pm.js → authenticate-and-persist-oauth-BYffRyL1.js} +1 -1
  93. package/dist/client/assets/{automation-list-row-BEMC3EgI.js → automation-list-row-BiCHvg1E.js} +1 -1
  94. package/dist/client/assets/{automation-runs-WYHaFK8K.js → automation-runs-InKaagrd.js} +1 -1
  95. package/dist/client/assets/{automations-Dqe6pfAQ.js → automations-DczFyfvV.js} +1 -1
  96. package/dist/client/assets/{autosend-9tjhav1j.js → autosend-jDz9w5es.js} +1 -1
  97. package/dist/client/assets/{avatar-C1hmceI2.js → avatar-59ieBVuI.js} +1 -1
  98. package/dist/client/assets/{badge-BomIjFAl.js → badge-Dg-GvhTL.js} +1 -1
  99. package/dist/client/assets/{block-document-4oL_s25U.js → block-document-DXGd3rGx.js} +1 -1
  100. package/dist/client/assets/{blocks-preview-workspace-context-DIEtTn0R.js → blocks-preview-workspace-context-CGnbNto7.js} +1 -1
  101. package/dist/client/assets/{breadcrumb-DCZtPfOi.js → breadcrumb-Bi94Zhve.js} +1 -1
  102. package/dist/client/assets/{buckets-ChXmlHnF.js → buckets-7gYXanZU.js} +1 -1
  103. package/dist/client/assets/{build-improve-prompt-doc-YYYm2rSv.js → build-improve-prompt-doc-B8PsP5N-.js} +1 -1
  104. package/dist/client/assets/{bulk-category-panel-CnyffYID.js → bulk-category-panel-BsAoIiTM.js} +1 -1
  105. package/dist/client/assets/{calendar-DrfD0gKj.js → calendar-DBLoQgX7.js} +1 -1
  106. package/dist/client/assets/{capability-load-error-BggXhk6R.js → capability-load-error-ClikwkEo.js} +1 -1
  107. package/dist/client/assets/{cards-Bj4PSHlI.js → cards-CuGpCt1-.js} +1 -1
  108. package/dist/client/assets/category-editor-CVIRcUyy.js +1 -0
  109. package/dist/client/assets/{chart-ny1HYNGx.js → chart-5IbQx_10.js} +1 -1
  110. package/dist/client/assets/{chat-context-CHasUyhx.js → chat-context-CDM4lm2n.js} +1 -1
  111. package/dist/client/assets/{chat-draft-CHgo5Gd2.js → chat-draft-BOoYvIFQ.js} +1 -1
  112. package/dist/client/assets/{checkbox-B1wYaCDK.js → checkbox-V9d9pvk-.js} +1 -1
  113. package/dist/client/assets/{choose-editor-DoL1TZ9w.js → choose-editor-BWtsjN8U.js} +1 -1
  114. package/dist/client/assets/{cli-auth-success-DS3vhvpo.js → cli-auth-success-BWkwAUAb.js} +1 -1
  115. package/dist/client/assets/{client-icons-D13XCyeZ.js → client-icons-DlR9x0c9.js} +1 -1
  116. package/dist/client/assets/{collapsible-oR0EnOeU.js → collapsible-g-wqysdA.js} +1 -1
  117. package/dist/client/assets/{collection-detail-DrGJM4k3.js → collection-detail-CDEHrMll.js} +1 -1
  118. package/dist/client/assets/{collection-display-button-CsKOdwAm.js → collection-display-button-Dw6PWWpn.js} +1 -1
  119. package/dist/client/assets/{collection-search-vqyVPQWx.js → collection-search-Bp-rPhpb.js} +1 -1
  120. package/dist/client/assets/{collection-table-wrapper-DQRic-3G.js → collection-table-wrapper-D4FVwO4z.js} +1 -1
  121. package/dist/client/assets/{collection-tabs-B4SGwBT4.js → collection-tabs-Qlq9sULI.js} +1 -1
  122. package/dist/client/assets/{command-palette-store-Bvf6TthC.js → command-palette-store-CNy-rAUx.js} +1 -1
  123. package/dist/client/assets/{command-D7wuXn8e.js → command-snMRwniz.js} +1 -1
  124. package/dist/client/assets/{companion-mcps-section-C_JqwaN8.js → companion-mcps-section-CqLiiBRm.js} +1 -1
  125. package/dist/client/assets/{connect-BSJtc-Kh.js → connect-CWxrEdxr.js} +1 -1
  126. package/dist/client/assets/{connect-layout-DypL-2eq.js → connect-layout-BmmfQzZ9.js} +1 -1
  127. package/dist/client/assets/{connection-Bgf6l-aA.js → connection-CPQblQ3U.js} +1 -1
  128. package/dist/client/assets/{connection-card-B4u8rRUh.js → connection-card-BMhM9YLg.js} +1 -1
  129. package/dist/client/assets/{connection-detail-Bwpc-UOE.js → connection-detail-CQ45HLaK.js} +1 -1
  130. package/dist/client/assets/{connection-form-helpers-CxGOMB-z.js → connection-form-helpers-DWufC45a.js} +1 -1
  131. package/dist/client/assets/{connections-DgltL0l6.js → connections-Plo1peRz.js} +1 -1
  132. package/dist/client/assets/{create-organization-dialog-DDeZabgH.js → create-organization-dialog-DhreHUKx.js} +1 -1
  133. package/dist/client/assets/{decofile-api-DLt1kHTP.js → decofile-api-Dtkqfmem.js} +1 -1
  134. package/dist/client/assets/{decopilot-32iWDPvx.js → decopilot-CqhqF__3.js} +1 -1
  135. package/dist/client/assets/{dialog-BypQVVb3.js → dialog-CAXkcJ8S.js} +1 -1
  136. package/dist/client/assets/{discover-BMEMJPa4.js → discover-Zc5NK4lZ.js} +1 -1
  137. package/dist/client/assets/{domain-settings-BZEUNcNC.js → domain-settings-DQKHqBu0.js} +1 -1
  138. package/dist/client/assets/{download-app-dialog-CG6o1bT8.js → download-app-dialog-B7Asc5GB.js} +1 -1
  139. package/dist/client/assets/{drawer-6NSm3eVL.js → drawer-hcbNpS4x.js} +1 -1
  140. package/dist/client/assets/{dropdown-menu-CDMf13yl.js → dropdown-menu-pF99TyBi.js} +1 -1
  141. package/dist/client/assets/{editor-7qaS_3d6.js → editor-B5cNa9eB.js} +1 -1
  142. package/dist/client/assets/{empty-state-BDUM4Rtf.js → empty-state-Bt0Hh6b-.js} +1 -1
  143. package/dist/client/assets/{empty-state-DAyCGINn.js → empty-state-D477CT2g.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-Cj-WBnCd.js → extract-connection-data-BSTcyitO.js} +1 -1
  145. package/dist/client/assets/{feature-gate-D_SUayNN.js → feature-gate-DLsUeDhl.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-DBUFwc96.js → feature-paywall-C_iwpT-v.js} +1 -1
  147. package/dist/client/assets/{file-explorer-BcL5S1Lu.js → file-explorer-RD2hEKmq.js} +1 -1
  148. package/dist/client/assets/{file-preview-CXIhtRSX.js → file-preview-DiyPiUfU.js} +1 -1
  149. package/dist/client/assets/{file-share-button-BGcDBM9E.js → file-share-button-Dz-lABwq.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-Dj35nCU5.js → file-type-icon-B_0Tk-vm.js} +1 -1
  151. package/dist/client/assets/{folder-icon-DIhm6Rxv.js → folder-icon-vZmvYwxx.js} +1 -1
  152. package/dist/client/assets/{form-DmbG84E2.js → form-ChdC5Ot0.js} +1 -1
  153. package/dist/client/assets/{gateway-client-BOFQMVVW.js → gateway-client-CbIQqHjd.js} +1 -1
  154. package/dist/client/assets/{general-Bf_5EGhN.js → general-B6ZXV676.js} +1 -1
  155. package/dist/client/assets/{github-icon-CLv0eSZl.js → github-icon-BjAkFtmY.js} +1 -1
  156. package/dist/client/assets/{home-BF4Duqdv.js → home-B_r09GAE.js} +1 -1
  157. package/dist/client/assets/{hooks-D3jKGwrd.js → hooks-C9H07Xup.js} +1 -1
  158. package/dist/client/assets/{hooks-DxeclenL.js → hooks-CJD0QTpM.js} +1 -1
  159. package/dist/client/assets/{index-ClkkZHTp.js → index-2szvgJ36.js} +1 -1
  160. package/dist/client/assets/{index-FdPo9z4k.js → index-BE6wTVdK.js} +1 -1
  161. package/dist/client/assets/{index-DG9fNIPE.js → index-BQ-uiPPS.js} +1 -1
  162. package/dist/client/assets/{index-BGFPP1Jg.js → index-BZTfQcMg.js} +1 -1
  163. package/dist/client/assets/{index-kJsMzJ4Q.js → index-Bmh1G5Mq.js} +1 -1
  164. package/dist/client/assets/{index-CmFEcUkq.js → index-CPdgPCXJ.js} +1 -1
  165. package/dist/client/assets/{index-CFIVs_vz.js → index-CZLQtuJd.js} +1 -1
  166. package/dist/client/assets/{index-Cx9SAtFe.js → index-CiT2vzt3.js} +1 -1
  167. package/dist/client/assets/{index-BAtwkSnx.js → index-CrHH8NH4.js} +1 -1
  168. package/dist/client/assets/{index-C7PQ_4p5.js → index-D83Vro8v.js} +1 -1
  169. package/dist/client/assets/{index-ScYyE5_9.js → index-DEl7JknG.js} +1 -1
  170. package/dist/client/assets/{index-G2UyMegc.js → index-DNLN-S-y.js} +4 -4
  171. package/dist/client/assets/{index-OuSBpqWq.js → index-DVZdnl-0.js} +1 -1
  172. package/dist/client/assets/{index-BtC4pKfK.js → index-DaTXtDEw.js} +1 -1
  173. package/dist/client/assets/{index-CU4letdV.js → index-dYq-2clQ.js} +1 -1
  174. package/dist/client/assets/{index-redirect-bccWPJZE.js → index-redirect-aGxomp8_.js} +1 -1
  175. package/dist/client/assets/{infiniteQueryObserver-CipffcFb.js → infiniteQueryObserver-CpLrJakx.js} +1 -1
  176. package/dist/client/assets/{infra-billing-C7y2RsFa.js → infra-billing-DOAjXbOj.js} +1 -1
  177. package/dist/client/assets/{input-DPdp37UT.js → input-BonEB90_.js} +1 -1
  178. package/dist/client/assets/{input-CcXFxYa-.js → input-D4hQfAVG.js} +1 -1
  179. package/dist/client/assets/{input-zIb_hr24.js → input-ajyg1XWz.js} +1 -1
  180. package/dist/client/assets/{integration-icon-BCZH6zKn.js → integration-icon-BhhBPO6X.js} +1 -1
  181. package/dist/client/assets/{label-o7e96U_B.js → label-B38_j6k4.js} +1 -1
  182. package/dist/client/assets/{last-preview-page-Bxnbv0ml.js → last-preview-page-BlwcEUXN.js} +1 -1
  183. package/dist/client/assets/{layout-CFgn2paa.js → layout-DRo1vIrL.js} +1 -1
  184. package/dist/client/assets/{legacy-agents-deep-CjzNzANN.js → legacy-agents-deep-BXBmXVU8.js} +1 -1
  185. package/dist/client/assets/{legacy-main-redirect-RnStWp9c.js → legacy-main-redirect-DlNN_-xl.js} +1 -1
  186. package/dist/client/assets/{library-B_OBMdyZ.js → library-CJPMCiQ8.js} +1 -1
  187. package/dist/client/assets/{login-BMumoiUc.js → login-CK40CqT_.js} +1 -1
  188. package/dist/client/assets/{markdown-CQ65YS6u.js → markdown-DnP4canl.js} +1 -1
  189. package/dist/client/assets/{mcp-app-renderer-FvZ6aYt8.js → mcp-app-renderer-BWdxAEBu.js} +1 -1
  190. package/dist/client/assets/{mcp-oauth-ChqPPSp5.js → mcp-oauth-BAU13wtN.js} +1 -1
  191. package/dist/client/assets/{members-0iJvBjcA.js → members-DvQGNcot.js} +1 -1
  192. package/dist/client/assets/{message-templates-4UYjbQTF.js → message-templates-CyX6zDFO.js} +1 -1
  193. package/dist/client/assets/{mini-report-page-BEXjxlQK.js → mini-report-page-DzaKJWDH.js} +1 -1
  194. package/dist/client/assets/{mock-board-CktKGE_8.js → mock-board-CkAoka7C.js} +3 -3
  195. package/dist/client/assets/{monaco-editor-CYESZJnj.js → monaco-editor-dkXpmbQK.js} +1 -1
  196. package/dist/client/assets/{monitoring-stats-row-CXlUFprB.js → monitoring-stats-row-B74YwkZo.js} +1 -1
  197. package/dist/client/assets/{multi-select-DGQwU68L.js → multi-select-CNlKmPI6.js} +1 -1
  198. package/dist/client/assets/{mustache-I-DupvWQ.js → mustache-jdd77gGw.js} +1 -1
  199. package/dist/client/assets/{oauth-callback-LXXALCwD.js → oauth-callback-D6MRSG5P.js} +1 -1
  200. package/dist/client/assets/{oauth-callback-ai-provider-WYs4F8LI.js → oauth-callback-ai-provider-Db7gGErG.js} +1 -1
  201. package/dist/client/assets/{onboarding-CzLuREKQ.js → onboarding-TnkA-L5f.js} +1 -1
  202. package/dist/client/assets/{optimistic-project-sidebar-views-Dvi4DBSE.js → optimistic-project-sidebar-views-GQk-n4M-.js} +1 -1
  203. package/dist/client/assets/{org-file-open-context-CdEBkByA.js → org-file-open-context-BqSbRTEV.js} +1 -1
  204. package/dist/client/assets/{organization-choice-CZ6ST5l-.js → organization-choice-DJl2DFOQ.js} +1 -1
  205. package/dist/client/assets/{orgs-DW9NJKFV.js → orgs-BHt1QIg3.js} +1 -1
  206. package/dist/client/assets/page-seo-form-Bqz5780y.js +1 -0
  207. package/dist/client/assets/{pair-D3JXbeXT.js → pair-n03pUejQ.js} +1 -1
  208. package/dist/client/assets/{plan-ladder-1wlVOtKw.js → plan-ladder-xhrN5SGF.js} +1 -1
  209. package/dist/client/assets/{popover-C2wFF_xV.js → popover-U67IDJ4E.js} +1 -1
  210. package/dist/client/assets/{post-calendar-BlXJlwkw.js → post-calendar-Cf-G7gUH.js} +1 -1
  211. package/dist/client/assets/post-editor-CWeWjHTL.js +1 -0
  212. package/dist/client/assets/{preview-content-DSbCMNWp.js → preview-content-_5L2XhHD.js} +1 -1
  213. package/dist/client/assets/{preview-dialog-DYJe8uUk.js → preview-dialog-CQ_r0371.js} +1 -1
  214. package/dist/client/assets/{primitives-DVPuksja.js → primitives-DDDiRp7f.js} +1 -1
  215. package/dist/client/assets/{profile-CeJnHmAy.js → profile-Cmo35YQs.js} +1 -1
  216. package/dist/client/assets/{project-app-view-DESSEjQa.js → project-app-view-D47sWd3n.js} +1 -1
  217. package/dist/client/assets/{project-feed-CmHdVN_s.js → project-feed-gXwBJxZH.js} +1 -1
  218. package/dist/client/assets/{project-icon-C8HyVHnH.js → project-icon-CUpze2pS.js} +1 -1
  219. package/dist/client/assets/project-reports-BAs_aT3d.js +1 -0
  220. package/dist/client/assets/project-tasks-C616q5sS.js +1 -0
  221. package/dist/client/assets/{prompts-Bn5ZJjo-.js → prompts-Vek-xo9Z.js} +1 -1
  222. package/dist/client/assets/record-editor-BsEaMAHo.js +1 -0
  223. package/dist/client/assets/redirect-editor-Bb_iGjla.js +1 -0
  224. package/dist/client/assets/registry-C-4DLbnt.js +2 -0
  225. package/dist/client/assets/{registry-layout-DR1fRQbJ.js → registry-layout-C3CeJ5OF.js} +1 -1
  226. package/dist/client/assets/{reports-570Ovt3Y.js → reports-Cml7Wiu3.js} +1 -1
  227. package/dist/client/assets/reports-i23UwZDC.js +1 -0
  228. package/dist/client/assets/{reports-onboarding-MJjrf2kp.js → reports-onboarding-DF6DPnMO.js} +1 -1
  229. package/dist/client/assets/{reports-tab-DxUZKbbK.js → reports-tab-D_lacjcx.js} +2 -2
  230. package/dist/client/assets/{repositories-CDzzTlR_.js → repositories-DLUZ3cRD.js} +1 -1
  231. package/dist/client/assets/{repository-import-picker-CoY5lNVi.js → repository-import-picker-X0plkf32.js} +1 -1
  232. package/dist/client/assets/{repository-picker-D7IurOAz.js → repository-picker-DCx-uHf8.js} +1 -1
  233. package/dist/client/assets/{require-capability-Jd5jn77l.js → require-capability-D-wH4E29.js} +1 -1
  234. package/dist/client/assets/{required-auth-layout-bC7FFuKj.js → required-auth-layout-BKa_lviA.js} +1 -1
  235. package/dist/client/assets/{reset-password-CPOMBw7_.js → reset-password-CNEdFChi.js} +1 -1
  236. package/dist/client/assets/{resizable-D1tM3IzY.js → resizable-D6YVedQm.js} +1 -1
  237. package/dist/client/assets/{review-settings-83qlW37B.js → review-settings-eEN8ZWAb.js} +1 -1
  238. package/dist/client/assets/{rich-text-link-control-CJ9IjXe-.js → rich-text-link-control-BPFG11VP.js} +1 -1
  239. package/dist/client/assets/{roles-CBTUFX9o.js → roles-CYnkRQ9t.js} +1 -1
  240. package/dist/client/assets/{route-DYX-ZJ6K.js → route-BYCK-8xU.js} +1 -1
  241. package/dist/client/assets/{route-DmCAYeiA.js → route-C-P9aRtD.js} +1 -1
  242. package/dist/client/assets/{route-C-U5U0LP.js → route-Ci7I6rpa.js} +1 -1
  243. package/dist/client/assets/runnable-block-editor-kEjVvsf_.js +16 -0
  244. package/dist/client/assets/{sandbox-lifecycle-context-ayfhIoek.js → sandbox-lifecycle-context-fADtVHc-.js} +1 -1
  245. package/dist/client/assets/{schema-Yg6eVXwq.js → schema-CcbI6epb.js} +1 -1
  246. package/dist/client/assets/{scroll-area-DFH0BIEE.js → scroll-area-B6T7h0kW.js} +1 -1
  247. package/dist/client/assets/{search-input-DxlhlhQD.js → search-input-Lb4TIfyo.js} +1 -1
  248. package/dist/client/assets/{secrets-DjqTFbwn.js → secrets-B1zKNX7T.js} +1 -1
  249. package/dist/client/assets/sections-editor-kpb1S6HX.js +2 -0
  250. package/dist/client/assets/{select-BBIddav0.js → select-Bg8FJZH4.js} +1 -1
  251. package/dist/client/assets/{select-model-DlxXqqd1.js → select-model-Bwzm3QxW.js} +1 -1
  252. package/dist/client/assets/seo-editor-DHGGE8fk.js +1 -0
  253. package/dist/client/assets/{settings-tab-BnEXhTTK.js → settings-tab-DBCrAv1j.js} +1 -1
  254. package/dist/client/assets/{sheet-C0L3YWis.js → sheet-BTynoFug.js} +1 -1
  255. package/dist/client/assets/{shell-layout-CsiRuIFo.js → shell-layout-CYdkOIB8.js} +1 -1
  256. package/dist/client/assets/{sidebar-BolrJwiT.js → sidebar-CWSdX6_H.js} +1 -1
  257. package/dist/client/assets/{skill-preview-BCCeJe6p.js → skill-preview-CyKjOfIX.js} +1 -1
  258. package/dist/client/assets/{skills-BX2p2Ul4.js → skills-DcqlBMNQ.js} +1 -1
  259. package/dist/client/assets/{sso-CVlC0aEo.js → sso-BZLvMG_D.js} +1 -1
  260. package/dist/client/assets/{store-CBNNdmsb.js → store-Dz2XPNUe.js} +1 -1
  261. package/dist/client/assets/store-registry-D9rK2p3L.js +2 -0
  262. package/dist/client/assets/{switch-Dhe_5yOi.js → switch-_AKgCBvM.js} +1 -1
  263. package/dist/client/assets/{synced-repos-g8U4jc_i.js → synced-repos-RgS5-hst.js} +1 -1
  264. package/dist/client/assets/{table-Dg_IemFq.js → table-glaZIeWJ.js} +1 -1
  265. package/dist/client/assets/{tabs-D03Qxk92.js → tabs-Dt95FMsw.js} +1 -1
  266. package/dist/client/assets/{task-board-CX4694hL.js → task-board-DMNgmO_8.js} +1 -1
  267. package/dist/client/assets/{task-route-EKbO6y_O.js → task-route-CauWOiGW.js} +1 -1
  268. package/dist/client/assets/{task-status-DPU68_gS.js → task-status-C920sz5t.js} +1 -1
  269. package/dist/client/assets/tasks-B58M8cFe.js +1 -0
  270. package/dist/client/assets/{tasks-C9tTegeu.js → tasks-B6Eh8qrn.js} +1 -1
  271. package/dist/client/assets/{textarea-qr7TLAIF.js → textarea-xT8-q2Sr.js} +1 -1
  272. package/dist/client/assets/{thread-intent-Dp5bGo2g.js → thread-intent-ctmAJKi2.js} +1 -1
  273. package/dist/client/assets/{thread-route-Dgqcb54O.js → thread-route-B2ty6ukP.js} +1 -1
  274. package/dist/client/assets/{thread-route-OLYiCJph.js → thread-route-IuL5SOAM.js} +1 -1
  275. package/dist/client/assets/{thread-sheet-body-S1u9ZwLo.js → thread-sheet-body-CfDwHQTb.js} +1 -1
  276. package/dist/client/assets/{toggle-group-CpWyvCov.js → toggle-group-C_CFdIpl.js} +1 -1
  277. package/dist/client/assets/{toolbar-icon-button-CKSL6Yie.js → toolbar-icon-button-BKd-A7Pf.js} +1 -1
  278. package/dist/client/assets/{tooltip-DWL9syQD.js → tooltip-DX0Bl_lS.js} +1 -1
  279. package/dist/client/assets/{track-CGJk_yiE.js → track-BGFQx9Og.js} +1 -1
  280. package/dist/client/assets/{types-Dl4SJsdD.js → types-C1oq08z_.js} +1 -1
  281. package/dist/client/assets/{usage-stats-Cgo5f2V2.js → usage-stats-DfmfsH2y.js} +1 -1
  282. package/dist/client/assets/{use-ai-providers-D-_z6UQo.js → use-ai-providers-Cxex7wDI.js} +1 -1
  283. package/dist/client/assets/{use-automations-CCERRGfI.js → use-automations-xhQB066d.js} +1 -1
  284. package/dist/client/assets/{use-autosave-DnRgbTqM.js → use-autosave-CLWD6tK9.js} +1 -1
  285. package/dist/client/assets/{use-connect-companion-Y5EiEwxZ.js → use-connect-companion-Ccc5SBnt.js} +1 -1
  286. package/dist/client/assets/{use-connection-CvQsoe8t.js → use-connection-ClO-4FPh.js} +1 -1
  287. package/dist/client/assets/{use-copy-6F0jqaNp.js → use-copy-CATdEsly.js} +1 -1
  288. package/dist/client/assets/{use-create-virtual-mcp--Wd1wVnr.js → use-create-virtual-mcp-C2lQbb02.js} +1 -1
  289. package/dist/client/assets/{use-date-fns-locale-DQDMzFi_.js → use-date-fns-locale-C99-kFzM.js} +1 -1
  290. package/dist/client/assets/{use-debounced-autosave-DODMG9cD.js → use-debounced-autosave-Cy-9dLd5.js} +1 -1
  291. package/dist/client/assets/{use-debounced-value-GI3jmKWk.js → use-debounced-value-C17ryCVv.js} +1 -1
  292. package/dist/client/assets/{use-deco-credits-u_ppfNkE.js → use-deco-credits-CaqOb_n2.js} +1 -1
  293. package/dist/client/assets/{use-decopilot-events-BVhyJ5Q6.js → use-decopilot-events-CBMDrdyc.js} +1 -1
  294. package/dist/client/assets/{use-delete-connection-DhYXRV2S.js → use-delete-connection-B5InmISb.js} +1 -1
  295. package/dist/client/assets/{use-deployment-admin-DE8hhXsQ.js → use-deployment-admin-2fd5jdJ9.js} +1 -1
  296. package/dist/client/assets/{use-entitlements-gYQEm8ff.js → use-entitlements-VncN_xA9.js} +1 -1
  297. package/dist/client/assets/{use-fast-preview-draft-url-f5Jm7mxB.js → use-fast-preview-draft-url-DzfJMOr_.js} +1 -1
  298. package/dist/client/assets/{use-file-configs-TLOrvzhi.js → use-file-configs-BrxuudMo.js} +1 -1
  299. package/dist/client/assets/{use-infinite-scroll-DWeCyP7v.js → use-infinite-scroll-DlAjTXQY.js} +1 -1
  300. package/dist/client/assets/{use-join-requests-D6HjuxyX.js → use-join-requests-B2iYH4eh.js} +1 -1
  301. package/dist/client/assets/{use-main-panel-tabs-DQK_iDNw.js → use-main-panel-tabs-DjhAXWfm.js} +1 -1
  302. package/dist/client/assets/{use-mcp-auth-status-DXK9BGJ3.js → use-mcp-auth-status-DmKOOwLh.js} +1 -1
  303. package/dist/client/assets/{use-mcp-client-CTofCVDt.js → use-mcp-client-K6gPUYYt.js} +1 -1
  304. package/dist/client/assets/{use-mcp-prompts-DmSUcGeg.js → use-mcp-prompts-mgcej9zb.js} +1 -1
  305. package/dist/client/assets/{use-mcp-tools-BXu3F-We.js → use-mcp-tools-DOYLIeZs.js} +1 -1
  306. package/dist/client/assets/{use-members-DgyRGi7X.js → use-members-CSBt8w68.js} +1 -1
  307. package/dist/client/assets/{use-mobile-0svyHh7R.js → use-mobile-CTLnWPQD.js} +1 -1
  308. package/dist/client/assets/{use-navigate-to-agent-CgIoChxk.js → use-navigate-to-agent-pQ_2zKBF.js} +1 -1
  309. package/dist/client/assets/{use-open-billing-url-CZNG2cUJ.js → use-open-billing-url-D7Fh2Y5_.js} +1 -1
  310. package/dist/client/assets/{use-org-auth-client-DOv_Zmqc.js → use-org-auth-client-B3u98b0C.js} +1 -1
  311. package/dist/client/assets/{use-org-fs-PpDGQ72n.js → use-org-fs-CR29Vg7P.js} +1 -1
  312. package/dist/client/assets/{use-org-notice-BB8yp0g5.js → use-org-notice-C3ImSlEr.js} +1 -1
  313. package/dist/client/assets/{use-org-sso-DyncQoRl.js → use-org-sso-_0tZu1zz.js} +1 -1
  314. package/dist/client/assets/{use-organization-roles-Cj6O_vUV.js → use-organization-roles-EzxOjML4.js} +1 -1
  315. package/dist/client/assets/{use-organization-settings-CSCcR92y.js → use-organization-settings-C3TqDfmH.js} +1 -1
  316. package/dist/client/assets/{use-panel-navigate-BFz9YH5v.js → use-panel-navigate-CVnynvUQ.js} +1 -1
  317. package/dist/client/assets/{use-project-native-view-presence-B7mLctxE.js → use-project-native-view-presence-6OUtCAU9.js} +1 -1
  318. package/dist/client/assets/{use-project-scope-DpQwuDpe.js → use-project-scope-CEo7AuDz.js} +1 -1
  319. package/dist/client/assets/{use-registry-connections-aYb_SDLh.js → use-registry-connections-sjcpoUa8.js} +1 -1
  320. package/dist/client/assets/{use-releases-CYHV5ZkG.js → use-releases-BEQP4Vfy.js} +1 -1
  321. package/dist/client/assets/{use-reports-diagnostic-B6TMkRSm.js → use-reports-diagnostic-Cdvpean2.js} +1 -1
  322. package/dist/client/assets/{use-route-default-main-JsxrVKzY.js → use-route-default-main-wEQ2mAPL.js} +1 -1
  323. package/dist/client/assets/{use-secrets-Bc419fLl.js → use-secrets-7Xv_ppXY.js} +1 -1
  324. package/dist/client/assets/{use-section-preview-base-DuSOZ2iN.js → use-section-preview-base-CCdV-eU3.js} +1 -1
  325. package/dist/client/assets/{use-session-runtime-Dok2hP9u.js → use-session-runtime-D2HHCqTL.js} +1 -1
  326. package/dist/client/assets/{use-tags-CVYcMiKb.js → use-tags-OTKxlTzk.js} +1 -1
  327. package/dist/client/assets/{use-task-metadata-Rne3mWjx.js → use-task-metadata-DDJJreot.js} +1 -1
  328. package/dist/client/assets/{use-thread-outputs-voNNtY3m.js → use-thread-outputs-CyoPuq_u.js} +1 -1
  329. package/dist/client/assets/{use-view-mode-BKNxYPE2.js → use-view-mode-B-DLwjr7.js} +1 -1
  330. package/dist/client/assets/{use-virtual-mcp-BvBBJ8Mx.js → use-virtual-mcp-BjnluMGN.js} +1 -1
  331. package/dist/client/assets/useInfiniteQuery-Ck1FMc__.js +1 -0
  332. package/dist/client/assets/{useQueries-4lpfmzLc.js → useQueries-DYREP69h.js} +1 -1
  333. package/dist/client/assets/useSuspenseInfiniteQuery-DwTGOgqt.js +1 -0
  334. package/dist/client/assets/{users-DKU7eIFb.js → users-HiO_AGbd.js} +1 -1
  335. package/dist/client/assets/{utils-BjXWEQk-.js → utils-P6wlF9vW.js} +1 -1
  336. package/dist/client/assets/{variant-calendar-DQNS_zcb.js → variant-calendar-Dcoy5XFs.js} +1 -1
  337. package/dist/client/assets/{variant-matcher-override-B5kRg6OI.js → variant-matcher-override-BypdXcWL.js} +1 -1
  338. package/dist/client/assets/{view-mode-toggle-Cb8qN_2E.js → view-mode-toggle--X7nV3BO.js} +1 -1
  339. package/dist/client/assets/{virtual-mcp-FeJJ4-Gs.js → virtual-mcp-Cn7jF0kx.js} +1 -1
  340. package/dist/client/index.html +1 -1
  341. package/dist/server/cli.js +1 -1
  342. package/dist/server/server.js +1 -1
  343. package/package.json +1 -1
  344. package/dist/client/assets/agent-app-CjdC9Vik.js +0 -1
  345. package/dist/client/assets/agent-deck-B8w_RJek.js +0 -1
  346. package/dist/client/assets/agent-file-Rp_QgjUS.js +0 -1
  347. package/dist/client/assets/agent-library-file-DWiwo1Gr.js +0 -1
  348. package/dist/client/assets/agent-settings-mw4RaXBd.js +0 -1
  349. package/dist/client/assets/agent-site-editor-code-CPuZW_04.js +0 -2
  350. package/dist/client/assets/agent-view-BvlT3TRT.js +0 -1
  351. package/dist/client/assets/api-keys-RkuibPIu.js +0 -1
  352. package/dist/client/assets/app-editor-9G7AY-zP.js +0 -1
  353. package/dist/client/assets/category-editor--To3Gwxn.js +0 -1
  354. package/dist/client/assets/page-seo-form-jnLFUZoS.js +0 -1
  355. package/dist/client/assets/post-editor-BEKqMwyr.js +0 -1
  356. package/dist/client/assets/project-reports-k8kZQqgV.js +0 -1
  357. package/dist/client/assets/project-tasks-CwCZqTzX.js +0 -1
  358. package/dist/client/assets/record-editor-D4BJirKJ.js +0 -1
  359. package/dist/client/assets/redirect-editor-D7V8q-dv.js +0 -1
  360. package/dist/client/assets/registry-D4-n3nE0.js +0 -2
  361. package/dist/client/assets/reports-fKETPc_l.js +0 -1
  362. package/dist/client/assets/runnable-block-editor-BJcwVbgi.js +0 -16
  363. package/dist/client/assets/sections-editor-y7T49D7e.js +0 -2
  364. package/dist/client/assets/seo-editor-BmQQyoRh.js +0 -1
  365. package/dist/client/assets/store-registry-DBKLw5d2.js +0 -2
  366. package/dist/client/assets/tasks-Dd5O_bDj.js +0 -1
  367. package/dist/client/assets/useInfiniteQuery-xfHI500T.js +0 -1
  368. package/dist/client/assets/useSuspenseInfiniteQuery-Z6PlTFXu.js +0 -1
@@ -1,2 +0,0 @@
1
- import{c as st,b as Nt,r as R,l as Ue,j as n,aw as ns,B as tt,h as ss,n as Bo,t as q,K as Io}from"./index-G2UyMegc.js";import{u as Oo}from"./chat-context-CHasUyhx.js";import{d as Fo}from"./use-virtual-mcp-BvBBJ8Mx.js";import{n as $o,t as zo}from"./ChevronUp-DfxfQUMI.js";import{y as _n,U as os,a2 as Ho,o as Uo,N as Go,x as qo}from"./agent-icon-BpOMBDFI.js";import{i as Wo}from"./ChevronRight-B0oqU00R.js";import{i as Yo}from"./Globe01-BVQZQLys.js";import{S as Yt}from"./scroll-area-DFH0BIEE.js";import{c as Tt,T as Vt,a as Dt}from"./tooltip-DWL9syQD.js";import{d as Jo,h as Qo,c as Xo,e as Zo,b as ea,D as ta}from"./dialog-BypQVVb3.js";import{I as na}from"./input-CcXFxYa-.js";import{H as as,I as sa,J as oa,K as rs,L as aa,N as ra,V as ia,O as is,Q as la,T as It,U as ls,W as ca,X as ua,e as da,f as ma,h as fa,u as pa,Y as Fn,Z as ga,_ as ha,$ as va,a0 as Sa,a1 as ya,p as Jt,a2 as ba,z as yt,a3 as Kt,a4 as xa,a5 as _a,a6 as nt,a7 as $n,a8 as ja,w as Ea,a9 as zn,aa as Ra,ab as wa,G as Lt,ac as Qt,ad as Hn,M as ka,A as Sn,ae as ht,F as wt,af as Ta,ag as Va,E as Da,ah as Na,ai as Aa,aj as bt,ak as Pa,al as Ca,am as Ma,d as Ka,an as Un,ao as Bt,ap as Gn,aq as La,ar as Ba,as as Ia,at as Oa,y as yn,au as qn,av as Wn,aw as kt,ax as Xt,ay as bn,az as Fa,aA as $a,aB as za,aC as Ha,aD as Ua,aE as Ga}from"./runnable-block-editor-BJcwVbgi.js";import{m as qa,u as Wa,P as Ya}from"./mustache-I-DupvWQ.js";import{b as cs,G as Ja,e as Qa,j as Xa,g as Za,r as Zt,M as Yn}from"./claim-phase-copy-0btUuJoC.js";import{a as us}from"./Copy01-DVkNiM-0.js";import{a as er}from"./MessageCircle01-DDAnC61_.js";import{i as tr}from"./Settings02-DS55cdFG.js";import{s as nr}from"./Eye-CtH1p9zC.js";import{s as sr}from"./TrendUp01-DGRDTPSm.js";import{s as jn}from"./Plus-CoArXql3.js";import{s as ds}from"./Trash01-B_0aDdmF.js";import{i as or}from"./Zap-C3oJkRYj.js";import{D as ms,a as vt,c as fs,b as ps,g as ar}from"./dropdown-menu-CDMf13yl.js";import{a as gs,b as en,d as hs,K as vs,P as Ss,u as ys,C as bs,s as xs,e as Ot,D as _s,c as js,S as Es,v as Rs}from"./rich-text-link-control-CJ9IjXe-.js";import{s as rr}from"./safe-image-url-D5z803Ot.js";import{a as ir,P as lr,b as cr}from"./page-seo-form-jnLFUZoS.js";import{a as ur}from"./Tool01-JAyMpj3A.js";import{u as dr,A as mr}from"./use-section-preview-base-DuSOZ2iN.js";import{b as Jn,a as fr}from"./variant-matcher-override-B5kRg6OI.js";import"./use-panel-navigate-BFz9YH5v.js";import"./thread-route-OLYiCJph.js";import"./use-project-scope-DpQwuDpe.js";import"./github-repo-BknN0SVI.js";import"./autosend-9tjhav1j.js";import"./thread-intent-Dp5bGo2g.js";import"./slugify-CEUa2lfQ.js";import"./hooks-D3jKGwrd.js";import"./use-mcp-client-CTofCVDt.js";import"./auth-D1dR15pD.js";import"./backoff-8mStPHYB.js";import"./task-board-CX4694hL.js";import"./schema-Yg6eVXwq.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-gYQEm8ff.js";import"./use-ai-providers-D-_z6UQo.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BVhyJ5Q6.js";import"./use-organization-settings-CSCcR92y.js";import"./AlertCircle-C2lWpOgU.js";import"./ArrowUp-BhS_1mYc.js";import"./ArrowLeft-CU3-fYWo.js";import"./Tool02-BpsCMUE8.js";import"./ArrowRight-qxhrF_kb.js";import"./ZoomOut-BhJBCe49.js";import"./Users03-DwyDrG4M.js";import"./CheckCircle-M7bvdMAJ.js";import"./Check-rqGVCswn.js";import"./DotsVertical-DZU1UmXa.js";import"./UserSquare-DQQQtBnB.js";import"./CreditCard01-eB7EWH17.js";import"./Database01-D35ryavs.js";import"./Download01-DwQ1G6ye.js";import"./Printer-DgFSeDVy.js";import"./File02-DxwsPnN4.js";import"./Share07-TiIVn1wF.js";import"./GitBranch01-addX0JVd.js";import"./SwitchHorizontal01-WLp0jVF6.js";import"./HardDrive-CgCPR9N9.js";import"./Image01-CrMDp3Vo.js";import"./Key01-DhyF5uqa.js";import"./Link01-hmn4gufb.js";import"./LinkExternal01-mgQOyqV5.js";import"./Monitor01-d_wX2Fmi.js";import"./Sun-Bf5fAE_C.js";import"./Package-qMBF9Z41.js";import"./Palette-DpdMsEg8.js";import"./Play--LDHvpGS.js";import"./SearchLg-Cfc9ks4j.js";import"./SearchMd-B17DCXA1.js";import"./Shield01-CH_njjpt.js";import"./Stars01-BoUj0aQ2.js";import"./Upload01-DEQ3dwz0.js";import"./User01-CBghCDg6.js";import"./Users01-BOkEXzvv.js";import"./XCircle-tKzUjg2f.js";import"./XClose-DrZOiEWO.js";import"./X-Bo-nL9WD.js";import"./select-BBIddav0.js";import"./index-kJsMzJ4Q.js";import"./use-session-runtime-Dok2hP9u.js";import"./decofile-api-DLt1kHTP.js";import"./utils-BjXWEQk-.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-D3JXbeXT.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-oR0EnOeU.js";import"./use-copy-6F0jqaNp.js";import"./usage-stats-Cgo5f2V2.js";import"./markdown-CQ65YS6u.js";import"./org-file-open-context-CdEBkByA.js";import"./use-mobile-0svyHh7R.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-FvZ6aYt8.js";import"./types-Dl4SJsdD.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-BOFQMVVW.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./shell-layout-CsiRuIFo.js";import"./avatar-C1hmceI2.js";import"./download-app-dialog-CG6o1bT8.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-BB8yp0g5.js";import"./command-palette-store-Bvf6TthC.js";import"./command-D7wuXn8e.js";import"./index-ClkkZHTp.js";import"./integration-icon-BCZH6zKn.js";import"./project-icon-C8HyVHnH.js";import"./required-auth-layout-bC7FFuKj.js";import"./use-org-sso-DyncQoRl.js";import"./sheet-C0L3YWis.js";import"./use-connection-CvQsoe8t.js";import"./use-navigate-to-agent-CgIoChxk.js";import"./use-mcp-prompts-DmSUcGeg.js";import"./index-DG9fNIPE.js";import"./form-DmbG84E2.js";import"./label-o7e96U_B.js";import"./use-thread-outputs-voNNtY3m.js";import"./file-type-icon-Dj35nCU5.js";import"./popover-C2wFF_xV.js";import"./monaco-editor-CYESZJnj.js";import"./editor-7qaS_3d6.js";import"./calendar-DrfD0gKj.js";import"./textarea-qr7TLAIF.js";import"./switch-Dhe_5yOi.js";import"./search-input-DxlhlhQD.js";import"./tabs-D03Qxk92.js";import"./use-debounced-value-GI3jmKWk.js";import"./use-file-configs-TLOrvzhi.js";import"./asset-utils-NJ9bu6ns.js";import"./useInfiniteQuery-xfHI500T.js";import"./infiniteQueryObserver-CipffcFb.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-CpWyvCov.js";import"./alert-dialog-DCDCFOfA.js";import"./sandbox-git-api-CMdpE2TE.js";import"./section-preview-url-Csj0_ZDg.js";function pr(d){return d.schema?.definitions??d.schema?.$defs??{}}function ws(d,e){const a=pr(e),c=a[btoa(d)];if(!c)return[];const p=[c];if(Array.isArray(c.allOf)){const x=c.allOf.find(_=>typeof _.$ref=="string")?.$ref;if(typeof x=="string"){const _=a[x.replace("#/definitions/","")];_&&p.push(_)}}return p}function gr(d,e){for(const a of ws(d,e)){const c=typeof a.image=="string"?a.image:void 0;if(c?.includes("{{{"))return c}}function hr(d,e){if(!e)return;const a=as(d);if(!a)return;const c=gr(a.resolveType,e);if(!c)return;const p=sa(c,a.data);if(p)return rr(p)}const vr={escape:oa};function Sr(d,e){for(const a of ws(d,e)){const c=typeof a.title=="string"?a.title:void 0;if(c?.includes("{{"))return c}}function yr(d,e){if(!e)return;const a=as(d);if(a)try{const c=Sr(a.resolveType,e);return c&&qa.render(c,a.data,{},vr).trim()||void 0}catch{return}}const br="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",xr="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 Qn(d){return Array.from({length:d},(e,a)=>({id:crypto.randomUUID(),index:a}))}function ks(d){return d.map((e,a)=>({...e,index:a}))}function _r(d,e){if(e===d.length)return d;if(e<d.length)return ks(d.slice(0,e));const a=Array.from({length:e-d.length},(c,p)=>({id:crypto.randomUUID(),index:d.length+p}));return[...d,...a]}function Ts(d){const e=st.c(25),{section:a,raw:c,meta:p}=d,x=a.isSavedBlock===!0,_=a.isMultivariate===!0;let v;e[0]!==p||e[1]!==c?(v=c&&p?hr(c,p):void 0,e[0]=p,e[1]=c,e[2]=v):v=e[2];const b=v;let g;e[3]!==p||e[4]!==_||e[5]!==c||e[6]!==x?(g=c&&p&&!x&&!_?yr(c,p):void 0,e[3]=p,e[4]=_,e[5]=c,e[6]=x,e[7]=g):g=e[7];const k=g;let L;e[8]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx(er,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[8]=L):L=e[8];let K;e[9]!==b?(K=b&&n.jsx("img",{src:b,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[9]=b,e[10]=K):K=e[10];let D;e[11]!==_||e[12]!==x?(D=x?{color:Ja}:_?{color:"oklch(0.65 0.15 160)"}:void 0,e[11]=_,e[12]=x,e[13]=D):D=e[13];let l;e[14]!==D?(l=n.jsx(_n,{className:"h-4 w-4 shrink-0",style:D}),e[14]=D,e[15]=l):l=e[15];const y=a.isHidden&&"line-through opacity-50";let w;e[16]!==y?(w=Ue("min-w-0 flex-1 truncate text-sm font-medium",y),e[16]=y,e[17]=w):w=e[17];const B=k??a.label;let r;e[18]!==w||e[19]!==B?(r=n.jsx("span",{className:w,children:B}),e[18]=w,e[19]=B,e[20]=r):r=e[20];let T;return e[21]!==r||e[22]!==K||e[23]!==l?(T=n.jsxs(n.Fragment,{children:[L,K,l,r]}),e[21]=r,e[22]=K,e[23]=l,e[24]=T):T=e[24],T}const jr="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",Er="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]",Rr="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";function xn(d,e){return Ue("h-7 shrink-0 overflow-hidden",e?jr:d?Rr:Er)}function Vs(d,e){const a=d.isSavedBlock===!0,c=d.isMultivariate===!0;return Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":a?br:c?is:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function wr(d){const e=st.c(82),{section:a,raw:c,meta:p,sortableId:x,selected:_,onSelect:v,onDelete:b,onDuplicate:g,onMakeReusable:k,onToggleHidden:L,onToggleLazy:K,onAddVariant:D,onDetach:l}=d,y=Nt(),w=c?cs(c.__resolveType??""):!1,B=a.isHidden===!0,r=w||B;let T;e[0]!==a?(T=aa(a),e[0]=a,e[1]=T):T=e[1];const u=T;let U;e[2]!==x?(U={id:x,animateLayoutChanges:Nr},e[2]=x,e[3]=U):U=e[3];const{attributes:Me,listeners:ue,setNodeRef:ve,transform:ne,isDragging:m}=ys(U);let P;e[4]!==ne?(P=bs.Transform.toString(ne?{...ne,x:0}:null),e[4]=ne,e[5]=P):P=e[5];const Q=m?0:void 0;let V;e[6]!==P||e[7]!==Q?(V={transform:P,opacity:Q},e[6]=P,e[7]=Q,e[8]=V):V=e[8];const se=V;let N;e[9]!==a?(N=ra(a),e[9]=a,e[10]=N):N=e[10];const Ve=N;let F;e[11]!==v?(F=E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),v())},e[11]=v,e[12]=F):F=e[12];const de=m?"cursor-grabbing":"cursor-pointer";let De;e[13]!==a||e[14]!==_||e[15]!==de?(De=Ue("touch-none transition-colors",de,Vs(a,_)),e[13]=a,e[14]=_,e[15]=de,e[16]=De):De=e[16];let $e;e[17]!==p||e[18]!==c||e[19]!==a?($e=n.jsx(Ts,{section:a,raw:c,meta:p}),e[17]=p,e[18]=c,e[19]=a,e[20]=$e):$e=e[20];let me;e[21]!==B||e[22]!==y?(me=y(B?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[21]=B,e[22]=y,e[23]=me):me=e[23];let Ne;e[24]!==L?(Ne=E=>{E.stopPropagation(),L()},e[24]=L,e[25]=Ne):Ne=e[25];let Se;e[26]!==B?(Se=B?n.jsx(tr,{className:"h-3.5 w-3.5"}):n.jsx(nr,{className:"h-3.5 w-3.5"}),e[26]=B,e[27]=Se):Se=e[27];let ye;e[28]!==B||e[29]!==y?(ye=y(B?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[28]=B,e[29]=y,e[30]=ye):ye=e[30];let C;e[31]!==ye?(C=n.jsx(Dt,{side:"bottom",children:ye}),e[31]=ye,e[32]=C):C=e[32];const Ee=fs,Ae=ms,Pe=!0,Ke=tt,Y="button",fe="ghost",Oe="icon";let oe;e[33]!==y?(oe=y("sectionsEditor.sectionList.sectionActionsMenu"),e[33]=y,e[34]=oe):oe=e[34];const re=Ue(xn(r,!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 pe;e[35]===Symbol.for("react.memo_cache_sentinel")?(pe=n.jsx(os,{className:"h-3.5 w-3.5"}),e[35]=pe):pe=e[35];let J;e[36]!==Ke||e[37]!==oe||e[38]!==re?(J=n.jsx(Ke,{type:Y,variant:fe,size:Oe,"aria-label":oe,className:re,onClick:Tr,onPointerDown:kr,children:pe}),e[36]=Ke,e[37]=oe,e[38]=re,e[39]=J):J=e[39];let X;e[40]!==Ae||e[41]!==J?(X=n.jsx(Ae,{asChild:Pe,children:J}),e[40]=Ae,e[41]=J,e[42]=X):X=e[42];let Re;e[43]!==g?(Re=E=>{E.stopPropagation(),g()},e[43]=g,e[44]=Re):Re=e[44];let Le;e[45]===Symbol.for("react.memo_cache_sentinel")?(Le=n.jsx(us,{className:"h-4 w-4"}),e[45]=Le):Le=e[45];let ae;e[46]!==y?(ae=y("sectionsEditor.sectionList.duplicateMenuItem"),e[46]=y,e[47]=ae):ae=e[47];let be;e[48]!==Re||e[49]!==ae?(be=n.jsxs(vt,{onClick:Re,children:[Le,ae]}),e[48]=Re,e[49]=ae,e[50]=be):be=e[50];let xe;e[51]!==u||e[52]!==D||e[53]!==y?(xe=u&&n.jsxs(vt,{className:ia,onClick:E=>{E.stopPropagation(),D()},children:[n.jsx(sr,{className:"h-4 w-4"}),y("sectionsEditor.sectionList.addVariantMenuItem")]}),e[51]=u,e[52]=D,e[53]=y,e[54]=xe):xe=e[54];let _e;e[55]!==Ve||e[56]!==k||e[57]!==y?(_e=Ve&&n.jsxs(vt,{className:xr,onClick:E=>{E.stopPropagation(),k()},children:[n.jsx(_n,{className:"h-4 w-4"}),y("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[55]=Ve,e[56]=k,e[57]=y,e[58]=_e):_e=e[58];let I;e[59]!==l||e[60]!==a.isMultivariate||e[61]!==a.isSavedBlock||e[62]!==y?(I=a.isSavedBlock===!0&&!a.isMultivariate&&n.jsxs(vt,{onClick:E=>{E.stopPropagation(),l()},children:[n.jsx(_n,{className:"h-4 w-4"}),y("sectionsEditor.sectionList.detachMenuItem")]}),e[59]=l,e[60]=a.isMultivariate,e[61]=a.isSavedBlock,e[62]=y,e[63]=I):I=e[63];let Z;e[64]!==b?(Z=E=>{E.stopPropagation(),b()},e[64]=b,e[65]=Z):Z=e[65];let ie;e[66]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(ds,{className:"h-4 w-4"}),e[66]=ie):ie=e[66];let ee;e[67]!==y?(ee=y("sectionsEditor.sectionList.deleteMenuItem"),e[67]=y,e[68]=ee):ee=e[68];let ge;e[69]!==Z||e[70]!==ee?(ge=n.jsxs(vt,{className:"text-destructive focus:text-destructive",onClick:Z,children:[ie,ee]}),e[69]=Z,e[70]=ee,e[71]=ge):ge=e[71];let le;e[72]!==be||e[73]!==xe||e[74]!==_e||e[75]!==I||e[76]!==ge?(le=n.jsxs(ps,{align:"end",className:"w-44",children:[be,xe,_e,I,ge]}),e[72]=be,e[73]=xe,e[74]=_e,e[75]=I,e[76]=ge,e[77]=le):le=e[77];let we;return e[78]!==Ee||e[79]!==X||e[80]!==le?(we=n.jsxs(Ee,{children:[X,le]}),e[78]=Ee,e[79]=X,e[80]=le,e[81]=we):we=e[81],n.jsxs("div",{ref:ve,style:se,...Me,...ue,role:"button",tabIndex:0,onClick:v,onKeyDown:F,className:De,children:[$e,!a.isMultivariate&&n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":y(w?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:Ue(xn(r,w)),onClick:E=>{E.stopPropagation(),K()},onPointerDown:Dr,children:n.jsx(or,{className:Ue("h-3.5 w-3.5",w&&"text-yellow-500")})})}),n.jsx(Dt,{side:"bottom",children:y(w?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":me,className:Ue(xn(r,B)),onClick:Ne,onPointerDown:Vr,children:Se})}),C]}),we]})}function kr(d){return d.stopPropagation()}function Tr(d){return d.stopPropagation()}function Vr(d){return d.stopPropagation()}function Dr(d){return d.stopPropagation()}function Nr(){return!1}function Ar(d){const e=st.c(104),{listKey:a,rawSections:c,sections:p,meta:x,selectedIndex:_,onSelect:v,onReorder:b,onDelete:g,onDuplicate:k,onMakeReusable:L,onToggleHidden:K,onToggleLazy:D,onAddVariant:l,onDetach:y,onAddSection:w,canAddSection:B}=d,r=B===void 0?!0:B,T=Nt();let u;e[0]!==p.length?(u=()=>Qn(p.length),e[0]=p.length,e[1]=u):u=e[1];const[U,Me]=R.useState(u),[ue,ve]=R.useState(null),[ne,m]=R.useState(a),[P,Q]=R.useState(p.length),V=R.useRef(!1);ne!==a?(m(a),Q(p.length),Me(Qn(p.length))):P!==p.length&&(Q(p.length),Me(we=>_r(we,p.length)));let se;e[2]===Symbol.for("react.memo_cache_sentinel")?(se={activationConstraint:{distance:8}},e[2]=se):se=e[2];let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={coordinateGetter:xs},e[3]=N):N=e[3];const Ve=gs(en(Ss,se),en(vs,N));let F;e[4]!==U?(F=U.map(Pr),e[4]=U,e[5]=F):F=e[5];const de=F;let De;e[6]===Symbol.for("react.memo_cache_sentinel")?(De=we=>{ve(String(we.active.id))},e[6]=De):De=e[6];const $e=De;let me;e[7]!==de||e[8]!==b?(me=we=>{ve(null);const{active:E,over:ce}=we;if(!ce||E.id===ce.id)return;const te=de.indexOf(String(E.id)),ot=de.indexOf(String(ce.id));te===-1||ot===-1||(Me(Je=>ks(Ot([...Je],te,ot))),V.current=!0,requestAnimationFrame(()=>{V.current=!1}),b?.(te,ot))},e[7]=de,e[8]=b,e[9]=me):me=e[9];const Ne=me;let Se;e[10]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{ve(null)},e[10]=Se):Se=e[10];const ye=Se;let C,Ee,Ae,Pe,Ke,Y,fe,Oe,oe,re,pe,J,X,Re,Le;if(e[11]!==ue||e[12]!==r||e[13]!==U||e[14]!==de||e[15]!==Ne||e[16]!==x||e[17]!==w||e[18]!==l||e[19]!==g||e[20]!==y||e[21]!==k||e[22]!==L||e[23]!==v||e[24]!==K||e[25]!==D||e[26]!==c||e[27]!==p||e[28]!==_||e[29]!==Ve||e[30]!==T){Re=Symbol.for("react.early_return_sentinel");e:{const we=E=>{V.current||v(E)};if(e[46]!==ue||e[47]!==r||e[48]!==U||e[49]!==w||e[50]!==c||e[51]!==p||e[52]!==T){const E=ue?U.find(ce=>ce.id===ue):null;if(Pe=E!=null?p[E.index]:null,Ae=E!=null?c[E.index]:void 0,U.length===0){let ce;e[56]!==T?(ce=T("sectionsEditor.sectionList.noSections"),e[56]=T,e[57]=ce):ce=e[57];let te;e[58]!==ce?(te=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:ce}),e[58]=ce,e[59]=te):te=e[59];const ot=!r;let Je;e[60]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx(jn,{size:14}),e[60]=Je):Je=e[60];let Ce;e[61]!==T?(Ce=T("sectionsEditor.sectionList.addSectionButton"),e[61]=T,e[62]=Ce):Ce=e[62];let Fe;e[63]!==w||e[64]!==ot||e[65]!==Ce?(Fe=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:ot,onClick:w,children:[Je,Ce]}),e[63]=w,e[64]=ot,e[65]=Ce,e[66]=Fe):Fe=e[66];let xt;e[67]!==te||e[68]!==Fe?(xt=n.jsxs("div",{className:"space-y-2",children:[te,Fe]}),e[67]=te,e[68]=Fe,e[69]=xt):xt=e[69],Re=xt;break e}X=Ue(E&&"cursor-grabbing"),e[46]=ue,e[47]=r,e[48]=U,e[49]=w,e[50]=c,e[51]=p,e[52]=T,e[53]=Ae,e[54]=Pe,e[55]=X}else Ae=e[53],Pe=e[54],X=e[55];Ee=_s,Oe=Ve,oe=js,re=$e,pe=Ne,J=ye,C=Es,Y=de,fe=Rs,Le="space-y-1",Ke=U.map(E=>{const ce=p[E.index];return ce?n.jsx(wr,{sortableId:E.id,section:ce,raw:c[E.index],meta:x,selected:_===E.index,onSelect:()=>we(E.index),onDelete:()=>g(E.index),onDuplicate:()=>k(E.index),onMakeReusable:()=>L(E.index),onToggleHidden:()=>K(E.index),onToggleLazy:()=>D(E.index),onAddVariant:()=>l(E.index),onDetach:()=>y(E.index)},E.id):null})}e[11]=ue,e[12]=r,e[13]=U,e[14]=de,e[15]=Ne,e[16]=x,e[17]=w,e[18]=l,e[19]=g,e[20]=y,e[21]=k,e[22]=L,e[23]=v,e[24]=K,e[25]=D,e[26]=c,e[27]=p,e[28]=_,e[29]=Ve,e[30]=T,e[31]=C,e[32]=Ee,e[33]=Ae,e[34]=Pe,e[35]=Ke,e[36]=Y,e[37]=fe,e[38]=Oe,e[39]=oe,e[40]=re,e[41]=pe,e[42]=J,e[43]=X,e[44]=Re,e[45]=Le}else C=e[31],Ee=e[32],Ae=e[33],Pe=e[34],Ke=e[35],Y=e[36],fe=e[37],Oe=e[38],oe=e[39],re=e[40],pe=e[41],J=e[42],X=e[43],Re=e[44],Le=e[45];if(Re!==Symbol.for("react.early_return_sentinel"))return Re;let ae;e[70]!==Ke||e[71]!==Le?(ae=n.jsx("div",{className:Le,children:Ke}),e[70]=Ke,e[71]=Le,e[72]=ae):ae=e[72];let be;e[73]!==C||e[74]!==Y||e[75]!==fe||e[76]!==ae?(be=n.jsx(C,{items:Y,strategy:fe,children:ae}),e[73]=C,e[74]=Y,e[75]=fe,e[76]=ae,e[77]=be):be=e[77];let xe;e[78]!==Ae||e[79]!==Pe||e[80]!==x?(xe=Pe?n.jsx("div",{className:Ue("cursor-grabbing shadow-lg ring-1 ring-border/60",Vs(Pe,!1)),children:n.jsx(Ts,{section:Pe,raw:Ae,meta:x})}):null,e[78]=Ae,e[79]=Pe,e[80]=x,e[81]=xe):xe=e[81];let _e;e[82]!==xe?(_e=ns.createPortal(n.jsx(hs,{dropAnimation:rs,children:xe}),document.body),e[82]=xe,e[83]=_e):_e=e[83];let I;e[84]!==Ee||e[85]!==Oe||e[86]!==oe||e[87]!==re||e[88]!==pe||e[89]!==J||e[90]!==be||e[91]!==_e?(I=n.jsxs(Ee,{sensors:Oe,collisionDetection:oe,onDragStart:re,onDragEnd:pe,onDragCancel:J,children:[be,_e]}),e[84]=Ee,e[85]=Oe,e[86]=oe,e[87]=re,e[88]=pe,e[89]=J,e[90]=be,e[91]=_e,e[92]=I):I=e[92];const Z=!r;let ie;e[93]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(jn,{size:14}),e[93]=ie):ie=e[93];let ee;e[94]!==T?(ee=T("sectionsEditor.sectionList.addSectionButton"),e[94]=T,e[95]=ee):ee=e[95];let ge;e[96]!==w||e[97]!==Z||e[98]!==ee?(ge=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Z,onClick:w,children:[ie,ee]}),e[96]=w,e[97]=Z,e[98]=ee,e[99]=ge):ge=e[99];let le;return e[100]!==X||e[101]!==I||e[102]!==ge?(le=n.jsxs("div",{className:X,children:[I,ge]}),e[100]=X,e[101]=I,e[102]=ge,e[103]=le):le=e[103],le}function Pr(d){return d.id}function Xn(d){const e=st.c(57),{open:a,initialName:c,autoLabel:p,isPending:x,onSubmit:_,onOpenChange:v}=d,b=x===void 0?!1:x,g=Nt(),[k,L]=R.useState(c),[K,D]=R.useState(a);a!==K&&(D(a),a&&L(c));let l;e[0]!==b||e[1]!==v?(l=$e=>{!$e&&!b&&v(!1)},e[0]=b,e[1]=v,e[2]=l):l=e[2];const y=l;let w;e[3]!==b||e[4]!==k||e[5]!==_?(w=async $e=>{$e.preventDefault(),!b&&await _(k.trim())},e[3]=b,e[4]=k,e[5]=_,e[6]=w):w=e[6];const B=w;let r;e[7]!==g?(r=g("sectionsEditor.variantRenameDialog.title"),e[7]=g,e[8]=r):r=e[8];let T;e[9]!==r?(T=n.jsx(Jo,{children:r}),e[9]=r,e[10]=T):T=e[10];let u;e[11]!==p||e[12]!==g?(u=g("sectionsEditor.variantRenameDialog.description",{fallback:p||g("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=p,e[12]=g,e[13]=u):u=e[13];let U;e[14]!==u?(U=n.jsx(Qo,{children:u}),e[14]=u,e[15]=U):U=e[15];let Me;e[16]!==T||e[17]!==U?(Me=n.jsxs(Xo,{children:[T,U]}),e[16]=T,e[17]=U,e[18]=Me):Me=e[18];let ue;e[19]!==g?(ue=g("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=g,e[20]=ue):ue=e[20];let ve;e[21]!==ue?(ve=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:ue}),e[21]=ue,e[22]=ve):ve=e[22];let ne;e[23]===Symbol.for("react.memo_cache_sentinel")?(ne=$e=>L($e.target.value),e[23]=ne):ne=e[23];let m;e[24]!==p||e[25]!==b||e[26]!==k?(m=n.jsx(na,{id:"variant-rename-name",value:k,onChange:ne,placeholder:p,autoFocus:!0,disabled:b}),e[24]=p,e[25]=b,e[26]=k,e[27]=m):m=e[27];let P;e[28]!==ve||e[29]!==m?(P=n.jsxs("div",{className:"space-y-1.5 py-4",children:[ve,m]}),e[28]=ve,e[29]=m,e[30]=P):P=e[30];let Q;e[31]!==v?(Q=()=>v(!1),e[31]=v,e[32]=Q):Q=e[32];let V;e[33]!==g?(V=g("sectionsEditor.variantRenameDialog.cancel"),e[33]=g,e[34]=V):V=e[34];let se;e[35]!==b||e[36]!==Q||e[37]!==V?(se=n.jsx(tt,{type:"button",variant:"outline",onClick:Q,disabled:b,children:V}),e[35]=b,e[36]=Q,e[37]=V,e[38]=se):se=e[38];let N;e[39]!==b||e[40]!==g?(N=b?n.jsxs(n.Fragment,{children:[n.jsx(ss,{className:"size-3.5"}),g("sectionsEditor.variantRenameDialog.saving")]}):g("sectionsEditor.variantRenameDialog.save"),e[39]=b,e[40]=g,e[41]=N):N=e[41];let Ve;e[42]!==b||e[43]!==N?(Ve=n.jsx(tt,{type:"submit",disabled:b,children:N}),e[42]=b,e[43]=N,e[44]=Ve):Ve=e[44];let F;e[45]!==se||e[46]!==Ve?(F=n.jsxs(Zo,{children:[se,Ve]}),e[45]=se,e[46]=Ve,e[47]=F):F=e[47];let de;e[48]!==B||e[49]!==P||e[50]!==F||e[51]!==Me?(de=n.jsx(ea,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:B,children:[Me,P,F]})}),e[48]=B,e[49]=P,e[50]=F,e[51]=Me,e[52]=de):de=e[52];let De;return e[53]!==y||e[54]!==a||e[55]!==de?(De=n.jsx(ta,{open:a,onOpenChange:y,children:de}),e[53]=y,e[54]=a,e[55]=de,e[56]=De):De=e[56],De}function Ds(d){const e=st.c(5),{rule:a,matchers:c}=d,p=a?.__resolveType??"";let x;if(e[0]!==c||e[1]!==p){const g=c.find(k=>k.resolveType===p)?.iconName??la(p);x=Ho(g),e[0]=c,e[1]=p,e[2]=x}else x=e[2];const _=x;if(!_)return null;let v;return e[3]!==_?(v=n.jsx(_,{size:14,className:"shrink-0"}),e[3]=_,e[4]=v):v=e[4],v}function Zn(d){return d.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function es(d){return d.map((e,a)=>({id:crypto.randomUUID(),index:a,variant:e}))}function Cr(d,e){const a=new Map;for(const c of d){const p=a.get(c.variant.label);p?p.push(c):a.set(c.variant.label,[c])}return e.map((c,p)=>({id:a.get(c.label)?.shift()?.id??crypto.randomUUID(),index:p,variant:c}))}function Mr(d){return d.map((e,a)=>({...e,index:a}))}function Ns(d){const e=st.c(17),{label:a,effectiveRule:c,matchers:p,canDelete:x,dragging:_,onRename:v,onDuplicate:b,onDelete:g}=d,k=Nt();let L;e[0]!==c||e[1]!==p?(L=n.jsx(Ds,{rule:c,matchers:p}),e[0]=c,e[1]=p,e[2]=L):L=e[2];let K;e[3]!==a?(K=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:a}),e[3]=a,e[4]=K):K=e[4];let D;e[5]!==x||e[6]!==_||e[7]!==a||e[8]!==g||e[9]!==b||e[10]!==v||e[11]!==k?(D=!_&&n.jsxs(fs,{children:[n.jsx(ms,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":k("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:a}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Lr,onPointerDown:Kr,children:n.jsx(os,{size:14})})}),n.jsxs(ps,{align:"end",className:"w-36",children:[n.jsxs(vt,{onClick:y=>{y.stopPropagation(),v?.()},children:[n.jsx(ur,{size:14}),k("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(vt,{onClick:y=>{y.stopPropagation(),b?.()},children:[n.jsx(us,{size:14}),k("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(ar,{}),n.jsxs(vt,{variant:"destructive",disabled:!x,onClick:y=>{y.stopPropagation(),g?.()},children:[n.jsx(ds,{size:14}),k("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=x,e[6]=_,e[7]=a,e[8]=g,e[9]=b,e[10]=v,e[11]=k,e[12]=D):D=e[12];let l;return e[13]!==L||e[14]!==K||e[15]!==D?(l=n.jsxs(n.Fragment,{children:[L,K,D]}),e[13]=L,e[14]=K,e[15]=D,e[16]=l):l=e[16],l}function Kr(d){return d.stopPropagation()}function Lr(d){return d.stopPropagation()}function Br(d){const e=st.c(33),{entry:a,isActive:c,canDelete:p,decofile:x,meta:_,matchers:v,onSelect:b,onRename:g,onDuplicate:k,onDelete:L}=d;let K;e[0]!==a.id?(K={id:a.id,animateLayoutChanges:Ir},e[0]=a.id,e[1]=K):K=e[1];const{attributes:D,listeners:l,setNodeRef:y,transform:w,isDragging:B}=ys(K);let r;e[2]!==w?(r=bs.Transform.toString(w?{...w,x:0}:null),e[2]=w,e[3]=r):r=e[3];const T=B?0:void 0;let u;e[4]!==r||e[5]!==T?(u={transform:r,opacity:T},e[4]=r,e[5]=T,e[6]=u):u=e[6];const U=u,Me=_??void 0;let ue;e[7]!==x||e[8]!==a.variant.rule||e[9]!==Me?(ue=It(a.variant.rule,x,Me),e[7]=x,e[8]=a.variant.rule,e[9]=Me,e[10]=ue):ue=e[10];const ve=ue;let ne;e[11]!==b?(ne=N=>{N.target===N.currentTarget&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),b())},e[11]=b,e[12]=ne):ne=e[12];const m=B?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",P=c?ls:is;let Q;e[13]!==m||e[14]!==P?(Q=Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",m,P),e[13]=m,e[14]=P,e[15]=Q):Q=e[15];let V;e[16]!==p||e[17]!==ve||e[18]!==a.variant.label||e[19]!==v||e[20]!==L||e[21]!==k||e[22]!==g?(V=n.jsx(Ns,{label:a.variant.label,effectiveRule:ve,matchers:v,canDelete:p,onRename:g,onDuplicate:k,onDelete:L}),e[16]=p,e[17]=ve,e[18]=a.variant.label,e[19]=v,e[20]=L,e[21]=k,e[22]=g,e[23]=V):V=e[23];let se;return e[24]!==D||e[25]!==l||e[26]!==b||e[27]!==y||e[28]!==U||e[29]!==Q||e[30]!==V||e[31]!==ne?(se=n.jsx("div",{ref:y,style:U,...D,...l,onClick:b,onKeyDown:ne,className:Q,children:V}),e[24]=D,e[25]=l,e[26]=b,e[27]=y,e[28]=U,e[29]=Q,e[30]=V,e[31]=ne,e[32]=se):se=e[32],se}function Ir(){return!1}function Or(d){const e=st.c(9),{variant:a,decofile:c,meta:p,matchers:x}=d,_=p??void 0;let v;e[0]!==c||e[1]!==_||e[2]!==a.rule?(v=It(a.rule,c,_),e[0]=c,e[1]=_,e[2]=a.rule,e[3]=v):v=e[3];const b=v;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=Ue("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",ls),e[4]=g):g=e[4];let k;return e[5]!==b||e[6]!==x||e[7]!==a.label?(k=n.jsx("div",{className:g,children:n.jsx(Ns,{label:a.label,effectiveRule:b,matchers:x,canDelete:!1,dragging:!0})}),e[5]=b,e[6]=x,e[7]=a.label,e[8]=k):k=e[8],k}function Fr(d){const e=st.c(91),{listKey:a,variants:c,activeIndex:p,decofile:x,meta:_,matchers:v,onSelect:b,onReorder:g,onRename:k,onDuplicate:L,onDelete:K,onAdd:D}=d,l=Nt();let y;e[0]!==c?(y=()=>es(c),e[0]=c,e[1]=y):y=e[1];const[w,B]=R.useState(y),[r,T]=R.useState(null),[u,U]=R.useState(a),[Me,ue]=R.useState(c.length);let ve;e[2]!==c?(ve=()=>Zn(c),e[2]=c,e[3]=ve):ve=e[3];const[ne,m]=R.useState(ve),P=R.useRef(!1),Q=Zn(c);u!==a?(U(a),ue(c.length),m(Q),B(es(c))):(Me!==c.length||ne!==Q)&&(ue(c.length),m(Q),B(I=>Cr(I,c)));let V;e[4]===Symbol.for("react.memo_cache_sentinel")?(V={activationConstraint:{distance:8}},e[4]=V):V=e[4];let se;e[5]===Symbol.for("react.memo_cache_sentinel")?(se={coordinateGetter:xs},e[5]=se):se=e[5];const N=gs(en(Ss,V),en(vs,se));let Ve;e[6]!==w?(Ve=w.map($r),e[6]=w,e[7]=Ve):Ve=e[7];const F=Ve,de=c.length>1;let De;e[8]!==w?(De=I=>{const Z=String(I.active.id);T(w.find(ie=>ie.id===Z)??null)},e[8]=w,e[9]=De):De=e[9];const $e=De;let me;e[10]!==F||e[11]!==g?(me=I=>{T(null);const{active:Z,over:ie}=I;if(!ie||Z.id===ie.id)return;const ee=F.indexOf(String(Z.id)),ge=F.indexOf(String(ie.id));ee===-1||ge===-1||(B(le=>Mr(Ot([...le],ee,ge))),P.current=!0,requestAnimationFrame(()=>{P.current=!1}),g(ee,ge))},e[10]=F,e[11]=g,e[12]=me):me=e[12];const Ne=me;let Se;e[13]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{T(null)},e[13]=Se):Se=e[13];const ye=Se;let C,Ee,Ae,Pe,Ke,Y,fe,Oe,oe,re,pe,J,X;if(e[14]!==p||e[15]!==de||e[16]!==x||e[17]!==w||e[18]!==F||e[19]!==Ne||e[20]!==$e||e[21]!==v||e[22]!==_||e[23]!==D||e[24]!==K||e[25]!==L||e[26]!==k||e[27]!==b||e[28]!==N||e[29]!==l){const I=te=>{P.current||b(te)};pe="space-y-1 border-b p-2";let Z;e[43]!==l?(Z=l("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=l,e[44]=Z):Z=e[44];let ie;e[45]!==Z?(ie=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:Z}),e[45]=Z,e[46]=ie):ie=e[46];let ee;e[47]!==l?(ee=l("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=l,e[48]=ee):ee=e[48];let ge;e[49]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(jn,{size:14}),e[49]=ge):ge=e[49];let le;e[50]!==D||e[51]!==ee?(le=n.jsx(Vt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":ee,className:"size-6",onClick:D,children:ge})}),e[50]=D,e[51]=ee,e[52]=le):le=e[52];let we;e[53]!==l?(we=l("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=l,e[54]=we):we=e[54];let E;e[55]!==we?(E=n.jsx(Dt,{children:we}),e[55]=we,e[56]=E):E=e[56];let ce;e[57]!==le||e[58]!==E?(ce=n.jsxs(Tt,{children:[le,E]}),e[57]=le,e[58]=E,e[59]=ce):ce=e[59],e[60]!==ie||e[61]!==ce?(J=n.jsxs("div",{className:"flex items-center justify-between",children:[ie,ce]}),e[60]=ie,e[61]=ce,e[62]=J):J=e[62],Ee=_s,Y=N,fe=js,Oe=$e,oe=Ne,re=ye,C=Es,Pe=F,Ke=Rs,X="space-y-0.5",Ae=w.map(te=>n.jsx(Br,{entry:te,isActive:te.index===p,canDelete:de,decofile:x,meta:_,matchers:v,onSelect:()=>I(te.index),onRename:()=>k(te.index),onDuplicate:()=>L(te.index),onDelete:()=>K(te.index)},te.id)),e[14]=p,e[15]=de,e[16]=x,e[17]=w,e[18]=F,e[19]=Ne,e[20]=$e,e[21]=v,e[22]=_,e[23]=D,e[24]=K,e[25]=L,e[26]=k,e[27]=b,e[28]=N,e[29]=l,e[30]=C,e[31]=Ee,e[32]=Ae,e[33]=Pe,e[34]=Ke,e[35]=Y,e[36]=fe,e[37]=Oe,e[38]=oe,e[39]=re,e[40]=pe,e[41]=J,e[42]=X}else C=e[30],Ee=e[31],Ae=e[32],Pe=e[33],Ke=e[34],Y=e[35],fe=e[36],Oe=e[37],oe=e[38],re=e[39],pe=e[40],J=e[41],X=e[42];let Re;e[63]!==Ae||e[64]!==X?(Re=n.jsx("div",{className:X,children:Ae}),e[63]=Ae,e[64]=X,e[65]=Re):Re=e[65];let Le;e[66]!==C||e[67]!==Pe||e[68]!==Ke||e[69]!==Re?(Le=n.jsx(C,{items:Pe,strategy:Ke,children:Re}),e[66]=C,e[67]=Pe,e[68]=Ke,e[69]=Re,e[70]=Le):Le=e[70];let ae;e[71]!==r||e[72]!==x||e[73]!==v||e[74]!==_?(ae=r?n.jsx(Or,{variant:r.variant,decofile:x,meta:_,matchers:v}):null,e[71]=r,e[72]=x,e[73]=v,e[74]=_,e[75]=ae):ae=e[75];let be;e[76]!==ae?(be=ns.createPortal(n.jsx(hs,{dropAnimation:rs,children:ae}),document.body),e[76]=ae,e[77]=be):be=e[77];let xe;e[78]!==Ee||e[79]!==Y||e[80]!==fe||e[81]!==Oe||e[82]!==oe||e[83]!==re||e[84]!==Le||e[85]!==be?(xe=n.jsxs(Ee,{sensors:Y,collisionDetection:fe,onDragStart:Oe,onDragEnd:oe,onDragCancel:re,children:[Le,be]}),e[78]=Ee,e[79]=Y,e[80]=fe,e[81]=Oe,e[82]=oe,e[83]=re,e[84]=Le,e[85]=be,e[86]=xe):xe=e[86];let _e;return e[87]!==pe||e[88]!==J||e[89]!==xe?(_e=n.jsxs("div",{className:pe,children:[J,xe]}),e[87]=pe,e[88]=J,e[89]=xe,e[90]=_e):_e=e[90],_e}function $r(d){return d.id}function ts(d){const e=st.c(21),{currentRt:a,currentLabel:c,currentGlobalKey:p,matchers:x,globals:_,onSelect:v,onSelectGlobal:b,schema:g,formValue:k,onChange:L,formKey:K,formWrapperClassName:D,meta:l,decofile:y,onSaveReferencedBlock:w,sandbox:B}=d;let r;e[0]!==p||e[1]!==c||e[2]!==a||e[3]!==_||e[4]!==x||e[5]!==v||e[6]!==b?(r=n.jsx(ca,{currentRt:a,currentLabel:c,currentGlobalKey:p,matchers:x,globals:_,onSelect:v,onSelectGlobal:b}),e[0]=p,e[1]=c,e[2]=a,e[3]=_,e[4]=x,e[5]=v,e[6]=b,e[7]=r):r=e[7];let T;e[8]!==y||e[9]!==K||e[10]!==k||e[11]!==D||e[12]!==l||e[13]!==L||e[14]!==w||e[15]!==B||e[16]!==g?(T=g&&k&&n.jsx("div",{className:D,children:n.jsx(ua,{schema:g,value:k,onChange:L,meta:l,decofile:y,onSaveReferencedBlock:w,sandbox:B},K)}),e[8]=y,e[9]=K,e[10]=k,e[11]=D,e[12]=l,e[13]=L,e[14]=w,e[15]=B,e[16]=g,e[17]=T):T=e[17];let u;return e[18]!==r||e[19]!==T?(u=n.jsxs(n.Fragment,{children:[r,T]}),e[18]=r,e[19]=T,e[20]=u):u=e[20],u}function Dc({orgSlug:d,virtualMcpId:e,branch:a,previewReady:c=!0,previewUrl:p,currentPath:x,activePageBlockKey:_=null,activeGlobalBlockKey:v=null,externalSelection:b,onSaved:g,initialEditSeo:k=!1,onExitSeo:L,onViewJsonFile:K,onVariantPreviewOverride:D}){const l=Nt(),y=Oo(),w=y?.taskId??null,B=c?{orgSlug:d,virtualMcpId:e,branch:a,threadId:w,previewUrl:p}:null,{data:r,isLoading:T}=da(B),{data:u,isLoading:U}=ma(B),Me=y?.virtualMcpId,ve=Fo(Me===e?e:null)?.metadata?.siteSlug??null,ne=dr({virtualMcpId:e,sandboxUrl:p}),[m,P]=R.useState(null),[Q,V]=R.useState(null),[se,N]=R.useState(null),[Ve,F]=R.useState(0),[de,De]=R.useState(void 0),[$e,me]=R.useState(null),[Ne,Se]=R.useState(null),[ye,C]=R.useState([]),Ee=R.useRef(null),[Ae,Pe]=R.useState(ye.length);Ae!==ye.length&&(Pe(ye.length),requestAnimationFrame(()=>{Ee.current&&(Ee.current.scrollTop=0)}));const[Ke,Y]=R.useState(0),[fe,Oe]=R.useState(null),[oe,re]=R.useState(null),[pe,J]=R.useState(null),[X,Re]=R.useState(!0),[Le,ae]=R.useState(!1),[be,xe]=R.useState(!1),_e=R.useRef(null),[I,Z]=R.useState(k),[ie,ee]=R.useState(k);k&&!ie&&(ee(!0),Z(!0),P(null),V(null),N(null),C([])),!k&&ie&&ee(!1);const[ge,le]=R.useState(null),[we,E]=R.useState(void 0),[ce,te]=R.useState([]),[ot,Je]=R.useState(0),[Ce,Fe]=R.useState(0),[xt,qe]=R.useState(null),[_t,We]=R.useState(null),[En,Rn]=R.useState(null),As=Bo(),Ps=`${d}/${e}/${a}`,tn=fa({orgSlug:d,virtualMcpId:e,branch:a}),[Cs,Ms]=R.useState(x),[Ks,Ls]=R.useState(_),[Bs,Is]=R.useState(v);(Cs!==x||Ks!==_||Bs!==v)&&(queueMicrotask(()=>tn.flush()),Ms(x),Ls(_),Is(v),P(null),V(null),N(null),F(0),me(null),Se(null),Fe(0),qe(null),We(null),C([]),Y(t=>t+1),Z(!1),le(null),E(void 0),te([]),Je(t=>t+1));const ke=pa({orgSlug:d,virtualMcpId:e,branch:a}),Ft=Ka((t,s)=>{ke.mutate({blockKey:t,data:s},{onSuccess:()=>g?.(),onError:o=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})}),nn=Wa({orgSlug:d,virtualMcpId:e,branch:a}),[At,$t]=R.useState(!1),ze=R.useRef(null),at=R.useRef(null),rt=R.useRef(null),sn=R.useRef({}),Ze=R.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!c||T||U)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(ss,{className:"size-5 text-muted-foreground"})});if(!r||!u)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:l("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Os=Qa(r),Te=!!v,Ye=Te?null:Xa(Os,x,_),j=Te?v:Ye?.key??null,on=Te&&v?r[v]:void 0,wn=Te&&v&&on?Za(v,on):Te&&v?v:"",zt=!Te&&j&&r[j]?r[j]:null,an=I&&r&&u&&j&&Ye?Fn(r,{kind:"page",pageKey:j,pageName:String(Ye.name??""),path:String(Ye.path??"")},u):null,Fs=I?zt?.seo:void 0,rn=we!==void 0?we:Fs,$s=I?ga(rn):void 0,zs=an?.seoTypeOptions??[],Hs=I&&u?ha(u):"",kn=ge??$s??{},ln=I&&an?ir(kn,an):null,Us=I&&ln&&va(rn)?Zt(ln,u):null,Gs=I?Sa(r,u)?.seoData:void 0,Ge=Te?[{label:"Default",sections:[{__resolveType:v}]}]:ya(zt?.sections,r??{}),Pt=Ge.length>1,Be=Math.min(Ve,Ge.length-1),ut=Ge[Be],H=ut?.sections??[],He=Jt(H,r),cn=!Te&&ba(zt?.sections);if(Te&&v&&En!==v){Rn(v);const t=H[0],s=He[0];if(t&&s){P(0),Fe(0),C([]);const o=yt(t,s,r);o&&(V(o.data),N(o.resolveType),We(null),qe(null))}}!Te&&En!==null&&Rn(null),Ze.current={rawSections:H,parsedSections:He,decofile:r??{},activePageKey:j,pageVariants:Ge,variantIndex:Be,sectionVariantIndex:Ce,selectedSectionIndex:m};const qs=()=>({multivariate:cn,index:Be,variants:Ge.map(t=>({rule:t.rule}))}),un=(t,s)=>{if(!D)return;if(!j||!cn||t.length<=1){D(null);return}const o=Jn(j,{multivariate:!0,index:s,variants:t},r,u);D(o.length>0?o:null)},dn=D&&j&&cn&&Pt&&!T&&!U?j:null,[Ws,Ys]=R.useState(null);if(dn!==Ws&&(Ys(dn),dn)){const t=Ge.map(o=>({rule:o.rule})),s=Be;queueMicrotask(()=>un(t,s))}const jt=(t,s,o)=>{if(!D)return;if(!j){D(null);return}const i=qs(),f=Jn(j,i,r,u);if(!t||s<0){D(f.length>0?f:null);return}const S=fr({pageKey:j,page:i,sectionIndex:s,sectionLazy:He[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:o,decofile:r,meta:u}),h=[...f,...S];D(h.length>0?h:null)},dt=(t,s,o,i=m??-1,f=!1)=>{const S=nt(t,s);if(!S){V(null),N(null),We(null),qe(null),f&&jt(null,i,o);return}const A=$n(S,ht)[o];if(!A){V(null),N(null),We(null),qe(null),f&&jt(null,i,o);return}const W=Ta(A.value,r);V(W?.data??null),N(W?.resolveType??null);const{resolveType:M,formValue:O}=Kt(A.rule,r,u??void 0);We(M),qe(O),f&&jt(S,i,o)},Ct=b?.index;if(b!==void 0&&(b?.seq??null)!==de&&(De(b?.seq??null),typeof Ct=="number")){const t=H[Ct],s=He[Ct];if(t&&s)if(P(Ct),Fe(0),C([]),Y(o=>o+1),s.isMultivariate)dt(t,s,0,Ct);else{const o=yt(t,s,r);o?(V(o.data),N(o.resolveType)):(V(null),N(null)),We(null),qe(null)}}const Ht={orgSlug:d,virtualMcpId:e,branch:a,threadId:w,previewUrl:p??void 0,siteSlug:ve},mn=se&&u?Zt(se,u):null,Qe=(t,s)=>{if(!j)return;ze.current&&(clearTimeout(ze.current),ze.current=null),rt.current&&(clearTimeout(rt.current),rt.current=null),at.current&&(clearTimeout(at.current),at.current=null);const o=Bt(r,j,t,Be,Ge);ke.mutate({blockKey:j,data:o},{onSuccess:()=>s?.onSuccess?.()??g?.(),onError:i=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:i.message}))})},Et=()=>{P(null),V(null),N(null),Fe(0),qe(null),We(null),C([]),Y(t=>t+1)},Js=(t,s)=>{ze.current&&clearTimeout(ze.current);const o=Ze.current.sectionVariantIndex;ze.current=setTimeout(()=>{const{rawSections:i,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current,M=i[s];if(!M)return;const O=f[s];if(!O)return;if(O.isSavedBlock){const z=$a(M,O);if(!z)return;ke.mutate({blockKey:z,data:t},{onSuccess:()=>g?.(),onError:G=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))});return}if(!h)return;const $={...S[h]},je=[...i];if(O.isMultivariate){const z=nt(M,O);if(!z||!h)return;const G=za(z,o,t);je[s]=bt(M,O,G)}else if(O.isHidden){const z=cs(M.__resolveType),G=z?{...M.section}:{...M},Ie=Array.isArray(G.variants)?[...G.variants]:[];Ie[0]&&(Ie[0]={...Ie[0],value:t}),G.variants=Ie,z?je[s]={...M,section:G}:je[s]=G}else O.isLazy?je[s]={...M,section:t}:je[s]=t;if(A.length>1){const z=$.sections,G=[...z?.variants??[]];G[W]&&(G[W]={...G[W],value:je}),$.sections={...z,variants:G}}else $.sections=je;ke.mutate({blockKey:h,data:$},{onSuccess:()=>g?.(),onError:z=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:z.message}))})},bn)},Qs=t=>{P(t),Fe(0),C([]),Y(f=>f+1);const s=H[t],o=He[t];if(!s||!o)return;if(o.isMultivariate){dt(s,o,0,t);return}const i=yt(s,o,r);if(!i){V(null),N(null),We(null),qe(null),jt(null,t,0);return}V(i.data),N(i.resolveType),We(null),qe(null),jt(null,t,0)},Tn=t=>{const s=t;V(s),m!==null&&Js(s,m)},fn=t=>{if(!j||!r||!u||!Ye)return;const s={kind:"page",pageKey:j,pageName:String(Ye.name??""),path:String(Ye.path??"")},o=Fn(r,s,u);o&&tn.save(j,()=>{const i=As.getQueryData(Io.decofile(Ps))?.[j];if(!i||typeof i!="object"||i===null||Array.isArray(i))return null;const f={...i,...sn.current};return sn.current={},t?.raw!==void 0?{...f,seo:t.raw}:t?.inner!==void 0?cr(s,o,f,t.inner):f})},Xs=(t,s)=>{j&&(sn.current[t]=s,fn())},Zs=(t,s)=>{if(!j)return;const o=Ot([...H],t,s);m!==null&&(m===t?P(s):t<m&&s>=m?P(m-1):t>m&&s<=m&&P(m+1)),Qe(o)},eo=t=>{if(!j)return;const s=H.filter((o,i)=>i!==t);m===t?Et():m!==null&&m>t&&P(m-1),Qe(s)},to=t=>{if(!j)return;const s=H[t];if(!s)return;const o=[...H];o.splice(t+1,0,Oa(s)),m!==null&&m>t&&P(m+1),Qe(o)},no=t=>{if(!j)return;const s=H[t],o=He[t];if(!s||!o)return;const i=o.isHidden?Ba(s):Ia(s);if(!i)return;const f=[...H];f[t]=i,m===t&&Et(),Qe(f)},so=t=>{if(!j)return;const s=H[t],o=He[t];if(!s||!o||o.isMultivariate)return;const i=La(s);if(!i)return;const f=[...H];f[t]=i,m===t&&Et(),Qe(f)},oo=t=>{if(!j)return;const s=H[t],o=He[t];if(!s||!o?.isSavedBlock)return;const i=yt(s,o,r);if(!i?.data)return;const{name:f,...S}=i.data,h=[...H];o.isLazy?h[t]={...s,section:S}:h[t]=S,m===t&&Et(),Qe(h)},ao=t=>{if(!j)return;const s=[...H,{__resolveType:t.resolveType}],o=s.length-1;Qe(s,{onSuccess:()=>{ae(!1),P(o),Fe(0),C([]),Y(h=>h+1);const i=s[o],f=Jt(s,r)[o];if(!i||!f)return;if(f.isMultivariate){dt(i,f,0);return}const S=yt(i,f,r);if(!S){V(null),N(null),We(null),qe(null);return}V(S.data),N(S.resolveType),We(null),qe(null)}})},Vn=t=>{_e.current=t.append,ae(!0)},ro=t=>{const s=_e.current;if(!s){ao(t);return}s({__resolveType:t.resolveType}),ae(!1),_e.current=null},io=t=>{if(m===null)return;const s=H[m],o=He[m];!s||!o?.isMultivariate||(Fe(t),C([]),Y(i=>i+1),dt(s,o,t,m,!0))},lo=t=>{if(m===null||!j)return;const s=H[m],o=He[m];if(!s||!o?.isMultivariate)return;const i=nt(s,o);if(!i)return;const f=Ca(i,t);if(!f){q.error(l("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const S=[...H];S[m]=bt(s,o,f);const h=f.variants;let A=Ce;t===Ce?A=Math.min(t,h.length-1):t<Ce&&(A=Ce-1),Fe(A),C([]),Y(W=>W+1),dt(S[m],o,A),Qe(S)},co=t=>{if(m===null||!j)return;const s=H[m],o=He[m];if(!s||!o?.isMultivariate)return;const i=nt(s,o);if(!i)return;const f=Ma(i,t),S=[...H];S[m]=bt(s,o,f);const h=t+1;Fe(h),C([]),Y(A=>A+1),dt(S[m],o,h),Qe(S)},uo=(t,s)=>{if(m===null||!j||t===s)return;const o=H[m],i=He[m];if(!o||!i?.isMultivariate)return;const f=nt(o,i);if(!f)return;const S=Aa(f,t,s),h=[...H];h[m]=bt(o,i,S);let A=Ce;Ce===t?A=s:t<Ce&&s>=Ce?A=Ce-1:t>Ce&&s<=Ce&&(A=Ce+1),Fe(A),dt(h[m],i,A),Qe(h)},pn=t=>{const s=t??m;if(s===null||!j)return;const o=H[s],i=He[s];if(!o||!i)return;const f=Va(o,i);if(!f){q.error(l("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const S=[...H];S[s]=f.section;const h=Jt(S,r)[s];if(!h?.isMultivariate){q.error(l("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}P(s),Fe(f.newVariantIndex),C([]),Y(A=>A+1),dt(f.section,h,f.newVariantIndex,s),Qe(S)},mo=()=>{if(m===null||!j)return;const t=H[m],s=He[m];if(!t||!s?.isMultivariate)return;const o=nt(t,s);if(!o)return;const i=Pa(t,s,o);if(!i){q.error(l("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const f=[...H];f[m]=i;const S=Jt(f,r)[m];if(!S)return;Fe(0),We(null),qe(null),C([]),Y(A=>A+1);const h=yt(i,S,r);h?(V(h.data),N(h.resolveType)):(V(null),N(null)),jt(null,m,0),Qe(f)},fo=async t=>{if(fe===null||!j)return;const s=yn(t,r);if(s){q.error(s);return}const o=H[fe],i=He[fe];if(!o||!i)return;const f=yt(o,i,r);if(!f){q.error(l("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const S={...f.data,name:t};try{await ke.mutateAsync({blockKey:t,data:S});const h=[...H];h[fe]={__resolveType:t},await ke.mutateAsync({blockKey:j,data:Bt(r,j,h,Be,Ge)}),m===fe&&Et(),Oe(null),q.success(l("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),g?.()}catch(h){q.error(h instanceof Error?h.message:l("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},Dn=ut?.rule;if(Pt&&m===null&&Ne===null&&Dn){const{resolveType:t,formValue:s}=Kt(Dn,r??{},u??void 0);Se(t),me(s)}const Ut=u?xa(u):[],Nn=u&&r?_a(u,r):[],po=!Te&&!!(ne&&u&&r),go=Ne&&u?Zt(Ne,u):null,Rt=()=>{at.current&&(clearTimeout(at.current),at.current=null),rt.current&&(clearTimeout(rt.current),rt.current=null)},Mt=async(t,s)=>{if(!(Fa(s,t,u)>0))try{await nn.mutateAsync({blockKey:t})}catch(o){q.error(o instanceof Error?o.message:l("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},An=t=>{at.current&&clearTimeout(at.current),at.current=setTimeout(()=>{const{activePageKey:s,decofile:o,variantIndex:i}=Ze.current;if(!s)return;const f={...o[s]},S={...f.sections},h=[...S.variants??[]],A=h[i],W=A?.rule;if(wt(W,o,u)){const M=W?.__resolveType??"",O=o[M],$=typeof O?.name=="string"?O.name:M,{__resolveType:je,...z}=t;ke.mutate({blockKey:M,data:kt(je??"",z,$)},{onSuccess:()=>g?.(),onError:G=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))});return}A&&(h[i]={...A,rule:t}),f.sections={...S,variants:h},ke.mutate({blockKey:s,data:f},{onSuccess:()=>g?.(),onError:M=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},bn)},ho=t=>{Se(t);const s=t?Gn(t,u):{__resolveType:Yn};me(t?s:{}),An(s)},vo=t=>{const s=t;me(s);const o=Ne?{__resolveType:Ne,...s}:{...s};An(o)},So=async t=>{Rt();const{activePageKey:s,decofile:o,variantIndex:i}=Ze.current;if(!s)return;const f=o[s],S=f?.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const A=[...h.variants],W=A[i];if(!W)return;const M=Lt(W.rule,o,u),O=Xt(t);A[i]={...W,rule:O};const $={...o,[s]:{...f,sections:{...h,variants:A}}},{resolveType:je,formValue:z}=Kt(O,$,u??void 0);Se(je),me(z);try{await ke.mutateAsync({blockKey:s,data:$[s]}),M&&M!==t&&await Mt(M,$),g?.()}catch(G){q.error(G instanceof Error?G.message:l("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Pn=t=>{rt.current&&clearTimeout(rt.current);const{selectedSectionIndex:s,sectionVariantIndex:o}=Ze.current;s!==null&&(rt.current=setTimeout(()=>{const{rawSections:i,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current;if(!h)return;const M=i[s],O=f[s];if(!M||!O?.isMultivariate)return;const $=nt(M,O);if(!$)return;const z=($.variants??[])[o]?.rule;if(wt(z,S,u)){const he=z?.__resolveType??"",Xe=S[he],lt=typeof Xe?.name=="string"?Xe.name:he,{__resolveType:pt,...ct}=t;ke.mutate({blockKey:he,data:kt(pt??"",ct,lt)},{onSuccess:()=>g?.(),onError:gt=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:gt.message}))});return}const G=Un($,o,t),Ie=[...i];Ie[s]=bt(M,O,G);const et=Bt(S,h,Ie,W,A);ke.mutate({blockKey:h,data:et},{onSuccess:()=>g?.(),onError:he=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:he.message}))})},bn))},yo=t=>{We(t);const s=t?Gn(t,u):{__resolveType:Yn};qe(t?s:{}),Pn(s)},bo=t=>{const s=t;qe(s);const o=_t?{__resolveType:_t,...s}:{...s};Pn(o)},xo=async t=>{Rt();const{selectedSectionIndex:s,sectionVariantIndex:o,rawSections:i,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current;if(s===null||!h)return;const M=i[s],O=f[s];if(!M||!O?.isMultivariate)return;const $=nt(M,O);if(!$)return;const je=$.variants??[],z=Lt(je[o]?.rule,S,u),G=Xt(t),Ie=Un($,o,G),et=[...i];et[s]=bt(M,O,Ie);const he=Bt(S,h,et,W,A),Xe={...S,[h]:he},{resolveType:lt,formValue:pt}=Kt(G,Xe,u??void 0);We(lt),qe(pt);try{await ke.mutateAsync({blockKey:h,data:he}),z&&z!==t&&await Mt(z,Xe),g?.()}catch(ct){q.error(ct instanceof Error?ct.message:l("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Te&&!Ye)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:l("sectionsEditor.sectionsEditor.noPageFound",{currentPath:x})});if(Te&&!on)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:l("sectionsEditor.sectionsEditor.globalBlockNotFound")});const mt=m!==null?He[m]??null:null,Cn=m!==null?H[m]:null,Mn=Cn&&mt?.isMultivariate?nt(Cn,mt):null,St=Mn?$n(Mn,ht):[],gn=Math.min(Ce,Math.max(St.length-1,0)),Gt=St[gn]??null,ft=mt?.isMultivariate===!0,Kn=m!==null&&mt!==null,qt=Kn&&(ft||!!(mn&&Q)),_o=qt&&!Te&&mt?.isSavedBlock===!0,it=Te||_o,jo=Te?wn:mt?.label??"",Eo=_t&&u?Zt(_t,u):null,hn=qt&&(!Te||ye.length>0)?Te?[wn,...ye]:[Ye.name,mt.label,...ft&&Gt?[Gt.label]:[],...ye]:[],Ro=I&&Ye?[Ye.name,"SEO",...ce]:[],Wt=I?Ro:it?hn.length>0?hn:[jo]:hn,wo=!I&&!Te&&ft&&ye.length===0,Ln=()=>{if(!j)return;Rt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const t=r[j],s=Da(t.sections,H);if(!s)return;const o=Na(s);ke.mutate({blockKey:j,data:{...t,sections:s}},{onSuccess:()=>{F(o),P(null),V(null),N(null),C([]),me(null),Se(null)},onError:i=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:i.message}))})},vn=(t,s,o)=>{if(!j)return;Rt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const i=r[j],f=i.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const S=f;if(!Array.isArray(S.variants))return;const h=t([...S.variants]);if(!h)return;const A=Ha(S,h),W={...r,[j]:{...i,sections:A}};ke.mutate({blockKey:j,data:W[j]},{onSuccess:()=>{s?.(),o&&Mt(o,W)},onError:M=>q.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},ko=t=>{re(null),F(t),P(null),V(null),N(null),C([]);const s=Ge[t]?.rule,{resolveType:o,formValue:i}=Kt(s,r??{},u??void 0);Se(o),me(i),un(Ge.map(f=>({rule:f.rule})),t)},To=(t,s)=>{if(t===s)return;let o=Be;Be===t?o=s:t<Be&&s>=Be?o=Be-1:t>Be&&s<=Be&&(o=Be+1),F(o);const i=Ot(Ge.map(f=>({rule:f.rule})),t,s);un(i,o),vn(f=>Ot(f,t,s))},Vo=t=>{const s=Ge[t]?.rule,o=Lt(s,r??{},u??void 0);vn(i=>i.length<=1?null:(i.splice(t,1),i),()=>{Ge.length-1===1?F(0):t<Be?F(Be-1):t===Be&&F(Math.max(0,t-1)),P(null),V(null),N(null),C([]),me(null),Se(null)},o)},Do=t=>{vn(s=>Ua(s,t),()=>{F(t+1),P(null),V(null),N(null),C([]),me(null),Se(null)})},No=async(t,s)=>{Rt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const o=Ze.current.activePageKey,i=Ze.current.decofile;if(!o)return;const f=i[o],S=f.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const A=[...h.variants],W=A[t];if(!W?.rule||typeof W.rule!="object"){q.error(l("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const M=W.rule,O=s.trim();$t(!0);try{if(!O){if(!wt(M,i,u)){re(null);return}const et=M.__resolveType??"";A[t]={...W,rule:qn(M,i,u)};const he={...i,[o]:{...f,sections:{...h,variants:A}}};await ke.mutateAsync({blockKey:o,data:he[o]}),await Mt(et,he),re(null),g?.();return}const $=Wn(M,i,u);if(!$){q.error(l("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if($.blockKey){await ke.mutateAsync({blockKey:$.blockKey,data:kt($.resolveType,$.data,O)}),re(null),g?.();return}const je=Sn(O),z=yn(je,i);if(z){q.error(z);return}const G=kt($.resolveType,$.data,O);let Ie=null;try{await ke.mutateAsync({blockKey:je,data:G}),Ie=je,A[t]={...W,rule:Xt(je)},await ke.mutateAsync({blockKey:o,data:{...f,sections:{...h,variants:A}}}),Ie=null}catch(et){throw Ie&&await nn.mutateAsync({blockKey:Ie}).catch(()=>{}),et}re(null),q.success(l("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:O})),g?.()}catch($){q.error($ instanceof Error?$.message:l("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{$t(!1)}},Ao=async(t,s)=>{Rt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const{selectedSectionIndex:o,rawSections:i,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current;if(o===null||!h)return;const M=i[o],O=f[o];if(!M||!O?.isMultivariate)return;const $=nt(M,O);if(!$)return;const je=$.variants??[],z=je[t];if(!z?.rule||typeof z.rule!="object"){q.error(l("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const G=z.rule,Ie=s.trim();$t(!0);const et=async he=>{const Xe={...$,variants:he},lt=[...i];lt[o]=bt(M,O,Xe);const pt=Bt(S,h,lt,W,A);return await ke.mutateAsync({blockKey:h,data:pt}),{...S,[h]:pt}};try{if(!Ie){if(!wt(G,S,u)){J(null);return}const gt=G.__resolveType??"",On=[...je];On[t]={...z,rule:qn(G,S,u)};const Lo=await et(On);await Mt(gt,Lo),J(null),g?.();return}const he=Wn(G,S,u);if(!he){q.error(l("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(he.blockKey){await ke.mutateAsync({blockKey:he.blockKey,data:kt(he.resolveType,he.data,Ie)}),J(null),g?.();return}const Xe=Sn(Ie),lt=yn(Xe,S);if(lt){q.error(lt);return}const pt=kt(he.resolveType,he.data,Ie);let ct=null;try{await ke.mutateAsync({blockKey:Xe,data:pt}),ct=Xe;const gt=[...je];gt[t]={...z,rule:Xt(Xe)},await et(gt),ct=null}catch(gt){throw ct&&await nn.mutateAsync({blockKey:ct}).catch(()=>{}),gt}J(null),q.success(l("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Ie})),g?.()}catch(he){q.error(he instanceof Error?he.message:l("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{$t(!1)}},Bn=()=>{Et()},Po=t=>{le(t),fn({inner:t})},Co=t=>{E(t),fn({raw:t})},Mo=()=>{le(null),te([])},Ko=()=>Je(t=>t+1),In=t=>{if(I){if(t===0){tn.flush(),Z(!1),le(null),E(void 0),te([]),Je(o=>o+1),L?.();return}if(t===1){te([]),Je(o=>o+1);return}te(ce.slice(0,t-1)),Je(o=>o+1);return}if(Te){C(ye.slice(0,t)),Y(o=>o+1);return}if(t===0){Bn();return}if(t===1){C([]),Y(o=>o+1);return}if(ft&&t===2){C([]),Y(o=>o+1);return}const s=ft?2:1;C(ye.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:it||qt||I?n.jsxs("div",{className:Ue("border-b px-3 py-2.5",it&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[Wt.length>1&&n.jsx("button",{type:"button",onClick:()=>In(Ga(Wt.length,{isMultivariateSectionTop:wo})),title:l("sectionsEditor.sectionsEditor.back"),"aria-label":l("sectionsEditor.sectionsEditor.back"),className:Ue("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",it?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(Uo,{className:"size-4"})}),!Te&&Pt&&ut&&n.jsxs("button",{type:"button",onClick:Bn,title:l("sectionsEditor.sectionsEditor.editingInVariant",{variant:ut.label}),className:Ue("shrink-0 inline-flex items-center gap-1 rounded-md h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",ja),children:[n.jsx(Ds,{rule:It(ut.rule,r??{},u??void 0),matchers:Ut}),n.jsx("span",{className:"max-w-[160px] truncate",children:ut.label})]}),n.jsx("nav",{"aria-label":l("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Wt.map((t,s)=>{const o=s===Wt.length-1,i=Ea(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Wo,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>In(s),title:i,className:Ue("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",o?it?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":it?"text-foreground/80":"text-muted-foreground",it?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:i})]},`${i}-${s}`)})}),it&&n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Yo,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Dt,{side:"bottom",className:"max-w-[260px]",children:l("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Kn&&!ft&&!mt?.isHidden&&j&&n.jsx(zn,{onClick:()=>pn()})]}),it&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:l("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(Ra,{pageKey:j,initialName:Ye.name,initialPath:Ye.path,onFieldChange:Xs})}),n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":l("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>Z(!0),children:n.jsx(Go,{size:14})})}),n.jsx(Dt,{side:"bottom",children:l("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":l("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>K&&j?K():xe(!0),children:n.jsx(qo,{size:14})})}),n.jsx(Dt,{side:"bottom",children:l("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(zn,{onClick:Ln})]})}),I?n.jsx(Yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsx("div",{className:"mx-auto max-w-2xl",children:zt&&j?n.jsx(lr,{rawSeo:rn,innerSeo:kn,defaultResolveType:Hs,seoSchema:Us,activeResolveType:ln,seoTypeOptions:zs,formResetKey:ot,siteDefaultSeo:Gs,onBreadcrumbChange:te,onPersistRaw:Co,onInnerChange:Po,onClearForm:Mo,onBumpFormKey:Ko}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:l("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):qt?n.jsxs(Yt,{viewportRef:Ee,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ft&&St.length>0&&ye.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(wa,{listKey:`${j??""}:${m??""}`,variants:St.map((t,s)=>({index:s,label:t.label})),selectedIndex:gn,onSelect:io,onRename:J,onDuplicate:co,onDelete:lo,onRemoveAll:mo,onReorder:uo,onAdd:()=>pn()}),ft&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:l("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(ts,{currentRt:_t??"",currentLabel:Qt(Gt?.rule,r??{},ht,u??void 0),currentGlobalKey:Lt(Gt?.rule,r??{},u??void 0)??void 0,matchers:Ut,globals:Nn,onSelect:yo,onSelectGlobal:xo,schema:Eo,formValue:xt,onChange:bo,formKey:`${m??"none"}:${gn}:${_t??""}`,formWrapperClassName:"pt-1",meta:u??void 0,decofile:r,onSaveReferencedBlock:Ft,sandbox:Ht})]})]}),n.jsx(Hn,{activeSchema:mn,formValue:Q,formResetKey:Ke,onFormChange:Tn,onBreadcrumbChange:C,breadcrumbPath:ye,emptyMessage:l("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:u,decofile:r,onSaveReferencedBlock:Ft,sandbox:Ht,previewBaseUrl:ne,onRequestAddSection:Vn})]},"editor-section-form"):Te?n.jsx(Yt,{viewportRef:Ee,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Hn,{activeSchema:mn,formValue:Q,formResetKey:Ke,onFormChange:Tn,onBreadcrumbChange:C,breadcrumbPath:ye,emptyMessage:l("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:u,decofile:r,onSaveReferencedBlock:Ft,sandbox:Ht,previewBaseUrl:ne,onRequestAddSection:Vn})},"editor-global-block"):n.jsxs(Yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Pt&&j&&n.jsx(Fr,{listKey:j,variants:Ge,activeIndex:Be,decofile:r??{},meta:u,matchers:Ut,onSelect:ko,onReorder:To,onRename:re,onDuplicate:Do,onDelete:Vo,onAdd:Ln}),Pt&&Ne!==null&&n.jsxs("div",{className:Ue("px-3 border-b",X?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>Re(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-sm py-0.5 hover:bg-muted/40","aria-expanded":X,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:l("sectionsEditor.sectionsEditor.variantRule")}),X?n.jsx($o,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(zo,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),X&&n.jsx("div",{className:Ue("space-y-3",At&&"pointer-events-none opacity-50"),children:n.jsx(ts,{currentRt:Ne,currentLabel:Qt(ut?.rule,r??{},ht,u??void 0),currentGlobalKey:Lt(ut?.rule,r??{},u??void 0)??void 0,matchers:Ut,globals:Nn,onSelect:ho,onSelectGlobal:So,schema:go,formValue:$e,onChange:vo,formKey:`${Be}:${Ne??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:r,onSaveReferencedBlock:Ft,sandbox:Ht})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Ar,{listKey:`${j??""}-${Be}`,rawSections:H,sections:He,meta:u,selectedIndex:m,onSelect:Qs,onReorder:Zs,onDelete:eo,onDuplicate:to,onMakeReusable:Oe,onToggleHidden:no,onToggleLazy:so,onAddVariant:pn,onDetach:oo,onAddSection:()=>ae(!0),canAddSection:po})})]},"editor-section-list"),n.jsx(ka,{open:fe!==null,onOpenChange:t=>{t||Oe(null)},defaultBlockId:fe!==null?Sn(He[fe]?.label??""):"",isPending:ke.isPending,onSubmit:fo}),ne&&n.jsx(mr,{open:Le,onOpenChange:t=>{ae(t),t||(_e.current=null)},meta:u,decofile:r,previewBaseUrl:ne,onSelect:ro}),be&&j&&r&&n.jsx(Ya,{open:be,onOpenChange:xe,pageKey:j,decofile:r}),oe!==null&&n.jsx(Xn,{open:!0,initialName:wt(Ge[oe]?.rule,r??{},u??void 0)?Qt(Ge[oe]?.rule,r??{},ht,u??void 0):"",autoLabel:ht(It(Ge[oe]?.rule,r??{},u??void 0)),isPending:At,onSubmit:async t=>{await No(oe,t)},onOpenChange:t=>{!t&&!At&&re(null)}}),pe!==null&&n.jsx(Xn,{open:!0,initialName:wt(St[pe]?.rule,r??{},u??void 0)?Qt(St[pe]?.rule,r??{},ht,u??void 0):"",autoLabel:ht(It(St[pe]?.rule,r??{},u??void 0)),isPending:At,onSubmit:async t=>{await Ao(pe,t)},onOpenChange:t=>{!t&&!At&&J(null)}})]})}export{Dc as SectionsEditor};
@@ -1 +0,0 @@
1
- import{c as T,b as ve,j as o,r as ee,B as je,h as Se}from"./index-G2UyMegc.js";import{i as ke}from"./ChevronRight-B0oqU00R.js";import{N as fe}from"./agent-icon-BpOMBDFI.js";import{S as xe}from"./scroll-area-DFH0BIEE.js";import{Y as Ne,Z as we,$ as _e,_ as Ee,a0 as Pe,aI as Te}from"./runnable-block-editor-BJcwVbgi.js";import{r as Fe}from"./claim-phase-copy-0btUuJoC.js";import{u as Re,a as Ce,P as Ke}from"./page-seo-form-jnLFUZoS.js";import{a as ye}from"./Image01-CrMDp3Vo.js";import{s as ue}from"./safe-image-url-D5z803Ot.js";import"./AlertCircle-C2lWpOgU.js";import"./Tool01-JAyMpj3A.js";import"./ArrowUp-BhS_1mYc.js";import"./ArrowLeft-CU3-fYWo.js";import"./Tool02-BpsCMUE8.js";import"./ArrowRight-qxhrF_kb.js";import"./TrendUp01-DGRDTPSm.js";import"./ZoomOut-BhJBCe49.js";import"./Users03-DwyDrG4M.js";import"./CheckCircle-M7bvdMAJ.js";import"./Check-rqGVCswn.js";import"./ChevronUp-DfxfQUMI.js";import"./DotsVertical-DZU1UmXa.js";import"./UserSquare-DQQQtBnB.js";import"./Copy01-DVkNiM-0.js";import"./CreditCard01-eB7EWH17.js";import"./Database01-D35ryavs.js";import"./MessageCircle01-DDAnC61_.js";import"./Download01-DwQ1G6ye.js";import"./Printer-DgFSeDVy.js";import"./Settings02-DS55cdFG.js";import"./Eye-CtH1p9zC.js";import"./File02-DxwsPnN4.js";import"./Share07-TiIVn1wF.js";import"./GitBranch01-addX0JVd.js";import"./Globe01-BVQZQLys.js";import"./SwitchHorizontal01-WLp0jVF6.js";import"./HardDrive-CgCPR9N9.js";import"./Key01-DhyF5uqa.js";import"./Link01-hmn4gufb.js";import"./LinkExternal01-mgQOyqV5.js";import"./Monitor01-d_wX2Fmi.js";import"./Sun-Bf5fAE_C.js";import"./Package-qMBF9Z41.js";import"./Palette-DpdMsEg8.js";import"./Play--LDHvpGS.js";import"./Plus-CoArXql3.js";import"./SearchLg-Cfc9ks4j.js";import"./SearchMd-B17DCXA1.js";import"./Shield01-CH_njjpt.js";import"./Stars01-BoUj0aQ2.js";import"./Trash01-B_0aDdmF.js";import"./Upload01-DEQ3dwz0.js";import"./User01-CBghCDg6.js";import"./Users01-BOkEXzvv.js";import"./XCircle-tKzUjg2f.js";import"./XClose-DrZOiEWO.js";import"./X-Bo-nL9WD.js";import"./Zap-C3oJkRYj.js";import"./select-BBIddav0.js";import"./index-kJsMzJ4Q.js";import"./use-session-runtime-Dok2hP9u.js";import"./thread-intent-Dp5bGo2g.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-CHasUyhx.js";import"./use-panel-navigate-BFz9YH5v.js";import"./thread-route-OLYiCJph.js";import"./use-project-scope-DpQwuDpe.js";import"./use-virtual-mcp-BvBBJ8Mx.js";import"./use-mcp-client-CTofCVDt.js";import"./auth-D1dR15pD.js";import"./github-repo-BknN0SVI.js";import"./autosend-9tjhav1j.js";import"./hooks-D3jKGwrd.js";import"./backoff-8mStPHYB.js";import"./task-board-CX4694hL.js";import"./schema-Yg6eVXwq.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-gYQEm8ff.js";import"./use-ai-providers-D-_z6UQo.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BVhyJ5Q6.js";import"./use-organization-settings-CSCcR92y.js";import"./decofile-api-DLt1kHTP.js";import"./utils-BjXWEQk-.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-D3JXbeXT.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-oR0EnOeU.js";import"./use-copy-6F0jqaNp.js";import"./usage-stats-Cgo5f2V2.js";import"./markdown-CQ65YS6u.js";import"./dialog-BypQVVb3.js";import"./org-file-open-context-CdEBkByA.js";import"./use-mobile-0svyHh7R.js";import"./tooltip-DWL9syQD.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-FvZ6aYt8.js";import"./types-Dl4SJsdD.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-BOFQMVVW.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./shell-layout-CsiRuIFo.js";import"./avatar-C1hmceI2.js";import"./download-app-dialog-CG6o1bT8.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-BB8yp0g5.js";import"./command-palette-store-Bvf6TthC.js";import"./command-D7wuXn8e.js";import"./index-ClkkZHTp.js";import"./integration-icon-BCZH6zKn.js";import"./project-icon-C8HyVHnH.js";import"./required-auth-layout-bC7FFuKj.js";import"./use-org-sso-DyncQoRl.js";import"./sheet-C0L3YWis.js";import"./use-connection-CvQsoe8t.js";import"./use-navigate-to-agent-CgIoChxk.js";import"./use-mcp-prompts-DmSUcGeg.js";import"./index-DG9fNIPE.js";import"./form-DmbG84E2.js";import"./label-o7e96U_B.js";import"./input-CcXFxYa-.js";import"./use-thread-outputs-voNNtY3m.js";import"./file-type-icon-Dj35nCU5.js";import"./popover-C2wFF_xV.js";import"./monaco-editor-CYESZJnj.js";import"./editor-7qaS_3d6.js";import"./calendar-DrfD0gKj.js";import"./textarea-qr7TLAIF.js";import"./rich-text-link-control-CJ9IjXe-.js";import"./switch-Dhe_5yOi.js";import"./dropdown-menu-CDMf13yl.js";import"./search-input-DxlhlhQD.js";import"./tabs-D03Qxk92.js";import"./use-debounced-value-GI3jmKWk.js";import"./use-file-configs-TLOrvzhi.js";import"./asset-utils-NJ9bu6ns.js";import"./useInfiniteQuery-xfHI500T.js";import"./infiniteQueryObserver-CipffcFb.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-CpWyvCov.js";import"./alert-dialog-DCDCFOfA.js";import"./sandbox-git-api-CMdpE2TE.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Ie(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Be(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function Ri(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=Re({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?we(U)??void 0:void 0,E=S??be??h??{},F=c?Ce(E,c):null,K=F&&(!M||_e(U))?Fe(F,s):null;let G;e[0]!==s?(G=Ee(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Pe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let Y;e[14]!==j?(Y=()=>j(Me),e[14]=j,e[15]=Y):Y=e[15];const re=Y;let Z;e[16]!==P||e[17]!==f?(Z=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=Z):Z=e[18];const ce=Z,z=i.kind==="page"?i.path:"/";let q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=q):q=e[22];const ne=q;let J;e[23]!==c||e[24]!==l||e[25]!==i.kind?(J=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=J):J=e[26];const ae=J,Q=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{className:"size-3.5 text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let B;e[41]!==L||e[42]!==D?(B=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=B):B=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Q||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Q&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Q?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Ke,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Te,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Q,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let X;return e[67]!==B||e[68]!==O?(X=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[B,O]}),e[67]=B,e[68]=O,e[69]=X):X=e[69],X}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{Ri as SeoEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DR1fRQbJ.js","assets/index-G2UyMegc.js","assets/index-DTEWW9mB.css","assets/Tool02-BpsCMUE8.js","assets/CheckCircle-M7bvdMAJ.js","assets/Settings02-DS55cdFG.js","assets/use-mcp-client-CTofCVDt.js","assets/auth-D1dR15pD.js","assets/useInfiniteQuery-xfHI500T.js","assets/infiniteQueryObserver-CipffcFb.js","assets/badge-BomIjFAl.js","assets/input-CcXFxYa-.js","assets/dropdown-menu-CDMf13yl.js","assets/Check-rqGVCswn.js","assets/ChevronRight-B0oqU00R.js","assets/DotsVertical-DZU1UmXa.js","assets/table-Dg_IemFq.js","assets/toggle-group-CpWyvCov.js","assets/use-view-mode-BKNxYPE2.js","assets/use-mobile-0svyHh7R.js","assets/Globe01-BVQZQLys.js","assets/SearchMd-B17DCXA1.js","assets/dialog-BypQVVb3.js","assets/X-Bo-nL9WD.js","assets/AlertCircle-C2lWpOgU.js","assets/Download01-DwQ1G6ye.js","assets/Upload01-DEQ3dwz0.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DCDCFOfA.js","assets/Trash01-B_0aDdmF.js","assets/label-o7e96U_B.js","assets/select-BBIddav0.js","assets/index-kJsMzJ4Q.js","assets/ChevronUp-DfxfQUMI.js","assets/switch-Dhe_5yOi.js","assets/textarea-qr7TLAIF.js","assets/ArrowLeft-CU3-fYWo.js","assets/ArrowRight-qxhrF_kb.js","assets/Link01-hmn4gufb.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-B1wYaCDK.js","assets/Eye-CtH1p9zC.js","assets/LinkExternal01-mgQOyqV5.js","assets/XCircle-tKzUjg2f.js","assets/use-infinite-scroll-DWeCyP7v.js","assets/use-copy-6F0jqaNp.js","assets/Copy01-DVkNiM-0.js","assets/Key01-DhyF5uqa.js","assets/Plus-CoArXql3.js","assets/tooltip-DWL9syQD.js","assets/mcp-oauth-ChqPPSp5.js","assets/Play--LDHvpGS.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,au as u}from"./index-G2UyMegc.js";import{R as p}from"./require-capability-Jd5jn77l.js";import"./access-gate-DFPEFDON.js";import"./capability-load-error-BggXhk6R.js";const g=l.lazy(()=>u(()=>import("./registry-layout-DR1fRQbJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(p,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{c as l,M as n,j as r,K as f}from"./index-G2UyMegc.js";import{C as d}from"./index-CmFEcUkq.js";import{m as u,P as x,T as h}from"./mock-board-CktKGE_8.js";import{F as j}from"./feature-gate-D_SUayNN.js";import"./use-mobile-0svyHh7R.js";import"./index-Cx9SAtFe.js";import"./resizable-D1tM3IzY.js";import"./MessageCircle01-DDAnC61_.js";import"./thread-route-OLYiCJph.js";import"./use-panel-navigate-BFz9YH5v.js";import"./use-project-scope-DpQwuDpe.js";import"./use-virtual-mcp-BvBBJ8Mx.js";import"./use-mcp-client-CTofCVDt.js";import"./auth-D1dR15pD.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-JsxrVKzY.js";import"./hooks-D3jKGwrd.js";import"./backoff-8mStPHYB.js";import"./task-board-CX4694hL.js";import"./schema-Yg6eVXwq.js";import"./tooltip-DWL9syQD.js";import"./index-kJsMzJ4Q.js";import"./toolbar-icon-button-CKSL6Yie.js";import"./rich-text-link-control-CJ9IjXe-.js";import"./Check-rqGVCswn.js";import"./Link01-hmn4gufb.js";import"./Trash01-B_0aDdmF.js";import"./get-initials-D-f_fDFw.js";import"./avatar-C1hmceI2.js";import"./User01-CBghCDg6.js";import"./agent-icon-BpOMBDFI.js";import"./AlertCircle-C2lWpOgU.js";import"./Tool01-JAyMpj3A.js";import"./ArrowUp-BhS_1mYc.js";import"./ArrowLeft-CU3-fYWo.js";import"./Tool02-BpsCMUE8.js";import"./ArrowRight-qxhrF_kb.js";import"./TrendUp01-DGRDTPSm.js";import"./ZoomOut-BhJBCe49.js";import"./Users03-DwyDrG4M.js";import"./CheckCircle-M7bvdMAJ.js";import"./ChevronUp-DfxfQUMI.js";import"./ChevronRight-B0oqU00R.js";import"./DotsVertical-DZU1UmXa.js";import"./UserSquare-DQQQtBnB.js";import"./Copy01-DVkNiM-0.js";import"./CreditCard01-eB7EWH17.js";import"./Database01-D35ryavs.js";import"./Download01-DwQ1G6ye.js";import"./Printer-DgFSeDVy.js";import"./Settings02-DS55cdFG.js";import"./Eye-CtH1p9zC.js";import"./File02-DxwsPnN4.js";import"./Share07-TiIVn1wF.js";import"./GitBranch01-addX0JVd.js";import"./Globe01-BVQZQLys.js";import"./SwitchHorizontal01-WLp0jVF6.js";import"./HardDrive-CgCPR9N9.js";import"./Image01-CrMDp3Vo.js";import"./Key01-DhyF5uqa.js";import"./LinkExternal01-mgQOyqV5.js";import"./Monitor01-d_wX2Fmi.js";import"./Sun-Bf5fAE_C.js";import"./Package-qMBF9Z41.js";import"./Palette-DpdMsEg8.js";import"./Play--LDHvpGS.js";import"./Plus-CoArXql3.js";import"./SearchLg-Cfc9ks4j.js";import"./SearchMd-B17DCXA1.js";import"./Shield01-CH_njjpt.js";import"./Stars01-BoUj0aQ2.js";import"./Upload01-DEQ3dwz0.js";import"./Users01-BOkEXzvv.js";import"./XCircle-tKzUjg2f.js";import"./XClose-DrZOiEWO.js";import"./X-Bo-nL9WD.js";import"./Zap-C3oJkRYj.js";import"./popover-C2wFF_xV.js";import"./dropdown-menu-CDMf13yl.js";import"./task-route-EKbO6y_O.js";import"./use-decopilot-events-BVhyJ5Q6.js";import"./drawer-6NSm3eVL.js";import"./command-D7wuXn8e.js";import"./index-ClkkZHTp.js";import"./dialog-BypQVVb3.js";import"./github-icon-CLv0eSZl.js";import"./project-icon-C8HyVHnH.js";import"./repository-import-picker-CoY5lNVi.js";import"./use-navigate-to-agent-CgIoChxk.js";import"./thread-intent-Dp5bGo2g.js";import"./slugify-CEUa2lfQ.js";import"./repository-picker-D7IurOAz.js";import"./input-CcXFxYa-.js";import"./label-o7e96U_B.js";import"./useInfiniteQuery-xfHI500T.js";import"./infiniteQueryObserver-CipffcFb.js";import"./collection-search-vqyVPQWx.js";import"./use-debounced-value-GI3jmKWk.js";import"./use-members-DgyRGi7X.js";import"./use-org-auth-client-DOv_Zmqc.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-CVYcMiKb.js";import"./use-organization-settings-CSCcR92y.js";import"./breadcrumb-DCZtPfOi.js";import"./calendar-DrfD0gKj.js";import"./alert-DR250ZD_.js";import"./collapsible-oR0EnOeU.js";import"./use-copy-6F0jqaNp.js";import"./markdown-CQ65YS6u.js";import"./org-file-open-context-CdEBkByA.js";import"./index-DG9fNIPE.js";import"./gateway-client-BOFQMVVW.js";import"./form-DmbG84E2.js";import"./utils-CVEq3hMx.js";import"./index-CU4letdV.js";import"./hooks-DxeclenL.js";import"./use-org-fs-PpDGQ72n.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-CvQsoe8t.js";import"./github-repo-scope-C8GSbvaz.js";import"./sheet-C0L3YWis.js";import"./thread-sheet-body-S1u9ZwLo.js";import"./useSuspenseInfiniteQuery-Z6PlTFXu.js";import"./pair-D3JXbeXT.js";import"./usage-stats-Cgo5f2V2.js";import"./use-entitlements-gYQEm8ff.js";import"./chat-context-CHasUyhx.js";import"./autosend-9tjhav1j.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-D-_z6UQo.js";import"./location-oTTXFrSF.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-FvZ6aYt8.js";import"./types-Dl4SJsdD.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./shell-layout-CsiRuIFo.js";import"./download-app-dialog-CG6o1bT8.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-BB8yp0g5.js";import"./command-palette-store-Bvf6TthC.js";import"./integration-icon-BCZH6zKn.js";import"./required-auth-layout-bC7FFuKj.js";import"./use-org-sso-DyncQoRl.js";import"./use-mcp-prompts-DmSUcGeg.js";import"./use-thread-outputs-voNNtY3m.js";import"./file-type-icon-Dj35nCU5.js";import"./use-infinite-scroll-DWeCyP7v.js";import"./task-status-DPU68_gS.js";import"./use-open-billing-url-CZNG2cUJ.js";import"./chat-draft-CHgo5Gd2.js";import"./feature-paywall-DBUFwc96.js";import"./plan-ladder-1wlVOtKw.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(h,{})}),t[0]=o):o=t[0],o}function nr(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{nr as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-CipffcFb.js";import{dw as i}from"./index-G2UyMegc.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-CipffcFb.js";import{dw as u,d7 as n}from"./index-G2UyMegc.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};