decocms 4.594.0 → 4.596.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 (455) hide show
  1. package/dist/client/assets/{AlertCircle-kHXzu73r.js → AlertCircle-AllCHsc-.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CJxx8aiG.js → AreaChart-C6w_b9ET.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DcKid1bz.js → ArrowLeft-CRw3W_qh.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-ajc9j6D-.js → ArrowRight-DSFHA030.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-CjAvmMLL.js → ArrowUp-D_GhkPcm.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-CdH9hkvz.js → BookOpen01-lNQqqERm.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-BRKqG5iH.js → CartesianChart-DPVXkgL4.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-DW_7VziR.js → CategoricalChart-DRsmm3_a.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-DG9pUM8a.js → CheckCircle-D_eJlHYl.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CWnE_Wmz.js → ChevronDown-C0tAiNqc.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-ByCpNum0.js → ChevronSelectorVertical-oMR2kCqB.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-C_rAiuf1.js → ChevronUp-CLxsyktD.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-C6eDo3p0.js → CreditCard01-DfogeJXR.js} +1 -1
  14. package/dist/client/assets/{Eye-DFeDq2Hx.js → Eye-IB81hGdK.js} +1 -1
  15. package/dist/client/assets/{File02-R0RW2VCN.js → File02-C5RfRHg9.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-D-EFj_6a.js → Fingerprint04-d20CepTC.js} +1 -1
  17. package/dist/client/assets/{Globe04-DudUQgTy.js → Globe04-Cffx8Biv.js} +1 -1
  18. package/dist/client/assets/{Image01-Dfaw0Ysf.js → Image01-C3Wojgfs.js} +1 -1
  19. package/dist/client/assets/{Key01-9JQCF719.js → Key01-UGh5N-kc.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-B-cVGLzN.js → LayoutLeft-DtDmaSrQ.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-CpDM6pG5.js → LinkBroken01-CG6bLE37.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-44De_8cO.js → MessageCircle01-MLX2eDnv.js} +1 -1
  23. package/dist/client/assets/{Minus-09UkIbMe.js → Minus-DUjfsLQY.js} +1 -1
  24. package/dist/client/assets/{Monitor01-BPQw3JGv.js → Monitor01-DKJLays1.js} +1 -1
  25. package/dist/client/assets/{Play-BRDYCYl7.js → Play-BkcMWNbk.js} +1 -1
  26. package/dist/client/assets/{Plus-BJfG2DpW.js → Plus-D84NDH53.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-KUFosDOj.js → ReferenceLine-qG6ZRY0w.js} +1 -1
  28. package/dist/client/assets/{SearchMd-DioGBYbO.js → SearchMd-lt6LFgc6.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-CdQhBv_H.js → ShoppingBag01-BswoJp3c.js} +1 -1
  30. package/dist/client/assets/{Sun-U7FHkItb.js → Sun-C0_F0NYL.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-sPBj-OL8.js → SwitchHorizontal01-DX564T5r.js} +1 -1
  32. package/dist/client/assets/{Tool01-BEo5XKkS.js → Tool01-C5c4fHOY.js} +1 -1
  33. package/dist/client/assets/{Tooltip-2A3BALIx.js → Tooltip-C4Wh1SAv.js} +1 -1
  34. package/dist/client/assets/{Trash01-l4iOtEBN.js → Trash01-CFKOdFdJ.js} +1 -1
  35. package/dist/client/assets/{TrendUp01-aviiZW6M.js → TrendUp01-Me2ucQTV.js} +1 -1
  36. package/dist/client/assets/{Upload01-BhvyPM8u.js → Upload01-A4xsFQc7.js} +1 -1
  37. package/dist/client/assets/{UserCheck01-B1rJ65So.js → UserCheck01-CLDfWEEJ.js} +1 -1
  38. package/dist/client/assets/{UserSquare-D44lppb_.js → UserSquare-bg0CCGVi.js} +1 -1
  39. package/dist/client/assets/{Users01-CxQycal6.js → Users01-CCleMxbO.js} +1 -1
  40. package/dist/client/assets/{XClose-BwokcWjs.js → XClose-DNnGTtOa.js} +1 -1
  41. package/dist/client/assets/{Zap-DoXbwvKP.js → Zap-DS2xaVCg.js} +1 -1
  42. package/dist/client/assets/{access-gate-Cb6wrWbo.js → access-gate-52qvSzpx.js} +1 -1
  43. package/dist/client/assets/{add-connection-dialog-AJ93ohYz.js → add-connection-dialog-D3rS-xq2.js} +1 -1
  44. package/dist/client/assets/agent-app-CEj8SI4b.js +1 -0
  45. package/dist/client/assets/{agent-assets-BjERacII.js → agent-assets-CLgcJh-a.js} +1 -1
  46. package/dist/client/assets/{agent-automation-lPIiQ1-S.js → agent-automation-Asj6Mdk8.js} +1 -1
  47. package/dist/client/assets/{agent-automations-DChAwthU.js → agent-automations-DpoiR-xj.js} +1 -1
  48. package/dist/client/assets/agent-blog-D5adgi1l.js +2 -0
  49. package/dist/client/assets/agent-blog-post-DD7TPgaA.js +2 -0
  50. package/dist/client/assets/{agent-calendar-DVTbFVx4.js → agent-calendar-p4pBUNRv.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-CJLhsDjp.js → agent-capabilities-DX42M_HX.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-BUkRDeee.js → agent-connect-sources-BuuNPgeS.js} +1 -1
  53. package/dist/client/assets/agent-deck-Dtfd3CpA.js +1 -0
  54. package/dist/client/assets/{agent-e2e-DBAmX-ay.js → agent-e2e-CrXJS3S8.js} +1 -1
  55. package/dist/client/assets/agent-experiments-BdbuSony.js +1 -0
  56. package/dist/client/assets/agent-file-DyBlPMUW.js +1 -0
  57. package/dist/client/assets/{agent-hosting-KJs4AVma.js → agent-hosting-DJ4qshnA.js} +1 -1
  58. package/dist/client/assets/{agent-icon-BS6RPQ_A.js → agent-icon-m6DF-jGw.js} +1 -1
  59. package/dist/client/assets/agent-library-CfpThBWc.js +1 -0
  60. package/dist/client/assets/agent-library-file-CUOBgwAH.js +1 -0
  61. package/dist/client/assets/agent-overview-D-zPptb2.js +1 -0
  62. package/dist/client/assets/{agent-releases-BwIrRp2G.js → agent-releases-C0fErCE1.js} +1 -1
  63. package/dist/client/assets/agent-settings-CdKoAPBN.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-CyUzqfPD.js → agent-site-editor-B4mZ_3uO.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-l_JomA6X.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-349ebUkh.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-86h2RYbj.js +1 -0
  68. package/dist/client/assets/agent-view-BNcVDHOV.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-dXJW4cSq.js → agent-view-guard-1CRBHJVM.js} +1 -1
  70. package/dist/client/assets/{ai-providers-CoJXv_AA.js → ai-providers-DxMPTF-k.js} +1 -1
  71. package/dist/client/assets/{alert-hKxZXEZZ.js → alert-Dt-QBVYu.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-D8qsQ7bM.js → analytics-sections-CULzJT-Z.js} +1 -1
  73. package/dist/client/assets/api-keys-D9RiubWH.js +1 -0
  74. package/dist/client/assets/{api-keys-BpcBSUmB.js → api-keys-DRuBz837.js} +1 -1
  75. package/dist/client/assets/app-editor-hPksTJHj.js +1 -0
  76. package/dist/client/assets/{asset-utils-CdU3Ttfs.js → asset-utils-Wh7PCoXS.js} +1 -1
  77. package/dist/client/assets/{auth-C3yWOKhG.js → auth-DTCWUZG7.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-DheSxLuf.js → auth-catchall-DpL2hlxq.js} +1 -1
  79. package/dist/client/assets/{auth-entry-C5exDM0H.js → auth-entry-Df1KBDSc.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-Hg6hlPX8.js → auth-split-layout-CY_uRTFl.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-CIyQIb0N.js → authenticate-and-persist-oauth-CxIxVe3C.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-BYtaYJm7.js → automation-list-row-CtlM_d9l.js} +1 -1
  83. package/dist/client/assets/{automation-runs-DvuKFaor.js → automation-runs-CUFatpqX.js} +1 -1
  84. package/dist/client/assets/{automations-D70iF6cO.js → automations-DJcRHo1X.js} +1 -1
  85. package/dist/client/assets/{badge-wWozseh3.js → badge-BMdL2EZN.js} +1 -1
  86. package/dist/client/assets/{block-document-CQOXOWIP.js → block-document-xUve5SNT.js} +3 -3
  87. package/dist/client/assets/{blocks-preview-workspace-context-BmhSK0mg.js → blocks-preview-workspace-context-DF85bSj9.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-CDYT4Ypi.js → blocks-tab-states-Cw0RWK3h.js} +1 -1
  89. package/dist/client/assets/blog-preview-url-Cxts0MFJ.js +1 -0
  90. package/dist/client/assets/blog-schema-7GeVkqmc.js +1 -0
  91. package/dist/client/assets/blog-source-gate-DHJ3KgAL.js +1 -0
  92. package/dist/client/assets/{blog-view-gate-WETs9z4-.js → blog-view-gate-D2wthXO5.js} +1 -1
  93. package/dist/client/assets/{buckets-BcxYNwzK.js → buckets-Budfl0cb.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-BpGLSKmi.js → build-improve-prompt-doc-CvGA95vT.js} +1 -1
  95. package/dist/client/assets/{calendar-Sr3cNZGh.js → calendar-CWY9RcGt.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-Cwe4uK-x.js → capability-load-error-Cpo9EAh2.js} +1 -1
  97. package/dist/client/assets/category-editor-Djma6ffb.js +1 -0
  98. package/dist/client/assets/category-tree-CwYyvh-H.js +18 -0
  99. package/dist/client/assets/{chart-D0It11Pz.js → chart-J7juGn_W.js} +1 -1
  100. package/dist/client/assets/{chat-context-B6UvvRRf.js → chat-context-BW-slB_k.js} +1 -1
  101. package/dist/client/assets/{chat-draft-D0WJnhz_.js → chat-draft-D3TYZAMx.js} +1 -1
  102. package/dist/client/assets/{checkbox-Cs2Li62P.js → checkbox-DyPy5TYa.js} +1 -1
  103. package/dist/client/assets/{choose-editor-Cwvr5cPX.js → choose-editor-Bxibi_V8.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-DjQMGZUD.js → cli-auth-success-BZdMcx2v.js} +1 -1
  105. package/dist/client/assets/cms-settings-editor-CEMWX5NG.js +1 -0
  106. package/dist/client/assets/{cms-store-drafts-DDk2L1_s.js → cms-store-drafts-D_M6m3uA.js} +1 -1
  107. package/dist/client/assets/{collapsible-D4n-ssmc.js → collapsible-RVJX7MiV.js} +1 -1
  108. package/dist/client/assets/{collection-detail-CWZme-FJ.js → collection-detail-Du67mRiO.js} +1 -1
  109. package/dist/client/assets/{collection-display-button--oxelZ8R.js → collection-display-button-BNBHMUXK.js} +1 -1
  110. package/dist/client/assets/{collection-search-CDDauqCr.js → collection-search-0Y7SoOe-.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-B8osPBIm.js → collection-table-wrapper-Cuy0AVX7.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-B1EmRyNS.js → collection-tabs-CaUB-XIg.js} +1 -1
  113. package/dist/client/assets/{combobox-LL4GsRoi.js → combobox-BU7hsWmk.js} +1 -1
  114. package/dist/client/assets/{command-DQwD4jPt.js → command-D0_H05ec.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-aZ0yAV9m.js → companion-mcps-section-BzJEcjRJ.js} +1 -1
  116. package/dist/client/assets/{config-zmlExYow.js → config-XJHmvtsd.js} +1 -1
  117. package/dist/client/assets/{connect-C2FkNxOj.js → connect-CC6AcPLN.js} +1 -1
  118. package/dist/client/assets/{connect-key-MUQgzDUZ.js → connect-key-BpMVre0r.js} +1 -1
  119. package/dist/client/assets/{connect-layout-C10vBM31.js → connect-layout-BNX1pnZc.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-DZFw66w3.js → connect-source-dialog-BhW7w8Tz.js} +1 -1
  121. package/dist/client/assets/{connection-card-DqrVYaVF.js → connection-card-h1GpQqz7.js} +1 -1
  122. package/dist/client/assets/{connection-detail-BhmikSW0.js → connection-detail-w5Ybk1Ow.js} +1 -1
  123. package/dist/client/assets/{connection-B7vXPxEB.js → connection-e0YK2xiz.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-CipIPASt.js → connection-form-helpers-ee1lsDjo.js} +1 -1
  125. package/dist/client/assets/{connection-slug-DgGnB6qk.js → connection-slug-pVnJQqDL.js} +1 -1
  126. package/dist/client/assets/{connections-BH6dclGQ.js → connections-ClU5q4ro.js} +1 -1
  127. package/dist/client/assets/{content-tab-CMouaD3S.js → content-tab-BbCE8gow.js} +4 -4
  128. package/dist/client/assets/{context-BXIwVeKt.js → context-BE0varMc.js} +1 -1
  129. package/dist/client/assets/{context-menu-BTcjoIYF.js → context-menu-sx0q9-17.js} +1 -1
  130. package/dist/client/assets/{context-shell-Bh2U1zxs.js → context-shell-D7PccH2n.js} +3 -3
  131. package/dist/client/assets/{create-organization-dialog-Dbp2Y7NH.js → create-organization-dialog-BcfxwKOk.js} +1 -1
  132. package/dist/client/assets/{daily-pulse-BiRUE30R.js → daily-pulse-BQDk63PY.js} +1 -1
  133. package/dist/client/assets/{delete-copy-BH5xrx9H.js → delete-copy-UCaGT3P5.js} +2 -2
  134. package/dist/client/assets/{device-hint-CMC1mr9e.js → device-hint-Dzp4aTKL.js} +1 -1
  135. package/dist/client/assets/{discover-DN_s50Be.js → discover-BulaXBT4.js} +1 -1
  136. package/dist/client/assets/{domain-settings-DBexbsXu.js → domain-settings-k3Y2Q4CL.js} +1 -1
  137. package/dist/client/assets/{drawer-BMY0wk6r.js → drawer-cDJNr0UL.js} +1 -1
  138. package/dist/client/assets/{editor-C6mSxTrt.js → editor-D_TP8Zgm.js} +1 -1
  139. package/dist/client/assets/{editor-classes-BygI_Lvg.js → editor-classes-0NCpfosP.js} +1 -1
  140. package/dist/client/assets/{empty-state-hp9a4BQn.js → empty-state-BQLWtNQT.js} +1 -1
  141. package/dist/client/assets/{empty-state-C4vGG4yC.js → empty-state-Oh19ZuqH.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-a808JseX.js → experiments-tab-choice-Bo6k5V9E.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-B_eUCQ7e.js → extract-connection-data-Dcybc2XD.js} +1 -1
  144. package/dist/client/assets/{feature-gate-DtqeHOu4.js → feature-gate-VZsia_Hs.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-BGOy9Z00.js → feature-paywall-DR7Clo4c.js} +1 -1
  146. package/dist/client/assets/{file-explorer-q1C_0Dfl.js → file-explorer-81aDQUj9.js} +1 -1
  147. package/dist/client/assets/{file-preview-Cid_-Y34.js → file-preview-X_NFkOVD.js} +1 -1
  148. package/dist/client/assets/{file-share-button-eK3lxbyf.js → file-share-button-DOAhwfe0.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-DOJ02s9h.js → file-type-icon-DR-V5GzT.js} +1 -1
  150. package/dist/client/assets/{folder-icon-4Pb3O8qn.js → folder-icon-BEMnD9Mo.js} +1 -1
  151. package/dist/client/assets/{form-BZ2nSi_9.js → form-C_3vsTjd.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-C3j5rPCM.js → frame-navigation-B6xzv3L_.js} +1 -1
  153. package/dist/client/assets/{gateway-client-8UpI_Rdq.js → gateway-client-CwKPU6S4.js} +1 -1
  154. package/dist/client/assets/{general-bkCbo1TA.js → general-BfGOnQz-.js} +1 -1
  155. package/dist/client/assets/{github-icon-C-V2EETw.js → github-icon-mqy7WjXH.js} +1 -1
  156. package/dist/client/assets/{held-block-view-xCVzC3Lr.js → held-block-view-8Ktr6QKV.js} +1 -1
  157. package/dist/client/assets/{home-Dgh1Wb3u.js → home-CoqulptE.js} +1 -1
  158. package/dist/client/assets/{home-overview-CzbNLHJq.js → home-overview-Cqkq8Gda.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-DS6ZmO5s.js → hosted-reconcile-BfDZiVDB.js} +1 -1
  160. package/dist/client/assets/{icon-button-CFamiizZ.js → icon-button-BZNuDXN_.js} +1 -1
  161. package/dist/client/assets/{index-BVZH8mqe.js → index-6k36ehsW.js} +9 -9
  162. package/dist/client/assets/{index-cjnTxfp5.js → index-BNMtwLGo.js} +1 -1
  163. package/dist/client/assets/{index-B-PIhH8l.js → index-BOcJIVCK.js} +1 -1
  164. package/dist/client/assets/{index-B9tCllzH.js → index-BZvJPANC.js} +1 -1
  165. package/dist/client/assets/{index-B4YS6GMo.js → index-C4RiD3F4.js} +1 -1
  166. package/dist/client/assets/{index-GMDFirHC.js → index-CGp5e78v.js} +1 -1
  167. package/dist/client/assets/{index-6V91lP75.js → index-CHcZo0sN.js} +1 -1
  168. package/dist/client/assets/{index-BFjuxezw.js → index-CbxeeWwk.js} +1 -1
  169. package/dist/client/assets/{index-D9WtqDmJ.js → index-Ccjzy_Yg.js} +1 -1
  170. package/dist/client/assets/{index-CJQHYkKb.js → index-DYr4DM-_.js} +1 -1
  171. package/dist/client/assets/{index--r4E_gW7.js → index-DbcKAUw4.js} +1 -1
  172. package/dist/client/assets/index-NYmpejop.js +5 -0
  173. package/dist/client/assets/{index-BesTmknq.js → index-Pt2Dg3Hd.js} +1 -1
  174. package/dist/client/assets/{index-BYQu9U5P.js → index-WlTKCESy.js} +1 -1
  175. package/dist/client/assets/{index-BeSn1lKu.js → index-_N6kCtM_.js} +1 -1
  176. package/dist/client/assets/{index-D_u7RJfU.js → index-gxh0eyFF.js} +1 -1
  177. package/dist/client/assets/{index-redirect-BMGe_utm.js → index-redirect-BKO9Og1V.js} +1 -1
  178. package/dist/client/assets/{index-CqlRRF6p.js → index-unMd35fT.js} +1 -1
  179. package/dist/client/assets/index-yFD0_BNc.css +1 -0
  180. package/dist/client/assets/{infiniteQueryObserver-f5kG4cIT.js → infiniteQueryObserver-BU4GB00s.js} +1 -1
  181. package/dist/client/assets/{infra-billing-DaAfhBWg.js → infra-billing-Dp0t1IaK.js} +1 -1
  182. package/dist/client/assets/{input-o0eNZBV4.js → input-CH4Gjy3Z.js} +3 -3
  183. package/dist/client/assets/{input-A20A_mwu.js → input-DAb55cm0.js} +1 -1
  184. package/dist/client/assets/{integration-icon-CcV5frEs.js → integration-icon-CThPNDLT.js} +1 -1
  185. package/dist/client/assets/item-actions-Cd5OpKeM.js +1 -0
  186. package/dist/client/assets/{jira-icon-DlgPbK3F.js → jira-icon-C-P_hNAy.js} +1 -1
  187. package/dist/client/assets/{label-Dc_tSb6f.js → label-B05fQV9w.js} +1 -1
  188. package/dist/client/assets/{layout-514nGx9I.js → layout-D62GW4Xy.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-DtYrilLw.js → legacy-admin-welcome-dialog-BOk_1MDr.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-DS7wnjib.js → legacy-agents-deep-CwnshL_u.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-BQ-dfJNU.js → legacy-main-redirect-B9wSse7w.js} +1 -1
  192. package/dist/client/assets/library-CE-7zswq.js +1 -0
  193. package/dist/client/assets/{library-tab-CZB0EHNl.js → library-tab-6C3BHzqG.js} +1 -1
  194. package/dist/client/assets/{login-BVGV6SaO.js → login-De-omavu.js} +1 -1
  195. package/dist/client/assets/{markdown-DvUyMKlV.js → markdown-B2-eb-Eh.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-CRu4PbUr.js → mcp-app-renderer-Bj6Yqj6W.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-NdGb5Zj9.js → mcp-oauth-CBgv_I8z.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-CIY9YLWi.js → mcp-oauth-DsdWz5k5.js} +1 -1
  199. package/dist/client/assets/{members-CgoGmOSR.js → members-ai18MRiF.js} +1 -1
  200. package/dist/client/assets/{memory-BfzundeZ.js → memory-lLPqtjY5.js} +1 -1
  201. package/dist/client/assets/{mock-board-D8DOoo_p.js → mock-board-DUqjanpY.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-C3D0iT4a.js → monaco-editor-C4oSGu0z.js} +1 -1
  203. package/dist/client/assets/monitoring-DHvjzxYU.js +2 -0
  204. package/dist/client/assets/{monitoring-stats-row-By2SXcyl.js → monitoring-stats-row-C3be9geZ.js} +1 -1
  205. package/dist/client/assets/{multi-select-Dak9eW6K.js → multi-select-UQ5zKqaL.js} +1 -1
  206. package/dist/client/assets/{mustache-CMgVEDUc.js → mustache-zZXkHC_L.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-BnN-hlGb.js → named-rule-step-CrcD_duq.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-hUwolemN.js → named-rule-view--duBjHJb.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-BeD2i_Hm.js → new-project-dialog-C8GsS3yA.js} +1 -1
  210. package/dist/client/assets/{new-project-store-BfrY24D-.js → new-project-store-DIzzNFh1.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-0KF_xg3k.js → oauth-callback-ai-provider-B-5nafY2.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-CNqxDLu3.js → oauth-callback-oqd3bXUP.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-li4JOhlZ.js → oauth-consent-K2APicmR.js} +1 -1
  214. package/dist/client/assets/{onboarding-CzP4oXTn.js → onboarding-o9kHZxKA.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-BMsTp1zg.js → openai-conversation-BZLoClec.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-C29BxST1.js → optimistic-project-sidebar-views-pk8rg5oK.js} +1 -1
  217. package/dist/client/assets/order-monitor-day-wSsYm9_l.js +1 -0
  218. package/dist/client/assets/{organization-choice-BhMXPFKX.js → organization-choice-BUBhZfiC.js} +1 -1
  219. package/dist/client/assets/{orgs-ZZqk-o74.js → orgs-DB1GWwYI.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-4_Hp7fJv.js → own-accounts-section-DPjhNkN7.js} +1 -1
  221. package/dist/client/assets/{pair-C4tumP78.js → pair-D_71JV_h.js} +1 -1
  222. package/dist/client/assets/{parse-sections-B5REiM5j.js → parse-sections-Ck3UjwM8.js} +3 -3
  223. package/dist/client/assets/{plan-vUNQzJtH.js → plan-ClnTFbh5.js} +1 -1
  224. package/dist/client/assets/{plan-ladder-BlcJL4hV.js → plan-ladder-C-nHzfvE.js} +1 -1
  225. package/dist/client/assets/{plan-usage-card-DW3wLLQF.js → plan-usage-card-DX0TEH1I.js} +1 -1
  226. package/dist/client/assets/{popover-9q-VKuQx.js → popover-CH9oXjqN.js} +1 -1
  227. package/dist/client/assets/post-calendar-Nt_O_Z94.js +1 -0
  228. package/dist/client/assets/{post-editor-BUxXB6Uz.js → post-editor-TZTGdKmL.js} +2 -2
  229. package/dist/client/assets/{preview-content-aN9ghsH_.js → preview-content-C_30wxn1.js} +1 -1
  230. package/dist/client/assets/{preview-dialog-DqNYRBay.js → preview-dialog-C2Vuh1sp.js} +1 -1
  231. package/dist/client/assets/{preview-panel-DV1FaRUZ.js → preview-panel-S5oFn61k.js} +1 -1
  232. package/dist/client/assets/preview-tab-ClSpAkmV.js +557 -0
  233. package/dist/client/assets/primitives-CrCuT0LR.js +1 -0
  234. package/dist/client/assets/{product-picker-dialog-DVs_Kuee.js → product-picker-dialog-mmy97YMY.js} +1 -1
  235. package/dist/client/assets/{profile-DbdvfkDI.js → profile-dIGLO0tj.js} +1 -1
  236. package/dist/client/assets/{project-app-view-Cfrp6muY.js → project-app-view-CL2brGAW.js} +1 -1
  237. package/dist/client/assets/{project-apps-z0dBtbP_.js → project-apps-BPLYxsdb.js} +1 -1
  238. package/dist/client/assets/{project-icon-C8Sq9Uyo.js → project-icon-BwoqBozX.js} +1 -1
  239. package/dist/client/assets/{project-index-BOyydKXT.js → project-index-Cb0knzOx.js} +1 -1
  240. package/dist/client/assets/project-reports-Es3eodEf.js +1 -0
  241. package/dist/client/assets/project-tasks-BObhyp-g.js +1 -0
  242. package/dist/client/assets/{projects-B5BvS56N.js → projects-AVd6wnYc.js} +1 -1
  243. package/dist/client/assets/{projects-empty-state-CDTj5tcd.js → projects-empty-state-C7JwlwFZ.js} +1 -1
  244. package/dist/client/assets/{prompts-DfS9pOYH.js → prompts-CYDVxedF.js} +1 -1
  245. package/dist/client/assets/record-editor-C24399Kq.js +1 -0
  246. package/dist/client/assets/redirect-editor-Buclfl6T.js +1 -0
  247. package/dist/client/assets/{reports-C624VFLj.js → reports-D5WruuUL.js} +1 -1
  248. package/dist/client/assets/reports-DwRlsCV2.js +1 -0
  249. package/dist/client/assets/{reports-onboarding-_pxt1WkF.js → reports-onboarding-CFJe1Yh6.js} +1 -1
  250. package/dist/client/assets/{reports-tab-BBmHq9vJ.js → reports-tab-BEIeHpqv.js} +2 -2
  251. package/dist/client/assets/repositories-BCW1MaJF.js +1 -0
  252. package/dist/client/assets/{repositories-B7d9yCxo.js → repositories-DWThiX2p.js} +1 -1
  253. package/dist/client/assets/{repository-binding-BIfwJXBl.js → repository-binding--4TzKXBA.js} +1 -1
  254. package/dist/client/assets/{repository-picker-vN0XhyKR.js → repository-picker-v7iVCEUT.js} +1 -1
  255. package/dist/client/assets/{require-capability-B6_v4BKo.js → require-capability-CAcEc9hc.js} +1 -1
  256. package/dist/client/assets/{required-auth-layout-BXbkUsYd.js → required-auth-layout-B8y_MNr7.js} +1 -1
  257. package/dist/client/assets/{reset-password-DPvgQ5Qd.js → reset-password-ClGMHHI7.js} +1 -1
  258. package/dist/client/assets/{resizable-AytQ6SyX.js → resizable-COGor2Ly.js} +1 -1
  259. package/dist/client/assets/{resolve-tab-icon-BzV0wsYq.js → resolve-tab-icon-kXOqF-K7.js} +1 -1
  260. package/dist/client/assets/{review-settings-BTg5QElS.js → review-settings-BvN5yP9q.js} +1 -1
  261. package/dist/client/assets/{role-color-CNGxunw8.js → role-color-BqI6S_sH.js} +1 -1
  262. package/dist/client/assets/roles-DiINUuVU.js +1 -0
  263. package/dist/client/assets/{route-BX1VK4D8.js → route-BZ58rj3h.js} +1 -1
  264. package/dist/client/assets/{route-IYkPM4iL.js → route-Do9iV-Fa.js} +1 -1
  265. package/dist/client/assets/route-DvsPl2dV.js +1 -0
  266. package/dist/client/assets/{route-page-header-DnxbH76I.js → route-page-header-ZxjL9WRx.js} +1 -1
  267. package/dist/client/assets/{sandbox-git-api-CvJPOlyv.js → sandbox-git-api-BySMpBzA.js} +1 -1
  268. package/dist/client/assets/{sandbox-lifecycle-context-CO9pd80k.js → sandbox-lifecycle-context-D7Mo6SMT.js} +1 -1
  269. package/dist/client/assets/{save-status-eUv6TQpr.js → save-status-DUiju85M.js} +1 -1
  270. package/dist/client/assets/{schema-C2ft4i4u.js → schema-DcMtzh-L.js} +1 -1
  271. package/dist/client/assets/{schema-CATZG76m.js → schema-DzB5MtLQ.js} +1 -1
  272. package/dist/client/assets/{scroll-area-w9_Bvwmf.js → scroll-area-CT5pMPAI.js} +1 -1
  273. package/dist/client/assets/{search-input-D3b0Dc5Y.js → search-input-B5JIa11y.js} +1 -1
  274. package/dist/client/assets/{search-toggle-DBEAkZhz.js → search-toggle-B8OLzvCM.js} +1 -1
  275. package/dist/client/assets/{secret-picker-CVfi84wZ.js → secret-picker-DQnzetrk.js} +1 -1
  276. package/dist/client/assets/{secrets-Bxh8ZQN1.js → secrets-CohVPhQA.js} +1 -1
  277. package/dist/client/assets/section-array-field-BmxRdqC1.js +1 -0
  278. package/dist/client/assets/{sections-BS4WKjIk.js → sections-4E-Bc25K.js} +1 -1
  279. package/dist/client/assets/sections-editor-DdYFn1-8.js +1 -0
  280. package/dist/client/assets/{select-BJ7g3jt1.js → select-BzOd4QV1.js} +1 -1
  281. package/dist/client/assets/{select-model-CIoiyBbQ.js → select-model-9pBB2Ftb.js} +1 -1
  282. package/dist/client/assets/seo-editor-D0KLiDO0.js +1 -0
  283. package/dist/client/assets/{separator-DUnD5wBI.js → separator-DpCH28os.js} +1 -1
  284. package/dist/client/assets/{session-runtime-CRv5j4jh.js → session-runtime-fnzDQ8ba.js} +1 -1
  285. package/dist/client/assets/settings-tab-C7l6cj8f.js +1 -0
  286. package/dist/client/assets/{sheet-B1zTFenO.js → sheet-D0InrjqO.js} +1 -1
  287. package/dist/client/assets/{shell-layout-BT6RZJ9X.js → shell-layout-D8-R0sqM.js} +1 -1
  288. package/dist/client/assets/{site-draft-actions-BhvNLFOt.js → site-draft-actions-tjwxcrrz.js} +1 -1
  289. package/dist/client/assets/{site-draft-view-D89p35uK.js → site-draft-view-DY3MROcG.js} +1 -1
  290. package/dist/client/assets/site-editor-TTvFFMn0.js +1 -0
  291. package/dist/client/assets/{site-editor-toast-vvVLBG6s.js → site-editor-toast-BfB5E3lf.js} +1 -1
  292. package/dist/client/assets/{skills-C22XOkU8.js → skills-BgqMrKh3.js} +1 -1
  293. package/dist/client/assets/{slider-46E0vJw8.js → slider-CiWmLveF.js} +1 -1
  294. package/dist/client/assets/{sortable.esm-BzU9NXcP.js → sortable.esm-BnSJzMhQ.js} +1 -1
  295. package/dist/client/assets/{sso-zNrVMXEh.js → sso-C44FERRz.js} +1 -1
  296. package/dist/client/assets/{suggestion-B9N6oqkG.js → suggestion-Bnw1hfqZ.js} +1 -1
  297. package/dist/client/assets/{super-agent-icon-AyK0wzxQ.js → super-agent-icon-C6LdYrGo.js} +1 -1
  298. package/dist/client/assets/{switch-BX8b8tB6.js → switch-C9KE8PCO.js} +1 -1
  299. package/dist/client/assets/{synced-repos-DS_Rsdst.js → synced-repos-CZPSEENY.js} +1 -1
  300. package/dist/client/assets/{tab-icon-glyph-DpR7ri7q.js → tab-icon-glyph-CWJ_EMCz.js} +1 -1
  301. package/dist/client/assets/{table-DNvSx4nT.js → table-BabWDHl3.js} +1 -1
  302. package/dist/client/assets/{tabs-ClkuSww4.js → tabs-CLDwlIBj.js} +1 -1
  303. package/dist/client/assets/{task-board-DLNmAHmR.js → task-board-D-EY7IDb.js} +1 -1
  304. package/dist/client/assets/{task-key-BjUMQvHV.js → task-key-Bf-5jxEO.js} +1 -1
  305. package/dist/client/assets/{task-route-B6gZ9LxC.js → task-route-C5TECNuR.js} +1 -1
  306. package/dist/client/assets/{task-status-CvKutQFi.js → task-status-GtZc7DUE.js} +1 -1
  307. package/dist/client/assets/{taskboard-analytics-BgegxTfw.js → taskboard-analytics-Bgm_SXDy.js} +1 -1
  308. package/dist/client/assets/tasks-C_2YCqC5.js +1 -0
  309. package/dist/client/assets/{tasks-VtqJyf5J.js → tasks-fCd-XF0B.js} +1 -1
  310. package/dist/client/assets/{textarea-BnYcD_gb.js → textarea-zXJwvg1C.js} +1 -1
  311. package/dist/client/assets/{thread-analytics-CHgBpfHv.js → thread-analytics-CToiKm9y.js} +1 -1
  312. package/dist/client/assets/{thread-button-Cra7mRSW.js → thread-button-D0_qm01C.js} +1 -1
  313. package/dist/client/assets/{thread-intent-CYNXEfHP.js → thread-intent-HcaWskQl.js} +1 -1
  314. package/dist/client/assets/{thread-route-muzc431X.js → thread-route-DISRw9NA.js} +1 -1
  315. package/dist/client/assets/{thread-route-D00Shirq.js → thread-route-DkHlrR6F.js} +1 -1
  316. package/dist/client/assets/{thread-sheet-body-B4d3KSH7.js → thread-sheet-body-BwoNg8G-.js} +1 -1
  317. package/dist/client/assets/{time-range-picker-BzLGuV9Q.js → time-range-picker-BJLph571.js} +1 -1
  318. package/dist/client/assets/{toggle-group-Cu3LE1oL.js → toggle-group--KiJldtG.js} +1 -1
  319. package/dist/client/assets/{tool-set-selector-DpIP2fev.js → tool-set-selector-DigSDBNa.js} +1 -1
  320. package/dist/client/assets/{toolbar-icon-button-Bo8OSaqx.js → toolbar-icon-button-Cl7Yg4qZ.js} +1 -1
  321. package/dist/client/assets/{tooltip-CfeBMv8z.js → tooltip-CpNT29Lg.js} +1 -1
  322. package/dist/client/assets/{tooltipContext-BMU8k-Rs.js → tooltipContext-HwIIkoOx.js} +1 -1
  323. package/dist/client/assets/{track-DWmwuKVj.js → track-CnwyZ_-v.js} +1 -1
  324. package/dist/client/assets/{types-D_vNw-3-.js → types-U1xib9QI.js} +1 -1
  325. package/dist/client/assets/{url-slug-BOPVIawN.js → url-slug-o-5lOvNU.js} +1 -1
  326. package/dist/client/assets/{usage-stats-Dzci2XGy.js → usage-stats-BpSzWrpu.js} +1 -1
  327. package/dist/client/assets/{use-ai-providers-C30oeluP.js → use-ai-providers-CL55euJG.js} +1 -1
  328. package/dist/client/assets/{use-api-keys-CK1ZH-th.js → use-api-keys-DJl2frpX.js} +1 -1
  329. package/dist/client/assets/{use-apply-named-rule-DGYGOn-1.js → use-apply-named-rule-Sto1nxzx.js} +1 -1
  330. package/dist/client/assets/use-ask-in-chat-CT64oCbR.js +1 -0
  331. package/dist/client/assets/{use-automations-CtbjaE6m.js → use-automations-DC0esRjE.js} +1 -1
  332. package/dist/client/assets/{use-autosave-Bpr4B2YO.js → use-autosave-C-v37PG8.js} +1 -1
  333. package/dist/client/assets/use-blocks-v8-project-CHvN3d67.js +1 -0
  334. package/dist/client/assets/use-blog-view-CVo7QYbd.js +1 -0
  335. package/dist/client/assets/{use-chat-layout-state-DBVzfsNg.js → use-chat-layout-state-DuyGxNZ8.js} +1 -1
  336. package/dist/client/assets/{use-cms-publish-actions-CWkUAckV.js → use-cms-publish-actions-Cef_LTMV.js} +1 -1
  337. package/dist/client/assets/{use-connect-companion-iGJRty2G.js → use-connect-companion-BaxDHT_c.js} +1 -1
  338. package/dist/client/assets/{use-connection-C-m8b2Fk.js → use-connection-BrUoHInG.js} +1 -1
  339. package/dist/client/assets/{use-content-sync-BJ7PE3PC.js → use-content-sync-C-N3pUjd.js} +1 -1
  340. package/dist/client/assets/{use-copy-BHPkBnZF.js → use-copy-BosHh8hs.js} +1 -1
  341. package/dist/client/assets/{use-current-view-CHhVzMwk.js → use-current-view-CQkQuEPS.js} +1 -1
  342. package/dist/client/assets/{use-date-fns-locale-Cn791fqZ.js → use-date-fns-locale-CL5KHXt3.js} +1 -1
  343. package/dist/client/assets/{use-debounced-autosave-C6OCZte6.js → use-debounced-autosave-Dd0HvZCV.js} +1 -1
  344. package/dist/client/assets/{use-debounced-value-By7KggQt.js → use-debounced-value-D92V-nO1.js} +1 -1
  345. package/dist/client/assets/{use-deco-credits-19cW8oHb.js → use-deco-credits-BbacUwGD.js} +1 -1
  346. package/dist/client/assets/{use-decopilot-events-BxfGa0_j.js → use-decopilot-events-CXr5p6cn.js} +1 -1
  347. package/dist/client/assets/{use-delete-block-3AD9rKWc.js → use-delete-block-CcnRhYow.js} +1 -1
  348. package/dist/client/assets/{use-delete-connection-Cma0d5Z7.js → use-delete-connection-C5CW1TMU.js} +1 -1
  349. package/dist/client/assets/{use-deployment-admin-COmgwPUq.js → use-deployment-admin-CrPYh0iy.js} +1 -1
  350. package/dist/client/assets/{use-entitlements-B8D7pawV.js → use-entitlements-CtKDjSCc.js} +1 -1
  351. package/dist/client/assets/{use-fast-preview-draft-url-BQhDGlp9.js → use-fast-preview-draft-url-oDvx6qNG.js} +1 -1
  352. package/dist/client/assets/{use-file-configs-CCo70YSN.js → use-file-configs-d8oveZti.js} +1 -1
  353. package/dist/client/assets/{use-id-selection-BOT74h8X.js → use-id-selection-YDCUJkW7.js} +1 -1
  354. package/dist/client/assets/{use-in-settings-qQ2sbeu5.js → use-in-settings-CSXNVGfX.js} +1 -1
  355. package/dist/client/assets/{use-inbox-feed-CIBoyRh8.js → use-inbox-feed-BmDqTf6H.js} +1 -1
  356. package/dist/client/assets/{use-infinite-scroll-Ct_PbHT3.js → use-infinite-scroll-Bk9vcUF2.js} +1 -1
  357. package/dist/client/assets/{use-join-requests-CbaI0xCz.js → use-join-requests-C1GX0oi8.js} +1 -1
  358. package/dist/client/assets/{use-main-panel-tabs-CPcNwsEn.js → use-main-panel-tabs-D6PrQKj_.js} +1 -1
  359. package/dist/client/assets/{use-mcp-auth-status-BfHI4tpd.js → use-mcp-auth-status-BXEHX9A9.js} +1 -1
  360. package/dist/client/assets/{use-mcp-client-7NPwItGN.js → use-mcp-client-Dn7GJEfR.js} +1 -1
  361. package/dist/client/assets/{use-mcp-prompts-C7QHdaI_.js → use-mcp-prompts-BMSkxk3j.js} +1 -1
  362. package/dist/client/assets/{use-mcp-tools-DqnFukoV.js → use-mcp-tools-BNwnVHgE.js} +1 -1
  363. package/dist/client/assets/{use-mobile-5e0sSd3X.js → use-mobile-Bwg13Khk.js} +1 -1
  364. package/dist/client/assets/{use-move-blocks-Cqt9Q8CZ.js → use-move-blocks-sK7PvIYV.js} +1 -1
  365. package/dist/client/assets/{use-navigate-to-agent-CtsEyeFb.js → use-navigate-to-agent-CzSAlpxn.js} +1 -1
  366. package/dist/client/assets/{use-never-published-BK3TeRer.js → use-never-published-DAOoxMmV.js} +1 -1
  367. package/dist/client/assets/{use-org-fs-Cq9dcDh3.js → use-org-fs-ISEYfoeP.js} +1 -1
  368. package/dist/client/assets/{use-org-notice-Dvph2j3S.js → use-org-notice-BTIpWL_p.js} +1 -1
  369. package/dist/client/assets/{use-org-repo-syncs-CCuZhNZU.js → use-org-repo-syncs-BPpDk25r.js} +1 -1
  370. package/dist/client/assets/{use-org-sso-BKXSOEb_.js → use-org-sso-BZklGZ0G.js} +1 -1
  371. package/dist/client/assets/{use-organization-settings-BoOQOwrg.js → use-organization-settings-CYN_vYgA.js} +1 -1
  372. package/dist/client/assets/{use-panel-navigate-DPGDB1T1.js → use-panel-navigate-BAJB306G.js} +1 -1
  373. package/dist/client/assets/{use-project-native-view-presence-SSp2DD_u.js → use-project-native-view-presence-D1vQT4ZH.js} +1 -1
  374. package/dist/client/assets/{use-project-scope-BIucgFKc.js → use-project-scope-DVgj2Lmp.js} +1 -1
  375. package/dist/client/assets/{use-recent-apps-4zSmjU-Q.js → use-recent-apps-DV9D4KSi.js} +1 -1
  376. package/dist/client/assets/{use-reports-diagnostic-DWL8tyP6.js → use-reports-diagnostic-CxJVNJu1.js} +1 -1
  377. package/dist/client/assets/{use-sandbox-events-TxpzU2Iw.js → use-sandbox-events-BqtbFabs.js} +1 -1
  378. package/dist/client/assets/{use-secrets-CsCKmxLc.js → use-secrets-BZGVO7wb.js} +1 -1
  379. package/dist/client/assets/{use-section-preview-base-BxFRvYUl.js → use-section-preview-base-_QoALJol.js} +1 -1
  380. package/dist/client/assets/{use-sidebar-collapsed-DHFFs76T.js → use-sidebar-collapsed-UNm7xHPV.js} +1 -1
  381. package/dist/client/assets/{use-tags-aDaEeB96.js → use-tags-DHI_FfeM.js} +1 -1
  382. package/dist/client/assets/{use-task-board-analytics-XXuDuH8s.js → use-task-board-analytics-BWCmk6Id.js} +1 -1
  383. package/dist/client/assets/{use-task-board-item-prs-CLDgREI3.js → use-task-board-item-prs-CNeKRqLE.js} +1 -1
  384. package/dist/client/assets/{use-task-board-items-D4fdH47R.js → use-task-board-items-VCVSuTG_.js} +1 -1
  385. package/dist/client/assets/{use-task-board-prompts-DRYQb2DR.js → use-task-board-prompts-Cym2n16B.js} +1 -1
  386. package/dist/client/assets/{use-task-metadata-CSvrbSt0.js → use-task-metadata-DF5Dujx5.js} +1 -1
  387. package/dist/client/assets/{use-thread-outputs-CrNLjxTt.js → use-thread-outputs-y7iH8wUp.js} +1 -1
  388. package/dist/client/assets/{use-view-draft-kind-BG3Ihm6n.js → use-view-draft-kind-CofWB4b8.js} +1 -1
  389. package/dist/client/assets/{use-voice-input-BspgCDOI.js → use-voice-input-DuTeTois.js} +1 -1
  390. package/dist/client/assets/useInfiniteQuery-AR0nCC2r.js +1 -0
  391. package/dist/client/assets/{useQueries-DGhxO9Ry.js → useQueries-D5FTElAG.js} +1 -1
  392. package/dist/client/assets/useSuspenseInfiniteQuery-CcdFZ__h.js +1 -0
  393. package/dist/client/assets/{users-CC1uXfIH.js → users-9DnwrQDD.js} +1 -1
  394. package/dist/client/assets/{utils-JVZxV40b.js → utils-B6aCtHUu.js} +1 -1
  395. package/dist/client/assets/{variant-calendar-COAsXla8.js → variant-calendar-BnXhZ8PW.js} +1 -1
  396. package/dist/client/assets/{variant-matcher-override-Dm9kjKRy.js → variant-matcher-override-BH-xFtlD.js} +1 -1
  397. package/dist/client/assets/{view-header-d4Obd__T.js → view-header-mqw-cAVS.js} +1 -1
  398. package/dist/client/assets/{virtual-mcp-TQWeP4ry.js → virtual-mcp-sCTq7xTd.js} +1 -1
  399. package/dist/client/assets/watch-sse-pool-cOL-0uUN.js +1 -0
  400. package/dist/client/index.html +2 -2
  401. package/dist/server/migrate-dbos.js +2 -2
  402. package/dist/server/migrate.js +211 -211
  403. package/dist/server/server.js +841 -845
  404. package/package.json +1 -1
  405. package/dist/client/assets/agent-app-BwabK-EN.js +0 -1
  406. package/dist/client/assets/agent-blog-BAFEHC3F.js +0 -2
  407. package/dist/client/assets/agent-blog-post-BfZLJHCc.js +0 -2
  408. package/dist/client/assets/agent-deck-FkIcljPu.js +0 -1
  409. package/dist/client/assets/agent-experiments-DDePdz1s.js +0 -1
  410. package/dist/client/assets/agent-file-Dq7RwOoN.js +0 -1
  411. package/dist/client/assets/agent-library-C06De_Om.js +0 -1
  412. package/dist/client/assets/agent-library-file-DZtwB2bP.js +0 -1
  413. package/dist/client/assets/agent-overview-3kq8I1YX.js +0 -1
  414. package/dist/client/assets/agent-settings-CQxH-SU4.js +0 -1
  415. package/dist/client/assets/agent-site-editor-code-lMnnKFV4.js +0 -2
  416. package/dist/client/assets/agent-site-editor-content-BQ-pFVV_.js +0 -1
  417. package/dist/client/assets/agent-site-editor-preview-Dipnwf9A.js +0 -1
  418. package/dist/client/assets/agent-view-D74Nsx4n.js +0 -1
  419. package/dist/client/assets/api-keys-B9w3P2co.js +0 -1
  420. package/dist/client/assets/app-editor-DLwnlaqE.js +0 -1
  421. package/dist/client/assets/blog-preview-url-D1Gi50Jy.js +0 -1
  422. package/dist/client/assets/blog-schema-G_pvuSAo.js +0 -1
  423. package/dist/client/assets/blog-source-gate-Z08IMogx.js +0 -1
  424. package/dist/client/assets/category-editor-DZLdQENU.js +0 -1
  425. package/dist/client/assets/category-tree-oBVfCVRR.js +0 -4
  426. package/dist/client/assets/cms-settings-editor-h4wDmiSv.js +0 -1
  427. package/dist/client/assets/empty-message-B3ykEghT.js +0 -15
  428. package/dist/client/assets/index-CFbcObvG.css +0 -1
  429. package/dist/client/assets/index-DwIomefI.js +0 -5
  430. package/dist/client/assets/item-actions-CZD9JeRy.js +0 -1
  431. package/dist/client/assets/library-Cy3CmAZa.js +0 -1
  432. package/dist/client/assets/monitoring-BvN0RJq0.js +0 -2
  433. package/dist/client/assets/order-monitor-day-D910WxJ3.js +0 -1
  434. package/dist/client/assets/post-calendar-Cw6GB31X.js +0 -1
  435. package/dist/client/assets/preview-tab-CNYeoSqY.js +0 -557
  436. package/dist/client/assets/project-reports-CN1JvK97.js +0 -1
  437. package/dist/client/assets/project-tasks-Cimkg6Js.js +0 -1
  438. package/dist/client/assets/record-editor-BC_pgxjj.js +0 -1
  439. package/dist/client/assets/redirect-editor-CJJivlqw.js +0 -1
  440. package/dist/client/assets/reports-BU9i6BvT.js +0 -1
  441. package/dist/client/assets/repositories-D-ngJeYU.js +0 -1
  442. package/dist/client/assets/roles-DrWSfOhb.js +0 -1
  443. package/dist/client/assets/route-DxNP7FKc.js +0 -1
  444. package/dist/client/assets/section-array-field-CkDPdYBe.js +0 -1
  445. package/dist/client/assets/sections-editor-CLaZ0j6X.js +0 -1
  446. package/dist/client/assets/seo-editor-C5CvtZIp.js +0 -1
  447. package/dist/client/assets/settings-tab-k_yzR7TC.js +0 -1
  448. package/dist/client/assets/site-editor-DO2-FIjd.js +0 -1
  449. package/dist/client/assets/tasks-BZlAEaTY.js +0 -1
  450. package/dist/client/assets/use-ask-in-chat-Cp6wJI2T.js +0 -1
  451. package/dist/client/assets/use-blocks-v8-project-DUe21BCo.js +0 -1
  452. package/dist/client/assets/use-blog-view-D_--u8j_.js +0 -1
  453. package/dist/client/assets/useInfiniteQuery-BJoJv4VQ.js +0 -1
  454. package/dist/client/assets/useSuspenseInfiniteQuery-BFQG7J82.js +0 -1
  455. package/dist/client/assets/watch-sse-pool-CWcYbOm5.js +0 -1
