decocms 4.515.1 → 4.517.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 (451) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-CHmxGMIj.js → ActiveShapeUtils-BB436TvV.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-CUAx3A4b.js → AlertCircle-Cch634f7.js} +1 -1
  3. package/dist/client/assets/{AreaChart-CW0Iiw9b.js → AreaChart-CpsihjcZ.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BWCsylYe.js → ArrowLeft-CohopnCT.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-EL0FBv9C.js → ArrowUp-DLUdomd9.js} +1 -1
  6. package/dist/client/assets/{BarChart-7G_lP-bc.js → BarChart-DC5-aC-9.js} +1 -1
  7. package/dist/client/assets/{Building02-PifDTlhb.js → Building02-BHJQSDUK.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-CQlacwEw.js → CartesianChart-dMOiAgfo.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-QwBn7EzX.js → CategoricalChart-BCAB1JR1.js} +3 -3
  10. package/dist/client/assets/{CheckCircle-CMGqXocs.js → CheckCircle-Cs8i9zYt.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-BSRBjpBn.js → ChevronSelectorVertical-C5d75KyY.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-x46FJEcD.js → ChevronUp-BT7eMKPK.js} +1 -1
  13. package/dist/client/assets/{Copy01-OBSYmimV.js → Copy01-B341DqLV.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-DWsSThAm.js → CreditCard01-4Fwr0tNh.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-jkvtcdek.js → DotsVertical-DbrlDgFh.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-MNRbBKZp.js → ErrorBarContext-t45nElJh.js} +1 -1
  17. package/dist/client/assets/{Globe04-blkS_Kfg.js → Globe04-BE6c1UDj.js} +1 -1
  18. package/dist/client/assets/{Image01-BCnLFq1D.js → Image01-hTzc15CE.js} +1 -1
  19. package/dist/client/assets/{Key01-CG7Kua6O.js → Key01-kTu6t6u_.js} +1 -1
  20. package/dist/client/assets/{Link01-8aKNfNRw.js → Link01-hfA48cFL.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-DcsqjBuj.js → LinkBroken01-Dioz3u9i.js} +1 -1
  22. package/dist/client/assets/{Minus-B38cW2ZC.js → Minus-DqDPTtRG.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DQEkUL3d.js → Monitor01-Bz6QaUO4.js} +1 -1
  24. package/dist/client/assets/{Play-Ns9aRVTY.js → Play-CByslM3d.js} +1 -1
  25. package/dist/client/assets/{Plus-vkM1FxVr.js → Plus-Dewm72je.js} +1 -1
  26. package/dist/client/assets/ReferenceLine-DV9hYxt_.js +1 -0
  27. package/dist/client/assets/{SearchMd-Cp6J-1Iu.js → SearchMd-7Jo0ZofC.js} +1 -1
  28. package/dist/client/assets/{Sector-BeXkYaJv.js → Sector-D64VY8hG.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-aJuRSlBz.js → ShoppingBag01-BStpgW0a.js} +1 -1
  30. package/dist/client/assets/{Sun-k4hypx5Q.js → Sun-C37Hpdko.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-B5WFt7_0.js → SwitchHorizontal01-CrC4ThKg.js} +1 -1
  32. package/dist/client/assets/{Tool01-BsK9c3-e.js → Tool01-2gJDR0Ho.js} +1 -1
  33. package/dist/client/assets/{Trash01-Z1ezoy3S.js → Trash01-DjE7Raat.js} +1 -1
  34. package/dist/client/assets/{Upload01-B3-nlnKa.js → Upload01-CYfTR3aZ.js} +1 -1
  35. package/dist/client/assets/{User01-C2Sw39bs.js → User01-X6IeKYZH.js} +1 -1
  36. package/dist/client/assets/{UserSquare-BBEl_BxL.js → UserSquare-pmxb5ZdZ.js} +1 -1
  37. package/dist/client/assets/{Users01-DMFeioyM.js → Users01-uKJoVSle.js} +1 -1
  38. package/dist/client/assets/{XClose-BdwIxxCT.js → XClose-BVxVAZ6V.js} +1 -1
  39. package/dist/client/assets/{ZoomOut-DytgoG2i.js → ZoomOut-DixQygt2.js} +1 -1
  40. package/dist/client/assets/{access-gate-BUnHIPK_.js → access-gate-BpfEc6VH.js} +1 -1
  41. package/dist/client/assets/{add-connection-dialog-F6QQAEZv.js → add-connection-dialog-BZwLO1Ja.js} +1 -1
  42. package/dist/client/assets/agent-analytics-Cb2tda3-.js +1 -0
  43. package/dist/client/assets/agent-app-HX00w6TV.js +1 -0
  44. package/dist/client/assets/agent-assets-e6Gk5J-Q.js +1 -0
  45. package/dist/client/assets/{agent-automation-CKRFKK95.js → agent-automation-jGwXvC8f.js} +1 -1
  46. package/dist/client/assets/{agent-automations-CoXmwt9k.js → agent-automations-DzW1crP1.js} +1 -1
  47. package/dist/client/assets/agent-calendar-DCHNIRTc.js +1 -0
  48. package/dist/client/assets/{agent-connect-sources-B_bS144d.js → agent-connect-sources-6bCKMOK5.js} +1 -1
  49. package/dist/client/assets/agent-deck-BV-5B8og.js +1 -0
  50. package/dist/client/assets/{agent-e2e-DC8ADnZZ.js → agent-e2e-DwASXEee.js} +1 -1
  51. package/dist/client/assets/agent-experiments-DetDutY3.js +1 -0
  52. package/dist/client/assets/agent-file-BvfhZ3mT.js +1 -0
  53. package/dist/client/assets/{agent-hosting-Tr8uV5DY.js → agent-hosting-BVT3wdCc.js} +1 -1
  54. package/dist/client/assets/{agent-icon--EtIPqub.js → agent-icon-CiKTiUdq.js} +1 -1
  55. package/dist/client/assets/agent-library-DSuyqe6T.js +1 -0
  56. package/dist/client/assets/agent-library-file-B1l2ZLvA.js +1 -0
  57. package/dist/client/assets/agent-monitor-C_MtaF0x.js +1 -0
  58. package/dist/client/assets/agent-overview-BaJQVLzH.js +1 -0
  59. package/dist/client/assets/agent-releases-rSbadgkl.js +2 -0
  60. package/dist/client/assets/agent-settings-DCjo4ZYC.js +1 -0
  61. package/dist/client/assets/{agent-site-editor-BML41A1E.js → agent-site-editor-DGIssniL.js} +2 -2
  62. package/dist/client/assets/agent-site-editor-code-BVwfCzHc.js +2 -0
  63. package/dist/client/assets/agent-site-editor-content-BU-vFmu-.js +1 -0
  64. package/dist/client/assets/agent-site-editor-preview-Coo-Ni4u.js +1 -0
  65. package/dist/client/assets/agent-view-CftHb5tC.js +1 -0
  66. package/dist/client/assets/{agent-view-guard-BuPewEB-.js → agent-view-guard-Cz_9FSeB.js} +1 -1
  67. package/dist/client/assets/{agents-list-BxOpJ6GX.js → agents-list-BehVRlw8.js} +1 -1
  68. package/dist/client/assets/{ai-providers-BgJW78yt.js → ai-providers-Cfzh0dop.js} +1 -1
  69. package/dist/client/assets/{alert-BDbwlXZm.js → alert-DlpN1nbO.js} +1 -1
  70. package/dist/client/assets/{alert-dialog-C-DaggA1.js → alert-dialog-BdWXpnme.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-i9-JccxC.js → analytics-sections-CBRurMfi.js} +1 -1
  72. package/dist/client/assets/analytics-tab-Bu3yOSFE.js +2 -0
  73. package/dist/client/assets/{api-keys-CsGvnzMj.js → api-keys-SwcfBYZn.js} +1 -1
  74. package/dist/client/assets/api-keys-jGYtI-cW.js +1 -0
  75. package/dist/client/assets/app-editor-BzaLO82-.js +1 -0
  76. package/dist/client/assets/{asset-utils-Cb8p2lKk.js → asset-utils-CYj7sEud.js} +1 -1
  77. package/dist/client/assets/{auth-C_nDagDA.js → auth-DVebpHI3.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-DLKOtnms.js → auth-catchall-CM988zgH.js} +1 -1
  79. package/dist/client/assets/{auth-entry-CGuqEb3C.js → auth-entry-BM6bA3ji.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-CA_lMCib.js → auth-split-layout-BnlVBIeL.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-CpcQdSQ-.js → authenticate-and-persist-oauth-qcbNyaRp.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-B0U8Omed.js → automation-list-row-BIlvc0v-.js} +1 -1
  83. package/dist/client/assets/{automation-runs-CHS-S7AU.js → automation-runs-jRApvuta.js} +1 -1
  84. package/dist/client/assets/{automations-BMiuIrti.js → automations-DMHgje9o.js} +1 -1
  85. package/dist/client/assets/{autosend-xoWUmECR.js → autosend-BTx7-p6a.js} +1 -1
  86. package/dist/client/assets/{avatar-DHKJiyOX.js → avatar-DjIkOwsx.js} +1 -1
  87. package/dist/client/assets/{badge-ux-RK1YK.js → badge-BfMggcm8.js} +1 -1
  88. package/dist/client/assets/{block-document-C53UA67Y.js → block-document-DKju3Lsl.js} +3 -3
  89. package/dist/client/assets/{blocks-preview-workspace-context-CCLLqfhM.js → blocks-preview-workspace-context-AokvrTWO.js} +1 -1
  90. package/dist/client/assets/blocks-tab-states-5tpSikld.js +1 -0
  91. package/dist/client/assets/{blog-schema-CUXWCb3x.js → blog-schema-B8hGgOKc.js} +1 -1
  92. package/dist/client/assets/{buckets-KXy-OHx-.js → buckets-DzW1ArnB.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-7EW1ZAui.js → build-improve-prompt-doc-BGKe2ED3.js} +1 -1
  94. package/dist/client/assets/{calendar-qN6CeKGa.js → calendar-kdikRXDO.js} +1 -1
  95. package/dist/client/assets/campaigns-view-CXUV2H04.js +1 -0
  96. package/dist/client/assets/{capability-load-error-CoMXa4ni.js → capability-load-error-BuC7MxXm.js} +1 -1
  97. package/dist/client/assets/category-editor-jRguVRoH.js +1 -0
  98. package/dist/client/assets/{chart-86pPxb3F.js → chart-aHPEwhl0.js} +1 -1
  99. package/dist/client/assets/{chat-context-DXm8btNS.js → chat-context-BEyCIAaN.js} +2 -2
  100. package/dist/client/assets/{chat-draft-WGnppXw7.js → chat-draft-Dql_zG1A.js} +1 -1
  101. package/dist/client/assets/{checkbox-vFQy8MvV.js → checkbox-R6Pm_B33.js} +1 -1
  102. package/dist/client/assets/{choose-editor-Bry8-aop.js → choose-editor-C1zV1Fp9.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-BM0cUkz3.js → cli-auth-success-Dw0y5N0L.js} +1 -1
  104. package/dist/client/assets/{client-icons-M2pakr5u.js → client-icons-C_WiAP0u.js} +1 -1
  105. package/dist/client/assets/cms-settings-editor-BAGntXvx.js +1 -0
  106. package/dist/client/assets/{collapsible-CnlVGt-G.js → collapsible-BcZaehP2.js} +1 -1
  107. package/dist/client/assets/{collection-detail-B_r2Oxl1.js → collection-detail-AO17C_8B.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-ALXFDy_R.js → collection-display-button-C0cYhq66.js} +1 -1
  109. package/dist/client/assets/{collection-search--9d0M5sc.js → collection-search-7sBPioRN.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-DyQ4WIpY.js → collection-table-wrapper-BzgZq6u7.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-BfpnVdlQ.js → collection-tabs-DMsbicTn.js} +1 -1
  112. package/dist/client/assets/{column-rules-DgVqSNU2.js → column-rules-CBkHBJjn.js} +1 -1
  113. package/dist/client/assets/{combobox-BMxhMbUn.js → combobox-CEzxugDA.js} +1 -1
  114. package/dist/client/assets/{command-BlBQgQPI.js → command-KmLWWmqo.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-B3EkkVtL.js → companion-mcps-section-vJ3FRpYP.js} +1 -1
  116. package/dist/client/assets/{config-CE3I8pu5.js → config-0t8v4_10.js} +1 -1
  117. package/dist/client/assets/{connect-C4NhmEFJ.js → connect-Ceo_a42v.js} +1 -1
  118. package/dist/client/assets/{connect-layout-DZGJCEON.js → connect-layout-DXn91Bwy.js} +1 -1
  119. package/dist/client/assets/connect-source-dialog-DCA13Vr9.js +1 -0
  120. package/dist/client/assets/{connection-Bo3v2rj5.js → connection-BXCm7RUN.js} +1 -1
  121. package/dist/client/assets/{connection-card-DMfcnulT.js → connection-card-DudSxk_f.js} +1 -1
  122. package/dist/client/assets/{connection-detail-DxSeFIwH.js → connection-detail-Bzj7ZAYC.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-A3QfJozi.js → connection-form-helpers-BCgvOrMH.js} +1 -1
  124. package/dist/client/assets/{connections-DzbvhEpV.js → connections-DZsQ6PqI.js} +1 -1
  125. package/dist/client/assets/{content-tab-CaoAhPSw.js → content-tab-B8CAyeYn.js} +8 -8
  126. package/dist/client/assets/context-Dxx9Nppi.js +1 -0
  127. package/dist/client/assets/{context-menu-BD833dh0.js → context-menu-Bup14w-O.js} +1 -1
  128. package/dist/client/assets/{context-shell-D1uT0vY1.js → context-shell-YuMc6M7u.js} +3 -3
  129. package/dist/client/assets/{core.esm-DJ5llHMe.js → core.esm-BmE_KURk.js} +2 -2
  130. package/dist/client/assets/{create-organization-dialog-nhhaUNZK.js → create-organization-dialog-oYjru5bh.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-Cry9rVi8.js → daily-pulse-Cj6zflmn.js} +1 -1
  132. package/dist/client/assets/{discover-C4Up8V0-.js → discover-BsfuhgQD.js} +1 -1
  133. package/dist/client/assets/{domain-settings-Bec9kB9d.js → domain-settings-BCFlmNLU.js} +1 -1
  134. package/dist/client/assets/{drawer-0sYDH2mt.js → drawer-Bi1-udV5.js} +1 -1
  135. package/dist/client/assets/{editor-BctLuJLS.js → editor-DAekV0he.js} +1 -1
  136. package/dist/client/assets/{editor-classes-BnPaf--r.js → editor-classes-BaBC2QPU.js} +1 -1
  137. package/dist/client/assets/{empty-state-D6RWdvUz.js → empty-state-B4dSQMeM.js} +1 -1
  138. package/dist/client/assets/{empty-state-DeArX05X.js → empty-state-wXIjf_EN.js} +1 -1
  139. package/dist/client/assets/experiments-tab-PntzDOfu.js +1 -0
  140. package/dist/client/assets/{experiments-tab-choice-CMHPX5ZC.js → experiments-tab-choice-CQ5EsK8h.js} +1 -1
  141. package/dist/client/assets/{extract-connection-data-CBAyhzk-.js → extract-connection-data-Bg9K46Rs.js} +1 -1
  142. package/dist/client/assets/{feature-gate-DQ0ZaDj1.js → feature-gate-4u7sb4lR.js} +1 -1
  143. package/dist/client/assets/{feature-paywall-hsFyGLR_.js → feature-paywall-BsVH1P4Z.js} +1 -1
  144. package/dist/client/assets/{file-explorer-GrzeifA-.js → file-explorer-CsBngoR2.js} +1 -1
  145. package/dist/client/assets/{file-preview-Bcawxb03.js → file-preview-CVVpAx14.js} +1 -1
  146. package/dist/client/assets/{file-share-button-LmGmSS33.js → file-share-button-Dh2OblA7.js} +1 -1
  147. package/dist/client/assets/{file-type-icon-DHFVwXjA.js → file-type-icon-DYeFNgMs.js} +1 -1
  148. package/dist/client/assets/{folder-icon-BwmfzM1C.js → folder-icon-CMfbCZZj.js} +1 -1
  149. package/dist/client/assets/{form-D4PspedZ.js → form-BGI3x6he.js} +1 -1
  150. package/dist/client/assets/{general-CXfgWejD.js → general-AgdwRV2K.js} +1 -1
  151. package/dist/client/assets/home-B3JLIiqG.js +1 -0
  152. package/dist/client/assets/hosted-publish-api-Cg6A3e6a.js +1 -0
  153. package/dist/client/assets/hosted-publish-feedback-R86hK4rw.js +1 -0
  154. package/dist/client/assets/{icon-button-HZwQKD3a.js → icon-button-Du_O8eku.js} +1 -1
  155. package/dist/client/assets/{index-Bxkd37dZ.js → index-BEaGR-Ng.js} +1 -1
  156. package/dist/client/assets/{index-XzZeDzj0.js → index-BWEksKOa.js} +1 -1
  157. package/dist/client/assets/{index-CgVQmSg0.js → index-BXwVgYyP.js} +1 -1
  158. package/dist/client/assets/{index-ifZGovK1.js → index-BeWb3VLq.js} +52 -52
  159. package/dist/client/assets/{index-D_6gfRTQ.js → index-BflgjdLH.js} +1 -1
  160. package/dist/client/assets/{index-BCHFFeZZ.js → index-BliYmmPu.js} +1 -1
  161. package/dist/client/assets/{index-B32YFtAw.js → index-BnbMIYQC.js} +1 -1
  162. package/dist/client/assets/index-CEnumkKh.js +1 -0
  163. package/dist/client/assets/{index-BeV3dEoK.js → index-CcDpskhn.js} +2 -2
  164. package/dist/client/assets/{index-DNa7Epd0.js → index-CdhgpKbn.js} +1 -1
  165. package/dist/client/assets/{index-CafY8AgN.js → index-CkwxAoM4.js} +1 -1
  166. package/dist/client/assets/{index-DgfcOEet.js → index-CqX2WR0x.js} +1 -1
  167. package/dist/client/assets/{index-BjrJaWD9.js → index-CqllmV-p.js} +1 -1
  168. package/dist/client/assets/{index-gqp4B5qj.js → index-DVxNOEMj.js} +1 -1
  169. package/dist/client/assets/index-DjdMnw7p.css +1 -0
  170. package/dist/client/assets/{index-CvMuyNgv.js → index-Dw3D39xs.js} +1 -1
  171. package/dist/client/assets/{index-redirect-BKvfBlvA.js → index-redirect-BpERt5XK.js} +1 -1
  172. package/dist/client/assets/{infiniteQueryObserver-DvmMaiCa.js → infiniteQueryObserver-BOCgDRcQ.js} +1 -1
  173. package/dist/client/assets/{infra-billing-WLIR9CQb.js → infra-billing-443Q4BKf.js} +1 -1
  174. package/dist/client/assets/input-D1nDj3Gx.js +17 -0
  175. package/dist/client/assets/{input-BeDIlaby.js → input-D9vH1igB.js} +1 -1
  176. package/dist/client/assets/{integration-icon-D1aQLe0v.js → integration-icon-VoZokpOe.js} +1 -1
  177. package/dist/client/assets/{jira-icon-Bs7EGbwb.js → jira-icon-BOD4UX3O.js} +1 -1
  178. package/dist/client/assets/{label-Dhoh3DcI.js → label-TKhfC6jr.js} +1 -1
  179. package/dist/client/assets/{layout-dz9-bhT2.js → layout-OvvfNrHJ.js} +1 -1
  180. package/dist/client/assets/{legacy-agents-deep-DO-8kywe.js → legacy-agents-deep-Bj2cFPCz.js} +1 -1
  181. package/dist/client/assets/{legacy-main-redirect-BMyuR4az.js → legacy-main-redirect-Y-IABTgs.js} +1 -1
  182. package/dist/client/assets/library-CEpc5ko6.js +1 -0
  183. package/dist/client/assets/{login-DwOQDvQC.js → login-d1G00P7v.js} +1 -1
  184. package/dist/client/assets/{markdown-prFeEkT4.js → markdown-D_Bab0vD.js} +1 -1
  185. package/dist/client/assets/{mcp-app-renderer-fHjuxWIZ.js → mcp-app-renderer-C5DYTOzS.js} +1 -1
  186. package/dist/client/assets/{mcp-oauth-CTJ5Iw4i.js → mcp-oauth-Bv0ymH6e.js} +1 -1
  187. package/dist/client/assets/{mcp-oauth-CNKUkWMd.js → mcp-oauth-gJmjFND6.js} +1 -1
  188. package/dist/client/assets/{members-B9Wn7yAF.js → members-CGCmgk2j.js} +1 -1
  189. package/dist/client/assets/{memory-BDb7_tyh.js → memory-DjHNNPOW.js} +1 -1
  190. package/dist/client/assets/{mini-report-page-Bsjfan82.js → mini-report-page-BSYlfSmZ.js} +1 -1
  191. package/dist/client/assets/{mock-board-BWfjyR2S.js → mock-board-BCQJ9AHq.js} +3 -3
  192. package/dist/client/assets/{monaco-editor-Wx_2qGOP.js → monaco-editor-CVRVgXSh.js} +1 -1
  193. package/dist/client/assets/monitor-v8-CHgzPfyd.js +1 -0
  194. package/dist/client/assets/monitoring-mogv5pNr.js +1 -0
  195. package/dist/client/assets/{monitoring-stats-row-THiAXYTp.js → monitoring-stats-row-BEpenrU2.js} +1 -1
  196. package/dist/client/assets/{multi-select-DOxlfIKk.js → multi-select-ZwwArowo.js} +1 -1
  197. package/dist/client/assets/{mustache-BzHjgnm5.js → mustache-B20fDMb8.js} +1 -1
  198. package/dist/client/assets/named-rule-uses-Bxr3PCeC.js +1 -0
  199. package/dist/client/assets/named-rule-view-pF5yBmDb.js +1 -0
  200. package/dist/client/assets/{new-project-dialog-DFsG79bb.js → new-project-dialog-DfI138Mw.js} +1 -1
  201. package/dist/client/assets/{oauth-callback-BekJkoCF.js → oauth-callback-C0l4AVA-.js} +1 -1
  202. package/dist/client/assets/{oauth-callback-ai-provider-FtcHAH0j.js → oauth-callback-ai-provider-DlpJWGZf.js} +1 -1
  203. package/dist/client/assets/{onboarding-DNskGrdg.js → onboarding-DMkG4-4M.js} +1 -1
  204. package/dist/client/assets/openai-conversation-BcQvnIOU.js +3 -0
  205. package/dist/client/assets/{optimistic-project-sidebar-views-CrYamEqL.js → optimistic-project-sidebar-views-CBzXyVUz.js} +1 -1
  206. package/dist/client/assets/order-monitor-day-raWLiT1v.js +1 -0
  207. package/dist/client/assets/{organization-choice-zGI39_sg.js → organization-choice-CSBUJWem.js} +1 -1
  208. package/dist/client/assets/{orgs-BjIQy8J3.js → orgs-DYr5Iir2.js} +1 -1
  209. package/dist/client/assets/{page-seo-form-CrgZFHtq.js → page-seo-form-C0_Mzxj0.js} +1 -1
  210. package/dist/client/assets/{pair-Ck7rgrik.js → pair-v8_ULhan.js} +7 -7
  211. package/dist/client/assets/parse-sections-CigeyiXV.js +1 -0
  212. package/dist/client/assets/plan-BYiUi2-G.js +1 -0
  213. package/dist/client/assets/{plan-ladder-BKLU8eo8.js → plan-ladder-CtR99jrd.js} +1 -1
  214. package/dist/client/assets/{popover-DaReiQzV.js → popover-s88DXvPL.js} +1 -1
  215. package/dist/client/assets/post-calendar-DbUDJn5r.js +1 -0
  216. package/dist/client/assets/{post-editor-CRy0VAcT.js → post-editor-CdhtoksR.js} +2 -2
  217. package/dist/client/assets/{preview-content-DJOuEciL.js → preview-content-BNZ95rhM.js} +1 -1
  218. package/dist/client/assets/{preview-dialog-CnlKftcv.js → preview-dialog-BZcvH5f1.js} +1 -1
  219. package/dist/client/assets/{preview-panel-C2Athpf5.js → preview-panel-CjWzxG-O.js} +1 -1
  220. package/dist/client/assets/{preview-tab-CzS9kIxI.js → preview-tab-ztwq5J9Z.js} +4 -4
  221. package/dist/client/assets/product-picker-dialog-CecFCJox.js +1 -0
  222. package/dist/client/assets/{profile-DAF3l5cg.js → profile-Bo384oXV.js} +1 -1
  223. package/dist/client/assets/project-app-view-C-JC6Lnp.js +1 -0
  224. package/dist/client/assets/{project-apps-CG2eY1ZZ.js → project-apps-BQ30Q_BX.js} +1 -1
  225. package/dist/client/assets/{project-feed-K24c6-Xx.js → project-feed--d7Txdh1.js} +1 -1
  226. package/dist/client/assets/{project-icon-ZadU5ZjL.js → project-icon-Ds8VtVRG.js} +1 -1
  227. package/dist/client/assets/project-reports-BRMk8sbv.js +1 -0
  228. package/dist/client/assets/project-tasks-DPFfk-Co.js +1 -0
  229. package/dist/client/assets/{projects-BWrIdbSy.js → projects-BN_UNvg1.js} +1 -1
  230. package/dist/client/assets/{projects-empty-state-BWAilN1f.js → projects-empty-state-CmS_yrG7.js} +1 -1
  231. package/dist/client/assets/{prompts-DKnoRB34.js → prompts-g_Bby1s0.js} +1 -1
  232. package/dist/client/assets/record-editor-CmI7uwKH.js +1 -0
  233. package/dist/client/assets/redirect-editor-CBEbRvVY.js +1 -0
  234. package/dist/client/assets/releases-api-DbKlRR9w.js +1 -0
  235. package/dist/client/assets/reports-BKtNuFy0.js +1 -0
  236. package/dist/client/assets/{reports-Bg1fi6kR.js → reports-Bgmc-lqT.js} +1 -1
  237. package/dist/client/assets/{reports-onboarding-acV5ZZpQ.js → reports-onboarding-D6-A2sL7.js} +1 -1
  238. package/dist/client/assets/reports-tab-B_Sk2TLl.js +2 -0
  239. package/dist/client/assets/repositories-C2vwcNjc.js +1 -0
  240. package/dist/client/assets/repositories-CszhODTX.js +1 -0
  241. package/dist/client/assets/{repository-binding-DtIeSvDY.js → repository-binding-Cf_thK-b.js} +1 -1
  242. package/dist/client/assets/{repository-import-picker-C2sQ94O1.js → repository-import-picker-BOku3VrR.js} +1 -1
  243. package/dist/client/assets/repository-picker-CeCsQGv8.js +1 -0
  244. package/dist/client/assets/{require-capability-DAfCGgHW.js → require-capability-DC_q9Xad.js} +1 -1
  245. package/dist/client/assets/{required-auth-layout-4jyUcmCy.js → required-auth-layout-DhxdstQv.js} +1 -1
  246. package/dist/client/assets/{reset-password-BGjvzv1z.js → reset-password-BCS7WVZ6.js} +1 -1
  247. package/dist/client/assets/{resizable-CQyxQjcn.js → resizable-BySAwPSW.js} +1 -1
  248. package/dist/client/assets/{resolve-tab-icon-56O81FJc.js → resolve-tab-icon-B7CsMGsC.js} +1 -1
  249. package/dist/client/assets/{review-settings-CWih3HF4.js → review-settings-DtZi6zHg.js} +1 -1
  250. package/dist/client/assets/{roles-BRkp9ar3.js → roles-CGYNn4dv.js} +1 -1
  251. package/dist/client/assets/route-ChD1cXkH.js +1 -0
  252. package/dist/client/assets/route-ChLLCXC9.js +1 -0
  253. package/dist/client/assets/route-_su_B2um.js +1 -0
  254. package/dist/client/assets/{runnable-block-editor-CqYgijVY.js → runnable-block-editor-Bod17qTV.js} +7 -7
  255. package/dist/client/assets/sandbox-lifecycle-context-CCjKxqdS.js +1 -0
  256. package/dist/client/assets/{schema-Dvc5tPTN.js → schema-ClGCzPdy.js} +1 -1
  257. package/dist/client/assets/{schema-Cn4x5iT-.js → schema-b5uziS6S.js} +1 -1
  258. package/dist/client/assets/{scroll-area-9wUBmncr.js → scroll-area-BVZXqx5M.js} +1 -1
  259. package/dist/client/assets/{search-input-1DLvCYgl.js → search-input-BL6XGlmm.js} +1 -1
  260. package/dist/client/assets/{search-toggle-BnK2KHqJ.js → search-toggle-IRNGzCzn.js} +1 -1
  261. package/dist/client/assets/secret-ciphertext-CKG2rzpX.js +1 -0
  262. package/dist/client/assets/{secret-picker-B4zI9e3W.js → secret-picker-NNIqKwTx.js} +1 -1
  263. package/dist/client/assets/{secrets-C2PS9_a9.js → secrets-BLs8g0Qc.js} +1 -1
  264. package/dist/client/assets/{sections-DX6pY_bs.js → sections-Dw8sSpTv.js} +1 -1
  265. package/dist/client/assets/sections-editor-IbsR8YsO.js +4 -0
  266. package/dist/client/assets/{select-DUEGSJco.js → select-H4FJk0rp.js} +1 -1
  267. package/dist/client/assets/{select-model-mFyCcf-O.js → select-model-VSltfcKe.js} +1 -1
  268. package/dist/client/assets/seo-editor-DJxK0wxd.js +1 -0
  269. package/dist/client/assets/{separator-Bk_a4cod.js → separator-l8ktDBQ-.js} +1 -1
  270. package/dist/client/assets/settings-tab-D08h17sS.js +1 -0
  271. package/dist/client/assets/{sheet-Dhe0uPV2.js → sheet-DdrzSnyB.js} +1 -1
  272. package/dist/client/assets/{shell-layout-U7D4A6nk.js → shell-layout-Dpds4_um.js} +1 -1
  273. package/dist/client/assets/{site-draft-actions-Dpnw67Ug.js → site-draft-actions-B1VIigls.js} +6 -6
  274. package/dist/client/assets/site-draft-view-BvQXujRd.js +2 -0
  275. package/dist/client/assets/site-editor-B8qpeTpl.js +1 -0
  276. package/dist/client/assets/site-editor-toast-C48kJZ8y.js +1 -0
  277. package/dist/client/assets/{skills-DghKPwKw.js → skills-F7XSMMWV.js} +1 -1
  278. package/dist/client/assets/{slider-CLUaEqdg.js → slider-tSRa1HDF.js} +1 -1
  279. package/dist/client/assets/{sortable.esm-CkqHW6-y.js → sortable.esm-CE2eXOQU.js} +1 -1
  280. package/dist/client/assets/{sso-DGFWPeza.js → sso-B_KsCvoW.js} +1 -1
  281. package/dist/client/assets/{suggestion-BNEVVm5c.js → suggestion-Bu3BweEe.js} +1 -1
  282. package/dist/client/assets/{switch-ByCU93P4.js → switch-BI2l0q9a.js} +1 -1
  283. package/dist/client/assets/{symbol-BQLM2_V8.js → symbol-CW0bfPL3.js} +1 -1
  284. package/dist/client/assets/{synced-repos-CjPrTUpI.js → synced-repos-BXQtYjtL.js} +1 -1
  285. package/dist/client/assets/{tab-icon-glyph-Cz_BoFAU.js → tab-icon-glyph-B_hAV_wB.js} +1 -1
  286. package/dist/client/assets/{table-Tw2gCVXe.js → table-BI-3H0Nx.js} +1 -1
  287. package/dist/client/assets/{tabs-C7f3nqQx.js → tabs-Cw5epDK7.js} +1 -1
  288. package/dist/client/assets/{task-assignee-avatar-BiPanmNM.js → task-assignee-avatar-B4jYRjC8.js} +1 -1
  289. package/dist/client/assets/{task-board-BrTYr-oE.js → task-board-ByNQwZsl.js} +1 -1
  290. package/dist/client/assets/{task-route-BLP-DBaS.js → task-route-B8oSJFnj.js} +1 -1
  291. package/dist/client/assets/{task-status-CVpsP3bD.js → task-status-GAY2L2Vz.js} +1 -1
  292. package/dist/client/assets/{taskboard-analytics-CQMw4wzL.js → taskboard-analytics-MtxZahkF.js} +1 -1
  293. package/dist/client/assets/{tasks-CtPgnGlW.js → tasks-CaRFrr2H.js} +1 -1
  294. package/dist/client/assets/tasks-Zus8qgLK.js +1 -0
  295. package/dist/client/assets/{textarea-Bbbnnl4r.js → textarea-7I-DLD6x.js} +1 -1
  296. package/dist/client/assets/{thread-analytics-CtQHMk9N.js → thread-analytics-BhyMnytl.js} +1 -1
  297. package/dist/client/assets/{thread-intent-7GmQH5mt.js → thread-intent-CoB1rbzj.js} +2 -2
  298. package/dist/client/assets/{thread-route-C7RSGMhP.js → thread-route-BPSSuk8V.js} +1 -1
  299. package/dist/client/assets/{thread-route-DpLeB4i0.js → thread-route-Bjcqwe4C.js} +1 -1
  300. package/dist/client/assets/{thread-sheet-body-dWggSd-b.js → thread-sheet-body-DyDxpawL.js} +1 -1
  301. package/dist/client/assets/{time-range-picker-BVXe-Owx.js → time-range-picker-DJ-TaM2M.js} +1 -1
  302. package/dist/client/assets/{toggle-group-CXUKmPFr.js → toggle-group-BngkTNsG.js} +1 -1
  303. package/dist/client/assets/{tool-namespace-DIE_8J9o.js → tool-namespace-DePiqr-m.js} +1 -1
  304. package/dist/client/assets/{toolbar-icon-button-DzJeqLa2.js → toolbar-icon-button-DKjsnGdZ.js} +1 -1
  305. package/dist/client/assets/{tooltip-gMeEuHtO.js → tooltip-4vv5k-uR.js} +1 -1
  306. package/dist/client/assets/{tooltipContext-BQS7kWxi.js → tooltipContext-B3bWUtmi.js} +1 -1
  307. package/dist/client/assets/{track-DdeuRUoM.js → track-C0wfSYRO.js} +1 -1
  308. package/dist/client/assets/{types-CHFSNT7a.js → types-CNU-uWw-.js} +1 -1
  309. package/dist/client/assets/{url-slug-D37s8EDd.js → url-slug-DU3tFMUC.js} +1 -1
  310. package/dist/client/assets/{usage-stats-BecGIkLk.js → usage-stats-CKpL0uWf.js} +2 -2
  311. package/dist/client/assets/{use-ai-providers-CAt_9H4n.js → use-ai-providers-Ct47MIru.js} +1 -1
  312. package/dist/client/assets/use-apply-named-rule-R20A_NaL.js +1 -0
  313. package/dist/client/assets/{use-automations-C6LbyvJD.js → use-automations-Ho0ayZT_.js} +1 -1
  314. package/dist/client/assets/{use-autosave-e9CI9oFB.js → use-autosave-DzNsVsl3.js} +1 -1
  315. package/dist/client/assets/{use-chat-layout-state-24wCHq_-.js → use-chat-layout-state-CWI-mwQI.js} +1 -1
  316. package/dist/client/assets/{use-clock-tick-DflKMAWl.js → use-clock-tick-DE4s8Okz.js} +1 -1
  317. package/dist/client/assets/{use-connect-companion-3OWtftC8.js → use-connect-companion-Dmdscsai.js} +1 -1
  318. package/dist/client/assets/{use-connection-CBKH8IwL.js → use-connection-HenJjVMr.js} +1 -1
  319. package/dist/client/assets/use-content-sync-C0CqYtRD.js +1 -0
  320. package/dist/client/assets/{use-copy-Cn8Org7G.js → use-copy-C4LbXPXl.js} +1 -1
  321. package/dist/client/assets/{use-create-virtual-mcp-jW1iVRi_.js → use-create-virtual-mcp-dBeQ8KM_.js} +1 -1
  322. package/dist/client/assets/{use-date-fns-locale-DTRxIyi4.js → use-date-fns-locale-DBqQ9Xwt.js} +1 -1
  323. package/dist/client/assets/{use-debounced-autosave-DDaoW-uw.js → use-debounced-autosave-B_kpX8YN.js} +1 -1
  324. package/dist/client/assets/{use-debounced-value-c5JdkW89.js → use-debounced-value-Br6JzfN-.js} +1 -1
  325. package/dist/client/assets/{use-deco-credits-D8w-JIDW.js → use-deco-credits-DhL8Ql0T.js} +1 -1
  326. package/dist/client/assets/{use-decopilot-events-Cp8NaBPU.js → use-decopilot-events-CuBncVze.js} +1 -1
  327. package/dist/client/assets/{use-delete-connection-BJIObh7l.js → use-delete-connection-DuErB0IF.js} +1 -1
  328. package/dist/client/assets/{use-deployment-admin-D7XKR1Dx.js → use-deployment-admin-BOXhbvir.js} +1 -1
  329. package/dist/client/assets/use-fast-preview-draft-url-BPrZ2XMf.js +1 -0
  330. package/dist/client/assets/{use-file-configs-DW0hmZjE.js → use-file-configs-B_k4AoEo.js} +1 -1
  331. package/dist/client/assets/{use-inbox-feed-DOpe-XBh.js → use-inbox-feed-D96kN3Ph.js} +1 -1
  332. package/dist/client/assets/{use-infinite-scroll-Cuyf7850.js → use-infinite-scroll-Ba0Xf9MO.js} +1 -1
  333. package/dist/client/assets/{use-join-requests-CBahVlKF.js → use-join-requests-DNpCy_xv.js} +1 -1
  334. package/dist/client/assets/use-main-panel-tabs-BndsHuRH.js +1 -0
  335. package/dist/client/assets/{use-mcp-auth-status-Cs8ZHHaN.js → use-mcp-auth-status-BOQ5PtOH.js} +1 -1
  336. package/dist/client/assets/{use-mcp-client-D1kFCZ4v.js → use-mcp-client-2WkK0AxE.js} +1 -1
  337. package/dist/client/assets/{use-mcp-prompts-wKDmQlGB.js → use-mcp-prompts-BY0itm-N.js} +1 -1
  338. package/dist/client/assets/{use-mcp-tools-I-kpM305.js → use-mcp-tools-Wkfd46Rr.js} +1 -1
  339. package/dist/client/assets/{use-members-0ZBHc0S5.js → use-members-Cl1_-fx1.js} +1 -1
  340. package/dist/client/assets/{use-mobile-CKoO3XSk.js → use-mobile-BAnIvR27.js} +1 -1
  341. package/dist/client/assets/use-move-blocks-lN8kagdi.js +1 -0
  342. package/dist/client/assets/{use-navigate-to-agent-DLX1nkvn.js → use-navigate-to-agent-C2NQ-36B.js} +1 -1
  343. package/dist/client/assets/{use-open-billing-url-C5lEsbaH.js → use-open-billing-url-Bewtr0D-.js} +1 -1
  344. package/dist/client/assets/{use-org-auth-client-t4l-TKT1.js → use-org-auth-client-vWdVrvgR.js} +1 -1
  345. package/dist/client/assets/{use-org-fs-49a1bhbu.js → use-org-fs-CxjQMzFd.js} +1 -1
  346. package/dist/client/assets/{use-org-repo-syncs-BunA5GFg.js → use-org-repo-syncs-dRJpc7Ti.js} +1 -1
  347. package/dist/client/assets/{use-org-sso-B_zXOLDA.js → use-org-sso-BnFa9r-G.js} +1 -1
  348. package/dist/client/assets/{use-organization-roles-Bc45ILhm.js → use-organization-roles-D9hV-WPT.js} +1 -1
  349. package/dist/client/assets/{use-organization-settings-laAOR3Cm.js → use-organization-settings-CE5BJyh9.js} +1 -1
  350. package/dist/client/assets/{use-panel-navigate-Bghh8kV3.js → use-panel-navigate-CXkMPISv.js} +1 -1
  351. package/dist/client/assets/{use-project-native-view-presence-C3Vtd78t.js → use-project-native-view-presence-D4-BL2Rg.js} +1 -1
  352. package/dist/client/assets/{use-project-scope-DH5nL_oD.js → use-project-scope-BOj2O9A_.js} +1 -1
  353. package/dist/client/assets/{use-recent-apps-D6yVH6-8.js → use-recent-apps-Cj-iBJUa.js} +1 -1
  354. package/dist/client/assets/{use-releases-G0pirYfu.js → use-releases-2-Z6BMdW.js} +1 -1
  355. package/dist/client/assets/{use-reports-diagnostic-BKJYEIJX.js → use-reports-diagnostic-D--oIp45.js} +1 -1
  356. package/dist/client/assets/use-sandbox-events-BVhJrX2Z.js +2 -0
  357. package/dist/client/assets/{use-secrets-DszBqpzD.js → use-secrets-CQ9dfY46.js} +1 -1
  358. package/dist/client/assets/use-section-preview-base-CrcAXE9z.js +1 -0
  359. package/dist/client/assets/use-session-runtime-CqJF6neP.js +1 -0
  360. package/dist/client/assets/{use-sidebar-collapsed-CuPY8XXm.js → use-sidebar-collapsed-NZNztmvG.js} +1 -1
  361. package/dist/client/assets/{use-tags-BsXvHuTC.js → use-tags-BG7cxCCb.js} +1 -1
  362. package/dist/client/assets/{use-task-board-analytics-BtNGPBbp.js → use-task-board-analytics-BhvhSxL9.js} +1 -1
  363. package/dist/client/assets/{use-task-board-events-BARWSwfj.js → use-task-board-events-CtQgceab.js} +1 -1
  364. package/dist/client/assets/{use-task-board-item-prs-BhAhDKGd.js → use-task-board-item-prs-Dp099nXL.js} +1 -1
  365. package/dist/client/assets/{use-task-metadata-Dd-9Qkoq.js → use-task-metadata-BBoC1uvX.js} +1 -1
  366. package/dist/client/assets/{use-thread-analytics-B9Rm3t_E.js → use-thread-analytics-g0_FCkSl.js} +1 -1
  367. package/dist/client/assets/{use-thread-outputs-CoFWg3_v.js → use-thread-outputs-C38yfNsJ.js} +1 -1
  368. package/dist/client/assets/useInfiniteQuery-CxzyY6DS.js +1 -0
  369. package/dist/client/assets/{useQueries-_Urb_S-y.js → useQueries-DSs3oNbf.js} +1 -1
  370. package/dist/client/assets/useSuspenseInfiniteQuery-CWvS_hOW.js +1 -0
  371. package/dist/client/assets/{users-BXTFPRVd.js → users-BAyRTNUi.js} +1 -1
  372. package/dist/client/assets/{utils-CduIoZ0d.js → utils-t1gjPfET.js} +1 -1
  373. package/dist/client/assets/{variant-calendar-D0iLcmjF.js → variant-calendar-BYITnHO8.js} +1 -1
  374. package/dist/client/assets/{variant-draft-pointer-HWAlFj6Z.js → variant-draft-pointer-Cjn_TXkR.js} +1 -1
  375. package/dist/client/assets/{virtual-mcp-Xd6PvE5_.js → virtual-mcp-cTWrWR4Y.js} +1 -1
  376. package/dist/client/assets/{watch-sse-pool-BoG6Bqps.js → watch-sse-pool-C9NPGTmI.js} +1 -1
  377. package/dist/client/index.html +2 -2
  378. package/dist/server/migrate.js +214 -209
  379. package/dist/server/server.js +633 -633
  380. package/package.json +1 -1
  381. package/dist/client/assets/ReferenceLine-CJq91vhq.js +0 -1
  382. package/dist/client/assets/agent-analytics-2BuaXhJ4.js +0 -2
  383. package/dist/client/assets/agent-app-DW_869sy.js +0 -1
  384. package/dist/client/assets/agent-assets-CPVwuId5.js +0 -1
  385. package/dist/client/assets/agent-calendar-CV9Ef0wP.js +0 -1
  386. package/dist/client/assets/agent-deck-OUciFfON.js +0 -1
  387. package/dist/client/assets/agent-experiments-BwjYQ0V4.js +0 -1
  388. package/dist/client/assets/agent-file-CStNgNPQ.js +0 -1
  389. package/dist/client/assets/agent-library-Bf2YaEvb.js +0 -1
  390. package/dist/client/assets/agent-library-file-DAttgEac.js +0 -1
  391. package/dist/client/assets/agent-monitor-DIe6BVqe.js +0 -1
  392. package/dist/client/assets/agent-overview-popLuSBk.js +0 -1
  393. package/dist/client/assets/agent-releases-CZVpd2dN.js +0 -2
  394. package/dist/client/assets/agent-settings-C6L22aS3.js +0 -1
  395. package/dist/client/assets/agent-site-editor-code-Dnn-bhoB.js +0 -2
  396. package/dist/client/assets/agent-site-editor-content-Bt6vrV5b.js +0 -1
  397. package/dist/client/assets/agent-site-editor-preview-q3wCu8-N.js +0 -1
  398. package/dist/client/assets/agent-view-B1o861lr.js +0 -1
  399. package/dist/client/assets/api-keys-DfU9uedt.js +0 -1
  400. package/dist/client/assets/app-editor-Cq-B0QFL.js +0 -1
  401. package/dist/client/assets/blocks-tab-states-Chq5j0oT.js +0 -1
  402. package/dist/client/assets/campaigns-view-CwEmfYeP.js +0 -1
  403. package/dist/client/assets/category-editor-C-13e8GC.js +0 -1
  404. package/dist/client/assets/cms-settings-editor-CHoKFct5.js +0 -1
  405. package/dist/client/assets/coming-soon-page-6F4aAL8E.js +0 -1
  406. package/dist/client/assets/context-0XuHSild.js +0 -1
  407. package/dist/client/assets/home-DkYJf0RN.js +0 -1
  408. package/dist/client/assets/hosted-publish-api-CK3ZnEoi.js +0 -1
  409. package/dist/client/assets/hosted-publish-feedback-BG4t8HgW.js +0 -1
  410. package/dist/client/assets/index-EoMx4WDO.css +0 -1
  411. package/dist/client/assets/index-j4NUsiRT.js +0 -2
  412. package/dist/client/assets/input-DIcILgWd.js +0 -17
  413. package/dist/client/assets/library-BQ9URfiH.js +0 -1
  414. package/dist/client/assets/monitoring-BmpcQtwP.js +0 -1
  415. package/dist/client/assets/named-rule-uses-Mu_Msc9v.js +0 -1
  416. package/dist/client/assets/named-rule-view-CN2yeHp5.js +0 -1
  417. package/dist/client/assets/openai-conversation-_LIGb37e.js +0 -3
  418. package/dist/client/assets/order-monitor-day-DLFR-weA.js +0 -1
  419. package/dist/client/assets/parse-sections-YhOUxu7l.js +0 -1
  420. package/dist/client/assets/plan-Iixr6Ywe.js +0 -1
  421. package/dist/client/assets/post-calendar--v0MjZPE.js +0 -1
  422. package/dist/client/assets/product-picker-dialog-oD9OPZfl.js +0 -1
  423. package/dist/client/assets/project-app-view-CZXBsQ0a.js +0 -1
  424. package/dist/client/assets/project-reports-Crv9B-vM.js +0 -1
  425. package/dist/client/assets/project-tasks-Cz-57jQh.js +0 -1
  426. package/dist/client/assets/record-editor-d52mwz1n.js +0 -1
  427. package/dist/client/assets/redirect-editor-C-WKtN9s.js +0 -1
  428. package/dist/client/assets/releases-api-q3AffL1J.js +0 -1
  429. package/dist/client/assets/reports-B3miutne.js +0 -1
  430. package/dist/client/assets/reports-tab-Clf7FxSU.js +0 -2
  431. package/dist/client/assets/repositories-CxdgYwWQ.js +0 -1
  432. package/dist/client/assets/repositories-D42Ai47E.js +0 -1
  433. package/dist/client/assets/repository-picker-BXaWFfDW.js +0 -1
  434. package/dist/client/assets/route-4SgoFvu0.js +0 -1
  435. package/dist/client/assets/route-BEESJELS.js +0 -1
  436. package/dist/client/assets/route-D6eBZFy3.js +0 -1
  437. package/dist/client/assets/sandbox-lifecycle-context-DdMgF1Lv.js +0 -1
  438. package/dist/client/assets/sections-editor-DD9uWqQ8.js +0 -4
  439. package/dist/client/assets/seo-editor-Bf-sfYSP.js +0 -1
  440. package/dist/client/assets/settings-tab-DpQMA4J6.js +0 -1
  441. package/dist/client/assets/site-draft-view-Cho80MC6.js +0 -2
  442. package/dist/client/assets/site-editor-34XlqmyW.js +0 -1
  443. package/dist/client/assets/tasks-C_346UtB.js +0 -1
  444. package/dist/client/assets/use-apply-named-rule-B_CXDUdG.js +0 -1
  445. package/dist/client/assets/use-content-sync-D_qyLHCv.js +0 -1
  446. package/dist/client/assets/use-fast-preview-draft-url-CSz1rYUo.js +0 -1
  447. package/dist/client/assets/use-main-panel-tabs-CVsgtXg7.js +0 -1
  448. package/dist/client/assets/use-move-blocks-Dm4etxGk.js +0 -1
  449. package/dist/client/assets/use-section-preview-base-BASvFHv_.js +0 -1
  450. package/dist/client/assets/useInfiniteQuery-wCORGPw3.js +0 -1
  451. package/dist/client/assets/useSuspenseInfiniteQuery-JvpRoEFG.js +0 -1
