decocms 4.542.2 → 4.542.3

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 (399) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-xwm7xTvz.js → ActiveShapeUtils-CLmYip7o.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-BjT7_GFq.js → AlertCircle-DzE-j8Md.js} +1 -1
  3. package/dist/client/assets/{AreaChart-jT3sTbub.js → AreaChart-jCvlBX4z.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-Par1IdOs.js → ArrowLeft-B4Fp6tOY.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-At9MqVhB.js → ArrowUp-ChN8aOEm.js} +1 -1
  6. package/dist/client/assets/{BarChart-BI0I1ki0.js → BarChart-kNTSHvb9.js} +1 -1
  7. package/dist/client/assets/{Building02-BV_I3UuJ.js → Building02-PnRUM-VE.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-CHwcVvKV.js → CartesianChart-BUoXXZfH.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-CF0oZQqp.js → CategoricalChart-Dhwf2GdF.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-D6xmTIXf.js → CheckCircle-BH2UP5Pl.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-CeHSyaSD.js → ChevronSelectorVertical-CK7wz4hr.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-CNyARDGk.js → ChevronUp-C2ixq11S.js} +1 -1
  13. package/dist/client/assets/{Copy01-DisW4JMo.js → Copy01-S_Wzfgys.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-QvSfBZzn.js → CreditCard01-C9Xxz1Z-.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-wJ46YU2V.js → DotsVertical-DgY7T0mx.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-DteLj0IZ.js → ErrorBarContext-C0OzijwZ.js} +1 -1
  17. package/dist/client/assets/{Globe04-DK5qhUMj.js → Globe04-BPKiswDo.js} +1 -1
  18. package/dist/client/assets/{Image01-CO8HhoHi.js → Image01-CiWjI_N8.js} +1 -1
  19. package/dist/client/assets/{Key01-BDwjIsdK.js → Key01-Cl5CaquW.js} +1 -1
  20. package/dist/client/assets/{Link01-BHgTruNE.js → Link01-DRf4-o03.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-CdMsJVgm.js → LinkBroken01-C4Xn1L4t.js} +1 -1
  22. package/dist/client/assets/{Minus-CJDvXjFo.js → Minus-DrIgoneT.js} +1 -1
  23. package/dist/client/assets/{Monitor01-B3thg2Rr.js → Monitor01-yYk26cfF.js} +1 -1
  24. package/dist/client/assets/{Play-BhU5Ns8x.js → Play-DiF1YnWe.js} +1 -1
  25. package/dist/client/assets/{Plus-BaWg3Fda.js → Plus-ajSOCMl5.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-NAOdXR_M.js → ReferenceLine-ode7xeNO.js} +1 -1
  27. package/dist/client/assets/{SearchMd-B541ufOQ.js → SearchMd-DTaWr-NV.js} +1 -1
  28. package/dist/client/assets/{Sector-DWc-NOYF.js → Sector-CBAM4uEa.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-d7aE6vty.js → ShoppingBag01-w9yIZ7Vl.js} +1 -1
  30. package/dist/client/assets/{Sun-wY_Z9VGm.js → Sun-Bb0mDann.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-7qdaOYVu.js → SwitchHorizontal01-Cz2viH34.js} +1 -1
  32. package/dist/client/assets/{Tool01-DwTqd_Nj.js → Tool01-DvXBMYEr.js} +1 -1
  33. package/dist/client/assets/{Trash01-B5_r6iLm.js → Trash01-DVB9fxWu.js} +1 -1
  34. package/dist/client/assets/{Upload01-BP49pNql.js → Upload01-Bd0Vey4L.js} +1 -1
  35. package/dist/client/assets/{UserSquare-D1neGXtF.js → UserSquare-WesfpXiJ.js} +1 -1
  36. package/dist/client/assets/{Users01-CrLtxwQA.js → Users01-BLXU9p3z.js} +1 -1
  37. package/dist/client/assets/{XClose-DsiXpG7_.js → XClose-BM8Qxy5w.js} +1 -1
  38. package/dist/client/assets/{Zap-BB-vOERw.js → Zap-sqFFzvOf.js} +1 -1
  39. package/dist/client/assets/{ZoomOut-ZB7MeGmK.js → ZoomOut-BMEXUhR4.js} +1 -1
  40. package/dist/client/assets/{access-gate-BMPZzaLe.js → access-gate-By7w7bSi.js} +1 -1
  41. package/dist/client/assets/{add-connection-dialog-DkTbkwZe.js → add-connection-dialog-BluSK0lx.js} +1 -1
  42. package/dist/client/assets/{agent-analytics-DFuVpyFS.js → agent-analytics-CNw_SyNM.js} +1 -1
  43. package/dist/client/assets/agent-app-DbclzXDU.js +1 -0
  44. package/dist/client/assets/{agent-assets-mt6-RxoQ.js → agent-assets-Bd43kbAT.js} +1 -1
  45. package/dist/client/assets/{agent-automation-DPJINZ67.js → agent-automation-Bu2NjJrU.js} +1 -1
  46. package/dist/client/assets/{agent-automations-Cl5cbuK-.js → agent-automations-Ccv6ZRUF.js} +1 -1
  47. package/dist/client/assets/{agent-calendar-CMljpTSo.js → agent-calendar-DkkiCWmd.js} +1 -1
  48. package/dist/client/assets/{agent-connect-sources-Ck7orXzL.js → agent-connect-sources-BDarxFOe.js} +1 -1
  49. package/dist/client/assets/agent-deck-BZE0--70.js +1 -0
  50. package/dist/client/assets/{agent-e2e-BLatnPC9.js → agent-e2e-COLwEyW7.js} +1 -1
  51. package/dist/client/assets/agent-experiments-C-CUI5Wi.js +1 -0
  52. package/dist/client/assets/{agent-file-cyUqJo5U.js → agent-file-BIvvkyQ-.js} +1 -1
  53. package/dist/client/assets/{agent-hosting-DFO1UQwH.js → agent-hosting-BJMw5oRI.js} +1 -1
  54. package/dist/client/assets/{agent-icon-D-0GvNzG.js → agent-icon-DCY-DFu1.js} +1 -1
  55. package/dist/client/assets/agent-library-BjJ181jP.js +1 -0
  56. package/dist/client/assets/agent-library-file-BPiYRhWM.js +1 -0
  57. package/dist/client/assets/agent-monitor-DpRQhcjH.js +1 -0
  58. package/dist/client/assets/{agent-overview-CckXDLIM.js → agent-overview-BmB1tKmP.js} +1 -1
  59. package/dist/client/assets/{agent-releases-Bfo75_fu.js → agent-releases-Bjc7gSc7.js} +1 -1
  60. package/dist/client/assets/agent-settings-kT3-qFt3.js +1 -0
  61. package/dist/client/assets/{agent-site-editor-DEMYd53f.js → agent-site-editor-QzKa3yR0.js} +1 -1
  62. package/dist/client/assets/agent-site-editor-code-o6lK4DIS.js +2 -0
  63. package/dist/client/assets/agent-site-editor-content-B6rkCzsg.js +1 -0
  64. package/dist/client/assets/agent-site-editor-preview-Dg_7ffKK.js +1 -0
  65. package/dist/client/assets/agent-view-D464xMnL.js +1 -0
  66. package/dist/client/assets/{agent-view-guard-BVgIccGF.js → agent-view-guard-C8vnuAW5.js} +1 -1
  67. package/dist/client/assets/{agents-list-Bhp-wRRW.js → agents-list-DcTl6DAN.js} +1 -1
  68. package/dist/client/assets/{ai-providers-BZ346tRe.js → ai-providers-BxP8NxtG.js} +1 -1
  69. package/dist/client/assets/{alert-l5j64Qp_.js → alert-BClfxRVl.js} +1 -1
  70. package/dist/client/assets/{analytics-sections-C7Wvx5is.js → analytics-sections-C56nTKhq.js} +1 -1
  71. package/dist/client/assets/{api-keys-D1eJSOy-.js → api-keys-CgZOX36O.js} +1 -1
  72. package/dist/client/assets/api-keys-q55WNLi3.js +1 -0
  73. package/dist/client/assets/{app-editor-BdTBcszA.js → app-editor-D7grhyWY.js} +1 -1
  74. package/dist/client/assets/{asset-utils-Cwse7TzX.js → asset-utils-Dv9DtY1w.js} +1 -1
  75. package/dist/client/assets/{auth-BZPkjT4-.js → auth-D4mihjB5.js} +1 -1
  76. package/dist/client/assets/{auth-catchall-CorB5tw4.js → auth-catchall-CIjMWWQ4.js} +1 -1
  77. package/dist/client/assets/{auth-entry-iQvrZCC2.js → auth-entry-CF2sy2X9.js} +1 -1
  78. package/dist/client/assets/{auth-split-layout-BlKheOJZ.js → auth-split-layout-CKmq0cQL.js} +1 -1
  79. package/dist/client/assets/{authenticate-and-persist-oauth-DercrMMu.js → authenticate-and-persist-oauth-DcyREoDj.js} +1 -1
  80. package/dist/client/assets/{automation-list-row-g_Vn0fLf.js → automation-list-row-B7u3k1TE.js} +1 -1
  81. package/dist/client/assets/{automation-runs-B-xMEZBF.js → automation-runs-DdW0Koem.js} +1 -1
  82. package/dist/client/assets/{automations-CXl5dDVa.js → automations-Cb_-4OPE.js} +1 -1
  83. package/dist/client/assets/{autosend-Ci815qQG.js → autosend-BW2sWcH_.js} +1 -1
  84. package/dist/client/assets/{badge-iQ-KRbWv.js → badge-BYQ7wlS5.js} +1 -1
  85. package/dist/client/assets/{block-document-DLTjHmMQ.js → block-document-CQPNpE_7.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-Cr4NHNVG.js → blocks-preview-workspace-context-CCrolu3H.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-Cs7bIWnm.js → blocks-tab-states-CTYUutZb.js} +1 -1
  88. package/dist/client/assets/{blog-schema-UfoKLAgi.js → blog-schema-E9phFUsA.js} +1 -1
  89. package/dist/client/assets/{buckets-0IbVUkQA.js → buckets-B13TOr3J.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-RrLnbLYj.js → build-improve-prompt-doc-CbYp0dXg.js} +1 -1
  91. package/dist/client/assets/{calendar-CjBfTyns.js → calendar-Dfa2lTn-.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-BciHzJb0.js → capability-load-error-B32fS7dM.js} +1 -1
  93. package/dist/client/assets/{category-editor-2zcLZItm.js → category-editor-C_N4v5N0.js} +1 -1
  94. package/dist/client/assets/{cdn-tab-OEVXJsgd.js → cdn-tab-C4yfZ9eS.js} +1 -1
  95. package/dist/client/assets/{chart-D-nB-Kvb.js → chart-4GCitUJ7.js} +1 -1
  96. package/dist/client/assets/{chat-context-0CZgd-Gr.js → chat-context-BChErz2e.js} +1 -1
  97. package/dist/client/assets/{chat-draft-DM7nVCQ-.js → chat-draft-DoIY677y.js} +1 -1
  98. package/dist/client/assets/{checkbox-DVUVqeGQ.js → checkbox-r74ldNXe.js} +1 -1
  99. package/dist/client/assets/{choose-editor-D4MptH6S.js → choose-editor-CwjcozrS.js} +1 -1
  100. package/dist/client/assets/{cli-auth-success-CcaewW77.js → cli-auth-success-CtgjBw7s.js} +1 -1
  101. package/dist/client/assets/{client-icons-CYPommua.js → client-icons-DSbdG4pu.js} +1 -1
  102. package/dist/client/assets/{cms-settings-editor-CnyCQ0VY.js → cms-settings-editor-MAcJ4mRh.js} +1 -1
  103. package/dist/client/assets/{collapsible-VIsV7VNH.js → collapsible-Cq7zc7_4.js} +1 -1
  104. package/dist/client/assets/{collection-detail-DWJ8AxJZ.js → collection-detail-BpXqX3oB.js} +1 -1
  105. package/dist/client/assets/{collection-display-button-DM4HtPM4.js → collection-display-button-Co1Pga0X.js} +1 -1
  106. package/dist/client/assets/{collection-search-Dg61rOFc.js → collection-search-CpetsY8q.js} +1 -1
  107. package/dist/client/assets/{collection-table-wrapper-Tom29l37.js → collection-table-wrapper-B4u7lstM.js} +1 -1
  108. package/dist/client/assets/{collection-tabs-Dgf5t1P2.js → collection-tabs-pmxZ8mkx.js} +1 -1
  109. package/dist/client/assets/{combobox-BxlWJcmj.js → combobox-BUgAhpEW.js} +1 -1
  110. package/dist/client/assets/{command-DELHBruW.js → command-DOj2A4A7.js} +1 -1
  111. package/dist/client/assets/{companion-mcps-section-DplrUpp5.js → companion-mcps-section-CWO5AEfe.js} +1 -1
  112. package/dist/client/assets/{config-C7l46kfh.js → config-Dk-dmIvU.js} +1 -1
  113. package/dist/client/assets/{connect-DMjCcT3A.js → connect-B1oQic42.js} +1 -1
  114. package/dist/client/assets/{connect-layout-BPsq801z.js → connect-layout-CXFw7UnM.js} +1 -1
  115. package/dist/client/assets/{connect-source-dialog-C2D2IgRk.js → connect-source-dialog-CGYXiWts.js} +1 -1
  116. package/dist/client/assets/{connection-OneH_KYb.js → connection-S7qDWEtT.js} +1 -1
  117. package/dist/client/assets/{connection-card-Cn0XDJp5.js → connection-card-Cx44idem.js} +1 -1
  118. package/dist/client/assets/{connection-detail-DviNqCvu.js → connection-detail-Dv-5xDcH.js} +1 -1
  119. package/dist/client/assets/{connection-form-helpers-Bky3pLkI.js → connection-form-helpers-gFh7yCzV.js} +1 -1
  120. package/dist/client/assets/{connections-CnCDDLW4.js → connections-18n-bO0V.js} +1 -1
  121. package/dist/client/assets/{content-tab-ChaQz5Cw.js → content-tab-DN8B-yRI.js} +3 -3
  122. package/dist/client/assets/{context-Z72cw_0L.js → context-6RTcJyMV.js} +1 -1
  123. package/dist/client/assets/{context-menu-BVx2zw6F.js → context-menu-Bl8I6GNc.js} +1 -1
  124. package/dist/client/assets/{context-shell-4OlOuHkx.js → context-shell-BYQlM0x8.js} +3 -3
  125. package/dist/client/assets/{core.esm-DtwNC1S6.js → core.esm-BT_mU3xj.js} +1 -1
  126. package/dist/client/assets/{create-organization-dialog-Bud6wRZH.js → create-organization-dialog-U4tR_Qfl.js} +1 -1
  127. package/dist/client/assets/{daily-pulse-CZ6S1sQA.js → daily-pulse-6PW7XWbE.js} +1 -1
  128. package/dist/client/assets/{discover-DTCouleE.js → discover-BIfjmq3H.js} +1 -1
  129. package/dist/client/assets/{domain-settings-CMqaHhTL.js → domain-settings-BAiU0Esp.js} +1 -1
  130. package/dist/client/assets/{drawer-DV7RfSOm.js → drawer-Dx4-F-OS.js} +1 -1
  131. package/dist/client/assets/{editor-C97Kf5Du.js → editor-BQmG-TWe.js} +1 -1
  132. package/dist/client/assets/{editor-classes-Cpizi6Gd.js → editor-classes-DKOvNB3n.js} +1 -1
  133. package/dist/client/assets/{empty-state-BaG0Q4po.js → empty-state-B3qkXyL5.js} +1 -1
  134. package/dist/client/assets/{empty-state-DN5hGWOA.js → empty-state-cQdvFUSC.js} +1 -1
  135. package/dist/client/assets/{experiments-tab-CaSjZfNk.js → experiments-tab-CGGCXXu8.js} +1 -1
  136. package/dist/client/assets/{experiments-tab-choice-D7HK8muj.js → experiments-tab-choice-BPtAtI2U.js} +1 -1
  137. package/dist/client/assets/{extract-connection-data-CMDKUW-r.js → extract-connection-data-duttVzSb.js} +1 -1
  138. package/dist/client/assets/{feature-gate-BCs7uS6R.js → feature-gate-B_rAgLtC.js} +1 -1
  139. package/dist/client/assets/{feature-paywall-BkfFWoMQ.js → feature-paywall-B9F9KnQt.js} +1 -1
  140. package/dist/client/assets/{file-explorer-D9mAz812.js → file-explorer-qKQKwlcp.js} +1 -1
  141. package/dist/client/assets/{file-preview-BIWzBCIQ.js → file-preview-DtFhFlGD.js} +1 -1
  142. package/dist/client/assets/{file-share-button-Yp1hPdth.js → file-share-button-_yfZfWoE.js} +1 -1
  143. package/dist/client/assets/{file-type-icon-BzoA5jiZ.js → file-type-icon-DnkfnNgZ.js} +1 -1
  144. package/dist/client/assets/{folder-icon-3OVJ0C3s.js → folder-icon-CQMbivux.js} +1 -1
  145. package/dist/client/assets/{form-BeydREbm.js → form-BQ50c_Kc.js} +1 -1
  146. package/dist/client/assets/{general-TShdY8k6.js → general-UOC6R1bq.js} +1 -1
  147. package/dist/client/assets/{github-icon-BAVg06aG.js → github-icon-Da5ypnFC.js} +1 -1
  148. package/dist/client/assets/{held-block-view-C-gX7MJV.js → held-block-view-DCE-bFQS.js} +3 -3
  149. package/dist/client/assets/{home-CaunCGhV.js → home-BH5Ska_O.js} +1 -1
  150. package/dist/client/assets/{hosted-publish-feedback-DBuxeNUI.js → hosted-publish-feedback-CZCgFuTM.js} +1 -1
  151. package/dist/client/assets/{icon-button-Dvr6r3yU.js → icon-button-Dr-Gv6H0.js} +1 -1
  152. package/dist/client/assets/{index-CP1LLlUE.js → index-B4sZcXXO.js} +1 -1
  153. package/dist/client/assets/{index-3W95YvR0.js → index-B9YWSID0.js} +1 -1
  154. package/dist/client/assets/{index-Co_Y2KRI.js → index-BIewQUQb.js} +1 -1
  155. package/dist/client/assets/{index-WgfN4QVP.js → index-BijXK1UR.js} +3 -3
  156. package/dist/client/assets/{index-C6hJbAJT.js → index-CIaq3tw7.js} +1 -1
  157. package/dist/client/assets/{index-CvcioybL.js → index-CQE0HBp3.js} +1 -1
  158. package/dist/client/assets/{index-APWCNDjQ.js → index-D6M26y9G.js} +1 -1
  159. package/dist/client/assets/{index-Bi4PycPz.js → index-DBQYx38N.js} +1 -1
  160. package/dist/client/assets/{index-CG3hHrir.js → index-DCDDlYdn.js} +1 -1
  161. package/dist/client/assets/{index-DXbJEWCl.js → index-DiV7NYFa.js} +1 -1
  162. package/dist/client/assets/{index-DslCcy2A.js → index-DrgADi5h.js} +1 -1
  163. package/dist/client/assets/{index-Gy88raZj.js → index-E459_Efg.js} +1 -1
  164. package/dist/client/assets/{index-CzKs4Djn.js → index-HzRnz8QJ.js} +1 -1
  165. package/dist/client/assets/{index-B84NhyjS.js → index-R3al4Uhd.js} +1 -1
  166. package/dist/client/assets/{index-DJkEjMHv.js → index-jOmOmhTz.js} +1 -1
  167. package/dist/client/assets/{index-redirect-BuSCUFK5.js → index-redirect-Dqqwxwjr.js} +1 -1
  168. package/dist/client/assets/{infiniteQueryObserver-AJwWz1b5.js → infiniteQueryObserver-o3kSKx55.js} +1 -1
  169. package/dist/client/assets/{infra-billing-CSDR5i1g.js → infra-billing-ZP6do34t.js} +1 -1
  170. package/dist/client/assets/{input-C9nmuHHZ.js → input-i5frBa5C.js} +1 -1
  171. package/dist/client/assets/{input-BqbNJGML.js → input-seTaYpjE.js} +3 -3
  172. package/dist/client/assets/{integration-icon-UvPKDtTh.js → integration-icon-B78RRiv5.js} +1 -1
  173. package/dist/client/assets/{jira-icon-Bmh7OVT1.js → jira-icon-B8btMOFJ.js} +1 -1
  174. package/dist/client/assets/{label-Dxzmqh4L.js → label-Cp19UNgk.js} +1 -1
  175. package/dist/client/assets/{layout-C4nyDmIH.js → layout-CX2GGDxo.js} +1 -1
  176. package/dist/client/assets/{legacy-agents-deep-aq4ok2ss.js → legacy-agents-deep-EaRXmg1a.js} +1 -1
  177. package/dist/client/assets/{legacy-main-redirect-IAdI4U7x.js → legacy-main-redirect-Djf9ugx4.js} +1 -1
  178. package/dist/client/assets/library--vU7_72w.js +1 -0
  179. package/dist/client/assets/{library-tab-CSUDGppR.js → library-tab-D2dUmZ2N.js} +1 -1
  180. package/dist/client/assets/{login-4UMFaQqs.js → login-3ambMeYH.js} +1 -1
  181. package/dist/client/assets/{markdown-NHGOJDhi.js → markdown-Dq2cTeVK.js} +1 -1
  182. package/dist/client/assets/{mcp-app-renderer-CGhEZS_Z.js → mcp-app-renderer-c0XyEtdp.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-Due6wImr.js → mcp-oauth-BGqSa9Pc.js} +1 -1
  184. package/dist/client/assets/{mcp-oauth-D0k2-sPR.js → mcp-oauth-Ce50x3CB.js} +1 -1
  185. package/dist/client/assets/{members-CNgezQXU.js → members-rrzgbqx7.js} +1 -1
  186. package/dist/client/assets/{memory-BmjdKRyH.js → memory-DXTb6Voq.js} +1 -1
  187. package/dist/client/assets/{mini-report-page-C4ZquL_-.js → mini-report-page-CJX9M-nB.js} +1 -1
  188. package/dist/client/assets/{mock-board-CSzfjmM9.js → mock-board-G8D6BINi.js} +3 -3
  189. package/dist/client/assets/{monaco-editor-BDiq_2v4.js → monaco-editor-D3-tlVi1.js} +1 -1
  190. package/dist/client/assets/{monitoring-DDlo0E0z.js → monitoring-DO4YblV5.js} +1 -1
  191. package/dist/client/assets/{monitoring-stats-row-BIUtkx4G.js → monitoring-stats-row-vVsaxsbi.js} +1 -1
  192. package/dist/client/assets/{multi-select-BzEGbWV5.js → multi-select-BpPVsFAF.js} +1 -1
  193. package/dist/client/assets/{mustache-CDuMzcYJ.js → mustache-BKOMnA_9.js} +1 -1
  194. package/dist/client/assets/{named-rule-uses-BBO-qGhe.js → named-rule-uses-CX8yqNkx.js} +1 -1
  195. package/dist/client/assets/{new-project-dialog-DePwIx8r.js → new-project-dialog-JbH-ihe7.js} +1 -1
  196. package/dist/client/assets/{oauth-callback-MEfOlRUI.js → oauth-callback-CCdgABZY.js} +1 -1
  197. package/dist/client/assets/{oauth-callback-ai-provider-CmQYTORU.js → oauth-callback-ai-provider-DWzz5YvT.js} +1 -1
  198. package/dist/client/assets/{onboarding-D-XW6Ll4.js → onboarding-CTnT7tiC.js} +1 -1
  199. package/dist/client/assets/{openai-conversation-f0QT3g0s.js → openai-conversation-B5u7XwTe.js} +1 -1
  200. package/dist/client/assets/{optimistic-project-sidebar-views-BLuXu9p7.js → optimistic-project-sidebar-views-DXBojSzW.js} +1 -1
  201. package/dist/client/assets/{order-monitor-day-CUhalAkv.js → order-monitor-day-C_W6SROB.js} +1 -1
  202. package/dist/client/assets/{organization-choice-C88DHbpi.js → organization-choice-McETwbSg.js} +1 -1
  203. package/dist/client/assets/{orgs-BqSj6zly.js → orgs-07tmprt6.js} +1 -1
  204. package/dist/client/assets/{page-seo-form-bsmuSaAw.js → page-seo-form-FlV4EZkI.js} +1 -1
  205. package/dist/client/assets/{pair-Cz07PNwj.js → pair-DLv_RG2X.js} +1 -1
  206. package/dist/client/assets/{parse-sections-CNEwf5xY.js → parse-sections-BM7rWPEy.js} +1 -1
  207. package/dist/client/assets/{plan-BaxzxsmN.js → plan-CAs8v3rm.js} +1 -1
  208. package/dist/client/assets/{plan-ladder-CPUSwIwK.js → plan-ladder-iixbir6X.js} +1 -1
  209. package/dist/client/assets/{plan-usage-card-C2rK33eA.js → plan-usage-card-OF2PeBk2.js} +1 -1
  210. package/dist/client/assets/{popover-DqVLkXUD.js → popover-CHbMB3jG.js} +1 -1
  211. package/dist/client/assets/{post-calendar-D-B-o5Sk.js → post-calendar-DFFEwO0u.js} +1 -1
  212. package/dist/client/assets/{post-editor-wYAwFgD6.js → post-editor-DiCZv0jb.js} +1 -1
  213. package/dist/client/assets/{preview-content-SmC2ClvS.js → preview-content-Di4bx53_.js} +1 -1
  214. package/dist/client/assets/{preview-dialog-CKYpQv_g.js → preview-dialog-Bnabi9Qe.js} +1 -1
  215. package/dist/client/assets/{preview-panel-CUIawUFr.js → preview-panel-C4Onhdbp.js} +1 -1
  216. package/dist/client/assets/{preview-tab-gJ-NI33V.js → preview-tab-BTYNRFa4.js} +3 -3
  217. package/dist/client/assets/{product-picker-dialog-BfM9NW4L.js → product-picker-dialog-CDwUdEyI.js} +1 -1
  218. package/dist/client/assets/{profile-BAzM4QDZ.js → profile-BZopokCb.js} +1 -1
  219. package/dist/client/assets/{project-app-view-D4za2-JY.js → project-app-view-BvN4B3VY.js} +1 -1
  220. package/dist/client/assets/{project-apps-B3VLUQHR.js → project-apps-bRm5wucx.js} +1 -1
  221. package/dist/client/assets/{project-feed-BMuYP0mY.js → project-feed-JQMrn4N0.js} +1 -1
  222. package/dist/client/assets/{project-icon-BIzg7YUA.js → project-icon-CJYQSuT8.js} +1 -1
  223. package/dist/client/assets/project-reports-C8oDqZ8M.js +1 -0
  224. package/dist/client/assets/project-tasks-12ERuu6r.js +1 -0
  225. package/dist/client/assets/{projects-BsvG5EZk.js → projects-HwNNO20y.js} +1 -1
  226. package/dist/client/assets/{projects-empty-state-BuGy3TU-.js → projects-empty-state-3UvEY2WC.js} +1 -1
  227. package/dist/client/assets/{prompts-C_3bA9AB.js → prompts-Bb-iag-D.js} +1 -1
  228. package/dist/client/assets/record-editor-DKQxzgxV.js +1 -0
  229. package/dist/client/assets/{redirect-editor-DoeEK1iC.js → redirect-editor-DwMCsv8a.js} +1 -1
  230. package/dist/client/assets/{releases-api-DaYlp5Yo.js → releases-api-B6kvYbRr.js} +1 -1
  231. package/dist/client/assets/reports-DPVIqjnT.js +1 -0
  232. package/dist/client/assets/{reports-D9rwlh0Z.js → reports-Xotj40Dl.js} +1 -1
  233. package/dist/client/assets/{reports-onboarding-CI5-svnj.js → reports-onboarding-B5nfdh0X.js} +1 -1
  234. package/dist/client/assets/{reports-tab-Dqp0OnYz.js → reports-tab-Do3x8s5b.js} +2 -2
  235. package/dist/client/assets/{repositories-pCQtYygJ.js → repositories-D80nxgjg.js} +1 -1
  236. package/dist/client/assets/repositories-DDo5raPh.js +1 -0
  237. package/dist/client/assets/{repository-binding-DF6YCWsj.js → repository-binding-C68Bzwbp.js} +1 -1
  238. package/dist/client/assets/{repository-import-picker-bneKFCuv.js → repository-import-picker-EEK-sVVk.js} +1 -1
  239. package/dist/client/assets/{repository-picker-CGoSX3oi.js → repository-picker-DNE15SEp.js} +1 -1
  240. package/dist/client/assets/{require-capability-DbotB2TQ.js → require-capability-B8KwXmiu.js} +1 -1
  241. package/dist/client/assets/{required-auth-layout-BLLWaY3S.js → required-auth-layout-CgViy1W9.js} +1 -1
  242. package/dist/client/assets/{reset-password-CYfdP8lX.js → reset-password-CFvmO4cf.js} +1 -1
  243. package/dist/client/assets/{resizable-DcAx-gSp.js → resizable-BiIQKqAj.js} +1 -1
  244. package/dist/client/assets/{resolve-tab-icon-CEtcjh_A.js → resolve-tab-icon-ByuLXRti.js} +1 -1
  245. package/dist/client/assets/{review-settings-BtTYlHnB.js → review-settings-BfbxJWxe.js} +1 -1
  246. package/dist/client/assets/{roles-wWNA46at.js → roles--sJq_Ice.js} +1 -1
  247. package/dist/client/assets/route-CNrD999i.js +1 -0
  248. package/dist/client/assets/{route-8T5e9Ewx.js → route-DJ0GbELV.js} +1 -1
  249. package/dist/client/assets/{route-CGePI1fo.js → route-Ff6lCceC.js} +1 -1
  250. package/dist/client/assets/{sandbox-lifecycle-context-Bwi5LES5.js → sandbox-lifecycle-context-BFVSmowb.js} +1 -1
  251. package/dist/client/assets/{schema-DiDerRAC.js → schema-Bi4RJVVu.js} +1 -1
  252. package/dist/client/assets/{schema-BUPJBVf-.js → schema-ZtwXZVxu.js} +1 -1
  253. package/dist/client/assets/{scroll-area-CiASyTMh.js → scroll-area-Cp71DHPt.js} +1 -1
  254. package/dist/client/assets/{search-input-BB0pLu50.js → search-input-BrVmXZXF.js} +1 -1
  255. package/dist/client/assets/{search-toggle-Ct5urmf5.js → search-toggle-DCUC4Qen.js} +1 -1
  256. package/dist/client/assets/{secret-picker-DeqIjavS.js → secret-picker-lgA-9Rhu.js} +1 -1
  257. package/dist/client/assets/{secrets-CXa42ggH.js → secrets-BgPJKyPa.js} +1 -1
  258. package/dist/client/assets/{section-array-field-DENveGph.js → section-array-field-B5eviaUR.js} +1 -1
  259. package/dist/client/assets/{sections-Czi5N-nx.js → sections-Bg_-ZUEa.js} +1 -1
  260. package/dist/client/assets/{sections-editor-CJWiHP8t.js → sections-editor-B5LVHw--.js} +1 -1
  261. package/dist/client/assets/{select-CFg3KEOq.js → select-CSKnqqEb.js} +1 -1
  262. package/dist/client/assets/{select-model-DkYaqcwE.js → select-model-BQD_gjqh.js} +1 -1
  263. package/dist/client/assets/{seo-editor-C18LAsg1.js → seo-editor-Cf2Xi6nY.js} +1 -1
  264. package/dist/client/assets/{separator-DlxWQ5-B.js → separator-CwuQweR4.js} +1 -1
  265. package/dist/client/assets/settings-tab-BjEX5KP_.js +1 -0
  266. package/dist/client/assets/{sheet-CA3M7bQp.js → sheet-BKUj4XRS.js} +1 -1
  267. package/dist/client/assets/{shell-layout-pSWumg64.js → shell-layout-7nLfl63D.js} +1 -1
  268. package/dist/client/assets/{site-draft-actions-B9N3leLY.js → site-draft-actions-CJU0lNJV.js} +1 -1
  269. package/dist/client/assets/{site-draft-view-Byvdlyo6.js → site-draft-view-BexOIk_0.js} +2 -2
  270. package/dist/client/assets/site-editor-BIN6_mo1.js +1 -0
  271. package/dist/client/assets/{site-editor-toast-Bz-6LR6r.js → site-editor-toast-DIQQclSk.js} +1 -1
  272. package/dist/client/assets/{skills-DcoNLVNg.js → skills-DriBuXLm.js} +1 -1
  273. package/dist/client/assets/{slider-CdizOZzU.js → slider-CX7at3h2.js} +1 -1
  274. package/dist/client/assets/{sortable.esm-D_24nW2P.js → sortable.esm-10DRQ2sX.js} +1 -1
  275. package/dist/client/assets/{sso-BX8AqSlx.js → sso-CRoH05Fz.js} +1 -1
  276. package/dist/client/assets/{suggestion-hz2N0L4f.js → suggestion-xTAroASB.js} +1 -1
  277. package/dist/client/assets/{switch-nJxNuRWR.js → switch-DrmfNcNf.js} +1 -1
  278. package/dist/client/assets/{symbol-DnjOGl1B.js → symbol-ChJ7jN3k.js} +1 -1
  279. package/dist/client/assets/{synced-repos-CwsMzHsk.js → synced-repos-DV1BcuV7.js} +1 -1
  280. package/dist/client/assets/{tab-icon-glyph-CyteS_dF.js → tab-icon-glyph-CF5f-Z_o.js} +1 -1
  281. package/dist/client/assets/{table-D3Xss2p0.js → table-Dzy-0aVP.js} +1 -1
  282. package/dist/client/assets/{tabs-j1z3THwl.js → tabs-BTn3mTbH.js} +1 -1
  283. package/dist/client/assets/{task-assignee-avatar-ClZ-7JIA.js → task-assignee-avatar-56TwVYLO.js} +1 -1
  284. package/dist/client/assets/{task-board-M_qS1rzf.js → task-board-CayegZZ3.js} +1 -1
  285. package/dist/client/assets/{task-route-CWCfzbE3.js → task-route-DGxDwMMW.js} +1 -1
  286. package/dist/client/assets/{task-status-CC96IwX7.js → task-status-BNNrZ_Nu.js} +1 -1
  287. package/dist/client/assets/{taskboard-analytics-XMzxqkpx.js → taskboard-analytics-XuXMs7JC.js} +1 -1
  288. package/dist/client/assets/{tasks-fO-z4dp1.js → tasks-CUxYfIaK.js} +1 -1
  289. package/dist/client/assets/tasks-zAr_UkZ3.js +1 -0
  290. package/dist/client/assets/{textarea-D-MP0s12.js → textarea-D0LYBX8O.js} +1 -1
  291. package/dist/client/assets/{thread-analytics-DZ3xDtzM.js → thread-analytics-C1PPOpRT.js} +1 -1
  292. package/dist/client/assets/{thread-intent-DSKhfvxP.js → thread-intent-CdiuimL9.js} +1 -1
  293. package/dist/client/assets/{thread-route-D2HAbtZo.js → thread-route-B2S6iOD-.js} +1 -1
  294. package/dist/client/assets/{thread-route-DJFRjF24.js → thread-route-Cc6UBNhQ.js} +1 -1
  295. package/dist/client/assets/{thread-sheet-body-uGXl8WDp.js → thread-sheet-body-BFuME1Bd.js} +1 -1
  296. package/dist/client/assets/{time-range-picker-DE6cxBjq.js → time-range-picker-Cq-tv6qo.js} +1 -1
  297. package/dist/client/assets/{toggle-group-BUfjArPT.js → toggle-group-DM6uySR5.js} +1 -1
  298. package/dist/client/assets/{tool-namespace-CGxHGKW_.js → tool-namespace-BW-tXE6W.js} +1 -1
  299. package/dist/client/assets/{toolbar-icon-button-B1loXRWd.js → toolbar-icon-button-Du8IprMB.js} +1 -1
  300. package/dist/client/assets/{tooltip-CUsEGqy_.js → tooltip-CgSkJPPS.js} +1 -1
  301. package/dist/client/assets/{tooltipContext-Bj1ILd8M.js → tooltipContext-B5ecV60a.js} +1 -1
  302. package/dist/client/assets/{track-CkX_aW1n.js → track-DekjR40E.js} +1 -1
  303. package/dist/client/assets/{types-D9PXVqqG.js → types-DK13rTXA.js} +1 -1
  304. package/dist/client/assets/{url-slug-B4ugcdZY.js → url-slug-B9gulo1R.js} +1 -1
  305. package/dist/client/assets/{usage-stats-qowelp13.js → usage-stats-spjeuTC-.js} +1 -1
  306. package/dist/client/assets/{use-ai-providers-BcdAb8qD.js → use-ai-providers-TbIEEErY.js} +1 -1
  307. package/dist/client/assets/{use-apply-named-rule-ByoZP5j7.js → use-apply-named-rule-dOnUWTCP.js} +1 -1
  308. package/dist/client/assets/{use-automations-BVNZ6rjm.js → use-automations-CG-Cikv7.js} +1 -1
  309. package/dist/client/assets/{use-autosave-ysdD2930.js → use-autosave-Csd4kJP8.js} +1 -1
  310. package/dist/client/assets/{use-chat-layout-state-B5aaDvob.js → use-chat-layout-state-B1KCQDF9.js} +1 -1
  311. package/dist/client/assets/{use-clock-tick-Cfukw61c.js → use-clock-tick-ffh7KkCE.js} +1 -1
  312. package/dist/client/assets/{use-cms-publish-actions-DZ9irs8o.js → use-cms-publish-actions-eqQub0R0.js} +1 -1
  313. package/dist/client/assets/{use-connect-companion-BO5TLspT.js → use-connect-companion-CbQk2RHf.js} +1 -1
  314. package/dist/client/assets/{use-connection-FqHna8PS.js → use-connection-TWR90GP-.js} +1 -1
  315. package/dist/client/assets/{use-copy-CXZDMarr.js → use-copy-BtQZocLW.js} +1 -1
  316. package/dist/client/assets/{use-create-virtual-mcp-Dzh7EwRz.js → use-create-virtual-mcp-Bg_pvKji.js} +1 -1
  317. package/dist/client/assets/{use-date-fns-locale-DDFXCn-E.js → use-date-fns-locale-Dk7jlgNH.js} +1 -1
  318. package/dist/client/assets/{use-debounced-autosave-DnB6ruCU.js → use-debounced-autosave-BEzdgU_0.js} +1 -1
  319. package/dist/client/assets/{use-debounced-value-QixculIP.js → use-debounced-value-AoAqNmHg.js} +1 -1
  320. package/dist/client/assets/{use-deco-credits-CvKHRGmx.js → use-deco-credits-DHyEg3az.js} +1 -1
  321. package/dist/client/assets/{use-decopilot-events-fL28TEHC.js → use-decopilot-events-CVUGGfXM.js} +1 -1
  322. package/dist/client/assets/{use-delete-connection-DmHzYgl9.js → use-delete-connection-Cz9YzYA8.js} +1 -1
  323. package/dist/client/assets/{use-deployment-admin-DIOIJKFZ.js → use-deployment-admin-_i-curaL.js} +1 -1
  324. package/dist/client/assets/{use-entitlements-BkqxE18N.js → use-entitlements-C0wXCfoQ.js} +1 -1
  325. package/dist/client/assets/{use-fast-preview-draft-url-BRikkUIY.js → use-fast-preview-draft-url-aEjdHT0V.js} +1 -1
  326. package/dist/client/assets/{use-file-configs-hWnpGnBU.js → use-file-configs-xfUsfkeK.js} +1 -1
  327. package/dist/client/assets/{use-inbox-feed-DIzfN-6Y.js → use-inbox-feed-p7cJIwLb.js} +1 -1
  328. package/dist/client/assets/{use-infinite-scroll-B2Dxfw4r.js → use-infinite-scroll-DCkPJt0t.js} +1 -1
  329. package/dist/client/assets/{use-join-requests-D7tVSsO6.js → use-join-requests-CuoNgXxm.js} +1 -1
  330. package/dist/client/assets/{use-main-panel-tabs-Dtx52M7M.js → use-main-panel-tabs-B5SM6O8K.js} +1 -1
  331. package/dist/client/assets/{use-mcp-auth-status-DT-19LwX.js → use-mcp-auth-status-DnlvB6rZ.js} +1 -1
  332. package/dist/client/assets/{use-mcp-client-DXdlNn5q.js → use-mcp-client-KWSUvK_a.js} +1 -1
  333. package/dist/client/assets/{use-mcp-prompts-ClNBkSao.js → use-mcp-prompts-BEJ1f99M.js} +1 -1
  334. package/dist/client/assets/{use-mcp-tools-DgRM7NRr.js → use-mcp-tools-BC8AaNmJ.js} +1 -1
  335. package/dist/client/assets/{use-mobile-BRzk8D-v.js → use-mobile-CPIB7FDl.js} +1 -1
  336. package/dist/client/assets/{use-move-blocks-BwtieMWH.js → use-move-blocks-8DTZOusM.js} +1 -1
  337. package/dist/client/assets/{use-navigate-to-agent-Mx6A78it.js → use-navigate-to-agent-HYjCQ2HB.js} +1 -1
  338. package/dist/client/assets/{use-org-fs-DRPPAr_0.js → use-org-fs-CRpJAVmi.js} +1 -1
  339. package/dist/client/assets/{use-org-repo-syncs-zLVhA-m3.js → use-org-repo-syncs-fm6UzfKA.js} +1 -1
  340. package/dist/client/assets/{use-org-sso-CK8bP20u.js → use-org-sso-CfMRDnRe.js} +1 -1
  341. package/dist/client/assets/{use-organization-roles-BFEFwfPv.js → use-organization-roles-APtOO0Ln.js} +1 -1
  342. package/dist/client/assets/{use-organization-settings-CHtyXny0.js → use-organization-settings-BnaaX9uD.js} +1 -1
  343. package/dist/client/assets/{use-panel-navigate-BrmvjTvw.js → use-panel-navigate-C8QBD8vM.js} +1 -1
  344. package/dist/client/assets/{use-project-native-view-presence-fZL342dS.js → use-project-native-view-presence-BwKCP-cs.js} +1 -1
  345. package/dist/client/assets/{use-project-scope-5fuCx2a_.js → use-project-scope-CQd-IFnJ.js} +1 -1
  346. package/dist/client/assets/{use-recent-apps-DIC3oGRR.js → use-recent-apps-DDZXSkFr.js} +1 -1
  347. package/dist/client/assets/{use-releases-DMLz_29m.js → use-releases-CuN0i7FX.js} +1 -1
  348. package/dist/client/assets/{use-reports-diagnostic-CDXaLKrf.js → use-reports-diagnostic-KsJKsvbI.js} +1 -1
  349. package/dist/client/assets/{use-sandbox-events-CcwyGMD7.js → use-sandbox-events-CHP3Ppk5.js} +1 -1
  350. package/dist/client/assets/{use-secrets-B0fPW93u.js → use-secrets-DTKbIXef.js} +1 -1
  351. package/dist/client/assets/{use-section-preview-base-BLJOom-F.js → use-section-preview-base-C-qObYGR.js} +1 -1
  352. package/dist/client/assets/{use-session-runtime-BIoEtecA.js → use-session-runtime-7fOZnFmy.js} +1 -1
  353. package/dist/client/assets/{use-sidebar-collapsed-BToAgS1l.js → use-sidebar-collapsed-Cg9SAJcE.js} +1 -1
  354. package/dist/client/assets/{use-tags-BBUfpZ3Q.js → use-tags-DfJbMtHn.js} +1 -1
  355. package/dist/client/assets/{use-task-board-analytics-CP7ZTaMB.js → use-task-board-analytics-CeRXsQRW.js} +1 -1
  356. package/dist/client/assets/{use-task-board-events-CyzOoXYa.js → use-task-board-events-on9bUB3D.js} +1 -1
  357. package/dist/client/assets/{use-task-board-item-prs-xIRkPDuE.js → use-task-board-item-prs-DSW_-yNM.js} +1 -1
  358. package/dist/client/assets/{use-task-board-prompts-Hjgi7ATn.js → use-task-board-prompts-D_ds0kXS.js} +1 -1
  359. package/dist/client/assets/{use-task-metadata-DVialv3C.js → use-task-metadata-DEG1rVSj.js} +1 -1
  360. package/dist/client/assets/{use-thread-analytics-DKL46-sK.js → use-thread-analytics-CwjDq08D.js} +1 -1
  361. package/dist/client/assets/{use-thread-outputs-CuLm_Mfb.js → use-thread-outputs-Ct6GwzUZ.js} +1 -1
  362. package/dist/client/assets/useInfiniteQuery-BfYXF3Ue.js +1 -0
  363. package/dist/client/assets/{useQueries-Ddak2P0w.js → useQueries-CizdKXco.js} +1 -1
  364. package/dist/client/assets/useSuspenseInfiniteQuery-CDVGaP6u.js +1 -0
  365. package/dist/client/assets/{users-wgAbpnD0.js → users-BDtwz5j1.js} +1 -1
  366. package/dist/client/assets/{utils-DdcTGJDK.js → utils-DSrro3Kq.js} +1 -1
  367. package/dist/client/assets/{variant-calendar-DkBZGo-3.js → variant-calendar-Bauq4E4Q.js} +1 -1
  368. package/dist/client/assets/{variant-matcher-override-D8SSg_Q7.js → variant-matcher-override-O_qTI-qh.js} +1 -1
  369. package/dist/client/assets/{view-header-CAPGAS4q.js → view-header-BDzDO2AR.js} +1 -1
  370. package/dist/client/assets/{virtual-mcp-a8UorXJw.js → virtual-mcp-BO0xBKoh.js} +1 -1
  371. package/dist/client/assets/{watch-sse-pool-CH4G2Sl-.js → watch-sse-pool-4Z_1jztZ.js} +1 -1
  372. package/dist/client/index.html +1 -1
  373. package/dist/server/cli.js +44 -44
  374. package/dist/server/server.js +1 -1
  375. package/package.json +1 -1
  376. package/dist/client/assets/agent-app-BI0E5_7n.js +0 -1
  377. package/dist/client/assets/agent-deck-Nw66gXDM.js +0 -1
  378. package/dist/client/assets/agent-experiments-BslAK98v.js +0 -1
  379. package/dist/client/assets/agent-library-BXKmMOCL.js +0 -1
  380. package/dist/client/assets/agent-library-file-D8BDKfA2.js +0 -1
  381. package/dist/client/assets/agent-monitor-D6kjNFa-.js +0 -1
  382. package/dist/client/assets/agent-settings-DM6gu80D.js +0 -1
  383. package/dist/client/assets/agent-site-editor-code-B7Ja4k0e.js +0 -2
  384. package/dist/client/assets/agent-site-editor-content-BgxmK1MQ.js +0 -1
  385. package/dist/client/assets/agent-site-editor-preview-BxfSe8hZ.js +0 -1
  386. package/dist/client/assets/agent-view-Di5xXloU.js +0 -1
  387. package/dist/client/assets/api-keys-Duet-lJP.js +0 -1
  388. package/dist/client/assets/library-Da5YKyoM.js +0 -1
  389. package/dist/client/assets/project-reports-DJoAVemp.js +0 -1
  390. package/dist/client/assets/project-tasks-Db93bOVr.js +0 -1
  391. package/dist/client/assets/record-editor-DavD_m_0.js +0 -1
  392. package/dist/client/assets/reports-5EubtE8r.js +0 -1
  393. package/dist/client/assets/repositories-BaY0RDK6.js +0 -1
  394. package/dist/client/assets/route-D_1NyYgH.js +0 -1
  395. package/dist/client/assets/settings-tab-CGA_nTpk.js +0 -1
  396. package/dist/client/assets/site-editor-CqHgEJnK.js +0 -1
  397. package/dist/client/assets/tasks-C8psxVdc.js +0 -1
  398. package/dist/client/assets/useInfiniteQuery-CrT95xA_.js +0 -1
  399. package/dist/client/assets/useSuspenseInfiniteQuery-Cy44049I.js +0 -1