@@ -1 +0,0 @@
1
- import{c as A,a6 as V,bh as X,j as a,b as z,B as F,h as q,r as J}from"./index-BVZH8mqe.js";import{E as Q}from"./empty-state-C4vGG4yC.js";import{n as Z}from"./BookOpen01-CdH9hkvz.js";import{c as H,u as ee}from"./chat-context-B6UvvRRf.js";import{c as te,u as se,i as oe,h as re,j as ae,f as ie,k as ne}from"./site-editor-toast-vvVLBG6s.js";import{i as le,u as ce,S as fe,C as de,B as me}from"./blocks-tab-states-CDYT4Ypi.js";import{E as $,B as ue}from"./empty-message-B3ykEghT.js";import{u as pe}from"./use-sandbox-events-TxpzU2Iw.js";import{a as he}from"./sandbox-lifecycle-context-CO9pd80k.js";import{u as ge}from"./use-voice-input-BspgCDOI.js";import{k as xe,S as be,i as ve,n as Se,C as ye,F as je,s as ke,p as Be}from"./category-tree-oBVfCVRR.js";import{f as Ee}from"./blog-preview-url-D1Gi50Jy.js";import{E as Pe}from"./empty-state-hp9a4BQn.js";import{G}from"./github-icon-C-V2EETw.js";import{R as we}from"./new-project-dialog-BeD2i_Hm.js";import{a as K}from"./agent-capabilities-CJLhsDjp.js";import{b as Ce}from"./repository-binding-BIfwJXBl.js";function Ve(R){const e=A.c(27),{children:f}=R,{currentBranch:c,virtualMcpId:s}=H(),{org:d}=V(),m=pe(),v=he(),{runtime:j,previewServerUrl:E}=ge(s),{url:B}=te(s),r=se(s,c),t=oe(r),h=r.kind==="protocol"&&r.source==="github";X(h);const n=xe({fastPreviewActive:t||j==="cms",previewState:v.previewState,lifecyclePhase:m.lifecycle.phase});let u;e[0]!==r||e[1]!==B?(u=re(r)??B,e[0]=r,e[1]=B,e[2]=u):u=e[2];const p=u,i=j==="cms"&&!p;if(n.kind==="sandbox-card"){const l=`/${d.slug}/settings/connections`;let P;return e[3]!==n.state||e[4]!==v.start||e[5]!==l||e[6]!==m.lifecycle||e[7]!==m.phase?(P=a.jsx(be,{state:n.state,claimPhase:m.phase,lifecycle:m.lifecycle,onStart:v.start,connectionsHref:l}),e[3]=n.state,e[4]=v.start,e[5]=l,e[6]=m.lifecycle,e[7]=m.phase,e[8]=P):P=e[8],P}if(!s||!c){let l;return e[9]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx($,{title:"Waiting for sandbox context…"}),e[9]=l):l=e[9],l}if(le(r)){let l;return e[10]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(fe,{}),e[10]=l):l=e[10],l}if(r.kind==="pending"){let l;return e[11]!==r?(l=a.jsx(de,{backend:r}),e[11]=r,e[12]=l):l=e[12],l}const S=t?null:v.previewUrl,y=p??(i?E:v.previewUrl);let k;e[13]!==c||e[14]!==f||e[15]!==i||e[16]!==n.devServerReady||e[17]!==n.sandboxWarming||e[18]!==h||e[19]!==d.slug||e[20]!==S||e[21]!==y||e[22]!==s?(k=a.jsx(_e,{orgSlug:d.slug,virtualMcpId:s,branch:c,previewUrl:S,sitePreviewUrl:y,fastPreviewActive:i,hostedDraft:h,devServerReady:n.devServerReady,sandboxWarming:n.sandboxWarming,children:f}),e[13]=c,e[14]=f,e[15]=i,e[16]=n.devServerReady,e[17]=n.sandboxWarming,e[18]=h,e[19]=d.slug,e[20]=S,e[21]=y,e[22]=s,e[23]=k):k=e[23];let g;return e[24]!==t||e[25]!==k?(g=a.jsx(ue,{value:t,children:k}),e[24]=t,e[25]=k,e[26]=g):g=e[26],g}function _e(R){const e=A.c(58),{orgSlug:f,virtualMcpId:c,branch:s,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j,devServerReady:E,sandboxWarming:B,children:r}=R,t=z(),h=ee()?.taskId??null;let n;e[0]!==s||e[1]!==f||e[2]!==d||e[3]!==h||e[4]!==c?(n={orgSlug:f,virtualMcpId:c,branch:s,threadId:h,previewUrl:d},e[0]=s,e[1]=f,e[2]=d,e[3]=h,e[4]=c,e[5]=n):n=e[5];const u=n;let p;e[6]!==E?(p={fetchEnabled:E},e[6]=E,e[7]=p):p=e[7];const{data:i,isLoading:S,refetch:y}=ae(u,p);let k;e[8]!==E?(k={fetchEnabled:E},e[8]=E,e[9]=k):k=e[9];const{data:g,isLoading:l,refetch:P}=ce(u,k);let N;e[10]!==s||e[11]!==j||e[12]!==f||e[13]!==c?(N=j?{orgSlug:f,virtualMcpId:c,branch:s}:null,e[10]=s,e[11]=j,e[12]=f,e[13]=c,e[14]=N):N=e[14];const D=N,M=ie(D,ve);let L;e[15]!==M?(L=[...M,Se,ye,je],e[15]=M,e[16]=L):L=e[16];let O;e[17]===Symbol.for("react.memo_cache_sentinel")?(O={withRefs:!0},e[17]=O):O=e[17];const T=ne(D,L,O);if(T.failed){let o;e[18]!==t?(o=t("sectionsEditor.hosted.blockLoadFailed"),e[18]=t,e[19]=o):o=e[19];let x;e[20]!==t?(x=t("sectionsEditor.hosted.blockLoadFailedHint"),e[20]=t,e[21]=x):x=e[21];let b;e[22]!==o||e[23]!==x?(b=a.jsx($,{title:o,description:x}),e[22]=o,e[23]=x,e[24]=b):b=e[24];const w=T.retry;let C;e[25]!==t?(C=t("sectionsEditor.namedRules.tryAgain"),e[25]=t,e[26]=C):C=e[26];let _;e[27]!==T.retry||e[28]!==C?(_=a.jsx(F,{variant:"outline",size:"sm",onClick:w,children:C}),e[27]=T.retry,e[28]=C,e[29]=_):_=e[29];let W;return e[30]!==_||e[31]!==b?(W=a.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",children:[b,_]}),e[30]=_,e[31]=b,e[32]=W):W=e[32],W}const I=!i||!g;if(S||l||!T.ready||I&&B){let o;return e[33]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx(q,{className:"size-5 text-muted-foreground"})}),e[33]=o):o=e[33],o}if(I){let o;return e[34]!==i||e[35]!==g||e[36]!==y||e[37]!==P?(o=a.jsx(me,{source:"data",onRetry:()=>{i||y(),g||P()}}),e[34]=i,e[35]=g,e[36]=y,e[37]=P,e[38]=o):o=e[38],o}const Y=ke(i);if(!Be.some(o=>Y[o].length>0)&&!Ee(i,g)){let o;e[39]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Z,{size:22}),e[39]=o):o=e[39];let x;e[40]!==t?(x=t("sandbox.blogWorkspace.noBlogApp"),e[40]=t,e[41]=x):x=e[41];let b;e[42]!==t?(b=t("sandbox.blogWorkspace.noBlogAppHint"),e[42]=t,e[43]=b):b=e[43];let w;return e[44]!==x||e[45]!==b?(w=a.jsx(Q,{className:"h-full",icon:o,title:x,description:b}),e[44]=x,e[45]=b,e[46]=w):w=e[46],w}let U;return e[47]!==s||e[48]!==r||e[49]!==i||e[50]!==v||e[51]!==j||e[52]!==g||e[53]!==f||e[54]!==d||e[55]!==m||e[56]!==c?(U=r({orgSlug:f,virtualMcpId:c,branch:s,decofile:i,meta:g,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j}),e[47]=s,e[48]=r,e[49]=i,e[50]=v,e[51]=j,e[52]=g,e[53]=f,e[54]=d,e[55]=m,e[56]=c,e[57]=U):U=e[57],U}function Xe(R){const e=A.c(20),{virtualMcpId:f,children:c}=R,s=z(),[d,m]=J.useState(!1),v=Ce(f),{activeTask:j}=H();if(K(v?.metadata)||K(j?.metadata))return c;let B;e[0]===Symbol.for("react.memo_cache_sentinel")?(B=a.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-muted",children:a.jsx(G,{className:"size-7 text-foreground"})}),e[0]=B):B=e[0];let r;e[1]!==s?(r=s("mainPanelTabs.contentTab.noContentToEdit"),e[1]=s,e[2]=r):r=e[2];let t;e[3]!==s?(t=s("mainPanelTabs.contentTab.connectGithubDescription"),e[3]=s,e[4]=t):t=e[4];let h,n;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(!0),n=a.jsx(G,{className:"size-4"}),e[5]=h,e[6]=n):(h=e[5],n=e[6]);let u;e[7]!==s?(u=s("mainPanelTabs.previewTab.connectGithub"),e[7]=s,e[8]=u):u=e[8];let p;e[9]!==u?(p=a.jsxs(F,{onClick:h,children:[n,u]}),e[9]=u,e[10]=p):p=e[10];let i;e[11]!==r||e[12]!==t||e[13]!==p?(i=a.jsx(Pe,{className:"h-full",image:B,title:r,description:t,actions:p}),e[11]=r,e[12]=t,e[13]=p,e[14]=i):i=e[14];let S;e[15]!==d?(S=a.jsx(we,{open:d,onOpenChange:m,mode:"agent"}),e[15]=d,e[16]=S):S=e[16];let y;return e[17]!==i||e[18]!==S?(y=a.jsxs(a.Fragment,{children:[i,S]}),e[17]=i,e[18]=S,e[19]=y):y=e[19],y}export{Ve as B,Xe as a};
@@ -1 +0,0 @@
1
- import{c as jt,j as t,b as St,r as k,B as et,a9 as Et,I as ot,aP as vt,aO as Nt,aL as Ct,aJ as wt,aK as Pt,aN as kt,aM as Bt,b9 as Dt,h as Tt,t as B}from"./index-BVZH8mqe.js";import{u as Ft}from"./chat-context-B6UvvRRf.js";import{i as L}from"./AlertCircle-kHXzu73r.js";import{i as _t}from"./ArrowRight-ajc9j6D-.js";import{i as st}from"./File02-R0RW2VCN.js";import{d as At}from"./UserSquare-D44lppb_.js";import{L as O}from"./label-Dc_tSb6f.js";import{S as Rt,b as Lt,a as Ot,d as zt,c as z}from"./select-BJ7g3jt1.js";import{b as It,C as Ht,a as Mt,c as Wt}from"./blog-schema-G_pvuSAo.js";import{H as $t,u as Vt}from"./held-block-view-xCVzC3Lr.js";import{a as Gt,b as I,j as p,T as Yt,s as qt,aM as Jt,o as Qt,aN as Ut,_ as Xt,aO as Zt,m as rt,a1 as Kt,a5 as te,W as ee,h as oe,l as se,aP as re,d as ie,f as ae,H as ne,aQ as le}from"./category-tree-oBVfCVRR.js";import{c as me}from"./blog-preview-url-D1Gi50Jy.js";import{u as ce}from"./use-never-published-BK3TeRer.js";import{u as de}from"./use-move-blocks-Cqt9Q8CZ.js";import{H as it}from"./hosted-reconcile-DS6ZmO5s.js";import{u as pe}from"./use-fast-preview-draft-url-BQhDGlp9.js";import{u as ge}from"./use-autosave-Bpr4B2YO.js";import{S as ue}from"./save-status-eUv6TQpr.js";import{B as xe,a as he}from"./block-document-CQOXOWIP.js";import{c as fe,T as ye,a as be}from"./tooltip-CfeBMv8z.js";import"./use-panel-navigate-DPGDB1T1.js";import"./thread-route-muzc431X.js";import"./use-project-scope-BIucgFKc.js";import"./repository-binding-BIfwJXBl.js";import"./use-mcp-client-7NPwItGN.js";import"./auth-C3yWOKhG.js";import"./use-view-draft-kind-BG3Ihm6n.js";import"./use-blog-view-D_--u8j_.js";import"./use-organization-settings-BoOQOwrg.js";import"./schema-C2ft4i4u.js";import"./task-board-DLNmAHmR.js";import"./thread-intent-CYNXEfHP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CWcYbOm5.js";import"./session-runtime-CRv5j4jh.js";import"./use-entitlements-B8D7pawV.js";import"./use-ai-providers-C30oeluP.js";import"./use-current-view-CHhVzMwk.js";import"./use-in-settings-qQ2sbeu5.js";import"./use-decopilot-events-BxfGa0_j.js";import"./index-BdQq_4o_.js";import"./index-BFjuxezw.js";import"./ChevronDown-CWnE_Wmz.js";import"./ChevronUp-C_rAiuf1.js";import"./UserCheck01-B1rJ65So.js";import"./collapsible-D4n-ssmc.js";import"./utils-JVZxV40b.js";import"./agent-icon-BS6RPQ_A.js";import"./Tool01-BEo5XKkS.js";import"./ArrowUp-CjAvmMLL.js";import"./ArrowLeft-DcKid1bz.js";import"./BookOpen01-CdH9hkvz.js";import"./Globe04-DudUQgTy.js";import"./CheckCircle-DG9pUM8a.js";import"./TrendUp01-aviiZW6M.js";import"./ChevronSelectorVertical-ByCpNum0.js";import"./LinkBroken01-CpDM6pG5.js";import"./CreditCard01-C6eDo3p0.js";import"./MessageCircle01-44De_8cO.js";import"./SwitchHorizontal01-sPBj-OL8.js";import"./Eye-DFeDq2Hx.js";import"./Fingerprint04-D-EFj_6a.js";import"./Image01-Dfaw0Ysf.js";import"./Key01-9JQCF719.js";import"./LayoutLeft-B-cVGLzN.js";import"./Minus-09UkIbMe.js";import"./Monitor01-BPQw3JGv.js";import"./Sun-U7FHkItb.js";import"./Play-BRDYCYl7.js";import"./Plus-BJfG2DpW.js";import"./SearchMd-DioGBYbO.js";import"./ShoppingBag01-CdQhBv_H.js";import"./Trash01-l4iOtEBN.js";import"./Upload01-BhvyPM8u.js";import"./Users01-CxQycal6.js";import"./XClose-BwokcWjs.js";import"./Zap-DoXbwvKP.js";import"./blocks-tab-states-CDYT4Ypi.js";import"./site-editor-toast-vvVLBG6s.js";import"./use-sandbox-events-TxpzU2Iw.js";import"./sandbox-url-D3mC8qhT.js";import"./use-blocks-v8-project-DUe21BCo.js";import"./use-voice-input-BspgCDOI.js";import"./popover-9q-VKuQx.js";import"./drawer-BMY0wk6r.js";import"./use-mobile-5e0sSd3X.js";import"./index-GMDFirHC.js";import"./checkbox-Cs2Li62P.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./sandbox-git-api-CvJPOlyv.js";import"./empty-state-hp9a4BQn.js";import"./calendar-Sr3cNZGh.js";import"./textarea-BnYcD_gb.js";import"./usage-stats-Dzci2XGy.js";import"./utils-CVEq3hMx.js";import"./markdown-DvUyMKlV.js";import"./use-copy-BHPkBnZF.js";import"./gateway-client-8UpI_Rdq.js";import"./form-BZ2nSi_9.js";import"./editor-classes-BygI_Lvg.js";import"./switch-BX8b8tB6.js";import"./task-key-BjUMQvHV.js";import"./sortable.esm-BzU9NXcP.js";import"./toggle-group-Cu3LE1oL.js";import"./active-indicator-CCMhAsc_.js";import"./empty-message-B3ykEghT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-C4tumP78.js";import"./use-task-board-items-D4fdH47R.js";import"./config-zmlExYow.js";import"./task-route-B6gZ9LxC.js";import"./project-index-BOyydKXT.js";import"./shell-layout-BT6RZJ9X.js";import"./use-deployment-admin-COmgwPUq.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Dvph2j3S.js";import"./command-DQwD4jPt.js";import"./index-B-PIhH8l.js";import"./integration-icon-CcV5frEs.js";import"./project-icon-C8Sq9Uyo.js";import"./use-navigate-to-agent-CtsEyeFb.js";import"./use-debounced-value-By7KggQt.js";import"./new-project-dialog-BeD2i_Hm.js";import"./repository-picker-vN0XhyKR.js";import"./github-icon-C-V2EETw.js";import"./useInfiniteQuery-BJoJv4VQ.js";import"./infiniteQueryObserver-f5kG4cIT.js";import"./collection-search-CDDauqCr.js";import"./new-project-store-BfrY24D-.js";import"./legacy-admin-welcome-dialog-DtYrilLw.js";import"./required-auth-layout-BXbkUsYd.js";import"./use-org-sso-BKXSOEb_.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CRu4PbUr.js";import"./types-D_vNw-3-.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-B1zTFenO.js";import"./use-connection-C-m8b2Fk.js";import"./use-mcp-prompts-C7QHdaI_.js";import"./use-thread-outputs-CrNLjxTt.js";import"./file-type-icon-DOJ02s9h.js";import"./section-array-field-CkDPdYBe.js";import"./named-rule-step-BnN-hlGb.js";import"./slider-46E0vJw8.js";import"./index--r4E_gW7.js";import"./tooltipContext-BMU8k-Rs.js";import"./CategoricalChart-DW_7VziR.js";import"./index-BYQu9U5P.js";import"./combobox-LL4GsRoi.js";import"./scroll-area-w9_Bvwmf.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-CCo70YSN.js";import"./asset-utils-CdU3Ttfs.js";import"./search-input-D3b0Dc5Y.js";import"./tabs-ClkuSww4.js";import"./delete-copy-BH5xrx9H.js";import"./index-B4YS6GMo.js";import"./suggestion-B9N6oqkG.js";import"./product-picker-dialog-DVs_Kuee.js";import"./index-6V91lP75.js";const H="__none__";function je({orgSlug:r,virtualMcpId:s,branch:g,blockKey:n,block:y,decofile:x,meta:D,onManagePosts:at,onOpenPost:nt,previewBaseUrl:M,fastPreviewActive:lt=!0}){const o=St(),W=Ft()?.taskId??null,b=ce({orgSlug:r,virtualMcpId:s,branch:g},{holdsCopy:!0}),v=de({orgSlug:r,virtualMcpId:s,branch:g}),mt=pe({orgSlug:r,virtualMcpId:s,branch:g}),$=Gt(y,"categories"),V=e=>{const a=b.shown(e);return a?{[e]:a}:{}},[m,G,Y]=ge($,e=>{b.mutate({blockKey:n,data:I(n,"categories",e)})},{isSaving:b.isPending||v.isPending,onSeed:()=>b.hold(n)}),N=(e,a)=>G({...m,[e]:a}),ct=It("categories",D,Wt),R=Vt({orgSlug:r,virtualMcpId:s,branch:g},x),q=R.save,J=me({decofile:x,category:m,previewBaseUrl:M,draftPointer:lt?mt:null,meta:D}),i=p(m.slug),[Q,f]=k.useState(i),[U,j]=k.useState(null),[dt,pt]=k.useState(i);dt!==i&&(pt(i),f(i));const[d,T]=k.useState(null),[S,F]=k.useState(!1),X=i?Yt(x).filter(e=>e.categorySlugs.includes(i)):[],_=X.length,A=qt(x).categories,Z=(i?A.filter(e=>e.parentSlug===i):[]).length,gt=i?Jt(i,A).add(i):new Set,K=Qt(A).filter(({entry:e,depth:a})=>e.slug&&!gt.has(e.slug)&&a+1<Ut).map(({entry:e,depth:a})=>({slug:e.slug,label:e.label,depth:a})),C=p(m.parentSlug),ut=Xt(x,"categories",n,p(m.name)),E=Zt(m),xt=E.length===1?o("sandbox.postEditor.missingFieldSingular",{fields:rt(E,o)}):o("sandbox.postEditor.missingFieldPlural",{fields:rt(E,o)}),ht=e=>N("slug",e),tt=(e,a)=>{const c={name:p(a.name),slug:p(a.slug)},l={[n]:I(n,"categories",a)};let h=0;for(const{key:u,payload:w}of se(x)){const P=re(w,e,c);P!==w&&(l[u]=ie(u,ae(P)),h+=1)}if(e!==c.slug)for(const{key:u,payload:w}of ne(x,"categories")){if(u===n)continue;const P=le(w,e,c.slug);P!==w&&(l[u]=I(u,"categories",P))}return{writes:l,posts:h}},ft=async()=>{if(!i||S)return;const e=p(m.name),a={...m,name:e},{writes:c,posts:l}=tt(i,a);if(!(l===0&&e===p($.name))){F(!0);try{Y(a),await v.move({writes:c,deletes:[]},{shown:()=>V(n)}),l>0&&B.success(o("sandbox.categoryEditor.renameNameSuccess",{count:String(l)}))}catch(h){if(h instanceof it)return;B.error(h instanceof Error?h.message:o("sandbox.categoryEditor.renameFailed"))}finally{F(!1)}}},yt=async(e,a)=>{const c={...m,slug:a},{writes:l,posts:h}=tt(e,c);F(!0);try{Y(c),await v.move({writes:l,deletes:[]},{shown:()=>V(n)}),B.success(h>0?o("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(h)}):o("sandbox.categoryEditor.renameSuccessNoPosts")),T(null)}catch(u){if(f(e),j(null),T(null),u instanceof it)return;B.error(u instanceof Error?u.message:o("sandbox.categoryEditor.renameFailed"))}finally{F(!1)}},bt=()=>{const e=ee(Q);if(f(e),e===i)return;if(!e){f(i),j(null);return}const a=A.filter(l=>l.key!==n).map(l=>p(l.slug)).filter(Boolean);let c=e;if(a.includes(e)){c=oe(e,a);const l=o("sandbox.categoryEditor.slugDeduped",{slug:c});f(c),j(l),B.info(l)}else j(null);if(_===0&&Z===0){ht(c);return}T({oldSlug:i,newSlug:c,count:_,children:Z})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:p(m.name)||o("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(ue,{isPending:b.isPending||R.isPending||v.isPending,isError:b.isError||R.isError||v.isError}),E.length>0&&t.jsxs(fe,{children:[t.jsx(ye,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(L,{size:14}),E.length," ",E.length===1?o("sandbox.postEditor.issueSingular"):o("sandbox.postEditor.issuePlural")]})}),t.jsx(be,{side:"bottom",children:xt})]}),J&&t.jsxs(et,{type:"button",variant:"outline",size:"sm",title:o("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(J,"_blank","noopener,noreferrer"),children:[t.jsx(Et,{size:14}),o("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(Kt,{value:p(m.name),onChange:e=>N("name",e),readOnly:S,onBlur:()=>{ft()},placeholder:o("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),ut&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(L,{size:14,className:"mt-px shrink-0"}),o("sandbox.categoryEditor.duplicateNameWarning")]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(O,{htmlFor:"category-slug",children:o("sandbox.categoryEditor.slugLabel")}),t.jsx(ot,{id:"category-slug",value:Q,onChange:e=>{j(null),f(te(e.target.value))},onBlur:bt,placeholder:o("sandbox.categoryEditor.slugPlaceholder"),maxLength:80,className:"h-10"}),U&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(L,{size:14,className:"mt-px shrink-0"}),U]})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(O,{htmlFor:"category-parent",children:o("sandbox.categoryEditor.parentLabel")}),t.jsxs(Rt,{value:C||H,onValueChange:e=>N("parentSlug",e===H?void 0:e),children:[t.jsx(Lt,{id:"category-parent",className:"h-10 w-full",children:t.jsx(Ot,{})}),t.jsxs(zt,{children:[t.jsx(z,{value:H,children:o("sandbox.categoryEditor.parentNone")}),C&&!K.some(e=>e.slug===C)&&t.jsx(z,{value:C,children:C}),K.map(e=>t.jsx(z,{value:e.slug,children:t.jsx("span",{style:{paddingLeft:e.depth*12},children:e.label})},e.slug))]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("sandbox.categoryEditor.parentDescription")})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(O,{htmlFor:"category-description",children:o("sandbox.categoryEditor.descriptionLabel")}),t.jsx(ot,{id:"category-description",value:p(m.description),onChange:e=>N("description",e.target.value),placeholder:o("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(Ht,{schema:ct,value:m,onChange:G,basePath:"category",meta:D,decofile:x,sandbox:{orgSlug:r,virtualMcpId:s,branch:g,threadId:W},onSaveReferencedBlock:q}),t.jsx(Mt,{icon:At,title:o("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(xe,{value:he(m.sections),onChange:e=>N("sections",e),meta:D,decofile:x,sandboxRef:{orgSlug:r,virtualMcpId:s,branch:g,threadId:W},previewBaseUrl:M,onSaveReferencedBlock:q,emptyMessage:o("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(st,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:o("sandbox.categoryEditor.postsInCategory",{count:String(_)})})]}),t.jsxs(et,{type:"button",variant:"outline",size:"sm",disabled:!i,title:o(i?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>at(i),children:[o("sandbox.categoryEditor.addPostsButton"),t.jsx(_t,{size:14})]})]}),_>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:X.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>nt(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-accent cursor-pointer",children:[t.jsx(st,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||o("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(vt,{open:!!d,onOpenChange:e=>{e||S||(f(i),j(null),T(null))},children:t.jsxs(Nt,{children:[t.jsxs(Ct,{children:[t.jsx(wt,{children:o("sandbox.categoryEditor.renameDialogTitle")}),t.jsxs(Pt,{children:[d?o("sandbox.categoryEditor.renameDialogDescription",{oldSlug:d.oldSlug,newSlug:d.newSlug,count:String(d.count)}):null,d&&d.children>0?` ${o("sandbox.categoryEditor.renameDialogChildren",{count:String(d.children)})}`:null]})]}),t.jsxs(kt,{children:[t.jsx(Bt,{disabled:S,children:o("sandbox.categoryEditor.cancelButton")}),t.jsx(Dt,{onClick:e=>{e.preventDefault(),d&&yt(d.oldSlug,d.newSlug)},disabled:S,children:S?t.jsxs(t.Fragment,{children:[t.jsx(Tt,{className:"size-3.5"}),o("sandbox.categoryEditor.renamingLabel")]}):o("sandbox.categoryEditor.renameActionButton")})]})]})})]})}function vr(r){const s=jt.c(10),g=r.block!==void 0;let n;s[0]!==r?(n=t.jsx(je,{...r}),s[0]=r,s[1]=n):n=s[1];let y;return s[2]!==r.blockKey||s[3]!==r.branch||s[4]!==r.decofile||s[5]!==r.orgSlug||s[6]!==r.virtualMcpId||s[7]!==g||s[8]!==n?(y=t.jsx($t,{listing:r.decofile,orgSlug:r.orgSlug,virtualMcpId:r.virtualMcpId,branch:r.branch,blockKey:r.blockKey,present:g,children:n}),s[2]=r.blockKey,s[3]=r.branch,s[4]=r.decofile,s[5]=r.orgSlug,s[6]=r.virtualMcpId,s[7]=g,s[8]=n,s[9]=y):y=s[9],y}export{vr as CategoryEditor};
@@ -1,4 +0,0 @@
1
- import{c as x,j as b,bc as I,bf as Ke,bg as Ue,bd as me,bx as Ge,aI as ze,b as He,r as Ve,t as re,m as Z,B as Xe}from"./index-BVZH8mqe.js";import{S as V,d as qe,f as We,u as ge,g as Ye,i as Je}from"./empty-message-B3ykEghT.js";import{u as Qe}from"./use-move-blocks-Cqt9Q8CZ.js";import{H as Ze}from"./hosted-reconcile-DS6ZmO5s.js";import{s as et}from"./session-runtime-CRv5j4jh.js";import{W as tt,X as nt,w as ot}from"./blocks-tab-states-CDYT4Ypi.js";import{Y as st}from"./agent-icon-BS6RPQ_A.js";import{s as rt}from"./Plus-BJfG2DpW.js";import{s as it}from"./Trash01-l4iOtEBN.js";function In(t){const e=x.c(12),{state:n,claimPhase:o,lifecycle:s,onStart:r,connectionsHref:i}=t;switch(n.kind){case"starting":{let a;e[0]!==o||e[1]!==s?(a=qe({claimPhase:o,lifecycle:s}),e[0]=o,e[1]=s,e[2]=a):a=e[2];let u;return e[3]!==o||e[4]!==a?(u=b.jsx(V,{kind:"starting",progress:a,claimPhase:o}),e[3]=o,e[4]=a,e[5]=u):u=e[5],u}case"suspended":{let a;return e[6]!==r?(a=b.jsx(V,{kind:"suspended",onResume:r}),e[6]=r,e[7]=a):a=e[7],a}case"errored":{let a;return e[8]!==i||e[9]!==r||e[10]!==n.error?(a=b.jsx(V,{kind:"errored",error:n.error,onRetry:r,connectionsHref:i}),e[8]=i,e[9]=r,e[10]=n.error,e[11]=a):a=e[11],a}}}const at=new Set(["clone-failed","install-failed","start-failed","crashed"]);function Ln(t){if(t.fastPreviewActive)return{kind:"ready",devServerReady:!1,sandboxWarming:!1};if(t.previewState.kind!=="iframe")return{kind:"sandbox-card",state:t.previewState};const e=t.lifecyclePhase==="running",n=!e&&!at.has(t.lifecyclePhase);return{kind:"ready",devServerReady:e,sandboxWarming:n}}const ct=["draft","active","paused","finished"],ut=["launch","seasonal","trend","seo_gap","inventory","partnership","reputation"],lt=["awareness","education","conversion","retention","repositioning"],dt=["category","collection"],ft=3,jn=12,pt=60,mt=25,gt=8e3,ht=2e3,yt="vtex/loaders/intelligentSearch/productList.ts";function _(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function X(t){return typeof t=="string"||typeof t=="number"?String(t):""}function q(t){const e=_(t);return!!e&&typeof e.__resolveType=="string"&&"productId"in e}function Dn(t){if(typeof t=="string")return t?[t]:[];if(Array.isArray(t))return t.every(o=>typeof o=="string")?t:t.map(o=>X(_(o)?.productId));const e=_(t),n=_(e?.props);return n&&Array.isArray(n.ids)?n.ids.map(X):e&&"productId"in e?[X(e.productId)]:[]}function bt(t){const e=_(t)??{};return typeof e.__resolveType=="string"?e.__resolveType:yt}function St(t,e){if(typeof t=="string")return e[0]??"";if(Array.isArray(t)){if(t.length>0&&t.every(i=>typeof i=="string"))return e;const r=t.find(q);if(r)return e.map((i,a)=>{const u=_(t[a]);return{...q(u)?u:{__resolveType:r.__resolveType},productId:i}})}const n=_(t);if(q(n)&&!_(n.props)?.ids)return{...n,productId:e[0]??""};const o=_(n?.props)??{},s=bt(t);return{...n??{},__resolveType:s,props:{...o,ids:e,simulationBehavior:o.simulationBehavior??"default"}}}const vt=["title","titleTemplate","description","descriptionTemplate"];function he(t){return typeof t=="string"?t.trim():""}function ie(t){if(!Je(t))return"";const e=ge(t);if(!e)return"";const n=[];for(const o of vt){const s=he(e[o]);s&&n.push(`${o}: ${s}`)}return n.join(`
2
- `).slice(0,ht)}function ye(t,e){const n=t[e.key],o=n&&typeof n=="object"?ge(n.seo):null,s=he(o?.__resolveType);if(s){const r=Ye(s);if(r==="pdp"||r==="plp")return"commerce"}return tt(e.path).length>0?"commerce":e.path==="/"?"home":"institutional"}function At(t,e){const n=[],o=new Set;let s=gt;const r=(l,p)=>{!p||o.has(p)||n.length>=mt||p.length>s||(o.add(p),n.push({key:l,content:p}),s-=p.length)},i=We(t);i&&r("site",ie(i.seoData));const a={home:[],institutional:[],commerce:[]};for(const l of e)a[ye(t,l)].push(l);const u=[...a.home,...a.institutional,...a.commerce.slice(0,2)];for(const l of u){const p=t[l.key];!p||typeof p!="object"||r(l.path,ie(p.seo))}return n}const W={post:"blog/loaders/Blogpost.ts",author:"blog/loaders/Author.ts",category:"blog/loaders/Category.ts"},be=["posts","authors","categories"],Mn={posts:"post",authors:"author",categories:"category"};function $n(t){return be.includes(t)}const $={posts:"post",authors:"author",categories:"category"},Se={posts:W.post,authors:W.author,categories:W.category},_t=Object.fromEntries(Object.entries(Se).map(([t,e])=>[e,t]));function ve(t){return typeof t=="string"?_t[t]??null:null}function Fn(t){return ve(t)!==null}function m(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function c(t){return typeof t=="string"?t:""}function Ct(t,e){switch(t){case"posts":return{label:c(e.title)||"Untitled post",subtitle:c(e.slug),missing:F(e)};case"authors":return{label:c(e.name)||"Unnamed author",subtitle:c(e.email),missing:[]};case"categories":return{label:c(e.name)||"Unnamed category",subtitle:c(e.slug),slug:c(e.slug),parentSlug:c(e.parentSlug),missing:It(e)};default:{const n=t;throw new Error(`Unhandled blog kind: ${String(n)}`)}}}function wt(t){const e={posts:[],authors:[],categories:[]},n=[];for(const[o,s]of Object.entries(t)){const r=m(s);if(!r)continue;const i=ve(r.__resolveType);if(!i)continue;const a=m(r[$[i]])??{},u={key:o,kind:i,...Ct(i,a)};e[i].push(u),n.push({entry:u,key:M(c(a[i==="posts"?"title":"name"]))})}xt(n);for(const o of be)e[o].sort((s,r)=>s.label.localeCompare(r.label));return e}function xt(t){const e=new Map;for(const{entry:n,key:o}of t){if(!o)continue;const s=`${n.kind}:${o}`;e.set(s,(e.get(s)??0)+1)}for(const{entry:n,key:o}of t)o&&(e.get(`${n.kind}:${o}`)??0)>1&&(n.duplicateName=!0)}function Et(t,e){return wt(t)[e]}function w(t,e){return Et(t,e).map(n=>({key:n.key,payload:ee(m(t[n.key])??void 0,e)}))}const Y=Object.freeze({});function ee(t,e){return t?m(t[$[e]])??Y:Y}function Ae(t,e,n){return{name:t,__resolveType:Se[e],[$[e]]:n}}function Kn({records:t,selected:e,valueField:n,toRef:o}){const s=Array.isArray(e)?e:[],r=d=>typeof d=="string"?d:c(m(d)?.[n]),i=d=>typeof d=="string"?d:c(m(d)?.name),a=d=>{const f=r(d),h=f?t.find(({payload:E})=>c(E[n])===f):void 0;if(h)return h;const y=i(d);return y?t.find(({payload:E})=>c(E.name)===y):void 0},u=t.map(({key:d,payload:f})=>({value:d,label:c(f.name)||c(f[n])||d})),l=new Map,p=[];return s.forEach((d,f)=>{const h=a(d);if(h){p.includes(h.key)||p.push(h.key);return}const y=`unresolved:${f}`;l.set(y,d),p.push(y),u.push({value:y,label:i(d)||r(d)||"Unknown"})}),{options:u,selectedValues:p,refsForValues:d=>d.map(f=>{const h=t.find(y=>y.key===f);return h?o(h.payload):l.get(f)}).filter(f=>f!==void 0)}}function Un(t){return w(t,"authors").map(({payload:e})=>({...e,name:c(e.name),email:c(e.email)})).filter(e=>e.email)}function v(t){return Array.isArray(t)?t:[]}function C(t){if(typeof t=="string")return t;const e=m(t);return e?c(e.slug):""}function _e(t){if(typeof t=="string")return t;const e=m(t);return e?c(e.email):""}const kt={title:"sandbox.blogField.title",slug:"sandbox.blogField.slug",category:"sandbox.blogField.category",excerpt:"sandbox.blogField.excerpt",image:"sandbox.blogField.image",name:"sandbox.blogField.name"};function Gn(t,e){return t.map(n=>e(kt[n])).join(", ")}function F(t){const e=[];return c(t.title).trim()||e.push("title"),c(t.slug).trim()||e.push("slug"),v(t.categories).map(C).filter(Boolean).length===0&&e.push("category"),c(t.excerpt).trim()||e.push("excerpt"),c(t.image).trim()||e.push("image"),e}const zn=["draft","generating","awaiting_review","scheduled","published","archived"],Pt=8;function T(t){switch(c(t.status)){case"draft":case"idea":return"draft";case"generating":return"generating";case"awaiting_review":case"in_review":return"awaiting_review";case"scheduled":return"scheduled";case"published":return"published";case"archived":return"archived";case"":return"published";default:return"awaiting_review"}}function Hn(t){return T(t)==="archived"}function Tt(t,e){return e!=="published"&&e!=="scheduled"||T(t)===e?!1:F(t).length>0}function Ot(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1,Pt).toISOString()}function Ce(t,e,n){if(e!=="scheduled")return{...t,status:e,scheduledDatetime:""};const o=c(t.scheduledDatetime);return{...t,status:"scheduled",scheduledDatetime:Number.isNaN(new Date(o).getTime())?Ot(n):o}}function Bt(t,e=je(t)){return w(t,"posts").map(({key:n,payload:o})=>({key:n,duplicateTitle:e.has(n),title:c(o.title)||"Untitled post",slug:c(o.slug),date:c(o.date),scheduledDatetime:c(o.scheduledDatetime),categorySlugs:v(o.categories).map(C).filter(Boolean),authorEmails:v(o.authors).map(_e).filter(Boolean),missing:F(o),status:T(o),form:"live"}))}function Vn(){return P(12)}function Xn(t){const e=m(t.planning)??{},n=m(e.format);return{campaignKey:c(e.campaignKey)||void 0,format:n?{name:c(n.name),value:c(n.value)}:void 0,brief:c(e.brief)||void 0}}function we(t=!1){return t?{content:""}:{sections:[]}}function qn(t){return{title:t.title,slug:"",excerpt:"",date:t.now.toISOString().slice(0,10),image:"",alt:"",authors:[],categories:[],...we(t.legacyContent),status:"draft",planning:t.planning??{}}}function xe(t,e){return{name:t,[$.posts]:e}}function Wn(t,e){return me(t)?xe(t,e):Ae(t,"posts",e)}function Ee(t){const e=[];for(const[n,o]of Object.entries(t)){if(!me(n))continue;const s=m(o);s&&e.push({key:n,payload:ee(s,"posts")})}return e}function Nt(t){return[...Ee(t),...w(t,"posts")]}function Yn(t){const e=je(t);return[...Ee(t).map(({key:o,payload:s})=>({key:o,duplicateTitle:e.has(o),title:c(s.title)||"Untitled post",slug:c(s.slug),date:c(s.date),scheduledDatetime:c(s.scheduledDatetime),categorySlugs:v(s.categories).map(C).filter(Boolean),authorEmails:v(s.authors).map(_e).filter(Boolean),missing:F(s),status:T(s),form:"planning"})),...Bt(t,e)]}function Rt(t,e,n){const o=Ce(t.payload,e,n),s=I(t.key),r=e==="scheduled"||e==="published"?"live":"planning",i=r==="live"?Ke(s):Ue(s),a=r==="live"?Ae(i,"posts",o):xe(i,o);return{writes:{[i]:a},deletes:i===t.key?[]:[t.key]}}function Jn(t,e,n){const o=v(t.categories);if(!o.some(u=>C(u)===e))return t;let s=!1;const r=o.map(u=>{const l=C(u);if(l!==e&&l!==n.slug)return u;const p=m(u);return p&&c(p.slug)===n.slug&&c(p.name)===n.name?u:(s=!0,{name:n.name,slug:n.slug})});if(!s){const u=o.map(C).filter(Boolean);if(new Set(u).size===u.length)return t}const i=new Set,a=r.filter(u=>{const l=C(u);return l?i.has(l)?!1:(i.add(l),!0):!0});return{...t,categories:a}}function It(t){const e=[];return c(t.name).trim()||e.push("name"),c(t.slug).trim()||e.push("slug"),e}function Qn(t,e){const n=v(t.categories);return n.some(o=>C(o)===e)?{...t,categories:n.filter(o=>C(o)!==e)}:t}function Zn(t,e,n){return c(t.parentSlug)!==e?t:{...t,parentSlug:n}}function eo(t){const e=c(t.status),n=e==="idea"||e==="in_review"?{status:T(t)}:{};return{...t,...n,dateModified:new Date().toISOString()}}function P(t){const e=new Uint8Array(Math.ceil(t/2));return crypto.getRandomValues(e),Array.from(e,n=>n.toString(16).padStart(2,"0")).join("").slice(0,t)}function to(t,e){const n=`collections/blog/${e}/${P(12)}`;if(!Object.hasOwn(t,n))return n;throw new Error("Could not generate a unique blog block key")}function no(t,{legacyContent:e=!1}={}){switch(t){case"posts":return{title:"Untitled post",excerpt:"",slug:`untitled-${P(8)}`,date:new Date().toISOString().slice(0,10),image:"",alt:"",authors:[],categories:[],...we(e)};case"authors":return{name:"New author",type:"Person",email:"",jobTitle:"",company:"",url:"",avatar:""};case"categories":return{name:"New category",slug:`category-${P(8)}`,description:"",sections:[]};default:{const n=t;throw new Error(`Unhandled blog kind: ${String(n)}`)}}}const Lt={Paragraph:{title:"Paragraph",description:"Rich text content",iconName:"Pilcrow01"},Heading:{title:"Heading",description:"Section title (H1–H6)",iconName:"HeadingSquare"},Quote:{title:"Quote",description:"Pull quote",iconName:"MessageTextSquare02"},Code:{title:"Code",description:"Code block with syntax highlighting",iconName:"Code02"},List:{title:"List",description:"Bulleted or numbered list",iconName:"List"},BlockImage:{title:"Image",description:"Image with optional caption",iconName:"Image01"},Video:{title:"Video",description:"Embedded video",iconName:"PlayCircle"},Divider:{title:"Divider",description:"Horizontal divider",iconName:"Divider"},Cta:{title:"Call to action",description:"Button linking to a URL",iconName:"CursorClick01"},Callout:{title:"Callout",description:"Highlighted note, tip or warning",iconName:"Lightbulb02"},Stat:{title:"Stat",description:"Single key metric",iconName:"BarChartSquareUp"},StatGroup:{title:"Stat group",description:"Row of metrics",iconName:"BarChartSquare02"},CardGroup:{title:"Card group",description:"Grid of cards",iconName:"LayoutGrid01"},Checklist:{title:"Checklist",description:"List of check items",iconName:"CheckSquare"},Steps:{title:"Steps",description:"Step-by-step guide",iconName:"LayersThree01"},Comparison:{title:"Comparison",description:"Side-by-side comparison",iconName:"Columns03"},Table:{title:"Table",description:"Rows and columns of structured data",iconName:"Table"},ProductCard:{title:"Product card",description:"Single product",iconName:"Tag01"},ProductShelf:{title:"Product shelf",description:"Row of products",iconName:"ShoppingBag01"}},ae="Box";function ke(t){return t.startsWith("blog/")?"app":"site"}function jt(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||t.startsWith("/")}function B(...t){for(const e of t)if(e!==void 0)return e}function ce(t){if(t&&!(t.includes("/")||/\.(tsx?|jsx?)$/.test(t)))return t}function Dt(t){const e=t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[-_]+/g," ").trim();return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():t}function Mt(t,e){const n=ot(t,e),o=K(t),s=Lt[o],r=ke(t),i=ce(n.title),a=ce(n.description),u=(r==="site"?B(i,s?.title):B(s?.title,i))??Dt(o),l=r==="site"?B(a,s?.description):B(s?.description,a),p=r==="site"?n.icon:void 0,g=p&&jt(p)?p:void 0,d=g!==void 0?s?.iconName??ae:B(p,s?.iconName)??ae;return{resolveType:t,title:u,description:l,iconName:d,iconUrl:g,source:r}}function Pe(t,{hideDefaults:e=!1,customPaths:n=[]}={}){const o=new Set,s=[],r=t.manifest?.blocks??{};for(const[i,a]of Object.entries(r))for(const u of Object.keys(a))o.has(u)||!(i==="sections"&&Te(u,n)&&!nt(u,t))&&!Ft(u)||e&&ke(u)==="app"||(o.add(u),s.push(Mt(u,t)));return s.sort((i,a)=>i.title.localeCompare(a.title))}function K(t){return(t.split("/").pop()??t).replace(/\.(tsx?|jsx?)$/,"")}const $t=["blog/sections/blocks/","site/sections/Blog/Post/"];function Ft(t,e=[]){return $t.some(n=>t.startsWith(n))||Te(t,e)}function Te(t,e){if(e.length===0)return!1;const n=t.toLowerCase();return e.some(o=>n===o||n.startsWith(`${o}/`))}const Kt=/\/blog\.tsx?$/;function Ut(t){const e=[];for(const[n,o]of Object.entries(t)){if(n.includes("/")||!o||typeof o!="object"||Array.isArray(o))continue;const s=o;typeof s.__resolveType=="string"&&Kt.test(s.__resolveType)&&e.push(s)}return e}const Gt=Ge(ze());function oo(t){const e=new Set;for(const n of Ut(t)){const o=Gt.safeParse(n.customSectionPaths);if(o.success)for(const s of o.data){const r=s.trim().replace(/^\/+|\/+$/g,"").toLowerCase();r&&e.add(r)}}return[...e]}const zt="blog-manager-brand",Ht="blog-manager-context",Oe=["companyName","description","language","storeUrl","targetAudience","values","competitors","keywords","commercialPolicies","specialDates"],Be=["tone","dos","avoid","categories","vocabulary","voiceExamples"];function so(t){return m(t)??Y}function D(t,e){const n={};for(const o of e)o in t&&(n[o]=t[o]);return n}function ro(t,e,n){const o=D(t,Oe);if(m(n))return o;const s=m(e)??{};return{...D(s,Be),...o}}function Vt(t,e){const n=m(t)??{},o=m(e),s=D(n,Oe),r=o??D(n,Be);return{brand:s,context:r,merged:{...s,...r}}}function io(t){return Vt(t[zt],t[Ht])}function ao(t){return{companyName:c(t.companyName),description:c(t.description),language:c(t.language),storeUrl:et(c(t.storeUrl))??"",tone:c(t.tone),targetAudience:c(t.targetAudience),values:A(S(t.values)),competitors:A(S(t.competitors)),specialDates:A(S(t.specialDates)),dos:A(S(t.dos)),avoid:A(S(t.avoid)),keywords:R(N(t.keywords)),commercialPolicies:A(S(t.commercialPolicies)),vocabulary:A(S(t.vocabulary)),voiceExamples:Q(J(t.voiceExamples))}}function J(t){if(!Array.isArray(t))return[];const e=[];for(const n of t){if(typeof n=="string"){n.trim()&&e.push({text:n,sounds:!0});continue}const o=m(n);if(!o)continue;const s=c(o.text)||c(o.value);e.push({text:s,sounds:o.sounds!==!1})}return e}function Q(t){return t.filter(e=>e.text.trim())}function co(t,e,n){const o=[];for(const s of n.textFields){const r=c(e[s]).trim();r&&(n.mode==="empty"&&c(t[s]).trim()||(t[s]=r,o.push(s)))}for(const s of n.ruleFields){const r=A(S(e[s]));r.length!==0&&(n.mode==="empty"&&A(S(t[s])).length>0||(t[s]=r,o.push(s)))}for(const s of n.termFields??[]){const r=R(N(e[s]));r.length!==0&&(n.mode==="empty"&&R(N(t[s])).length>0||(t[s]=r,o.push(s)))}for(const s of n.exampleFields??[]){const r=Q(J(e[s]));r.length!==0&&(n.mode==="empty"&&Q(J(t[s])).length>0||(t[s]=r,o.push(s)))}return o}function N(t){if(!Array.isArray(t))return[];const e=[];for(const n of t){if(typeof n=="string"){e.push(n);continue}const o=m(n);o&&e.push(c(o.name)||c(o.value))}return e}function R(t){return t.filter(e=>e.trim())}function S(t){if(!Array.isArray(t))return[];const e=[];for(const n of t){if(typeof n=="string"){n.trim()&&e.push({name:n,value:""});continue}const o=m(n);o&&e.push({name:c(o.name),value:c(o.value)})}return e}function A(t){return t.filter(e=>e.name.trim()||e.value.trim())}const Xt=6e4,qt=4e3;function Wt(t){const e=[],n=new Set,o=(s,r)=>{if(typeof s=="string"){if(!s.includes(" ")||s.length<4||/^(https?:)?\/\//.test(s)||/^data:/.test(s))return;const i=`${r}: ${s.trim()}`;if(n.has(i))return;n.add(i),e.push(i);return}if(Array.isArray(s)){for(const i of s)o(i,r);return}if(s&&typeof s=="object")for(const[i,a]of Object.entries(s))i!=="__resolveType"&&o(a,i)};return o(t,"block"),e.join(`
3
- `)}function uo(t,e){const n=new Map,o=d=>{const f=n.get(d);if(f!==void 0)return f;const h=Wt(t[d]).slice(0,qt);return n.set(d,h),h},s=(d,f)=>o(f).length-o(d).length,r=At(t,e),i=r.reduce((d,f)=>d+f.content.length,0),a={home:[],institutional:[],commerce:[]};for(const d of e)a[ye(t,d)].push(d.key);const u=[...w(t,"posts").map(d=>d.key).sort(s),...w(t,"categories").map(d=>d.key),...a.home,...a.institutional.sort(s),...a.commerce.sort(s)],l=[],p=new Set;let g=Math.max(0,Xt-i);for(const d of u){if(l.length>=pt)break;if(p.has(d)||!t[d])continue;p.add(d);const f=o(d);if(f.length>g)break;l.push({key:d,content:f}),g-=f.length}return{blocks:l,seo:r}}const Ne="blog-manager/campaigns/";function lo(){return`${Ne}${crypto.randomUUID()}`}function L(t,e,n){return t.find(o=>o===e)??n}function ue(t){return c(t)||null}function Yt(t){const e=[];for(const n of v(t)){const o=m(n);o&&e.push({kind:L(dt,o.kind,"category"),id:c(o.id),name:c(o.name),url:c(o.url),description:c(o.description)})}return e}function Jt(t){const e=v(t.images).map(o=>c(o));return(e.length>0?e:[c(t.image)].filter(Boolean)).slice(0,ft)}function Qt(t){const e=[];for(const n of v(t)){const o=m(n);o&&e.push({id:c(o.id),name:c(o.name),url:c(o.url),images:Jt(o),category:c(o.category),description:c(o.description)})}return e}function fo(t,e){return{name:t,campaignName:e.name,seedKey:e.seedKey,status:e.status,period:{start:e.period.start??"",end:e.period.end??""},trigger:{type:e.trigger.type,note:e.trigger.note},intent:{objective:e.intent.objective,targets:e.intent.targets,products:e.intent.products,keywords:e.intent.keywords},guardrails:{avoidComplements:e.guardrails.avoidComplements,toneOverrides:e.guardrails.toneOverrides},createdAt:e.createdAt,updatedAt:e.updatedAt}}function po(t){const e=[];for(const[n,o]of Object.entries(t)){if(!n.startsWith(Ne))continue;const s=m(o);if(!s)continue;const r=m(s.period)??{},i=m(s.trigger)??{},a=m(s.intent)??{},u=m(s.guardrails)??{};e.push({key:n,name:c(s.campaignName),seedKey:c(s.seedKey),status:L(ct,s.status,"draft"),period:{start:ue(r.start),end:ue(r.end)},trigger:{type:L(ut,i.type,"seasonal"),note:c(i.note)},intent:{objective:L(lt,a.objective,"awareness"),targets:Yt(a.targets),products:Qt(a.products),keywords:R(N(a.keywords))},guardrails:{avoidComplements:S(u.avoidComplements),toneOverrides:c(u.toneOverrides)},createdAt:c(s.createdAt),updatedAt:c(s.updatedAt)})}return e.sort((n,o)=>o.createdAt.localeCompare(n.createdAt)||n.name.localeCompare(o.name))}function mo(t){const e=t.toISOString();return{name:"",seedKey:"",status:"draft",period:{start:null,end:null},trigger:{type:"seasonal",note:""},intent:{objective:"awareness",targets:[],products:[],keywords:[]},guardrails:{avoidComplements:[],toneOverrides:""},createdAt:e,updatedAt:e}}const Re="blog-manager/campaign-seeds/";function go(){return`${Re}${crypto.randomUUID()}`}function ho(t,e){return{name:t,seedName:e.name,keywords:e.keywords,prompt:e.prompt,createdAt:e.createdAt,updatedAt:e.updatedAt}}function yo(t){const e=[];for(const[n,o]of Object.entries(t)){if(!n.startsWith(Re))continue;const s=m(o);s&&e.push({key:n,name:c(s.seedName),keywords:R(N(s.keywords)),prompt:c(s.prompt),createdAt:c(s.createdAt),updatedAt:c(s.updatedAt)})}return e.sort((n,o)=>o.createdAt.localeCompare(n.createdAt)||n.name.localeCompare(o.name))}function bo(t){const e=t.toISOString();return{name:"",keywords:[],prompt:"",createdAt:e,updatedAt:e}}const So="blog-manager-formats",Zt=40;function vo(t){return w(t,"posts").slice(0,Zt).map(({key:e,payload:n})=>({key:e,title:c(n.title),sections:v(n.sections).map(o=>c(m(o)?.__resolveType)).filter(Boolean).map(K)}))}function en(t,e){return Pe(t,e).map(n=>({name:K(n.resolveType),resolveType:n.resolveType,title:n.title,description:n.description}))}function Ie(t,e={}){const n=new Set,o=/\[@[^\]]+\]\(([^)\s]+)\)/g;for(const r of t.matchAll(o))r[1]&&n.add(r[1]);const s=/(?:^|[\s([{>])@([A-Za-z][\w-]*)/g;for(const r of t.replace(o," ").matchAll(s)){const i=r[1];i&&n.add(e[i]??i)}return[...n]}function Ao(t,e,n={}){const o=new Set(e);return Ie(t,n).filter(s=>!o.has(s))}function _o(t,e){const n=/\[@[^\]]+\]\([^)\s]+\)/g,o=[];let s=0;for(const r of t.matchAll(n)){const i=r.index??0;o.push(le(t.slice(s,i),e),r[0]),s=i+r[0].length}return o.push(le(t.slice(s),e)),o.join("")}function le(t,e){return t.replace(/(^|[\s([{>])@([A-Za-z][\w-]*)/g,(n,o,s)=>{const r=e[s];return r?`${o}[@${s}](${r})`:n})}const tn=["Heading","Paragraph","BlockImage","List","Cta"];function Co(t){return tn.filter(e=>e in t)}function M(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/\s+/g," ").trim()}function wo(t,e,n,o){const s=M(o);return s?Le(t,e).some(r=>r.key!==n&&M(r.name)===s):!1}function Le(t,e){return e!=="posts"?w(t,e).map(({key:n,payload:o})=>({key:n,name:c(o.name)})):Nt(t).map(({key:n,payload:o})=>({key:n,name:c(o.title)}))}function je(t){const e=new Map;for(const{key:o,name:s}of Le(t,"posts")){const r=M(s);if(!r)continue;const i=e.get(r);i?i.push(o):e.set(r,[o])}const n=new Set;for(const o of e.values())if(o.length>1)for(const s of o)n.add(s);return n}const nn=["companyName","language","description","tone","targetAudience"];function xo(t){const e=m(t)??{},n=[];for(const o of nn)c(e[o]).trim()||n.push(o);return A(S(e.dos)).length===0&&n.push("dos"),A(S(e.avoid)).length===0&&n.push("avoid"),n}function on(t,e){const n=t.required;if(!Array.isArray(n))return;const o=new Set(e&&typeof e=="object"?Object.keys(e):[]),s=n.filter(r=>typeof r=="string"&&o.has(r));return s.length>0?s:void 0}const sn=6,rn=6e3;function an(t){const e=t.schema??{},n=e.$defs??e.definitions;return n&&typeof n=="object"?n:{}}function cn(t,e){for(const n of Object.values(e.manifest?.blocks??{})){const o=n[t];if(o)return o}}function j(t,e,n){if(Array.isArray(t))return t.map(r=>j(r,e,n));if(!t||typeof t!="object")return t;const o=t;if(typeof o.$ref=="string"){if(n>=sn)return{};const r=o.$ref.split("/").pop()??"",i=e[r];return i===void 0?{}:j(i,e,n+1)}const s={};for(const[r,i]of Object.entries(o))s[r]=j(i,e,n);return s}function un(t,e){const n=an(e),o=j(cn(t,e),n,0);if(!o||typeof o!="object")return{};const s=o,r=s.allOf,i=Array.isArray(r)&&r.length===1?r[0]:s;if(!i||typeof i!="object")return{};const{$schema:a,...u}=i,l=de(u);return JSON.stringify(l).length>rn?de(u,!0):l}function de(t,e=!1){const n={...t},o=n.properties;if(o&&typeof o=="object"){const s=Object.fromEntries(Object.entries(o).filter(([r])=>!r.startsWith("__")).map(([r,i])=>[r,e?De(i):i]));n.properties=s,n.required=on(n,s),n.required||delete n.required}return n}function De(t){if(!t||typeof t!="object")return t;const e=t,n={};for(const o of["type","description","format","options","enum"])o in e&&(n[o]=e[o]);return Array.isArray(e.anyOf)&&(n.anyOf=e.anyOf.map(De)),n}function ln(t){if(t==null)return null;if(Array.isArray(t))return"array";const e=typeof t;return e==="number"||e==="boolean"||e==="string"||e==="object"?e:null}function dn(t,e){const n=t.properties;if(!e||!n||typeof n!="object")return t;const o=n;let s=!1;const r={};for(const[i,a]of Object.entries(o)){const u=a&&typeof a=="object"?{...a}:a,l=u?.type,p=ln(e[i]);u&&typeof u=="object"&&p&&typeof l=="string"&&l!==p&&(delete u.type,delete u.enum,s=!0),r[i]=u}return s?{...t,properties:r}:t}const fn={Paragraph:{html:"<p>A dúvida entre 9000 ou 12000 BTUs é a mais comum na hora de escolher.</p>"},Heading:{text:"Antes de escolher: o resumo",level:"h2"},Quote:{quote:"Levei só a mala de bordo e não senti falta de nada.",attribution:"Ana, leitora"},List:{items:`<strong>Tecnologia Inverter:</strong> temperatura mais estável;
4
- <strong>Gaveta HortiNatura:</strong> frescor por duas vezes mais tempo;`,style:"unordered"},BlockImage:{url:"https://cdn.exemplo.com/2026/10/mochila.webp",alt:"Mochila escolar azul apoiada em uma cadeira de sala de aula",size:"full"},Video:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ",caption:"Como medir a capacidade da mala"},Divider:{},Cta:{text:"Ver toda a linha Escolar",href:"/escolar"},Callout:{title:"VOCÊ SABIA?",body:"Pediatras recomendam que a mochila carregada não passe de 10% do peso da criança.",variant:"tip"},Code:{code:"const total = itens.length;",language:"ts"},Stat:{value:"30%",label:"menos desperdício",description:"Comparado ao modelo anterior da mesma linha."},StatGroup:{stats:'[{"value":"30%","label":"menos desperdício"},{"value":"2x","label":"mais frescor"}]'},CardGroup:{cards:'[{"title":"Pré-escola","body":"Pouco material, mochila pequena."},{"title":"Fundamental","body":"Cadernos e livros pesam; considere rodinhas."}]'},Checklist:{title:"Antes de comprar, confira",items:'["Capacidade em litros","Alças acolchoadas","Compartimento para notebook"]'},Steps:{title:"Como medir",steps:'[{"title":"Meça a altura","description":"Da base ao topo, sem as alças."},{"title":"Some a profundidade"}]'},Comparison:{left:'{"title":"Com rodinhas","items":["Poupa a coluna","Mais pesada vazia"]}',right:'{"title":"De costas","items":["Mais leve","Exige ajuste das alças"]}'},Table:{headers:'["Modelo","Capacidade","Preço"]',rows:'[["Bordo","38L","R$ 399"],["Média","68L","R$ 599"]]'}},pn=600;function mn(t,e){for(const{payload:n}of w(e,"posts"))for(const o of v(n.sections)){const s=m(o);if(!s||s.__resolveType!==t)continue;const{__resolveType:r,...i}=s;if(Object.keys(i).length!==0&&!(JSON.stringify(i).length>pn))return i}}function Eo(t,e,n,o){const s=en(e,o),r=gn(e,o),i=new Set(Ie(t.value,r)),a=s.filter(g=>i.has(g.resolveType)),u=a.length>0?a:s,l=new Set,p=[];for(const g of u){if(l.has(g.name)||r[g.name]!==g.resolveType)continue;l.add(g.name);const d=mn(g.resolveType,n)??fn[g.name];p.push({name:g.name,title:g.title,description:g.description??"",schema:dn(un(g.resolveType,e),d),example:d})}return p}function gn(t,e){const n={};for(const o of Pe(t,e)){const s=K(o.resolveType);s in n||(n[s]=o.resolveType)}return n}function hn(t,e,n={}){const o=[];for(const s of t){const r=e[s.type];if(!r)continue;const i=Sn(s.props,s.productIds??[],n[s.type]);o.push({__resolveType:r,...i})}return o}const yn=["product","products"];function bn(t){const e=m(t);return e?yn.find(n=>n in e)??null:null}function Sn(t,e,n){const o=e.filter(Boolean),s=bn(n);if(o.length===0||!s)return t;const r=n[s];return{...t,[s]:St(r,o)}}const te=80;function vn(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,te)}function ko(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+/,"").slice(0,te)}function fe(t,e){const n=te-e.length-1;return`${t.slice(0,n).replace(/-+$/,"")}-${e}`}function Me(t,e,n){const o=vn(t)||`${n}-${P(6)}`,s=new Set(e);if(!s.has(o))return o;for(let r=2;r<100;r++){const i=fe(o,String(r));if(!s.has(i))return i}return fe(o,P(4))}function An(t,e){return Me(t,e,"post")}function Po(t,e){return Me(t,e,"category")}function To({draft:t,resolveTypes:e,productShapes:n,categories:o,authors:s,planning:r,takenSlugs:i,now:a}){const u=new Set(t.categorySlugs),l=new Set(t.authorEmails),p={title:t.title,slug:An(t.title,i),date:a.toISOString().slice(0,10),excerpt:t.excerpt,image:t.cover.url,alt:t.cover.alt,authors:s.filter(g=>l.has(g.email)),categories:o.filter(g=>u.has(g.slug)),seo:{title:t.seo.title,description:t.seo.description,image:t.cover.url},sections:hn(t.sections,e,n),planning:r??{}};return Ce(p,"awaiting_review",a)}const Oo={draft:"sandbox.postBoard.laneDraft",generating:"sandbox.postBoard.laneGenerating",awaiting_review:"sandbox.postBoard.laneAwaitingReview",scheduled:"sandbox.postBoard.laneScheduled",published:"sandbox.postBoard.lanePublished",archived:"sandbox.postBoard.laneArchived"};function Bo({orgSlug:t,virtualMcpId:e,branch:n,decofile:o,onMoved:s}){const r=He(),i=Qe({orgSlug:t,virtualMcpId:e,branch:n}),[a,u]=Ve.useState(new Set),l=f=>ee(o[f],"posts"),p=(f,h,y=l(f))=>h==="generating"?{kind:"not-a-target"}:a.has(I(f))?{kind:"in-flight"}:Tt(y,h)?{kind:"incomplete"}:null,g=f=>{switch(f.kind){case"incomplete":return r("sandbox.postBoard.moveBlocked");case"in-flight":return r("sandbox.postBoard.moveInFlight");case"not-a-target":return r("sandbox.postBoard.moveNotATarget");default:return String(f)}};return{apply:async(f,h,y,E)=>{const z=y??l(f);if(T(z)===h)return null;const H=p(f,h,z);if(H)return H.kind!=="in-flight"&&re.error(g(H)),null;const ne=I(f);u(k=>new Set(k).add(ne));const oe=Rt({key:f,payload:z},h,new Date),O=Object.keys(oe.writes)[0]??f;O!==f&&s?.(f,O);try{return await i.move(oe,{shown:E}),O}catch(k){return O!==f&&s?.(O,f),k instanceof Ze||re.error(k instanceof Error?k.message:r("sandbox.postBoard.moveFailed")),null}finally{u(k=>{const se=new Set(k);return se.delete(ne),se})}},refuse:p,reasonText:g,isMoving:f=>a.has(I(f))}}function _n(t){const e=x.c(15),{value:n,onChange:o,placeholder:s,className:r,onFocus:i,onBlur:a,onKeyDown:u,spellCheck:l,readOnly:p,inputRef:g}=t,d=l===void 0?!0:l;let f;e[0]!==o?(f=E=>o(E.target.value),e[0]=o,e[1]=f):f=e[1];let h;e[2]!==r?(h=Z("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",r),e[2]=r,e[3]=h):h=e[3];let y;return e[4]!==g||e[5]!==a||e[6]!==i||e[7]!==u||e[8]!==s||e[9]!==p||e[10]!==d||e[11]!==f||e[12]!==h||e[13]!==n?(y=b.jsx("textarea",{ref:g,value:n,onChange:f,onInput:Cn,onFocus:i,onBlur:a,onKeyDown:u,placeholder:s,spellCheck:d,readOnly:p,rows:1,className:h}),e[4]=g,e[5]=a,e[6]=i,e[7]=u,e[8]=s,e[9]=p,e[10]=d,e[11]=f,e[12]=h,e[13]=n,e[14]=y):y=e[14],y}function Cn(t){const e=t.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function No(t){return typeof t=="string"?t:""}function Ro(t){const e=x.c(11);let n,o;e[0]!==t?({className:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let s;e[3]!==n?(s=Z(n,"pr-9"),e[3]=n,e[4]=s):s=e[4];let r;e[5]!==o||e[6]!==s?(r=b.jsx(_n,{...o,className:s}),e[5]=o,e[6]=s,e[7]=r):r=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(st,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=i):i=e[8];let a;return e[9]!==r?(a=b.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-accent focus-within:bg-muted/50",children:[r,i]}),e[9]=r,e[10]=a):a=e[10],a}function Io(t){const e=x.c(5),{label:n,onClick:o,disabled:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx(rt,{size:13}),e[0]=r):r=e[0];let i;return e[1]!==s||e[2]!==n||e[3]!==o?(i=b.jsxs("button",{type:"button",onClick:o,disabled:s,className:"flex items-center gap-1.5 rounded-lg border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[r,n]}),e[1]=s,e[2]=n,e[3]=o,e[4]=i):i=e[4],i}function Lo(t){const e=x.c(4),{label:n,onClick:o}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(it,{className:"size-3.25"}),e[0]=s):s=e[0];let r;return e[1]!==n||e[2]!==o?(r=b.jsx(Xe,{variant:"ghost-destructive",size:"icon-xs",type:"button","aria-label":n,onClick:o,className:"opacity-0 transition-opacity group-hover/item:opacity-100",children:s}),e[1]=n,e[2]=o,e[3]=r):r=e[3],r}function jo(t){const e=x.c(2),{children:n}=t;let o;return e[0]!==n?(o=b.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md bg-popover p-0.5 shadow-soft",children:n}),e[0]=n,e[1]=o):o=e[1],o}function Do(t){if(Array.isArray(t))return t;if(typeof t!="string"||t.trim()==="")return[];try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}function Mo(t){const e=x.c(14),{options:n,value:o,emptyLabel:s,onChange:r}=t;let i;e[0]!==s||e[1]!==r||e[2]!==o?(i=s&&b.jsx(pe,{active:!o,onClick:()=>r(""),children:s}),e[0]=s,e[1]=r,e[2]=o,e[3]=i):i=e[3];let a;if(e[4]!==r||e[5]!==n||e[6]!==o){let l;e[8]!==r||e[9]!==o?(l=p=>b.jsx(pe,{active:p===o,onClick:()=>r(p),children:p},p),e[8]=r,e[9]=o,e[10]=l):l=e[10],a=n.filter(Boolean).map(l),e[4]=r,e[5]=n,e[6]=o,e[7]=a}else a=e[7];let u;return e[11]!==i||e[12]!==a?(u=b.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[i,a]}),e[11]=i,e[12]=a,e[13]=u):u=e[13],u}function pe(t){const e=x.c(7),{active:n,onClick:o,children:s}=t,r=n?"border-primary bg-primary text-primary-foreground":"bg-card hover:bg-accent";let i;e[0]!==r?(i=Z("cursor-pointer rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",r),e[0]=r,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==s||e[4]!==o||e[5]!==i?(a=b.jsx("button",{type:"button","aria-pressed":n,onClick:o,className:i,children:s}),e[2]=n,e[3]=s,e[4]=o,e[5]=i,e[6]=a):a=e[6],a}function $o(t,e=[]){return typeof t=="string"?t:JSON.stringify(t??e)}const $e=4;function U(t){const e=new Map;for(const n of t)n.slug&&!e.has(n.slug)&&e.set(n.slug,n);return e}function G(t,e){const n=t.parentSlug;if(!t.slug||!n||n===t.slug)return;const o=e.get(n);return o===t?void 0:o}function wn(t,e){const n=U(e),o=[],s=new Set;let r=n.get(t);for(;r&&!s.has(r.slug??"")&&(s.add(r.slug??""),o.push(r),!(o.length>=$e));)r=G(r,n);return o.reverse()}function Fe(t,e){const n=new Map;for(const o of t){const s=G(o,e);if(!s?.slug)continue;const r=n.get(s);r?r.push(o):n.set(s,[o])}for(const o of n.values())o.sort((s,r)=>s.label.localeCompare(r.label));return n}function Fo(t,e){const n=U(e),o=Fe(e,n),s=new Set([t]),r=n.get(t);let i=r?[r]:[];for(;i.length;){const a=[];for(const u of i)for(const l of o.get(u)??[])l.slug&&!s.has(l.slug)&&(s.add(l.slug),a.push(l));i=a}return s.delete(t),s}function Ko(t,e){if(!t)return[];const n=U(e),o=wn(t,e),s=o[0];return!s||G(s,n)?[t]:o.map(r=>r.slug??"")}function Uo(t){const e=U(t),n=Fe(t,e),o=new Set,s=[],r=(a,u)=>{if(!o.has(a)&&(o.add(a),s.push({entry:a,depth:u}),!(u+1>=$e)))for(const l of n.get(a)??[])r(l,u+1)},i=t.filter(a=>!G(a,e)).sort((a,u)=>a.label.localeCompare(u.label));for(const a of i)r(a,0);for(const a of t)r(a,0);return s}export{Hn as $,qn as A,Mn as B,Ht as C,Pt as D,Vn as E,So as F,ao as G,w as H,Un as I,Eo as J,xe as K,gn as L,Bt as M,To as N,jn as O,Mo as P,Oo as Q,zn as R,In as S,Yn as T,Xn as U,An as V,vn as W,Ko as X,Ut as Y,K as Z,wo as _,ee as a,F as a0,Ro as a1,T as a2,Kn as a3,Lo as a4,ko as a5,Io as a6,jo as a7,_n as a8,Do as a9,Oe as aA,Be as aB,Ao as aC,ro as aD,D as aE,co as aF,vo as aG,N as aH,J as aI,M as aJ,_o as aK,Co as aL,Fo as aM,$e as aN,It as aO,Jn as aP,Zn as aQ,Dn as aa,St as ab,Mt as ac,Ft as ad,oo as ae,$o as af,Pe as ag,Se as ah,$ as ai,yo as aj,bo as ak,go as al,Yt as am,Qt as an,ct as ao,ut as ap,lt as aq,dt as ar,ft as as,fo as at,lo as au,mo as av,ho as aw,so as ax,en as ay,uo as az,Ae as b,wn as c,Wn as d,no as e,eo as f,to as g,Po as h,Fn as i,No as j,Ln as k,Nt as l,Gn as m,zt as n,Uo as o,be as p,$n as q,Qn as r,wt as s,io as t,Bo as u,xo as v,po as w,A as x,S as y,Ce as z};
@@ -1 +0,0 @@
1
- import{c as H,r as q,j as r,b as ct,gi as kt,B as wt,gh as St,gV as vt,bY as Tt,bX as Et,bW as Pt,I as It,m as Bt,q as Nt,K as $t}from"./index-BVZH8mqe.js";import{H as Rt,C as Mt}from"./held-block-view-xCVzC3Lr.js";import{i as Dt}from"./AlertCircle-kHXzu73r.js";import{c as Ft}from"./Tool01-BEo5XKkS.js";import{aB as Kt,v as Ot,Y as _t}from"./site-editor-toast-vvVLBG6s.js";import{a as Ct}from"./view-header-d4Obd__T.js";import{AppEditor as Gt}from"./app-editor-DLwnlaqE.js";import{a as U,r as Lt,p as yt,e as ft,i as zt,f as At,g as jt,j as Yt}from"./use-cms-publish-actions-CWkUAckV.js";import{B as qt}from"./badge-wWozseh3.js";import{L as Ht}from"./label-Dc_tSb6f.js";import{S as Ut}from"./scroll-area-w9_Bvwmf.js";import{S as Vt}from"./switch-BX8b8tB6.js";import{b as Qt}from"./use-never-published-BK3TeRer.js";import{S as Wt}from"./save-status-eUv6TQpr.js";import{E as Xt}from"./empty-message-B3ykEghT.js";import"./utils-JVZxV40b.js";import"./agent-icon-BS6RPQ_A.js";import"./UserCheck01-B1rJ65So.js";import"./ArrowUp-CjAvmMLL.js";import"./ArrowLeft-DcKid1bz.js";import"./ArrowRight-ajc9j6D-.js";import"./BookOpen01-CdH9hkvz.js";import"./Globe04-DudUQgTy.js";import"./CheckCircle-DG9pUM8a.js";import"./TrendUp01-aviiZW6M.js";import"./ChevronDown-CWnE_Wmz.js";import"./ChevronSelectorVertical-ByCpNum0.js";import"./ChevronUp-C_rAiuf1.js";import"./UserSquare-D44lppb_.js";import"./LinkBroken01-CpDM6pG5.js";import"./CreditCard01-C6eDo3p0.js";import"./File02-R0RW2VCN.js";import"./MessageCircle01-44De_8cO.js";import"./SwitchHorizontal01-sPBj-OL8.js";import"./Eye-DFeDq2Hx.js";import"./Fingerprint04-D-EFj_6a.js";import"./Image01-Dfaw0Ysf.js";import"./Key01-9JQCF719.js";import"./LayoutLeft-B-cVGLzN.js";import"./Minus-09UkIbMe.js";import"./Monitor01-BPQw3JGv.js";import"./Sun-U7FHkItb.js";import"./Play-BRDYCYl7.js";import"./Plus-BJfG2DpW.js";import"./SearchMd-DioGBYbO.js";import"./ShoppingBag01-CdQhBv_H.js";import"./Trash01-l4iOtEBN.js";import"./Upload01-BhvyPM8u.js";import"./Users01-CxQycal6.js";import"./XClose-BwokcWjs.js";import"./Zap-DoXbwvKP.js";import"./blocks-tab-states-CDYT4Ypi.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-BspgCDOI.js";import"./session-runtime-CRv5j4jh.js";import"./chat-context-B6UvvRRf.js";import"./use-panel-navigate-DPGDB1T1.js";import"./thread-route-muzc431X.js";import"./use-project-scope-BIucgFKc.js";import"./repository-binding-BIfwJXBl.js";import"./use-mcp-client-7NPwItGN.js";import"./auth-C3yWOKhG.js";import"./use-view-draft-kind-BG3Ihm6n.js";import"./use-blog-view-D_--u8j_.js";import"./use-organization-settings-BoOQOwrg.js";import"./schema-C2ft4i4u.js";import"./task-board-DLNmAHmR.js";import"./thread-intent-CYNXEfHP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CWcYbOm5.js";import"./use-entitlements-B8D7pawV.js";import"./use-ai-providers-C30oeluP.js";import"./use-current-view-CHhVzMwk.js";import"./use-in-settings-qQ2sbeu5.js";import"./use-decopilot-events-BxfGa0_j.js";import"./popover-9q-VKuQx.js";import"./drawer-BMY0wk6r.js";import"./tooltip-CfeBMv8z.js";import"./index-BFjuxezw.js";import"./use-mobile-5e0sSd3X.js";import"./index-GMDFirHC.js";import"./checkbox-Cs2Li62P.js";import"./select-BJ7g3jt1.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-hp9a4BQn.js";import"./calendar-Sr3cNZGh.js";import"./textarea-BnYcD_gb.js";import"./usage-stats-Dzci2XGy.js";import"./utils-CVEq3hMx.js";import"./markdown-DvUyMKlV.js";import"./use-copy-BHPkBnZF.js";import"./gateway-client-8UpI_Rdq.js";import"./form-BZ2nSi_9.js";import"./editor-classes-BygI_Lvg.js";import"./task-key-BjUMQvHV.js";import"./sortable.esm-BzU9NXcP.js";import"./toggle-group-Cu3LE1oL.js";import"./active-indicator-CCMhAsc_.js";import"./section-array-field-CkDPdYBe.js";import"./command-DQwD4jPt.js";import"./index-B-PIhH8l.js";import"./named-rule-step-BnN-hlGb.js";import"./slider-46E0vJw8.js";import"./index--r4E_gW7.js";import"./tooltipContext-BMU8k-Rs.js";import"./CategoricalChart-DW_7VziR.js";import"./index-BYQu9U5P.js";import"./combobox-LL4GsRoi.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-CCo70YSN.js";import"./asset-utils-CdU3Ttfs.js";import"./useInfiniteQuery-BJoJv4VQ.js";import"./infiniteQueryObserver-f5kG4cIT.js";import"./hosted-reconcile-DS6ZmO5s.js";import"./use-sandbox-events-TxpzU2Iw.js";import"./use-blocks-v8-project-DUe21BCo.js";import"./sandbox-git-api-CvJPOlyv.js";import"./use-section-preview-base-BxFRvYUl.js";import"./content-tab-CMouaD3S.js";import"./delete-copy-BH5xrx9H.js";import"./category-tree-oBVfCVRR.js";import"./use-move-blocks-Cqt9Q8CZ.js";import"./index-B4YS6GMo.js";import"./use-delete-block-3AD9rKWc.js";import"./item-actions-CZD9JeRy.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-C4vGG4yC.js";import"./monaco-editor-C3D0iT4a.js";import"./editor-C6mSxTrt.js";import"./use-content-sync-BJ7PE3PC.js";import"./collapsible-D4n-ssmc.js";import"./sandbox-lifecycle-context-CO9pd80k.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./parse-sections-B5REiM5j.js";import"./mustache-CMgVEDUc.js";import"./search-input-D3b0Dc5Y.js";import"./collection-table-wrapper-B8osPBIm.js";import"./table-DNvSx4nT.js";import"./agent-capabilities-CJLhsDjp.js";import"./github-icon-C-V2EETw.js";import"./new-project-dialog-BeD2i_Hm.js";import"./use-navigate-to-agent-CtsEyeFb.js";import"./repository-picker-vN0XhyKR.js";import"./collection-search-CDDauqCr.js";import"./use-debounced-value-By7KggQt.js";import"./new-project-store-BfrY24D-.js";import"./pair-C4tumP78.js";import"./use-task-board-items-D4fdH47R.js";import"./config-zmlExYow.js";import"./task-route-B6gZ9LxC.js";import"./project-index-BOyydKXT.js";import"./shell-layout-BT6RZJ9X.js";import"./use-deployment-admin-COmgwPUq.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Dvph2j3S.js";import"./integration-icon-CcV5frEs.js";import"./project-icon-C8Sq9Uyo.js";import"./legacy-admin-welcome-dialog-DtYrilLw.js";import"./required-auth-layout-BXbkUsYd.js";import"./use-org-sso-BKXSOEb_.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CRu4PbUr.js";import"./types-D_vNw-3-.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-B1zTFenO.js";import"./use-connection-C-m8b2Fk.js";import"./use-mcp-prompts-C7QHdaI_.js";import"./use-thread-outputs-CrNLjxTt.js";import"./file-type-icon-DOJ02s9h.js";import"./tabs-ClkuSww4.js";function Jt(l){const t=H.c(12),[i,s]=q.useState(0);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n=>{n.has(U)&&s(Zt)},t[0]=e):e=t[0],Kt(l.orgSlug,l.virtualMcpId,e);let o;t[1]!==l?(o=r.jsx(te,{...l}),t[1]=l,t[2]=o):o=t[2];let d;t[3]!==i||t[4]!==o?(d=r.jsx(q.Fragment,{children:o},i),t[3]=i,t[4]=o,t[5]=d):d=t[5];let m;return t[6]!==l.branch||t[7]!==l.decofile||t[8]!==l.orgSlug||t[9]!==l.virtualMcpId||t[10]!==d?(m=r.jsx(Rt,{listing:l.decofile,orgSlug:l.orgSlug,virtualMcpId:l.virtualMcpId,branch:l.branch,blockKey:U,present:void 0,children:d}),t[6]=l.branch,t[7]=l.decofile,t[8]=l.orgSlug,t[9]=l.virtualMcpId,t[10]=d,t[11]=m):m=t[11],m}function Zt(l){return l+1}function te(l){const t=H.c(103),{orgSlug:i,virtualMcpId:s,branch:e,block:o,saveGuard:d,onOpenForm:m}=l,n=ct();let f;t[0]!==e||t[1]!==i||t[2]!==s?(f={orgSlug:i,virtualMcpId:s,branch:e},t[0]=e,t[1]=i,t[2]=s,t[3]=f):f=t[3];let a;t[4]!==d?(a={guard:d,holdsCopy:!0},t[4]=d,t[5]=a):a=t[5];const{save:h,isPending:p}=Qt(f,a);let x;t[6]===Symbol.for("react.memo_cache_sentinel")?(x={},t[6]=x):x=t[6];const[c,$]=q.useState(x);let S;t[7]!==o||t[8]!==c?(S=F=>{const Y=ft(o,F);if(Y.kind==="locked"||!Object.hasOwn(c,F))return Y;const L=c[F];return L===void 0?ft({},F):{kind:"value",value:L,isDefault:!1}},t[7]=o,t[8]=c,t[9]=S):S=t[9];const g=S,[C]=q.useState(o);let E;t[10]!==o||t[11]!==c||t[12]!==C||t[13]!==h?(E=(F,Y)=>{const L=ft(C,F),O=L.kind==="value"&&L.isDefault&&Y===L.value?void 0:Y,z={...c,[F]:O};zt(o,F,O)&&delete z[F],$(z),h(U,Object.keys(z).length>0?At(o,z):ee)},t[10]=o,t[11]=c,t[12]=C,t[13]=h,t[14]=E):E=t[14];const u=E;let v;t[15]!==g?(v=F=>{const Y=g(F);return Y.kind==="value"&&Y.value===!1},t[15]=g,t[16]=v):v=t[16];const w=v;let k,y,j,b,R,P,B,N,M,I,_,T,D;if(t[17]!==u||t[18]!==w||t[19]!==p||t[20]!==m||t[21]!==g||t[22]!==n){const F=w("telemetry.enabled"),Y=w("analytics.enabled");let L;t[36]!==m||t[37]!==g||t[38]!==n?(L=(K,A,G)=>{const dt=G===void 0?!1:G,pt=g(K),ht={label:n(`sandbox.cmsSettingsPage.${K}.label`),help:n(`sandbox.cmsSettingsPage.${K}.help`),disabled:dt};return pt.kind==="locked"?r.jsx(kt,{title:r.jsxs("span",{className:"flex items-center gap-2",children:[ht.label,r.jsx(qt,{variant:"muted",size:"sm",children:n("sandbox.cmsSettingsPage.variants")})]}),description:n(pt.reason==="variants"?"sandbox.cmsSettingsPage.locked.variants":"sandbox.cmsSettingsPage.locked.other"),action:r.jsx(wt,{type:"button",variant:"outline",size:"sm",onClick:m,children:n("sandbox.cmsSettingsPage.openForm")})},K):A(pt,ht)},t[36]=m,t[37]=g,t[38]=n,t[39]=L):L=t[39];const O=L;N="flex h-full flex-col",M="cms-settings-page";let z;t[40]!==n?(z=n("sandbox.cmsSettingsPage.intro"),t[40]=n,t[41]=z):z=t[41];let J;t[42]!==p?(J=r.jsx(Wt,{isPending:p,isError:!1}),t[42]=p,t[43]=J):J=t[43],t[44]!==z||t[45]!==J?(I=r.jsx(Ct,{intro:z,actions:J}),t[44]=z,t[45]=J,t[46]=I):I=t[46],j=Ut,B="min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",R="mx-auto flex max-w-2xl flex-col gap-8 px-4 py-6";let Z;t[47]!==n?(Z=n("sandbox.cmsSettingsPage.telemetry.title"),t[47]=n,t[48]=Z):Z=t[48];let tt;t[49]!==n?(tt=n("sandbox.cmsSettingsPage.telemetry.description"),t[49]=n,t[50]=tt):tt=t[50];let et;t[51]!==u?(et=(K,A)=>r.jsx(ut,{...A,checked:K.value===!0,onChange:G=>u("telemetry.enabled",G)},"telemetry.enabled"),t[51]=u,t[52]=et):et=t[52];let it;t[53]!==O||t[54]!==et?(it=O("telemetry.enabled",et),t[53]=O,t[54]=et,t[55]=it):it=t[55];let nt;t[56]!==u?(nt=(K,A)=>r.jsx(ut,{...A,checked:K.value===!0,onChange:G=>u("telemetry.metrics",G)},"telemetry.metrics"),t[56]=u,t[57]=nt):nt=t[57];const mt=O("telemetry.metrics",nt,F);let st;t[58]!==u||t[59]!==O||t[60]!==F?(st=ie.map(K=>O(K,(A,G)=>r.jsx(se,{...G,rate:A.value,onChange:dt=>u(K,dt)},K),F)),t[58]=u,t[59]=O,t[60]=F,t[61]=st):st=t[61];let lt;t[62]!==it||t[63]!==mt||t[64]!==st?(lt=r.jsxs(St,{children:[it,mt,st]}),t[62]=it,t[63]=mt,t[64]=st,t[65]=lt):lt=t[65],t[66]!==Z||t[67]!==tt||t[68]!==lt?(P=r.jsx(vt,{title:Z,description:tt,children:lt}),t[66]=Z,t[67]=tt,t[68]=lt,t[69]=P):P=t[69],y=vt,t[70]!==n?(D=n("sandbox.cmsSettingsPage.analytics.title"),t[70]=n,t[71]=D):D=t[71],t[72]!==n?(b=n("sandbox.cmsSettingsPage.analytics.description"),t[72]=n,t[73]=b):b=t[73],k=St;let ot;t[74]!==u?(ot=(K,A)=>r.jsx(ut,{...A,checked:K.value===!0,onChange:G=>u("analytics.enabled",G)},"analytics.enabled"),t[74]=u,t[75]=ot):ot=t[75],t[76]!==O||t[77]!==ot?(_=O("analytics.enabled",ot),t[76]=O,t[77]=ot,t[78]=_):_=t[78];let at;t[79]!==u?(at=(K,A)=>r.jsx(le,{...A,value:K.value,onChange:G=>u("analytics.collector",G===""?void 0:G)},"analytics.collector"),t[79]=u,t[80]=at):at=t[80],T=O("analytics.collector",at,Y),t[17]=u,t[18]=w,t[19]=p,t[20]=m,t[21]=g,t[22]=n,t[23]=k,t[24]=y,t[25]=j,t[26]=b,t[27]=R,t[28]=P,t[29]=B,t[30]=N,t[31]=M,t[32]=I,t[33]=_,t[34]=T,t[35]=D}else k=t[23],y=t[24],j=t[25],b=t[26],R=t[27],P=t[28],B=t[29],N=t[30],M=t[31],I=t[32],_=t[33],T=t[34],D=t[35];let V;t[81]!==k||t[82]!==_||t[83]!==T?(V=r.jsxs(k,{children:[_,T]}),t[81]=k,t[82]=_,t[83]=T,t[84]=V):V=t[84];let Q;t[85]!==y||t[86]!==b||t[87]!==V||t[88]!==D?(Q=r.jsx(y,{title:D,description:b,children:V}),t[85]=y,t[86]=b,t[87]=V,t[88]=D,t[89]=Q):Q=t[89];let W;t[90]!==R||t[91]!==P||t[92]!==Q?(W=r.jsxs("div",{className:R,children:[P,Q]}),t[90]=R,t[91]=P,t[92]=Q,t[93]=W):W=t[93];let X;t[94]!==j||t[95]!==B||t[96]!==W?(X=r.jsx(j,{className:B,children:W}),t[94]=j,t[95]=B,t[96]=W,t[97]=X):X=t[97];let rt;return t[98]!==N||t[99]!==M||t[100]!==I||t[101]!==X?(rt=r.jsxs("div",{className:N,"data-testid":M,children:[I,X]}),t[98]=N,t[99]=M,t[100]=I,t[101]=X,t[102]=rt):rt=t[102],rt}function ee(){return null}const ie=["telemetry.errorSampleRate","telemetry.traceSampleRate"];function gt(){const l=H.c(4),t=q.useId(),i=`${t}-help`,s=`${t}-error`;let e;return l[0]!==t||l[1]!==i||l[2]!==s?(e={control:t,help:i,error:s},l[0]=t,l[1]=i,l[2]=s,l[3]=e):e=l[3],e}function xt(l,t){return t?`${l.help} ${l.error}`:l.help}function bt(l){const t=H.c(17),{ids:i,label:s,help:e,disabled:o,error:d,control:m}=l,n=o&&"opacity-60";let f;t[0]!==n?(f=Bt(n),t[0]=n,t[1]=f):f=t[1];let a;t[2]!==i.control||t[3]!==s?(a=r.jsx(Ht,{htmlFor:i.control,children:s}),t[2]=i.control,t[3]=s,t[4]=a):a=t[4];let h;t[5]!==e||t[6]!==i.help?(h=r.jsx("span",{id:i.help,children:e}),t[5]=e,t[6]=i.help,t[7]=h):h=t[7];let p;t[8]!==d||t[9]!==i.error?(p=d&&r.jsx("p",{id:i.error,role:"alert",className:"mt-1 text-xs text-destructive",children:d}),t[8]=d,t[9]=i.error,t[10]=p):p=t[10];let x;return t[11]!==m||t[12]!==f||t[13]!==a||t[14]!==h||t[15]!==p?(x=r.jsx(kt,{className:f,title:a,description:h,action:m,children:p}),t[11]=m,t[12]=f,t[13]=a,t[14]=h,t[15]=p,t[16]=x):x=t[16],x}function ut(l){const t=H.c(16);let i,s,e;t[0]!==l?({checked:i,onChange:s,...e}=l,t[0]=l,t[1]=i,t[2]=s,t[3]=e):(i=t[1],s=t[2],e=t[3]);const o=gt(),d=o.control;let m;t[4]!==o?(m=xt(o,null),t[4]=o,t[5]=m):m=t[5];let n;t[6]!==i||t[7]!==o.control||t[8]!==s||t[9]!==e.disabled||t[10]!==m?(n=r.jsx(Vt,{id:d,"aria-describedby":m,checked:i,disabled:e.disabled,onCheckedChange:s}),t[6]=i,t[7]=o.control,t[8]=s,t[9]=e.disabled,t[10]=m,t[11]=n):n=t[11];let f;return t[12]!==o||t[13]!==e||t[14]!==n?(f=r.jsx(bt,{...e,ids:o,control:n}),t[12]=o,t[13]=e,t[14]=n,t[15]=f):f=t[15],f}function se(l){const t=H.c(49);let i,s,e;t[0]!==l?({rate:s,onChange:i,...e}=l,t[0]=l,t[1]=i,t[2]=s,t[3]=e):(i=t[1],s=t[2],e=t[3]);const o=ct(),d=gt(),[m,n]=q.useState(null);let f;t[4]!==s||t[5]!==m?(f=m??String(Lt(s)),t[4]=s,t[5]=m,t[6]=f):f=t[6];const a=f;let h;t[7]!==m?(h=m!==null&&m.trim()!==""&&yt(m)===null,t[7]=m,t[8]=h):h=t[8];const p=h;let x,c,$,S,g,C,E,u,v,w;if(t[9]!==d||t[10]!==p||t[11]!==e||t[12]!==o){const N=p?o("sandbox.cmsSettingsPage.invalidRate"):null;$=bt,u=e,v=d,w=N,c=Tt,C="sm",E="w-28",x=Et,S=d.control,g=xt(d,N),t[9]=d,t[10]=p,t[11]=e,t[12]=o,t[13]=x,t[14]=c,t[15]=$,t[16]=S,t[17]=g,t[18]=C,t[19]=E,t[20]=u,t[21]=v,t[22]=w}else x=t[13],c=t[14],$=t[15],S=t[16],g=t[17],C=t[18],E=t[19],u=t[20],v=t[21],w=t[22];const k=p||void 0;let y;t[23]!==i||t[24]!==s?(y=N=>{const M=N.target.value;n(M);const I=yt(M);I!==null&&I!==s&&i(I)},t[23]=i,t[24]=s,t[25]=y):y=t[25];let j;t[26]!==p?(j=()=>{p||n(null)},t[26]=p,t[27]=j):j=t[27];let b;t[28]!==x||t[29]!==e.disabled||t[30]!==a||t[31]!==k||t[32]!==y||t[33]!==j||t[34]!==S||t[35]!==g?(b=r.jsx(x,{id:S,"aria-describedby":g,type:"number",inputMode:"decimal",min:0,max:100,step:.1,value:a,disabled:e.disabled,"aria-invalid":k,className:"text-right tabular-nums",onChange:y,onBlur:j}),t[28]=x,t[29]=e.disabled,t[30]=a,t[31]=k,t[32]=y,t[33]=j,t[34]=S,t[35]=g,t[36]=b):b=t[36];let R;t[37]===Symbol.for("react.memo_cache_sentinel")?(R=r.jsx(Pt,{className:"pr-2 text-muted-foreground",children:"%"}),t[37]=R):R=t[37];let P;t[38]!==c||t[39]!==b||t[40]!==C||t[41]!==E?(P=r.jsxs(c,{size:C,className:E,children:[b,R]}),t[38]=c,t[39]=b,t[40]=C,t[41]=E,t[42]=P):P=t[42];let B;return t[43]!==$||t[44]!==P||t[45]!==u||t[46]!==v||t[47]!==w?(B=r.jsx($,{...u,ids:v,error:w,control:P}),t[43]=$,t[44]=P,t[45]=u,t[46]=v,t[47]=w,t[48]=B):B=t[48],B}function le(l){const t=H.c(37);let i,s,e;t[0]!==l?({value:e,onChange:i,...s}=l,t[0]=l,t[1]=i,t[2]=s,t[3]=e):(i=t[1],s=t[2],e=t[3]);const o=ct(),d=gt(),[m,n]=q.useState(null),f=m??e;let a;t[4]!==f?(a=jt(f),t[4]=f,t[5]=a):a=t[5];const h=!a;let p,x,c,$,S,g,C;if(t[6]!==d||t[7]!==h||t[8]!==s||t[9]!==o){const j=h?o("sandbox.cmsSettingsPage.invalidUrl"):null;x=bt,S=s,g=d,C=j,p=It,c=d.control,$=xt(d,j),t[6]=d,t[7]=h,t[8]=s,t[9]=o,t[10]=p,t[11]=x,t[12]=c,t[13]=$,t[14]=S,t[15]=g,t[16]=C}else p=t[10],x=t[11],c=t[12],$=t[13],S=t[14],g=t[15],C=t[16];const E=s.disabled,u=h||void 0;let v;t[17]!==o?(v=o("sandbox.cmsSettingsPage.analytics.collector.placeholder"),t[17]=o,t[18]=v):v=t[18];let w;t[19]!==i||t[20]!==e?(w=j=>{const b=j.target.value;n(b),jt(b)&&b.trim()!==e&&i(b.trim())},t[19]=i,t[20]=e,t[21]=w):w=t[21];let k;t[22]!==p||t[23]!==s.disabled||t[24]!==f||t[25]!==w||t[26]!==c||t[27]!==$||t[28]!==u||t[29]!==v?(k=r.jsx(p,{id:c,"aria-describedby":$,type:"url",size:"sm",className:"w-64",value:f,disabled:E,"aria-invalid":u,placeholder:v,onChange:w}),t[22]=p,t[23]=s.disabled,t[24]=f,t[25]=w,t[26]=c,t[27]=$,t[28]=u,t[29]=v,t[30]=k):k=t[30];let y;return t[31]!==x||t[32]!==k||t[33]!==S||t[34]!==g||t[35]!==C?(y=r.jsx(x,{...S,ids:g,error:C,control:k}),t[31]=x,t[32]=k,t[33]=S,t[34]=g,t[35]=C,t[36]=y):y=t[36],y}function bl(l){const t=H.c(6);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=[U],t[0]=i):i=t[0];let s;t[1]!==l?(s=r.jsx(oe,{...l}),t[1]=l,t[2]=s):s=t[2];let e;return t[3]!==l||t[4]!==s?(e=r.jsx(Mt,{listing:l.decofile,scope:l,names:i,children:s}),t[3]=l,t[4]=s,t[5]=e):e=t[5],e}function oe(l){const t=H.c(57),{orgSlug:i,virtualMcpId:s,branch:e,decofile:o,meta:d,persistDefaults:m,standalone:n}=l,f=n===void 0?!1:n,a=ct(),h=Nt();let p;t[0]!==e||t[1]!==i||t[2]!==s?(p={orgSlug:i,virtualMcpId:s,branch:e},t[0]=e,t[1]=i,t[2]=s,t[3]=p):p=t[3];const x=Ot(p),c=Yt(o),[$,S]=q.useState(!1),g=q.useRef(c.kind==="absent"?"create":"off");let C;t[4]!==e||t[5]!==x||t[6]!==i||t[7]!==h||t[8]!==s?(C=()=>({ifMatch:T=>T===U&&g.current!=="off"?{[U]:null}:void 0,onApplied:()=>{g.current="off"},onRejected:()=>{if(g.current!=="create")return;g.current="reread";const T={mutationKey:_t(i,s,e)},D=()=>{if(h.isMutating(T)>0){setTimeout(D,100);return}h.invalidateQueries({queryKey:$t.decofile(x)}).finally(()=>{g.current="off"})};setTimeout(D,0)}}),t[4]=e,t[5]=x,t[6]=i,t[7]=h,t[8]=s,t[9]=C):C=t[9];const[E]=q.useState(C);if(c.kind==="conflict"){let T;return t[10]!==a?(T=a("sandbox.cmsSettingsBlock.conflictTitle"),t[10]=a,t[11]=T):T=t[11],r.jsx(Xt,{icon:Dt,title:T,description:a("sandbox.cmsSettingsBlock.conflictDescription",{type:c.resolveType||"?"})})}if(f&&!$){let T;t[12]!==S?(T=()=>S(!0),t[12]=S,t[13]=T):T=t[13];let D;return t[14]!==e||t[15]!==o||t[16]!==E||t[17]!==i||t[18]!==T||t[19]!==c.block||t[20]!==s?(D=r.jsx(Jt,{orgSlug:i,virtualMcpId:s,branch:e,block:c.block,decofile:o,saveGuard:E,onOpenForm:T}),t[14]=e,t[15]=o,t[16]=E,t[17]=i,t[18]=T,t[19]=c.block,t[20]=s,t[21]=D):D=t[21],D}const u=c.block;let v;t[22]!==a?(v=a("sandbox.collectionsSidebar.settings"),t[22]=a,t[23]=v):v=t[23];const w=c.kind!=="absent"&&m!==!1;let k;t[24]!==a?(k=a("sandbox.cmsSettingsBlock.description"),t[24]=a,t[25]=k):k=t[25];let y;t[26]!==k?(y=r.jsx("p",{children:k}),t[26]=k,t[27]=y):y=t[27];let j;t[28]!==a||t[29]!==c.kind?(j=c.kind==="absent"&&r.jsxs("p",{"data-testid":"cms-settings-defaults-notice",className:"flex items-start gap-1.5 rounded-lg border bg-muted/40 px-3 py-2",children:[r.jsx(Ft,{size:14,className:"mt-px shrink-0"}),r.jsx("span",{children:a("sandbox.cmsSettingsBlock.defaultsNotice")})]}),t[28]=a,t[29]=c.kind,t[30]=j):j=t[30];let b;t[31]!==y||t[32]!==j?(b=r.jsxs("div",{className:"mb-6 flex flex-col gap-2 text-xs text-muted-foreground",children:[y,j]}),t[31]=y,t[32]=j,t[33]=b):b=t[33];let R;t[34]!==e||t[35]!==o||t[36]!==E||t[37]!==d||t[38]!==i||t[39]!==b||t[40]!==v||t[41]!==w||t[42]!==c.block||t[43]!==s?(R=r.jsx(Gt,{orgSlug:i,virtualMcpId:s,branch:e,blockKey:U,block:u,decofile:o,meta:d,title:v,saveGuard:E,persistDefaults:w,notice:b},`settings:${U}`),t[34]=e,t[35]=o,t[36]=E,t[37]=d,t[38]=i,t[39]=b,t[40]=v,t[41]=w,t[42]=c.block,t[43]=s,t[44]=R):R=t[44];const P=R;if(!f)return P;let B;t[45]!==a?(B=a("siteEditor.contentTypes.back",{type:a("siteEditor.contentTypes.settings")}),t[45]=a,t[46]=B):B=t[46];let N;t[47]!==S?(N=()=>S(!1),t[47]=S,t[48]=N):N=t[48];let M;t[49]!==B||t[50]!==N?(M=r.jsx(Ct,{back:{label:B,onClick:N}}),t[49]=B,t[50]=N,t[51]=M):M=t[51];let I;t[52]!==P?(I=r.jsx("div",{className:"min-h-0 flex-1",children:P}),t[52]=P,t[53]=I):I=t[53];let _;return t[54]!==M||t[55]!==I?(_=r.jsxs("div",{className:"flex h-full flex-col",children:[M,I]}),t[54]=M,t[55]=I,t[56]=_):_=t[56],_}export{bl as CmsSettingsEditor};
@@ -1,15 +0,0 @@
1
- import{r as q,c as k,b as J,j as n,m as f,B as M,a7 as ce,b6 as ae,bo as Z,bC as U,bB as de}from"./index-BVZH8mqe.js";import{_ as fe}from"./agent-icon-BS6RPQ_A.js";import{i as ue}from"./Play-BRDYCYl7.js";import{S as X}from"./sandbox-start-errors-BK_aDCyt.js";import{G as me}from"./pair-C4tumP78.js";import{C as pe}from"./section-array-field-CkDPdYBe.js";import"./site-editor-toast-vvVLBG6s.js";import{a0 as xe,o as he,a1 as $,Y as ye,y as F,a2 as ge}from"./blocks-tab-states-CDYT4Ypi.js";const Q=q.createContext(!1),nt=Q.Provider;function it(){return q.useContext(Q)}const ve={provision:0,cloning:1,install:2,dev:3};function _e(t){return ve[t.step]}const W=48,ee=28,te=3,be=(()=>{const t=[];let e=0;for(let s=0;s<W;s++)s===ee?t.push(null):(t.push(e/(W-1)*te),e++);return t})();function je(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function Se(t,e,s){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?pe[e.kind].long:s[t.step]}const N="bg-foreground/[0.05]",j="bg-foreground/[0.09]",Ne=Array.from({length:35},()=>Math.random()*1.8),Te=Array.from({length:35},()=>Math.random()<.4);function ke(t){const e=k.c(31),{progress:s,claimPhase:o}=t,i=J();let r;e[0]!==s?(r=_e(s),e[0]=s,e[1]=r):r=e[1];const l=r;let c;e[2]!==o||e[3]!==s||e[4]!==i?(c=Se(s,o,je(i)),e[2]=o,e[3]=s,e[4]=i,e[5]=c):c=e[5];const a=c;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(me,{}),e[6]=p):p=e[6];const m=`${s.step}-${a}`;let u;e[7]!==a||e[8]!==m?(u=n.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[p,n.jsxs("span",{className:"animate-in fade-in text-sm font-medium text-foreground/85 duration-500",children:[a,"…"]},m)]}),e[7]=a,e[8]=m,e[9]=u):u=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Ee,{}),e[10]=v):v=e[10];let d;e[11]!==l?(d=n.jsx(L,{phase:0,current:l,children:v}),e[11]=l,e[12]=d):d=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Re,{}),e[13]=y):y=e[13];let g;e[14]!==l?(g=n.jsx(L,{phase:1,current:l,children:y}),e[14]=l,e[15]=g):g=e[15];let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(we,{}),e[16]=x):x=e[16];let h;e[17]!==l?(h=n.jsx(L,{phase:2,current:l,children:x}),e[17]=l,e[18]=h):h=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Pe,{}),e[19]=S):S=e[19];let _;e[20]!==l?(_=n.jsx(L,{phase:3,current:l,children:S}),e[20]=l,e[21]=_):_=e[21];let b;e[22]!==h||e[23]!==_||e[24]!==d||e[25]!==g?(b=n.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[d,g,h,_]}),e[22]=h,e[23]=_,e[24]=d,e[25]=g,e[26]=b):b=e[26];let C;e[27]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx("style",{children:`
2
- @keyframes vm-pulse-soft {
3
- 0%, 100% { opacity: 0.25; }
4
- 50% { opacity: 1; }
5
- }
6
- @keyframes vm-breathe {
7
- 0%, 100% { opacity: 0.5; }
8
- 50% { opacity: 1; }
9
- }
10
- @keyframes vm-rack-scan {
11
- 0%, 100% { opacity: 0; }
12
- 8% { opacity: 1; }
13
- 22% { opacity: 0; }
14
- }
15
- `}),e[27]=C):C=e[27];let T;return e[28]!==b||e[29]!==u?(T=n.jsxs("div",{className:"relative flex w-full flex-col items-center justify-center gap-12 select-none [clip-path:inset(-24px_0_-200px_0)]",children:[u,b,C]}),e[28]=b,e[29]=u,e[30]=T):T=e[30],T}function L(t){const e=k.c(10),{phase:s,current:o,children:i}=t,r=s-o,l=r<0,c=r===0,a=l?90:r*-22,p=l?.94:1-Math.max(r,0)*.04,m=l?0:c?1:r===1?.8:.55,u=l?10:30-r,v=!c;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=f("absolute inset-0 overflow-hidden rounded-xl border border-foreground/10 bg-background shadow-[0_20px_60px_-20px_rgb(0_0_0_/_0.35)] transition-all ease-[cubic-bezier(0.22,1,0.36,1)]"),e[0]=d):d=e[0];const y=`translateY(${a}px) scale(${p})`,g=c?"auto":"none";let x;e[1]!==m||e[2]!==y||e[3]!==g||e[4]!==u?(x={transform:y,opacity:m,zIndex:u,transitionDuration:"1000ms",pointerEvents:g},e[1]=m,e[2]=y,e[3]=g,e[4]=u,e[5]=x):x=e[5];let h;return e[6]!==i||e[7]!==v||e[8]!==x?(h=n.jsx("div",{"aria-hidden":v,className:d,style:x,children:i}),e[6]=i,e[7]=v,e[8]=x,e[9]=h):h=e[9],h}function B(t){const e=k.c(7),{showUrl:s}=t,o=s===void 0?!1:s;let i,r,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:f("size-2.5 rounded-full",j)}),r=n.jsx("div",{className:f("size-2.5 rounded-full",j)}),l=n.jsx("div",{className:f("size-2.5 rounded-full",j)}),e[0]=i,e[1]=r,e[2]=l):(i=e[0],r=e[1],l=e[2]);let c;e[3]!==o?(c=o&&n.jsx("div",{className:f("ml-3 h-3.5 max-w-[220px] flex-1 rounded-sm",N)}),e[3]=o,e[4]=c):c=e[4];let a;return e[5]!==c?(a=n.jsxs("div",{className:"flex h-7 shrink-0 items-center gap-1.5 px-3",children:[i,r,l,c]}),e[5]=c,e[6]=a):a=e[6],a}function Ee(){const t=k.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsx("div",{className:"flex flex-1 px-8 py-5",children:n.jsx("div",{className:"grid h-full w-full grid-cols-8 grid-rows-6 gap-2",children:be.map(Ce)})})]}),t[1]=s):s=t[1],s}function Ce(t,e){if(e===ee)return n.jsx("div",{className:"rounded-md bg-chart-1/[0.55]",style:{animation:"vm-breathe 2.4s ease-in-out infinite"}},e);const s=t;return n.jsx("div",{className:f("relative rounded-md",j),children:n.jsx("div",{className:"absolute inset-0 rounded-md bg-chart-1/40 opacity-0",style:{animation:`vm-rack-scan ${te}s ease-in-out infinite`,animationDelay:`${s}s`}})},e)}function Re(){const t=k.c(5);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:f("w-[18%] rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out infinite"}}),t[1]=s):s=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"h-[42%] shrink-0 rounded-md bg-chart-3/[0.12]",style:{animation:"vm-breathe 3s ease-in-out 0.4s infinite"}}),t[2]=o):o=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:"col-span-3 rounded-md bg-chart-3/[0.12]",style:{animation:"vm-breathe 3s ease-in-out 0.8s infinite"}}),t[3]=i):i=t[3];let r;return t[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsxs("div",{className:"flex min-h-0 flex-1 gap-1.5 p-3",children:[s,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[o,n.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-5 gap-1.5",children:[i,n.jsxs("div",{className:"col-span-2 grid grid-rows-2 gap-1.5",children:[n.jsx("div",{className:f("rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out 1.2s infinite"}}),n.jsx("div",{className:f("rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out 1.6s infinite"}})]})]})]})]})]}),t[4]=r):r=t[4],r}function we(){const t=k.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsx("div",{className:"relative flex flex-1 items-center justify-center px-8 py-5",children:n.jsx("div",{className:"grid w-full gap-2",style:{gridTemplateColumns:"repeat(7, minmax(0, 1fr))"},children:Ne.map(De)})})]}),t[1]=s):s=t[1],s}function De(t,e){return n.jsx("div",{className:f("aspect-square rounded-md",Te[e]?"bg-chart-2/70":j),style:{animation:`vm-pulse-soft 2.2s ease-in-out ${t}s infinite`}},e)}function Pe(){const t=k.c(11);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{showUrl:!0}),t[0]=e):e=t[0];let s,o,i,r,l;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:"mb-2 h-5 rounded-md bg-chart-1/[0.10]"}),o=n.jsx("div",{className:f("h-1.5 w-[70%] rounded-sm",j)}),i=n.jsx("div",{className:f("h-1.5 w-[55%] rounded-sm",j)}),r=n.jsx("div",{className:f("h-1.5 w-[80%] rounded-sm",j)}),l=n.jsx("div",{className:f("h-1.5 w-[50%] rounded-sm",j)}),t[1]=s,t[2]=o,t[3]=i,t[4]=r,t[5]=l):(s=t[1],o=t[2],i=t[3],r=t[4],l=t[5]);let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsxs("div",{className:"flex w-[18%] shrink-0 flex-col gap-1.5 bg-chart-1/[0.05] p-2.5",children:[s,o,i,r,l,n.jsx("div",{className:"mt-auto",children:n.jsx("div",{className:f("h-4 rounded-md",j)})})]}),t[6]=c):c=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"relative h-[42%] shrink-0 overflow-hidden bg-chart-1/[0.10]",children:n.jsxs("div",{className:"absolute right-3 bottom-3 left-3 space-y-1.5",children:[n.jsx("div",{className:"h-3 w-[35%] rounded-sm bg-chart-1/[0.15]"}),n.jsx("div",{className:f("h-1.5 w-[55%] rounded-sm",N)})]})}),t[7]=a):a=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsxs("div",{className:"flex shrink-0 gap-1.5",children:[n.jsx("div",{className:"h-4 w-12 rounded-full bg-chart-1/[0.12]"}),n.jsx("div",{className:f("h-4 w-10 rounded-full",N)}),n.jsx("div",{className:f("h-4 w-14 rounded-full",N)})]}),t[8]=p):p=t[8];let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs("div",{className:f("col-span-3 flex flex-col justify-end gap-1 rounded-md p-2",N),children:[n.jsx("div",{className:f("h-1.5 w-[50%] rounded-sm",j)}),n.jsx("div",{className:f("h-1 w-[75%] rounded-sm",j)})]}),t[9]=m):m=t[9];let u;return t[10]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsxs("div",{className:"flex min-h-0 flex-1",children:[c,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[a,n.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2.5 p-3",children:[p,n.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-5 gap-2",children:[m,n.jsxs("div",{className:"col-span-2 grid grid-rows-2 gap-2",children:[n.jsx("div",{className:f("rounded-md",N)}),n.jsx("div",{className:f("rounded-md",N)})]})]})]})]})]})]}),t[10]=u):u=t[10],u}function ot(t){const e=k.c(52),s=J();if(t.kind==="starting"){let d;return e[0]!==t.claimPhase||e[1]!==t.progress?(d=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsx(ke,{progress:t.progress,claimPhase:t.claimPhase})}),e[0]=t.claimPhase,e[1]=t.progress,e[2]=d):d=e[2],d}if(t.kind==="errored"){const d=t.error.code===X.githubNotAuthenticated,y=t.error.code===X.githubConnectionMissing;let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ce,{className:"size-12 text-destructive"}),e[3]=g):g=e[3];let x;e[4]!==s?(x=s("sandbox.stateCard.erroredHeadline"),e[4]=s,e[5]=x):x=e[5];let h;e[6]!==x?(h=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[6]=x,e[7]=h):h=e[7];let S;e[8]!==y||e[9]!==d||e[10]!==t.error.message||e[11]!==s?(S=y?s("sandbox.stateCard.githubConnectionMissingMessage"):d?s("sandbox.stateCard.githubNotAuthenticatedMessage"):t.error.message,e[8]=y,e[9]=d,e[10]=t.error.message,e[11]=s,e[12]=S):S=e[12];let _;e[13]!==S?(_=n.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:S}),e[13]=S,e[14]=_):_=e[14];let b;e[15]!==y||e[16]!==d||e[17]!==t.connectionsHref||e[18]!==s?(b=(d||y)&&t.connectionsHref&&n.jsx(M,{asChild:!0,children:n.jsx("a",{href:t.connectionsHref,children:s(y?"sandbox.stateCard.linkRepoAgain":"sandbox.stateCard.reconnectGithub")})}),e[15]=y,e[16]=d,e[17]=t.connectionsHref,e[18]=s,e[19]=b):b=e[19];const C=t.onRetry;let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(ae,{className:"size-4"}),e[20]=T):T=e[20];let R;e[21]!==s?(R=s("sandbox.stateCard.retry"),e[21]=s,e[22]=R):R=e[22];let w;e[23]!==t.onRetry||e[24]!==R?(w=n.jsxs(M,{variant:"outline",onClick:C,children:[T," ",R]}),e[23]=t.onRetry,e[24]=R,e[25]=w):w=e[25];let D;e[26]!==b||e[27]!==w?(D=n.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[b,w]}),e[26]=b,e[27]=w,e[28]=D):D=e[28];let A;return e[29]!==D||e[30]!==h||e[31]!==_?(A=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-4 text-center",children:[g,h,_,D]})}),e[29]=D,e[30]=h,e[31]=_,e[32]=A):A=e[32],A}let o;e[33]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(fe,{className:"size-12 text-muted-foreground"}),e[33]=o):o=e[33];let i;e[34]!==s?(i=s("sandbox.stateCard.suspendedHeadline"),e[34]=s,e[35]=i):i=e[35];let r;e[36]!==i?(r=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[36]=i,e[37]=r):r=e[37];let l;e[38]!==s?(l=s("sandbox.stateCard.resumeToContinue"),e[38]=s,e[39]=l):l=e[39];let c;e[40]!==l?(c=n.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:l}),e[40]=l,e[41]=c):c=e[41];const a=t.onResume;let p;e[42]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(ue,{className:"size-4"}),e[42]=p):p=e[42];let m;e[43]!==s?(m=s("sandbox.stateCard.resume"),e[43]=s,e[44]=m):m=e[44];let u;e[45]!==t.onResume||e[46]!==m?(u=n.jsxs(M,{onClick:a,className:"mt-2",children:[p," ",m]}),e[45]=t.onResume,e[46]=m,e[47]=u):u=e[47];let v;return e[48]!==r||e[49]!==c||e[50]!==u?(v=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-4 text-center",children:[o,r,c,u]})}),e[48]=r,e[49]=c,e[50]=u,e[51]=v):v=e[51],v}function lt(t){switch(t.lifecycle.phase){case"cloning":case"checking-out":return{step:"cloning",status:"doing"};case"clone-failed":return{step:"cloning",status:"failed"};case"installing":return{step:"install",status:"doing"};case"install-failed":return{step:"install",status:"failed"};case"starting":return{step:"dev",status:"doing"};case"running":return{step:"dev",status:"done"};case"start-failed":return{step:"dev",status:"failed"};case"crashed":return{step:"dev",status:"failed"};case"idle":return t.claimPhase&&t.claimPhase.kind!=="ready"&&t.claimPhase.kind!=="failed"?{step:"provision",status:"doing"}:{step:"cloning",status:"doing"}}}const Oe="website/sections/Rendering/Lazy.tsx";function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Y(t){if(!I(t))return!1;const e=t.__resolveType;return typeof e=="string"&&Z(e)}function Ae(t){return t!=null}function z(t){if(t==null)return t;if(Y(t)){const e=t.section;return e==null?null:I(e)?e:{}}return I(t)?t:void 0}function Le(t,e){return t===null?null:Y(e)?{...e,section:t}:t}function rt(t){return{__resolveType:t}}function ct(t,e){if(!Ae(e))return null;if(t){const s=z(e)??{};return{__resolveType:Oe,section:s}}return Y(e)?z(e)??null:I(e)?e:null}const E="website/sections/Seo/SeoV2.tsx",Ie=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function P(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function $e(t,e){return typeof t.__resolveType=="string"&&O(t.__resolveType,e)?!0:Ie.some(s=>s in t)}function at(t,e){return Object.entries(t).filter(([s,o])=>{if(!P(o))return!1;const i=o.__resolveType;return he(s,o)||typeof i=="string"&&O(i,e)}).map(([s])=>s)}function Be(t,e){for(const[s,o]of Object.entries(t)){if(!P(o)||U(o))continue;const i=o,r=i.__resolveType;if(typeof r=="string"&&xe(r,e))continue;const l=i.seo;if(P(l)){const c=l;if($e(c,e))return{blockKey:s,kind:"nested",seoData:c,blockData:i,seoResolveType:e?Ye(e,i,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:E}}}for(const[s,o]of Object.entries(t)){if(!P(o)||U(o))continue;const i=o;if(typeof i.__resolveType=="string"&&O(i.__resolveType,e))return{blockKey:s,kind:"block",seoData:i,blockData:i,seoResolveType:i.__resolveType}}return null}function Ke(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function dt(t,e,s){if(e.kind==="site"){const a=Be(t,s);return a?{blockKey:a.blockKey,seoData:a.seoData,seoResolveType:a.seoResolveType,siteKind:a.kind,seoTypeOptions:s?oe(s,a.blockData):void 0,build:p=>Ke(a,p)}:null}const o=t[e.pageKey];if(!P(o))return null;const i=o,r=i.seo,l=z(r),c=l&&P(l)?l:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:s?Fe(s,c):typeof c?.__resolveType=="string"?c.__resolveType:E,seoTypeOptions:s?K(s):void 0,build:a=>({...i,seo:a===null?null:Le(a,r)})}}const Me="General";function H(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function O(t,e){return H(t)?!0:!e||!$(e)?!1:K(e).some(s=>s.resolveType===t)}function ft(t,e,s){const o=new Set;let i=t;for(let r=0;r<32;r++){if(o.has(i))return null;if(o.add(i),!Object.hasOwn(e,i))return F(i,s)?i:null;const l=e[i];if(!l||typeof l!="object"||Array.isArray(l))return null;const c=l.__resolveType;if(typeof c!="string"||!c)return null;i=c}return null}function se(t,e){return t===E?Me:e}function ne(t,e){const s=ge(t),o=$(e),i=new Set,r=[];for(const l of s){if(o){if(Z(l.resolveType))continue}else if(!H(l.resolveType))continue;de(l.resolveType,e)||i.has(l.resolveType)||(i.add(l.resolveType),r.push({resolveType:l.resolveType,title:se(l.resolveType,l.title),description:l.description}))}return r}function K(t){const e=ye(t),s=F(e,t),o=ne(s?.properties?.seo,t);return o.length>0?o:$(t)?[]:Ve(t)}function Ve(t){const e=t.manifest?.blocks??{},s=[];for(const[o,i]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(i)){if(!H(r))continue;const l=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;s.push({resolveType:r,title:se(r,l)})}return s}function ie(t){const e=K(t),s=e.find(i=>i.resolveType===E);if(s)return s.resolveType;const o=$(t)?"":E;return e[0]?.resolveType??o}function oe(t,e){const s=e.__resolveType;if(typeof s=="string"){const o=F(s,t),i=ne(o?.properties?.seo,t);if(i.length>0)return i}return K(t)}function ze(t,e){const s=oe(t,e),o=s.find(i=>i.resolveType===E);return o?o.resolveType:s[0]?.resolveType??ie(t)}function Fe(t,e){const s=e?.__resolveType;return typeof s=="string"&&s.length>0?s:ie(t)}function Ye(t,e,s){const o=s.__resolveType;return typeof o=="string"&&O(o,t)?o:ze(t,e)}const G=["type","title","description","canonical","noIndexing","favicon","image","themeColor"],le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],re=["jsonLD","title","description","noIndexing","configJsonLD"];function He(t){return t===E||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":null}function Ge(t){const e=t.toLowerCase();return/pdp|product/.test(e)?"pdp":/plp|listing|categor|search/.test(e)?"plp":null}function V(t,e){const s=Object.keys(t.properties??{}).filter(o=>o!=="__resolveType");return s.length>0&&s.every(o=>e.includes(o))}function Ue(t,e,s=!1){const o=He(t);if(o)return o;if(!s||t.includes("/"))return"full";const i=Ge(t);return e?i==="pdp"&&V(e,le)?"pdp":i==="plp"&&V(e,re)?"plp":V(e,G)?"general":"full":i??"full"}function Xe(t){switch(t){case"general":return G;case"pdp":return le;case"plp":return re;default:return null}}function ut(t,e,s=!1){const o=Xe(Ue(e,t,s));if(!o||!t.properties)return t;const i={};for(const r of o){const l=t.properties[r];l&&(i[r]=l)}return{...t,properties:i}}function mt(){return G.filter(t=>t!=="type")}function pt(t){const e=k.c(10),{icon:s,title:o,description:i}=t;let r;e[0]!==s?(r=s&&n.jsx(s,{size:24,className:"text-muted-foreground/60"}),e[0]=s,e[1]=r):r=e[1];let l;e[2]!==o?(l=n.jsx("div",{children:o}),e[2]=o,e[3]=l):l=e[3];let c;e[4]!==i?(c=i&&n.jsx("div",{className:"text-xs text-muted-foreground/80 max-w-sm",children:i}),e[4]=i,e[5]=c):c=e[5];let a;return e[6]!==r||e[7]!==l||e[8]!==c?(a=n.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-2 p-6 text-center text-sm text-muted-foreground",children:[r,l,c]}),e[6]=r,e[7]=l,e[8]=c,e[9]=a):a=e[9],a}export{nt as B,E as D,pt as E,G,ot as S,ie as a,it as b,ut as c,lt as d,mt as e,Be as f,Ue as g,Y as h,Ae as i,rt as j,ft as k,dt as r,at as s,ct as t,z as u,Le as w};