@@ -1 +0,0 @@
1
- import{c as T,b as be,j as o,r as te,av as Ne,B as we,h as _e}from"./index-ifZGovK1.js";import{a4 as he}from"./agent-icon--EtIPqub.js";import{S as ve}from"./scroll-area-9wUBmncr.js";import{F as ye,ab as Ee,i as Pe,k as Te,ac as Fe,h as Re,aE as Ce}from"./runnable-block-editor-CqYgijVY.js";import{t as Ke}from"./parse-sections-YhOUxu7l.js";import{u as ze,a as De,P as $e}from"./page-seo-form-CrgZFHtq.js";import{a as je}from"./Image01-BCnLFq1D.js";import{u as Be,m as Ie}from"./use-content-sync-D_qyLHCv.js";import"./AlertCircle-CUAx3A4b.js";import"./Tool01-BsK9c3-e.js";import"./ArrowUp-EL0FBv9C.js";import"./ArrowLeft-BWCsylYe.js";import"./LinkBroken01-DcsqjBuj.js";import"./ShoppingBag01-aJuRSlBz.js";import"./ZoomOut-DytgoG2i.js";import"./Building02-PifDTlhb.js";import"./CheckCircle-CMGqXocs.js";import"./ChevronUp-x46FJEcD.js";import"./ChevronSelectorVertical-BSRBjpBn.js";import"./UserSquare-BBEl_BxL.js";import"./Copy01-OBSYmimV.js";import"./CreditCard01-DWsSThAm.js";import"./DotsVertical-jkvtcdek.js";import"./Globe04-blkS_Kfg.js";import"./SwitchHorizontal01-B5WFt7_0.js";import"./Key01-CG7Kua6O.js";import"./Link01-8aKNfNRw.js";import"./Minus-B38cW2ZC.js";import"./Monitor01-DQEkUL3d.js";import"./Sun-k4hypx5Q.js";import"./Play-Ns9aRVTY.js";import"./Plus-vkM1FxVr.js";import"./SearchMd-Cp6J-1Iu.js";import"./Trash01-Z1ezoy3S.js";import"./Upload01-B3-nlnKa.js";import"./User01-C2Sw39bs.js";import"./Users01-DMFeioyM.js";import"./XClose-BdwIxxCT.js";import"./index-BdQq_4o_.js";import"./utils-CduIoZ0d.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-Ck7rgrik.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-CnlVGt-G.js";import"./use-copy-Cn8Org7G.js";import"./usage-stats-BecGIkLk.js";import"./tool-namespace-DIE_8J9o.js";import"./form-D4PspedZ.js";import"./label-Dhoh3DcI.js";import"./utils-CVEq3hMx.js";import"./markdown-prFeEkT4.js";import"./location-V0VwTJTt.js";import"./use-mobile-CKoO3XSk.js";import"./use-panel-navigate-Bghh8kV3.js";import"./thread-route-C7RSGMhP.js";import"./use-project-scope-DH5nL_oD.js";import"./repository-binding-DtIeSvDY.js";import"./use-mcp-client-D1kFCZ4v.js";import"./auth-C_nDagDA.js";import"./tooltip-gMeEuHtO.js";import"./index-DNa7Epd0.js";import"./use-decopilot-events-Cp8NaBPU.js";import"./thread-intent-7GmQH5mt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BoG6Bqps.js";import"./task-board-BrTYr-oE.js";import"./schema-Cn4x5iT-.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-DXm8btNS.js";import"./autosend-xoWUmECR.js";import"./use-ai-providers-CAt_9H4n.js";import"./use-organization-settings-laAOR3Cm.js";import"./use-clock-tick-DflKMAWl.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-fHjuxWIZ.js";import"./types-CHFSNT7a.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-U7D4A6nk.js";import"./avatar-DHKJiyOX.js";import"./command-BlBQgQPI.js";import"./index-BCHFFeZZ.js";import"./integration-icon-D1aQLe0v.js";import"./project-icon-ZadU5ZjL.js";import"./new-project-dialog-DFsG79bb.js";import"./repository-import-picker-C2sQ94O1.js";import"./use-navigate-to-agent-DLX1nkvn.js";import"./repository-picker-BXaWFfDW.js";import"./useInfiniteQuery-wCORGPw3.js";import"./infiniteQueryObserver-DvmMaiCa.js";import"./collection-search--9d0M5sc.js";import"./use-debounced-value-c5JdkW89.js";import"./required-auth-layout-4jyUcmCy.js";import"./use-org-sso-B_zXOLDA.js";import"./sheet-Dhe0uPV2.js";import"./use-connection-CBKH8IwL.js";import"./use-mcp-prompts-wKDmQlGB.js";import"./use-thread-outputs-CoFWg3_v.js";import"./file-type-icon-DHFVwXjA.js";import"./switch-ByCU93P4.js";import"./textarea-Bbbnnl4r.js";import"./popover-DaReiQzV.js";import"./blocks-tab-states-Chq5j0oT.js";import"./slider-CLUaEqdg.js";import"./index-Bxkd37dZ.js";import"./tooltipContext-BQS7kWxi.js";import"./CategoricalChart-QwBn7EzX.js";import"./index-gqp4B5qj.js";import"./ActiveShapeUtils-CHmxGMIj.js";import"./Sector-BeXkYaJv.js";import"./symbol-BQLM2_V8.js";import"./input-DIcILgWd.js";import"./icon-button-HZwQKD3a.js";import"./chat-draft-WGnppXw7.js";import"./select-DUEGSJco.js";import"./tabs-C7f3nqQx.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-D8w-JIDW.js";import"./toggle-group-CXUKmPFr.js";import"./use-open-billing-url-C5lEsbaH.js";import"./index-B32YFtAw.js";import"./checkbox-vFQy8MvV.js";import"./ai-providers-logos-DD3qZ33J.js";import"./drawer-0sYDH2mt.js";import"./input-BeDIlaby.js";import"./suggestion-BNEVVm5c.js";import"./use-org-fs-49a1bhbu.js";import"./question-004-sINsf4GQ.js";import"./use-members-0ZBHc0S5.js";import"./use-org-auth-client-t4l-TKT1.js";import"./feature-paywall-hsFyGLR_.js";import"./plan-ladder-BKLU8eo8.js";import"./add-connection-dialog-F6QQAEZv.js";import"./extract-connection-data-CBAyhzk-.js";import"./metadata-D72DunRR.js";import"./connection-Bo3v2rj5.js";import"./url-slug-D37s8EDd.js";import"./connection-card-DMfcnulT.js";import"./connection-slug-CITJ0kGN.js";import"./schema-Dvc5tPTN.js";import"./connection-form-helpers-A3QfJozi.js";import"./authenticate-and-persist-oauth-CpcQdSQ-.js";import"./mcp-oauth-CNKUkWMd.js";import"./mcp-oauth-CTJ5Iw4i.js";import"./collection-tabs-BfpnVdlQ.js";import"./badge-ux-RK1YK.js";import"./use-infinite-scroll-Cuyf7850.js";import"./useSuspenseInfiniteQuery-JvpRoEFG.js";import"./use-task-board-events-BARWSwfj.js";import"./use-chat-layout-state-24wCHq_-.js";import"./empty-state-D6RWdvUz.js";import"./monaco-editor-Wx_2qGOP.js";import"./editor-BctLuJLS.js";import"./calendar-qN6CeKGa.js";import"./editor-classes-BnPaf--r.js";import"./core.esm-DJ5llHMe.js";import"./sortable.esm-CkqHW6-y.js";import"./combobox-BMxhMbUn.js";import"./alert-dialog-C-DaggA1.js";import"./search-input-1DLvCYgl.js";import"./use-file-configs-DW0hmZjE.js";import"./asset-utils-Cb8p2lKk.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-git-api-CH_-QFpD.js";import"./sandbox-url-D3mC8qhT.js";import"./alert-BDbwlXZm.js";import"./index-j4NUsiRT.js";import"./experiments-tab-choice-CMHPX5ZC.js";function M(d){return typeof d=="string"&&d.trim()?d:void 0}function ge(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ye(t)}catch{return}return ye(d)}}function Le(d){if(!d)return{};const e=M(d.title),t=M(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:M(d.description),image:M(d.image),favicon:M(d.favicon)}}function Oe(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const Ue=[{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 ue(d){const e=T.c(10),{src:t,className:a,iconSize:y}=d,l=y===void 0?20:y;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]!==a||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:a,style:m}),e[1]=a,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==l?(i=o.jsx(je,{size:l}),e[5]=l,e[6]=i):i=e[6];let n;return e[7]!==a||e[8]!==i?(n=o.jsx("div",{className:a,style:s,children:i}),e[7]=a,e[8]=i,e[9]=n):n=e[9],n}function Ae(d){const e=T.c(33),{seo:t,host:a,path:y,t:l}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let n;e[2]!==t.favicon?(n=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(je,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=n):n=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]!==a?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:a}),e[5]=a,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let r;e[8]!==a||e[9]!==y?(r=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[a,y]}),e[8]=a,e[9]=y,e[10]=r):r=e[10];let c;e[11]!==p||e[12]!==r?(c=o.jsxs("div",{className:"min-w-0",children:[p,r]}),e[11]=p,e[12]=r,e[13]=c):c=e[13];let x;e[14]!==n||e[15]!==c?(x=o.jsxs("div",{className:"flex items-center gap-2",children:[n,c]}),e[14]=n,e[15]=c,e[16]=x):x=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#1a0dab"},e[17]=u):u=e[17];let h;e[18]!==t.title||e[19]!==l?(h=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=l,e[20]=h):h=e[20];let v;e[21]!==h?(v=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:u,children:h}),e[21]=h,e[22]=v):v=e[22];let b;e[23]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#4d5156"},e[23]=b):b=e[23];let S;e[24]!==t.description||e[25]!==l?(S=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=l,e[26]=S):S=e[26];let j;e[27]!==S?(j=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:b,children:S}),e[27]=S,e[28]=j):j=e[28];let k;return e[29]!==v||e[30]!==j||e[31]!==x?(k=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[x,v,j]}),e[29]=v,e[30]=j,e[31]=x,e[32]=k):k=e[32],k}function Me(d){const e=T.c(26),{seo:t,host:a,t:y}=d;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #e2e8f0"},e[0]=l):l=e[0];let s;e[1]!==t.image?(s=o.jsx(ue,{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 n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n={color:"#8a9099"},e[4]=n):n=e[4];let m;e[5]!==a?(m=o.jsx("div",{className:"truncate text-[11px]",style:n,children:a}),e[5]=a,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]!==y?(f=t.title??y("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=y,e[10]=f):f=e[10];let r;e[11]!==f?(r=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=r):r=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let x;e[14]!==t.description||e[15]!==y?(x=t.description??y("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=y,e[16]=x):x=e[16];let u;e[17]!==x?(u=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:x}),e[17]=x,e[18]=u):u=e[18];let h;e[19]!==u||e[20]!==m||e[21]!==r?(h=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,r,u]}),e[19]=u,e[20]=m,e[21]=r,e[22]=h):h=e[22];let v;return e[23]!==h||e[24]!==s?(v=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:l,children:[s,h]}),e[23]=h,e[24]=s,e[25]=v):v=e[25],v}function Ge(d){const e=T.c(36),{seo:t,host:a,accent:y,t:l}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let n;e[2]!==l?(n=l("sectionsEditor.seoPreview.chatCardHint"),e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:n}),e[4]=n,e[5]=m):m=e[5];const p=`3px solid ${y}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let r;e[8]!==t.image?(r=o.jsx(ue,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=r):r=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let x;e[11]!==t.title||e[12]!==l?(x=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=l,e[13]=x):x=e[13];let u;e[14]!==x?(u=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:x}),e[14]=x,e[15]=u):u=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#60666c"},e[16]=h):h=e[16];let v;e[17]!==t.description||e[18]!==l?(v=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=l,e[19]=v):v=e[19];let b;e[20]!==v?(b=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:h,children:v}),e[20]=v,e[21]=b):b=e[21];let S;e[22]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#8a9099"},e[22]=S):S=e[22];let j;e[23]!==a?(j=o.jsx("div",{className:"mt-0.5 text-[10px]",style:S,children:a}),e[23]=a,e[24]=j):j=e[24];let k;e[25]!==u||e[26]!==b||e[27]!==j?(k=o.jsxs("div",{className:"px-2.5 py-1.5",children:[u,b,j]}),e[25]=u,e[26]=b,e[27]=j,e[28]=k):k=e[28];let g;e[29]!==k||e[30]!==f||e[31]!==r?(g=o.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:f,children:[r,k]}),e[29]=k,e[30]=f,e[31]=r,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,g]}),e[33]=g,e[34]=m,e[35]=N):N=e[35],N}function He(d){const e=T.c(39),{seo:t,host:a,accent:y,dark:l,t:s}=d,i=l?"#2b2d31":"#fff",n=l?"#00a8fc":"#1264a3",m=l?"#dbdee1":"#3b4045",p=l?"#949ba4":"#8a9099",f=l?"none":"1px solid #e2e8f0";let r;e[0]!==i||e[1]!==f?(r={background:i,border:f},e[0]=i,e[1]=f,e[2]=r):r=e[2];const c=`3px solid ${y}`;let x;e[3]!==c?(x={borderLeft:c,borderRadius:2},e[3]=c,e[4]=x):x=e[4];let u;e[5]!==p?(u={color:p},e[5]=p,e[6]=u):u=e[6];let h;e[7]!==a||e[8]!==u?(h=o.jsx("div",{className:"text-[10px]",style:u,children:a}),e[7]=a,e[8]=u,e[9]=h):h=e[9];let v;e[10]!==n?(v={color:n},e[10]=n,e[11]=v):v=e[11];let b;e[12]!==t.title||e[13]!==s?(b=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=b):b=e[14];let S;e[15]!==v||e[16]!==b?(S=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:b}),e[15]=v,e[16]=b,e[17]=S):S=e[17];let j;e[18]!==m?(j={color:m},e[18]=m,e[19]=j):j=e[19];let k;e[20]!==t.description||e[21]!==s?(k=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=k):k=e[22];let g;e[23]!==j||e[24]!==k?(g=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:j,children:k}),e[23]=j,e[24]=k,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==h||e[28]!==S?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[h,S,g]}),e[26]=g,e[27]=h,e[28]=S,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(ue,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==x?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:x,children:[N,w]}),e[32]=N,e[33]=w,e[34]=x,e[35]=_):_=e[35];let E;return e[36]!==_||e[37]!==r?(E=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:r,children:_}),e[36]=_,e[37]=r,e[38]=E):E=e[38],E}function Ve(d){const e=T.c(21),{platform:t,seo:a,host:y,path:l,t:s}=d;let i;e[0]!==y||e[1]!==l||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==a||e[6]!==s?(i=t.layout==="search"?o.jsx(Ae,{seo:a,host:y,path:l,t:s}):t.layout==="card"?o.jsx(Me,{seo:a,host:y,path:l,t:s}):t.layout==="chat"?o.jsx(Ge,{seo:a,host:y,path:l,accent:t.color,t:s}):o.jsx(He,{seo:a,host:y,path:l,accent:t.color,dark:t.id==="discord",t:s}),e[0]=y,e[1]=l,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=a,e[6]=s,e[7]=i):i=e[7];const n=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let r;e[15]!==m||e[16]!==f?(r=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=r):r=e[17];let c;return e[18]!==n||e[19]!==r?(c=o.jsxs("div",{children:[r,n]}),e[18]=n,e[19]=r,e[20]=c):c=e[20],c}function We(d){const e=T.c(18),{seo:t,url:a,path:y}=d,l=y===void 0?"/":y,s=be();let i,n,m;if(e[0]!==t||e[1]!==a){const v=Le(t);i=v,n=ge(v.image,a),m=ge(v.favicon,a),e[0]=t,e[1]=a,e[2]=i,e[3]=n,e[4]=m}else i=e[2],n=e[3],m=e[4];let p;e[5]!==i||e[6]!==n||e[7]!==m?(p={...i,image:n,favicon:m},e[5]=i,e[6]=n,e[7]=m,e[8]=p):p=e[8];const f=p;let r;e[9]!==a?(r=Oe(a),e[9]=a,e[10]=r):r=e[10];const c=r,x=l==="/"?"":l;let u;e[11]!==x||e[12]!==c||e[13]!==s||e[14]!==f?(u=Ue.map(v=>o.jsx(Ve,{platform:v,seo:f,host:c,path:x,t:s},v.id)),e[11]=x,e[12]=c,e[13]=s,e[14]=f,e[15]=u):u=e[15];let h;return e[16]!==u?(h=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:u}),e[16]=u,e[17]=h):h=e[17],h}function ls(d){const e=T.c(73),{orgSlug:t,virtualMcpId:a,branch:y,decofile:l,meta:s,target:i,previewBaseUrl:n,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,r=be(),c=Ee(l,i,s),x=Be(a,y);let u;e[0]!==x?(u=Ie(x),e[0]=x,e[1]=u):u=e[1];const h=!u,v=c?.seoData,b=i.kind==="site"?"site":i.pageKey,[S,j]=te.useState(b),[k,g]=te.useState(null),[N,w]=te.useState(0),[_,E]=te.useState(void 0);S!==b&&(j(b),g(null),E(void 0),w(Je));const{persistSeo:K,persistRawSeo:oe,flush:ie,isPending:se}=ze({orgSlug:t,virtualMcpId:a,branch:y,target:i,resolved:c,meta:s,onSaved:m}),G=i.kind==="page",Se=G?c?.rawSeoData:void 0,A=_!==void 0?_:Se,ke=G?Pe(A)??void 0:void 0,P=k??ke??v??{},F=c?De(P,c):null,z=F&&(!G||Te(A))?Ke(F,s):null;let H;e[2]!==s?(H=Fe(s),e[2]=s,e[3]=H):H=e[3];const re=H;let R,V;e[4]!==l||e[5]!==P||e[6]!==s||e[7]!==i.kind?(R=i.kind==="page"?Re(l,s)?.seoData??{}:{},V=i.kind==="page"?Xe(R,P):P,e[4]=l,e[5]=P,e[6]=s,e[7]=i.kind,e[8]=R,e[9]=V):(R=e[8],V=e[9]);const le=V;let W;e[10]!==K||e[11]!==c||e[12]!==g?(W=C=>{if(!c)return;const xe=C;g(xe),K(xe)},e[10]=K,e[11]=c,e[12]=g,e[13]=W):W=e[13];const ae=W;let q;e[14]!==g?(q=()=>g(null),e[14]=g,e[15]=q):q=e[15];const ce=q;let J;e[16]!==w?(J=()=>w(qe),e[16]=w,e[17]=J):J=e[17];const ne=J;let Q;e[18]!==ie||e[19]!==f?(Q=()=>{ie(),f?.()},e[18]=ie,e[19]=f,e[20]=Q):Q=e[20];const me=Q,D=i.kind==="page"?i.path:"/";let X;e[21]!==D||e[22]!==n||e[23]!==i.kind?(X=i.kind==="page"&&n?Qe(D,n):n??null,e[21]=D,e[22]=n,e[23]=i.kind,e[24]=X):X=e[24];const de=X;let Y;e[25]!==c||e[26]!==r||e[27]!==i.kind?(Y=i.kind==="site"?r("sectionsEditor.seoEditor.noSiteSeoBlock"):r(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[25]=c,e[26]=r,e[27]=i.kind,e[28]=Y):Y=e[28];const pe=Y,Z=G&&c,fe=i.kind==="site"&&c&&z;let $;e[29]!==me||e[30]!==r||e[31]!==i.kind||e[32]!==i.pageName?($=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:me,title:i.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(Ne,{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(he,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:r("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",r("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[29]=me,e[30]=r,e[31]=i.kind,e[32]=i.pageName,e[33]=$):$=e[33];let B;e[34]!==se?(B=se&&o.jsx(_e,{className:"size-3.5 text-muted-foreground"}),e[34]=se,e[35]=B):B=e[35];let I;e[36]!==p||e[37]!==r||e[38]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(we,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(he,{size:14}),r("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[36]=p,e[37]=r,e[38]=i.kind,e[39]=I):I=e[39];let L;e[40]!==B||e[41]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[B,I]}),e[40]=B,e[41]=I,e[42]=L):L=e[42];let O;e[43]!==$||e[44]!==L?(O=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[$,L]}),e[43]=$,e[44]=L,e[45]=O):O=e[45];let U;e[46]!==F||e[47]!==h||e[48]!==ne||e[49]!==ce||e[50]!==re||e[51]!==A||e[52]!==P||e[53]!==pe||e[54]!==N||e[55]!==ae||e[56]!==D||e[57]!==oe||e[58]!==K||e[59]!==le||e[60]!==de||e[61]!==c||e[62]!==z||e[63]!==g||e[64]!==E||e[65]!==Z||e[66]!==fe||e[67]!==R||e[68]!==r?(U=!c||!Z&&!fe?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:pe}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(ve,{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:Z?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:r("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx($e,{rawSeo:A,innerSeo:P,defaultResolveType:re,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:N,siteDefaultSeo:R,onPersistRaw:C=>{E(C),oe(C)},onInnerChange:C=>{g(C),K(C)},onClearForm:ce,onBumpFormKey:ne,asyncRenderAvailable:h})]}):z&&F&&o.jsx(Ce,{schema:z,resolveType:F,value:P,formResetKey:N,onChange:ae})})}),o.jsx(ve,{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(We,{seo:le,url:de,path:D})})})]}),e[46]=F,e[47]=h,e[48]=ne,e[49]=ce,e[50]=re,e[51]=A,e[52]=P,e[53]=pe,e[54]=N,e[55]=ae,e[56]=D,e[57]=oe,e[58]=K,e[59]=le,e[60]=de,e[61]=c,e[62]=z,e[63]=g,e[64]=E,e[65]=Z,e[66]=fe,e[67]=R,e[68]=r,e[69]=U):U=e[69];let ee;return e[70]!==O||e[71]!==U?(ee=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[O,U]}),e[70]=O,e[71]=U,e[72]=ee):ee=e[72],ee}function qe(d){return d+1}function Je(d){return d+1}function Qe(d,e){try{return new URL(d,e).href}catch{return e}}function Xe(d,e){const t=e.__resolveType,a=d.__resolveType;if(typeof t=="string"&&typeof a=="string"&&t!==a)return{...e};const y={...d};for(const[l,s]of Object.entries(e))l!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(y[l]=s));return y}export{ls as SeoEditor};
@@ -1 +0,0 @@
1
- import{c as e,j as o}from"./index-ifZGovK1.js";import{V as a}from"./index-XzZeDzj0.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/agent-site-editor-BML41A1E.js","assets/index-ifZGovK1.js","assets/index-EoMx4WDO.css","assets/chat-context-DXm8btNS.js","assets/use-panel-navigate-Bghh8kV3.js","assets/thread-route-C7RSGMhP.js","assets/use-project-scope-DH5nL_oD.js","assets/repository-binding-DtIeSvDY.js","assets/use-mcp-client-D1kFCZ4v.js","assets/auth-C_nDagDA.js","assets/autosend-xoWUmECR.js","assets/thread-intent-7GmQH5mt.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-BoG6Bqps.js","assets/task-board-BrTYr-oE.js","assets/schema-Cn4x5iT-.js","assets/slugify-CEUa2lfQ.js","assets/use-decopilot-events-Cp8NaBPU.js","assets/use-ai-providers-CAt_9H4n.js","assets/location-V0VwTJTt.js","assets/use-organization-settings-laAOR3Cm.js","assets/site-draft-actions-Dpnw67Ug.js","assets/separator-Bk_a4cod.js","assets/use-content-sync-D_qyLHCv.js","assets/sandbox-url-D3mC8qhT.js","assets/index-j4NUsiRT.js","assets/ArrowUp-EL0FBv9C.js","assets/tool-namespace-DIE_8J9o.js","assets/tooltip-gMeEuHtO.js","assets/index-DNa7Epd0.js","assets/drawer-0sYDH2mt.js","assets/collection-search--9d0M5sc.js","assets/SearchMd-Cp6J-1Iu.js","assets/use-mobile-CKoO3XSk.js","assets/use-mcp-prompts-wKDmQlGB.js","assets/usage-stats-BecGIkLk.js","assets/form-D4PspedZ.js","assets/label-Dhoh3DcI.js","assets/utils-CVEq3hMx.js","assets/markdown-prFeEkT4.js","assets/use-copy-Cn8Org7G.js","assets/Copy01-OBSYmimV.js","assets/ZoomOut-DytgoG2i.js","assets/agent-icon--EtIPqub.js","assets/AlertCircle-CUAx3A4b.js","assets/Tool01-BsK9c3-e.js","assets/ArrowLeft-BWCsylYe.js","assets/LinkBroken01-DcsqjBuj.js","assets/ShoppingBag01-aJuRSlBz.js","assets/Building02-PifDTlhb.js","assets/CheckCircle-CMGqXocs.js","assets/ChevronUp-x46FJEcD.js","assets/ChevronSelectorVertical-BSRBjpBn.js","assets/UserSquare-BBEl_BxL.js","assets/CreditCard01-DWsSThAm.js","assets/DotsVertical-jkvtcdek.js","assets/Image01-BCnLFq1D.js","assets/Globe04-blkS_Kfg.js","assets/SwitchHorizontal01-B5WFt7_0.js","assets/Key01-CG7Kua6O.js","assets/Link01-8aKNfNRw.js","assets/Minus-B38cW2ZC.js","assets/Monitor01-DQEkUL3d.js","assets/Sun-k4hypx5Q.js","assets/Play-Ns9aRVTY.js","assets/Plus-vkM1FxVr.js","assets/Trash01-Z1ezoy3S.js","assets/Upload01-B3-nlnKa.js","assets/User01-C2Sw39bs.js","assets/Users01-DMFeioyM.js","assets/XClose-BdwIxxCT.js","assets/format-time-Cq80KKvY.js","assets/differenceInSeconds-C3x8sHUj.js","assets/input-DIcILgWd.js","assets/icon-button-HZwQKD3a.js","assets/file-type-icon-DHFVwXjA.js","assets/shell-layout-U7D4A6nk.js","assets/avatar-DHKJiyOX.js","assets/use-clock-tick-DflKMAWl.js","assets/command-BlBQgQPI.js","assets/index-BCHFFeZZ.js","assets/integration-icon-D1aQLe0v.js","assets/project-icon-ZadU5ZjL.js","assets/new-project-dialog-DFsG79bb.js","assets/repository-import-picker-C2sQ94O1.js","assets/use-navigate-to-agent-DLX1nkvn.js","assets/repository-picker-BXaWFfDW.js","assets/useInfiniteQuery-wCORGPw3.js","assets/infiniteQueryObserver-DvmMaiCa.js","assets/use-debounced-value-c5JdkW89.js","assets/required-auth-layout-4jyUcmCy.js","assets/use-org-sso-B_zXOLDA.js","assets/shell-layout-CE2Eihra.css","assets/chat-draft-WGnppXw7.js","assets/select-DUEGSJco.js","assets/index-BdQq_4o_.js","assets/tabs-C7f3nqQx.js","assets/active-indicator-CCMhAsc_.js","assets/use-deco-credits-D8w-JIDW.js","assets/toggle-group-CXUKmPFr.js","assets/use-open-billing-url-C5lEsbaH.js","assets/index-B32YFtAw.js","assets/checkbox-vFQy8MvV.js","assets/ai-providers-logos-DD3qZ33J.js","assets/popover-DaReiQzV.js","assets/input-BeDIlaby.js","assets/suggestion-BNEVVm5c.js","assets/use-org-fs-49a1bhbu.js","assets/question-004-sINsf4GQ.js","assets/use-members-0ZBHc0S5.js","assets/use-org-auth-client-t4l-TKT1.js","assets/feature-paywall-hsFyGLR_.js","assets/plan-ladder-BKLU8eo8.js","assets/add-connection-dialog-F6QQAEZv.js","assets/extract-connection-data-CBAyhzk-.js","assets/metadata-D72DunRR.js","assets/connection-Bo3v2rj5.js","assets/url-slug-D37s8EDd.js","assets/connection-card-DMfcnulT.js","assets/connection-slug-CITJ0kGN.js","assets/textarea-Bbbnnl4r.js","assets/use-connection-CBKH8IwL.js","assets/schema-Dvc5tPTN.js","assets/connection-form-helpers-A3QfJozi.js","assets/authenticate-and-persist-oauth-CpcQdSQ-.js","assets/mcp-oauth-CNKUkWMd.js","assets/mcp-oauth-CTJ5Iw4i.js","assets/collection-tabs-BfpnVdlQ.js","assets/badge-ux-RK1YK.js","assets/use-infinite-scroll-Cuyf7850.js","assets/useSuspenseInfiniteQuery-JvpRoEFG.js","assets/use-task-board-events-BARWSwfj.js","assets/use-chat-layout-state-24wCHq_-.js","assets/input-Bwd_JSM8.css","assets/pair-Ck7rgrik.js","assets/collapsible-CnlVGt-G.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-fHjuxWIZ.js","assets/types-CHFSNT7a.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/sheet-Dhe0uPV2.js","assets/use-thread-outputs-CoFWg3_v.js","assets/experiments-tab-choice-CMHPX5ZC.js","assets/utils-CduIoZ0d.js","assets/sandbox-git-api-CH_-QFpD.js","assets/toolbar-icon-button-DzJeqLa2.js","assets/alert-dialog-C-DaggA1.js","assets/use-releases-G0pirYfu.js","assets/serial-task-queue-CGOeQgpr.js","assets/virtual-mcp-Xd6PvE5_.js","assets/use-fast-preview-draft-url-CSz1rYUo.js","assets/section-preview-url-7zfngvgW.js","assets/parse-sections-YhOUxu7l.js","assets/alert-BDbwlXZm.js","assets/named-rule-uses-Mu_Msc9v.js","assets/device-hint-SeLRi17j.js","assets/editor-BctLuJLS.js","assets/hosted-publish-api-CK3ZnEoi.js","assets/hosted-publish-feedback-BG4t8HgW.js","assets/save-changes-debug-nBi-n9eV.js","assets/sandbox-lifecycle-context-DdMgF1Lv.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-BjrJaWD9.js","assets/use-sidebar-collapsed-CuPY8XXm.js","assets/resizable-CQyxQjcn.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-content-Bt6vrV5b.js","assets/agent-view-guard-BuPewEB-.js","assets/use-main-panel-tabs-CVsgtXg7.js","assets/use-mcp-tools-I-kpM305.js","assets/resolve-tab-icon-56O81FJc.js","assets/use-task-metadata-Dd-9Qkoq.js","assets/preview-source-BsRLGWUP.js","assets/use-project-native-view-presence-C3Vtd78t.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-DW0hmZjE.js","assets/site-slug-DebpOoQq.js","assets/feature-gate-DQ0ZaDj1.js","assets/content-tab-CaoAhPSw.js","assets/blocks-tab-states-Chq5j0oT.js","assets/slider-CLUaEqdg.js","assets/index-Bxkd37dZ.js","assets/tooltipContext-BQS7kWxi.js","assets/CategoricalChart-QwBn7EzX.js","assets/index-gqp4B5qj.js","assets/ActiveShapeUtils-CHmxGMIj.js","assets/Sector-BeXkYaJv.js","assets/symbol-BQLM2_V8.js","assets/empty-state-D6RWdvUz.js","assets/runnable-block-editor-CqYgijVY.js","assets/switch-ByCU93P4.js","assets/scroll-area-9wUBmncr.js","assets/monaco-editor-Wx_2qGOP.js","assets/calendar-qN6CeKGa.js","assets/editor-classes-BnPaf--r.js","assets/core.esm-DJ5llHMe.js","assets/sortable.esm-CkqHW6-y.js","assets/combobox-BMxhMbUn.js","assets/search-input-1DLvCYgl.js","assets/asset-utils-Cb8p2lKk.js","assets/mustache-BzHjgnm5.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-Dm4etxGk.js","assets/empty-state-DeArX05X.js"])))=>i.map(i=>d[i]);
2
- import{k as O,l as V,m as H}from"./named-rule-view-CN2yeHp5.js";import{h as N}from"./named-rule-uses-Mu_Msc9v.js";import{aY as A,b9 as L}from"./parse-sections-YhOUxu7l.js";import{aX as y,c as _,b as T,a2 as U,j as c,n as F}from"./index-ifZGovK1.js";import{E as B}from"./empty-state-DeArX05X.js";import{u as K}from"./chat-context-DXm8btNS.js";import{u as M,l as $}from"./use-content-sync-D_qyLHCv.js";import{i as q,u as Q,S as G}from"./blocks-tab-states-Chq5j0oT.js";import{a as X}from"./use-panel-navigate-Bghh8kV3.js";const P={running:0,everyone:1,off:2};function ae(s,e){const i=A(s,"experiments");if(i.kind==="conflict")return[];const o=e?.published??null;return Object.entries(i.values).map(([n,l],a)=>{const m=O(o,"experiments",n,l),x=m==="changed"?V(o,"experiments",n):void 0;return{order:a,row:{name:n,share:l,status:L(l),uses:e?N(e,"experiments",n):0,entryState:m,...x!==void 0?{publishedShare:x}:{}}}}).sort((n,l)=>P[n.row.status]-P[l.row.status]||n.order-l.order).map(n=>n.row)}function ce(s,e){return H(s,e?.published??null,"experiments")}function de(s){const e={contentPageVariant:s.focus?.pageVariant,contentSection:s.focus?.section,contentVariant:s.focus?.variant};return s.blockKind==="page"?{contentPageId:s.blockKey,contentCollection:void 0,contentItem:void 0,...e}:{contentPageId:void 0,contentCollection:"sections",contentItem:s.blockKey,...e}}let I=null;function Y(){return I??=Promise.all([y(()=>import("./agent-site-editor-BML41A1E.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,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166])),y(()=>import("./agent-site-editor-content-Bt6vrV5b.js"),__vite__mapDeps([167,1,2,168,169,133,5,4,6,7,8,9,11,12,13,14,15,16,17,44,45,46,27,47,48,49,43,50,51,52,53,54,42,55,56,57,58,59,60,61,62,63,64,65,66,33,67,68,69,70,71,122,170,139,39,143,26,3,10,18,19,20,21,25,28,29,30,31,32,34,35,36,37,38,40,41,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,123,124,125,126,127,128,129,130,131,132,134,135,136,137,138,140,141,142,171,172,173,174,175,176,177,150,178,179,180,181,182,183,184,185,186,187,188,153,154,24,144,145,189,190,162,191,192,193,157,194,195,196,197,198,147,199,200,201,161,202,203,204]))]).catch(s=>{throw I=null,s}),I}function z(s){return e=>{if(!e)return;const i=()=>{s().catch(()=>{})};if(typeof requestIdleCallback=="function"){const t=requestIdleCallback(i,{timeout:2e3});return()=>cancelIdleCallback(t)}const o=setTimeout(i,200);return()=>clearTimeout(o)}}const J=z(Y);function R(s){const e=_.c(7),{icon:i,title:o,description:t,action:n}=s;let l;e[0]!==n?(l=n?{children:n.label,onClick:n.onClick}:void 0,e[0]=n,e[1]=l):l=e[1];let a;return e[2]!==t||e[3]!==i||e[4]!==l||e[5]!==o?(a=c.jsx(F,{children:c.jsx(F.Content,{children:c.jsx(F.Container,{children:c.jsx(B,{icon:i,title:o,description:t,buttonProps:l})})})}),e[2]=t,e[3]=i,e[4]=l,e[5]=o,e[6]=a):a=e[6],a}function ue(s){const e=_.c(28),{virtualMcpId:i,icon:o,copy:t,skeleton:n,children:l}=s,a=T(),{org:m}=U(),x=K(),p=x?.currentBranch??null,g=M(i,p),{openPanel:k}=X();if(!p){const r=t.noDraftTitle,v=t.noDraftDesc;let d;e[0]!==a?(d=a("sectionsEditor.namedRules.openEditor"),e[0]=a,e[1]=d):d=e[1];let u;e[2]!==k?(u=()=>k("content"),e[2]=k,e[3]=u):u=e[3];let f;e[4]!==d||e[5]!==u?(f={label:d,onClick:u},e[4]=d,e[5]=u,e[6]=f):f=e[6];let b;return e[7]!==t.noDraftDesc||e[8]!==t.noDraftTitle||e[9]!==o||e[10]!==f?(b=c.jsx(R,{icon:o,title:r,description:v,action:f}),e[7]=t.noDraftDesc,e[8]=t.noDraftTitle,e[9]=o,e[10]=f,e[11]=b):b=e[11],b}if(q(g)){let r;return e[12]===Symbol.for("react.memo_cache_sentinel")?(r=c.jsx(G,{}),e[12]=r):r=e[12],r}if(g.kind==="pending"){let r;return e[13]!==n?(r=c.jsx(c.Fragment,{children:n}),e[13]=n,e[14]=r):r=e[14],r}if(g.kind!=="protocol"){let r;return e[15]!==t.loadFailed||e[16]!==t.loadFailedHint||e[17]!==o?(r=c.jsx(R,{icon:o,title:t.loadFailed,description:t.loadFailedHint}),e[15]=t.loadFailed,e[16]=t.loadFailedHint,e[17]=o,e[18]=r):r=e[18],r}const S=x?.taskId??null;let h;return e[19]!==p||e[20]!==l||e[21]!==t||e[22]!==o||e[23]!==m.slug||e[24]!==n||e[25]!==S||e[26]!==i?(h=c.jsx(W,{orgSlug:m.slug,virtualMcpId:i,branch:p,threadId:S,icon:o,copy:t,skeleton:n,children:l},p),e[19]=p,e[20]=l,e[21]=t,e[22]=o,e[23]=m.slug,e[24]=n,e[25]=S,e[26]=i,e[27]=h):h=e[27],h}function W(s){const e=_.c(30),{orgSlug:i,virtualMcpId:o,branch:t,threadId:n,icon:l,copy:a,skeleton:m,children:x}=s,p=T();let g;e[0]!==t||e[1]!==i||e[2]!==n||e[3]!==o?(g={orgSlug:i,virtualMcpId:o,branch:t,threadId:n,previewUrl:null},e[0]=t,e[1]=i,e[2]=n,e[3]=o,e[4]=g):g=e[4];const k=g,S=$(k),h=Q(k),r=S.data,v=h.data;if(!r||!v){if(S.isError||h.isError){const b=a.loadFailed,w=a.loadFailedHint;let E;e[5]!==p?(E=p("sectionsEditor.namedRules.tryAgain"),e[5]=p,e[6]=E):E=e[6];let C;e[7]!==S||e[8]!==h?(C=()=>{S.refetch(),h.refetch()},e[7]=S,e[8]=h,e[9]=C):C=e[9];let D;e[10]!==E||e[11]!==C?(D={label:E,onClick:C},e[10]=E,e[11]=C,e[12]=D):D=e[12];let j;return e[13]!==a.loadFailed||e[14]!==a.loadFailedHint||e[15]!==l||e[16]!==D?(j=c.jsx(R,{icon:l,title:b,description:w,action:D}),e[13]=a.loadFailed,e[14]=a.loadFailedHint,e[15]=l,e[16]=D,e[17]=j):j=e[17],j}let f;return e[18]!==m?(f=c.jsx(c.Fragment,{children:m}),e[18]=m,e[19]=f):f=e[19],f}let d;e[20]!==t||e[21]!==x||e[22]!==r||e[23]!==v||e[24]!==i||e[25]!==n||e[26]!==o?(d=x({orgSlug:i,virtualMcpId:o,branch:t,threadId:n,decofile:r,meta:v}),e[20]=t,e[21]=x,e[22]=r,e[23]=v,e[24]=i,e[25]=n,e[26]=o,e[27]=d):d=e[27];let u;return e[28]!==d?(u=c.jsx("div",{className:"contents",ref:J,children:d}),e[28]=d,e[29]=u):u=e[29],u}export{ue as S,R as a,de as c,ae as e,ce as r};
@@ -1 +0,0 @@
1
- import{c as u,r as g,j as n,F,Z as G,_ as H,a as E,k as P,b as O,n as y,L as M}from"./index-ifZGovK1.js";import{C as V}from"./chat-context-DXm8btNS.js";import{C as x}from"./index-BjrJaWD9.js";import{L}from"./index-DgfcOEet.js";import{B as K}from"./blocks-preview-workspace-context-CCLLqfhM.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as Z}from"./use-content-sync-D_qyLHCv.js";import{u as q,L as B,P as Q,S as X}from"./preview-tab-CzS9kIxI.js";import{C as Y}from"./content-tab-CaoAhPSw.js";import{T as tt}from"./tab-icon-glyph-Cz_BoFAU.js";import{r as et}from"./resolve-tab-icon-56O81FJc.js";import ot from"./agent-site-editor-BML41A1E.js";import"./use-panel-navigate-Bghh8kV3.js";import"./thread-route-C7RSGMhP.js";import"./use-project-scope-DH5nL_oD.js";import"./repository-binding-DtIeSvDY.js";import"./use-mcp-client-D1kFCZ4v.js";import"./auth-C_nDagDA.js";import"./autosend-xoWUmECR.js";import"./thread-intent-7GmQH5mt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BoG6Bqps.js";import"./task-board-BrTYr-oE.js";import"./schema-Cn4x5iT-.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-Cp8NaBPU.js";import"./use-ai-providers-CAt_9H4n.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-laAOR3Cm.js";import"./use-mobile-CKoO3XSk.js";import"./use-sidebar-collapsed-CuPY8XXm.js";import"./use-chat-layout-state-24wCHq_-.js";import"./agent-icon--EtIPqub.js";import"./AlertCircle-CUAx3A4b.js";import"./Tool01-BsK9c3-e.js";import"./ArrowUp-EL0FBv9C.js";import"./ArrowLeft-BWCsylYe.js";import"./LinkBroken01-DcsqjBuj.js";import"./ShoppingBag01-aJuRSlBz.js";import"./ZoomOut-DytgoG2i.js";import"./Building02-PifDTlhb.js";import"./CheckCircle-CMGqXocs.js";import"./ChevronUp-x46FJEcD.js";import"./ChevronSelectorVertical-BSRBjpBn.js";import"./UserSquare-BBEl_BxL.js";import"./Copy01-OBSYmimV.js";import"./CreditCard01-DWsSThAm.js";import"./DotsVertical-jkvtcdek.js";import"./Image01-BCnLFq1D.js";import"./Globe04-blkS_Kfg.js";import"./SwitchHorizontal01-B5WFt7_0.js";import"./Key01-CG7Kua6O.js";import"./Link01-8aKNfNRw.js";import"./Minus-B38cW2ZC.js";import"./Monitor01-DQEkUL3d.js";import"./Sun-k4hypx5Q.js";import"./Play-Ns9aRVTY.js";import"./Plus-vkM1FxVr.js";import"./SearchMd-Cp6J-1Iu.js";import"./Trash01-Z1ezoy3S.js";import"./Upload01-B3-nlnKa.js";import"./User01-C2Sw39bs.js";import"./Users01-DMFeioyM.js";import"./XClose-BdwIxxCT.js";import"./tooltip-gMeEuHtO.js";import"./index-DNa7Epd0.js";import"./toolbar-icon-button-DzJeqLa2.js";import"./shell-layout-U7D4A6nk.js";import"./avatar-DHKJiyOX.js";import"./use-clock-tick-DflKMAWl.js";import"./command-BlBQgQPI.js";import"./index-BCHFFeZZ.js";import"./integration-icon-D1aQLe0v.js";import"./project-icon-ZadU5ZjL.js";import"./new-project-dialog-DFsG79bb.js";import"./label-Dhoh3DcI.js";import"./repository-import-picker-C2sQ94O1.js";import"./use-navigate-to-agent-DLX1nkvn.js";import"./repository-picker-BXaWFfDW.js";import"./useInfiniteQuery-wCORGPw3.js";import"./infiniteQueryObserver-DvmMaiCa.js";import"./collection-search--9d0M5sc.js";import"./use-debounced-value-c5JdkW89.js";import"./required-auth-layout-4jyUcmCy.js";import"./use-org-sso-B_zXOLDA.js";import"./sheet-Dhe0uPV2.js";import"./resizable-CQyxQjcn.js";import"./core.esm-DJ5llHMe.js";import"./sortable.esm-CkqHW6-y.js";import"./context-menu-BD833dh0.js";import"./create-organization-dialog-nhhaUNZK.js";import"./alert-dialog-C-DaggA1.js";import"./form-D4PspedZ.js";import"./project-apps-CG2eY1ZZ.js";import"./use-recent-apps-D6yVH6-8.js";import"./sandbox-url-D3mC8qhT.js";import"./index-j4NUsiRT.js";import"./tool-namespace-DIE_8J9o.js";import"./drawer-0sYDH2mt.js";import"./use-mcp-prompts-wKDmQlGB.js";import"./usage-stats-BecGIkLk.js";import"./utils-CVEq3hMx.js";import"./markdown-prFeEkT4.js";import"./use-copy-Cn8Org7G.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./input-DIcILgWd.js";import"./icon-button-HZwQKD3a.js";import"./file-type-icon-DHFVwXjA.js";import"./chat-draft-WGnppXw7.js";import"./select-DUEGSJco.js";import"./index-BdQq_4o_.js";import"./tabs-C7f3nqQx.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-D8w-JIDW.js";import"./toggle-group-CXUKmPFr.js";import"./use-open-billing-url-C5lEsbaH.js";import"./index-B32YFtAw.js";import"./checkbox-vFQy8MvV.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-DaReiQzV.js";import"./input-BeDIlaby.js";import"./suggestion-BNEVVm5c.js";import"./use-org-fs-49a1bhbu.js";import"./question-004-sINsf4GQ.js";import"./use-members-0ZBHc0S5.js";import"./use-org-auth-client-t4l-TKT1.js";import"./feature-paywall-hsFyGLR_.js";import"./plan-ladder-BKLU8eo8.js";import"./add-connection-dialog-F6QQAEZv.js";import"./extract-connection-data-CBAyhzk-.js";import"./metadata-D72DunRR.js";import"./connection-Bo3v2rj5.js";import"./url-slug-D37s8EDd.js";import"./connection-card-DMfcnulT.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-Bbbnnl4r.js";import"./use-connection-CBKH8IwL.js";import"./schema-Dvc5tPTN.js";import"./connection-form-helpers-A3QfJozi.js";import"./authenticate-and-persist-oauth-CpcQdSQ-.js";import"./mcp-oauth-CNKUkWMd.js";import"./mcp-oauth-CTJ5Iw4i.js";import"./collection-tabs-BfpnVdlQ.js";import"./badge-ux-RK1YK.js";import"./use-infinite-scroll-Cuyf7850.js";import"./useSuspenseInfiniteQuery-JvpRoEFG.js";import"./use-task-board-events-BARWSwfj.js";import"./pair-Ck7rgrik.js";import"./collapsible-CnlVGt-G.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-fHjuxWIZ.js";import"./types-CHFSNT7a.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-CoFWg3_v.js";import"./experiments-tab-choice-CMHPX5ZC.js";import"./utils-CduIoZ0d.js";import"./sandbox-git-api-CH_-QFpD.js";import"./runnable-block-editor-CqYgijVY.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./parse-sections-YhOUxu7l.js";import"./alert-BDbwlXZm.js";import"./switch-ByCU93P4.js";import"./blocks-tab-states-Chq5j0oT.js";import"./slider-CLUaEqdg.js";import"./index-Bxkd37dZ.js";import"./tooltipContext-BQS7kWxi.js";import"./CategoricalChart-QwBn7EzX.js";import"./index-gqp4B5qj.js";import"./ActiveShapeUtils-CHmxGMIj.js";import"./Sector-BeXkYaJv.js";import"./symbol-BQLM2_V8.js";import"./empty-state-D6RWdvUz.js";import"./scroll-area-9wUBmncr.js";import"./monaco-editor-Wx_2qGOP.js";import"./editor-BctLuJLS.js";import"./calendar-qN6CeKGa.js";import"./editor-classes-BnPaf--r.js";import"./combobox-BMxhMbUn.js";import"./search-input-1DLvCYgl.js";import"./use-file-configs-DW0hmZjE.js";import"./asset-utils-Cb8p2lKk.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-DdMgF1Lv.js";import"./variant-draft-pointer-HWAlFj6Z.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-CSz1rYUo.js";import"./useQueries-_Urb_S-y.js";import"./device-hint-SeLRi17j.js";import"./releases-api-q3AffL1J.js";import"./hosted-publish-api-CK3ZnEoi.js";import"./virtual-mcp-Xd6PvE5_.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-Dd-9Qkoq.js";import"./mustache-BzHjgnm5.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-Dm4etxGk.js";import"./empty-state-DeArX05X.js";import"./site-draft-actions-Dpnw67Ug.js";import"./separator-Bk_a4cod.js";import"./use-releases-G0pirYfu.js";import"./serial-task-queue-CGOeQgpr.js";import"./named-rule-uses-Mu_Msc9v.js";import"./hosted-publish-feedback-BG4t8HgW.js";import"./save-changes-debug-nBi-n9eV.js";function I(e){return e.kind==="unavailable"&&e.source==="local"&&(e.problem?.reason??"not-answering")==="not-answering"}const it=e=>e;function rt(e){const t=u.c(10),{candidates:o,invalidLink:c,shell:m,editor:i}=e,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==o||t[5]!==r?(a=n.jsx(nt,{candidates:o,invalidLink:r,onConnect:l}),t[4]=o,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(e){const t=u.c(17),{candidates:o,invalidLink:c,onConnect:m}=e,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==o||t[3]!==p?(l={candidates:o,onFound:p},t[2]=o,t[3]=p,t[4]=l):l=t[4];const a=q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==o||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(o.map(T)),t[5]=o,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const e=window.location.hash,t=new URLSearchParams(e.replace(/^#/,"")).has("endpoint"),o=t?W(e):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o&&J(o),{candidates:U(o,z()),invalidLink:t&&!o}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const e=u.c(6),t=O();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:dt},e[0]=o):o=e[0];const c=P(o);let m;e[1]!==t||e[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:et({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),e[1]=t,e[2]=c,e[3]=m):m=e[3];let i;return e[4]!==m?(i=n.jsx(y.Tabs,{children:m}),e[4]=m,e[5]=i):i=e[5],i}function dt(e){return e.matches.at(-1)?.staticData.siteEditorView}function N(e){const t=u.c(14),{children:o}=e,c=O(),{connection:m}=Z(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==o||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=o;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(X,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=o,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(e){const t=u.c(6),{onLost:o}=e,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==o?(r=()=>{i&&o()},s=[i,o],t[2]=i,t[3]=o,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const e=u.c(11),{data:t}=E.useSession();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ht},e[0]=o):o=e[0];const c=P(o),m=!!t?.user;let i;e[1]!==m?(i={rail:m},e[1]=m,e[2]=i):i=e[2];const r=c??"preview";let s,p,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(ot,{}),e[3]=s,e[4]=p,e[5]=l):(s=e[3],p=e[4],l=e[5]);let a;e[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),e[6]=r,e[7]=a):a=e[7];let d;return e[8]!==i||e[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),e[8]=i,e[9]=a,e[10]=d):d=e[10],d}function ht(e){return e.matches.at(-1)?.staticData.siteEditorView}function vt(e){const t=u.c(8),{children:o}=e,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==o?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:o})]})}),t[3]=o,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function cr(){const e=u.c(3),[t]=g.useState(at);let o;return e[0]!==t.candidates||e[1]!==t.invalidLink?(o=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),e[0]=t.candidates,e[1]=t.invalidLink,e[2]=o):o=e[2],o}function kt(e,t){return n.jsxs($.Provider,{value:{connection:e,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(e){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:e})})}function lr(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Q,{virtualMcpId:v})}),e[0]=t):t=e[0],t}function dr(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Y,{virtualMcpId:v})}),e[0]=t):t=e[0],t}export{dr as SiteEditorContent,lr as SiteEditorPreview,cr as default};
@@ -1 +0,0 @@
1
- import{c as l,a2 as n,j as r,K as f}from"./index-ifZGovK1.js";import{C as d}from"./index-BjrJaWD9.js";import{m as u,P as x,T as h}from"./mock-board-BWfjyR2S.js";import{F as j}from"./feature-gate-DQ0ZaDj1.js";import"./use-mobile-CKoO3XSk.js";import"./use-sidebar-collapsed-CuPY8XXm.js";import"./use-chat-layout-state-24wCHq_-.js";import"./thread-route-C7RSGMhP.js";import"./use-panel-navigate-Bghh8kV3.js";import"./use-project-scope-DH5nL_oD.js";import"./repository-binding-DtIeSvDY.js";import"./use-mcp-client-D1kFCZ4v.js";import"./auth-C_nDagDA.js";import"./thread-intent-7GmQH5mt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BoG6Bqps.js";import"./task-board-BrTYr-oE.js";import"./schema-Cn4x5iT-.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon--EtIPqub.js";import"./AlertCircle-CUAx3A4b.js";import"./Tool01-BsK9c3-e.js";import"./ArrowUp-EL0FBv9C.js";import"./ArrowLeft-BWCsylYe.js";import"./LinkBroken01-DcsqjBuj.js";import"./ShoppingBag01-aJuRSlBz.js";import"./ZoomOut-DytgoG2i.js";import"./Building02-PifDTlhb.js";import"./CheckCircle-CMGqXocs.js";import"./ChevronUp-x46FJEcD.js";import"./ChevronSelectorVertical-BSRBjpBn.js";import"./UserSquare-BBEl_BxL.js";import"./Copy01-OBSYmimV.js";import"./CreditCard01-DWsSThAm.js";import"./DotsVertical-jkvtcdek.js";import"./Image01-BCnLFq1D.js";import"./Globe04-blkS_Kfg.js";import"./SwitchHorizontal01-B5WFt7_0.js";import"./Key01-CG7Kua6O.js";import"./Link01-8aKNfNRw.js";import"./Minus-B38cW2ZC.js";import"./Monitor01-DQEkUL3d.js";import"./Sun-k4hypx5Q.js";import"./Play-Ns9aRVTY.js";import"./Plus-vkM1FxVr.js";import"./SearchMd-Cp6J-1Iu.js";import"./Trash01-Z1ezoy3S.js";import"./Upload01-B3-nlnKa.js";import"./User01-C2Sw39bs.js";import"./Users01-DMFeioyM.js";import"./XClose-BdwIxxCT.js";import"./tooltip-gMeEuHtO.js";import"./index-DNa7Epd0.js";import"./toolbar-icon-button-DzJeqLa2.js";import"./shell-layout-U7D4A6nk.js";import"./avatar-DHKJiyOX.js";import"./use-clock-tick-DflKMAWl.js";import"./command-BlBQgQPI.js";import"./index-BCHFFeZZ.js";import"./integration-icon-D1aQLe0v.js";import"./project-icon-ZadU5ZjL.js";import"./new-project-dialog-DFsG79bb.js";import"./label-Dhoh3DcI.js";import"./repository-import-picker-C2sQ94O1.js";import"./use-navigate-to-agent-DLX1nkvn.js";import"./repository-picker-BXaWFfDW.js";import"./useInfiniteQuery-wCORGPw3.js";import"./infiniteQueryObserver-DvmMaiCa.js";import"./collection-search--9d0M5sc.js";import"./use-debounced-value-c5JdkW89.js";import"./use-organization-settings-laAOR3Cm.js";import"./required-auth-layout-4jyUcmCy.js";import"./autosend-xoWUmECR.js";import"./use-org-sso-B_zXOLDA.js";import"./sheet-Dhe0uPV2.js";import"./resizable-CQyxQjcn.js";import"./core.esm-DJ5llHMe.js";import"./sortable.esm-CkqHW6-y.js";import"./use-task-board-analytics-BtNGPBbp.js";import"./combobox-BMxhMbUn.js";import"./popover-DaReiQzV.js";import"./usage-stats-BecGIkLk.js";import"./tool-namespace-DIE_8J9o.js";import"./form-D4PspedZ.js";import"./utils-CVEq3hMx.js";import"./markdown-prFeEkT4.js";import"./use-copy-Cn8Org7G.js";import"./location-V0VwTJTt.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-Cp8NaBPU.js";import"./chat-context-DXm8btNS.js";import"./use-ai-providers-CAt_9H4n.js";import"./suggestion-BNEVVm5c.js";import"./column-rules-DgVqSNU2.js";import"./badge-ux-RK1YK.js";import"./icon-button-HZwQKD3a.js";import"./switch-ByCU93P4.js";import"./textarea-Bbbnnl4r.js";import"./use-org-fs-49a1bhbu.js";import"./use-automations-C6LbyvJD.js";import"./search-toggle-BnK2KHqJ.js";import"./daily-pulse-Cry9rVi8.js";import"./use-task-board-events-BARWSwfj.js";import"./config-CE3I8pu5.js";import"./use-members-0ZBHc0S5.js";import"./use-org-auth-client-t4l-TKT1.js";import"./select-DUEGSJco.js";import"./index-BdQq_4o_.js";import"./task-route-BLP-DBaS.js";import"./task-key-BCHdFiOO.js";import"./task-assignee-avatar-BiPanmNM.js";import"./use-tags-BsXvHuTC.js";import"./calendar-qN6CeKGa.js";import"./alert-BDbwlXZm.js";import"./collapsible-CnlVGt-G.js";import"./index-CafY8AgN.js";import"./editor-classes-BnPaf--r.js";import"./index-CvMuyNgv.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-BhAhDKGd.js";import"./use-connection-CBKH8IwL.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-dWggSd-b.js";import"./useSuspenseInfiniteQuery-JvpRoEFG.js";import"./pair-Ck7rgrik.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-fHjuxWIZ.js";import"./types-CHFSNT7a.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-wKDmQlGB.js";import"./use-thread-outputs-CoFWg3_v.js";import"./file-type-icon-DHFVwXjA.js";import"./use-infinite-scroll-Cuyf7850.js";import"./task-status-CVpsP3bD.js";import"./use-open-billing-url-C5lEsbaH.js";import"./chat-draft-WGnppXw7.js";import"./separator-Bk_a4cod.js";import"./feature-paywall-hsFyGLR_.js";import"./plan-ladder-BKLU8eo8.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 Xo(){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{Xo as default};
@@ -1 +0,0 @@
1
- import{c as W,b as _,o as z,e as G,K as I,t as j}from"./index-ifZGovK1.js";import{u as L,C as Y,F as $,G as J,M as U,N as X,as as H,L as Z,O as ee,at as te,au as ne}from"./use-content-sync-D_qyLHCv.js";import{a as se}from"./use-move-blocks-Dm4etxGk.js";import{Q as oe}from"./parse-sections-YhOUxu7l.js";function ae(p,e){const s=(p.deletes??[]).filter(t=>!Object.hasOwn(p.writes,t)),a=[...Object.keys(p.writes),...s],o={},n=[];for(const t of a){const g=e(t);g===void 0?n.push(t):o[t]=g}return n.length>0?{kind:"unread",blockKeys:n}:{kind:"apply",patch:{set:p.writes,...s.length>0?{delete:s}:{}},ifMatch:o}}function ue(p){const e=W.c(54),{orgSlug:s,virtualMcpId:a,branch:o}=p,n=_(),t=z(),g=L(a,o),r=g.kind==="protocol"?g:null;let E;e[0]!==o||e[1]!==s||e[2]!==a?(E={orgSlug:s,virtualMcpId:a,branch:o},e[0]=o,e[1]=s,e[2]=a,e[3]=E):E=e[3];const i=Y(E);let M;e[4]!==o||e[5]!==s||e[6]!==a?(M={orgSlug:s,virtualMcpId:a,branch:o},e[4]=o,e[5]=s,e[6]=a,e[7]=M):M=e[7];const l=M;let v;e[8]!==i?(v=I.decofile(i),e[8]=i,e[9]=v):v=e[9];const y=v;let h;e[10]!==o||e[11]!==s||e[12]!==a?(h=J(s,a,o),e[10]=o,e[11]=s,e[12]=a,e[13]=h):h=e[13];let m;e[14]!==o||e[15]!==s||e[16]!==a?(m=$(s,a,o),e[14]=o,e[15]=s,e[16]=a,e[17]=m):m=e[17];let k;e[18]!==i||e[19]!==l||e[20]!==r||e[21]!==t?(k=c=>U(t,r,l,i,c.patch,c.ifMatch),e[18]=i,e[19]=l,e[20]=r,e[21]=t,e[22]=k):k=e[22];let K;e[23]!==h||e[24]!==m||e[25]!==k?(K={mutationKey:h,scope:m,mutationFn:k},e[23]=h,e[24]=m,e[25]=k,e[26]=K):K=e[26];const b=G(K);let R;e[27]!==i||e[28]!==l||e[29]!==r||e[30]!==t||e[31]!==n?(R=async c=>{for(const d of c)await X(t,r,l,i,d);return j.info(n("sectionsEditor.namedRules.changedMeanwhile"),{...H,description:n("sectionsEditor.namedRules.changedMeanwhileHint")}),{ok:!1,reason:"changed"}},e[27]=i,e[28]=l,e[29]=r,e[30]=t,e[31]=n,e[32]=R):R=e[32];const S=R;let P;e[33]!==i||e[34]!==S||e[35]!==b||e[36]!==r||e[37]!==t||e[38]!==y||e[39]!==n?(P=async c=>{if(!r)return j.info(n("sectionsEditor.namedRules.unavailable"),{...H,description:n("sectionsEditor.namedRules.unavailableHint")}),{ok:!1,reason:"unavailable"};const d=oe(c.writes),f=ae({...c,writes:d},u=>ne(t,i,u));if(f.kind==="unread")return S(f.blockKeys);const B=[...Object.keys(d),...f.patch.delete??[]],F=t.getQueryData(y),N=new Map;for(const u of B)F&&Object.hasOwn(F,u)&&N.set(u,F[u]);t.setQueryData(y,u=>se(u,{writes:d,deletes:f.patch.delete??[]})),t.cancelQueries({queryKey:y});try{return await b.mutateAsync(f),{ok:!0}}catch(u){const A=u;return t.setQueryData(y,q=>{if(!q)return q;const V={...q};for(const D of B)N.has(D)?V[D]=N.get(D):delete V[D];return V}),Z(A)?S(B):(ee(n,A instanceof Error?A:new Error(String(A)),r.source),{ok:!1,reason:"failed"})}},e[33]=i,e[34]=S,e[35]=b,e[36]=r,e[37]=t,e[38]=y,e[39]=n,e[40]=P):P=e[40];const T=P;let O;e[41]!==i||e[42]!==l||e[43]!==r||e[44]!==t?(O=async()=>{if(!r)return null;try{return(await te(t,r,l,i)).blocks}catch{return null}},e[41]=i,e[42]=l,e[43]=r,e[44]=t,e[45]=O):O=e[45];const w=O;let C;e[46]!==w||e[47]!==n?(C=async c=>{const d=await w();if(!d)return j.info(n("sectionsEditor.namedRules.unavailable"),{...H,description:n("sectionsEditor.namedRules.unavailableHint")}),null;const f=c(d);return f||j.info(n("sectionsEditor.namedRules.changedMeanwhile"),{...H,description:n("sectionsEditor.namedRules.changedMeanwhileHint")}),f},e[46]=w,e[47]=n,e[48]=C):C=e[48];const x=C;let Q;return e[49]!==T||e[50]!==b.isPending||e[51]!==x||e[52]!==w?(Q={apply:T,reread:w,planStored:x,isPending:b.isPending},e[49]=T,e[50]=b.isPending,e[51]=x,e[52]=w,e[53]=Q):Q=e[53],Q}export{ue as u};
@@ -1 +0,0 @@
1
- import{c as P,o as K,m as F,K as m,dX as We,aF as Dt,aG as Rt,r as U,a as xt,aw as ce,a2 as Pt,au as At,dG as $t,t as X,j as V}from"./index-ifZGovK1.js";import{b as ne}from"./sandbox-url-D3mC8qhT.js";import{u as Lt}from"./chat-context-DXm8btNS.js";import{i as Ft,u as Ut}from"./index-j4NUsiRT.js";import{u as pe,b as Mt}from"./experiments-tab-choice-CMHPX5ZC.js";import{a as ze}from"./input-DIcILgWd.js";import{M as jt,j as Bt,i as le,s as Pe}from"./thread-intent-7GmQH5mt.js";import{s as Qt}from"./utils-CduIoZ0d.js";import{a as Vt}from"./repository-binding-DtIeSvDY.js";import{a as Ht}from"./sandbox-git-api-CH_-QFpD.js";import{e as Gt}from"./backoff-CrEUbyZT.js";const p={MethodNotFound:-32601,InvalidParams:-32602,InternalError:-32603,NotFound:-32001,Conflict:-32002,InvalidBlock:-32003,ReadOnly:-32005,Unsupported:-32006,LimitExceeded:-32007,Unavailable:-32008,Unauthorized:-32010};class T extends Error{code;data;constructor(t,n,o){super(n),this.name="ContentProtocolError",this.code=t,this.data=o}toJSON(){return this.data===void 0?{code:this.code,message:this.message}:{code:this.code,message:this.message,data:this.data}}static from(t){return new T(t.code,t.message,t.data)}}const q="deco-content",ue={major:1},Xe=1;async function Kt(e){let t=new Uint8Array(await e.arrayBuffer());if(t[0]===31&&t[1]===139){const n=new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip"));t=new Uint8Array(await new Response(n).arrayBuffer())}return JSON.parse(new TextDecoder().decode(t))}const de={major:ue.major,minor:Xe},Ze=`the endpoint speaks an older ${q} than this client needs (${de.major}.${de.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function W(e,t,n){const o={reason:t,required:{...de}};if(n){o.actual={protocol:n.protocol,major:n.version?.major,minor:n.version?.minor};const r=n.server;typeof r?.name=="string"&&typeof r.version=="string"&&(o.server={name:r.name,version:r.version})}return new T(p.Unsupported,e,o)}function et(e){const t=e??{},{protocol:n,version:o}=t;if(n!==q)throw W(`the endpoint speaks ${JSON.stringify(n)}, not ${q}`,"protocol",t);if(o?.major!==ue.major)throw W(`the endpoint speaks ${q} ${String(o?.major)}.x; this client speaks ${ue.major}.x`,"major",t);if(typeof o.minor!="number"||o.minor<Xe)throw W(Ze,"outdated",t);return e}function Ae(e,t){return t.code===p.MethodNotFound&&e.startsWith("changes.")?W(Ze,"outdated"):T.from(t)}function ye(e){const t=e.fetch??(s=>fetch(s));let n=1;async function o(s){const i={"content-type":"application/json",accept:"application/json",...e.headers},a=await t(new Request(e.endpoint,{method:"POST",headers:i,body:JSON.stringify(s)}));let c;try{c=await Kt(a)}catch{throw new T(p.Unavailable,`the endpoint answered HTTP ${a.status} without a JSON-RPC body`)}if(!a.ok||!Array.isArray(c)&&c?.id===null){const l=c?.error;throw l?T.from(l):new T(p.Unavailable,`the endpoint answered HTTP ${a.status}`)}return c}const r=async(s,i)=>{const a=n++,c=await o({jsonrpc:"2.0",id:a,method:s,params:i??{}});if(c.error)throw Ae(s,c.error);return c.result};return{call:r,describe:async()=>et(await r("describe")),schemaGet:s=>r("schema.get",s),blocksList:s=>r("blocks.list",s),blocksApply:s=>r("blocks.apply",s),changesList:s=>r("changes.list",s),changesGet:s=>r("changes.get",s),changesDiscard:s=>r("changes.discard",s),async batch(s){const i=s.map(()=>n++),a=await o(s.map((l,u)=>({jsonrpc:"2.0",id:i[u],method:l.method,params:l.params??{}}))),c=new Map(a.map(l=>[l.id,l]));return i.map((l,u)=>{const d=c.get(l);return d?d.error?{ok:!1,error:Ae(s[u].method,d.error)}:{ok:!0,result:d.result}:{ok:!1,error:new T(p.InternalError,"no response for this call")}})}}}const fe=".json";[...Array.from({length:9},(e,t)=>`COM${t+1}`),...Array.from({length:9},(e,t)=>`LPT${t+1}`)];new TextEncoder;function qt(e){return`${encodeURIComponent(e)}${fe}`}function tt(e){return e.endsWith(fe)?e.slice(0,-fe.length):e}function ko(e){const t=tt(e);try{return decodeURIComponent(t)}catch{return t}}function Jt(e){let t=tt(e),n=0;for(;t.includes("%");){let o;try{o=decodeURIComponent(t)}catch{break}if(o===t)break;t=o,n++}return{name:t,passes:n}}function Co(e){return Jt(qt(e)).name}const $e=20,Le=5,Fe=500;function Se(e){return e instanceof T?e.code===p.MethodNotFound?!0:e.code===p.Unsupported&&e.data?.reason==="outdated":!1}function he(e,t){return t.notModified?e?{...e,base:t.base}:null:{revision:t.revision,base:t.base,changes:t.changes}}async function Yt(e,t,n){const o=m.contentChanges(n),r=e.getQueryData(o),s=await t.changesList(r?{ifNoneMatch:r.revision}:{}),i=he(r,s);if(i)return i;const a=await t.changesList({});return he(void 0,a)}async function Wt(e,t){const n=[];for(let s=0;s<t.length;s+=$e)n.push(t.slice(s,s+$e));const o=Object.create(null),r=[];for(let s=0;s<n.length;s+=Le){const i=await e.batch(n.slice(s,s+Le).map(a=>({method:"changes.get",params:{names:a}})));for(const a of i){if(!a.ok)throw a.error;const c=a.result;Object.assign(o,c.entries),r.push(...c.diagnostics)}}return{entries:o,diagnostics:r}}async function Io(e,t){let n={revision:"",versions:{}};for(let o=0;o<t.length;o+=Fe){const r=t.slice(o,o+Fe),s=await e.changesDiscard({names:r.map(i=>i.name),ifMatch:Object.fromEntries(r.map(i=>[i.name,i.version]))});n={revision:s.revision,versions:{...n.versions,...s.versions}}}return n}function Oo(e){return e instanceof T&&e.code===p.Conflict}function nt(e){return e?.kind==="protocol"?e:null}function To(e,t,n){const o=P.c(14);let r;o[0]!==n?(r={},o[0]=n,o[1]=r):r=o[1];const s=r,i=K();let a;o[2]!==e?(a=nt(e),o[2]=e,o[3]=a):a=o[3];const c=a,l=!!c&&!!t&&s.enabled!==!1;let u;o[4]!==t?(u=m.contentChanges(t??""),o[4]=t,o[5]=u):u=o[5];let d;o[6]!==t||o[7]!==l||o[8]!==c||o[9]!==i?(d=l?()=>Yt(i,c.client,t):We,o[6]=t,o[7]=l,o[8]=c,o[9]=i,o[10]=d):d=o[10];let h;return o[11]!==u||o[12]!==d?(h={queryKey:u,queryFn:d,staleTime:0},o[11]=u,o[12]=d,o[13]=h):h=o[13],F(h)}function _o(e,t,n){const o=P.c(14);let r;o[0]!==e?(r=nt(e),o[0]=e,o[1]=r):r=o[1];const s=r;let i;o[2]!==n?(i=n?Object.keys(n.changes):[],o[2]=n,o[3]=i):i=o[3];const a=i,c=!!s&&!!t&&!!n&&a.length>0;let l;o[4]!==t||o[5]!==n?.revision?(l=m.contentChangeSides(t??"",n?.revision??""),o[4]=t,o[5]=n?.revision,o[6]=l):l=o[6];let u;o[7]!==c||o[8]!==a||o[9]!==s?(u=c?()=>Wt(s.client,a):We,o[7]=c,o[8]=a,o[9]=s,o[10]=u):u=o[10];let d;return o[11]!==l||o[12]!==u?(d={queryKey:l,queryFn:u,staleTime:Number.POSITIVE_INFINITY},o[11]=l,o[12]=u,o[13]=d):d=o[13],F(d)}function ot(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")return!1;const n=t.hostname.toLowerCase();return n==="127.0.0.1"||n==="[::1]"||n==="localhost"}catch{return!1}}function Z(e){try{const t=new URL(e);return(t.hostname==="127.0.0.1"||t.hostname==="[::1]")&&(t.hostname="localhost"),t.href}catch{return e}}const rt=Dt({endpoint:Rt().max(2048).refine(e=>ot(e)&&new URL(e).pathname==="/rpc").transform(Z)});function No(e){const t=new URLSearchParams(e.replace(/^#/,"")),n=rt.safeParse({endpoint:t.get("endpoint")??""});return n.success?n.data:null}function st(e){const t=rt.safeParse(e);return t.success?t.data:null}const it="studio:deco-serve-last";function Do(e){try{localStorage.setItem(it,JSON.stringify(e))}catch{}}function Ro(){try{const e=localStorage.getItem(it);return e?st(JSON.parse(e)):null}catch{return null}}function xo(e){try{return new URL(Z(e)).host}catch{return e}}function zt(e,t=1e4){return Math.min(1e3*2**Math.max(0,e-1),t)}const Xt="http://localhost:4545/rpc",Po="npx @decocms/blocks serve",Ao="npx @decocms/blocks schema";class Ee extends Error{constructor(t="the endpoint isn't deco serve"){super(t),this.name="NotDecoServeError"}}function Zt(e){if(e instanceof Ee)return{reason:"not-deco-serve"};if(!(e instanceof T))return{reason:"not-answering"};switch(e.code){case p.Unauthorized:case p.MethodNotFound:return{reason:"outdated"};case p.Unsupported:return Se(e)?{reason:"outdated"}:{reason:"version-mismatch"};case p.Unavailable:return/^the endpoint answered HTTP/.test(e.message)?{reason:"not-deco-serve"}:{reason:"error",detail:e.message};default:return{reason:"error",detail:e.message}}}function $o(e,t){if(e)return[Z(e.endpoint)];const n=[t?.endpoint,Xt].filter(o=>!!o).map(Z);return[...new Set(n)]}const at=U.createContext(null);function en(e){const t=P.c(27),n=U.useContext(at),o=pe(n?null:e),{data:r}=xt.useSession(),s=r?.user?.id??"",i=!!e&&!!s;let a;t[0]!==i||t[1]!==s||t[2]!==e?(a=i?ce.decoServeConnection(s,e):null,t[0]=i,t[1]=s,t[2]=e,t[3]=a):a=t[3];const[c,l]=Me(a);let u;t[4]!==i||t[5]!==s||t[6]!==e?(u=i?ce.decoServeEndpoint(s,e):null,t[4]=i,t[5]=s,t[6]=e,t[7]=u):u=t[7];const[d,h]=Me(u);if(n)return n;let b;t[8]!==c||t[9]!==i?(b=i?st(c):null,t[8]=c,t[9]=i,t[10]=b):b=t[10];const g=b,k=!!g;let C;t[11]!==o||t[12]!==k?(C=tn(o,k),t[11]=o,t[12]=k,t[13]=C):C=t[13];const{applies:R,undecided:_}=C,N=R?g:null,I=i&&o==="v8"&&typeof d=="string"?d:null;let O;t[14]!==h||t[15]!==l||t[16]!==i?(O=S=>{i&&(l(S),h(S.endpoint))},t[14]=h,t[15]=l,t[16]=i,t[17]=O):O=t[17];let w;t[18]!==l||t[19]!==i?(w=()=>{i&&l(null)},t[18]=l,t[19]=i,t[20]=w):w=t[20];let y;return t[21]!==N||t[22]!==I||t[23]!==O||t[24]!==w||t[25]!==_?(y={connection:N,undecided:_,lastEndpoint:I,set:O,clear:w},t[21]=N,t[22]=I,t[23]=O,t[24]=w,t[25]=_,t[26]=y):y=t[26],y}function tn(e,t){return t?e==="loading"?{applies:!1,undecided:!0}:{applies:e==="v8"||e==="error",undecided:!1}:{applies:!1,undecided:!1}}function Ue(e){try{const t=localStorage.getItem(e);return t===null?null:JSON.parse(t)}catch{return null}}function Me(e){const t=P.c(17),n=K(),o=e??"";let r;t[0]!==o?(r=["localStorage",o],t[0]=o,t[1]=r):r=t[1];const s=r;let i,a;t[2]!==e?(i=()=>e?Ue(e):null,a=()=>e?Ue(e):null,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]);const c=!!e;let l;t[5]!==s||t[6]!==i||t[7]!==a||t[8]!==c?(l={queryKey:s,queryFn:i,initialData:a,enabled:c,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[5]=s,t[6]=i,t[7]=a,t[8]=c,t[9]=l):l=t[9];const{data:u}=F(l);let d;t[10]!==e||t[11]!==n||t[12]!==s?(d=k=>{if(e){try{k===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(k))}catch{}n.setQueryData(s,k)}},t[10]=e,t[11]=n,t[12]=s,t[13]=d):d=t[13];const h=d,b=e?u??null:null;let g;return t[14]!==h||t[15]!==b?(g=[b,h],t[14]=h,t[15]=b,t[16]=g):g=t[16],g}function Lo(e){return e.kind==="protocol"||e.kind==="unavailable"}function Fo(e){const t=e.hasOrg?e.orgFlag:!1,{backend:n}=e;return n==="protocol"||n==="unavailable"?!0:n==="pending"?t===!0?!0:void 0:t}function Uo(e,t,n){return t!=="github"||n!=="v8"?!1:e.kind==="pending"?!0:e.kind==="unavailable"&&e.siteNotOwned?!1:(e.kind==="protocol"||e.kind==="unavailable")&&e.source==="github"}function Mo(e){if(e.kind!=="protocol"||e.source!=="local")return null;const t=e.describe.preview?.url;return t&&ot(t)?t:null}function jo(e,t){return e.kind!=="protocol"||e.source!=="local"||!e.describe.assets||!t?null:new URL(t.endpoint).origin}function ct(e){return e.hasServeConnection?"local":e.runtime==="sandbox"?"sandbox":"github"}function nn(e){if(!e.hasProject)return"legacy";const t=ct(e);if(t==="local")return"protocol-local";if(e.serveConnectionUndecided)return"pending";if(t==="sandbox"){const o=e.sandboxSite;return o==="v8"?"protocol-sandbox":o==="v7"?"legacy":o==="error"?e.markedV8?"retrying-sandbox":"legacy":"pending"}if(e.mainSchema==="loading")return"pending";if(e.mainSchema==="error")return"retrying-github";if(e.mainSchema==="v7")return"legacy";const n=e.githubSite;return n==="v8"?"protocol-github":n==="not-owned"?"site-not-owned-github":n==="error"?"unavailable-github":n==="v7"?"legacy":"pending"}function on(e){return{github:e.mode==="github"&&e.mainSchema==="v8",sandbox:e.mode==="sandbox"&&e.workingTreeReady}}function je(e){return e.isError||e.errorUpdateCount>0}function rn(e,t,n){if(!t||n.size===0)return e;const o={...e};for(const r of n)Object.hasOwn(t,r)?o[r]=t[r]:delete o[r];return o}function sn(e){if(!e||typeof e!="object")return[];const t=e,n=[];return typeof t.blockKey=="string"&&n.push(t.blockKey),t.writes&&typeof t.writes=="object"&&n.push(...Object.keys(t.writes)),Array.isArray(t.deletes)&&n.push(...t.deletes.filter(o=>typeof o=="string")),n}function oe(e){return{[jt]:e}}class ke extends Error{status=409;constructor(){super("main's schema changed")}}async function Ce(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code===Bt}function Ie(e,t,n){e.resetQueries({predicate:o=>{const r=o.queryKey;return r[1]!==t||r[2]!==n?!1:r[0]===m.mainSchemaV8(t,n)[0]||r[0]===m.contentBackend()[0]&&r[4]==="github"}})}function lt(e,t,n){return e.getQueryData(m.mainSchemaV8(t,n))}const ut="__noSchema";function an(){return{manifest:{blocks:{}},schema:{definitions:{},root:{}},[ut]:!0}}function Bo(e){return!!e&&e[ut]===!0}function dt(e){if(!e.ok)return e.error.code===p.NotFound;const t=e.result;return t.notModified===!1&&t.schema===null}function cn(e,t){return(typeof t.name=="string"?t.name.trim():"")||e}const ln=(e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key);function Qo(e){const t=new Map;for(const[n,o]of Object.entries(e)){const r=o&&typeof o=="object"&&!Array.isArray(o)?o:{},s=typeof r.__resolveType=="string"?r.__resolveType:null,i=t.get(s)??[];i.push({key:n,label:cn(n,r)}),t.set(s,i)}return[...t.entries()].map(([n,o])=>({resolveType:n,blocks:o.sort(ln)})).sort((n,o)=>n.resolveType===null?1:o.resolveType===null?-1:Be(n.resolveType).localeCompare(Be(o.resolveType))||n.resolveType.localeCompare(o.resolveType))}function Be(e){return(e.split("/").filter(Boolean).at(-1)??e).replace(/\.(tsx?|jsx?)$/,"")||e}function Qe(e,t,n){if(t.length===0)return n;const[o,...r]=t;if(Array.isArray(e)&&typeof o=="number"){const s=e.slice();return s[o]=Qe(e[o],r,n),s}if(e&&typeof e=="object"&&typeof o=="string"){const s=e,i={};for(const a of Object.keys(s))i[a]=a===o?Qe(s[a],r,n):s[a];return i}return e}function Vo(e){if(e.trim()==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}class Ve extends Error{}class He extends Error{}const ft="site-not-owned";async function un(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code==="site_not_owned"}async function dn(e,t=r=>fetch(r),n,o){const r=ye({endpoint:e,fetch:async s=>{const i=new Request(s);for(const[c,l]of Object.entries(oe("v8")))i.headers.set(c,l);const a=await t(i);if(await un(a))throw new He;if(await Ce(a))throw n?.(),new ke;return a}});try{const s=await Te(r,le(o)?{schema:o}:void 0);return s.v8Schema?s:null}catch(s){if(s instanceof He)return ft;throw s}}const Oe=5e3;function fn(e){return new URL(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/rpc`,window.location.origin).href}function hn(e){return new URL(ne(e,"rpc"),window.location.origin).href}async function Te(e,t){const[n,o]=await e.batch(t?[{method:"describe"}]:[{method:"describe"},{method:"schema.get"}]);if(!n?.ok)throw n?.error??new Error("no describe");if(n.result?.protocol!==q)throw new Ee;const s=et(n.result);if(t)return{client:e,describe:s,hasSchema:t.schema!=null,v8Schema:le(t.schema)};if(!o)throw new Error("no schema.get");if(dt(o))return{client:e,describe:s,hasSchema:!1,v8Schema:!1};if(o.ok){const i=o.result;return{client:e,describe:s,hasSchema:!0,v8Schema:le(i?.schema)}}throw o.error}async function gn(e,t=n=>fetch(n)){const n=ye({endpoint:e,fetch:async o=>{const r=await t(o);if(r.status===404)throw new Ve;return r}});try{const o=await Te(n);return o.v8Schema?o:null}catch(o){if(o instanceof Ve)return null;throw o}}function _e(e,t){const n=P.c(53),{org:o}=Pt(),{connection:r,undecided:s}=en(e),{runtime:i}=ze(e),a=U.useContext(at),c=pe(a?null:e),l=Mt(e),u=ct({hasServeConnection:!!r,runtime:i}),d=Lt()?.taskId??null,h=Ft(Ut().lifecycle.phase),b=K(),g=on({mode:u,mainSchema:c,workingTreeReady:h}),k=g.github&&!!o.slug&&!!e&&!!t;let C;n[0]!==t||n[1]!==o.slug||n[2]!==b||n[3]!==e?(C=()=>dn(fn({orgSlug:o.slug,virtualMcpId:e,branch:t}),void 0,()=>Ie(b,o.slug,e),lt(b,o.slug,e)?.schema),n[0]=t,n[1]=o.slug,n[2]=b,n[3]=e,n[4]=C):C=n[4];const R=F({queryKey:m.contentBackend(o.slug,e??"",t??"","github"),queryFn:C,enabled:k,staleTime:Number.POSITIVE_INFINITY,...Ge}),_=g.sandbox&&!!o.slug&&!!e&&!!t;let N;n[5]!==t||n[6]!==o.slug||n[7]!==d||n[8]!==e?(N=async()=>gn(hn({orgSlug:o.slug,virtualMcpId:e,branch:t,threadId:d})),n[5]=t,n[6]=o.slug,n[7]=d,n[8]=e,n[9]=N):N=n[9];const I=F({queryKey:m.contentBackend(o.slug,e??"",t??"","sandbox",d??""),queryFn:N,enabled:_,staleTime:Number.POSITIVE_INFINITY,...Ge}),O=!!r;let w;n[10]!==r?.endpoint||n[11]!==o.slug||n[12]!==e?(w=m.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[10]=r?.endpoint,n[11]=o.slug,n[12]=e,n[13]=w):w=n[13];let y;n[14]!==r?(y=()=>Te(ye({endpoint:r.endpoint})),n[14]=r,n[15]=y):y=n[15];let S;n[16]!==O||n[17]!==w||n[18]!==y?(S={queryKey:w,queryFn:y,enabled:O,staleTime:Number.POSITIVE_INFINITY,retry:bn,retryDelay:vn,refetchInterval:mn},n[16]=O,n[17]=w,n[18]=y,n[19]=S):S=n[19];const v=F(S);let A;n[20]!==r?.endpoint||n[21]!==o.slug||n[22]!==e?(A=m.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[20]=r?.endpoint,n[21]=o.slug,n[22]=e,n[23]=A):A=n[23];const $=A;let E;n[24]!==r?.endpoint||n[25]!==o.slug||n[26]!==e?(E=m.contentBackend(o.slug,e??"","local-describe",r?.endpoint??""),n[24]=r?.endpoint,n[25]=o.slug,n[26]=e,n[27]=E):E=n[27];let D;n[28]!==v.data||n[29]!==$||n[30]!==b?(D=async()=>{try{return await v.data.client.describe()}catch(f){const G=f;throw b.invalidateQueries({queryKey:$,exact:!0},{cancelRefetch:!1}),G}},n[28]=v.data,n[29]=$,n[30]=b,n[31]=D):D=n[31];const x=!!v.data&&!a;let M;n[32]!==E||n[33]!==D||n[34]!==x?(M={queryKey:E,queryFn:D,enabled:x,refetchInterval:Oe,retry:!1},n[32]=E,n[33]=D,n[34]=x,n[35]=M):M=n[35];const Q=F(M).data??v.data?.describe,L=nn({hasProject:!!e,hasServeConnection:!!r,serveConnectionUndecided:s,runtime:i,mainSchema:c,githubSite:R.data===ft?"not-owned":R.data?"v8":R.data===null?"v7":je(R)?"error":"loading",sandboxSite:wn({data:I.data,isError:je(I),workingTreeReady:h}),markedV8:l});if(L==="pending"){let f;return n[36]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"pending"},n[36]=f):f=n[36],f}if(L==="retrying-github"){let f;return n[37]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"pending",retrying:"github"},n[37]=f):f=n[37],f}if(L==="retrying-sandbox"){let f;return n[38]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"pending",retrying:"sandbox"},n[38]=f):f=n[38],f}if(L==="legacy"){let f;return n[39]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"legacy"},n[39]=f):f=n[39],f}if(L==="protocol-github"){const f=R.data;let G;return n[40]!==f?(G=ge("github",f,""),n[40]=f,n[41]=G):G=n[41],G}if(L==="site-not-owned-github"){let f;return n[42]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"unavailable",source:"github",siteNotOwned:!0},n[42]=f):f=n[42],f}if(L==="protocol-sandbox"){let f;return n[43]!==I.data?(f=ge("sandbox",I.data,":sandbox"),n[43]=I.data,n[44]=f):f=n[44],f}if(L==="unavailable-github"){let f;return n[45]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"unavailable",source:"github"},n[45]=f):f=n[45],f}const ie=v.error??v.failureReason,ae=r?.endpoint??"";let Y;return n[46]!==Q||n[47]!==v.data||n[48]!==v.failureCount||n[49]!==v.isError||n[50]!==ie||n[51]!==ae?(Y=yn({probed:v.data,isError:v.isError,failureCount:v.failureCount,failure:ie,describe:Q,endpoint:ae}),n[46]=Q,n[47]=v.data,n[48]=v.failureCount,n[49]=v.isError,n[50]=ie,n[51]=ae,n[52]=Y):Y=n[52],Y}function mn(e){return e.state.status==="error"||e.state.data?.v8Schema===!1?Oe:!1}function vn(e){return zt(e+1)}function bn(e,t){return!(t instanceof T)&&!(t instanceof Ee)}function wn(e){return e.data!==void 0?e.data?"v8":"v7":e.workingTreeReady?e.isError?"error":"loading":"unavailable"}const pn=3;function yn(e){if(e.probed?.hasSchema&&!e.probed.v8Schema)return{kind:"unavailable",source:"local",problem:{reason:"not-v8"}};const t=e.probed?ge("local",{...e.probed,describe:e.describe??e.probed.describe},`:serve:${e.endpoint}`):null;return e.isError||e.failureCount>0?t?.kind==="protocol"&&!e.isError&&e.failureCount<pn?t:{kind:"unavailable",source:"local",problem:Zt(e.failure)}:t??{kind:"pending"}}const Ge={retry:2,refetchInterval:e=>e.state.status==="error"?Oe:!1};function ge(e,t,n){return{kind:"protocol",source:e,client:t.client,describe:t.describe,cacheKeySuffix:n,hasSchema:t.hasSchema}}function ht(e){const t=P.c(13);let n;t[0]!==e?(n=ce.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const o=n,[r,s]=At(o,null),i=pe(e);let a;if(t[2]!==i||t[3]!==r||t[4]!==e){const h=e?Pe(r):null;a=Sn({saved:h,main:i}),t[2]=i,t[3]=r,t[4]=e,t[5]=a}else a=t[5];const c=a;let l,u;t[6]!==s?(l=h=>s(Pe(h)),u=()=>s(null),t[6]=s,t[7]=l,t[8]=u):(l=t[7],u=t[8]);let d;return t[9]!==c||t[10]!==l||t[11]!==u?(d={...c,setUrl:l,clear:u},t[9]=c,t[10]=l,t[11]=u,t[12]=d):d=t[12],d}function Sn(e){return e.saved?e.main==="v7"?{url:e.saved,undecided:!1}:e.main==="v8"?{url:null,undecided:!1}:{url:null,undecided:!0}:{url:null,undecided:!1}}function En(e,t){const n=(e??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${t}`:t}function Ke(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!="object"||t===null||Array.isArray(t)?null:t}class Ne extends Error{constructor(t,n,o=[]){super(n),this.blocks=t,this.fields=o,this.name="BlockConflictError"}blocks;fields}function De(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function re(e,t,n){return["decofile-write",e,t,n]}function kn(e,t,n){return{id:re(e,t,n).join(":")}}function Re(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function Cn(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function In(e,t,n){e.setQueryData(m.decofileDraft(De(t)),n)}function On(e,t){return e.getQueryData(m.decofileDraft(De(t)))??null}async function Tn(e,t){const n=await fetch(Re(e),{cache:"no-store",headers:{...oe("v7"),"if-none-match":`"${t}"`}}).catch(()=>null);return n?.status===200||n?.status===409}function Ho(e){const t=P.c(4);let n;t[0]!==e?(n=m.decofileDraft(e?De(e):""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:_n,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=F(o);return r??null}async function _n(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function Nn(e,t){const n=await fetch(Re(t),{cache:"no-store",headers:oe("v7")});if(await Ce(n))throw Ie(e,t.orgSlug,t.virtualMcpId),new ke;if(!n.ok){const r=new Error(`Failed to fetch decofile: ${n.status}`);throw r.status=n.status,r}const o=await n.json();return o.token&&In(e,t,{version:o.version,token:o.token,apiHost:o.apiHost??window.location.host}),o.decofile}async function Go(e,t){const n=await fetch(Re(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const r=await n.json().catch(()=>({}));throw r.code==="block-conflict"?new Ne(r.blocks??[],r.error??"Block changed"):new Error(r.error??`Save failed (${n.status})`)}if(!n.ok)return Cn(n,"Save");const o=await n.json();return{...o,apiHost:o.apiHost??window.location.host}}const gt=3e3,Dn=15e3,Rn=2*6e4,mt={now:()=>Date.now(),setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function xn(e){return e<Rn?gt:Dn}function Pn(e,t=mt){const n=t.now();let o=!1,r=!1,s=null;const i=()=>{o||(s=t.setTimeout(a,xn(t.now()-n)))},a=()=>{if(s=null,o)return;const{read:c,skip:l}=e();if(r||t.hidden()||l?.()){i();return}r=!0;let u;try{u=c()}catch{u=void 0}Promise.resolve(u).catch(()=>{}).finally(()=>{r=!1}),i()};return i(),()=>{o=!0,s!==null&&t.clearTimeout(s)}}const qe=()=>0;function An(e,t,n=mt){const o=U.useRef(t);o.current=t;const[r]=U.useState(()=>({polling:()=>Pn(()=>o.current,n),idle:()=>()=>{}}));U.useSyncExternalStore(e?r.polling:r.idle,qe,qe)}function vt(e,t){return ne(e,t)}function $n(e,t){return ne(e,"preview-fetch",{path:t})}function Ko(e){return vt(e,"preview-invoke")}function qo(e){return vt(e,"catalog-invoke")}function bt(e){try{const{hostname:t}=new URL(e);return t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="::1"}catch{return!1}}function Ln(){if(typeof document>"u")return null;const e=Array.from(document.querySelectorAll("iframe"));for(const t of e){const n=t.getAttribute("src");if(n&&bt(n))return n}return null}function Fn(e,t){const n=e.previewUrl??e.getFallbackPreviewUrl?.()??Ln();return n&&bt(n)?new URL(t,n).toString():$n(e,t)}function Un(e){return Fn(e,"/.decofile")}function Mn(e){return e===400?"absent":e===404?"unavailable":e>=200&&e<300?"ok":"error"}function Je(e){return e.liveOk||e.committedAbsent?404:e.liveStatus??502}async function jn(e,t){const n=ne(e,"read"),o=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t,full:!0})}),r=Mn(o.status);if(r==="absent")return{kind:"absent"};if(r==="unavailable")return{kind:"unavailable"};if(r==="error"){const i=new Error(`Failed to read ${t}: ${o.status}`);throw i.status=o.status,i}const s=await o.json();return typeof s.content!="string"?{kind:"unavailable"}:{kind:"data",data:Qt(s.content)}}async function Bn(e,t){const n=await jn(e,t);if(n.kind!=="data")return n;try{return{kind:"data",data:JSON.parse(n.data)}}catch{return{kind:"unavailable"}}}async function Jo(e){const t=`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/meta`,n=await fetch(t,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const o=new Error(`Failed to read committed meta: ${n.status}`);throw o.status=n.status,o}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function Qn(e){return Vt(e)?.metadata?.runtime?.path??null}class wt extends Error{constructor(t){super(t instanceof Error?t.message:String(t),{cause:t}),this.name="ServeLostError"}}function Yo(e){return e instanceof T&&e.code===p.Conflict}function pt(e){const t=e.data?.violations;return!Array.isArray(t)||t.length===0?e.message:t.slice(0,3).map(n=>n.message).join("; ")}function Vn(e,t,n){if(t instanceof Ne)return t.message;if(n==="local")return Gn(e,t);if(t instanceof T)switch(t.code){case p.Conflict:return e("siteEditor.save.conflict");case p.ReadOnly:return e("siteEditor.save.readOnly");case p.InvalidBlock:case p.InvalidParams:return e("siteEditor.save.invalid");case p.LimitExceeded:return e("siteEditor.save.tooLarge")}return e("siteEditor.save.failed")}function Hn(e,t){if(t==="local"||e instanceof Ne)return null;if(e instanceof T){const n=e.code===p.InvalidBlock||e.code===p.InvalidParams?pt(e):e.message;return n?`${e.code}: ${n}`:null}return e.message||null}function Gn(e,t){if(t instanceof wt)return e("decoServe.save.serverGone");if(t instanceof T)switch(t.code){case p.Conflict:return e("decoServe.save.conflict");case p.ReadOnly:return e("decoServe.save.readOnly");case p.InvalidBlock:case p.InvalidParams:return e("decoServe.save.invalid",{detail:pt(t)});case p.LimitExceeded:return e("decoServe.save.tooLarge")}return e("sectionsEditor.sectionsEditor.saveFailed",{error:t.message})}function Kn(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function qn(e,t){const[n,o]=U.useState(e),r=U.useRef(null);return e&&!n&&o(!0),U.useEffect(()=>{if(e){r.current??=Date.now();return}if(!n)return;const s=()=>{r.current=null,o(!1)},i=Kn(r.current,Date.now(),t);if(i===0){s();return}const a=setTimeout(s,i);return()=>clearTimeout(a)},[e,n,t]),n}const yt={phase:"idle",inFlight:0,reload:{seq:0,navigates:!1},epoch:0},Jn=15e3,ee=new Map;function H(e,t){return`${e}/${t}`}function j(e){let t=ee.get(e);return t||(t={state:yt,listeners:new Set,previews:0,timer:null,discardListeners:new Set},ee.set(e,t)),t}function B(e,t){const n=j(e);n.state={...n.state,...t};for(const o of n.listeners)o()}function se(e){e.timer&&clearTimeout(e.timer),e.timer=null}function xe(e){return ee.get(e)?.state??yt}function Yn(e,t){const n=j(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function Wo(e){const t=j(e);return t.previews++,()=>{t.previews--,t.previews===0&&t.state.phase==="reloading"&&(se(t),B(e,{phase:"idle"}))}}function zo(e){const t=ee.get(e);!t||t.state.phase!=="reloading"||(se(t),B(e,{phase:"idle"}))}function St(e){const t=j(e);se(t),B(e,{phase:"saving",inFlight:t.state.inFlight+1})}function me(e,t){const n=j(e),o=Math.max(0,n.state.inFlight-1);if(o>0){B(e,{inFlight:o});return}if(!t.ok||n.previews===0){B(e,{phase:"idle",inFlight:o});return}Et(e,t.navigates,o)}function Et(e,t,n=0){const o=j(e);se(o),o.timer=setTimeout(()=>{o.timer=null,o.state.phase==="reloading"&&B(e,{phase:"idle"})},Jn),B(e,{phase:"reloading",inFlight:n,reload:{seq:o.state.reload.seq+1,navigates:t}})}function Wn(e){return e?.kind==="protocol"&&e.source==="github"}async function ve(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s,backend:i,cacheKey:a}=e,c=t.kind==="publish"||t.kind==="reapply"?n.invalidateQueries({queryKey:m.hostedReleases(o,r)}):null;if(i?.kind!=="protocol")return await c,{navigates:!1};const l=s?m.protocolDraftRead(o,r,s):null,u=l?JSON.stringify(n.getQueryData(l)??null):null,d=c?[c]:[];if(a&&t.reread&&d.push(n.invalidateQueries({queryKey:m.decofile(a)})),a&&d.push(n.invalidateQueries({queryKey:m.contentChanges(a)})),s&&i.source==="sandbox"&&d.push(n.invalidateQueries({queryKey:Ht(o,r,s)})),Wn(i)&&l&&d.push(n.invalidateQueries({queryKey:l})),await Promise.all(d),t.kind!=="edit"){const g=H(o,r);B(g,{epoch:xe(g).epoch+1})}const h=l?JSON.stringify(n.getQueryData(l)??null):null,b=u!==h;return b&&await new Promise(g=>$t.schedule(g)),{navigates:b}}async function zn(e,t){return St(H(e.orgSlug,e.virtualMcpId)),kt(e,t)}async function kt(e,t){const n=H(e.orgSlug,e.virtualMcpId);let o;try{o=await t.write()}catch(s){throw me(n,{ok:!1,navigates:!1}),t.refreshOnError&&ve(e,{kind:t.kind,reread:!0}).catch(()=>{}),s}let r=!1;try{({navigates:r}=await ve(e,t))}catch{}finally{me(n,{ok:!0,navigates:r})}return o}function Xo(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s}=e,i=H(o,r),a=new Set(t.blockKeys);for(const u of[...j(i).discardListeners])u(a);St(i);let c=!1;const l=()=>(c=!0,kt(e,{kind:"discard",reread:!0,write:t.write}));return s?n.getMutationCache().build(n,{mutationKey:re(o,r,s),scope:kn(o,r,s),mutationFn:l}).execute(void 0).catch(u=>{throw c||me(i,{ok:!1,navigates:!1}),u}):l()}function Zo(e,t,n){const o=P.c(8);let r;o[0]!==e||o[1]!==t?(r=H(e,t),o[0]=e,o[1]=t,o[2]=r):r=o[2];const s=r;let i;o[3]!==n||o[4]!==s?(i=()=>{const c=j(s).discardListeners;return c.add(n),()=>{c.delete(n)}},o[3]=n,o[4]=s,o[5]=i):i=o[5];let a;o[6]!==s?(a=[s],o[6]=s,o[7]=a):a=o[7],U.useEffect(i,a)}function Xn(e){const t=H(e.orgSlug,e.virtualMcpId);xe(t).inFlight>0||ve(e,{kind:"external"}).then(({navigates:n})=>{const o=j(t);o.previews>0&&o.state.inFlight===0&&Et(t,n)}).catch(()=>{})}function Zn(e,t){const n=P.c(7);let o;n[0]!==e||n[1]!==t?(o=H(e,t),n[0]=e,n[1]=t,n[2]=o):o=n[2];const r=o;let s;n[3]!==r?(s=l=>Yn(r,l),n[3]=r,n[4]=s):s=n[4];const i=s;let a;n[5]!==r?(a=()=>xe(r),n[5]=r,n[6]=a):a=n[6];const c=a;return U.useSyncExternalStore(i,c,c)}const eo=500;function er(e,t){const{phase:n}=Zn(e,t);return qn(n!=="idle",eo)}function to(e){const t=new Error(`${e} unavailable (content server unreachable)`);return t.status=502,t}function no(e,t){return m.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,`protocol${t.cacheKeySuffix}`,"")}function tr(e,t,n){const o=e.getQueryData(m.contentVersions(t));if(!o)return;if(Object.hasOwn(o,n))return o[n];const r=e.getQueryData(m.decofile(t));return r&&Object.hasOwn(r,n)?void 0:null}function Ct(e,t,n){e.setQueryData(m.contentVersions(t),o=>{const r={...o};for(const[s,i]of Object.entries(n))i===null?delete r[s]:r[s]=i;return r})}function oo(e,t){const n=e.getMutationCache().findAll({mutationKey:re(t.orgSlug,t.virtualMcpId,t.branch),status:"pending"});return new Set(n.flatMap(o=>sn(o.state.variables)))}function be(e,t){e.resetQueries({queryKey:m.contentBackend(t.orgSlug,t.virtualMcpId,"local")})}async function te(e,t,n,o){try{return await o()}catch(r){const s=!(r instanceof T);throw t.source==="local"&&s?(be(e,n),new wt(r)):(t.source==="local"&&Se(r)&&be(e,n),r)}}const z=new Map;function It(e,t,n,o){const r=z.get(o);if(r)return r;const s=Ot(e,t,n,o,!0);return z.set(o,s),s.finally(()=>z.delete(o))}async function nr(e,t,n,o){const r=z.get(o);return r&&await r.catch(()=>{}),It(e,t,n,o)}async function Ot(e,t,n,o,r){const s=m.decofile(o),i=no(n,t),a=m.contentRevision(o),c=e.getQueryData(s),l=e.getQueryData(i),u=e.getQueryData(a)??void 0,d=t.source==="github"&&!l?lt(e,n.orgSlug,n.virtualMcpId):void 0,h=d?.isV8&&d.schema&&d.version?d:void 0,b=l??h?.schema,g=h?{...u,schemaVersion:h.version}:u,k=r&&c?g?.revision:void 0,C=r&&b?g?.schemaVersion:void 0,R=m.contentChanges(o),_=e.getQueryData(R),[N,I,O]=await te(e,t,n,()=>t.client.batch([{method:"blocks.list",params:k?{ifNoneMatch:k}:{}},{method:"schema.get",params:C?{ifNoneMatch:C}:{}},{method:"changes.list",params:_?{ifNoneMatch:_.revision}:{}}]));if(O?.ok){const x=he(_,O.result);x&&e.setQueryData(R,x)}else O&&t.source==="local"&&Se(O.error)&&be(e,n);if(!N?.ok)throw N?.error??new Error("no blocks.list");if(!I)throw new Error("no schema.get");const w=N.result,y=dt(I),S=I.ok&&!y?I.result:null;if(w.notModified&&!c||S?.notModified&&!b)return Ot(e,t,n,o,!1);const v=w.notModified?new Set:oo(e,n),A=w.notModified?c:rn(w.blocks,c,v),$=y?an():S?S.notModified?b:S.schema:I.error,E=e.getQueryData(a)?.revision,D=E!==void 0&&E!==g?.revision;if(e.setQueryData(a,{revision:D?E:w.notModified?g?.revision:w.revision,schemaVersion:S?S.notModified?g?.schemaVersion:S.version??void 0:void 0}),e.setQueryData(s,A),!w.notModified){const x=m.contentVersions(o),M=e.getQueryData(x),J={...w.versions};for(const Q of v){const L=M?.[Q];L!==void 0?J[Q]=L:delete J[Q]}e.setQueryData(x,J)}return $ instanceof T||e.setQueryData(i,$),!D&&!w.notModified&&c&&g?.revision&&w.revision!==g.revision&&Xn({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o}),{blocks:A,meta:$}}async function or(e,t,n,o,r,s){return zn({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o},{kind:"edit",write:async()=>{const i=await te(e,t,n,()=>t.client.blocksApply({set:r.set,delete:r.delete,...s?{ifMatch:s}:{}}));e.setQueryData(m.contentRevision(o),c=>({...c,revision:i.revision}));const a=i.versions??{};return Ct(e,o,a),{revision:i.revision,versions:a}}})}async function rr(e,t,n,o,r){await e.invalidateQueries({queryKey:m.decofile(o)});let s;try{const a=(await te(e,t,n,()=>t.client.changesGet({names:[r]}))).entries[r];if(a&&a.after===null&&a.version!==null)return;s={value:a?.after??null,version:a?.version??null}}catch{const i=await te(e,t,n,()=>t.client.blocksList({}));if(i.notModified)return;s={value:i.blocks[r]??null,version:i.versions[r]??null}}e.setQueryData(m.decofile(o),i=>{const a={...i};return s.value===null?delete a[r]:a[r]=s.value,a}),Ct(e,o,{[r]:s.version})}function sr(e){const t=P.c(11),n=K();let o;t[0]!==e?.branch||t[1]!==e?.orgSlug||t[2]!==e?.virtualMcpId?(o=m.protocolDraftRead(e?.orgSlug??"",e?.virtualMcpId??"",e?.branch??""),t[0]=e?.branch,t[1]=e?.orgSlug,t[2]=e?.virtualMcpId,t[3]=o):o=t[3];let r;t[4]!==e||t[5]!==n?(r=async()=>{const c=await fetch(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`,{cache:"no-store",headers:oe("v8")});if(await Ce(c))throw Ie(n,e.orgSlug,e.virtualMcpId),new ke;if(!c.ok)throw new Error(`draft pointer read failed: ${c.status}`);return await c.json()},t[4]=e,t[5]=n,t[6]=r):r=t[6];const s=!!e;let i;t[7]!==o||t[8]!==r||t[9]!==s?(i={queryKey:o,queryFn:r,enabled:s,staleTime:Number.POSITIVE_INFINITY},t[7]=o,t[8]=r,t[9]=s,t[10]=i):i=t[10];const{data:a}=F(i);return!e||!a?.draft||!a.version?null:`${a.draft}@${a.version}`}function ir(e){const t=P.c(4);let n;t[0]!==e?(n=m.contentRevision(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:ro,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=F(o);return r?.revision}async function ro(){throw new Error("content revisions are set by reads and writes")}function Ye(e){const t=`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`;return e.protocolSuffix?`${t}${e.protocolSuffix}`:e.localPreviewUrl?`${t}:local:${e.localPreviewUrl}`:t}function Tt(e,t){const n=P.c(6),{url:o}=ht(e?.virtualMcpId),r=_e(e?.virtualMcpId,e?.branch);if(!e)return"";let s;return n[0]!==r.cacheKeySuffix||n[1]!==r.kind||n[2]!==o||n[3]!==t?.tunnel||n[4]!==e?(s=r.kind==="protocol"?Ye({...e,protocolSuffix:r.cacheKeySuffix}):Ye({...e,localPreviewUrl:t?.tunnel===!1?null:o}),n[0]=r.cacheKeySuffix,n[1]=r.kind,n[2]=o,n[3]=t?.tunnel,n[4]=e,n[5]=s):s=n[5],s}function ar(e,t){const n=P.c(39),{url:o,undecided:r}=ht(e?.virtualMcpId),s=!!o,i=_e(e?.virtualMcpId,e?.branch),a=i.kind==="protocol"?i:null,c=Tt(e),l=t?.fetchEnabled??!0,u=Qn(e?.virtualMcpId),d=ze(e?.virtualMcpId).runtime==="cms",h=K();let b;n[0]!==c?(b=m.decofile(c),n[0]=c,n[1]=b):b=n[1];const g=b;let k;n[2]!==e||n[3]!==h||n[4]!==g?(k=()=>{if(!e||h.isMutating({mutationKey:re(e.orgSlug,e.virtualMcpId,e.branch)})>0)return!0;const v=h.getQueryState(g);return v?.fetchStatus==="fetching"||Date.now()-(v?.dataUpdatedAt??0)<gt/2},n[2]=e,n[3]=h,n[4]=g,n[5]=k):k=n[5];let C;n[6]!==d||n[7]!==s||n[8]!==e||n[9]!==a||n[10]!==h||n[11]!==g?(C=async()=>{if(e){if(!a&&d&&!s){const v=On(h,e)?.version;if(v&&!await Tn(e,v))return}await h.refetchQueries({queryKey:g,exact:!0},{cancelRefetch:!1})}},n[6]=d,n[7]=s,n[8]=e,n[9]=a,n[10]=h,n[11]=g,n[12]=C):C=n[12];let R;n[13]!==k||n[14]!==C?(R={skip:k,read:C},n[13]=k,n[14]=C,n[15]=R):R=n[15],An(!!t?.pollWhile&&!!e,R);let _;n[16]!==i.kind||n[17]!==d||n[18]!==l||n[19]!==c||n[20]!==s||n[21]!==o||n[22]!==u||n[23]!==e||n[24]!==a||n[25]!==h?(_=async()=>{if(a)return(await It(h,a,e,c)).blocks;if(i.kind==="unavailable")throw to("decofile");if(s){const E=await fetch(new URL("/.decofile",o).toString(),{cache:"no-store"}).catch(ao),D=E?.ok?Ke(await E.text()):null;if(D)return D;const x=new Error("decofile unavailable (local tunnel unreachable)");throw x.status=502,x}if(d)return Nn(h,e);const v=()=>Bn(e,En(u,".deco/blocks.gen.json"));if(l){const E=await fetch(Un(e),{cache:"no-store"}).catch(io);if(E?.ok){const M=Ke(await E.text());if(M)return M}const D=await v();if(D.kind==="data")return D.data;const x=new Error(`Failed to fetch decofile: ${E?.status??"network error"}`);throw x.status=Je({liveOk:!!E?.ok,liveStatus:E?.status,committedAbsent:D.kind==="absent"}),x}const A=await v();if(A.kind==="data")return A.data;const $=new Error("decofile unavailable (preview down, no committed snapshot)");throw $.status=Je({liveOk:!1,committedAbsent:A.kind==="absent"}),$},n[16]=i.kind,n[17]=d,n[18]=l,n[19]=c,n[20]=s,n[21]=o,n[22]=u,n[23]=e,n[24]=a,n[25]=h,n[26]=_):_=n[26];const N=!!e&&i.kind!=="pending"&&!r,I=a?0:3e4,O=a?.describe.pollIntervalMs,w=a?"always":void 0;let y;n[27]!==d||n[28]!==s||n[29]!==a?(y=(v,A)=>{if(a||d||s)return v<3;const $=A.status;return $!==502&&$!==404&&v<2},n[27]=d,n[28]=s,n[29]=a,n[30]=y):y=n[30];let S;return n[31]!==g||n[32]!==_||n[33]!==N||n[34]!==I||n[35]!==O||n[36]!==w||n[37]!==y?(S={queryKey:g,queryFn:_,enabled:N,staleTime:I,refetchInterval:O,refetchIntervalInBackground:!1,refetchOnWindowFocus:w,retry:y,retryDelay:so},n[31]=g,n[32]=_,n[33]=N,n[34]=I,n[35]=O,n[36]=w,n[37]=y,n[38]=S):S=n[38],F(S)}function so(e){return Gt(5e3,1e3,e,2,0)}function io(){return null}function ao(){return null}const co="site-editor-save",lo={id:co,description:void 0,action:void 0,cancel:void 0},cr="site-editor-undo",we="site-editor-publish";function uo(e){const t=P.c(7),{label:n,detail:o}=e;let r;t[0]!==n?(r=V.jsx("summary",{className:"cursor-pointer select-none text-muted-foreground",children:n}),t[0]=n,t[1]=r):r=t[1];let s;t[2]!==o?(s=V.jsx("p",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-muted-foreground",children:o}),t[2]=o,t[3]=s):s=t[3];let i;return t[4]!==r||t[5]!==s?(i=V.jsxs("details",{className:"mt-1 text-xs",children:[r,s]}),t[4]=r,t[5]=s,t[6]=i):i=t[6],i}function _t(e,t){return t?V.jsx(uo,{label:e("siteEditor.details"),detail:t}):void 0}function lr(e,t,n){X.error(Vn(e,t,n),{...lo,description:_t(e,Hn(t,n))})}const Nt={action:void 0,duration:void 0};function ur(e,t){X.success(t?e("siteEditor.publish.publishedOn",{host:t}):e("siteEditor.publish.published"),{...Nt,id:we,description:void 0})}function dr(e,{headline:t,body:n,detail:o,retry:r,pending:s,tone:i="error"}){const a=_t(e,o??null);X[i](t,{id:we,description:n&&a?V.jsxs(V.Fragment,{children:[V.jsx("p",{children:n}),a]}):n??a,action:r?{label:e("siteEditor.tryAgain"),onClick:c=>{c.preventDefault(),X.loading(s??e("thread.publishPopover.publishing"),{...Nt,id:we,description:void 0}),r()}}:void 0,duration:r?Number.POSITIVE_INFINITY:void 0})}function fr(e){return e instanceof Error?e.message||null:e==null?null:String(e)}function hr(e){const t=P.c(11),n=K(),{orgSlug:o,virtualMcpId:r,branch:s}=e,i=_e(r,s);let a;t[0]!==s||t[1]!==o||t[2]!==r?(a=s?{orgSlug:o,virtualMcpId:r,branch:s}:null,t[0]=s,t[1]=o,t[2]=r,t[3]=a):a=t[3];const l=Tt(a)||null;let u;return t[4]!==i||t[5]!==s||t[6]!==o||t[7]!==n||t[8]!==l||t[9]!==r?(u={queryClient:n,orgSlug:o,virtualMcpId:r,branch:s,backend:i,cacheKey:l},t[4]=i,t[5]=s,t[6]=o,t[7]=n,t[8]=l,t[9]=r,t[10]=u):u=t[10],u}export{jo as $,Zn as A,zo as B,Tt as C,ir as D,hr as E,kn as F,re as G,zn as H,jn as I,Cn as J,Ne as K,Yo as L,or as M,rr as N,lr as O,In as P,Go as Q,Zo as R,Po as S,at as T,Fo as U,Qo as V,Be as W,Qe as X,Vo as Y,Ao as Z,Fn as _,$o as a,Xt as a0,_t as a1,fr as a2,Co as a3,ko as a4,qt as a5,Ie as a6,ur as a7,Xo as a8,Io as a9,Oo as aa,Se as ab,_o as ac,no as ad,Yt as ae,uo as af,To as ag,It as ah,to as ai,Jo as aj,Bn as ak,Ho as al,sr as am,oe as an,dr as ao,we as ap,Nt as aq,cr as ar,lo as as,nr as at,tr as au,qo as av,en as b,ht as c,zt as d,xo as e,Zt as f,Te as g,ye as h,ot as i,Ko as j,$n as k,ar as l,Lo as m,Bo as n,Qn as o,No as p,En as q,Ro as r,Do as s,ct as t,_e as u,Mo as v,er as w,Uo as x,H as y,Wo as z};
@@ -1 +0,0 @@
1
- import{c as s}from"./index-ifZGovK1.js";import{c as v,w as d}from"./section-preview-url-7zfngvgW.js";import{u as h,al as w,am as P}from"./use-content-sync-D_qyLHCv.js";import{a as b}from"./input-DIcILgWd.js";function g(e){const t=s.c(3),i=b(e?.virtualMcpId).runtime==="cms",r=h(e?.virtualMcpId,e?.branch),n=r.kind==="protocol"&&r.source==="github",o=w(e),u=P(n?e:null);if(!e||!i)return null;if(n)return u;let l;return t[0]!==o||t[1]!==e?(l=o?v({...e,...o}):null,t[0]=o,t[1]=e,t[2]=l):l=t[2],l}function M(e){const t=s.c(11);let i;t[0]!==e?(i=e?{orgSlug:e.orgSlug,virtualMcpId:e.virtualMcpId,branch:e.branch}:null,t[0]=e,t[1]=i):i=t[1];const r=g(i),n=e?.previewServerUrl??null;let o=null;if(n)try{let f;t[2]!==n?(f=new URL(n),t[2]=n,t[3]=f):f=t[3],o=f.host}catch{o=null}let u;t[4]!==r||t[5]!==e||t[6]!==n?(u=e&&n&&r?d(new URL(e.path,n).toString(),r):null,t[4]=r,t[5]=e,t[6]=n,t[7]=u):u=t[7];const l=u;let c;return t[8]!==o||t[9]!==l?(c={url:l,host:o},t[8]=o,t[9]=l,t[10]=c):c=t[10],c}export{g as a,M as u};
@@ -1 +0,0 @@
1
- import{c as Ee,b as He,u as Le,a2 as Oe,fl as Be,fm as Ke,fn as le,fo as de,al as $e,aj as me,fp as qe,fq as Qe,r as Y,dU as We,M as pe,fr as _e,fs as ze}from"./index-ifZGovK1.js";import{a as Ge}from"./use-chat-layout-state-24wCHq_-.js";import{b as Je}from"./agent-icon--EtIPqub.js";import{i as Xe}from"./Monitor01-DQEkUL3d.js";import{u as Ye}from"./use-connection-CBKH8IwL.js";import{a as Ze}from"./use-mcp-client-D1kFCZ4v.js";import{u as et}from"./use-mcp-tools-I-kpM305.js";import{a as tt}from"./repository-binding-DtIeSvDY.js";import{g as at}from"./types-CHFSNT7a.js";import{t as ot}from"./utils-CVEq3hMx.js";import{u as nt,a as F}from"./experiments-tab-choice-CMHPX5ZC.js";import{u as st}from"./index-j4NUsiRT.js";import{F as ue}from"./file-type-icon-DHFVwXjA.js";import{a as it,u as ct}from"./use-panel-navigate-Bghh8kV3.js";import{r as Z}from"./resolve-tab-icon-56O81FJc.js";import{u as rt}from"./use-task-metadata-Dd-9Qkoq.js";import{r as lt}from"./preview-source-BsRLGWUP.js";import{i as dt,r as mt,s as pt}from"./shell-layout-U7D4A6nk.js";import{a as ut}from"./input-DIcILgWd.js";import{u as ft}from"./use-organization-settings-laAOR3Cm.js";import{u as bt}from"./use-project-scope-DH5nL_oD.js";import{b as Tt,u as It,c as vt,d as Pt,f as yt}from"./use-project-native-view-presence-C3Vtd78t.js";import{c as gt}from"./chat-context-DXm8btNS.js";import{r as kt}from"./virtual-mcp-Xd6PvE5_.js";function Xt(o){const e=Ee.c(35),d=He(),{openPanel:b,closePanel:U}=it();let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T={strict:!1},e[0]=T):T=e[0];const fe=Le(T),ee=ct(),te=Ge(),i=tt(o.virtualMcpId),I=rt(o.taskId),{org:n}=Oe(),{currentBranch:be,activeTask:v}=gt(),m=i?.metadata.ui?.layout??null,c=m?.tabs??[],r=i?.id?Be(i.id):null,P=I?.expanded_tools??[],y=ft(),{scopeId:Te,project:Ie}=bt(),g=Tt(Te,Ie,i),p=It(g.project);nt(g.project?.id);const ae=vt(g.resolvedScopeId,F(g.project?.metadata),p.presence);let k;e[1]===Symbol.for("react.memo_cache_sentinel")?(k={includeVirtual:!0},e[1]=k):k=e[1];const u=Ye(k),ve=st(),x=v?.branch??be;let w;e[2]!==v?.metadata||e[3]!==o.taskId||e[4]!==i?.metadata||e[5]!==I||e[6]!==x?(w=lt({threadId:o.taskId,sandboxBranch:x,agentHasRepo:F(i?.metadata),threadHasRepo:F(I)||F(v?.metadata)}),e[2]=v?.metadata,e[3]=o.taskId,e[4]=i?.metadata,e[5]=I,e[6]=x,e[7]=w):w=e[7];const Pe=w,E=ve.lifecycle.phase==="running",{runtime:ye,resolved:oe}=ut(o.virtualMcpId),H=!!r&&E;let h;e[8]!==H?(h={enabled:H},e[8]=H,e[9]=h):h=e[9];const ne=Ze({connectionId:r,orgId:n.id,orgSlug:n.slug},h),L=ne,O=!!ne&&E;let V;e[10]!==L||e[11]!==O?(V={client:L,enabled:O},e[10]=L,e[11]=O,e[12]=V):V=e[12];const{data:ge}=et(V),se=r&&E?(ge?.tools??[]).filter(Mt).map(t=>({connectionId:r,toolName:t.name,label:ot(t.name),icon:null})):[],B=se[0],ke=B?se:[],f=B&&r?{type:"ext-apps",id:r,toolName:B.toolName}:m?.defaultMainView??null,we=kt(m),ie={assets:p.assetsPending,siteAccess:p.siteAccessPending,releases:p.releasesPending,calendar:p.calendarPending},{activeTab:M,mainOpen:l}=Ke({panelTabId:ee,mainPanelParam:fe.mainpanel,routeDefaultMain:te,metadata:f||m?{defaultMainView:f,tabs:c.map(Vt)}:null}),he=f||m?{defaultMainView:f,tabs:c.map(ht)}:null,C=mt({hasSource:Pe==="repo"||y,runtime:ye,cmsMode:we}),Ve=C.includes("content"),Me=le(he),Ce=f?.type,ce=Pt(Ce,ae,ie,C,oe),K=ce?le(null):Me,Se=yt(M,ae,ie),Ne=!C.includes("code")&&oe&&de(M)!==null,a=!ee&&!te&&ce||M==="content"&&!Ve||Ne||Se?K:M,$=$e(a);let S;e[13]!==d?(S=t=>d(t==="site-editor"?"common.mainPanelTabs.preview":t==="content"?"common.mainPanelTabs.content":"common.mainPanelTabs.code"),e[13]=d,e[14]=S):S=e[14];const je=S,q=new Map;for(const t of P){const s=me(t.appId,t.toolName);q.set(s,{id:s,title:t.toolName,appId:t.appId,iconKey:t.toolName})}for(const t of ke){if(t.toolName==="fetch_assets")continue;const s=me(t.connectionId,t.toolName);q.set(s,{id:s,title:t.label||t.toolName,appId:t.connectionId,iconKey:t.toolName,iconUrl:t.icon??null})}const Q=qe(a),W=Q?Q.key.split("/").pop()??Q.key:null,Ae=W?[{id:a,title:W,kind:"file",icon:{kind:"component",Component:t=>Y.createElement(ue,{filename:W,...t})}}]:[],N=Qe(a),De=N?[{id:a,title:(N.path.split("/").pop()??N.path).replace(/\.html$/i,""),kind:"file",icon:{kind:"component",Component:t=>Y.createElement(N.path.startsWith("pages/")?Je:Xe,t)}}]:[],_=We(a),z=_?_.path.split("/").pop()??_.path:null,Re=z?[{id:a,title:z,kind:"file",icon:{kind:"component",Component:t=>Y.createElement(ue,{filename:z,...t})}}]:[],Fe=dt(a)?C.map(t=>({id:t==="code"&&de(a)?a:t,title:je(t),kind:"system",icon:Z({tabId:t,kind:"system",connections:u})})):[];let j;e[15]!==u?(j=t=>({id:_e(t.id),title:t.title,kind:"agent",icon:Z({tabId:t.id,kind:"agent",appId:t.view.appId,connections:u})}),e[15]=u,e[16]=j):j=e[16];const Ue=[...Fe,...Ae,...De,...Re,...c.map(j),...Array.from(q.values()).map(t=>({id:t.id,title:t.title,kind:"expanded",icon:Z({tabId:t.iconKey,kind:"expanded",appId:t.appId,iconUrl:t.iconUrl,connections:u})}))],re=new Set,G=Ue.filter(t=>re.has(t.id)?!1:(re.add(t.id),!0)),xe=o.virtualMcpId;let A;e[17]!==n.id?(A=pe(n.id),e[17]=n.id,e[18]=A):A=e[18];const J=xe===A;let D;e[19]!==a||e[20]!==U||e[21]!==l||e[22]!==J||e[23]!==b||e[24]!==n.id||e[25]!==y?(D=t=>{if(pt({reportsOnly:y,onReportAgent:J,tabId:t})){b(t,{virtualmcpid:pe(n.id),search:wt});return}const s=ze({clickedId:t,activeTab:a,mainOpen:l});"close"in s?U():b(s.tabId)},e[19]=a,e[20]=U,e[21]=l,e[22]=J,e[23]=b,e[24]=n.id,e[25]=y,e[26]=D):D=e[26];const X=D;let R;return e[27]!==a||e[28]!==$||e[29]!==P||e[30]!==c||e[31]!==l||e[32]!==X||e[33]!==G?(R={activeTab:a,mainOpen:l,setActiveTab:X,layoutTabs:c,expandedTools:P,automationTabParsed:$,tabs:G},e[27]=a,e[28]=$,e[29]=P,e[30]=c,e[31]=l,e[32]=X,e[33]=G,e[34]=R):R=e[34],R}function wt(o){return{...o,thread:void 0}}function ht(o){return{id:o.id}}function Vt(o){return{id:o.id}}function Mt(o){return!!at(o._meta)}export{Xt as u};
@@ -1 +0,0 @@
1
- import{c as I,o as N,e as U,K as R}from"./index-ifZGovK1.js";import{a as A}from"./input-DIcILgWd.js";import{o as G,c as L,u as z,C as H,F as Y,Q as $,P as V,q as T,J as W,G as X,M as Z,H as ee}from"./use-content-sync-D_qyLHCv.js";import{s as te}from"./sandbox-git-api-CH_-QFpD.js";import{u as oe}from"./chat-context-DXm8btNS.js";import{b as _}from"./sandbox-url-D3mC8qhT.js";import{d as B}from"./utils-CduIoZ0d.js";import{Q as se}from"./parse-sections-YhOUxu7l.js";function ye(O){const e=I.c(50),{orgSlug:s,virtualMcpId:t,branch:o}=O,r=N(),P=oe()?.taskId??null,g=G(t),E=A(t).runtime==="cms",{url:x}=L(t),k=z(t,o),w=k.kind==="protocol"?k:null;let b;e[0]!==o||e[1]!==s||e[2]!==t?(b={orgSlug:s,virtualMcpId:t,branch:o},e[0]=o,e[1]=s,e[2]=t,e[3]=b):b=e[3];const u=H(b);let v;e[4]!==u?(v=R.decofile(u),e[4]=u,e[5]=v):v=e[5];const d=v;let S;e[6]!==o||e[7]!==E||e[8]!==x||e[9]!==s||e[10]!==g||e[11]!==r||e[12]!==P||e[13]!==t?(S=async(c,f)=>{if(x)return{ok:!0};if(E){const n=await $({orgSlug:s,virtualMcpId:t,branch:o},{set:c,delete:f});return V(r,{orgSlug:s,virtualMcpId:t,branch:o},n),await r.invalidateQueries({queryKey:te({orgSlug:s,virtualMcpId:t,branch:o,threadId:P})}),n}const l={orgSlug:s,virtualMcpId:t,branch:o,threadId:P};for(const[n,i]of Object.entries(c)){const C=await fetch(_(l,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:T(g,B(n)),content:JSON.stringify(i,null,2)})});if(!C.ok)return W(C,"Write")}for(const n of f){const i=await fetch(_(l,"unlink"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:T(g,B(n))})});if(!i.ok)return W(i,"Delete")}return{ok:!0}},e[6]=o,e[7]=E,e[8]=x,e[9]=s,e[10]=g,e[11]=r,e[12]=P,e[13]=t,e[14]=S):S=e[14];const q=S;let y;e[15]!==o||e[16]!==s||e[17]!==t?(y=X(s,t,o),e[15]=o,e[16]=s,e[17]=t,e[18]=y):y=e[18];let p;e[19]!==o||e[20]!==s||e[21]!==t?(p=Y(s,t,o),e[19]=o,e[20]=s,e[21]=t,e[22]=p):p=e[22];let m;e[23]!==k||e[24]!==o||e[25]!==u||e[26]!==q||e[27]!==s||e[28]!==w||e[29]!==r||e[30]!==t?(m=async c=>{const{writes:f,deletes:l}=c,n=se(f);return w?Z(r,w,{orgSlug:s,virtualMcpId:t,branch:o},u,{set:n,delete:l.filter(i=>!(i in n))}):ee({queryClient:r,orgSlug:s,virtualMcpId:t,branch:o,backend:k,cacheKey:u},{kind:"edit",write:()=>q(n,l)})},e[23]=k,e[24]=o,e[25]=u,e[26]=q,e[27]=s,e[28]=w,e[29]=r,e[30]=t,e[31]=m):m=e[31];let h;e[32]!==o||e[33]!==s||e[34]!==r||e[35]!==t?(h=()=>{r.invalidateQueries({queryKey:R.liveMeta(s,t,o)})},e[32]=o,e[33]=s,e[34]=r,e[35]=t,e[36]=h):h=e[36];let K;e[37]!==y||e[38]!==p||e[39]!==m||e[40]!==h?(K={mutationKey:y,scope:p,mutationFn:m,onSuccess:h},e[37]=y,e[38]=p,e[39]=m,e[40]=h,e[41]=K):K=e[41];const a=U(K);let Q;e[42]!==a||e[43]!==r||e[44]!==d?(Q=async c=>{const f=[...Object.keys(c.writes),...c.deletes],l=r.getQueryData(d),n=new Map;for(const i of f)l&&i in l&&n.set(i,l[i]);r.setQueryData(d,i=>re(i,c)),r.cancelQueries({queryKey:d});try{return await a.mutateAsync(c)}catch(i){const C=i;throw r.setQueryData(d,F=>{if(!F)return F;const J={...F};for(const M of f)n.has(M)?J[M]=n.get(M):delete J[M];return J}),C}},e[42]=a,e[43]=r,e[44]=d,e[45]=Q):Q=e[45];const j=Q;let D;return e[46]!==j||e[47]!==a.isError||e[48]!==a.isPending?(D={move:j,isPending:a.isPending,isError:a.isError},e[46]=j,e[47]=a.isError,e[48]=a.isPending,e[49]=D):D=e[49],D}function re(O,{writes:e,deletes:s}){const t={...O??{},...e};for(const o of s)o in e||delete t[o];return t}export{re as a,ye as u};
@@ -1 +0,0 @@
1
- import{c as M,b as ee,r as b,j as i,l as te,D as re,q as se,v as oe,I as ie,s as le}from"./index-ifZGovK1.js";import{a as W,e as H}from"./UserSquare-BBEl_BxL.js";import{b as ne}from"./agent-icon--EtIPqub.js";import{i as ce}from"./SearchMd-Cp6J-1Iu.js";import{F as Y,G as ae,H as V}from"./runnable-block-editor-CqYgijVY.js";import{bb as fe,al as ue,o as de,bc as me,G as ve}from"./parse-sections-YhOUxu7l.js";import{d as K,r as pe}from"./section-preview-url-7zfngvgW.js";import{i as he}from"./thread-intent-7GmQH5mt.js";import{a as xe}from"./input-DIcILgWd.js";import{c as ge,u as we,m as Se}from"./use-content-sync-D_qyLHCv.js";function be(r){return r.schema?.definitions??r.schema?.$defs??{}}function Z(r,e){const t=be(e),s=t[btoa(r)];if(!s)return[];const o=[s];if(Array.isArray(s.allOf)){const n=s.allOf.find(l=>typeof l.$ref=="string")?.$ref;if(typeof n=="string"){const l=t[n.replace("#/definitions/","")];l&&o.push(l)}}return o}function je(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s?.includes("{{{"))return s}}function ze(r,e){if(!e)return;const t=fe(r,he(e));if(!t)return;const s=je(t.resolveType,e);if(!s)return;const o=ae(s,t.data);if(o)return Y(o)}function ye(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s&&!s.includes("{{"))return Y(s)}}const Ne=12,G=new Set,F=new Set;function Re(){for(const r of F)r()}function Pe(r){return G.has(r)?!0:G.size>=Ne?!1:(G.add(r),!0)}function Q(r){G.delete(r)&&Re()}function Ie(r){return F.add(r),()=>{F.delete(r)}}function Te(r,e){const t=b.useRef(!1),[s,o]=b.useState(!1),n=b.useRef(null),l=b.useRef(null),f=b.useRef(null),c=b.useRef(r);c.current=r;const[p]=b.useState(()=>{const u=()=>{f.current?.(),f.current=null},d=()=>t.current?!0:Pe(e)?(t.current=!0,o(!0),u(),!0):!1;return a=>{if(l.current=a,n.current&&(n.current.disconnect(),n.current=null),u(),!a){t.current&&(Q(e),t.current=!1,o(!1));return}queueMicrotask(()=>{if(l.current!==a)return;const w=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!d()&&!f.current&&(f.current=Ie(()=>{l.current===a&&d()}));return}u(),t.current&&(Q(e),t.current=!1,o(!1))},{root:c.current.current,rootMargin:"160px 0px"});w.observe(a),n.current=w})}});return{ref:p,iframeActive:s}}function Ce(r){const e=M.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:n}=r,{ref:l,iframeActive:f}=Te(o,n),[c,p]=b.useState(!1),u=V()?H:W;let d;e[0]!==u||e[1]!==f||e[2]!==c||e[3]!==t||e[4]!==s?(d=f?i.jsxs(i.Fragment,{children:[!c&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:i.jsx(u,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),i.jsx("iframe",{src:t,title:`Preview ${s}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>p(!0)})]}):i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(u,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=u,e[1]=f,e[2]=c,e[3]=t,e[4]=s,e[5]=d):d=e[5];let a;return e[6]!==l||e[7]!==d?(a=i.jsx("div",{ref:l,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:d}),e[6]=l,e[7]=d,e[8]=a):a=e[8],a}function Ue(r){const e=M.c(3),{image:t}=r,s=V()?H:W;let o;return e[0]!==s||e[1]!==t?(o=i.jsx("div",{className:"relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-muted/40",children:t?i.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover"}):i.jsx(s,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=s,e[1]=t,e[2]=o):o=e[2],o}function Be(r){const e=M.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:n,onSelect:l}=r,c=V()?t.isSavedBlock?ne:H:W,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=te("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors shadow-edge","hover:border-primary/40 hover:bg-accent",p),e[0]=p,e[1]=u):u=e[1];let d;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==o||e[5]!==s||e[6]!==n?(d=s?i.jsx(Ce,{previewUrl:s,title:t.title,scrollRootRef:n,slotId:t.resolveType}):i.jsx(Ue,{image:o}),e[2]=t.resolveType,e[3]=t.title,e[4]=o,e[5]=s,e[6]=n,e[7]=d):d=e[7];let a;e[8]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ve}:void 0,e[8]=t.isSavedBlock,e[9]=a):a=e[9];let w;e[10]!==c||e[11]!==a?(w=i.jsx(c,{className:"h-4 w-4 shrink-0",style:a}),e[10]=c,e[11]=a,e[12]=w):w=e[12];let m;e[13]!==t.title?(m=i.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[13]=t.title,e[14]=m):m=e[14];let h;e[15]!==t.description?(h=t.description&&i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[15]=t.description,e[16]=h):h=e[16];let x;e[17]!==m||e[18]!==h?(x=i.jsxs("div",{className:"min-w-0 flex-1",children:[m,h]}),e[17]=m,e[18]=h,e[19]=x):x=e[19];let g;e[20]!==w||e[21]!==x?(g=i.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[w,x]}),e[20]=w,e[21]=x,e[22]=g):g=e[22];let S;return e[23]!==l||e[24]!==u||e[25]!==d||e[26]!==g?(S=i.jsxs("button",{type:"button",onClick:l,className:u,children:[d,g]}),e[23]=l,e[24]=u,e[25]=d,e[26]=g,e[27]=S):S=e[27],S}function Fe(r){const e=M.c(51),{open:t,onOpenChange:s,meta:o,decofile:n,previewBaseUrl:l,onSelect:f}=r,c=ee(),[p,u]=b.useState(""),[d,a]=b.useState(t),w=b.useRef(null);t!==d&&(a(t),t&&u(""));let m,h,x,g,S,y,N,R,j,P,I;if(e[0]!==n||e[1]!==o||e[2]!==s||e[3]!==f||e[4]!==t||e[5]!==l||e[6]!==p||e[7]!==c){const q=t&&o&&n?ue(o,n):[],z=o?de(o):"",_=n?me(n):void 0,X=new Map;if(t&&z&&l)for(const v of q)X.set(v.resolveType,K(l,z,v.previewBlock,_));const E=p.trim().toLowerCase(),J=E?q.filter(v=>v.title.toLowerCase().includes(E)||v.resolveType.toLowerCase().includes(E)||v.description?.toLowerCase().includes(E)):q;h=re,P=t,I=s,m=se,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let B;e[19]!==c?(B=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=B):B=e[20];let k;e[21]!==B?(k=i.jsx(oe,{children:B}),e[21]=B,e[22]=k):k=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ce,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=$):$=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=v=>u(v.target.value),e[24]=D):D=e[24];let A;e[25]!==c?(A=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=A):A=e[26];let L;e[27]!==p||e[28]!==A?(L=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ie,{value:p,onChange:D,placeholder:A,className:"h-9 pl-8"})]}),e[27]=p,e[28]=A,e[29]=L):L=e[29],e[30]!==k||e[31]!==L?(j=i.jsxs(le,{className:"shrink-0 border-b px-4 py-3 text-left",children:[k,L]}),e[30]=k,e[31]=L,e[32]=j):j=e[32],S=w,y="min-h-0 flex-1 overflow-y-auto",x="p-4",g=J.length===0?i.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:c("sectionsEditor.addSectionModal.noSectionsFound")}):i.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:J.map(v=>i.jsx(Be,{entry:v,scrollRootRef:w,previewUrl:l?X.get(v.resolveType)??K(l,z,v.previewBlock,_):null,image:l||!o?void 0:ye(v.resolveType,o),onSelect:()=>f(v)},v.resolveType))}),e[0]=n,e[1]=o,e[2]=s,e[3]=f,e[4]=t,e[5]=l,e[6]=p,e[7]=c,e[8]=m,e[9]=h,e[10]=x,e[11]=g,e[12]=S,e[13]=y,e[14]=N,e[15]=R,e[16]=j,e[17]=P,e[18]=I}else m=e[8],h=e[9],x=e[10],g=e[11],S=e[12],y=e[13],N=e[14],R=e[15],j=e[16],P=e[17],I=e[18];let T;e[33]!==x||e[34]!==g?(T=i.jsx("div",{className:x,children:g}),e[33]=x,e[34]=g,e[35]=T):T=e[35];let C;e[36]!==T||e[37]!==S||e[38]!==y?(C=i.jsx("div",{ref:S,className:y,children:T}),e[36]=T,e[37]=S,e[38]=y,e[39]=C):C=e[39];let U;e[40]!==m||e[41]!==C||e[42]!==N||e[43]!==R||e[44]!==j?(U=i.jsxs(m,{closeButtonClassName:N,className:R,children:[j,C]}),e[40]=m,e[41]=C,e[42]=N,e[43]=R,e[44]=j,e[45]=U):U=e[45];let O;return e[46]!==h||e[47]!==U||e[48]!==P||e[49]!==I?(O=i.jsx(h,{open:P,onOpenChange:I,children:U}),e[46]=h,e[47]=U,e[48]=P,e[49]=I,e[50]=O):O=e[50],O}function We(r){const e=M.c(4),{previewServerUrl:t,runtime:s}=xe(r.virtualMcpId),{url:o}=ge(r.virtualMcpId),n=we(r.virtualMcpId,r.branch),l=s==="cms";if(Se(n))return null;if(o)return o;let f;return e[0]!==l||e[1]!==r.sandboxUrl||e[2]!==t?(f=pe({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=r.sandboxUrl,e[2]=t,e[3]=f):f=e[3],f}export{Fe as A,ze as g,Z as s,We as u};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-DvmMaiCa.js";import{dr as i}from"./index-ifZGovK1.js";function t(r,e){return i(r,u,e)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-DvmMaiCa.js";import{dr as u,dE as n}from"./index-ifZGovK1.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};