@@ -1 +1 @@
1
- import{bh as W,fy as Kt,fz as ve,bH as Ze,bK as Ut,bJ as x,c5 as $e,fA as Le,bc as se,bd as ue,f3 as it,bF as ee,bA as G,bS as xt,fB as Nt,f8 as Ft,bL as ge,bX as Wt,bE as st,bV as ot,bC as Yt,bW as qt,bR as zt,bY as Ht,ba as Je,bb as Gt}from"./index-WgfN4QVP.js";const F={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},ae=["experiments","campaigns"];function Qt(e){return F[e]}function Xt(e){for(const t of ae)if(F[t].matcher===e)return t;return null}function tr(e){for(const t of ae)if(F[t].resolveType===e)return t;return null}function Zt(e){for(const t of ae)if(F[t].blockKey===e)return t;return null}const Jt="deco";function nr(e,t){if(!W(e))return"missing";const n=F[t],r=et(e,n.resolveType),i=et(e,n.matcher);if(!r||!i)return"missing";const s=o=>o.namespace===void 0||o.namespace===Jt;return s(r)&&s(i)?"available":"replaced"}function et(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function pe(e,t){const n=F[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=Y(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const s=r,o=Object.create(null),f=[];for(const[u,l]of Object.entries(s)){if(u==="__resolveType")continue;const d=t==="experiments"?tn(l):nn(l);d===null?f.push(u):o[u]=d}return{kind:"saved",block:s,values:o,invalid:f}}function rr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function ir(e){return e.kind==="conflict"?[]:Object.keys(e.block).filter(t=>t!=="__resolveType")}function en(e){const t=pe(e,"experiments"),n=pe(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function tn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function nn(e){if(!Y(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function rn(e){return e<=0?"off":e>=100?"everyone":"running"}function sn(e){return e===void 0||rn(e)!=="running"}function on(e){if(!Y(e))return null;const t=Xt(e.__resolveType);if(!t)return null;const n=e[F[t].field];return typeof n=="string"?{kind:t,name:n}:null}function an(e,t){const n=F[e];return{__resolveType:n.matcher,[n.field]:t}}const cn="date";function sr(e){return Y(e)&&e.__resolveType===cn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function or(e,t,n,r){return{...e,__resolveType:F[t].resolveType,[n]:r}}function ar(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function fn(e,t,n){if(t===n||t==="__resolveType"||n==="__resolveType"||!Object.hasOwn(e,t)||Object.hasOwn(e,n))return e;const r={};for(const[i,s]of Object.entries(e))r[i===t?n:i]=s;return r}function Y(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}const ln=new Set(["split-traffic","calendar"]);function un(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const pn=12,yn=8,Se=32,dn=40,mn="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function tt(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const vn="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function at(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ve(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function De(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ct(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function _e(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ve(e)??De(e);if(r){for(const f of ct(r.vendor,r.app))for(const u of Object.values(n))if(u[f])return u[f]}const i=at(e);for(const f of Object.values(n))if(f[i])return f[i];const s=t.schema??{};return(s.$defs??s.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function cr(e,t){return Object.keys(_e(e,t)).length>0}function ft(e,t){if(Kt(e,t))return!0;const n=Ve(t)??De(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ct(n.vendor,n.app).some(o=>o in r))return!0;const i=at(t),s=e.schema?.$defs??e.schema?.definitions??{};return i in s}function gn(e){return e==="site/apps/site.ts"?!1:Ve(e)!==null||De(e)!==null}function lt(e,t){return ut(t,{resolveType:e})}function fr(e,t){return ut(t,{ref:e})}function ut(e,t){const n=e.schema??{},r="resolveType"in t?_e(t.resolveType,e):{},i=n.$defs??n.definitions??{},s=n.root??{},o=a=>{if(a.startsWith("#/root/")){const c=a.slice(7);return s[c]??{}}const g=a.split("/").pop()??"",_=i[g];return _||(g===mn?s.sections??{}:{})};let f;typeof r.$ref=="string"?f=o(r.$ref):Object.keys(r).length>0?f=r:f=n;const u=a=>typeof a.$ref=="string"?o(a.$ref):a,l=a=>{const _=u(a).properties?.type;if(_){if(typeof _.const=="string")return _.const;if(typeof _.default=="string")return _.default;if(Array.isArray(_.enum)&&typeof _.enum[0]=="string")return _.enum[0]}},d=(a,g)=>{const _=u(a);return typeof _.title=="string"&&!_.title.startsWith("#")?_.title:g},b=(a,g=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const _=a.$ref.split("/").pop()??"";return!_||g.has(_)?a:b(o(a.$ref),new Set([...g,_]))},$=a=>{const g=a.properties?.__resolveType?.enum;return Array.isArray(g)&&typeof g[0]=="string"?g[0]:void 0},V=a=>$(a)!==void 0,N=(a,g=new Set)=>{if(typeof a.$ref!="string")return[];const _=a.$ref.split("/").pop()??"";if(!_||g.has(_))return[];const c=o(a.$ref),L=c.anyOf??c.oneOf;if(!Array.isArray(L))return[];const j=new Set([...g,_]);return L.flatMap(M=>V(M)?[M]:N(M,j))},k=a=>{const g=a.hide;return g===!0||g==="true"},C=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),B=(a,g=new Set,_=0)=>{if(_>pn)return{};if(typeof a.$ref=="string"){const L=a.$ref.split("/").pop()??"";return g.has(L)?{}:B(o(a.$ref),new Set([...g,L]),_+1)}let c={};a.properties&&typeof a.properties=="object"&&(c={...c,...a.properties}),Array.isArray(a.required)&&(c.__required=[...J(c.__required),...J(a.required)]);for(const L of["allOf","anyOf","oneOf"]){const j=a[L];if(Array.isArray(j))for(const M of j){const K=J(c.__required),q=B(M,g,_+1);c={...c,...q};const I=L==="allOf"?[...K,...J(q.__required)]:K;I.length>0?c.__required=I:delete c.__required}}return c},E=(a,g=0,_=new Set)=>{let c=a,L;if(typeof a.$ref=="string"){c=o(a.$ref);const w=a.$ref.split("/").pop()??"";L=w,w===vn&&!c.format&&(c={...c,format:"video-uri"})}c=b(c);const j=L!==void 0&&_.has(L),M=L!==void 0?new Set([..._,L]):_,K=(w,v,R,S=!0)=>!j&&(!S||R<=dn)&&v<yn?E(w,v,M):void 0;let q;{const w=c.anyOf??c.oneOf;if(Array.isArray(w)){const v=w.filter(S=>!(S.type==="null"||S.type===null)),R=S=>{if(typeof S.const=="string"||typeof S.const=="number")return S.const;if(Array.isArray(S.enum)&&S.enum.length===1&&(typeof S.enum[0]=="string"||typeof S.enum[0]=="number"))return S.enum[0]};v.length>0&&v.every(S=>R(S)!==void 0)&&(q=v.map(S=>R(S)))}}let I,re,Ye=!1;if(c.type)I=Array.isArray(c.type)?String(c.type.find(w=>w!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const v=(c.anyOf??c.oneOf).filter(R=>!(R.type==="null"||R.type===null));if(v.length===0)I="null";else if(v.length===1){const R=v[0];re=R,I=R.type?Array.isArray(R.type)?String(R.type[0]):String(R.type):typeof R.$ref=="string"?"object":"string"}else{if(q){const y=p=>typeof a[p]=="string"?a[p]:typeof c[p]=="string"?c[p]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:q,format:y("format"),options:y("options")}}const R=v.filter(V),S=v.map(y=>b(y)).find(le),X=y=>{if(typeof y.$ref!="string")return;const p=b(y),m=p.anyOf??p.oneOf;if(!Array.isArray(m))return;const h=[...m.filter(V),...m.filter(A=>!V(A)).flatMap(A=>N(A))],P=m.filter(A=>{if(V(A)||A.type==="null")return!1;const D=u(A),U=D.properties;return!U?.__resolveType&&!D.anyOf&&!D.oneOf&&(D.type==="object"||!!U)});return h.length>0&&P.length>0?{data:P,loaders:h}:void 0},Z=v.flatMap(y=>{const p=X(y);return p?[p]:[]}),Lt=Z.length===0&&v.filter(y=>!le(b(y))).every(y=>typeof y.$ref=="string"||R.includes(y)),Vt=R.some(y=>{const p=y.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===ve||W(e)&&p[0]==="multivariate")}),Ae=(y=[])=>{const p=new Map;for(const O of[...R,...v.filter(T=>!R.includes(T)).flatMap(T=>N(T)),...y]){const T=$(O);T&&!p.has(T)&&p.set(T,O)}const m=[...p].map(([O,T])=>({resolveType:O,title:typeof T.title=="string"?T.title:x(O),description:typeof T.description=="string"?T.description:void 0,schema:K(T,g+1,p.size)})),h=[];for(const O of v){if(R.includes(O)||typeof O.$ref!="string")continue;const T=o(O.$ref);let z;const H=T.properties?.__resolveType;if(Array.isArray(H?.enum)&&typeof H.enum[0]=="string"&&(z=H.enum[0]),!z&&Array.isArray(T.allOf))for(const It of T.allOf){const Re=It.properties?.__resolveType?.enum;if(Array.isArray(Re)&&typeof Re[0]=="string"){z=Re[0];break}}z&&h.push({resolveType:z,title:typeof T.title=="string"&&!T.title.startsWith("#")?T.title:x(z),description:typeof T.description=="string"?T.description:void 0,schema:K(T,g+1,v.length)})}const P=new Set(m.map(O=>O.resolveType)),A=[...m,...h.filter(O=>!P.has(O.resolveType))],D=v.filter(O=>!R.includes(O)),U=D.length===1&&!j?E(D[0],g+1,M):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:A,plainSchema:U,hidden:k(c)||k(a)?!0:void 0}};if(S){const y=!tt(S,o);if(y&&Z.length>0){const p=typeof a.title=="string"?a.title:typeof c.title=="string"&&!C(c.title)?c.title:void 0,m=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,h=v.find(A=>le(b(A))),P=Z.flatMap(A=>A.data);return{type:"inline-union",title:p,description:m,inlineUnionBranches:[...P.map((A,D)=>({title:d(A,`Option ${D+1}`),schema:E(A,g+1,M)})),{title:d(h,`Option ${P.length+1}`),schema:E(S,g+1,M)}],loaderRef:{...Ae(Z.flatMap(A=>A.loaders)),title:p,description:m},hidden:k(c)||k(a)?!0:void 0}}if(y&&v.length>1&&Lt){const p=E(S,g+1,M),m=typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:p.title,h=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:p.description;return{...p,type:"array",title:m,description:h,loaderRef:R.length>0?{...Ae(),title:m,description:h}:void 0}}if(Vt){const p=E(S,g+1,M);return{...p,type:"array",title:typeof c.title=="string"?c.title:p.title,description:typeof c.description=="string"?c.description:p.description}}}if(R.length>0)return Ae();const He=y=>{const p=u(y);if(typeof p.title=="string"&&Ze(p.title))return!0;const m=p.properties?.__resolveType?.enum;if(Array.isArray(m)&&typeof m[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const P=h.properties?.__resolveType?.enum;if(Array.isArray(P)&&typeof P[0]=="string")return!0}return!1},Ge=v.map(y=>l(y));if(v.length>1&&Ge.every(y=>typeof y=="string")&&!v.some(He)){const y=v.map((p,m)=>{const h=u(p),P=Ge[m];return{resolveType:P,title:d(p,P),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:P,schema:K(h,g+1,v.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:k(c)||k(a)?!0:void 0}}const ke=y=>{if(He(y))return!1;const p=u(y);return p.type==="object"||!!p.properties},Dt=y=>{const p=b(y);return le(p)?!tt(p,o):!1},Qe=g<Se&&v.every(y=>ke(y)||Dt(y))&&v.some(ke),Xe=v.every(y=>typeof y.$ref=="string"),Ct=W(e)&&!Xe&&v.some(y=>typeof y.$ref=="string"&&ln.has(un(o(y.$ref))))&&v.every(y=>typeof y.$ref=="string"||ke(y));if((Xe||Ct)&&!Qe){const y=[];for(const p of v){if(typeof p.$ref!="string")continue;const m=o(p.$ref);let h,P,A=!1;if(typeof m.title=="string"){const O=Ze(m.title);O&&(h=O.blockId,P=O.blockId)}if(!h&&Array.isArray(m.allOf))for(const O of m.allOf){const H=((O.properties??{}).__resolveType??{}).enum;if(Array.isArray(H)&&typeof H[0]=="string"){h=H[0],A=!0;break}}if(!h){const T=m.properties?.__resolveType?.enum;Array.isArray(T)&&typeof T[0]=="string"&&(h=T[0],A=!0)}h||(h=p.$ref.split("/").pop()??"");const D=h.includes("/")||A&&!Ut(h),U=D?void 0:l(p);!U&&!D||A&&h==="lazy"||y.push({resolveType:U??h,title:P??(typeof m.title=="string"&&!m.title.startsWith("#")?m.title:x(h)),description:typeof m.description=="string"?m.description:void 0,discriminatorValue:U,schema:K(m,g+1,v.length)})}return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:k(c)||k(a)?!0:void 0}}if(Qe){const y=m=>{if(typeof m.const=="string"||typeof m.const=="number"||typeof m.const=="boolean")return m.const;if(Array.isArray(m.enum)&&m.enum.length===1&&(typeof m.enum[0]=="string"||typeof m.enum[0]=="number"||typeof m.enum[0]=="boolean"))return m.enum[0]},p=v.map((m,h)=>{const P=u(m).properties??{},A={};for(const[D,U]of Object.entries(P)){const O=y(U);O!==void 0&&(A[D]=O)}return{title:d(m,`Option ${h+1}`),schema:E(m,g+1),discriminators:Object.keys(A).length?A:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:p,hidden:k(c)||k(a)?!0:void 0}}I="object"}}else c.allOf?(I="object",Ye=C(c.title)):typeof a.$ref=="string"&&(I="object");let fe,qe,ze=!1;if(g<Se&&!j){const w=B(c),v=w.__resolveType?.enum;ze=Array.isArray(v)&&v.length===1&&v[0]==="lazy";const R=J(w.__required);R.length>0&&(qe=R);const S=Object.entries(w).filter(([X])=>!X.startsWith("__")&&X!=="@type");if(S.length>0){fe={};for(const[X,Z]of S)fe[X]=E(Z,g+1,M)}}let Te;if((I==="array"||c.type==="array")&&g<Se&&!j){const w=c.items;if(w){Te=E(w,g+1,M);const v=u(w);typeof v.title=="string"&&v.title.includes("{{")&&(Te.titleBy=v.title)}}const Q=w=>{const v=re?.[w];return typeof v=="string"?v:void 0},$t=()=>{if("default"in a)return a.default;if("default"in c)return c.default;if(re&&"default"in re)return re.default};return{type:I??"string",title:typeof a.title=="string"?a.title:!Ye&&typeof c.title=="string"?c.title:Q("title"),description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:Q("description"),default:$t(),enum:Array.isArray(c.enum)?c.enum:q??void 0,format:typeof a.format=="string"?a.format:typeof c.format=="string"?c.format:Q("format"),properties:fe,required:qe,items:Te,lazy:ze&&fe?.value?!0:void 0,recursiveRef:j&&typeof a.$ref=="string"&&(I==="object"||I==="array"||c.type==="array")?a.$ref:void 0,hidden:k(c)||k(a)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:Q("titleBy"),image:typeof c.image=="string"?c.image:Q("image"),options:typeof a.options=="string"?a.options:typeof c.options=="string"?c.options:Q("options")}};if("ref"in t)return E({$ref:t.ref});const ne=f.properties??{},ce=Object.keys(ne).every(a=>a.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ce){const a=ne.__resolveType,g=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const _ of f.allOf){const c=b(_);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const j=E(c,0);if(j.type==="inline-union"&&j.inlineUnionBranches){const M=C(j.title);return{...j,title:M?void 0:j.title,inlineUnionBranches:g?j.inlineUnionBranches.map(K=>({...K,discriminators:{...K.discriminators??{},__resolveType:g}})):j.inlineUnionBranches}}}}const Fe=B(f),be={};for(const[a,g]of Object.entries(Fe))a.startsWith("__")||a==="@type"||(be[a]=E(g,0));if(Object.keys(be).length===0)return null;const We=J(Fe.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:be,required:We.length>0?We:void 0}}function lr(e,t){const n=t.schema??{},r=_e(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,o=s.properties??{};if(Object.keys(o).some(l=>!l.startsWith("__")))return!1;if(s.additionalProperties===!0)return!0;const u=o.__resolveType;return!!u&&Array.isArray(u.enum)&&u.enum[0]===e}function ur(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[s,o]of Object.entries(r))s.startsWith("__")||(i[s]=t(o));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ce(e,t){const n=t.schema??{},r=_e(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},o=s.icon,f=s.logo,u=s,l=b=>b===!0||b==="true",d=l(u.hide)||l(u.ignore)||l(u.unlisted);return{title:typeof s.title=="string"?s.title:void 0,description:typeof s.description=="string"?s.description:void 0,icon:typeof o=="string"?o:void 0,logo:typeof f=="string"?f:void 0,hidden:d||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],_n=new Set(pt);function Ie(e){return _n.has(e)}function Ke(e,t){return Ie(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function hn(e,t){return Ke(e,W(t)?t:void 0)}function yt(e){return e.replace(/\/+$/,"")||"/"}function pr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function bn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function yr(e){const t=e.trim();return t?bn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ue=/:([A-Za-z0-9_-]+)|\*/g;function dr(e){const t=[];for(const n of e.matchAll(Ue)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function dt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function mr(e){e=dt(e);const t=[];let n=0;for(const r of e.matchAll(Ue))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function vr(e,t){return dt(e).replace(Ue,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const mt=pt[0],Tn=new Set(["site/sections/Theme/Theme.tsx"]);function An(e,t){return Tn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(An(e,W(t))||ue(e)||e.toLowerCase().includes("preview"))}function vt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ie(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":mt}function kn(e){return W(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function gr(e){return e?kn(e)?"page":vt(e):mt}function we(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return we(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...we(n));return t}return[]}function Rn(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i)){if(he(s,e))continue;const o=Ce(s,e);n.push({resolveType:s,title:o.title??x(s),description:o.description,previewBlock:s,isSavedBlock:!1})}return n}function _r(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i))he(s,e)||n.has(s)||n.set(s,{resolveType:s,title:x(s)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function gt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=W(e);if(!_t(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const s of i){const o=se(s,r);if(!o||typeof o!="object")continue;let f=o.__resolveType;if(typeof f=="string"&&ue(f)&&(f=o.section?.__resolveType??f),typeof f=="string"&&Le(e,f))return f}return n}function _t(e,t){return e===it||t&&e===ee}function Sn(e,t){return gt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||$e(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o!="string"||Ie(o)||typeof s.path=="string"||he(o,e)||!(Le(e,o)||_t(o,W(e))&&Sn(e,s))||n.push({resolveType:r,title:r,description:typeof s.name=="string"?s.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function On(e,t){const n=G(t.resolveType,e),r=n?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||x(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function hr(e,t){const n=vt(e),r=lt(n,e),i=we(r?.properties?.sections),s=new Map,o=f=>{if(!he(f.resolveType,e)){if(G(f.resolveType,e)){$e(f.resolveType)||s.set(f.resolveType,f);return}Le(e,f.resolveType)&&(s.has(f.resolveType)||s.set(f.resolveType,f))}};for(const f of Rn(e))o(f);for(const f of i)o(On(e,f));for(const f of ht(e,t))o(f);return[...s.values()].sort((f,u)=>f.title.localeCompare(u.title))}function br(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const xe="website/loaders/redirect.ts",Tr=new Set([xe,"website/loaders/redirects.ts"]),Ne="redirect",En=[301,302,307,308],wn={temporary:307,permanent:301};function Ar(e){return e.flat?e.status??(e.type==="permanent"?301:302):wn[e.type]}const ye=e=>typeof e=="string"?e:"",Pn=e=>e==="permanent"?"permanent":"temporary",jn=e=>En.find(t=>t===e);function Bn(e){const t=jn(e.status);return{from:ye(e.from),to:ye(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function bt(e){if(e?.__resolveType===Ne)return Bn(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ye(t.from),to:ye(t.to),type:Pn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Mn(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==xe&&i.__resolveType!==Ne||t.push({key:n,...bt(i)})}return t}function kr(e){return bt(e)}function Rr(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...s}=t??{};return{...s,__resolveType:Ne,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:xe}}function $n(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Ln=1e3;function Sr(e,t){const n=$n(t);for(let r=0;r<Ln;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}function Vn(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,""),t=t.replace(/-\d{5,}$/,"");try{return decodeURIComponent(t)}catch{return t}}function Or(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const s=e.find(f=>f.key===n);if(s)return s;const o=e.find(f=>f.key.endsWith(`-${n}`));if(o)return o}if(r){const s=nt(e,r);if(s)return s}if(i){const s=nt(e,i);if(s)return s}return null}function nt(e,t,n){const r=yt;if(n){const s=e.find(o=>o.key===n);if(s)return s}const i=e.filter(s=>r(s.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((s,o)=>s.key.localeCompare(o.key))[0]??null}const ie="site",Tt="site/apps/site.ts";function Pe(e,t){return e===ie?!0:t.__resolveType===Tt}function Er(e,t){return e?At(e,t).length>0||Mn(e).length>0?!0:t?Un(e,t).length>0||In(e,t)?!0:Kn(e,t).length>0:!1:!1}function Dn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Ke(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:Vn(e),path:r.path}}function At(e,t){const n=[];for(const[r,i]of Object.entries(e)){const s=Dn(r,i,t);s&&n.push(s)}return n}function de(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>de(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>de(i,t,n+1))}function Cn(e,t,n){const r=At(e,n),i=new Set(r.map(o=>o.key)),s=new Set([t]);for(let o=!0;o;){o=!1;for(const[f,u]of Object.entries(e))s.has(f)||i.has(f)||de(u,s)&&(s.add(f),o=!0)}return r.filter(o=>o.key!==t&&de(e[o.key],s))}function wr(e,t,n){const r=s=>yt(s.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(s.path)?2:1,[i]=Cn(e,t,n).sort((s,o)=>r(s)-r(o)||(s.path<o.path?-1:s.path>o.path?1:0));return i??null}function kt(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function je(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ce(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const s=t.name.trim();if(s)return s}return e.replace(/[-_]/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function In(e,t){const n=e[ie];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(Pe(ie,r)||ft(t,i)))return{key:ie,name:je(ie,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;if(!Pe(r,s))continue;const o=typeof s.__resolveType=="string"?s.__resolveType:Tt;return{key:r,name:je(r,s,t),resolveType:o}}return null}function Kn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o=="string"&&(Ke(o,t)||typeof s.path!="string"&&(Pe(r,s)||!ft(t,o)&&!gn(o)||n.push({key:r,name:je(r,s,t),resolveType:o})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Un(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??kt(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const xn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Nn={posts:"post",categories:"category",authors:"author"},Rt=["post","category","author"];function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Pr(e,...t){const n=e?xn.exec(e)?.[1]:void 0;if(n)return Nn[n]??null;for(const r of t){if(!me(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const s=Rt.find(o=>me(r[o]));if(s)return s}return null}function Fn(...e){for(const t of e)if(me(t))for(const n of Rt){const r=t[n];if(me(r))for(const i of["title","name"]){const s=r[i];if(typeof s=="string"&&s.trim())return s.trim()}}return null}function Wn(e,t=xt){return t(`sectionsEditor.blogKind.${e}`)}function jr(e,t,n){return Fn(...t)??Wn(e,n)}function Yn(e){return e.includes("matchers")||e.includes("Match")}function St(e,t){const n=e.__resolveType;return typeof n!="string"||!n||hn(n,t)?!1:t?Nt(t,n):Yn(n)}function Br(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||!G(r,e)||$e(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;St(s,e)&&n.push({blockKey:r,matcherResolveType:s.__resolveType??"",name:typeof s.name=="string"?s.name:void 0})}return n.sort((r,i)=>(r.name??r.blockKey).localeCompare(i.name??i.blockKey))}function te(e,t,n){if(!e)return!1;const r=e.__resolveType;if(typeof r!="string"||!G(r,n)||!Object.hasOwn(t,r))return!1;const i=t[r];return!i||typeof i!="object"||Array.isArray(i)?!1:St(i,n)}function Mr(e,t,n){return te(e,t,n)?e?.__resolveType??null:null}function Ot(e,t,n){if(!e)return null;const r=e.__resolveType??"";if(!r)return null;if(te(e,t,n)){const o=t[r]??{},f=o.__resolveType??r,{__resolveType:u,name:l,...d}=o;return{resolveType:f,data:d,blockKey:r}}const{__resolveType:i,...s}=e;return{resolveType:r,data:s}}function qn(e,t,n){const r=Ot(e,t,n);return r?{__resolveType:r.resolveType,...r.data}:{__resolveType:""}}function $r(e,t,n){if(e)return te(e,t,n)?qn(e,t,n):e}function zn(e,t,n,r){if(!e)return"Default";if(te(e,t,r)){const i=e.__resolveType??"",s=t[i];return kt(i,s)}return n(e,en(t))}function Lr(e,t,n){return{__resolveType:e,...t,name:n}}function Vr(e){return{__resolveType:e}}function Dr(e,t,n){const r=Ot(e,t,n);return r?{resolveType:r.resolveType,formValue:r.data}:{resolveType:"",formValue:{}}}function Cr(e,t){const n={__resolveType:e};if(!e||!t)return n;const r=lt(e,t),i=r?.type==="inline-union"?r.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function Et(e){const t=[];for(let n=e;n?.key!=null;n=n.parent)t.push(n.key);return t.reverse()}function Be(e){return{blockKey:e.blockKey,path:Et(e)}}function wt(e,t,n){const r=[];for(const[s,o]of Object.entries(e))s!==t&&r.push({node:o,blockKey:s,parent:null,key:null});const i=new Set;for(;r.length>0;){const s=r.pop(),{node:o}=s;if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){o.forEach((f,u)=>{r.push({node:f,blockKey:s.blockKey,parent:s,key:u})});continue}n(o,s);for(const[f,u]of Object.entries(o))r.push({node:u,blockKey:s.blockKey,parent:s,key:f})}}}function Pt(e,t,n){if(!t)return[];const r=[];return wt(e,t,(i,s)=>{if(i.__resolveType!==t||!te(i,e,n))return;const o=jt(s);r.push({...Be(s),...o?{variant:o}:{}})}),r}function Hn(){return{experiments:{byName:new Map,wholeBlock:[]},campaigns:{byName:new Map,wholeBlock:[]}}}function jt(e){for(let t=e;t;t=t.parent){const n=t.parent,r=n?.parent,i=r?.parent;if(!n||!r||!i)return;if(t.key==="rule"&&typeof n.key=="number"&&r.key==="variants"&&Y(i.node)&&Ft(i.node.__resolveType)){const s=i.node.experiment;return{containerPath:Et(i),containerType:i.node.__resolveType,index:n.key,...typeof s=="string"?{experiment:s}:{}}}}}function Gn(e,t){const n=[],r=Hn(),i=new Set(ae.filter(l=>pe(e,l).kind!=="conflict"));wt(e,null,(l,d)=>{const b=Zt(l.__resolveType);if(b&&i.has(b)){r[b].wholeBlock.push({kind:b,...Be(d)});return}const $=on(l);$&&n.push({...$,location:Be(d),variant:jt(d)})});const s=l=>{const d=r[l.kind].byName,b=d.get(l.name);b?b.push(l):d.set(l.name,[l])},o=new Map,f=l=>{let d=o.get(l);return d||(d=Pt(e,l,t),o.set(l,d)),d},u=l=>te({__resolveType:l},e,t);for(const l of n){const{blockKey:d}=l.location,b=u(d);if(s({kind:l.kind,name:l.name,blockKey:d,path:l.location.path,...l.variant?{variant:l.variant}:{},via:[],savedRule:b}),!b)continue;const $=[{blockKey:d,via:[d]}],V=new Set([d]);for(;$.length>0;){const{blockKey:N,via:k}=$.shift();for(const C of f(N)){const B=C.blockKey;if(k.includes(B))continue;const E=u(B);s({kind:l.kind,name:l.name,blockKey:B,path:C.path,...C.variant?{variant:C.variant}:{},via:k,savedRule:E}),E&&!V.has(B)&&(V.add(B),$.push({blockKey:B,via:[B,...k]}))}}}return r}function Qn(e){return JSON.stringify([e.blockKey,...e.via])}function rt(e,t,n){const r=new Set(t.map(n)),i=new Set(e.map(n)),s=e.map(f=>({...f,state:r.has(n(f))?"published":"draft-only"})),o=new Set;for(const f of t){const u=n(f);i.has(u)||o.has(u)||(o.add(u),s.push({...f,state:"removed-in-draft"}))}return s}function Ir(e,t){const n={};for(const r of ae){const i=new Map,s=new Set([...e[r].byName.keys(),...t[r].byName.keys()]);for(const o of s)i.set(o,rt(e[r].byName.get(o)??[],t[r].byName.get(o)??[],Qn));n[r]={byName:i,wholeBlock:rt(e[r].wholeBlock,t[r].wholeBlock,o=>o.blockKey)}}return n}function Kr(e,t,n,r,i){const s=pe(e,t);if(s.kind!=="saved"||!r.trim()||n===r||!Object.hasOwn(s.values,n)||Object.hasOwn(s.block,r)||t==="experiments"&&!sn(s.values[n]))return null;const{blockKey:o}=Qt(t),f={[o]:fn(s.block,n,r)},u=Gn(e,i)[t].byName.get(n)??[];for(const l of u){if(l.via.length>0)continue;const d=f[l.blockKey]??e[l.blockKey];Y(d)&&(f[l.blockKey]=Xn(d,l.path,an(t,r)))}return{writes:f}}function Xn(e,t,n){const r=(i,s)=>{if(s===t.length)return Y(i)?{...i,...n}:i;const o=t[s];if(Array.isArray(i)&&typeof o=="number"){const f=i.slice();return f[o]=r(i[o],s+1),f}return Y(i)&&typeof o=="string"?{...i,[o]:r(i[o],s+1)}:i};return r(e,0)}function Ur(e,t){const n={...e};for(const[r,i]of Object.entries(t))i.kind!==null&&(i.before!==null?n[r]=i.before:i.baseVersion===null&&delete n[r]);return n}function Zn(e){for(const t of e.anyOfRefs??[]){if(t.resolveType!==ve&&t.resolveType!==ee)continue;const n=t.schema?.properties?.variants?.items?.properties?.value,r=n?.lazy?n.properties?.value:n;if(r?.type==="array")return r}}function xr(e){return Zn(e)!==void 0}function Nr(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return Array.isArray(n.variants)?n.__resolveType===it?!0:t&&n.__resolveType===ee&&!Bt(n.variants):!1}function Bt(e){return e.some(t=>Array.isArray(ge(t)))}function Mt(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return n.__resolveType===ve?!0:t&&n.__resolveType===ee&&Array.isArray(n.variants)&&Bt(n.variants)}function Fr(e,t){if(!Mt(e,t))return null;const n=e.variants;if(!Array.isArray(n))return null;const r=se(n[0],t);return Array.isArray(r)?r:null}function Wr(e,t,n,r){if(!Mt(e,r))return t;const i=structuredClone(e),s=[...i.variants??[]];return s.length===0?s.push({rule:ot(n),value:st(i.__resolveType,t)}):s[0]=zt(i.__resolveType,s[0],t),{...i,variants:s}}function Yr(e,t){const r=e[t]?.sections;if(!r||Array.isArray(r))return 1;const i=r;return Array.isArray(i.variants)?i.variants.length:1}function qr(e,t,n){const i=e[t]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const s=i.variants;if(Array.isArray(s)){const o=ge(s[n]);return Array.isArray(o)?o:[]}}return[]}function zr(e,t,n){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const r=e;if(Array.isArray(r.variants)){const i=r.variants,s=i.map(u=>zn(u.rule,t,n)),o=s.reduce((u,l)=>(u[l]=(u[l]??0)+1,u),{}),f={};return i.map((u,l)=>{const d=s[l]??`Variant ${l+1}`,b=o[d]??1;let $=d;b>1&&(f[d]=(f[d]??0)+1,$=`${d} ${f[d]}`);const V=ge(u);return{label:$||`Variant ${l+1}`,sections:Array.isArray(V)?V:[],rule:u.rule}})}}return[]}function Oe(e,t,n){return{rule:ot(t),value:st(n,e)}}function Me(e,t){return e?e.__resolveType===ee?ee:ve:Yt(t)}function oe(e,t,n){return{...t,__resolveType:Me(t,n),variants:e}}function Hr(e,t,n,r=!1){const i=structuredClone(t);if(e&&typeof e=="object"&&!Array.isArray(e)){const u=e;if(!Array.isArray(u.variants))return null;const l=[...u.variants],d=Wt(l,r);return l.splice(d,0,Oe(i,n,Me(u))),{sections:oe(l,u),newVariantIndex:d}}const s=Me(void 0,n),o=Oe(Array.isArray(e)?e:[],n,s),f=Oe(i,n,s);return{sections:oe(r?[f,o]:[o,f],void 0,n),newVariantIndex:r?0:1}}function Gr(e,t,n=!1){const r=e[t];if(!r)return null;const i=[...e];return i.splice(Ht(e,t,n),0,structuredClone(r)),i}function Qr(e,t){if(t.length===0)return oe([],e);if(t.length===1){const n=t[0],r=n?.rule;if(!qt(r))return oe(t,e);const i=ge(n);if(Array.isArray(i))return i}return oe(t,e)}function Xr(e,t,n){return Pt(e,t,n).length}function Ee(e,t,n){const r=n[e];return typeof r?.name=="string"&&r.name||e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${t+1}`}function Zr(e,t,n=!1){return e.map((r,i)=>{const s=r.__resolveType??"",o=ue(s);if(!o&&s!==""&&G(s)&&s in t)return{index:i,resolveType:s,label:Ee(s,i,t),isLazy:!1,isSavedBlock:!0};const f=o?r.section:void 0,u=o?f?.__resolveType??"":s;if(Je(u,n)){const d=o?f:r,b=Array.isArray(d?.variants)?d.variants:[];if(b.length===1&&Gt(b[0]?.rule?.__resolveType,n)){const N=se(b[0],n)??{};let k=N.__resolveType??"";const C=ue(k);let B=N;if(C){const E=N.section;k=E?.__resolveType??k,E&&(B=E)}if(Je(k,n)){const E=Array.isArray(B.variants)?B.variants:[],ne=se(E[0],n)?.__resolveType,ce=ne?x(ne):"Section";return{index:i,resolveType:s,label:`Variants of ${ce}`,variantOf:ce,isHidden:!0,isLazy:C}}return k!==""&&G(k)&&k in t?{index:i,resolveType:s,label:Ee(k,i,t),isHidden:!0,isLazy:C,isSavedBlock:!0}:{index:i,resolveType:s,label:x(k)||`Section ${i+1}`,isHidden:!0,isLazy:C}}const $=se(b[0],n)?.__resolveType,V=$?x($):"Section";return{index:i,resolveType:s,label:`Variants of ${V}`,variantOf:V,isMultivariate:!0,isLazy:o}}const l=o?r.section?.__resolveType??s:s;return o&&l!==""&&G(l)&&l in t?{index:i,resolveType:s,label:Ee(l,i,t),isLazy:!0,isSavedBlock:!0}:{index:i,resolveType:s,label:x(l)||`Section ${i+1}`,isLazy:o}})}export{Dr as $,kr as A,Or as B,In as C,Mn as D,_r as E,Yr as F,Hr as G,Sr as H,Rr as I,hn as J,kn as K,gr as L,we as M,ae as N,Ie as O,xr as P,fr as Q,wn as R,Tt as S,Br as T,qn as U,Vr as V,$r as W,zr as X,hr as Y,zn as Z,Mr as _,pr as a,on as a0,te as a1,Lr as a2,Cr as a3,Nr as a4,Mt as a5,Fr as a6,Wr as a7,Zn as a8,Tr as a9,Qr as aA,Xr as aB,Gr as aC,En as aD,lr as aa,ur as ab,Dn as ac,Vn as ad,Zt as ae,Pr as af,jr as ag,Wn as ah,mt as ai,pe as aj,sr as ak,Qt as al,an as am,rr as an,or as ao,Fn as ap,Gn as aq,Ur as ar,Ir as as,sn as at,ar as au,ir as av,Kr as aw,rn as ax,br as ay,Ot as az,Un as b,nt as c,nr as d,At as e,vr as f,qr as g,Er as h,vt as i,wr as j,cr as k,Pe as l,gn as m,yt as n,je as o,Zr as p,Ce as q,en as r,mr as s,Ar as t,dr as u,yr as v,lt as w,kt as x,tr as y,gt as z};
1
+ import{bh as W,fy as Kt,fz as ve,bH as Ze,bK as Ut,bJ as x,c5 as $e,fA as Le,bc as se,bd as ue,f3 as it,bF as ee,bA as G,bS as xt,fB as Nt,f8 as Ft,bL as ge,bX as Wt,bE as st,bV as ot,bC as Yt,bW as qt,bR as zt,bY as Ht,ba as Je,bb as Gt}from"./index-BijXK1UR.js";const F={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},ae=["experiments","campaigns"];function Qt(e){return F[e]}function Xt(e){for(const t of ae)if(F[t].matcher===e)return t;return null}function tr(e){for(const t of ae)if(F[t].resolveType===e)return t;return null}function Zt(e){for(const t of ae)if(F[t].blockKey===e)return t;return null}const Jt="deco";function nr(e,t){if(!W(e))return"missing";const n=F[t],r=et(e,n.resolveType),i=et(e,n.matcher);if(!r||!i)return"missing";const s=o=>o.namespace===void 0||o.namespace===Jt;return s(r)&&s(i)?"available":"replaced"}function et(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function pe(e,t){const n=F[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=Y(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const s=r,o=Object.create(null),f=[];for(const[u,l]of Object.entries(s)){if(u==="__resolveType")continue;const d=t==="experiments"?tn(l):nn(l);d===null?f.push(u):o[u]=d}return{kind:"saved",block:s,values:o,invalid:f}}function rr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function ir(e){return e.kind==="conflict"?[]:Object.keys(e.block).filter(t=>t!=="__resolveType")}function en(e){const t=pe(e,"experiments"),n=pe(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function tn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function nn(e){if(!Y(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function rn(e){return e<=0?"off":e>=100?"everyone":"running"}function sn(e){return e===void 0||rn(e)!=="running"}function on(e){if(!Y(e))return null;const t=Xt(e.__resolveType);if(!t)return null;const n=e[F[t].field];return typeof n=="string"?{kind:t,name:n}:null}function an(e,t){const n=F[e];return{__resolveType:n.matcher,[n.field]:t}}const cn="date";function sr(e){return Y(e)&&e.__resolveType===cn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function or(e,t,n,r){return{...e,__resolveType:F[t].resolveType,[n]:r}}function ar(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function fn(e,t,n){if(t===n||t==="__resolveType"||n==="__resolveType"||!Object.hasOwn(e,t)||Object.hasOwn(e,n))return e;const r={};for(const[i,s]of Object.entries(e))r[i===t?n:i]=s;return r}function Y(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}const ln=new Set(["split-traffic","calendar"]);function un(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const pn=12,yn=8,Se=32,dn=40,mn="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function tt(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const vn="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function at(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ve(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function De(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ct(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function _e(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ve(e)??De(e);if(r){for(const f of ct(r.vendor,r.app))for(const u of Object.values(n))if(u[f])return u[f]}const i=at(e);for(const f of Object.values(n))if(f[i])return f[i];const s=t.schema??{};return(s.$defs??s.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function cr(e,t){return Object.keys(_e(e,t)).length>0}function ft(e,t){if(Kt(e,t))return!0;const n=Ve(t)??De(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ct(n.vendor,n.app).some(o=>o in r))return!0;const i=at(t),s=e.schema?.$defs??e.schema?.definitions??{};return i in s}function gn(e){return e==="site/apps/site.ts"?!1:Ve(e)!==null||De(e)!==null}function lt(e,t){return ut(t,{resolveType:e})}function fr(e,t){return ut(t,{ref:e})}function ut(e,t){const n=e.schema??{},r="resolveType"in t?_e(t.resolveType,e):{},i=n.$defs??n.definitions??{},s=n.root??{},o=a=>{if(a.startsWith("#/root/")){const c=a.slice(7);return s[c]??{}}const g=a.split("/").pop()??"",_=i[g];return _||(g===mn?s.sections??{}:{})};let f;typeof r.$ref=="string"?f=o(r.$ref):Object.keys(r).length>0?f=r:f=n;const u=a=>typeof a.$ref=="string"?o(a.$ref):a,l=a=>{const _=u(a).properties?.type;if(_){if(typeof _.const=="string")return _.const;if(typeof _.default=="string")return _.default;if(Array.isArray(_.enum)&&typeof _.enum[0]=="string")return _.enum[0]}},d=(a,g)=>{const _=u(a);return typeof _.title=="string"&&!_.title.startsWith("#")?_.title:g},b=(a,g=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const _=a.$ref.split("/").pop()??"";return!_||g.has(_)?a:b(o(a.$ref),new Set([...g,_]))},$=a=>{const g=a.properties?.__resolveType?.enum;return Array.isArray(g)&&typeof g[0]=="string"?g[0]:void 0},V=a=>$(a)!==void 0,N=(a,g=new Set)=>{if(typeof a.$ref!="string")return[];const _=a.$ref.split("/").pop()??"";if(!_||g.has(_))return[];const c=o(a.$ref),L=c.anyOf??c.oneOf;if(!Array.isArray(L))return[];const j=new Set([...g,_]);return L.flatMap(M=>V(M)?[M]:N(M,j))},k=a=>{const g=a.hide;return g===!0||g==="true"},C=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),B=(a,g=new Set,_=0)=>{if(_>pn)return{};if(typeof a.$ref=="string"){const L=a.$ref.split("/").pop()??"";return g.has(L)?{}:B(o(a.$ref),new Set([...g,L]),_+1)}let c={};a.properties&&typeof a.properties=="object"&&(c={...c,...a.properties}),Array.isArray(a.required)&&(c.__required=[...J(c.__required),...J(a.required)]);for(const L of["allOf","anyOf","oneOf"]){const j=a[L];if(Array.isArray(j))for(const M of j){const K=J(c.__required),q=B(M,g,_+1);c={...c,...q};const I=L==="allOf"?[...K,...J(q.__required)]:K;I.length>0?c.__required=I:delete c.__required}}return c},E=(a,g=0,_=new Set)=>{let c=a,L;if(typeof a.$ref=="string"){c=o(a.$ref);const w=a.$ref.split("/").pop()??"";L=w,w===vn&&!c.format&&(c={...c,format:"video-uri"})}c=b(c);const j=L!==void 0&&_.has(L),M=L!==void 0?new Set([..._,L]):_,K=(w,v,R,S=!0)=>!j&&(!S||R<=dn)&&v<yn?E(w,v,M):void 0;let q;{const w=c.anyOf??c.oneOf;if(Array.isArray(w)){const v=w.filter(S=>!(S.type==="null"||S.type===null)),R=S=>{if(typeof S.const=="string"||typeof S.const=="number")return S.const;if(Array.isArray(S.enum)&&S.enum.length===1&&(typeof S.enum[0]=="string"||typeof S.enum[0]=="number"))return S.enum[0]};v.length>0&&v.every(S=>R(S)!==void 0)&&(q=v.map(S=>R(S)))}}let I,re,Ye=!1;if(c.type)I=Array.isArray(c.type)?String(c.type.find(w=>w!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const v=(c.anyOf??c.oneOf).filter(R=>!(R.type==="null"||R.type===null));if(v.length===0)I="null";else if(v.length===1){const R=v[0];re=R,I=R.type?Array.isArray(R.type)?String(R.type[0]):String(R.type):typeof R.$ref=="string"?"object":"string"}else{if(q){const y=p=>typeof a[p]=="string"?a[p]:typeof c[p]=="string"?c[p]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:q,format:y("format"),options:y("options")}}const R=v.filter(V),S=v.map(y=>b(y)).find(le),X=y=>{if(typeof y.$ref!="string")return;const p=b(y),m=p.anyOf??p.oneOf;if(!Array.isArray(m))return;const h=[...m.filter(V),...m.filter(A=>!V(A)).flatMap(A=>N(A))],P=m.filter(A=>{if(V(A)||A.type==="null")return!1;const D=u(A),U=D.properties;return!U?.__resolveType&&!D.anyOf&&!D.oneOf&&(D.type==="object"||!!U)});return h.length>0&&P.length>0?{data:P,loaders:h}:void 0},Z=v.flatMap(y=>{const p=X(y);return p?[p]:[]}),Lt=Z.length===0&&v.filter(y=>!le(b(y))).every(y=>typeof y.$ref=="string"||R.includes(y)),Vt=R.some(y=>{const p=y.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===ve||W(e)&&p[0]==="multivariate")}),Ae=(y=[])=>{const p=new Map;for(const O of[...R,...v.filter(T=>!R.includes(T)).flatMap(T=>N(T)),...y]){const T=$(O);T&&!p.has(T)&&p.set(T,O)}const m=[...p].map(([O,T])=>({resolveType:O,title:typeof T.title=="string"?T.title:x(O),description:typeof T.description=="string"?T.description:void 0,schema:K(T,g+1,p.size)})),h=[];for(const O of v){if(R.includes(O)||typeof O.$ref!="string")continue;const T=o(O.$ref);let z;const H=T.properties?.__resolveType;if(Array.isArray(H?.enum)&&typeof H.enum[0]=="string"&&(z=H.enum[0]),!z&&Array.isArray(T.allOf))for(const It of T.allOf){const Re=It.properties?.__resolveType?.enum;if(Array.isArray(Re)&&typeof Re[0]=="string"){z=Re[0];break}}z&&h.push({resolveType:z,title:typeof T.title=="string"&&!T.title.startsWith("#")?T.title:x(z),description:typeof T.description=="string"?T.description:void 0,schema:K(T,g+1,v.length)})}const P=new Set(m.map(O=>O.resolveType)),A=[...m,...h.filter(O=>!P.has(O.resolveType))],D=v.filter(O=>!R.includes(O)),U=D.length===1&&!j?E(D[0],g+1,M):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:A,plainSchema:U,hidden:k(c)||k(a)?!0:void 0}};if(S){const y=!tt(S,o);if(y&&Z.length>0){const p=typeof a.title=="string"?a.title:typeof c.title=="string"&&!C(c.title)?c.title:void 0,m=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,h=v.find(A=>le(b(A))),P=Z.flatMap(A=>A.data);return{type:"inline-union",title:p,description:m,inlineUnionBranches:[...P.map((A,D)=>({title:d(A,`Option ${D+1}`),schema:E(A,g+1,M)})),{title:d(h,`Option ${P.length+1}`),schema:E(S,g+1,M)}],loaderRef:{...Ae(Z.flatMap(A=>A.loaders)),title:p,description:m},hidden:k(c)||k(a)?!0:void 0}}if(y&&v.length>1&&Lt){const p=E(S,g+1,M),m=typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:p.title,h=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:p.description;return{...p,type:"array",title:m,description:h,loaderRef:R.length>0?{...Ae(),title:m,description:h}:void 0}}if(Vt){const p=E(S,g+1,M);return{...p,type:"array",title:typeof c.title=="string"?c.title:p.title,description:typeof c.description=="string"?c.description:p.description}}}if(R.length>0)return Ae();const He=y=>{const p=u(y);if(typeof p.title=="string"&&Ze(p.title))return!0;const m=p.properties?.__resolveType?.enum;if(Array.isArray(m)&&typeof m[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const P=h.properties?.__resolveType?.enum;if(Array.isArray(P)&&typeof P[0]=="string")return!0}return!1},Ge=v.map(y=>l(y));if(v.length>1&&Ge.every(y=>typeof y=="string")&&!v.some(He)){const y=v.map((p,m)=>{const h=u(p),P=Ge[m];return{resolveType:P,title:d(p,P),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:P,schema:K(h,g+1,v.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:k(c)||k(a)?!0:void 0}}const ke=y=>{if(He(y))return!1;const p=u(y);return p.type==="object"||!!p.properties},Dt=y=>{const p=b(y);return le(p)?!tt(p,o):!1},Qe=g<Se&&v.every(y=>ke(y)||Dt(y))&&v.some(ke),Xe=v.every(y=>typeof y.$ref=="string"),Ct=W(e)&&!Xe&&v.some(y=>typeof y.$ref=="string"&&ln.has(un(o(y.$ref))))&&v.every(y=>typeof y.$ref=="string"||ke(y));if((Xe||Ct)&&!Qe){const y=[];for(const p of v){if(typeof p.$ref!="string")continue;const m=o(p.$ref);let h,P,A=!1;if(typeof m.title=="string"){const O=Ze(m.title);O&&(h=O.blockId,P=O.blockId)}if(!h&&Array.isArray(m.allOf))for(const O of m.allOf){const H=((O.properties??{}).__resolveType??{}).enum;if(Array.isArray(H)&&typeof H[0]=="string"){h=H[0],A=!0;break}}if(!h){const T=m.properties?.__resolveType?.enum;Array.isArray(T)&&typeof T[0]=="string"&&(h=T[0],A=!0)}h||(h=p.$ref.split("/").pop()??"");const D=h.includes("/")||A&&!Ut(h),U=D?void 0:l(p);!U&&!D||A&&h==="lazy"||y.push({resolveType:U??h,title:P??(typeof m.title=="string"&&!m.title.startsWith("#")?m.title:x(h)),description:typeof m.description=="string"?m.description:void 0,discriminatorValue:U,schema:K(m,g+1,v.length)})}return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:k(c)||k(a)?!0:void 0}}if(Qe){const y=m=>{if(typeof m.const=="string"||typeof m.const=="number"||typeof m.const=="boolean")return m.const;if(Array.isArray(m.enum)&&m.enum.length===1&&(typeof m.enum[0]=="string"||typeof m.enum[0]=="number"||typeof m.enum[0]=="boolean"))return m.enum[0]},p=v.map((m,h)=>{const P=u(m).properties??{},A={};for(const[D,U]of Object.entries(P)){const O=y(U);O!==void 0&&(A[D]=O)}return{title:d(m,`Option ${h+1}`),schema:E(m,g+1),discriminators:Object.keys(A).length?A:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:p,hidden:k(c)||k(a)?!0:void 0}}I="object"}}else c.allOf?(I="object",Ye=C(c.title)):typeof a.$ref=="string"&&(I="object");let fe,qe,ze=!1;if(g<Se&&!j){const w=B(c),v=w.__resolveType?.enum;ze=Array.isArray(v)&&v.length===1&&v[0]==="lazy";const R=J(w.__required);R.length>0&&(qe=R);const S=Object.entries(w).filter(([X])=>!X.startsWith("__")&&X!=="@type");if(S.length>0){fe={};for(const[X,Z]of S)fe[X]=E(Z,g+1,M)}}let Te;if((I==="array"||c.type==="array")&&g<Se&&!j){const w=c.items;if(w){Te=E(w,g+1,M);const v=u(w);typeof v.title=="string"&&v.title.includes("{{")&&(Te.titleBy=v.title)}}const Q=w=>{const v=re?.[w];return typeof v=="string"?v:void 0},$t=()=>{if("default"in a)return a.default;if("default"in c)return c.default;if(re&&"default"in re)return re.default};return{type:I??"string",title:typeof a.title=="string"?a.title:!Ye&&typeof c.title=="string"?c.title:Q("title"),description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:Q("description"),default:$t(),enum:Array.isArray(c.enum)?c.enum:q??void 0,format:typeof a.format=="string"?a.format:typeof c.format=="string"?c.format:Q("format"),properties:fe,required:qe,items:Te,lazy:ze&&fe?.value?!0:void 0,recursiveRef:j&&typeof a.$ref=="string"&&(I==="object"||I==="array"||c.type==="array")?a.$ref:void 0,hidden:k(c)||k(a)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:Q("titleBy"),image:typeof c.image=="string"?c.image:Q("image"),options:typeof a.options=="string"?a.options:typeof c.options=="string"?c.options:Q("options")}};if("ref"in t)return E({$ref:t.ref});const ne=f.properties??{},ce=Object.keys(ne).every(a=>a.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ce){const a=ne.__resolveType,g=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const _ of f.allOf){const c=b(_);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const j=E(c,0);if(j.type==="inline-union"&&j.inlineUnionBranches){const M=C(j.title);return{...j,title:M?void 0:j.title,inlineUnionBranches:g?j.inlineUnionBranches.map(K=>({...K,discriminators:{...K.discriminators??{},__resolveType:g}})):j.inlineUnionBranches}}}}const Fe=B(f),be={};for(const[a,g]of Object.entries(Fe))a.startsWith("__")||a==="@type"||(be[a]=E(g,0));if(Object.keys(be).length===0)return null;const We=J(Fe.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:be,required:We.length>0?We:void 0}}function lr(e,t){const n=t.schema??{},r=_e(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,o=s.properties??{};if(Object.keys(o).some(l=>!l.startsWith("__")))return!1;if(s.additionalProperties===!0)return!0;const u=o.__resolveType;return!!u&&Array.isArray(u.enum)&&u.enum[0]===e}function ur(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[s,o]of Object.entries(r))s.startsWith("__")||(i[s]=t(o));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ce(e,t){const n=t.schema??{},r=_e(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},o=s.icon,f=s.logo,u=s,l=b=>b===!0||b==="true",d=l(u.hide)||l(u.ignore)||l(u.unlisted);return{title:typeof s.title=="string"?s.title:void 0,description:typeof s.description=="string"?s.description:void 0,icon:typeof o=="string"?o:void 0,logo:typeof f=="string"?f:void 0,hidden:d||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],_n=new Set(pt);function Ie(e){return _n.has(e)}function Ke(e,t){return Ie(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function hn(e,t){return Ke(e,W(t)?t:void 0)}function yt(e){return e.replace(/\/+$/,"")||"/"}function pr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function bn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function yr(e){const t=e.trim();return t?bn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ue=/:([A-Za-z0-9_-]+)|\*/g;function dr(e){const t=[];for(const n of e.matchAll(Ue)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function dt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function mr(e){e=dt(e);const t=[];let n=0;for(const r of e.matchAll(Ue))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function vr(e,t){return dt(e).replace(Ue,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const mt=pt[0],Tn=new Set(["site/sections/Theme/Theme.tsx"]);function An(e,t){return Tn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(An(e,W(t))||ue(e)||e.toLowerCase().includes("preview"))}function vt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ie(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":mt}function kn(e){return W(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function gr(e){return e?kn(e)?"page":vt(e):mt}function we(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return we(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...we(n));return t}return[]}function Rn(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i)){if(he(s,e))continue;const o=Ce(s,e);n.push({resolveType:s,title:o.title??x(s),description:o.description,previewBlock:s,isSavedBlock:!1})}return n}function _r(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i))he(s,e)||n.has(s)||n.set(s,{resolveType:s,title:x(s)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function gt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=W(e);if(!_t(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const s of i){const o=se(s,r);if(!o||typeof o!="object")continue;let f=o.__resolveType;if(typeof f=="string"&&ue(f)&&(f=o.section?.__resolveType??f),typeof f=="string"&&Le(e,f))return f}return n}function _t(e,t){return e===it||t&&e===ee}function Sn(e,t){return gt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||$e(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o!="string"||Ie(o)||typeof s.path=="string"||he(o,e)||!(Le(e,o)||_t(o,W(e))&&Sn(e,s))||n.push({resolveType:r,title:r,description:typeof s.name=="string"?s.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function On(e,t){const n=G(t.resolveType,e),r=n?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||x(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function hr(e,t){const n=vt(e),r=lt(n,e),i=we(r?.properties?.sections),s=new Map,o=f=>{if(!he(f.resolveType,e)){if(G(f.resolveType,e)){$e(f.resolveType)||s.set(f.resolveType,f);return}Le(e,f.resolveType)&&(s.has(f.resolveType)||s.set(f.resolveType,f))}};for(const f of Rn(e))o(f);for(const f of i)o(On(e,f));for(const f of ht(e,t))o(f);return[...s.values()].sort((f,u)=>f.title.localeCompare(u.title))}function br(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const xe="website/loaders/redirect.ts",Tr=new Set([xe,"website/loaders/redirects.ts"]),Ne="redirect",En=[301,302,307,308],wn={temporary:307,permanent:301};function Ar(e){return e.flat?e.status??(e.type==="permanent"?301:302):wn[e.type]}const ye=e=>typeof e=="string"?e:"",Pn=e=>e==="permanent"?"permanent":"temporary",jn=e=>En.find(t=>t===e);function Bn(e){const t=jn(e.status);return{from:ye(e.from),to:ye(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function bt(e){if(e?.__resolveType===Ne)return Bn(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ye(t.from),to:ye(t.to),type:Pn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Mn(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==xe&&i.__resolveType!==Ne||t.push({key:n,...bt(i)})}return t}function kr(e){return bt(e)}function Rr(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...s}=t??{};return{...s,__resolveType:Ne,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:xe}}function $n(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Ln=1e3;function Sr(e,t){const n=$n(t);for(let r=0;r<Ln;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}function Vn(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,""),t=t.replace(/-\d{5,}$/,"");try{return decodeURIComponent(t)}catch{return t}}function Or(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const s=e.find(f=>f.key===n);if(s)return s;const o=e.find(f=>f.key.endsWith(`-${n}`));if(o)return o}if(r){const s=nt(e,r);if(s)return s}if(i){const s=nt(e,i);if(s)return s}return null}function nt(e,t,n){const r=yt;if(n){const s=e.find(o=>o.key===n);if(s)return s}const i=e.filter(s=>r(s.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((s,o)=>s.key.localeCompare(o.key))[0]??null}const ie="site",Tt="site/apps/site.ts";function Pe(e,t){return e===ie?!0:t.__resolveType===Tt}function Er(e,t){return e?At(e,t).length>0||Mn(e).length>0?!0:t?Un(e,t).length>0||In(e,t)?!0:Kn(e,t).length>0:!1:!1}function Dn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Ke(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:Vn(e),path:r.path}}function At(e,t){const n=[];for(const[r,i]of Object.entries(e)){const s=Dn(r,i,t);s&&n.push(s)}return n}function de(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>de(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>de(i,t,n+1))}function Cn(e,t,n){const r=At(e,n),i=new Set(r.map(o=>o.key)),s=new Set([t]);for(let o=!0;o;){o=!1;for(const[f,u]of Object.entries(e))s.has(f)||i.has(f)||de(u,s)&&(s.add(f),o=!0)}return r.filter(o=>o.key!==t&&de(e[o.key],s))}function wr(e,t,n){const r=s=>yt(s.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(s.path)?2:1,[i]=Cn(e,t,n).sort((s,o)=>r(s)-r(o)||(s.path<o.path?-1:s.path>o.path?1:0));return i??null}function kt(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function je(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ce(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const s=t.name.trim();if(s)return s}return e.replace(/[-_]/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function In(e,t){const n=e[ie];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(Pe(ie,r)||ft(t,i)))return{key:ie,name:je(ie,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;if(!Pe(r,s))continue;const o=typeof s.__resolveType=="string"?s.__resolveType:Tt;return{key:r,name:je(r,s,t),resolveType:o}}return null}function Kn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o=="string"&&(Ke(o,t)||typeof s.path!="string"&&(Pe(r,s)||!ft(t,o)&&!gn(o)||n.push({key:r,name:je(r,s,t),resolveType:o})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Un(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??kt(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const xn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Nn={posts:"post",categories:"category",authors:"author"},Rt=["post","category","author"];function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Pr(e,...t){const n=e?xn.exec(e)?.[1]:void 0;if(n)return Nn[n]??null;for(const r of t){if(!me(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const s=Rt.find(o=>me(r[o]));if(s)return s}return null}function Fn(...e){for(const t of e)if(me(t))for(const n of Rt){const r=t[n];if(me(r))for(const i of["title","name"]){const s=r[i];if(typeof s=="string"&&s.trim())return s.trim()}}return null}function Wn(e,t=xt){return t(`sectionsEditor.blogKind.${e}`)}function jr(e,t,n){return Fn(...t)??Wn(e,n)}function Yn(e){return e.includes("matchers")||e.includes("Match")}function St(e,t){const n=e.__resolveType;return typeof n!="string"||!n||hn(n,t)?!1:t?Nt(t,n):Yn(n)}function Br(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||!G(r,e)||$e(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;St(s,e)&&n.push({blockKey:r,matcherResolveType:s.__resolveType??"",name:typeof s.name=="string"?s.name:void 0})}return n.sort((r,i)=>(r.name??r.blockKey).localeCompare(i.name??i.blockKey))}function te(e,t,n){if(!e)return!1;const r=e.__resolveType;if(typeof r!="string"||!G(r,n)||!Object.hasOwn(t,r))return!1;const i=t[r];return!i||typeof i!="object"||Array.isArray(i)?!1:St(i,n)}function Mr(e,t,n){return te(e,t,n)?e?.__resolveType??null:null}function Ot(e,t,n){if(!e)return null;const r=e.__resolveType??"";if(!r)return null;if(te(e,t,n)){const o=t[r]??{},f=o.__resolveType??r,{__resolveType:u,name:l,...d}=o;return{resolveType:f,data:d,blockKey:r}}const{__resolveType:i,...s}=e;return{resolveType:r,data:s}}function qn(e,t,n){const r=Ot(e,t,n);return r?{__resolveType:r.resolveType,...r.data}:{__resolveType:""}}function $r(e,t,n){if(e)return te(e,t,n)?qn(e,t,n):e}function zn(e,t,n,r){if(!e)return"Default";if(te(e,t,r)){const i=e.__resolveType??"",s=t[i];return kt(i,s)}return n(e,en(t))}function Lr(e,t,n){return{__resolveType:e,...t,name:n}}function Vr(e){return{__resolveType:e}}function Dr(e,t,n){const r=Ot(e,t,n);return r?{resolveType:r.resolveType,formValue:r.data}:{resolveType:"",formValue:{}}}function Cr(e,t){const n={__resolveType:e};if(!e||!t)return n;const r=lt(e,t),i=r?.type==="inline-union"?r.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function Et(e){const t=[];for(let n=e;n?.key!=null;n=n.parent)t.push(n.key);return t.reverse()}function Be(e){return{blockKey:e.blockKey,path:Et(e)}}function wt(e,t,n){const r=[];for(const[s,o]of Object.entries(e))s!==t&&r.push({node:o,blockKey:s,parent:null,key:null});const i=new Set;for(;r.length>0;){const s=r.pop(),{node:o}=s;if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){o.forEach((f,u)=>{r.push({node:f,blockKey:s.blockKey,parent:s,key:u})});continue}n(o,s);for(const[f,u]of Object.entries(o))r.push({node:u,blockKey:s.blockKey,parent:s,key:f})}}}function Pt(e,t,n){if(!t)return[];const r=[];return wt(e,t,(i,s)=>{if(i.__resolveType!==t||!te(i,e,n))return;const o=jt(s);r.push({...Be(s),...o?{variant:o}:{}})}),r}function Hn(){return{experiments:{byName:new Map,wholeBlock:[]},campaigns:{byName:new Map,wholeBlock:[]}}}function jt(e){for(let t=e;t;t=t.parent){const n=t.parent,r=n?.parent,i=r?.parent;if(!n||!r||!i)return;if(t.key==="rule"&&typeof n.key=="number"&&r.key==="variants"&&Y(i.node)&&Ft(i.node.__resolveType)){const s=i.node.experiment;return{containerPath:Et(i),containerType:i.node.__resolveType,index:n.key,...typeof s=="string"?{experiment:s}:{}}}}}function Gn(e,t){const n=[],r=Hn(),i=new Set(ae.filter(l=>pe(e,l).kind!=="conflict"));wt(e,null,(l,d)=>{const b=Zt(l.__resolveType);if(b&&i.has(b)){r[b].wholeBlock.push({kind:b,...Be(d)});return}const $=on(l);$&&n.push({...$,location:Be(d),variant:jt(d)})});const s=l=>{const d=r[l.kind].byName,b=d.get(l.name);b?b.push(l):d.set(l.name,[l])},o=new Map,f=l=>{let d=o.get(l);return d||(d=Pt(e,l,t),o.set(l,d)),d},u=l=>te({__resolveType:l},e,t);for(const l of n){const{blockKey:d}=l.location,b=u(d);if(s({kind:l.kind,name:l.name,blockKey:d,path:l.location.path,...l.variant?{variant:l.variant}:{},via:[],savedRule:b}),!b)continue;const $=[{blockKey:d,via:[d]}],V=new Set([d]);for(;$.length>0;){const{blockKey:N,via:k}=$.shift();for(const C of f(N)){const B=C.blockKey;if(k.includes(B))continue;const E=u(B);s({kind:l.kind,name:l.name,blockKey:B,path:C.path,...C.variant?{variant:C.variant}:{},via:k,savedRule:E}),E&&!V.has(B)&&(V.add(B),$.push({blockKey:B,via:[B,...k]}))}}}return r}function Qn(e){return JSON.stringify([e.blockKey,...e.via])}function rt(e,t,n){const r=new Set(t.map(n)),i=new Set(e.map(n)),s=e.map(f=>({...f,state:r.has(n(f))?"published":"draft-only"})),o=new Set;for(const f of t){const u=n(f);i.has(u)||o.has(u)||(o.add(u),s.push({...f,state:"removed-in-draft"}))}return s}function Ir(e,t){const n={};for(const r of ae){const i=new Map,s=new Set([...e[r].byName.keys(),...t[r].byName.keys()]);for(const o of s)i.set(o,rt(e[r].byName.get(o)??[],t[r].byName.get(o)??[],Qn));n[r]={byName:i,wholeBlock:rt(e[r].wholeBlock,t[r].wholeBlock,o=>o.blockKey)}}return n}function Kr(e,t,n,r,i){const s=pe(e,t);if(s.kind!=="saved"||!r.trim()||n===r||!Object.hasOwn(s.values,n)||Object.hasOwn(s.block,r)||t==="experiments"&&!sn(s.values[n]))return null;const{blockKey:o}=Qt(t),f={[o]:fn(s.block,n,r)},u=Gn(e,i)[t].byName.get(n)??[];for(const l of u){if(l.via.length>0)continue;const d=f[l.blockKey]??e[l.blockKey];Y(d)&&(f[l.blockKey]=Xn(d,l.path,an(t,r)))}return{writes:f}}function Xn(e,t,n){const r=(i,s)=>{if(s===t.length)return Y(i)?{...i,...n}:i;const o=t[s];if(Array.isArray(i)&&typeof o=="number"){const f=i.slice();return f[o]=r(i[o],s+1),f}return Y(i)&&typeof o=="string"?{...i,[o]:r(i[o],s+1)}:i};return r(e,0)}function Ur(e,t){const n={...e};for(const[r,i]of Object.entries(t))i.kind!==null&&(i.before!==null?n[r]=i.before:i.baseVersion===null&&delete n[r]);return n}function Zn(e){for(const t of e.anyOfRefs??[]){if(t.resolveType!==ve&&t.resolveType!==ee)continue;const n=t.schema?.properties?.variants?.items?.properties?.value,r=n?.lazy?n.properties?.value:n;if(r?.type==="array")return r}}function xr(e){return Zn(e)!==void 0}function Nr(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return Array.isArray(n.variants)?n.__resolveType===it?!0:t&&n.__resolveType===ee&&!Bt(n.variants):!1}function Bt(e){return e.some(t=>Array.isArray(ge(t)))}function Mt(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return n.__resolveType===ve?!0:t&&n.__resolveType===ee&&Array.isArray(n.variants)&&Bt(n.variants)}function Fr(e,t){if(!Mt(e,t))return null;const n=e.variants;if(!Array.isArray(n))return null;const r=se(n[0],t);return Array.isArray(r)?r:null}function Wr(e,t,n,r){if(!Mt(e,r))return t;const i=structuredClone(e),s=[...i.variants??[]];return s.length===0?s.push({rule:ot(n),value:st(i.__resolveType,t)}):s[0]=zt(i.__resolveType,s[0],t),{...i,variants:s}}function Yr(e,t){const r=e[t]?.sections;if(!r||Array.isArray(r))return 1;const i=r;return Array.isArray(i.variants)?i.variants.length:1}function qr(e,t,n){const i=e[t]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const s=i.variants;if(Array.isArray(s)){const o=ge(s[n]);return Array.isArray(o)?o:[]}}return[]}function zr(e,t,n){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const r=e;if(Array.isArray(r.variants)){const i=r.variants,s=i.map(u=>zn(u.rule,t,n)),o=s.reduce((u,l)=>(u[l]=(u[l]??0)+1,u),{}),f={};return i.map((u,l)=>{const d=s[l]??`Variant ${l+1}`,b=o[d]??1;let $=d;b>1&&(f[d]=(f[d]??0)+1,$=`${d} ${f[d]}`);const V=ge(u);return{label:$||`Variant ${l+1}`,sections:Array.isArray(V)?V:[],rule:u.rule}})}}return[]}function Oe(e,t,n){return{rule:ot(t),value:st(n,e)}}function Me(e,t){return e?e.__resolveType===ee?ee:ve:Yt(t)}function oe(e,t,n){return{...t,__resolveType:Me(t,n),variants:e}}function Hr(e,t,n,r=!1){const i=structuredClone(t);if(e&&typeof e=="object"&&!Array.isArray(e)){const u=e;if(!Array.isArray(u.variants))return null;const l=[...u.variants],d=Wt(l,r);return l.splice(d,0,Oe(i,n,Me(u))),{sections:oe(l,u),newVariantIndex:d}}const s=Me(void 0,n),o=Oe(Array.isArray(e)?e:[],n,s),f=Oe(i,n,s);return{sections:oe(r?[f,o]:[o,f],void 0,n),newVariantIndex:r?0:1}}function Gr(e,t,n=!1){const r=e[t];if(!r)return null;const i=[...e];return i.splice(Ht(e,t,n),0,structuredClone(r)),i}function Qr(e,t){if(t.length===0)return oe([],e);if(t.length===1){const n=t[0],r=n?.rule;if(!qt(r))return oe(t,e);const i=ge(n);if(Array.isArray(i))return i}return oe(t,e)}function Xr(e,t,n){return Pt(e,t,n).length}function Ee(e,t,n){const r=n[e];return typeof r?.name=="string"&&r.name||e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${t+1}`}function Zr(e,t,n=!1){return e.map((r,i)=>{const s=r.__resolveType??"",o=ue(s);if(!o&&s!==""&&G(s)&&s in t)return{index:i,resolveType:s,label:Ee(s,i,t),isLazy:!1,isSavedBlock:!0};const f=o?r.section:void 0,u=o?f?.__resolveType??"":s;if(Je(u,n)){const d=o?f:r,b=Array.isArray(d?.variants)?d.variants:[];if(b.length===1&&Gt(b[0]?.rule?.__resolveType,n)){const N=se(b[0],n)??{};let k=N.__resolveType??"";const C=ue(k);let B=N;if(C){const E=N.section;k=E?.__resolveType??k,E&&(B=E)}if(Je(k,n)){const E=Array.isArray(B.variants)?B.variants:[],ne=se(E[0],n)?.__resolveType,ce=ne?x(ne):"Section";return{index:i,resolveType:s,label:`Variants of ${ce}`,variantOf:ce,isHidden:!0,isLazy:C}}return k!==""&&G(k)&&k in t?{index:i,resolveType:s,label:Ee(k,i,t),isHidden:!0,isLazy:C,isSavedBlock:!0}:{index:i,resolveType:s,label:x(k)||`Section ${i+1}`,isHidden:!0,isLazy:C}}const $=se(b[0],n)?.__resolveType,V=$?x($):"Section";return{index:i,resolveType:s,label:`Variants of ${V}`,variantOf:V,isMultivariate:!0,isLazy:o}}const l=o?r.section?.__resolveType??s:s;return o&&l!==""&&G(l)&&l in t?{index:i,resolveType:s,label:Ee(l,i,t),isLazy:!0,isSavedBlock:!0}:{index:i,resolveType:s,label:x(l)||`Section ${i+1}`,isLazy:o}})}export{Dr as $,kr as A,Or as B,In as C,Mn as D,_r as E,Yr as F,Hr as G,Sr as H,Rr as I,hn as J,kn as K,gr as L,we as M,ae as N,Ie as O,xr as P,fr as Q,wn as R,Tt as S,Br as T,qn as U,Vr as V,$r as W,zr as X,hr as Y,zn as Z,Mr as _,pr as a,on as a0,te as a1,Lr as a2,Cr as a3,Nr as a4,Mt as a5,Fr as a6,Wr as a7,Zn as a8,Tr as a9,Qr as aA,Xr as aB,Gr as aC,En as aD,lr as aa,ur as ab,Dn as ac,Vn as ad,Zt as ae,Pr as af,jr as ag,Wn as ah,mt as ai,pe as aj,sr as ak,Qt as al,an as am,rr as an,or as ao,Fn as ap,Gn as aq,Ur as ar,Ir as as,sn as at,ar as au,ir as av,Kr as aw,rn as ax,br as ay,Ot as az,Un as b,nt as c,nr as d,At as e,vr as f,qr as g,Er as h,vt as i,wr as j,cr as k,Pe as l,gn as m,yt as n,je as o,Zr as p,Ce as q,en as r,mr as s,Ar as t,dr as u,yr as v,lt as w,kt as x,tr as y,gt as z};
@@ -1 +1 @@
1
- import{c as N,b as $,a4 as z,ad as I,j as e,N as K,n as y,l as v}from"./index-WgfN4QVP.js";import{C as L}from"./index-Co_Y2KRI.js";import{h as S,x as R,bJ as B}from"./agent-icon-D-0GvNzG.js";import{B as E}from"./badge-iQ-KRbWv.js";import"./use-mobile-BRzk8D-v.js";import"./use-sidebar-collapsed-BToAgS1l.js";import"./use-chat-layout-state-B5aaDvob.js";import"./thread-route-D2HAbtZo.js";import"./use-panel-navigate-BrmvjTvw.js";import"./use-project-scope-5fuCx2a_.js";import"./repository-binding-DF6YCWsj.js";import"./use-mcp-client-DXdlNn5q.js";import"./auth-BZPkjT4-.js";import"./thread-intent-DSKhfvxP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CH4G2Sl-.js";import"./task-board-M_qS1rzf.js";import"./schema-BUPJBVf-.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-CUsEGqy_.js";import"./index-CzKs4Djn.js";import"./toolbar-icon-button-B1loXRWd.js";import"./shell-layout-pSWumg64.js";import"./Building02-BV_I3UuJ.js";import"./UserSquare-D1neGXtF.js";import"./use-deployment-admin-DIOIJKFZ.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-DsiXpG7_.js";import"./CheckCircle-D6xmTIXf.js";import"./Monitor01-B3thg2Rr.js";import"./Zap-BB-vOERw.js";import"./use-clock-tick-Cfukw61c.js";import"./Plus-BaWg3Fda.js";import"./Tool01-DwTqd_Nj.js";import"./command-DELHBruW.js";import"./index-DJkEjMHv.js";import"./SearchMd-B541ufOQ.js";import"./integration-icon-UvPKDtTh.js";import"./LinkBroken01-CdMsJVgm.js";import"./project-icon-BIzg7YUA.js";import"./new-project-dialog-DePwIx8r.js";import"./ArrowLeft-Par1IdOs.js";import"./label-Dxzmqh4L.js";import"./repository-import-picker-bneKFCuv.js";import"./use-navigate-to-agent-Mx6A78it.js";import"./repository-picker-CGoSX3oi.js";import"./github-icon-BAVg06aG.js";import"./useInfiniteQuery-CrT95xA_.js";import"./infiniteQueryObserver-AJwWz1b5.js";import"./collection-search-Dg61rOFc.js";import"./ShoppingBag01-d7aE6vty.js";import"./use-debounced-value-QixculIP.js";import"./use-organization-settings-CHtyXny0.js";import"./required-auth-layout-BLLWaY3S.js";import"./autosend-Ci815qQG.js";import"./use-org-sso-CK8bP20u.js";import"./sheet-CA3M7bQp.js";import"./resizable-DcAx-gSp.js";import"./AlertCircle-BjT7_GFq.js";import"./ArrowUp-At9MqVhB.js";import"./ZoomOut-ZB7MeGmK.js";import"./ChevronUp-CNyARDGk.js";import"./ChevronSelectorVertical-CeHSyaSD.js";import"./Copy01-DisW4JMo.js";import"./CreditCard01-QvSfBZzn.js";import"./DotsVertical-wJ46YU2V.js";import"./Image01-CO8HhoHi.js";import"./Globe04-DK5qhUMj.js";import"./SwitchHorizontal01-7qdaOYVu.js";import"./Key01-BDwjIsdK.js";import"./Link01-BHgTruNE.js";import"./Minus-CJDvXjFo.js";import"./Sun-wY_Z9VGm.js";import"./Play-BhU5Ns8x.js";import"./Trash01-B5_r6iLm.js";import"./Upload01-BP49pNql.js";import"./Users01-CrLtxwQA.js";const F={plan:{heading:"home.comingSoon.planHeading",description:"home.comingSoon.planDescription",points:[{Icon:S,labelKey:"home.comingSoon.planGoals",tone:"bg-chart-2/15 text-chart-2"},{Icon:R,labelKey:"home.comingSoon.planTasks",tone:"bg-chart-1/15 text-chart-1"},{Icon:B,labelKey:"home.comingSoon.planProgress",tone:"bg-chart-4/15 text-chart-4"}]}};function G(i){const t=N.c(4),{className:h}=i;let o;t[0]!==h?(o=v("block h-2 rounded-full bg-muted",h),t[0]=h,t[1]=o):o=t[1];let l;return t[2]!==o?(l=e.jsx("span",{className:o}),t[2]=o,t[3]=l):l=t[3],l}const O=[{title:"w-32",fill:"w-[72%]",tone:"bg-chart-2",value:"72%"},{title:"w-24",fill:"w-[45%]",tone:"bg-chart-1",value:"45%"},{title:"w-28",fill:"w-[88%]",tone:"bg-chart-4",value:"88%"}];function T(){const i=N.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx("div",{className:"flex flex-col gap-5",children:O.map(A)}),i[0]=t):t=i[0],t}function A(i){return e.jsxs("div",{className:"flex flex-col gap-2.5",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"flex size-6 items-center justify-center rounded-md bg-muted text-muted-foreground",children:e.jsx(S,{size:14})}),e.jsx(G,{className:i.title}),e.jsx("span",{className:"ml-auto text-xs font-medium tabular-nums text-muted-foreground",children:i.value})]}),e.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:v("h-full rounded-full",i.fill,i.tone)})})]},i.value)}function D(i){const t=N.c(32),{kind:h}=i,o=$(),{org:l}=z(),_=I(),r=F[h];if(!_){let s;return t[0]!==l.slug?(s=e.jsx(K,{to:"/$org/home",params:{org:l.slug},replace:!0}),t[0]=l.slug,t[1]=s):s=t[1],s}let g;t[2]===Symbol.for("react.memo_cache_sentinel")?(g=e.jsx("div",{className:"absolute inset-x-10 -top-4 h-40 rounded-full bg-chart-2/20 blur-3xl"}),t[2]=g):g=t[2];let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=e.jsxs("div",{"aria-hidden":!0,className:"relative w-full max-w-md",children:[g,e.jsx("div",{className:"relative surface p-6 [mask-image:linear-gradient(to_bottom,black_65%,transparent)]",children:e.jsx(T,{})})]}),t[3]=j):j=t[3];let m;t[4]!==o?(m=o("home.comingSoon.badge"),t[4]=o,t[5]=m):m=t[5];let n;t[6]!==m?(n=e.jsx(E,{variant:"muted",children:m}),t[6]=m,t[7]=n):n=t[7];let a;t[8]!==r.heading||t[9]!==o?(a=o(r.heading),t[8]=r.heading,t[9]=o,t[10]=a):a=t[10];let c;t[11]!==a?(c=e.jsx("h1",{className:"text-2xl font-medium text-balance text-foreground",children:a}),t[11]=a,t[12]=c):c=t[12];let p;t[13]!==r.description||t[14]!==o?(p=o(r.description),t[13]=r.description,t[14]=o,t[15]=p):p=t[15];let d;t[16]!==p?(d=e.jsx("p",{className:"max-w-md text-sm text-pretty text-muted-foreground",children:p}),t[16]=p,t[17]=d):d=t[17];let x;t[18]!==n||t[19]!==c||t[20]!==d?(x=e.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[n,c,d]}),t[18]=n,t[19]=c,t[20]=d,t[21]=x):x=t[21];let f;if(t[22]!==r.points||t[23]!==o){let s;t[25]!==o?(s=k=>{const{Icon:P,labelKey:w,tone:C}=k;return e.jsxs("li",{className:"flex items-center gap-3 surface p-4 sm:flex-col sm:items-start",children:[e.jsx("span",{className:v("flex size-9 shrink-0 items-center justify-center rounded-lg",C),children:e.jsx(P,{size:18})}),e.jsx("span",{className:"text-sm text-foreground",children:o(w)})]},w)},t[25]=o,t[26]=s):s=t[26],f=r.points.map(s),t[22]=r.points,t[23]=o,t[24]=f}else f=t[24];let u;t[27]!==f?(u=e.jsx("ul",{className:"grid w-full gap-3 sm:grid-cols-3",children:f}),t[27]=f,t[28]=u):u=t[28];let b;return t[29]!==u||t[30]!==x?(b=e.jsx(y,{children:e.jsx(y.Content,{children:e.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-10 px-4 pt-12 pb-16 md:pt-20",children:[j,x,u]})})}),t[29]=u,t[30]=x,t[31]=b):b=t[31],b}function xe(){const i=N.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(L.Content,{children:e.jsx(D,{kind:"plan"})}),i[0]=t):t=i[0],t}export{xe as default};
1
+ import{c as N,b as $,a4 as z,ad as I,j as e,N as K,n as y,l as v}from"./index-BijXK1UR.js";import{C as L}from"./index-BIewQUQb.js";import{h as S,x as R,bJ as B}from"./agent-icon-DCY-DFu1.js";import{B as E}from"./badge-BYQ7wlS5.js";import"./use-mobile-CPIB7FDl.js";import"./use-sidebar-collapsed-Cg9SAJcE.js";import"./use-chat-layout-state-B1KCQDF9.js";import"./thread-route-B2S6iOD-.js";import"./use-panel-navigate-C8QBD8vM.js";import"./use-project-scope-CQd-IFnJ.js";import"./repository-binding-C68Bzwbp.js";import"./use-mcp-client-KWSUvK_a.js";import"./auth-D4mihjB5.js";import"./thread-intent-CdiuimL9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-4Z_1jztZ.js";import"./task-board-CayegZZ3.js";import"./schema-ZtwXZVxu.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-CgSkJPPS.js";import"./index-HzRnz8QJ.js";import"./toolbar-icon-button-Du8IprMB.js";import"./shell-layout-7nLfl63D.js";import"./Building02-PnRUM-VE.js";import"./UserSquare-WesfpXiJ.js";import"./use-deployment-admin-_i-curaL.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-BM8Qxy5w.js";import"./CheckCircle-BH2UP5Pl.js";import"./Monitor01-yYk26cfF.js";import"./Zap-sqFFzvOf.js";import"./use-clock-tick-ffh7KkCE.js";import"./Plus-ajSOCMl5.js";import"./Tool01-DvXBMYEr.js";import"./command-DOj2A4A7.js";import"./index-jOmOmhTz.js";import"./SearchMd-DTaWr-NV.js";import"./integration-icon-B78RRiv5.js";import"./LinkBroken01-C4Xn1L4t.js";import"./project-icon-CJYQSuT8.js";import"./new-project-dialog-JbH-ihe7.js";import"./ArrowLeft-B4Fp6tOY.js";import"./label-Cp19UNgk.js";import"./repository-import-picker-EEK-sVVk.js";import"./use-navigate-to-agent-HYjCQ2HB.js";import"./repository-picker-DNE15SEp.js";import"./github-icon-Da5ypnFC.js";import"./useInfiniteQuery-BfYXF3Ue.js";import"./infiniteQueryObserver-o3kSKx55.js";import"./collection-search-CpetsY8q.js";import"./ShoppingBag01-w9yIZ7Vl.js";import"./use-debounced-value-AoAqNmHg.js";import"./use-organization-settings-BnaaX9uD.js";import"./required-auth-layout-CgViy1W9.js";import"./autosend-BW2sWcH_.js";import"./use-org-sso-CfMRDnRe.js";import"./sheet-BKUj4XRS.js";import"./resizable-BiIQKqAj.js";import"./AlertCircle-DzE-j8Md.js";import"./ArrowUp-ChN8aOEm.js";import"./ZoomOut-BMEXUhR4.js";import"./ChevronUp-C2ixq11S.js";import"./ChevronSelectorVertical-CK7wz4hr.js";import"./Copy01-S_Wzfgys.js";import"./CreditCard01-C9Xxz1Z-.js";import"./DotsVertical-DgY7T0mx.js";import"./Image01-CiWjI_N8.js";import"./Globe04-BPKiswDo.js";import"./SwitchHorizontal01-Cz2viH34.js";import"./Key01-Cl5CaquW.js";import"./Link01-DRf4-o03.js";import"./Minus-DrIgoneT.js";import"./Sun-Bb0mDann.js";import"./Play-DiF1YnWe.js";import"./Trash01-DVB9fxWu.js";import"./Upload01-Bd0Vey4L.js";import"./Users01-BLXU9p3z.js";const F={plan:{heading:"home.comingSoon.planHeading",description:"home.comingSoon.planDescription",points:[{Icon:S,labelKey:"home.comingSoon.planGoals",tone:"bg-chart-2/15 text-chart-2"},{Icon:R,labelKey:"home.comingSoon.planTasks",tone:"bg-chart-1/15 text-chart-1"},{Icon:B,labelKey:"home.comingSoon.planProgress",tone:"bg-chart-4/15 text-chart-4"}]}};function G(i){const t=N.c(4),{className:h}=i;let o;t[0]!==h?(o=v("block h-2 rounded-full bg-muted",h),t[0]=h,t[1]=o):o=t[1];let l;return t[2]!==o?(l=e.jsx("span",{className:o}),t[2]=o,t[3]=l):l=t[3],l}const O=[{title:"w-32",fill:"w-[72%]",tone:"bg-chart-2",value:"72%"},{title:"w-24",fill:"w-[45%]",tone:"bg-chart-1",value:"45%"},{title:"w-28",fill:"w-[88%]",tone:"bg-chart-4",value:"88%"}];function T(){const i=N.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx("div",{className:"flex flex-col gap-5",children:O.map(A)}),i[0]=t):t=i[0],t}function A(i){return e.jsxs("div",{className:"flex flex-col gap-2.5",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"flex size-6 items-center justify-center rounded-md bg-muted text-muted-foreground",children:e.jsx(S,{size:14})}),e.jsx(G,{className:i.title}),e.jsx("span",{className:"ml-auto text-xs font-medium tabular-nums text-muted-foreground",children:i.value})]}),e.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:v("h-full rounded-full",i.fill,i.tone)})})]},i.value)}function D(i){const t=N.c(32),{kind:h}=i,o=$(),{org:l}=z(),_=I(),r=F[h];if(!_){let s;return t[0]!==l.slug?(s=e.jsx(K,{to:"/$org/home",params:{org:l.slug},replace:!0}),t[0]=l.slug,t[1]=s):s=t[1],s}let g;t[2]===Symbol.for("react.memo_cache_sentinel")?(g=e.jsx("div",{className:"absolute inset-x-10 -top-4 h-40 rounded-full bg-chart-2/20 blur-3xl"}),t[2]=g):g=t[2];let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=e.jsxs("div",{"aria-hidden":!0,className:"relative w-full max-w-md",children:[g,e.jsx("div",{className:"relative surface p-6 [mask-image:linear-gradient(to_bottom,black_65%,transparent)]",children:e.jsx(T,{})})]}),t[3]=j):j=t[3];let m;t[4]!==o?(m=o("home.comingSoon.badge"),t[4]=o,t[5]=m):m=t[5];let n;t[6]!==m?(n=e.jsx(E,{variant:"muted",children:m}),t[6]=m,t[7]=n):n=t[7];let a;t[8]!==r.heading||t[9]!==o?(a=o(r.heading),t[8]=r.heading,t[9]=o,t[10]=a):a=t[10];let c;t[11]!==a?(c=e.jsx("h1",{className:"text-2xl font-medium text-balance text-foreground",children:a}),t[11]=a,t[12]=c):c=t[12];let p;t[13]!==r.description||t[14]!==o?(p=o(r.description),t[13]=r.description,t[14]=o,t[15]=p):p=t[15];let d;t[16]!==p?(d=e.jsx("p",{className:"max-w-md text-sm text-pretty text-muted-foreground",children:p}),t[16]=p,t[17]=d):d=t[17];let x;t[18]!==n||t[19]!==c||t[20]!==d?(x=e.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[n,c,d]}),t[18]=n,t[19]=c,t[20]=d,t[21]=x):x=t[21];let f;if(t[22]!==r.points||t[23]!==o){let s;t[25]!==o?(s=k=>{const{Icon:P,labelKey:w,tone:C}=k;return e.jsxs("li",{className:"flex items-center gap-3 surface p-4 sm:flex-col sm:items-start",children:[e.jsx("span",{className:v("flex size-9 shrink-0 items-center justify-center rounded-lg",C),children:e.jsx(P,{size:18})}),e.jsx("span",{className:"text-sm text-foreground",children:o(w)})]},w)},t[25]=o,t[26]=s):s=t[26],f=r.points.map(s),t[22]=r.points,t[23]=o,t[24]=f}else f=t[24];let u;t[27]!==f?(u=e.jsx("ul",{className:"grid w-full gap-3 sm:grid-cols-3",children:f}),t[27]=f,t[28]=u):u=t[28];let b;return t[29]!==u||t[30]!==x?(b=e.jsx(y,{children:e.jsx(y.Content,{children:e.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-10 px-4 pt-12 pb-16 md:pt-20",children:[j,x,u]})})}),t[29]=u,t[30]=x,t[31]=b):b=t[31],b}function xe(){const i=N.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(L.Content,{children:e.jsx(D,{kind:"plan"})}),i[0]=t):t=i[0],t}export{xe as default};
@@ -1 +1 @@
1
- import{c as f,a4 as x,ap as P,K as _,m as y,l as g,j as d}from"./index-WgfN4QVP.js";import{u as A}from"./use-entitlements-BkqxE18N.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(h))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function h(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function q(){const e=f.c(8),{org:t}=x(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function D(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:p}=S(a);n=b,s="0 0 16 16",r="true",c=g("size-8 shrink-0",p,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,K as P,w as S,I as a,D as b,v as f,O as i,R as p,q as u};
1
+ import{c as f,a4 as x,ap as P,K as _,m as y,l as g,j as d}from"./index-BijXK1UR.js";import{u as A}from"./use-entitlements-C0wXCfoQ.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(h))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function h(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function q(){const e=f.c(8),{org:t}=x(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function D(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:p}=S(a);n=b,s="0 0 16 16",r="true",c=g("size-8 shrink-0",p,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,K as P,w as S,I as a,D as b,v as f,O as i,R as p,q as u};
@@ -1,4 +1,4 @@
1
- import{r as X,j as s,ek as pe,hs as _e,c as G,l as J,cs as Se,b as q,a4 as ne,ap as W,q as we,e as re,H as xe,B as V,I as Ee,t as te,K as se,aM as Ae,aN as Ie,aO as Ue,aP as De,bm as Te,aQ as Re,aR as $e,aS as Be,fT as ae,h8 as ie,m as he,bB as ve,b8 as Le,ao as ke,ax as He,L as Oe,gm as Fe}from"./index-WgfN4QVP.js";import{s as Me}from"./Plus-BaWg3Fda.js";import{B as ze}from"./badge-iQ-KRbWv.js";import{a as Ve,b as Ge,P as Ke}from"./popover-DqVLkXUD.js";import{T as ue,a as qe}from"./toggle-group-BUfjArPT.js";import{f as Qe}from"./use-ai-providers-BcdAb8qD.js";import{u as oe,d as be,a as Ye}from"./use-entitlements-BkqxE18N.js";import{u as Ze,P as Xe}from"./plan-ladder-CPUSwIwK.js";var ce="Progress",de=100,[Je]=_e(ce),[We,et]=Je(ce),je=X.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:a,getValueLabel:l=tt,...c}=e;(a||a===0)&&!fe(a)&&console.error(st(`${a}`,"Progress"));const i=fe(a)?a:de;o!==null&&!me(o,i)&&console.error(lt(`${o}`,"Progress"));const r=me(o,i)?o:null,u=le(r)?l(r,i):void 0;return s.jsx(We,{scope:n,value:r,max:i,children:s.jsx(pe.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":le(r)?r:void 0,"aria-valuetext":u,role:"progressbar","data-state":ye(r,i),"data-value":r??void 0,"data-max":i,...c,ref:t})})});je.displayName=ce;var Ne="ProgressIndicator",Ce=X.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=et(Ne,n);return s.jsx(pe.div,{"data-state":ye(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:t})});Ce.displayName=Ne;function tt(e,t){return`${Math.round(e/t*100)}%`}function ye(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function le(e){return typeof e=="number"}function fe(e){return le(e)&&!isNaN(e)&&e>0}function me(e,t){return le(e)&&!isNaN(e)&&e<=t&&e>=0}function st(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${de}\`.`}function lt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1
+ import{r as X,j as s,ek as pe,hs as _e,c as G,l as J,cs as Se,b as q,a4 as ne,ap as W,q as we,e as re,H as xe,B as V,I as Ee,t as te,K as se,aM as Ae,aN as Ie,aO as Ue,aP as De,bm as Te,aQ as Re,aR as $e,aS as Be,fT as ae,h8 as ie,m as he,bB as ve,b8 as Le,ao as ke,ax as He,L as Oe,gm as Fe}from"./index-BijXK1UR.js";import{s as Me}from"./Plus-ajSOCMl5.js";import{B as ze}from"./badge-BYQ7wlS5.js";import{a as Ve,b as Ge,P as Ke}from"./popover-CHbMB3jG.js";import{T as ue,a as qe}from"./toggle-group-DM6uySR5.js";import{f as Qe}from"./use-ai-providers-TbIEEErY.js";import{u as oe,d as be,a as Ye}from"./use-entitlements-C0wXCfoQ.js";import{u as Ze,P as Xe}from"./plan-ladder-iixbir6X.js";var ce="Progress",de=100,[Je]=_e(ce),[We,et]=Je(ce),je=X.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:a,getValueLabel:l=tt,...c}=e;(a||a===0)&&!fe(a)&&console.error(st(`${a}`,"Progress"));const i=fe(a)?a:de;o!==null&&!me(o,i)&&console.error(lt(`${o}`,"Progress"));const r=me(o,i)?o:null,u=le(r)?l(r,i):void 0;return s.jsx(We,{scope:n,value:r,max:i,children:s.jsx(pe.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":le(r)?r:void 0,"aria-valuetext":u,role:"progressbar","data-state":ye(r,i),"data-value":r??void 0,"data-max":i,...c,ref:t})})});je.displayName=ce;var Ne="ProgressIndicator",Ce=X.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=et(Ne,n);return s.jsx(pe.div,{"data-state":ye(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:t})});Ce.displayName=Ne;function tt(e,t){return`${Math.round(e/t*100)}%`}function ye(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function le(e){return typeof e=="number"}function fe(e){return le(e)&&!isNaN(e)&&e>0}function me(e,t){return le(e)&&!isNaN(e)&&e<=t&&e>=0}function st(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${de}\`.`}function lt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
2
  - a positive number
3
3
  - less than the value passed to \`max\` (or ${de} if no \`max\` prop is set)
4
4
  - \`null\` or \`undefined\` if the progress is indeterminate.
@@ -1 +1 @@
1
- import{r as l,cy as _,j as c,cA as j,cB as x,cz as w,cv as z,cw as G,cx as H,cE as E,cN as K,ep as b,cI as B,cK as J,cO as Q,cJ as U,cL as V,cM as W,cP as Z,cQ as q,cD as X,c as R,l as Y}from"./index-WgfN4QVP.js";var A="Popover",[N]=K(A,[E]),m=E(),[ee,P]=N(A),y=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=m(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};y.displayName=A;var F="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(F,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(w,{...s,...r,ref:e})});S.displayName=F;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=m(o),a=_(e,n.triggerRef),i=c.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(w,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),I=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};I.displayName=O;var h="PopoverContent",T=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});T.displayName=h;var re=Q("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=_(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return B(a)},[]),c.jsx(J,{as:re,allowPinchZoom:!0,children:c.jsx(k,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(k,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),k=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=m(o);return U(),c.jsx(V,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(W,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Z,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(j.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=m(o);return c.jsx(q,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=y,pe=S,de=M,ue=I,fe=T;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let C;return e[16]!==r||e[17]!==d?(C=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=C):C=e[18],C}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
1
+ import{r as l,cy as _,j as c,cA as j,cB as x,cz as w,cv as z,cw as G,cx as H,cE as E,cN as K,ep as b,cI as B,cK as J,cO as Q,cJ as U,cL as V,cM as W,cP as Z,cQ as q,cD as X,c as R,l as Y}from"./index-BijXK1UR.js";var A="Popover",[N]=K(A,[E]),m=E(),[ee,P]=N(A),y=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=m(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};y.displayName=A;var F="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(F,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(w,{...s,...r,ref:e})});S.displayName=F;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=m(o),a=_(e,n.triggerRef),i=c.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(w,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),I=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};I.displayName=O;var h="PopoverContent",T=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});T.displayName=h;var re=Q("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=_(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return B(a)},[]),c.jsx(J,{as:re,allowPinchZoom:!0,children:c.jsx(k,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(k,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),k=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=m(o);return U(),c.jsx(V,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(W,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Z,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(j.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=m(o);return c.jsx(q,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=y,pe=S,de=M,ue=I,fe=T;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let C;return e[16]!==r||e[17]!==d?(C=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=C):C=e[18],C}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
@@ -1 +1 @@
1
- import{c as it,b as pt,r as lt,H as jt,j as e,l as et,B as tt,ax as Ct}from"./index-WgfN4QVP.js";import{a2 as Nt,H as Dt}from"./agent-icon-D-0GvNzG.js";import{s as kt}from"./Plus-BaWg3Fda.js";import{S as St}from"./scroll-area-CiASyTMh.js";import{c as wt,s as zt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{ay as Tt,l as Et,az as Pt}from"./content-tab-ChaQz5Cw.js";import"./AlertCircle-BjT7_GFq.js";import"./Tool01-DwTqd_Nj.js";import"./ArrowUp-At9MqVhB.js";import"./ArrowLeft-Par1IdOs.js";import"./LinkBroken01-CdMsJVgm.js";import"./ShoppingBag01-d7aE6vty.js";import"./ZoomOut-ZB7MeGmK.js";import"./Building02-BV_I3UuJ.js";import"./CheckCircle-D6xmTIXf.js";import"./ChevronUp-CNyARDGk.js";import"./ChevronSelectorVertical-CeHSyaSD.js";import"./UserSquare-D1neGXtF.js";import"./Copy01-DisW4JMo.js";import"./CreditCard01-QvSfBZzn.js";import"./DotsVertical-wJ46YU2V.js";import"./Image01-CO8HhoHi.js";import"./Globe04-DK5qhUMj.js";import"./SwitchHorizontal01-7qdaOYVu.js";import"./Key01-BDwjIsdK.js";import"./Link01-BHgTruNE.js";import"./Minus-CJDvXjFo.js";import"./Monitor01-B3thg2Rr.js";import"./Sun-wY_Z9VGm.js";import"./Play-BhU5Ns8x.js";import"./SearchMd-B541ufOQ.js";import"./Trash01-B5_r6iLm.js";import"./Upload01-BP49pNql.js";import"./Users01-CrLtxwQA.js";import"./XClose-DsiXpG7_.js";import"./Zap-BB-vOERw.js";import"./index-BdQq_4o_.js";import"./use-organization-settings-CHtyXny0.js";import"./schema-BUPJBVf-.js";import"./task-board-M_qS1rzf.js";import"./chat-context-0CZgd-Gr.js";import"./use-panel-navigate-BrmvjTvw.js";import"./thread-route-D2HAbtZo.js";import"./use-project-scope-5fuCx2a_.js";import"./repository-binding-DF6YCWsj.js";import"./use-mcp-client-DXdlNn5q.js";import"./auth-BZPkjT4-.js";import"./autosend-Ci815qQG.js";import"./thread-intent-DSKhfvxP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CH4G2Sl-.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-BkqxE18N.js";import"./use-ai-providers-BcdAb8qD.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-fL28TEHC.js";import"./blocks-tab-states-Cs7bIWnm.js";import"./command-DELHBruW.js";import"./index-DJkEjMHv.js";import"./label-Dxzmqh4L.js";import"./slider-CdizOZzU.js";import"./index-APWCNDjQ.js";import"./tooltipContext-Bj1ILd8M.js";import"./CategoricalChart-CF0oZQqp.js";import"./index-CP1LLlUE.js";import"./ActiveShapeUtils-xwm7xTvz.js";import"./Sector-DWc-NOYF.js";import"./symbol-DnjOGl1B.js";import"./parse-sections-CNEwf5xY.js";import"./site-editor-toast-Bz-6LR6r.js";import"./use-session-runtime-BIoEtecA.js";import"./experiments-tab-choice-D7HK8muj.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-DdcTGJDK.js";import"./use-sandbox-events-CcwyGMD7.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-DN5hGWOA.js";import"./held-block-view-C-gX7MJV.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-Cz07PNwj.js";import"./collapsible-VIsV7VNH.js";import"./use-copy-CXZDMarr.js";import"./usage-stats-qowelp13.js";import"./tool-namespace-CGxHGKW_.js";import"./form-BeydREbm.js";import"./utils-CVEq3hMx.js";import"./markdown-NHGOJDhi.js";import"./use-mobile-BRzk8D-v.js";import"./tooltip-CUsEGqy_.js";import"./index-CzKs4Djn.js";import"./use-clock-tick-Cfukw61c.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CGhEZS_Z.js";import"./types-D9PXVqqG.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-pSWumg64.js";import"./use-deployment-admin-DIOIJKFZ.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-UvPKDtTh.js";import"./project-icon-BIzg7YUA.js";import"./new-project-dialog-DePwIx8r.js";import"./repository-import-picker-bneKFCuv.js";import"./use-navigate-to-agent-Mx6A78it.js";import"./repository-picker-CGoSX3oi.js";import"./github-icon-BAVg06aG.js";import"./useInfiniteQuery-CrT95xA_.js";import"./infiniteQueryObserver-AJwWz1b5.js";import"./collection-search-Dg61rOFc.js";import"./use-debounced-value-QixculIP.js";import"./required-auth-layout-BLLWaY3S.js";import"./use-org-sso-CK8bP20u.js";import"./sheet-CA3M7bQp.js";import"./use-connection-FqHna8PS.js";import"./use-mcp-prompts-ClNBkSao.js";import"./use-thread-outputs-CuLm_Mfb.js";import"./file-type-icon-BzoA5jiZ.js";import"./section-array-field-DENveGph.js";import"./alert-l5j64Qp_.js";import"./switch-nJxNuRWR.js";import"./textarea-D-MP0s12.js";import"./popover-DqVLkXUD.js";import"./monaco-editor-BDiq_2v4.js";import"./editor-C97Kf5Du.js";import"./calendar-CjBfTyns.js";import"./select-CFg3KEOq.js";import"./editor-classes-Cpizi6Gd.js";import"./core.esm-DtwNC1S6.js";import"./sortable.esm-D_24nW2P.js";import"./toggle-group-BUfjArPT.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BxlWJcmj.js";import"./search-input-BB0pLu50.js";import"./tabs-j1z3THwl.js";import"./use-file-configs-hWnpGnBU.js";import"./asset-utils-Cwse7TzX.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./view-header-CAPGAS4q.js";import"./use-cms-publish-actions-DZ9irs8o.js";import"./hosted-publish-feedback-DBuxeNUI.js";import"./mustache-CDuMzcYJ.js";import"./sandbox-lifecycle-context-Bwi5LES5.js";import"./checkbox-DVUVqeGQ.js";import"./use-move-blocks-BwtieMWH.js";import"./badge-iQ-KRbWv.js";import"./empty-state-BaG0Q4po.js";import"./collection-table-wrapper-Tom29l37.js";import"./table-D3Xss2p0.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function Co(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:m,onReschedule:i,isCreating:D}=h,s=D===void 0?!1:D,r=pt(),[j,C]=lt.useState(null),[rt]=jt(),[n,f]=lt.useState(Mt),p=rt.language;let N;t[0]!==n||t[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=N):N=t[2];const y=N;let x,u,a,c,v,k,S,w,z,T;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==y||t[9]!==m||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=Tt(Et(b)),st=wt(n),bt=zt(new Date);u="flex h-full w-full flex-col";let J;t[24]===Symbol.for("react.memo_cache_sentinel")?(J=()=>f(ct(new Date)),t[24]=J):J=t[24];let M;t[25]!==r?(M=r("sandbox.postCalendar.today"),t[25]=r,t[26]=M):M=t[26];let I;t[27]!==M?(I=e.jsx(tt,{variant:"outline",size:"sm",onClick:J,children:M}),t[27]=M,t[28]=I):I=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Lt),t[29]=Q):Q=t[29];let U;t[30]!==r?(U=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=U):U=t[31];let V;t[32]===Symbol.for("react.memo_cache_sentinel")?(V=e.jsx(Dt,{size:16}),t[32]=V):V=t[32];let _;t[33]!==U?(_=e.jsx(tt,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),t[33]=U,t[34]=_):_=t[34];let X;t[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Ht),t[35]=X):X=t[35];let $;t[36]!==r?($=r("sandbox.postCalendar.next"),t[36]=r,t[37]=$):$=t[37];let Y;t[38]===Symbol.for("react.memo_cache_sentinel")?(Y=e.jsx(Ct,{size:16}),t[38]=Y):Y=t[38];let O;t[39]!==$?(O=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),t[39]=$,t[40]=O):O=t[40];let B;t[41]!==y?(B=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),t[41]=y,t[42]=B):B=t[42];let F;t[43]!==r?(F=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=F):F=t[44];let R;t[45]!==F?(R=e.jsx(mt,{className:ft,label:F}),t[45]=F,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(mt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==I||t[55]!==_||t[56]!==O||t[57]!==B||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[I,_,O,B,W]}),t[54]=I,t[55]=_,t[56]=O,t[57]=B,t[58]=W,t[59]=a):a=t[59],T="relative flex-1 min-h-0",x=St,z="h-full",S="flex min-w-[880px] gap-4 p-4";let q;t[60]!==r?(q=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=q):q=t[61];let Z;t[62]!==q?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:q}),t[62]=q,t[63]=Z):Z=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(l=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(l)},l.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(l=>{const yt=l.getMonth()===n.getMonth(),vt=ht.get(Pt(l))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");C(null),at&&i(at,l)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",yt?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",l.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:l.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>m(l),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(l)}),children:e.jsx(kt,{size:14})})]}),vt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},l.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=e.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),k=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Nt,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(l=>e.jsx(nt,{entry:l,active:l.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},l.post.key)),t[3]=n,t[4]=b,t[5]=j,t[6]=s,t[7]=p,t[8]=y,t[9]=m,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=v,t[19]=k,t[20]=S,t[21]=w,t[22]=z,t[23]=T}else x=t[14],u=t[15],a=t[16],c=t[17],v=t[18],k=t[19],S=t[20],w=t[21],z=t[22],T=t[23];let E;t[64]!==c||t[65]!==v||t[66]!==k?(E=e.jsxs("div",{className:c,children:[v,k]}),t[64]=c,t[65]=v,t[66]=k,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let H;t[72]!==x||t[73]!==P||t[74]!==z?(H=e.jsx(x,{className:z,children:P}),t[72]=x,t[73]=P,t[74]=z,t[75]=H):H=t[75];let L;t[76]!==H||t[77]!==T?(L=e.jsx("div",{className:T,children:H}),t[76]=H,t[77]=T,t[78]=L):L=t[78];let G;return t[79]!==u||t[80]!==a||t[81]!==L?(G=e.jsxs("div",{className:u,children:[a,L]}),t[79]=u,t[80]=a,t[81]=L,t[82]=G):G=t[82],G}function Ht(h){return dt(h,1)}function Lt(h){return dt(h,-1)}function Mt(){return ct(new Date)}function mt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let m;t[2]!==o?(m=e.jsx("span",{className:o}),t[2]=o,t[3]=m):m=t[3];let i;return t[4]!==d||t[5]!==m?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[m,d]}),t[4]=d,t[5]=m,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:m,onDragStateChange:i}=h,D=pt(),{post:s,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;t[0]!==D||t[1]!==j?(C=D(j),t[0]=D,t[1]=j,t[2]=C):C=t[2];const rt=C;let n;t[3]!==i||t[4]!==s.key?(n=v=>{v.dataTransfer.setData("text/plain",s.key),v.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==s.key?(p=()=>m(s.key),t[8]=m,t[9]=s.key,t[10]=p):p=t[10];const N=`${s.title} · ${rt}`,y=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==y||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),t[11]=y,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==N?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:N,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{Co as PostCalendar};
1
+ import{c as it,b as pt,r as lt,H as jt,j as e,l as et,B as tt,ax as Ct}from"./index-BijXK1UR.js";import{a2 as Nt,H as Dt}from"./agent-icon-DCY-DFu1.js";import{s as kt}from"./Plus-ajSOCMl5.js";import{S as St}from"./scroll-area-Cp71DHPt.js";import{c as wt,s as zt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{ay as Tt,l as Et,az as Pt}from"./content-tab-DN8B-yRI.js";import"./AlertCircle-DzE-j8Md.js";import"./Tool01-DvXBMYEr.js";import"./ArrowUp-ChN8aOEm.js";import"./ArrowLeft-B4Fp6tOY.js";import"./LinkBroken01-C4Xn1L4t.js";import"./ShoppingBag01-w9yIZ7Vl.js";import"./ZoomOut-BMEXUhR4.js";import"./Building02-PnRUM-VE.js";import"./CheckCircle-BH2UP5Pl.js";import"./ChevronUp-C2ixq11S.js";import"./ChevronSelectorVertical-CK7wz4hr.js";import"./UserSquare-WesfpXiJ.js";import"./Copy01-S_Wzfgys.js";import"./CreditCard01-C9Xxz1Z-.js";import"./DotsVertical-DgY7T0mx.js";import"./Image01-CiWjI_N8.js";import"./Globe04-BPKiswDo.js";import"./SwitchHorizontal01-Cz2viH34.js";import"./Key01-Cl5CaquW.js";import"./Link01-DRf4-o03.js";import"./Minus-DrIgoneT.js";import"./Monitor01-yYk26cfF.js";import"./Sun-Bb0mDann.js";import"./Play-DiF1YnWe.js";import"./SearchMd-DTaWr-NV.js";import"./Trash01-DVB9fxWu.js";import"./Upload01-Bd0Vey4L.js";import"./Users01-BLXU9p3z.js";import"./XClose-BM8Qxy5w.js";import"./Zap-sqFFzvOf.js";import"./index-BdQq_4o_.js";import"./use-organization-settings-BnaaX9uD.js";import"./schema-ZtwXZVxu.js";import"./task-board-CayegZZ3.js";import"./chat-context-BChErz2e.js";import"./use-panel-navigate-C8QBD8vM.js";import"./thread-route-B2S6iOD-.js";import"./use-project-scope-CQd-IFnJ.js";import"./repository-binding-C68Bzwbp.js";import"./use-mcp-client-KWSUvK_a.js";import"./auth-D4mihjB5.js";import"./autosend-BW2sWcH_.js";import"./thread-intent-CdiuimL9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-4Z_1jztZ.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-C0wXCfoQ.js";import"./use-ai-providers-TbIEEErY.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-CVUGGfXM.js";import"./blocks-tab-states-CTYUutZb.js";import"./command-DOj2A4A7.js";import"./index-jOmOmhTz.js";import"./label-Cp19UNgk.js";import"./slider-CX7at3h2.js";import"./index-D6M26y9G.js";import"./tooltipContext-B5ecV60a.js";import"./CategoricalChart-Dhwf2GdF.js";import"./index-B4sZcXXO.js";import"./ActiveShapeUtils-CLmYip7o.js";import"./Sector-CBAM4uEa.js";import"./symbol-ChJ7jN3k.js";import"./parse-sections-BM7rWPEy.js";import"./site-editor-toast-DIQQclSk.js";import"./use-session-runtime-7fOZnFmy.js";import"./experiments-tab-choice-BPtAtI2U.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-DSrro3Kq.js";import"./use-sandbox-events-CHP3Ppk5.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-cQdvFUSC.js";import"./held-block-view-DCE-bFQS.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DLv_RG2X.js";import"./collapsible-Cq7zc7_4.js";import"./use-copy-BtQZocLW.js";import"./usage-stats-spjeuTC-.js";import"./tool-namespace-BW-tXE6W.js";import"./form-BQ50c_Kc.js";import"./utils-CVEq3hMx.js";import"./markdown-Dq2cTeVK.js";import"./use-mobile-CPIB7FDl.js";import"./tooltip-CgSkJPPS.js";import"./index-HzRnz8QJ.js";import"./use-clock-tick-ffh7KkCE.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-c0XyEtdp.js";import"./types-DK13rTXA.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-7nLfl63D.js";import"./use-deployment-admin-_i-curaL.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-B78RRiv5.js";import"./project-icon-CJYQSuT8.js";import"./new-project-dialog-JbH-ihe7.js";import"./repository-import-picker-EEK-sVVk.js";import"./use-navigate-to-agent-HYjCQ2HB.js";import"./repository-picker-DNE15SEp.js";import"./github-icon-Da5ypnFC.js";import"./useInfiniteQuery-BfYXF3Ue.js";import"./infiniteQueryObserver-o3kSKx55.js";import"./collection-search-CpetsY8q.js";import"./use-debounced-value-AoAqNmHg.js";import"./required-auth-layout-CgViy1W9.js";import"./use-org-sso-CfMRDnRe.js";import"./sheet-BKUj4XRS.js";import"./use-connection-TWR90GP-.js";import"./use-mcp-prompts-BEJ1f99M.js";import"./use-thread-outputs-Ct6GwzUZ.js";import"./file-type-icon-DnkfnNgZ.js";import"./section-array-field-B5eviaUR.js";import"./alert-BClfxRVl.js";import"./switch-DrmfNcNf.js";import"./textarea-D0LYBX8O.js";import"./popover-CHbMB3jG.js";import"./monaco-editor-D3-tlVi1.js";import"./editor-BQmG-TWe.js";import"./calendar-Dfa2lTn-.js";import"./select-CSKnqqEb.js";import"./editor-classes-DKOvNB3n.js";import"./core.esm-BT_mU3xj.js";import"./sortable.esm-10DRQ2sX.js";import"./toggle-group-DM6uySR5.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BUgAhpEW.js";import"./search-input-BrVmXZXF.js";import"./tabs-BTn3mTbH.js";import"./use-file-configs-xfUsfkeK.js";import"./asset-utils-Dv9DtY1w.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./view-header-BDzDO2AR.js";import"./use-cms-publish-actions-eqQub0R0.js";import"./hosted-publish-feedback-CZCgFuTM.js";import"./mustache-BKOMnA_9.js";import"./sandbox-lifecycle-context-BFVSmowb.js";import"./checkbox-r74ldNXe.js";import"./use-move-blocks-8DTZOusM.js";import"./badge-BYQ7wlS5.js";import"./empty-state-B3qkXyL5.js";import"./collection-table-wrapper-B4u7lstM.js";import"./table-Dzy-0aVP.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function Co(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:m,onReschedule:i,isCreating:D}=h,s=D===void 0?!1:D,r=pt(),[j,C]=lt.useState(null),[rt]=jt(),[n,f]=lt.useState(Mt),p=rt.language;let N;t[0]!==n||t[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=N):N=t[2];const y=N;let x,u,a,c,v,k,S,w,z,T;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==y||t[9]!==m||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=Tt(Et(b)),st=wt(n),bt=zt(new Date);u="flex h-full w-full flex-col";let J;t[24]===Symbol.for("react.memo_cache_sentinel")?(J=()=>f(ct(new Date)),t[24]=J):J=t[24];let M;t[25]!==r?(M=r("sandbox.postCalendar.today"),t[25]=r,t[26]=M):M=t[26];let I;t[27]!==M?(I=e.jsx(tt,{variant:"outline",size:"sm",onClick:J,children:M}),t[27]=M,t[28]=I):I=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Lt),t[29]=Q):Q=t[29];let U;t[30]!==r?(U=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=U):U=t[31];let V;t[32]===Symbol.for("react.memo_cache_sentinel")?(V=e.jsx(Dt,{size:16}),t[32]=V):V=t[32];let _;t[33]!==U?(_=e.jsx(tt,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),t[33]=U,t[34]=_):_=t[34];let X;t[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Ht),t[35]=X):X=t[35];let $;t[36]!==r?($=r("sandbox.postCalendar.next"),t[36]=r,t[37]=$):$=t[37];let Y;t[38]===Symbol.for("react.memo_cache_sentinel")?(Y=e.jsx(Ct,{size:16}),t[38]=Y):Y=t[38];let O;t[39]!==$?(O=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),t[39]=$,t[40]=O):O=t[40];let B;t[41]!==y?(B=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),t[41]=y,t[42]=B):B=t[42];let F;t[43]!==r?(F=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=F):F=t[44];let R;t[45]!==F?(R=e.jsx(mt,{className:ft,label:F}),t[45]=F,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(mt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==I||t[55]!==_||t[56]!==O||t[57]!==B||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[I,_,O,B,W]}),t[54]=I,t[55]=_,t[56]=O,t[57]=B,t[58]=W,t[59]=a):a=t[59],T="relative flex-1 min-h-0",x=St,z="h-full",S="flex min-w-[880px] gap-4 p-4";let q;t[60]!==r?(q=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=q):q=t[61];let Z;t[62]!==q?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:q}),t[62]=q,t[63]=Z):Z=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(l=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(l)},l.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(l=>{const yt=l.getMonth()===n.getMonth(),vt=ht.get(Pt(l))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");C(null),at&&i(at,l)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",yt?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",l.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:l.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>m(l),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(l)}),children:e.jsx(kt,{size:14})})]}),vt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},l.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=e.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),k=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Nt,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(l=>e.jsx(nt,{entry:l,active:l.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},l.post.key)),t[3]=n,t[4]=b,t[5]=j,t[6]=s,t[7]=p,t[8]=y,t[9]=m,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=v,t[19]=k,t[20]=S,t[21]=w,t[22]=z,t[23]=T}else x=t[14],u=t[15],a=t[16],c=t[17],v=t[18],k=t[19],S=t[20],w=t[21],z=t[22],T=t[23];let E;t[64]!==c||t[65]!==v||t[66]!==k?(E=e.jsxs("div",{className:c,children:[v,k]}),t[64]=c,t[65]=v,t[66]=k,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let H;t[72]!==x||t[73]!==P||t[74]!==z?(H=e.jsx(x,{className:z,children:P}),t[72]=x,t[73]=P,t[74]=z,t[75]=H):H=t[75];let L;t[76]!==H||t[77]!==T?(L=e.jsx("div",{className:T,children:H}),t[76]=H,t[77]=T,t[78]=L):L=t[78];let G;return t[79]!==u||t[80]!==a||t[81]!==L?(G=e.jsxs("div",{className:u,children:[a,L]}),t[79]=u,t[80]=a,t[81]=L,t[82]=G):G=t[82],G}function Ht(h){return dt(h,1)}function Lt(h){return dt(h,-1)}function Mt(){return ct(new Date)}function mt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let m;t[2]!==o?(m=e.jsx("span",{className:o}),t[2]=o,t[3]=m):m=t[3];let i;return t[4]!==d||t[5]!==m?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[m,d]}),t[4]=d,t[5]=m,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:m,onDragStateChange:i}=h,D=pt(),{post:s,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;t[0]!==D||t[1]!==j?(C=D(j),t[0]=D,t[1]=j,t[2]=C):C=t[2];const rt=C;let n;t[3]!==i||t[4]!==s.key?(n=v=>{v.dataTransfer.setData("text/plain",s.key),v.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==s.key?(p=()=>m(s.key),t[8]=m,t[9]=s.key,t[10]=p):p=t[10];const N=`${s.title} · ${rt}`,y=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==y||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),t[11]=y,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==N?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:N,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{Co as PostCalendar};
@@ -1,2 +1,2 @@
1
- import{b as Z,ap as st,r as K,j as t,B as Te,D as ot,v as it,w as lt,x as at,aY as nt,ai as rt,l as _e,y as ct,t as we,c as De,a7 as dt,aS as pt,aR as mt,aO as ut,aM as xt,aN as ft,aQ as gt,aP as ht,bm as bt,h as jt,bn as vt,I as Be}from"./index-WgfN4QVP.js";import{u as yt}from"./chat-context-0CZgd-Gr.js";import{i as $e}from"./AlertCircle-BjT7_GFq.js";import{a8 as St,au as kt,ar as Et,k as Nt}from"./agent-icon-D-0GvNzG.js";import{d as Pt}from"./UserSquare-D1neGXtF.js";import{s as Ct}from"./Trash01-B5_r6iLm.js";import{s as Tt}from"./XClose-DsiXpG7_.js";import{L as J}from"./label-Dxzmqh4L.js";import{M as wt}from"./multi-select-BzEGbWV5.js";import{c as Dt,a as Lt,T as Me,b as Ge}from"./tabs-j1z3THwl.js";import{S as Bt}from"./switch-nJxNuRWR.js";import{T as Qe}from"./textarea-D-MP0s12.js";import{H as At,u as Ft,A as It,G as zt,a as $t,O as ze,t as Rt,Q as Ot,T as qt}from"./held-block-view-C-gX7MJV.js";import{f as _t,a as Vt,b as Ht,c as Ue,B as Mt,R as Gt}from"./block-document-DLTjHmMQ.js";import{b as Ut,C as Wt,K as Yt}from"./blog-schema-UfoKLAgi.js";import{b as Qt,l as Kt,u as Jt,g as Xt,a as Zt,s as es,h as ts,c as z,d as ss,m as os,e as We,E as is,f as ls,p as Ke,r as as,i as Je,R as ns,j as rs,k as cs,o as ds,A as ps,P as ms,q as us}from"./content-tab-ChaQz5Cw.js";import{c as Re,T as Oe,a as qe}from"./tooltip-CUsEGqy_.js";import{i as xs}from"./Link01-BHgTruNE.js";import{u as fs}from"./use-ai-providers-BcdAb8qD.js";import{u as gs}from"./mustache-CDuMzcYJ.js";import{f as hs}from"./use-fast-preview-draft-url-BRikkUIY.js";import{u as bs}from"./use-autosave-ysdD2930.js";import{u as js}from"./site-editor-toast-Bz-6LR6r.js";import"./use-panel-navigate-BrmvjTvw.js";import"./thread-route-D2HAbtZo.js";import"./use-project-scope-5fuCx2a_.js";import"./repository-binding-DF6YCWsj.js";import"./use-mcp-client-DXdlNn5q.js";import"./auth-BZPkjT4-.js";import"./autosend-Ci815qQG.js";import"./thread-intent-DSKhfvxP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CH4G2Sl-.js";import"./task-board-M_qS1rzf.js";import"./schema-BUPJBVf-.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-BkqxE18N.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-fL28TEHC.js";import"./use-organization-settings-CHtyXny0.js";import"./Tool01-DwTqd_Nj.js";import"./ArrowUp-At9MqVhB.js";import"./ArrowLeft-Par1IdOs.js";import"./LinkBroken01-CdMsJVgm.js";import"./ShoppingBag01-d7aE6vty.js";import"./ZoomOut-ZB7MeGmK.js";import"./Building02-BV_I3UuJ.js";import"./CheckCircle-D6xmTIXf.js";import"./ChevronUp-CNyARDGk.js";import"./ChevronSelectorVertical-CeHSyaSD.js";import"./Copy01-DisW4JMo.js";import"./CreditCard01-QvSfBZzn.js";import"./DotsVertical-wJ46YU2V.js";import"./Image01-CO8HhoHi.js";import"./Globe04-DK5qhUMj.js";import"./SwitchHorizontal01-7qdaOYVu.js";import"./Key01-BDwjIsdK.js";import"./Minus-CJDvXjFo.js";import"./Monitor01-B3thg2Rr.js";import"./Sun-wY_Z9VGm.js";import"./Play-BhU5Ns8x.js";import"./Plus-BaWg3Fda.js";import"./SearchMd-B541ufOQ.js";import"./Upload01-BP49pNql.js";import"./Users01-CrLtxwQA.js";import"./Zap-BB-vOERw.js";import"./badge-iQ-KRbWv.js";import"./checkbox-DVUVqeGQ.js";import"./command-DELHBruW.js";import"./index-DJkEjMHv.js";import"./popover-DqVLkXUD.js";import"./active-indicator-CCMhAsc_.js";import"./utils-DdcTGJDK.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-Cz07PNwj.js";import"./collapsible-VIsV7VNH.js";import"./use-copy-CXZDMarr.js";import"./usage-stats-qowelp13.js";import"./tool-namespace-CGxHGKW_.js";import"./form-BeydREbm.js";import"./utils-CVEq3hMx.js";import"./markdown-NHGOJDhi.js";import"./use-mobile-BRzk8D-v.js";import"./use-clock-tick-Cfukw61c.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CGhEZS_Z.js";import"./types-D9PXVqqG.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-pSWumg64.js";import"./use-deployment-admin-DIOIJKFZ.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-UvPKDtTh.js";import"./project-icon-BIzg7YUA.js";import"./new-project-dialog-DePwIx8r.js";import"./repository-import-picker-bneKFCuv.js";import"./use-navigate-to-agent-Mx6A78it.js";import"./repository-picker-CGoSX3oi.js";import"./github-icon-BAVg06aG.js";import"./useInfiniteQuery-CrT95xA_.js";import"./infiniteQueryObserver-AJwWz1b5.js";import"./collection-search-Dg61rOFc.js";import"./use-debounced-value-QixculIP.js";import"./required-auth-layout-BLLWaY3S.js";import"./use-org-sso-CK8bP20u.js";import"./sheet-CA3M7bQp.js";import"./use-connection-FqHna8PS.js";import"./use-mcp-prompts-ClNBkSao.js";import"./use-thread-outputs-CuLm_Mfb.js";import"./file-type-icon-BzoA5jiZ.js";import"./section-array-field-DENveGph.js";import"./alert-l5j64Qp_.js";import"./parse-sections-CNEwf5xY.js";import"./blocks-tab-states-Cs7bIWnm.js";import"./slider-CdizOZzU.js";import"./index-APWCNDjQ.js";import"./index-BdQq_4o_.js";import"./tooltipContext-Bj1ILd8M.js";import"./CategoricalChart-CF0oZQqp.js";import"./index-CP1LLlUE.js";import"./ActiveShapeUtils-xwm7xTvz.js";import"./Sector-DWc-NOYF.js";import"./symbol-DnjOGl1B.js";import"./use-session-runtime-BIoEtecA.js";import"./empty-state-DN5hGWOA.js";import"./scroll-area-CiASyTMh.js";import"./monaco-editor-BDiq_2v4.js";import"./editor-C97Kf5Du.js";import"./calendar-CjBfTyns.js";import"./select-CFg3KEOq.js";import"./index-CzKs4Djn.js";import"./editor-classes-Cpizi6Gd.js";import"./core.esm-DtwNC1S6.js";import"./sortable.esm-D_24nW2P.js";import"./toggle-group-BUfjArPT.js";import"./combobox-BxlWJcmj.js";import"./search-input-BB0pLu50.js";import"./use-file-configs-hWnpGnBU.js";import"./asset-utils-Cwse7TzX.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-git-api-DcqI6XE4.js";import"./sandbox-url-D3mC8qhT.js";import"./suggestion-hz2N0L4f.js";import"./section-preview-url-7zfngvgW.js";import"./product-picker-dialog-BfM9NW4L.js";import"./index-Bi4PycPz.js";import"./view-header-CAPGAS4q.js";import"./use-cms-publish-actions-DZ9irs8o.js";import"./hosted-publish-feedback-DBuxeNUI.js";import"./use-sandbox-events-CcwyGMD7.js";import"./sandbox-lifecycle-context-Bwi5LES5.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-BwtieMWH.js";import"./empty-state-BaG0Q4po.js";import"./collection-table-wrapper-Tom29l37.js";import"./table-D3Xss2p0.js";import"./experiments-tab-choice-D7HK8muj.js";import"./preview-link-C762yHOt.js";import"./variant-draft-pointer-BeAKcq_c.js";const Le=l=>typeof l=="string"?l:"",vs={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&#39;":"'"};function Xe(l){const e=[];let o=0,a=!1;for(;o<l.length;){if(l[o]==="<"){const r=l.indexOf(">",o);o=r<0?l.length:r+1;continue}let s=l[o]??"",c=o+1;if(l[o]==="&"){const r=l.indexOf(";",o);if(r>=0&&r-o<=10){const i=vs[l.slice(o,r+1).toLowerCase()];i!==void 0&&(s=i,c=r+1)}}const d=o;if(o=c,/\s/.test(s)){if(a){const r=e[e.length-1];r&&(r.end=c);continue}e.push({ch:" ",start:d,end:c}),a=!0}else e.push({ch:s,start:d,end:c}),a=!1}return{text:e.map(s=>s.ch).join(""),chars:e}}function ys(l){return Xe(l).text.trim()}function Ss(l){const e=[];for(const o of l)switch(Qt(Le(o.__resolveType))){case"Paragraph":e.push(ys(Le(o.html)));break;case"Heading":e.push(Le(o.text));break;case"Quote":e.push(Le(o.quote));break;case"List":e.push(Le(o.items));break}return e.filter(Boolean).join(`
1
+ import{b as Z,ap as st,r as K,j as t,B as Te,D as ot,v as it,w as lt,x as at,aY as nt,ai as rt,l as _e,y as ct,t as we,c as De,a7 as dt,aS as pt,aR as mt,aO as ut,aM as xt,aN as ft,aQ as gt,aP as ht,bm as bt,h as jt,bn as vt,I as Be}from"./index-BijXK1UR.js";import{u as yt}from"./chat-context-BChErz2e.js";import{i as $e}from"./AlertCircle-DzE-j8Md.js";import{a8 as St,au as kt,ar as Et,k as Nt}from"./agent-icon-DCY-DFu1.js";import{d as Pt}from"./UserSquare-WesfpXiJ.js";import{s as Ct}from"./Trash01-DVB9fxWu.js";import{s as Tt}from"./XClose-BM8Qxy5w.js";import{L as J}from"./label-Cp19UNgk.js";import{M as wt}from"./multi-select-BpPVsFAF.js";import{c as Dt,a as Lt,T as Me,b as Ge}from"./tabs-BTn3mTbH.js";import{S as Bt}from"./switch-DrmfNcNf.js";import{T as Qe}from"./textarea-D0LYBX8O.js";import{H as At,u as Ft,A as It,G as zt,a as $t,O as ze,t as Rt,Q as Ot,T as qt}from"./held-block-view-DCE-bFQS.js";import{f as _t,a as Vt,b as Ht,c as Ue,B as Mt,R as Gt}from"./block-document-CQPNpE_7.js";import{b as Ut,C as Wt,K as Yt}from"./blog-schema-E9phFUsA.js";import{b as Qt,l as Kt,u as Jt,g as Xt,a as Zt,s as es,h as ts,c as z,d as ss,m as os,e as We,E as is,f as ls,p as Ke,r as as,i as Je,R as ns,j as rs,k as cs,o as ds,A as ps,P as ms,q as us}from"./content-tab-DN8B-yRI.js";import{c as Re,T as Oe,a as qe}from"./tooltip-CgSkJPPS.js";import{i as xs}from"./Link01-DRf4-o03.js";import{u as fs}from"./use-ai-providers-TbIEEErY.js";import{u as gs}from"./mustache-BKOMnA_9.js";import{f as hs}from"./use-fast-preview-draft-url-aEjdHT0V.js";import{u as bs}from"./use-autosave-Csd4kJP8.js";import{u as js}from"./site-editor-toast-DIQQclSk.js";import"./use-panel-navigate-C8QBD8vM.js";import"./thread-route-B2S6iOD-.js";import"./use-project-scope-CQd-IFnJ.js";import"./repository-binding-C68Bzwbp.js";import"./use-mcp-client-KWSUvK_a.js";import"./auth-D4mihjB5.js";import"./autosend-BW2sWcH_.js";import"./thread-intent-CdiuimL9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-4Z_1jztZ.js";import"./task-board-CayegZZ3.js";import"./schema-ZtwXZVxu.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-C0wXCfoQ.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-CVUGGfXM.js";import"./use-organization-settings-BnaaX9uD.js";import"./Tool01-DvXBMYEr.js";import"./ArrowUp-ChN8aOEm.js";import"./ArrowLeft-B4Fp6tOY.js";import"./LinkBroken01-C4Xn1L4t.js";import"./ShoppingBag01-w9yIZ7Vl.js";import"./ZoomOut-BMEXUhR4.js";import"./Building02-PnRUM-VE.js";import"./CheckCircle-BH2UP5Pl.js";import"./ChevronUp-C2ixq11S.js";import"./ChevronSelectorVertical-CK7wz4hr.js";import"./Copy01-S_Wzfgys.js";import"./CreditCard01-C9Xxz1Z-.js";import"./DotsVertical-DgY7T0mx.js";import"./Image01-CiWjI_N8.js";import"./Globe04-BPKiswDo.js";import"./SwitchHorizontal01-Cz2viH34.js";import"./Key01-Cl5CaquW.js";import"./Minus-DrIgoneT.js";import"./Monitor01-yYk26cfF.js";import"./Sun-Bb0mDann.js";import"./Play-DiF1YnWe.js";import"./Plus-ajSOCMl5.js";import"./SearchMd-DTaWr-NV.js";import"./Upload01-Bd0Vey4L.js";import"./Users01-BLXU9p3z.js";import"./Zap-sqFFzvOf.js";import"./badge-BYQ7wlS5.js";import"./checkbox-r74ldNXe.js";import"./command-DOj2A4A7.js";import"./index-jOmOmhTz.js";import"./popover-CHbMB3jG.js";import"./active-indicator-CCMhAsc_.js";import"./utils-DSrro3Kq.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DLv_RG2X.js";import"./collapsible-Cq7zc7_4.js";import"./use-copy-BtQZocLW.js";import"./usage-stats-spjeuTC-.js";import"./tool-namespace-BW-tXE6W.js";import"./form-BQ50c_Kc.js";import"./utils-CVEq3hMx.js";import"./markdown-Dq2cTeVK.js";import"./use-mobile-CPIB7FDl.js";import"./use-clock-tick-ffh7KkCE.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-c0XyEtdp.js";import"./types-DK13rTXA.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-7nLfl63D.js";import"./use-deployment-admin-_i-curaL.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-B78RRiv5.js";import"./project-icon-CJYQSuT8.js";import"./new-project-dialog-JbH-ihe7.js";import"./repository-import-picker-EEK-sVVk.js";import"./use-navigate-to-agent-HYjCQ2HB.js";import"./repository-picker-DNE15SEp.js";import"./github-icon-Da5ypnFC.js";import"./useInfiniteQuery-BfYXF3Ue.js";import"./infiniteQueryObserver-o3kSKx55.js";import"./collection-search-CpetsY8q.js";import"./use-debounced-value-AoAqNmHg.js";import"./required-auth-layout-CgViy1W9.js";import"./use-org-sso-CfMRDnRe.js";import"./sheet-BKUj4XRS.js";import"./use-connection-TWR90GP-.js";import"./use-mcp-prompts-BEJ1f99M.js";import"./use-thread-outputs-Ct6GwzUZ.js";import"./file-type-icon-DnkfnNgZ.js";import"./section-array-field-B5eviaUR.js";import"./alert-BClfxRVl.js";import"./parse-sections-BM7rWPEy.js";import"./blocks-tab-states-CTYUutZb.js";import"./slider-CX7at3h2.js";import"./index-D6M26y9G.js";import"./index-BdQq_4o_.js";import"./tooltipContext-B5ecV60a.js";import"./CategoricalChart-Dhwf2GdF.js";import"./index-B4sZcXXO.js";import"./ActiveShapeUtils-CLmYip7o.js";import"./Sector-CBAM4uEa.js";import"./symbol-ChJ7jN3k.js";import"./use-session-runtime-7fOZnFmy.js";import"./empty-state-cQdvFUSC.js";import"./scroll-area-Cp71DHPt.js";import"./monaco-editor-D3-tlVi1.js";import"./editor-BQmG-TWe.js";import"./calendar-Dfa2lTn-.js";import"./select-CSKnqqEb.js";import"./index-HzRnz8QJ.js";import"./editor-classes-DKOvNB3n.js";import"./core.esm-BT_mU3xj.js";import"./sortable.esm-10DRQ2sX.js";import"./toggle-group-DM6uySR5.js";import"./combobox-BUgAhpEW.js";import"./search-input-BrVmXZXF.js";import"./use-file-configs-xfUsfkeK.js";import"./asset-utils-Dv9DtY1w.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-git-api-DcqI6XE4.js";import"./sandbox-url-D3mC8qhT.js";import"./suggestion-xTAroASB.js";import"./section-preview-url-7zfngvgW.js";import"./product-picker-dialog-CDwUdEyI.js";import"./index-DBQYx38N.js";import"./view-header-BDzDO2AR.js";import"./use-cms-publish-actions-eqQub0R0.js";import"./hosted-publish-feedback-CZCgFuTM.js";import"./use-sandbox-events-CHP3Ppk5.js";import"./sandbox-lifecycle-context-BFVSmowb.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-8DTZOusM.js";import"./empty-state-B3qkXyL5.js";import"./collection-table-wrapper-B4u7lstM.js";import"./table-Dzy-0aVP.js";import"./experiments-tab-choice-BPtAtI2U.js";import"./preview-link-C762yHOt.js";import"./variant-draft-pointer-BeAKcq_c.js";const Le=l=>typeof l=="string"?l:"",vs={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&#39;":"'"};function Xe(l){const e=[];let o=0,a=!1;for(;o<l.length;){if(l[o]==="<"){const r=l.indexOf(">",o);o=r<0?l.length:r+1;continue}let s=l[o]??"",c=o+1;if(l[o]==="&"){const r=l.indexOf(";",o);if(r>=0&&r-o<=10){const i=vs[l.slice(o,r+1).toLowerCase()];i!==void 0&&(s=i,c=r+1)}}const d=o;if(o=c,/\s/.test(s)){if(a){const r=e[e.length-1];r&&(r.end=c);continue}e.push({ch:" ",start:d,end:c}),a=!0}else e.push({ch:s,start:d,end:c}),a=!1}return{text:e.map(s=>s.ch).join(""),chars:e}}function ys(l){return Xe(l).text.trim()}function Ss(l){const e=[];for(const o of l)switch(Qt(Le(o.__resolveType))){case"Paragraph":e.push(ys(Le(o.html)));break;case"Heading":e.push(Le(o.text));break;case"Quote":e.push(Le(o.quote));break;case"List":e.push(Le(o.items));break}return e.filter(Boolean).join(`
2
2
  `)}function ks(l){return l.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function Es(l,e){const o=l.slice(0,e);return o.lastIndexOf("<a")>o.lastIndexOf("</a")}function Ns(l,e,o){const a=e.trim();if(!a||!o)return{blocks:l,applied:!1};for(let s=0;s<l.length;s++){const c=l[s];if(!c||typeof c.html!="string")continue;const d=c.html,{text:r,chars:i}=Xe(d);let p=r.indexOf(a);for(;p>=0;){const b=i[p],x=i[p+a.length-1];if(b&&x){const n=b.start,v=x.end,m=d.slice(n,v);if(!m.includes("<")&&!Es(d,n)){const f=d.slice(0,n)+`<a href="${ks(o)}">${m}</a>`+d.slice(v),g=l.slice();return g[s]={...c,html:f},{blocks:g,applied:!0}}}p=r.indexOf(a,p+1)}}return{blocks:l,applied:!1}}function Ps(l,e){let o=l,a=0;for(const s of e){const c=Ns(o,s.quote,s.href);c.applied&&(o=c.blocks,a++)}return{blocks:o,applied:a}}function Cs({virtualMcpId:l,decofile:e,sections:o,currentKey:a,meta:s,hasAi:c,onApply:d}){const r=Z(),i=st(),[p,b]=K.useState(!1),[x,n]=K.useState(!1),[v,m]=K.useState([]),[f,g]=K.useState(new Set),S=_t(e,s),E=Kt(e).filter(j=>j.key!==a&&j.slug),B=async()=>{n(!0);try{const j=Ss(o),N=await i.call("BLOG_SITE_GROUND",{virtualMcpId:l,purpose:"link"}).catch(P=>{console.warn("[linkSuggest] grounding failed",P)}),u=await i.call("BLOG_LINK_SUGGEST",{virtualMcpId:l,body:j,posts:E.map(P=>({title:P.title,slug:P.slug})),grounding:N?{report:N.report,outcome:N.outcome}:void 0}),C=[],T=new Set;for(const P of u.suggestions){const A=E.find(D=>D.slug===P.slug);if(!A||!S)continue;const F=Vt(S,{category:A.categorySlugs[0]??"",slug:A.slug});if(!F||!j.includes(P.quote))continue;const I=`${P.quote}→${A.slug}`;T.has(I)||(T.add(I),C.push({quote:P.quote,href:F,title:A.title}))}m(C),g(new Set(C.map((P,A)=>A))),b(!0),C.length===0&&we.info(r("sandbox.linkSuggest.none"))}catch(j){we.error(j instanceof Error?j.message:r("sandbox.linkSuggest.failed"))}finally{n(!1)}},w=j=>g(N=>{const u=new Set(N);return u.has(j)?u.delete(j):u.add(j),u}),R=()=>{const j=v.filter((C,T)=>f.has(T)).map(C=>({quote:C.quote,href:C.href})),{blocks:N,applied:u}=Ps(o,j);d(N),b(!1),we.success(r("sandbox.linkSuggest.applied",{count:String(u)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:x||!c||E.length===0,title:c?E.length===0?r("sandbox.linkSuggest.noCandidates"):r("sandbox.linkSuggest.hint"):r("sandbox.autonomous.noAiProvider"),onClick:()=>{B()},children:[x?t.jsx(St,{size:14,className:"animate-spin"}):t.jsx(xs,{size:14}),r("sandbox.linkSuggest.button")]}),t.jsx(ot,{open:p,onOpenChange:b,children:t.jsxs(it,{className:"max-h-[85vh] sm:max-w-lg",children:[t.jsxs(lt,{children:[t.jsx(at,{children:r("sandbox.linkSuggest.title")}),t.jsx(nt,{children:r("sandbox.linkSuggest.description")})]}),v.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:r("sandbox.linkSuggest.none")}):t.jsx("ul",{className:"max-h-[50vh] space-y-1 overflow-y-auto",children:v.map((j,N)=>{const u=f.has(N);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>w(N),"aria-pressed":u,className:"flex w-full items-start gap-2.5 rounded-lg border p-2.5 text-left transition-colors hover:bg-accent",children:[t.jsx("span",{className:_e("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",u?"border-primary bg-primary text-primary-foreground":"border-input"),children:u&&t.jsx(rt,{size:11})}),t.jsxs("span",{className:"min-w-0 flex-1 text-sm",children:[t.jsxs("span",{className:"font-medium",children:["“",j.quote,"”"]}),t.jsxs("span",{className:"text-muted-foreground",children:[" → ",j.title]})]})]})},`${j.quote}-${j.href}`)})}),t.jsx(ct,{children:t.jsx(Te,{type:"button",disabled:f.size===0,onClick:R,children:r("sandbox.linkSuggest.apply",{count:String(f.size)})})})]})})]})}function Ts(l){return Array.isArray(l)?l.map(e=>({key:z(e?.key),value:z(e?.value)})):[]}function ws({orgSlug:l,virtualMcpId:e,branch:o,blockKey:a,block:s,decofile:c,meta:d,previewBaseUrl:r,move:i,onClose:p,expanded:b,onToggleExpand:x}){const n=Z(),v=yt()?.taskId??null,m=Ft({orgSlug:l,virtualMcpId:e,branch:o},{holdsCopy:!0}),f=gs({orgSlug:l,virtualMcpId:e,branch:o}),g=js(e,o),S=g.kind==="protocol"&&g.source==="github",E=It({orgSlug:l,virtualMcpId:e,branch:o}),B=fs().length>0,w=Jt(),R=hs({orgSlug:l,virtualMcpId:e,branch:o}),j=Xt(s,"posts"),N=h=>{const k=m.shown(h);return k?{[h]:k}:{}},[u,C,T,P]=bs(j,h=>{m.mutate({blockKey:a,data:Zt(a,es(h))})},{isSaving:m.isPending,onSeed:()=>m.hold(a)}),[A,F]=K.useState(a);A!==a&&(F(a),T(j));const I=h=>{T(u),i.apply(a,h,u,()=>N(a))},D=(h,k)=>C({...u,[h]:k}),_=Ut("posts",d,Yt),O=$t((h,k)=>m.mutate({blockKey:h,data:k})),[V,H]=K.useState(0),q=Ht({decofile:c,post:u,previewBaseUrl:r,draftPointer:R,meta:d}),M=ts(c,"posts",a,z(u.title)),G=ss(u),[U,$]=K.useState(!1),Q=async()=>{T(u);try{const h=await f.mutateAsync({blockKey:a,shown:()=>m.shown(a)});if($(!1),Rt(h))return;we.success(n("sandbox.postEditor.deletePostSuccess",{title:z(u.title)})),p?.()}catch(h){we.error(h instanceof Error?h.message:n("sandbox.postEditor.deletePostFailed"))}},L=os(u),W=L.length>0,Y=L.length===1?n("sandbox.postEditor.missingFieldSingular",{fields:We(L,n)}):n("sandbox.postEditor.missingFieldPlural",{fields:We(L,n)});return t.jsxs("div",{className:"relative flex h-full flex-col",children:[t.jsx("div",{className:"absolute inset-x-0 top-0 z-10 bg-background/80 backdrop-blur-sm",children:t.jsxs("div",{className:"mx-auto flex max-w-4xl items-center justify-between gap-2 px-8 py-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(zt,{isPending:m.isPending||P,isError:m.isError}),W&&t.jsxs(Re,{children:[t.jsx(Oe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx($e,{size:14}),L.length," ",L.length===1?n("sandbox.postEditor.issueSingular"):n("sandbox.postEditor.issuePlural")]})}),t.jsx(qe,{side:"bottom",children:Y})]})]}),(x||p)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[x&&t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:x,title:n(b?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:b?t.jsx(kt,{size:16}):t.jsx(Et,{size:16})}),p&&t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:p,title:n("sandbox.postBoard.close"),children:t.jsx(Tt,{size:16})})]})]})}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 pb-6 pt-14",children:[t.jsx(is,{value:z(u.title),onChange:h=>D("title",h),placeholder:n("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),M&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx($e,{size:14,className:"mt-px shrink-0"}),n("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(Dt,{defaultValue:"content",className:"mt-6 gap-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs(Lt,{children:[t.jsxs(Me,{value:"content",children:[t.jsx(Pt,{}),n("sandbox.postEditor.contentTab")]}),t.jsxs(Me,{value:"settings",children:[t.jsx(Nt,{}),n("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[G&&t.jsxs(Re,{children:[t.jsx(Oe,{asChild:!0,children:t.jsx(Te,{type:"button",variant:"ghost-destructive",size:"sm",className:"px-2","aria-label":n("sandbox.postEditor.deletePost"),onClick:()=>$(!0),children:t.jsx(Ct,{size:14})})}),t.jsx(qe,{side:"bottom",children:n("sandbox.postEditor.deletePost")})]}),w&&t.jsx(Cs,{decofile:c,virtualMcpId:e,sections:Ue(u.sections),currentKey:a,meta:d,hasAi:B,onApply:h=>{D("sections",h),H(k=>k+1)}}),t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:!q,title:n(q?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{q&&window.open(q,"_blank","noopener,noreferrer")},children:[t.jsx(dt,{size:14}),n("sandbox.postEditor.seePreview")]})]})]}),t.jsx(Ge,{value:"content",children:t.jsx("div",{className:"surface p-8",children:t.jsx(Mt,{value:Ue(u.sections),onChange:h=>D("sections",h),meta:d,decofile:c,sandboxRef:{orgSlug:l,virtualMcpId:e,branch:o,threadId:v},previewBaseUrl:r,onSaveReferencedBlock:O,emptyMessage:n("sandbox.postEditor.noContentYet")},V)})}),t.jsx(Ge,{value:"settings",children:t.jsxs("div",{className:"surface p-6",children:[t.jsx(Ls,{post:u,decofile:c,onChange:D,blockKey:a,move:i,onMoveStatus:I}),t.jsx(Wt,{schema:_,value:u,onChange:C,basePath:"post",meta:d,decofile:c,sandbox:{orgSlug:l,virtualMcpId:e,branch:o,threadId:v},onSaveReferencedBlock:O})]})})]})]})}),t.jsx(pt,{open:U,onOpenChange:h=>{!h&&!f.isPending&&$(!1)},children:t.jsxs(mt,{children:[t.jsxs(ut,{children:[t.jsx(xt,{children:n("sandbox.postEditor.deletePostConfirmTitle")}),t.jsx(ft,{children:n(ls("post",S,{neverPublished:E(a)}),{title:z(u.title)||n("sandbox.postBoard.untitled")})})]}),t.jsxs(gt,{children:[t.jsx(ht,{disabled:f.isPending,children:n("sandbox.postEditor.deletePostCancel")}),t.jsx(bt,{onClick:h=>{h.preventDefault(),Q()},disabled:f.isPending,className:_e(vt({variant:"destructive"})),children:f.isPending?t.jsxs(t.Fragment,{children:[t.jsx(jt,{className:"size-3.5"}),n("sandbox.postEditor.deletingPost")]}):n("sandbox.postEditor.deletePost")})]})]})})]})}function Ds(l){const e=De.c(15),{blockKey:o,post:a,move:s,onMoveStatus:c}=l,d=Z();let r;e[0]!==a?(r=Ke(a),e[0]=a,e[1]=r):r=e[1];const i=r;let p,b;if(e[2]!==o||e[3]!==i||e[4]!==s||e[5]!==c||e[6]!==a||e[7]!==d){let n;e[10]!==i?(n=m=>m!=="generating"||i==="generating",e[10]=i,e[11]=n):n=e[11];const v=ms.filter(n);p="flex flex-wrap gap-1.5",b=v.map(m=>{const f=m===i,g=f?null:s.refuse(o,m,a);return t.jsxs(Re,{children:[t.jsx(Oe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!g,"aria-pressed":f,onClick:()=>c(m),className:_e("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",f?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-accent",g&&"cursor-not-allowed opacity-50"),children:d(us[m])})})}),g&&t.jsx(qe,{side:"bottom",children:s.reasonText(g)})]},m)}),e[2]=o,e[3]=i,e[4]=s,e[5]=c,e[6]=a,e[7]=d,e[8]=p,e[9]=b}else p=e[8],b=e[9];let x;return e[12]!==p||e[13]!==b?(x=t.jsx("div",{className:p,children:b}),e[12]=p,e[13]=b,e[14]=x):x=e[14],x}function Ls(l){const e=De.c(166),{post:o,decofile:a,onChange:s,blockKey:c,move:d,onMoveStatus:r}=l,i=Z();let p;e[0]!==o?(p=Ke(o),e[0]=o,e[1]=p):p=e[1];const x=p==="scheduled";let n;e[2]!==o.slug?(n=z(o.slug),e[2]=o.slug,e[3]=n):n=e[3];const v=n,[m,f]=K.useState(v),[g,S]=K.useState(null),[E,B]=K.useState(v);E!==v&&(B(v),f(v));let w;e[4]!==c||e[5]!==v||e[6]!==a||e[7]!==s||e[8]!==m||e[9]!==i?(w=()=>{const y=rs(m);if(f(y),y===v)return;if(!y){S(null),s("slug","");return}const Ve=Je(a,"posts").filter(tt=>tt.key!==c).map(Fs).filter(Boolean);if(!Ve.includes(y)){S(null),s("slug",y);return}const Ie=cs(y,Ve),He=i("sandbox.postEditor.slugDeduped",{slug:Ie});f(Ie),S(He),we.info(He),s("slug",Ie)},e[4]=c,e[5]=v,e[6]=a,e[7]=s,e[8]=m,e[9]=i,e[10]=w):w=e[10];const R=w;let j;e[11]!==i?(j=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=j):j=e[12];let N;e[13]!==j?(N=t.jsx(J,{children:j}),e[13]=j,e[14]=N):N=e[14];let u;e[15]!==c||e[16]!==d||e[17]!==r||e[18]!==o?(u=t.jsx(Ds,{blockKey:c,post:o,move:d,onMoveStatus:r}),e[15]=c,e[16]=d,e[17]=r,e[18]=o,e[19]=u):u=e[19];let C;e[20]!==N||e[21]!==u?(C=t.jsxs("div",{className:"space-y-2",children:[N,u]}),e[20]=N,e[21]=u,e[22]=C):C=e[22];let T;e[23]!==x||e[24]!==s||e[25]!==o.scheduledDatetime||e[26]!==i?(T=x&&t.jsx(ze,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:z(o.scheduledDatetime),onChange:y=>s("scheduledDatetime",y),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=x,e[24]=s,e[25]=o.scheduledDatetime,e[26]=i,e[27]=T):T=e[27];let P;e[28]!==C||e[29]!==T?(P=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[C,T]}),e[28]=C,e[29]=T,e[30]=P):P=e[30];let A;e[31]!==i?(A=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=A):A=e[32];let F;e[33]!==A?(F=t.jsx(J,{htmlFor:"post-excerpt",children:A}),e[33]=A,e[34]=F):F=e[34];let I;e[35]!==o.excerpt?(I=z(o.excerpt),e[35]=o.excerpt,e[36]=I):I=e[36];let D;e[37]!==s?(D=y=>s("excerpt",y.target.value),e[37]=s,e[38]=D):D=e[38];let _;e[39]!==I||e[40]!==D?(_=t.jsx(Qe,{id:"post-excerpt",value:I,onChange:D,rows:2}),e[39]=I,e[40]=D,e[41]=_):_=e[41];let O;e[42]!==F||e[43]!==_?(O=t.jsxs("div",{className:"space-y-2",children:[F,_]}),e[42]=F,e[43]=_,e[44]=O):O=e[44];let V;e[45]!==i?(V=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=V):V=e[46];let H;e[47]!==V?(H=t.jsx(J,{htmlFor:"post-slug",children:V}),e[47]=V,e[48]=H):H=e[48];let q;e[49]===Symbol.for("react.memo_cache_sentinel")?(q=y=>{S(null),f(ds(y.target.value))},e[49]=q):q=e[49];let M;e[50]!==i?(M=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=M):M=e[51];let G;e[52]!==R||e[53]!==m||e[54]!==M?(G=t.jsx(Be,{id:"post-slug",value:m,onChange:q,onBlur:R,placeholder:M,maxLength:80,className:"h-10"}),e[52]=R,e[53]=m,e[54]=M,e[55]=G):G=e[55];let U;e[56]!==g?(U=g&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx($e,{size:14,className:"mt-px shrink-0"}),g]}),e[56]=g,e[57]=U):U=e[57];let $;e[58]!==H||e[59]!==G||e[60]!==U?($=t.jsxs("div",{className:"space-y-2",children:[H,G,U]}),e[58]=H,e[59]=G,e[60]=U,e[61]=$):$=e[61];let Q;e[62]!==i?(Q=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=Q):Q=e[63];let L;e[64]!==Q?(L={type:"string",format:"date",title:Q},e[64]=Q,e[65]=L):L=e[65];let W;e[66]!==o.date?(W=z(o.date),e[66]=o.date,e[67]=W):W=e[67];let Y;e[68]!==s?(Y=y=>s("date",y),e[68]=s,e[69]=Y):Y=e[69];let h;e[70]!==i?(h=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=h):h=e[71];let k;e[72]!==L||e[73]!==W||e[74]!==Y||e[75]!==h?(k=t.jsx(ze,{schema:L,value:W,onChange:Y,path:"post-date",label:h}),e[72]=L,e[73]=W,e[74]=Y,e[75]=h,e[76]=k):k=e[76];let X;e[77]!==i?(X=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=X):X=e[78];let ee;e[79]!==X?(ee={type:"integer",title:X},e[79]=X,e[80]=ee):ee=e[80];const Fe=typeof o.readTime=="number"?o.readTime:void 0;let te;e[81]!==s?(te=y=>s("readTime",y),e[81]=s,e[82]=te):te=e[82];let se;e[83]!==i?(se=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=se):se=e[84];let oe;e[85]!==ee||e[86]!==Fe||e[87]!==te||e[88]!==se?(oe=t.jsx(Ot,{schema:ee,value:Fe,onChange:te,path:"post-read-time",label:se}),e[85]=ee,e[86]=Fe,e[87]=te,e[88]=se,e[89]=oe):oe=e[89];let ie;e[90]!==$||e[91]!==k||e[92]!==oe?(ie=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[$,k,oe]}),e[90]=$,e[91]=k,e[92]=oe,e[93]=ie):ie=e[93];const Ze=o.image,et=o.mobileImage;let le,ae;e[94]!==s?(le=y=>s("image",y),ae=y=>s("mobileImage",y),e[94]=s,e[95]=le,e[96]=ae):(le=e[95],ae=e[96]);let ne;e[97]!==o.alt?(ne=z(o.alt),e[97]=o.alt,e[98]=ne):ne=e[98];let re;e[99]!==i?(re=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=re):re=e[100];let ce;e[101]!==o.image||e[102]!==o.mobileImage||e[103]!==le||e[104]!==ae||e[105]!==ne||e[106]!==re?(ce=t.jsx(Gt,{value:Ze,mobileValue:et,onChange:le,onMobileChange:ae,alt:ne,label:re}),e[101]=o.image,e[102]=o.mobileImage,e[103]=le,e[104]=ae,e[105]=ne,e[106]=re,e[107]=ce):ce=e[107];let de;e[108]!==i?(de=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=de):de=e[109];let pe;e[110]!==i?(pe=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=pe):pe=e[111];let me;e[112]!==de||e[113]!==pe?(me={type:"string",title:de,description:pe},e[112]=de,e[113]=pe,e[114]=me):me=e[114];let ue;e[115]!==o.alt?(ue=z(o.alt),e[115]=o.alt,e[116]=ue):ue=e[116];let xe;e[117]!==s?(xe=y=>s("alt",y),e[117]=s,e[118]=xe):xe=e[118];let fe;e[119]!==i?(fe=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=fe):fe=e[120];let ge;e[121]!==me||e[122]!==ue||e[123]!==xe||e[124]!==fe?(ge=t.jsx(ze,{schema:me,value:ue,onChange:xe,path:"post-alt",label:fe}),e[121]=me,e[122]=ue,e[123]=xe,e[124]=fe,e[125]=ge):ge=e[125];let he;e[126]!==ce||e[127]!==ge?(he=t.jsxs("div",{className:"space-y-2",children:[ce,ge]}),e[126]=ce,e[127]=ge,e[128]=he):he=e[128];let be;e[129]!==i?(be=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=be):be=e[130];let je;e[131]!==s?(je=y=>s("authors",y),e[131]=s,e[132]=je):je=e[132];let ve;e[133]!==a||e[134]!==o.authors||e[135]!==be||e[136]!==je?(ve=t.jsx(Ye,{label:be,decofile:a,kind:"authors",valueField:"email",toRef:As,selected:o.authors,onChange:je}),e[133]=a,e[134]=o.authors,e[135]=be,e[136]=je,e[137]=ve):ve=e[137];let ye;e[138]!==i?(ye=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=ye):ye=e[139];let Se;e[140]!==s?(Se=y=>s("categories",y),e[140]=s,e[141]=Se):Se=e[141];let ke;e[142]!==a||e[143]!==o.categories||e[144]!==ye||e[145]!==Se?(ke=t.jsx(Ye,{label:ye,decofile:a,kind:"categories",valueField:"slug",toRef:Bs,selected:o.categories,onChange:Se}),e[142]=a,e[143]=o.categories,e[144]=ye,e[145]=Se,e[146]=ke):ke=e[146];let Ee;e[147]!==s?(Ee=y=>s("extraProps",y),e[147]=s,e[148]=Ee):Ee=e[148];let Ne;e[149]!==o.extraProps||e[150]!==Ee?(Ne=t.jsx(zs,{value:o.extraProps,onChange:Ee}),e[149]=o.extraProps,e[150]=Ee,e[151]=Ne):Ne=e[151];let Pe;e[152]!==s?(Pe=y=>s("seo",y),e[152]=s,e[153]=Pe):Pe=e[153];let Ce;e[154]!==o.seo||e[155]!==Pe?(Ce=t.jsx(Is,{value:o.seo,onChange:Pe}),e[154]=o.seo,e[155]=Pe,e[156]=Ce):Ce=e[156];let Ae;return e[157]!==O||e[158]!==ie||e[159]!==he||e[160]!==ve||e[161]!==ke||e[162]!==Ne||e[163]!==Ce||e[164]!==P?(Ae=t.jsxs("div",{className:"space-y-5",children:[P,O,ie,he,ve,ke,Ne,Ce]}),e[157]=O,e[158]=ie,e[159]=he,e[160]=ve,e[161]=ke,e[162]=Ne,e[163]=Ce,e[164]=P,e[165]=Ae):Ae=e[165],Ae}function Bs(l){return{name:z(l.name),slug:z(l.slug)}}function As(l){return{...l}}function Fs(l){return z(l.payload.slug)}function Is(l){const e=De.c(93),{value:o,onChange:a}=l,s=Z();let c;e[0]!==o?(c=o&&typeof o=="object"&&!Array.isArray(o)?o:{},e[0]=o,e[1]=c):c=e[1];const d=c;let r;e[2]!==a||e[3]!==d?(r=(k,X)=>a({...d,[k]:X}),e[2]=a,e[3]=d,e[4]=r):r=e[4];const i=r;let p;e[5]!==s?(p=s("sandbox.postEditor.seoSectionLabel"),e[5]=s,e[6]=p):p=e[6];let b;e[7]!==p?(b=t.jsx("p",{className:"text-sm font-medium",children:p}),e[7]=p,e[8]=b):b=e[8];let x;e[9]!==s?(x=s("sandbox.postEditor.seoSectionHint"),e[9]=s,e[10]=x):x=e[10];let n;e[11]!==x?(n=t.jsx("p",{className:"text-xs text-muted-foreground",children:x}),e[11]=x,e[12]=n):n=e[12];let v;e[13]!==b||e[14]!==n?(v=t.jsxs("div",{className:"space-y-1",children:[b,n]}),e[13]=b,e[14]=n,e[15]=v):v=e[15];let m;e[16]!==s?(m=s("sandbox.postEditor.seoTitleLabel"),e[16]=s,e[17]=m):m=e[17];let f;e[18]!==m?(f=t.jsx(J,{htmlFor:"post-seo-title",children:m}),e[18]=m,e[19]=f):f=e[19];let g;e[20]!==d.title?(g=z(d.title),e[20]=d.title,e[21]=g):g=e[21];let S;e[22]!==i?(S=k=>i("title",k.target.value),e[22]=i,e[23]=S):S=e[23];let E;e[24]!==g||e[25]!==S?(E=t.jsx(Be,{id:"post-seo-title",value:g,onChange:S,className:"h-10"}),e[24]=g,e[25]=S,e[26]=E):E=e[26];let B;e[27]!==E||e[28]!==f?(B=t.jsxs("div",{className:"space-y-2",children:[f,E]}),e[27]=E,e[28]=f,e[29]=B):B=e[29];let w;e[30]!==s?(w=s("sandbox.postEditor.seoDescriptionLabel"),e[30]=s,e[31]=w):w=e[31];let R;e[32]!==w?(R=t.jsx(J,{htmlFor:"post-seo-description",children:w}),e[32]=w,e[33]=R):R=e[33];let j;e[34]!==d.description?(j=z(d.description),e[34]=d.description,e[35]=j):j=e[35];let N;e[36]!==i?(N=k=>i("description",k.target.value),e[36]=i,e[37]=N):N=e[37];let u;e[38]!==j||e[39]!==N?(u=t.jsx(Qe,{id:"post-seo-description",value:j,onChange:N,rows:2}),e[38]=j,e[39]=N,e[40]=u):u=e[40];let C;e[41]!==R||e[42]!==u?(C=t.jsxs("div",{className:"space-y-2",children:[R,u]}),e[41]=R,e[42]=u,e[43]=C):C=e[43];let T;e[44]!==s?(T=s("sandbox.postEditor.seoImageLabel"),e[44]=s,e[45]=T):T=e[45];let P;e[46]!==T?(P={type:"string",format:"image-uri",title:T},e[46]=T,e[47]=P):P=e[47];const A=d.image;let F;e[48]!==i?(F=k=>i("image",k),e[48]=i,e[49]=F):F=e[49];let I;e[50]!==s?(I=s("sandbox.postEditor.seoImageLabel"),e[50]=s,e[51]=I):I=e[51];let D;e[52]!==d.image||e[53]!==P||e[54]!==F||e[55]!==I?(D=t.jsx(qt,{schema:P,value:A,onChange:F,path:"post-seo-image",label:I}),e[52]=d.image,e[53]=P,e[54]=F,e[55]=I,e[56]=D):D=e[56];let _;e[57]!==s?(_=s("sandbox.postEditor.seoCanonicalLabel"),e[57]=s,e[58]=_):_=e[58];let O;e[59]!==_?(O=t.jsx(J,{htmlFor:"post-seo-canonical",children:_}),e[59]=_,e[60]=O):O=e[60];let V;e[61]!==d.canonical?(V=z(d.canonical),e[61]=d.canonical,e[62]=V):V=e[62];let H;e[63]!==i?(H=k=>i("canonical",k.target.value),e[63]=i,e[64]=H):H=e[64];let q;e[65]!==s?(q=s("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=s,e[66]=q):q=e[66];let M;e[67]!==V||e[68]!==H||e[69]!==q?(M=t.jsx(Be,{id:"post-seo-canonical",value:V,onChange:H,placeholder:q,className:"h-10"}),e[67]=V,e[68]=H,e[69]=q,e[70]=M):M=e[70];let G;e[71]!==O||e[72]!==M?(G=t.jsxs("div",{className:"space-y-2",children:[O,M]}),e[71]=O,e[72]=M,e[73]=G):G=e[73];let U;e[74]!==s?(U=s("sandbox.postEditor.seoNoIndexingLabel"),e[74]=s,e[75]=U):U=e[75];let $;e[76]!==U?($=t.jsx(J,{htmlFor:"post-seo-no-indexing",children:U}),e[76]=U,e[77]=$):$=e[77];const Q=d.noIndexing===!0;let L;e[78]!==i?(L=k=>i("noIndexing",k),e[78]=i,e[79]=L):L=e[79];let W;e[80]!==Q||e[81]!==L?(W=t.jsx(Bt,{id:"post-seo-no-indexing",checked:Q,onCheckedChange:L}),e[80]=Q,e[81]=L,e[82]=W):W=e[82];let Y;e[83]!==$||e[84]!==W?(Y=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,W]}),e[83]=$,e[84]=W,e[85]=Y):Y=e[85];let h;return e[86]!==B||e[87]!==C||e[88]!==D||e[89]!==G||e[90]!==Y||e[91]!==v?(h=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[v,B,C,D,G,Y]}),e[86]=B,e[87]=C,e[88]=D,e[89]=G,e[90]=Y,e[91]=v,e[92]=h):h=e[92],h}function zs(l){const e=De.c(24),{value:o,onChange:a}=l,s=Z();let c,d,r,i;if(e[0]!==a||e[1]!==s||e[2]!==o){c=Ts(o);const v=(f,g)=>a(c.map((S,E)=>E===f?{...S,...g}:S));d="space-y-2";let m;e[7]!==s?(m=s("sandbox.postEditor.extraPropsLabel"),e[7]=s,e[8]=m):m=e[8],e[9]!==m?(r=t.jsx(J,{children:m}),e[9]=m,e[10]=r):r=e[10],i=c.length>0&&t.jsx("ul",{className:"space-y-2",children:c.map((f,g)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(Be,{value:f.key,onChange:S=>v(g,{key:S.target.value}),placeholder:s("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(Be,{value:f.value,onChange:S=>v(g,{value:S.target.value}),placeholder:s("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(ns,{label:s("sandbox.postEditor.removePropLabel"),onClick:()=>a(c.filter((S,E)=>E!==g))})]},g))}),e[0]=a,e[1]=s,e[2]=o,e[3]=c,e[4]=d,e[5]=r,e[6]=i}else c=e[3],d=e[4],r=e[5],i=e[6];let p;e[11]!==s?(p=s("sandbox.postEditor.addPropLabel"),e[11]=s,e[12]=p):p=e[12];let b;e[13]!==c||e[14]!==a?(b=()=>a([...c,{key:"",value:""}]),e[13]=c,e[14]=a,e[15]=b):b=e[15];let x;e[16]!==p||e[17]!==b?(x=t.jsx(ps,{label:p,onClick:b}),e[16]=p,e[17]=b,e[18]=x):x=e[18];let n;return e[19]!==d||e[20]!==r||e[21]!==i||e[22]!==x?(n=t.jsxs("div",{className:d,children:[r,i,x]}),e[19]=d,e[20]=r,e[21]=i,e[22]=x,e[23]=n):n=e[23],n}function Ye(l){const e=De.c(24),{label:o,decofile:a,kind:s,valueField:c,toRef:d,selected:r,onChange:i}=l,p=Z();let b;e[0]!==a||e[1]!==s||e[2]!==r||e[3]!==d||e[4]!==c?(b=as({records:Je(a,s),selected:r,valueField:c,toRef:d}),e[0]=a,e[1]=s,e[2]=r,e[3]=d,e[4]=c,e[5]=b):b=e[5];const{options:x,selectedValues:n,refsForValues:v}=b;let m;e[6]!==s||e[7]!==p?(m=p(s==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=s,e[7]=p,e[8]=m):m=e[8];const f=m;let g;e[9]!==s||e[10]!==p?(g=p(s==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=s,e[10]=p,e[11]=g):g=e[11];const S=g;let E;e[12]!==o?(E=t.jsx(J,{children:o}),e[12]=o,e[13]=E):E=e[13];let B;e[14]!==f||e[15]!==i||e[16]!==x||e[17]!==v||e[18]!==S||e[19]!==n?(B=x.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:f}):t.jsx(wt,{options:x,defaultValue:n,onValueChange:R=>i(v(R)),placeholder:S,maxCount:4}),e[14]=f,e[15]=i,e[16]=x,e[17]=v,e[18]=S,e[19]=n,e[20]=B):B=e[20];let w;return e[21]!==E||e[22]!==B?(w=t.jsxs("div",{className:"space-y-2",children:[E,B]}),e[21]=E,e[22]=B,e[23]=w):w=e[23],w}function Il(l){const e=De.c(9),o=l.block!==void 0;let a;e[0]!==l?(a=t.jsx(ws,{...l}),e[0]=l,e[1]=a):a=e[1];let s;return e[2]!==l.blockKey||e[3]!==l.branch||e[4]!==l.orgSlug||e[5]!==l.virtualMcpId||e[6]!==o||e[7]!==a?(s=t.jsx(At,{orgSlug:l.orgSlug,virtualMcpId:l.virtualMcpId,branch:l.branch,blockKey:l.blockKey,present:o,children:a}),e[2]=l.blockKey,e[3]=l.branch,e[4]=l.orgSlug,e[5]=l.virtualMcpId,e[6]=o,e[7]=a,e[8]=s):s=e[8],s}export{Il as PostEditor};
@@ -1 +1 @@
1
- import{c as D,b as O,d as ae,f as re,af as oe,j as t,B as Q,a7 as ce,n as de,x as W,l as X}from"./index-WgfN4QVP.js";import{I as ne}from"./icon-button-Dvr6r3yU.js";import{c as Y,T as Z,a as ee}from"./tooltip-CUsEGqy_.js";import{n as fe}from"./ZoomOut-ZB7MeGmK.js";import{l as me,au as xe,P as he}from"./agent-icon-D-0GvNzG.js";import{s as pe}from"./XClose-DsiXpG7_.js";import{F as te,t as V,H as ue}from"./file-share-button-Yp1hPdth.js";import{f as be,F as je,a as ge}from"./file-preview-BIWzBCIQ.js";import{F as se}from"./file-type-icon-BzoA5jiZ.js";import{c as ve,a as we,e as ye}from"./use-org-fs-DRPPAr_0.js";import{p as Pe,b as Ce}from"./location-V0VwTJTt.js";function Ne(b){const e=D.c(13),{previewPath:l}=b,m=O(),r=ae(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let n;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(n=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=n):n=e[6];const c=n;let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(me,{size:14}),e[7]=j):j=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[j,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const Fe=b=>/\.html?$/i.test(b);function le(b){switch(b){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return b}}function ke(b){const e=D.c(12),{expanded:l,onToggle:m,placement:r}=b,p=O();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let n;e[2]!==p||e[3]!==o?(n=p(o),e[2]=p,e[3]=o,e[4]=n):n=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let j;return e[7]!==m||e[8]!==s||e[9]!==n||e[10]!==c?(j=t.jsx(ne,{...s,label:n,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=n,e[10]=c,e[11]=j):j=e[11],j}function ie(b){const e=D.c(9),{onClose:l,placement:m}=b,r=m===void 0?"bar":m,p=O();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(pe,{size:14}),e[4]=n):n=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ne,{...s,label:o,tooltipSide:"bottom",onClick:l,children:n}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function De(b){const e=D.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=b,o=p===void 0?!1:p,n=O();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const j=c,{volume:u,dirPath:x}=j,{data:f,isPending:A}=ve(u,x),H=we(u??"");let w,y,a,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let g;e[17]!==i?(g=V(i),e[17]=i,e[18]=g):g=e[18],w=g;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(ke,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let v;e[22]!==l||e[23]!==o?(v=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=v):v=e[24],P=v,a=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=a&&f&&Fe(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=a,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],a=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let g;e[25]!==d||e[26]!==h?(g=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=g):g=e[27];const T=a.downloadUrl;let v;e[28]!==f?(v=ye(f),e[28]=f,e[29]=v):v=e[29];let z;e[30]!==s?(z=s==="panel"?void 0:le(s),e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,q=u??"",G=f.shareMode??"private",J=f.effectivePublic??!1,K=window.location.origin+a.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==G||e[35]!==J||e[36]!==K||e[37]!==q?(S=t.jsx(te,{volume:q,path:x,shareMode:G,effectivePublic:J,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=G,e[35]=J,e[36]=K,e[37]=q,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==a.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==v||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:v,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=a.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=v,e[54]=z,e[55]=R,e[56]=L):L=e[56];let E;return e[57]!==L||e[58]!==g?(E=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=E):E=e[59],E}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==a||e[64]!==x||e[65]!==i||e[66]!==n||e[67]!==u?(C=a&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+a.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:a.downloadUrl,download:a.filename,children:t.jsx(fe,{size:14})})})}),t.jsx(ee,{side:"bottom",children:n("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(a.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:n("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=a,e[64]=x,e[65]=i,e[66]=n,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let F;e[77]!==M||e[78]!==a||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(F=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),a&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:be(a.size)})]}),M]}),e[77]=M,e[78]=a,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=F):F=e[83];let k;e[84]!==a||e[85]!==d||e[86]!==A||e[87]!==n?(k=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:a?t.jsx(je,{file:a}):A?t.jsx(ge,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:n("library.previewContent.fileNotAvailable")})]})}),e[84]=a,e[85]=d,e[86]=A,e[87]=n,e[88]=k):k=e[88];let _;return e[89]!==F||e[90]!==k?(_=t.jsxs(t.Fragment,{children:[F,k]}),e[89]=F,e[90]=k,e[91]=_):_=e[91],_}export{De as L};
1
+ import{c as D,b as O,d as ae,f as re,af as oe,j as t,B as Q,a7 as ce,n as de,x as W,l as X}from"./index-BijXK1UR.js";import{I as ne}from"./icon-button-Dr-Gv6H0.js";import{c as Y,T as Z,a as ee}from"./tooltip-CgSkJPPS.js";import{n as fe}from"./ZoomOut-BMEXUhR4.js";import{l as me,au as xe,P as he}from"./agent-icon-DCY-DFu1.js";import{s as pe}from"./XClose-BM8Qxy5w.js";import{F as te,t as V,H as ue}from"./file-share-button-_yfZfWoE.js";import{f as be,F as je,a as ge}from"./file-preview-DtFhFlGD.js";import{F as se}from"./file-type-icon-DnkfnNgZ.js";import{c as ve,a as we,e as ye}from"./use-org-fs-CRpJAVmi.js";import{p as Pe,b as Ce}from"./location-V0VwTJTt.js";function Ne(b){const e=D.c(13),{previewPath:l}=b,m=O(),r=ae(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let n;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(n=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=n):n=e[6];const c=n;let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(me,{size:14}),e[7]=j):j=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[j,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const Fe=b=>/\.html?$/i.test(b);function le(b){switch(b){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return b}}function ke(b){const e=D.c(12),{expanded:l,onToggle:m,placement:r}=b,p=O();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let n;e[2]!==p||e[3]!==o?(n=p(o),e[2]=p,e[3]=o,e[4]=n):n=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let j;return e[7]!==m||e[8]!==s||e[9]!==n||e[10]!==c?(j=t.jsx(ne,{...s,label:n,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=n,e[10]=c,e[11]=j):j=e[11],j}function ie(b){const e=D.c(9),{onClose:l,placement:m}=b,r=m===void 0?"bar":m,p=O();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(pe,{size:14}),e[4]=n):n=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ne,{...s,label:o,tooltipSide:"bottom",onClick:l,children:n}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function De(b){const e=D.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=b,o=p===void 0?!1:p,n=O();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const j=c,{volume:u,dirPath:x}=j,{data:f,isPending:A}=ve(u,x),H=we(u??"");let w,y,a,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let g;e[17]!==i?(g=V(i),e[17]=i,e[18]=g):g=e[18],w=g;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(ke,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let v;e[22]!==l||e[23]!==o?(v=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=v):v=e[24],P=v,a=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=a&&f&&Fe(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=a,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],a=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let g;e[25]!==d||e[26]!==h?(g=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=g):g=e[27];const T=a.downloadUrl;let v;e[28]!==f?(v=ye(f),e[28]=f,e[29]=v):v=e[29];let z;e[30]!==s?(z=s==="panel"?void 0:le(s),e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,q=u??"",G=f.shareMode??"private",J=f.effectivePublic??!1,K=window.location.origin+a.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==G||e[35]!==J||e[36]!==K||e[37]!==q?(S=t.jsx(te,{volume:q,path:x,shareMode:G,effectivePublic:J,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=G,e[35]=J,e[36]=K,e[37]=q,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==a.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==v||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:v,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=a.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=v,e[54]=z,e[55]=R,e[56]=L):L=e[56];let E;return e[57]!==L||e[58]!==g?(E=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=E):E=e[59],E}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==a||e[64]!==x||e[65]!==i||e[66]!==n||e[67]!==u?(C=a&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+a.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:a.downloadUrl,download:a.filename,children:t.jsx(fe,{size:14})})})}),t.jsx(ee,{side:"bottom",children:n("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(a.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:n("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=a,e[64]=x,e[65]=i,e[66]=n,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let F;e[77]!==M||e[78]!==a||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(F=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),a&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:be(a.size)})]}),M]}),e[77]=M,e[78]=a,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=F):F=e[83];let k;e[84]!==a||e[85]!==d||e[86]!==A||e[87]!==n?(k=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:a?t.jsx(je,{file:a}):A?t.jsx(ge,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:n("library.previewContent.fileNotAvailable")})]})}),e[84]=a,e[85]=d,e[86]=A,e[87]=n,e[88]=k):k=e[88];let _;return e[89]!==F||e[90]!==k?(_=t.jsxs(t.Fragment,{children:[F,k]}),e[89]=F,e[90]=k,e[91]=_):_=e[91],_}export{De as L};
@@ -1 +1 @@
1
- import{c as p,j as l,v as x,D as f}from"./index-WgfN4QVP.js";import{L as h}from"./preview-content-SmC2ClvS.js";function g(c){const e=p.c(9),{previewPath:r,onClose:o,showSeeInLibrary:n}=c,a=n===void 0?!1:n;let i;e[0]!==o?(i=m=>{m||o()},e[0]=o,e[1]=i):i=e[1];let s;e[2]!==o||e[3]!==r||e[4]!==a?(s=l.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"top-2 right-3",children:l.jsx(h,{previewPath:r,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=r,e[4]=a,e[5]=s):s=e[5];let t;return e[6]!==i||e[7]!==s?(t=l.jsx(f,{open:!0,onOpenChange:i,children:s}),e[6]=i,e[7]=s,e[8]=t):t=e[8],t}export{g as L};
1
+ import{c as p,j as l,v as x,D as f}from"./index-BijXK1UR.js";import{L as h}from"./preview-content-Di4bx53_.js";function g(c){const e=p.c(9),{previewPath:r,onClose:o,showSeeInLibrary:n}=c,a=n===void 0?!1:n;let i;e[0]!==o?(i=m=>{m||o()},e[0]=o,e[1]=i):i=e[1];let s;e[2]!==o||e[3]!==r||e[4]!==a?(s=l.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"top-2 right-3",children:l.jsx(h,{previewPath:r,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=r,e[4]=a,e[5]=s):s=e[5];let t;return e[6]!==i||e[7]!==s?(t=l.jsx(f,{open:!0,onOpenChange:i,children:s}),e[6]=i,e[7]=s,e[8]=t):t=e[8],t}export{g as L};
@@ -1 +1 @@
1
- import{c as p,j as c}from"./index-WgfN4QVP.js";import{L as x}from"./preview-content-SmC2ClvS.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};
1
+ import{c as p,j as c}from"./index-BijXK1UR.js";import{L as x}from"./preview-content-Di4bx53_.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};