decocms 4.581.0 → 4.582.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/dist/client/assets/{AlertCircle-BNgT9H-9.js → AlertCircle-D-4TK36c.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CizTxrut.js → AreaChart-CkFdSy1i.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CzuIgcZK.js → ArrowLeft-B34wRVvp.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DX0Oa8sk.js → ArrowUp-Cf_Jm-4W.js} +1 -1
  5. package/dist/client/assets/{BookOpen01-BDEDqARy.js → BookOpen01-Cu2i97yZ.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-D3UU8n4G.js → CartesianChart-gyi9lPG0.js} +1 -1
  7. package/dist/client/assets/{CategoricalChart-BXx_yOPa.js → CategoricalChart-DplIvctj.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-DGPVeuCJ.js → CheckCircle-D-W30b_A.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-CI140ew9.js → ChevronSelectorVertical-BORaKUYt.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-B9DaDvS3.js → ChevronUp-s7k4XU_p.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-BmpzvB5e.js → CreditCard01-C2QL2326.js} +1 -1
  12. package/dist/client/assets/{Globe04-BpbOo7AZ.js → Globe04-dU-sELuJ.js} +1 -1
  13. package/dist/client/assets/{Key01-Cpl2DWV2.js → Key01-zay6mYZz.js} +1 -1
  14. package/dist/client/assets/{LinkBroken01-l43AWgbv.js → LinkBroken01-D4Fzd5qu.js} +1 -1
  15. package/dist/client/assets/{Minus-DyKaWISs.js → Minus-BikCplhC.js} +1 -1
  16. package/dist/client/assets/{Monitor01-BdFmkSiY.js → Monitor01-DLndo6aP.js} +1 -1
  17. package/dist/client/assets/{Play-BDaEp7vE.js → Play-D_FIXuay.js} +1 -1
  18. package/dist/client/assets/{Plus-Dxw22W7_.js → Plus-D2V2-fTF.js} +1 -1
  19. package/dist/client/assets/ReferenceLine-BHHh91iS.js +1 -0
  20. package/dist/client/assets/{SearchMd-DuFQ9UgF.js → SearchMd-DUXCcvZJ.js} +1 -1
  21. package/dist/client/assets/{ShoppingBag01-Bf_3Yh5l.js → ShoppingBag01-Dak2svm7.js} +1 -1
  22. package/dist/client/assets/{Sun-vurMVi6G.js → Sun-BFXO9tQN.js} +1 -1
  23. package/dist/client/assets/{SwitchHorizontal01-C-rlzvYe.js → SwitchHorizontal01-2Pb5aRtq.js} +1 -1
  24. package/dist/client/assets/{Tool01-D4x0RZqM.js → Tool01-s83oNDoy.js} +1 -1
  25. package/dist/client/assets/{Tooltip-BKPDgiqg.js → Tooltip-D91NYjQw.js} +1 -1
  26. package/dist/client/assets/{Trash01-CGrA2ON1.js → Trash01-Bu2u0WVA.js} +1 -1
  27. package/dist/client/assets/{Upload01-6kkhuzxl.js → Upload01-mgXAmijc.js} +1 -1
  28. package/dist/client/assets/{UserSquare-nHYvjai8.js → UserSquare-DE5Uc7_R.js} +1 -1
  29. package/dist/client/assets/{Users01-e2r7hqMU.js → Users01-C3CmvyvK.js} +1 -1
  30. package/dist/client/assets/{XClose-CBDYK_AJ.js → XClose-l5OHkJlr.js} +1 -1
  31. package/dist/client/assets/{Zap-DfRMi_rk.js → Zap-DN6rNQ1C.js} +1 -1
  32. package/dist/client/assets/{access-gate-3uWjt152.js → access-gate-CLxhnjg9.js} +1 -1
  33. package/dist/client/assets/{add-connection-dialog-CsWthpZ9.js → add-connection-dialog-ZYFX175e.js} +1 -1
  34. package/dist/client/assets/agent-app-Cimvv1NW.js +1 -0
  35. package/dist/client/assets/agent-assets-CXtexOn6.js +1 -0
  36. package/dist/client/assets/{agent-automation-B9u566HN.js → agent-automation-DnUzn_Xt.js} +3 -3
  37. package/dist/client/assets/{agent-automations-C6qoE6-c.js → agent-automations-D4hO7Hf6.js} +1 -1
  38. package/dist/client/assets/agent-blog-C6-P3uCx.js +2 -0
  39. package/dist/client/assets/{agent-blog-post-D4VabN4w.js → agent-blog-post-tCR4iQAk.js} +2 -2
  40. package/dist/client/assets/{agent-calendar-B1gsu6Ys.js → agent-calendar-DqwMJ6TI.js} +1 -1
  41. package/dist/client/assets/{agent-capabilities-BobB8G3S.js → agent-capabilities-DWTuevMP.js} +1 -1
  42. package/dist/client/assets/{agent-connect-sources-D7PAwbiu.js → agent-connect-sources-CQDMgwdR.js} +1 -1
  43. package/dist/client/assets/agent-deck-CTEHtbNm.js +1 -0
  44. package/dist/client/assets/{agent-e2e-BqPOwNTz.js → agent-e2e-CgIk5HXH.js} +1 -1
  45. package/dist/client/assets/agent-experiments-DWa03yYa.js +1 -0
  46. package/dist/client/assets/{agent-file-Ctv4ydWn.js → agent-file-C8OplG41.js} +1 -1
  47. package/dist/client/assets/{agent-hosting-BwGgYisC.js → agent-hosting-DZwc-hYc.js} +1 -1
  48. package/dist/client/assets/{agent-icon-7pgGOyab.js → agent-icon-DHk7TnW1.js} +1 -1
  49. package/dist/client/assets/agent-library-Bhlc7QbZ.js +1 -0
  50. package/dist/client/assets/agent-library-file-NZe3W-xa.js +1 -0
  51. package/dist/client/assets/agent-overview-BjxnoHtS.js +1 -0
  52. package/dist/client/assets/{agent-releases-nWFHpAct.js → agent-releases-DJXEsnr4.js} +2 -2
  53. package/dist/client/assets/agent-settings-IyhNx_G4.js +1 -0
  54. package/dist/client/assets/{agent-site-editor-Beg3HEIb.js → agent-site-editor-LnCUJUlb.js} +1 -1
  55. package/dist/client/assets/agent-site-editor-code-B371nTRh.js +2 -0
  56. package/dist/client/assets/agent-site-editor-content-B6-iieBO.js +1 -0
  57. package/dist/client/assets/agent-site-editor-preview-Dt3bOYz8.js +1 -0
  58. package/dist/client/assets/agent-view-BIybMP8S.js +1 -0
  59. package/dist/client/assets/{agent-view-guard-Cke4S3ir.js → agent-view-guard-BkBbWqXx.js} +1 -1
  60. package/dist/client/assets/{ai-providers-ZTS5TR34.js → ai-providers-CPyrRCb2.js} +1 -1
  61. package/dist/client/assets/{alert-CwJgunZE.js → alert-I1_CrCmh.js} +1 -1
  62. package/dist/client/assets/{analytics-sections-D0V5jY1C.js → analytics-sections-BrNKTJt8.js} +1 -1
  63. package/dist/client/assets/api-keys-BFjbEQH6.js +1 -0
  64. package/dist/client/assets/{api-keys-Buv3-6nf.js → api-keys-CQiDxx3i.js} +1 -1
  65. package/dist/client/assets/{app-editor-DalU60Mc.js → app-editor-Bu-6D-sg.js} +1 -1
  66. package/dist/client/assets/{asset-utils-DwPuRMbV.js → asset-utils-B-KuVMuY.js} +1 -1
  67. package/dist/client/assets/{auth-DNlWgaIH.js → auth-Dh-2aYdX.js} +1 -1
  68. package/dist/client/assets/{auth-catchall-CmRd1j4n.js → auth-catchall-DXrxcWBf.js} +1 -1
  69. package/dist/client/assets/{auth-entry-4GYbBxwp.js → auth-entry-NtnP78Ol.js} +1 -1
  70. package/dist/client/assets/{auth-split-layout-6Kr3YCmt.js → auth-split-layout-FNYje5VL.js} +1 -1
  71. package/dist/client/assets/{authenticate-and-persist-oauth-DpD35C_P.js → authenticate-and-persist-oauth-DOEkiQ_u.js} +1 -1
  72. package/dist/client/assets/{automation-list-row-_Hy4DAtc.js → automation-list-row-CE7SXhaQ.js} +1 -1
  73. package/dist/client/assets/{automation-runs-D3xh6rqy.js → automation-runs-C2quHBYd.js} +1 -1
  74. package/dist/client/assets/{automations-TJ3lg--K.js → automations-DPaT01e7.js} +1 -1
  75. package/dist/client/assets/{badge-DJzADYLN.js → badge-BGmWPELn.js} +1 -1
  76. package/dist/client/assets/{block-document-CLlHaiqy.js → block-document-CuBMSVVn.js} +3 -3
  77. package/dist/client/assets/{blocks-preview-workspace-context-CLkDzb1Y.js → blocks-preview-workspace-context-MbfgZRXf.js} +1 -1
  78. package/dist/client/assets/{blocks-tab-states-Dos-yNvu.js → blocks-tab-states-DdvH_zgH.js} +1 -1
  79. package/dist/client/assets/{blog-preview-url-B9WnCIII.js → blog-preview-url-BoKhflQE.js} +1 -1
  80. package/dist/client/assets/{blog-schema-BNmzJDEb.js → blog-schema-EWcl-SDU.js} +1 -1
  81. package/dist/client/assets/{blog-source-gate-DKGtTR_Q.js → blog-source-gate-ChrbmkH2.js} +1 -1
  82. package/dist/client/assets/{blog-view-gate-CQ9aPosu.js → blog-view-gate-BPhH6bKz.js} +1 -1
  83. package/dist/client/assets/{buckets-Bi-uiwLZ.js → buckets-lH8mvjw2.js} +1 -1
  84. package/dist/client/assets/{build-improve-prompt-doc-D2ZrR4ET.js → build-improve-prompt-doc-ZkNhFh73.js} +1 -1
  85. package/dist/client/assets/{calendar-DVn2WJPG.js → calendar-DD1b_D7F.js} +1 -1
  86. package/dist/client/assets/{capability-load-error-BQYVgnjq.js → capability-load-error-CmORVXZR.js} +1 -1
  87. package/dist/client/assets/{category-editor-BiRVC1cc.js → category-editor-CIxCWDky.js} +1 -1
  88. package/dist/client/assets/{category-tree-jh72wtxu.js → category-tree-ArvPlYX5.js} +1 -1
  89. package/dist/client/assets/{chart-Ddie86U1.js → chart-q3aX-DjJ.js} +1 -1
  90. package/dist/client/assets/{chat-context-ChgzPsES.js → chat-context-B9rZ1ojJ.js} +1 -1
  91. package/dist/client/assets/{chat-draft-B2tS32RP.js → chat-draft-BsgbOfj3.js} +1 -1
  92. package/dist/client/assets/{checkbox-CQfIpQ5a.js → checkbox-JFndFNuZ.js} +1 -1
  93. package/dist/client/assets/{choose-editor-Bwogocbp.js → choose-editor-DvmC-iMO.js} +1 -1
  94. package/dist/client/assets/{cli-auth-success-DbSIbWbL.js → cli-auth-success-CTMmXIbK.js} +1 -1
  95. package/dist/client/assets/{client-icons-yH-3z7dy.js → client-icons-CvP_xTjP.js} +1 -1
  96. package/dist/client/assets/{cms-settings-editor-DuNBWNJd.js → cms-settings-editor-9nWJpKcE.js} +1 -1
  97. package/dist/client/assets/{cms-store-drafts-DGLCde3H.js → cms-store-drafts-Cp0f_S-1.js} +1 -1
  98. package/dist/client/assets/{collapsible-fuf-L_qO.js → collapsible-B4lmmxiu.js} +1 -1
  99. package/dist/client/assets/{collection-detail-CJvo4hBg.js → collection-detail-DLSsSNsw.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-zHygXgth.js → collection-display-button-L-gJFCO8.js} +1 -1
  101. package/dist/client/assets/{collection-search-DIXRttD3.js → collection-search-j-a5PWZI.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-Bp116wWk.js → collection-table-wrapper-BbdjpVWW.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-nxDU_6IX.js → collection-tabs-DHj6Urx3.js} +1 -1
  104. package/dist/client/assets/{combobox-BOO1GhW0.js → combobox-CBPCAqF_.js} +1 -1
  105. package/dist/client/assets/{command-BBpufUKx.js → command-DCUf4RGf.js} +1 -1
  106. package/dist/client/assets/{companion-mcps-section-Cw9eOzvy.js → companion-mcps-section-C-0h9QLB.js} +1 -1
  107. package/dist/client/assets/{config-DZ1AmUim.js → config-gK1vyYpA.js} +1 -1
  108. package/dist/client/assets/{connect-QNbrI0M1.js → connect-BjmhjHJY.js} +2 -2
  109. package/dist/client/assets/{connect-layout-CmTu9QhZ.js → connect-layout-BiGf7x_Q.js} +1 -1
  110. package/dist/client/assets/{connect-source-dialog-DgL9lhtn.js → connect-source-dialog-C9cU78Fo.js} +1 -1
  111. package/dist/client/assets/{connection-CP9XigF8.js → connection-CG7u8AbM.js} +1 -1
  112. package/dist/client/assets/{connection-card-C84CXoEt.js → connection-card-C5XxA3Cv.js} +1 -1
  113. package/dist/client/assets/{connection-detail-3J7QgUsN.js → connection-detail-DpiK53yx.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-vw6gzBiD.js → connection-form-helpers-B2Vjms_B.js} +1 -1
  115. package/dist/client/assets/{connection-slug-CI3A8_ee.js → connection-slug-C9_jBSFl.js} +1 -1
  116. package/dist/client/assets/{connections-BHsWCRN2.js → connections-COV9Ow5m.js} +1 -1
  117. package/dist/client/assets/{content-tab-UCeaV9ZK.js → content-tab-Ct80gvFF.js} +3 -3
  118. package/dist/client/assets/{context-CqcUfuqw.js → context-BvzzvYU9.js} +1 -1
  119. package/dist/client/assets/{context-menu-DTU6qOVz.js → context-menu-B7ywEyjT.js} +1 -1
  120. package/dist/client/assets/{context-shell-DqR6-S0A.js → context-shell-C6vXZZrB.js} +3 -3
  121. package/dist/client/assets/{core.esm-DCJ7aKR3.js → core.esm-B-QMfivo.js} +1 -1
  122. package/dist/client/assets/{create-organization-dialog-DKxaQrfF.js → create-organization-dialog-CfD4gWck.js} +1 -1
  123. package/dist/client/assets/{delete-copy-sYXKk3Pf.js → delete-copy-CPJVDDbB.js} +1 -1
  124. package/dist/client/assets/{device-hint-D11AIkCQ.js → device-hint-CwVsFX34.js} +1 -1
  125. package/dist/client/assets/discover-BoR_YGj-.js +1 -0
  126. package/dist/client/assets/{domain-settings-DBmeAU8w.js → domain-settings-Dgpsy8Ru.js} +1 -1
  127. package/dist/client/assets/{drawer-DyYc7c6p.js → drawer-DRyRdlMw.js} +1 -1
  128. package/dist/client/assets/{editor-Cx1cLsfT.js → editor-FceeQfS7.js} +2 -2
  129. package/dist/client/assets/{editor-classes-5OQkwYAb.js → editor-classes-D9FopdtJ.js} +1 -1
  130. package/dist/client/assets/{empty-message-BxCQf5X6.js → empty-message-ILKuHEfQ.js} +1 -1
  131. package/dist/client/assets/{empty-state-COfoPZ3l.js → empty-state-BmCMJHsS.js} +1 -1
  132. package/dist/client/assets/{empty-state-A6nZ3Khe.js → empty-state-GIO1CyUk.js} +1 -1
  133. package/dist/client/assets/{experiments-tab-choice-DaaymsEH.js → experiments-tab-choice-CAU_bLj1.js} +1 -1
  134. package/dist/client/assets/{extract-connection-data-Cfb1bv3l.js → extract-connection-data-BKW6jN3t.js} +1 -1
  135. package/dist/client/assets/{feature-gate-CESZ0bbT.js → feature-gate-2lTAc4xs.js} +1 -1
  136. package/dist/client/assets/{feature-paywall-D4s9Ps36.js → feature-paywall-DrXSdvNQ.js} +1 -1
  137. package/dist/client/assets/{file-explorer-syldxbM0.js → file-explorer-SB0BRdQa.js} +1 -1
  138. package/dist/client/assets/{file-preview-B5GYsNzx.js → file-preview-mmsBTOqH.js} +1 -1
  139. package/dist/client/assets/{file-share-button-O89-cSWp.js → file-share-button-BmXIU90b.js} +1 -1
  140. package/dist/client/assets/{file-type-icon-CK3whZmM.js → file-type-icon-CLz3IVP9.js} +1 -1
  141. package/dist/client/assets/{folder-icon-B0bQ9NL4.js → folder-icon-DczOK4X3.js} +1 -1
  142. package/dist/client/assets/{form-CKh2Qm-8.js → form-B_7ux469.js} +1 -1
  143. package/dist/client/assets/{frame-navigation-c9xPkylV.js → frame-navigation-BFx5wDUC.js} +1 -1
  144. package/dist/client/assets/{general-4YbTEBSJ.js → general-CPM5iXZa.js} +1 -1
  145. package/dist/client/assets/{github-icon-D3u8oGuo.js → github-icon-1x8ZI6aO.js} +1 -1
  146. package/dist/client/assets/held-block-view-CwWI05W1.js +3 -0
  147. package/dist/client/assets/{home-7FPOWVs4.js → home-CYIjoH-m.js} +1 -1
  148. package/dist/client/assets/{home-overview-D_b45WGe.js → home-overview-BvhVg2vV.js} +1 -1
  149. package/dist/client/assets/{hosted-reconcile-j0Z_Am5O.js → hosted-reconcile-J9x487tr.js} +1 -1
  150. package/dist/client/assets/{icon-button-Bd1QIQSI.js → icon-button-DoWTRkdN.js} +1 -1
  151. package/dist/client/assets/{index-BtpIwkuJ.js → index-249EXZ6B.js} +1 -1
  152. package/dist/client/assets/{index-BzeTLGQv.js → index-3FmhyOXc.js} +1 -1
  153. package/dist/client/assets/{index-DdNgZUci.js → index-B-Ig6PCZ.js} +1 -1
  154. package/dist/client/assets/{index-CB2dsreI.js → index-BW4kEj0q.js} +1 -1
  155. package/dist/client/assets/{index-B1ZkAVAg.js → index-BWer9hfc.js} +1 -1
  156. package/dist/client/assets/{index-BK7R90SQ.js → index-BcW9W_hK.js} +1 -1
  157. package/dist/client/assets/{index-DYPWHH-M.css → index-BtRGS8vq.css} +1 -1
  158. package/dist/client/assets/index-CFMb9ZoK.js +4 -0
  159. package/dist/client/assets/{index-Ctd-FMgv.js → index-CFoO-AVG.js} +1 -1
  160. package/dist/client/assets/{index-D1SFZrX0.js → index-CITQS6NN.js} +1 -1
  161. package/dist/client/assets/{index-mWjBJsbL.js → index-D-5KT7YJ.js} +1 -1
  162. package/dist/client/assets/{index-RtIgAXvS.js → index-D4fWOfQV.js} +1 -1
  163. package/dist/client/assets/{index-BqA84bKQ.js → index-D9wygnbU.js} +5 -5
  164. package/dist/client/assets/{index-ClzeL0fX.js → index-DT6cEtD6.js} +1 -1
  165. package/dist/client/assets/{index-CC3v5-e4.js → index-DpIy5MwJ.js} +1 -1
  166. package/dist/client/assets/{index-Dnajt-Ss.js → index-OqiiY1Yn.js} +1 -1
  167. package/dist/client/assets/{index-Bx5tjmDd.js → index-mxlRzmxc.js} +1 -1
  168. package/dist/client/assets/{index-redirect-DqohMHdx.js → index-redirect-CJIC9mkE.js} +1 -1
  169. package/dist/client/assets/{index-BUdfGMTq.js → index-rmNLmONI.js} +1 -1
  170. package/dist/client/assets/{infiniteQueryObserver-amUGbo-h.js → infiniteQueryObserver-oJohchTM.js} +1 -1
  171. package/dist/client/assets/{infra-billing-aV_8QlC0.js → infra-billing-BmRwy4ol.js} +1 -1
  172. package/dist/client/assets/{input-CfL5_z7D.js → input-8RS_xi7t.js} +4 -4
  173. package/dist/client/assets/{input-D3jDgHNU.js → input-BKW9wk8M.js} +1 -1
  174. package/dist/client/assets/{integration-icon-C9sCBDDr.js → integration-icon-BPaLmZuD.js} +1 -1
  175. package/dist/client/assets/item-actions-1298TOwC.js +1 -0
  176. package/dist/client/assets/{jira-icon-CcSFFwnZ.js → jira-icon-DjiAFXC-.js} +1 -1
  177. package/dist/client/assets/{label-Ducx0j9M.js → label-CzgbmbQw.js} +1 -1
  178. package/dist/client/assets/{layout-DCetvNif.js → layout-CUqOdrCT.js} +1 -1
  179. package/dist/client/assets/{legacy-admin-welcome-dialog-C1mvlaj8.js → legacy-admin-welcome-dialog-D_Hj5ND0.js} +1 -1
  180. package/dist/client/assets/{legacy-agents-deep-BrG2c50d.js → legacy-agents-deep-CzKSWS31.js} +1 -1
  181. package/dist/client/assets/{legacy-main-redirect-B0LLa-b2.js → legacy-main-redirect-DS2vLtmG.js} +1 -1
  182. package/dist/client/assets/library-Brt6n-TA.js +1 -0
  183. package/dist/client/assets/{library-tab-y1C-Q300.js → library-tab-CH65a0_i.js} +1 -1
  184. package/dist/client/assets/{login-DnAhZq8E.js → login-BB30sN9A.js} +1 -1
  185. package/dist/client/assets/{markdown-DTS1cwWT.js → markdown-Ck8Lzm4U.js} +1 -1
  186. package/dist/client/assets/match-site-slug-config-B47_xZCi.js +1 -0
  187. package/dist/client/assets/{mcp-app-renderer-DEXD8Qqv.js → mcp-app-renderer-Bo8RWBFo.js} +1 -1
  188. package/dist/client/assets/{mcp-oauth-C8CUMukq.js → mcp-oauth-3agwb6e9.js} +1 -1
  189. package/dist/client/assets/{mcp-oauth-CMXtLqpM.js → mcp-oauth-D2OwpRg0.js} +1 -1
  190. package/dist/client/assets/{members-CUn6ovIa.js → members-ChISvAMj.js} +1 -1
  191. package/dist/client/assets/{memory-DEndhGVA.js → memory-C27haG4J.js} +2 -2
  192. package/dist/client/assets/{mock-board-hNoqXmUR.js → mock-board-BywyOk2L.js} +4 -4
  193. package/dist/client/assets/{monaco-editor-BKbGnxf4.js → monaco-editor-Dfffv6IO.js} +1 -1
  194. package/dist/client/assets/{monitoring-T940h_oR.js → monitoring-CHShsrek.js} +1 -1
  195. package/dist/client/assets/{monitoring-stats-row-2tRkF4-m.js → monitoring-stats-row-D7LX-cE_.js} +1 -1
  196. package/dist/client/assets/{multi-select-GBdcv1ph.js → multi-select-B4TjM0bb.js} +1 -1
  197. package/dist/client/assets/{mustache-CNh4n0Td.js → mustache-DTIKPLCX.js} +1 -1
  198. package/dist/client/assets/{named-rule-step-7q8hws5D.js → named-rule-step-DvAWHM_a.js} +1 -1
  199. package/dist/client/assets/{named-rule-view-cnpqxYzZ.js → named-rule-view-BNe6XoGj.js} +1 -1
  200. package/dist/client/assets/{new-project-dialog-BOtGKQPA.js → new-project-dialog-MxeroDTr.js} +1 -1
  201. package/dist/client/assets/{oauth-callback-DG0XUetw.js → oauth-callback-BAHxkyHL.js} +1 -1
  202. package/dist/client/assets/{oauth-callback-ai-provider-DeIO_gxm.js → oauth-callback-ai-provider-0HSc9az8.js} +1 -1
  203. package/dist/client/assets/{oauth-consent-D-6r1X7a.js → oauth-consent-B6XJ_dp8.js} +1 -1
  204. package/dist/client/assets/{onboarding-CWuOwe9b.js → onboarding-CpC02gHH.js} +1 -1
  205. package/dist/client/assets/{openai-conversation-DLhmBPPN.js → openai-conversation-PDrYjlY3.js} +2 -2
  206. package/dist/client/assets/{optimistic-project-sidebar-views-CvZPbOqN.js → optimistic-project-sidebar-views-DEmaeFuw.js} +1 -1
  207. package/dist/client/assets/{order-monitor-day-CyPFX5Di.js → order-monitor-day-CWMt_zZN.js} +1 -1
  208. package/dist/client/assets/{organization-choice-Cw-WUBNy.js → organization-choice-DJG3VWvN.js} +1 -1
  209. package/dist/client/assets/{orgs-BiS6luDN.js → orgs-Dk0Ii4jK.js} +1 -1
  210. package/dist/client/assets/{own-accounts-section-BqkowOV8.js → own-accounts-section-h1niaKS8.js} +1 -1
  211. package/dist/client/assets/{pair-NNIqbXGE.js → pair-Cd8NH003.js} +1 -1
  212. package/dist/client/assets/{parse-sections-D5t3BRqc.js → parse-sections-C45nXdFm.js} +2 -2
  213. package/dist/client/assets/{plan-D05Kl9P6.js → plan-D9R1-AZQ.js} +1 -1
  214. package/dist/client/assets/{plan-ladder-CiVpDo1G.js → plan-ladder-ClYEg_1y.js} +1 -1
  215. package/dist/client/assets/{plan-usage-card-DRsDd5Ch.js → plan-usage-card-DmepxGNe.js} +2 -2
  216. package/dist/client/assets/{popover-fDNjdHxM.js → popover-DbdL41A-.js} +1 -1
  217. package/dist/client/assets/post-calendar-BodpNGCL.js +1 -0
  218. package/dist/client/assets/post-editor-CVR7WxMp.js +2 -0
  219. package/dist/client/assets/{preview-content-DkAXLl1L.js → preview-content-CAIaH_bT.js} +1 -1
  220. package/dist/client/assets/{preview-dialog-N7_y9qxA.js → preview-dialog-CAVf21hW.js} +1 -1
  221. package/dist/client/assets/{preview-panel-oVdKWth1.js → preview-panel-DcRdLvZD.js} +1 -1
  222. package/dist/client/assets/{preview-tab-BWI7aVoc.js → preview-tab-Da5MFmuu.js} +21 -15
  223. package/dist/client/assets/{product-picker-dialog-Dr51YJVY.js → product-picker-dialog-n0_PqHbz.js} +1 -1
  224. package/dist/client/assets/{profile-BXOGbnau.js → profile-C2zVoVuX.js} +1 -1
  225. package/dist/client/assets/project-app-view-DL5XMDyp.js +1 -0
  226. package/dist/client/assets/{project-apps-DN56tnxe.js → project-apps-Oyn1Gnz0.js} +1 -1
  227. package/dist/client/assets/{project-icon-C60MdZm4.js → project-icon-D3VravgB.js} +1 -1
  228. package/dist/client/assets/{project-index-Dv-ZwV38.js → project-index-CZL_Bcej.js} +1 -1
  229. package/dist/client/assets/project-reports-CC7ptk4l.js +1 -0
  230. package/dist/client/assets/project-tasks-DMyDSLCM.js +1 -0
  231. package/dist/client/assets/{projects-By-y5Jp6.js → projects-3knV1Wr_.js} +1 -1
  232. package/dist/client/assets/{projects-empty-state-N3hmoiH1.js → projects-empty-state-ChOzUybQ.js} +1 -1
  233. package/dist/client/assets/{prompts-DTm9aAYf.js → prompts-Cs8yzamL.js} +1 -1
  234. package/dist/client/assets/{record-editor-PaaqLZHk.js → record-editor-CkMBdekB.js} +1 -1
  235. package/dist/client/assets/{redirect-editor-B2Eu0M_z.js → redirect-editor-DhGl9GBV.js} +1 -1
  236. package/dist/client/assets/{reports-sOqJNuXD.js → reports-DDPJwQn7.js} +1 -1
  237. package/dist/client/assets/{reports-onboarding-i6k1gG6Q.js → reports-onboarding-DMi5ETfa.js} +1 -1
  238. package/dist/client/assets/{reports-tab-DSRN7hVk.js → reports-tab-tHGof2FW.js} +2 -2
  239. package/dist/client/assets/reports-x6uGEsmu.js +1 -0
  240. package/dist/client/assets/{repositories-BrLF1Aq0.js → repositories-BTQbxkj9.js} +1 -1
  241. package/dist/client/assets/repositories-W2INiIpb.js +1 -0
  242. package/dist/client/assets/{repository-binding-CekCSlJ1.js → repository-binding-C2KfYomQ.js} +1 -1
  243. package/dist/client/assets/{repository-picker-UWrxu6_V.js → repository-picker-BQc3OAcG.js} +1 -1
  244. package/dist/client/assets/{require-capability-C5tMOw5q.js → require-capability-BQcAZUwY.js} +1 -1
  245. package/dist/client/assets/{required-auth-layout-Cpnwi031.js → required-auth-layout-BszE36jh.js} +1 -1
  246. package/dist/client/assets/{reset-password-BYIakrjI.js → reset-password-BVb2l5We.js} +1 -1
  247. package/dist/client/assets/{resizable-Czy-co3c.js → resizable-B34lmUXk.js} +1 -1
  248. package/dist/client/assets/{resolve-tab-icon-C3kFsoiU.js → resolve-tab-icon-DGM8yJyS.js} +1 -1
  249. package/dist/client/assets/{review-settings-frbemaNj.js → review-settings-BacW9etz.js} +1 -1
  250. package/dist/client/assets/{role-color-BjM31aAV.js → role-color-DUV_b0hq.js} +1 -1
  251. package/dist/client/assets/{roles-BSFp9Lh1.js → roles-Ce95RFET.js} +1 -1
  252. package/dist/client/assets/{route-DCjkGlFk.js → route-ByQoYEQ1.js} +1 -1
  253. package/dist/client/assets/{route-BiurJAiU.js → route-CZrJA2Du.js} +1 -1
  254. package/dist/client/assets/route-DwOjJhPU.js +1 -0
  255. package/dist/client/assets/{sandbox-git-api-WjmMCJsj.js → sandbox-git-api-Bxa573Th.js} +1 -1
  256. package/dist/client/assets/{sandbox-lifecycle-context-Ba3XN5SW.js → sandbox-lifecycle-context-oW4CAFSP.js} +1 -1
  257. package/dist/client/assets/save-status-Cf9701GC.js +1 -0
  258. package/dist/client/assets/{schema-CZJq0dLP.js → schema-DqcJORUD.js} +1 -1
  259. package/dist/client/assets/{schema-CXcca4Yf.js → schema-gnANfn26.js} +1 -1
  260. package/dist/client/assets/{scroll-area-CFXsBb2M.js → scroll-area-mLdPDQZk.js} +1 -1
  261. package/dist/client/assets/{search-input-SNpnMeEh.js → search-input-DbkaTSNM.js} +1 -1
  262. package/dist/client/assets/{search-toggle-cAgGYPjr.js → search-toggle-yUKGBwRs.js} +1 -1
  263. package/dist/client/assets/{secret-picker-CoNx1OUZ.js → secret-picker-C8Xe_qFX.js} +1 -1
  264. package/dist/client/assets/{secrets-7PqmB5m-.js → secrets-7vsHBI_C.js} +1 -1
  265. package/dist/client/assets/{section-array-field-BPHe_2nS.js → section-array-field-ah4STHLi.js} +1 -1
  266. package/dist/client/assets/{sections-DIGnapH7.js → sections-DwAaRTqc.js} +1 -1
  267. package/dist/client/assets/{sections-editor-BPeB4JuU.js → sections-editor-Cw7rVBET.js} +1 -1
  268. package/dist/client/assets/{select-DKwtgT2c.js → select-C2TZ6w0T.js} +1 -1
  269. package/dist/client/assets/{select-model-bK-HmI0T.js → select-model-CfeDs1cS.js} +1 -1
  270. package/dist/client/assets/{seo-editor-B8a-ygHx.js → seo-editor-BtwYLJ0f.js} +1 -1
  271. package/dist/client/assets/{separator-BvEs4sKx.js → separator-D7JbMKRF.js} +1 -1
  272. package/dist/client/assets/settings-tab-Bt6v_h7A.js +1 -0
  273. package/dist/client/assets/{sheet-Cn6zqTHK.js → sheet-mGT77pmX.js} +1 -1
  274. package/dist/client/assets/{shell-layout-CMWsc7Ga.js → shell-layout-DElHwXzP.js} +1 -1
  275. package/dist/client/assets/{site-draft-actions-Dqjp6JXE.js → site-draft-actions-BWcvrVJJ.js} +5 -5
  276. package/dist/client/assets/{site-draft-view-DMbuCO3k.js → site-draft-view-BYRbX7hq.js} +1 -1
  277. package/dist/client/assets/site-editor-DtYKhDUe.js +1 -0
  278. package/dist/client/assets/{site-editor-toast-BTadFdcN.js → site-editor-toast-fJQVfqa6.js} +1 -1
  279. package/dist/client/assets/{skills-BO2UAT-k.js → skills-BVBJsFpt.js} +1 -1
  280. package/dist/client/assets/{slider-C8eFjzSI.js → slider-_L8nnrvM.js} +1 -1
  281. package/dist/client/assets/{sortable.esm-C-oiWjvx.js → sortable.esm-Dw4xFH50.js} +1 -1
  282. package/dist/client/assets/{sso-CajDON15.js → sso-jLEvOfRs.js} +1 -1
  283. package/dist/client/assets/{suggestion-SovccGL1.js → suggestion-CV5YiylC.js} +1 -1
  284. package/dist/client/assets/{super-agent-icon-BPwu34XK.js → super-agent-icon-tF39Whlb.js} +1 -1
  285. package/dist/client/assets/{switch-CaR5PIVi.js → switch-B0tv99B3.js} +1 -1
  286. package/dist/client/assets/{synced-repos-DVx1NnZs.js → synced-repos-BOeEsDnA.js} +1 -1
  287. package/dist/client/assets/{tab-icon-glyph-BWlOwicm.js → tab-icon-glyph-BgVegBho.js} +1 -1
  288. package/dist/client/assets/{table-GheKU3yj.js → table-CV4RoALe.js} +1 -1
  289. package/dist/client/assets/{tabs-1aecnZxz.js → tabs-DgvT8Pj5.js} +1 -1
  290. package/dist/client/assets/{task-board-DYqWLLmQ.js → task-board-DvkfyL0D.js} +1 -1
  291. package/dist/client/assets/{task-route-lZI9xEQu.js → task-route-DvThF15k.js} +1 -1
  292. package/dist/client/assets/{task-status-sKuwZfC5.js → task-status-B4zkOwKe.js} +1 -1
  293. package/dist/client/assets/{taskboard-analytics-CC44Sfeb.js → taskboard-analytics-wmnzdjd1.js} +1 -1
  294. package/dist/client/assets/{tasks-QuF-w60s.js → tasks-B0KKqEdX.js} +3 -3
  295. package/dist/client/assets/tasks-x5QR56dC.js +1 -0
  296. package/dist/client/assets/{textarea-BC5J6m5c.js → textarea-DM0e8Qi7.js} +1 -1
  297. package/dist/client/assets/{thread-analytics--cpXNe0v.js → thread-analytics-BhQM5Fjz.js} +1 -1
  298. package/dist/client/assets/{thread-intent-DWdkWFbM.js → thread-intent-CaGJ1BhS.js} +1 -1
  299. package/dist/client/assets/{thread-route-TkYSs_wZ.js → thread-route-B-GLI-gf.js} +1 -1
  300. package/dist/client/assets/{thread-route-zZ-NhxUn.js → thread-route-DgzeVZc_.js} +1 -1
  301. package/dist/client/assets/{thread-sheet-body-BYVjGhFL.js → thread-sheet-body-CtA9qKg3.js} +1 -1
  302. package/dist/client/assets/{time-range-picker-DMCZWDg9.js → time-range-picker-CngcAO-k.js} +1 -1
  303. package/dist/client/assets/{toggle-group-BGTfs-aX.js → toggle-group-Cu1mfNzX.js} +1 -1
  304. package/dist/client/assets/{tool-namespace-D1tEk-rn.js → tool-namespace-DBtCIV7f.js} +1 -1
  305. package/dist/client/assets/{tool-set-selector-E3d0uIwk.js → tool-set-selector-CKA5xrb6.js} +1 -1
  306. package/dist/client/assets/{toolbar-icon-button-utT3ySvv.js → toolbar-icon-button-VHIAKSnc.js} +1 -1
  307. package/dist/client/assets/{tooltip-TH6OTMa1.js → tooltip-CVxFMGcO.js} +1 -1
  308. package/dist/client/assets/{tooltipContext-DvIDN2Xh.js → tooltipContext-BptH8Zj7.js} +1 -1
  309. package/dist/client/assets/{track-BgU3Gaat.js → track-vSgJeDn7.js} +1 -1
  310. package/dist/client/assets/{types-CUaVQ6GM.js → types-Bz47I97G.js} +5 -5
  311. package/dist/client/assets/{url-slug-U3fC_LSu.js → url-slug-BR0vmMxN.js} +1 -1
  312. package/dist/client/assets/{usage-stats-BgRx8ojv.js → usage-stats-Dr1e2NVB.js} +1 -1
  313. package/dist/client/assets/{use-ai-providers-BQ4cXHYk.js → use-ai-providers-DTX4zdTq.js} +1 -1
  314. package/dist/client/assets/{use-apply-named-rule-BkzR-L_k.js → use-apply-named-rule-OLP0GHWV.js} +1 -1
  315. package/dist/client/assets/use-ask-in-chat-Dom4oae3.js +1 -0
  316. package/dist/client/assets/{use-automations-D73FKpK0.js → use-automations-8WbgZhli.js} +1 -1
  317. package/dist/client/assets/{use-autosave-DnSqypPy.js → use-autosave-rNMlQ4zg.js} +1 -1
  318. package/dist/client/assets/use-blocks-v8-project-Ol6SuT-M.js +1 -0
  319. package/dist/client/assets/{use-chat-layout-state-DhWMeYGY.js → use-chat-layout-state-DM5US5qS.js} +1 -1
  320. package/dist/client/assets/{use-cms-publish-actions-DYW-ZBMI.js → use-cms-publish-actions-B-aKIQS2.js} +1 -1
  321. package/dist/client/assets/{use-connect-companion-DSAJf4aL.js → use-connect-companion-BcVm5W-r.js} +1 -1
  322. package/dist/client/assets/{use-connection-Cm2NxfjB.js → use-connection-Lv1GX4XO.js} +1 -1
  323. package/dist/client/assets/{use-content-sync-BYfkK2UQ.js → use-content-sync-CSFDJJ2I.js} +1 -1
  324. package/dist/client/assets/{use-copy-D19rl06v.js → use-copy-B2pKd0TM.js} +1 -1
  325. package/dist/client/assets/{use-date-fns-locale-DRwJQrtP.js → use-date-fns-locale-D1sid-Du.js} +1 -1
  326. package/dist/client/assets/{use-debounced-autosave-ByXvCGtw.js → use-debounced-autosave-yF8PgiVs.js} +1 -1
  327. package/dist/client/assets/{use-debounced-value-CbRaNTJb.js → use-debounced-value-BAQPYGcf.js} +1 -1
  328. package/dist/client/assets/{use-deco-credits-BzZax3AU.js → use-deco-credits-DHv1UkQ9.js} +1 -1
  329. package/dist/client/assets/{use-decopilot-events-DjBmVlF5.js → use-decopilot-events-DGoOKMj0.js} +1 -1
  330. package/dist/client/assets/{use-delete-block-Bmw2DEn_.js → use-delete-block-y2vOypSK.js} +1 -1
  331. package/dist/client/assets/{use-delete-connection-XfH3saNO.js → use-delete-connection-TX_vnMiY.js} +1 -1
  332. package/dist/client/assets/{use-deployment-admin-E8whHqZV.js → use-deployment-admin-BTOwWmd_.js} +1 -1
  333. package/dist/client/assets/{use-entitlements-CrqU38x1.js → use-entitlements-DpylFAUx.js} +1 -1
  334. package/dist/client/assets/{use-fast-preview-draft-url-Br8m5G_K.js → use-fast-preview-draft-url-OHnSoOh2.js} +1 -1
  335. package/dist/client/assets/{use-file-configs-Cb7TGwCU.js → use-file-configs-CG-6B_hv.js} +1 -1
  336. package/dist/client/assets/{use-id-selection-BKmrVwI0.js → use-id-selection-DufR_IM-.js} +1 -1
  337. package/dist/client/assets/{use-inbox-feed-pHAZt3_K.js → use-inbox-feed-C9Mwe9dc.js} +1 -1
  338. package/dist/client/assets/{use-infinite-scroll-BkFOSUvv.js → use-infinite-scroll-uPmbLXy7.js} +1 -1
  339. package/dist/client/assets/{use-join-requests-CJn0V1s3.js → use-join-requests-C9270cag.js} +1 -1
  340. package/dist/client/assets/{use-main-panel-tabs-BmFZ-_OL.js → use-main-panel-tabs-DUVnwi3u.js} +1 -1
  341. package/dist/client/assets/{use-mcp-auth-status-4GKPMGKk.js → use-mcp-auth-status-DENAEdO_.js} +1 -1
  342. package/dist/client/assets/{use-mcp-client-d3hjTGOk.js → use-mcp-client-BZnIK-Y4.js} +2 -2
  343. package/dist/client/assets/{use-mcp-prompts-D9iX-pNG.js → use-mcp-prompts-Dtbvjt4h.js} +1 -1
  344. package/dist/client/assets/{use-mcp-tools-4sj0IJhc.js → use-mcp-tools-ubXBMl6b.js} +1 -1
  345. package/dist/client/assets/{use-mobile-BSwhKw5s.js → use-mobile-C5u1Qie9.js} +1 -1
  346. package/dist/client/assets/{use-move-blocks-DUZO8kls.js → use-move-blocks-FpNNMdYb.js} +1 -1
  347. package/dist/client/assets/{use-navigate-to-agent-ClknH49I.js → use-navigate-to-agent-DtRhmnlg.js} +1 -1
  348. package/dist/client/assets/use-never-published-CqQvHtX-.js +1 -0
  349. package/dist/client/assets/{use-org-fs-Tz3YgtJ1.js → use-org-fs-Cd0Vep23.js} +1 -1
  350. package/dist/client/assets/{use-org-repo-syncs-BzT6K1ie.js → use-org-repo-syncs-SJRy46mf.js} +1 -1
  351. package/dist/client/assets/{use-org-sso-DKQA9PvY.js → use-org-sso-COBiertF.js} +1 -1
  352. package/dist/client/assets/{use-organization-settings-O_jt8YRI.js → use-organization-settings-CRwm0586.js} +1 -1
  353. package/dist/client/assets/use-project-native-view-presence-BnSN9oER.js +1 -0
  354. package/dist/client/assets/{use-project-scope-CDU7oHZd.js → use-project-scope-lI2ukIh1.js} +1 -1
  355. package/dist/client/assets/{use-recent-apps-SulI7knF.js → use-recent-apps-CnCq1w_A.js} +1 -1
  356. package/dist/client/assets/{use-reports-diagnostic-DvKdZxC0.js → use-reports-diagnostic-DgRjbmEf.js} +1 -1
  357. package/dist/client/assets/{use-sandbox-events-f-PdmD_K.js → use-sandbox-events-BZs_wcMW.js} +2 -2
  358. package/dist/client/assets/{use-secrets-iJZc87R8.js → use-secrets-jhGB5cvg.js} +1 -1
  359. package/dist/client/assets/{use-section-preview-base-DlVsTPHR.js → use-section-preview-base-CxqwLEJO.js} +1 -1
  360. package/dist/client/assets/{use-sidebar-collapsed-BXzuI2Yh.js → use-sidebar-collapsed-BWtKakyD.js} +1 -1
  361. package/dist/client/assets/{use-tags-szK0WGVw.js → use-tags-CBIw_9wj.js} +1 -1
  362. package/dist/client/assets/{use-task-board-analytics-Dsx3ztNk.js → use-task-board-analytics-DVdYIVtB.js} +1 -1
  363. package/dist/client/assets/{use-task-board-events-bOYbxitP.js → use-task-board-events-n_cm8Gyp.js} +1 -1
  364. package/dist/client/assets/{use-task-board-item-prs-DXBDSC_j.js → use-task-board-item-prs-KjQVKJGy.js} +1 -1
  365. package/dist/client/assets/{use-task-board-items-2NnjAMJe.js → use-task-board-items-gM-MOBw8.js} +1 -1
  366. package/dist/client/assets/{use-task-board-prompts-BnnaRxj0.js → use-task-board-prompts-5OmBV-BO.js} +1 -1
  367. package/dist/client/assets/{use-task-metadata-GAS3u4HU.js → use-task-metadata-xW_FzRqh.js} +1 -1
  368. package/dist/client/assets/{use-thread-outputs-D6gtHOkS.js → use-thread-outputs-CN7E968n.js} +1 -1
  369. package/dist/client/assets/{use-view-draft-kind-vGVmYJM5.js → use-view-draft-kind-BsykP2yK.js} +1 -1
  370. package/dist/client/assets/{use-voice-input-B4K2dw_4.js → use-voice-input-seZQKt1s.js} +1 -1
  371. package/dist/client/assets/useInfiniteQuery-Bz8irSN1.js +1 -0
  372. package/dist/client/assets/{useQueries-CkzTLDl3.js → useQueries-BruvTC1j.js} +1 -1
  373. package/dist/client/assets/useSuspenseInfiniteQuery-DKXKbUjm.js +1 -0
  374. package/dist/client/assets/{users-BAENndTE.js → users-ByNwcAJI.js} +1 -1
  375. package/dist/client/assets/{utils-GS2Z_6Er.js → utils-BoDmGD4u.js} +1 -1
  376. package/dist/client/assets/{variant-calendar-DhSlXJST.js → variant-calendar-BsyPkd78.js} +1 -1
  377. package/dist/client/assets/{variant-matcher-override-DBCe5xDS.js → variant-matcher-override-CbZkMadE.js} +1 -1
  378. package/dist/client/assets/{view-header-BkLkYp5J.js → view-header-tBobsCC8.js} +1 -1
  379. package/dist/client/assets/{virtual-mcp-D-X8xp1B.js → virtual-mcp-BJ1dRL5Y.js} +1 -1
  380. package/dist/client/assets/{watch-sse-pool-BhRvBapO.js → watch-sse-pool-HKLsGoUY.js} +1 -1
  381. package/dist/client/index.html +2 -2
  382. package/dist/server/server.js +3 -3
  383. package/package.json +1 -1
  384. package/dist/client/assets/ReferenceLine-CdPtulni.js +0 -1
  385. package/dist/client/assets/agent-app-i42F64Tf.js +0 -1
  386. package/dist/client/assets/agent-assets-yhsnLz6V.js +0 -1
  387. package/dist/client/assets/agent-blog-BANd-DOA.js +0 -2
  388. package/dist/client/assets/agent-deck-CJ6F_9XA.js +0 -1
  389. package/dist/client/assets/agent-experiments-JXbeMR67.js +0 -1
  390. package/dist/client/assets/agent-library-CgajOXjC.js +0 -1
  391. package/dist/client/assets/agent-library-file-ROPjoIiT.js +0 -1
  392. package/dist/client/assets/agent-overview-CRECfM0R.js +0 -1
  393. package/dist/client/assets/agent-settings-CQz4H--G.js +0 -1
  394. package/dist/client/assets/agent-site-editor-code-BmJC3uHD.js +0 -2
  395. package/dist/client/assets/agent-site-editor-content-COiXn4LP.js +0 -1
  396. package/dist/client/assets/agent-site-editor-preview-DdkTHBKn.js +0 -1
  397. package/dist/client/assets/agent-view-DP-yHMET.js +0 -1
  398. package/dist/client/assets/api-keys-CA73zf8R.js +0 -1
  399. package/dist/client/assets/discover-DOTkM1SJ.js +0 -1
  400. package/dist/client/assets/held-block-view-9GD7sW5O.js +0 -3
  401. package/dist/client/assets/index-HLnjLjm4.js +0 -4
  402. package/dist/client/assets/item-actions-DxYkkZP8.js +0 -1
  403. package/dist/client/assets/library-D0Nyw5vF.js +0 -1
  404. package/dist/client/assets/match-site-slug-config-D3fUJ6vX.js +0 -1
  405. package/dist/client/assets/post-calendar-CgP7AZe7.js +0 -1
  406. package/dist/client/assets/post-editor-fRXyfFpy.js +0 -2
  407. package/dist/client/assets/project-app-view-Dn9IxbKG.js +0 -1
  408. package/dist/client/assets/project-reports-yBeAoZj_.js +0 -1
  409. package/dist/client/assets/project-tasks-Da304fiF.js +0 -1
  410. package/dist/client/assets/reports-D1vOcKYh.js +0 -1
  411. package/dist/client/assets/repositories-BeyQS9t-.js +0 -1
  412. package/dist/client/assets/route-Dghp6bLe.js +0 -1
  413. package/dist/client/assets/save-status-CaR8n7_Z.js +0 -1
  414. package/dist/client/assets/settings-tab-V10cXQt_.js +0 -1
  415. package/dist/client/assets/site-editor-BhMaxdEz.js +0 -1
  416. package/dist/client/assets/tasks-ChIHxZhb.js +0 -1
  417. package/dist/client/assets/use-ask-in-chat-D9_rhHLE.js +0 -1
  418. package/dist/client/assets/use-blocks-v8-project-DVyeNJpE.js +0 -1
  419. package/dist/client/assets/use-never-published-Ct02Nsux.js +0 -1
  420. package/dist/client/assets/use-project-native-view-presence-DFdZfmUA.js +0 -1
  421. package/dist/client/assets/useInfiniteQuery-DAPRIetj.js +0 -1
  422. package/dist/client/assets/useSuspenseInfiniteQuery-D1yN9E9_.js +0 -1
@@ -1 +1 @@
1
- import{bn as z,c as ae,q as xt,K as rt,i as Lt,fC as Ct,f7 as Mt,fl as Xe,fn as It,bw as ne,bx as it,fD as Be,bj as Ut,bk as ot,ff as Dt,f8 as Nt,by as st,bz as Kt,fE as Vt,e8 as Ft,b as ye,a4 as qt,j as L,B as xe,L as Wt,h as Yt,a7 as zt}from"./index-BqA84bKQ.js";import{c as Qt,x as Gt,u as Ht,v as Xt,af as Zt,am as Jt,an as en,ao as tn,ap as nn,C as rn,y as on}from"./site-editor-toast-BTadFdcN.js";import{b as sn}from"./sandbox-url-D3mC8qhT.js";import{u as cn}from"./use-voice-input-B4K2dw_4.js";import{i as an}from"./AlertCircle-BNgT9H-9.js";import{aJ as ct}from"./agent-icon-7pgGOyab.js";import{E as Le}from"./empty-state-A6nZ3Khe.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function pr(e){return K[e]}const yr=de.map(e=>K[e].blockKey);function fn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function dr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function mr(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const ln="deco";function gr(e,t){if(!z(e))return"missing";const n=K[t],r=Ze(e,n.resolveType),i=Ze(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===ln;return o(r)&&o(i)?"available":"replaced"}function Ze(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 Je(e,t){const n=K[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=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,A]of Object.entries(o)){if(l==="__resolveType")continue;const R=t==="experiments"?un(A):pn(A);R===null?f.push(l):c[l]=R}return{kind:"saved",block:o,values:c,invalid:f}}function hr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function _r(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function un(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function pn(e){if(!me(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 vr(e){return e<=0?"off":e>=100?"everyone":"running"}function br(e){if(!me(e))return null;const t=fn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function Tr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const yn="date";function Ar(e){return me(e)&&e.__resolveType===yn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Sr(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function Rr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function dn(e){const t=[];return e.fastPreviewActive?t.push({kind:"committed"}):(e.fetchEnabled&&e.previewUrl&&t.push({kind:"live",baseUrl:e.previewUrl}),t.push({kind:"committed"})),e.productionUrl&&t.push({kind:"production",baseUrl:e.productionUrl}),t}const mn=5e3;function gn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:sn(t,"site-meta")}const hn=new Map;async function _n(e,t,n=hn){const r=n.get(e),i=r==="refused"?void 0:t?.etag,o=await fetch(e,{cache:"no-store",headers:i?{"If-None-Match":i}:{}}).catch(()=>null),c=!o&&!!i&&r===void 0,f=c?await fetch(e,{cache:"no-store",headers:{}}).catch(()=>null):o;if(i&&(c&&f?n.set(e,"refused"):o&&n.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function vn(e){return rt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Or(e,t){const n=ae.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:A}=cn(e?.virtualMcpId),R=!i&&A==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=xt(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Zt(e,P):vn({...e,previewUrl:c,productionUrl:l}):rt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==R||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Jt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>R?nn(e):rn(e,on(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:dn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:R});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),$=await _n(gn(d,e),i||a?.etag?a:void 0);if($)return $}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=O.kind,n[6]=V,n[7]=R,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",B=P?!1:i?mn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==R||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||R||i||s.status!==502)&&G<3,n[18]=R,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==B||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:B,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:tn},n[22]=j,n[23]=I,n[24]=W,n[25]=B,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],Lt(Y)}const bn=new Set(["split-traffic","calendar"]);function Tn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const An=12,Sn=8,Ee=32,Rn=40,et="__SECTION_REF__";function se(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 On="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 Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Me(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ft(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Me(e);if(r){for(const f of ft(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=at(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function Er(e,t){return Object.keys(ge(e,t)).length>0}function lt(e,t){if(Ct(e,t))return!0;const n=Ce(t)??Me(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ft(n.vendor,n.app).some(c=>c in r))return!0;const i=at(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function En(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Me(e)!==null}function kn(e,t){return ut(t,{resolveType:e})}function kr(e,t){return ut(t,{ref:e})}function ut(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===et?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,A=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},R=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===et?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),$=a.anyOf??a.oneOf;if(!Array.isArray($))return[];const E=new Set([...y,d]);return $.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>An)return{};if(typeof s.$ref=="string"){const $=s.$ref.split("/").pop()??"";return y.has($)?{}:W(c(s.$ref),new Set([...y,$]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const $ of["allOf","anyOf","oneOf"]){const E=s[$];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const C=$==="allOf"?[...U,...J(H.__required)]:U;C.length>0?a.__required=C:delete a.__required}}return a},B=(s,y=0,d=new Set)=>{let a=s,$;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";$=k,k===On&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=$!==void 0&&d.has($),x=$!==void 0?new Set([...d,$]):d,U=(k,m,v,T=!0)=>!E&&(!T||v<=Rn)&&m<Sn?B(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(T=>!(T.type==="null"||T.type===null)),v=T=>{if(typeof T.const=="string"||typeof T.const=="number")return T.const;if(Array.isArray(T.enum)&&T.enum.length===1&&(typeof T.enum[0]=="string"||typeof T.enum[0]=="number"))return T.enum[0]};m.length>0&&m.every(T=>v(T)!==void 0)&&(H=m.map(T=>v(T)))}}let C,oe,Fe,qe=!1;if(a.type)C=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(m.length===0)C="null";else if(m.length===1){const v=m[0];oe=v;const T=O(v);typeof v.$ref=="string"&&se(T)?(C="array",Fe=T.items):C=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const v=m.filter(V),T=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(se),Ae=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const M=l(_),N=M.properties;return!N?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},le=m.flatMap(u=>{const p=Ae(u);return p?[p]:[]}),Pt=le.length===0&&m.filter(u=>!se(O(u))).every(u=>typeof u.$ref=="string"||v.includes(u)),jt=v.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Mt||z(e)&&p[0]==="multivariate")}),Se=(u=[])=>{const p=new Map;for(const S of[...v,...m.filter(b=>!v.includes(b)).flatMap(b=>q(b)),...u]){const b=Q(S);b&&!p.has(b)&&p.set(b,S)}const g=[...p].map(([S,b])=>({resolveType:S,title:typeof b.title=="string"?b.title:ne(S),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,p.size)})),h=[];for(const S of m){if(v.includes(S)||typeof S.$ref!="string")continue;const b=c(S.$ref);let X;const Z=b.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(b.allOf))for(const Bt of b.allOf){const Oe=Bt.properties?.__resolveType?.enum;if(Array.isArray(Oe)&&typeof Oe[0]=="string"){X=Oe[0];break}}X&&h.push({resolveType:X,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:ne(X),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),_=[...g,...h.filter(S=>!w.has(S.resolveType))],M=m.filter(S=>!v.includes(S)),N=M.length===1&&!E?B(M[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:T,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!tt(D,c);if(u&&le.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>se(O(_))),w=le.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,M)=>({title:R(_,`Option ${M+1}`),schema:B(_,y+1,x)})),{title:R(h,`Option ${w.length+1}`),schema:B(D,y+1,x)}],loaderRef:{...Se(le.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&Pt){const p=B(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:v.length>0?{...Se(),title:g,description:h}:void 0}}if(jt){const p=B(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(v.length>0)return Se();const ze=u=>{const p=l(u);if(typeof p.title=="string"&&Xe(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},Qe=m.map(u=>A(u));if(m.length>1&&Qe.every(u=>typeof u=="string")&&!m.some(ze)){const u=m.map((p,g)=>{const h=l(p),w=Qe[g];return{resolveType:w,title:R(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Re=u=>{if(ze(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},wt=u=>{const p=O(u);return se(p)?!tt(p,c):!1},Ge=y<Ee&&m.every(u=>Re(u)||wt(u))&&m.some(Re),He=m.every(u=>typeof u.$ref=="string"),$t=z(e)&&!He&&m.some(u=>typeof u.$ref=="string"&&bn.has(Tn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Re(u));if((He||$t)&&!Ge){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const S=Xe(g.title);S&&(h=S.blockId,w=S.blockId)}if(!h&&Array.isArray(g.allOf))for(const S of g.allOf){const Z=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(h=b[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const M=h.includes("/")||_&&!It(h),N=M?void 0:A(p);!N&&!M||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:T,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Ge){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[M,N]of Object.entries(w)){const S=u(N);S!==void 0&&(_[M]=S)}return{title:R(g,`Option ${h+1}`),schema:B(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}C="object"}}else a.allOf?(C="object",qe=I(a.title)):typeof s.$ref=="string"&&(C="object");let fe,We,Ye=!1;if(y<Ee&&!E){const k=W(a),m=k.__resolveType?.enum;Ye=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const v=J(k.__required);v.length>0&&(We=v);const T=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(T.length>0){fe={};for(const[D,Ae]of T)fe[D]=B(Ae,y+1,x)}}let Te;if((C==="array"||a.type==="array")&&y<Ee&&!E){const k=a.items??Fe;if(k){Te=B(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Te.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},kt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:C??"string",title:typeof s.title=="string"?s.title:!qe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:kt(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:fe,required:We,items:Te,lazy:Ye&&fe?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(C==="object"||C==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return B({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=B(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=B(y,0));if(Object.keys(Y).length===0)return null;const G=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Pr(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(A=>!A.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function jr(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[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));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 Ie(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,A=O=>O===!0||O==="true",R=A(l.hide)||A(l.ignore)||A(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:R||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Pn=new Set(pt);function Ue(e){return Pn.has(e)}function De(e,t){return Ue(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function wr(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function $r(e){return e.trim().replace(/^\/+|\/+$/g,"")}function jn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Br(e){const t=e.trim();return t?jn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function xr(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function yt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Lr(e){e=yt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))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 Cr(e,t){return yt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const dt=pt[0],wn=new Set(["site/sections/Theme/Theme.tsx"]);function $n(e,t){return wn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!($n(e,z(t))||ot(e)||e.toLowerCase().includes("preview"))}function mt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ue(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":dt}function Bn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Mr(e){return e?Bn(e)?"page":mt(e):dt}function ke(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return ke(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...ke(n));return t}return[]}function xn(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(he(o,e))continue;const c=Ie(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Ir(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))he(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});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=z(e);if(!ht(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&ot(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&Be(e,f))return f}return n}function ht(e,t){return e===Dt||t&&e===Nt}function Ln(e,t){return gt(e,t)!==t.__resolveType}function _t(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||it(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||Ue(c)||typeof o.path=="string"||he(c,e)||!(Be(e,c)||ht(c,z(e))&&Ln(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Cn(e,t){const n=st(t.resolveType,e),r=n?{}:Ie(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Ur(e,t){const n=mt(e),r=kn(n,e),i=ke(r?.properties?.sections),o=new Map,c=f=>{if(!he(f.resolveType,e)){if(st(f.resolveType,e)){it(f.resolveType)||o.set(f.resolveType,f);return}Be(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of xn(e))c(f);for(const f of i)c(Cn(e,f));for(const f of _t(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Dr(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 _e="website/loaders/redirect.ts",Nr=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",Mn=[301,302,307,308],In={temporary:307,permanent:301};function Kr(e){return e.flat&&e.status||In[e.type]}const ue=e=>typeof e=="string"?e:"",Un=e=>e==="permanent"?"permanent":"temporary",Dn=e=>Mn.find(t=>t===e);function vt(e){const t=Dn(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function be(e){if(e?.__resolveType===ve)return vt(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Un(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Nn(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!==_e&&i.__resolveType!==ve||t.push({key:n,...be(i)})}return t}function Vr(e){return be(e)}function Kn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:ve,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:_e}}function Vn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Fn=1e3;function Fr(e,t){const n=Vn(t);for(let r=0;r<Fn;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")}const qn="Redirects",bt="redirects";function Tt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===bt}function Wn(e){return Object.keys(e).filter(n=>Tt(e[n])).sort()[0]??qn}function qr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!Tt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function At(e){return"redirect"in e?be(e):vt({...e})}function St(e,t){const{__resolveType:n,...r}=Kn(e,{...t});return r}function Wr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Yr(e,t=Wn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...At(n)}))}function zr(e,t){const n=re(e)[t];return n?At(n):be(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:bt,redirects:t}}function Qr(e,t){return Ve(e,[...re(e),St(t)])}function Gr(e,t,n){const r=re(e),i=r.slice();return i[t]=St(n,r[t]),Ve(e,i)}function Hr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function Yn(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 Xr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=Pe(e,r);if(o)return o}if(i){const o=Pe(e,i);if(o)return o}return null}function Pe(e,t,n){const r=Ne;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function Zr(e,t,n){const r=Pe(e,t,n);return r||Ne(t)!=="/"?r:e[0]??null}const ce="site",Rt="site/apps/site.ts";function je(e,t){return e===ce?!0:t.__resolveType===Rt}function Jr(e,t){return e?Ot(e,t).length>0||Nn(e).length>0?!0:t?Zn(e,t).length>0||Hn(e,t)?!0:Xn(e,t).length>0:!1:!1}function zn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!De(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:Yn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=zn(r,i,t);o&&n.push(o)}return n}function we(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>we(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>we(i,t,n+1))}function nt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):we(e,t)}function Qn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||nt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&nt(e[c.key],o))}function ei(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Qn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Gn(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 $e(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ie(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Hn(e,t){const n=e[ce];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(je(ce,r)||lt(t,i)))return{key:ce,name:$e(ce,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!je(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:Rt;return{key:r,name:$e(r,o,t),resolveType:c}}return null}function Xn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(De(c,t)||typeof o.path!="string"&&(je(r,o)||!lt(t,c)&&!En(c)||n.push({key:r,name:$e(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Zn(e,t){return _t(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??Gn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Jn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,er={posts:"post",categories:"category",authors:"author"},Et=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ti(e,...t){const n=e?Jn.exec(e)?.[1]:void 0;if(n)return er[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Et.find(c=>pe(r[c]));if(o)return o}return null}function tr(...e){for(const t of e)if(pe(t))for(const n of Et){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function nr(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function ni(e,t,n){return tr(...t)??nr(e,n)}const rr="https://github.com/decocms/blocks";function ri(){const e=ae.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(xe,{size:"sm",asChild:!0,children:L.jsxs("a",{href:rr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Le,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function ii(e){const t=ae.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(an,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let A;t[6]!==i?(A=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=A):A=t[7];let R;t[8]!==r||t[9]!==A?(R=L.jsx(xe,{variant:"outline",size:"sm",onClick:r,children:A}),t[8]=r,t[9]=A,t[10]=R):R=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==R?(O=L.jsx(Le,{image:f,title:l,description:c,actions:R}),t[11]=c,t[12]=l,t[13]=R,t[14]=O):O=t[14],O}function oi(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function si(){const e=ae.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(xe,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let A;return e[12]!==i||e[13]!==o||e[14]!==l?(A=L.jsx(Le,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=A):A=e[15],A}function ci(e){const t=ae.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{jr as $,bt as A,ii as B,ci as C,Wr as D,dr as E,gt as F,Vr as G,qr as H,Xr as I,Hn as J,Nn as K,Ir as L,Nr as M,de as N,Wn as O,Hr as P,Yr as Q,In as R,si as S,Fr as T,Kn as U,Qr as V,xr as W,he as X,Mr as Y,Ue as Z,Pr as _,$r as a,wr as a0,Bn as a1,ke as a2,zn as a3,Yn as a4,ti as a5,ni as a6,mr as a7,nr as a8,dt as a9,me as aa,kr as ab,Ur as ac,br as ad,Je as ae,Ar as af,Tr as ag,hr as ah,Sr as ai,pr as aj,tr as ak,vr as al,Rr as am,Dr as an,Pe as ao,zr as ap,Mn as aq,Gr as ar,ri as b,Zn as c,Zr as d,Ot as e,Cr as f,gr as g,Jr as h,oi as i,yr as j,mt as k,Er as l,Rt as m,Ne as n,je as o,ei as p,En as q,_r as r,Lr as s,$e as t,Or as u,Br as v,Ie as w,Kr as x,kn as y,Gn as z};
1
+ import{bn as z,c as ae,q as xt,K as rt,i as Lt,fD as Mt,f8 as Ct,fm as Xe,fo as It,bx as ne,by as it,fE as xe,bj as Ut,bk as ot,fg as Dt,f9 as Nt,bz as st,bA as Kt,fF as Vt,e9 as Ft,b as ye,a4 as qt,j as L,B as Le,L as Wt,h as Yt,a7 as zt}from"./index-D9wygnbU.js";import{c as Qt,x as Gt,u as Ht,v as Xt,af as Zt,am as Jt,an as en,ao as tn,ap as nn,C as rn,y as on}from"./site-editor-toast-fJQVfqa6.js";import{b as sn}from"./sandbox-url-D3mC8qhT.js";import{u as cn}from"./use-voice-input-seZQKt1s.js";import{i as an}from"./AlertCircle-D-4TK36c.js";import{aJ as ct}from"./agent-icon-DHk7TnW1.js";import{E as Me}from"./empty-state-GIO1CyUk.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function mr(e){return K[e]}const gr=de.map(e=>K[e].blockKey);function fn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function hr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function _r(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const ln="deco";function vr(e,t){if(!z(e))return"missing";const n=K[t],r=Ze(e,n.resolveType),i=Ze(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===ln;return o(r)&&o(i)?"available":"replaced"}function Ze(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 Je(e,t){const n=K[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=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,A]of Object.entries(o)){if(l==="__resolveType")continue;const R=t==="experiments"?un(A):pn(A);R===null?f.push(l):c[l]=R}return{kind:"saved",block:o,values:c,invalid:f}}function br(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Tr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function un(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function pn(e){if(!me(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 Ar(e){return e<=0?"off":e>=100?"everyone":"running"}function Sr(e){if(!me(e))return null;const t=fn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function Rr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const yn="date";function Or(e){return me(e)&&e.__resolveType===yn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Er(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function kr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function dn(e){const t=[];return e.fastPreviewActive?t.push({kind:"committed"}):(e.fetchEnabled&&e.previewUrl&&t.push({kind:"live",baseUrl:e.previewUrl}),t.push({kind:"committed"})),e.productionUrl&&t.push({kind:"production",baseUrl:e.productionUrl}),t}const mn=5e3;function gn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:sn(t,"site-meta")}const hn=new Map;async function _n(e,t,n=hn){const r=n.get(e),i=r==="refused"?void 0:t?.etag,o=await fetch(e,{cache:"no-store",headers:i?{"If-None-Match":i}:{}}).catch(()=>null),c=!o&&!!i&&r===void 0,f=c?await fetch(e,{cache:"no-store",headers:{}}).catch(()=>null):o;if(i&&(c&&f?n.set(e,"refused"):o&&n.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function vn(e){return rt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Pr(e,t){const n=ae.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:A}=cn(e?.virtualMcpId),R=!i&&A==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=xt(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Zt(e,P):vn({...e,previewUrl:c,productionUrl:l}):rt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==R||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Jt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>R?nn(e):rn(e,on(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:dn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:R});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),B=await _n(gn(d,e),i||a?.etag?a:void 0);if(B)return B}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=O.kind,n[6]=V,n[7]=R,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",$=P?!1:i?mn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==R||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||R||i||s.status!==502)&&G<3,n[18]=R,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:tn},n[22]=j,n[23]=I,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],Lt(Y)}const bn=new Set(["split-traffic","calendar"]);function Tn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const An=12,Sn=8,ke=32,Rn=40,et="__SECTION_REF__";function se(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 On="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 Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ie(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ft(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Ie(e);if(r){for(const f of ft(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=at(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function jr(e,t){return Object.keys(ge(e,t)).length>0}function lt(e,t){if(Mt(e,t))return!0;const n=Ce(t)??Ie(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ft(n.vendor,n.app).some(c=>c in r))return!0;const i=at(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function En(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Ie(e)!==null}function kn(e,t){return ut(t,{resolveType:e})}function wr(e,t){return ut(t,{ref:e})}function ut(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===et?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,A=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},R=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===et?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>An)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...U,...J(H.__required)]:U;M.length>0?a.__required=M:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===On&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,v,T=!0)=>!E&&(!T||v<=Rn)&&m<Sn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(T=>!(T.type==="null"||T.type===null)),v=T=>{if(typeof T.const=="string"||typeof T.const=="number")return T.const;if(Array.isArray(T.enum)&&T.enum.length===1&&(typeof T.enum[0]=="string"||typeof T.enum[0]=="number"))return T.enum[0]};m.length>0&&m.every(T=>v(T)!==void 0)&&(H=m.map(T=>v(T)))}}let M,oe,Fe,qe=!1;if(a.type)M=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(m.length===0)M="null";else if(m.length===1){const v=m[0];oe=v;const T=O(v);typeof v.$ref=="string"&&se(T)?(M="array",Fe=T.items):M=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const v=m.filter(V),T=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(se),Se=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const C=l(_),N=C.properties;return!N?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},le=m.flatMap(u=>{const p=Se(u);return p?[p]:[]}),Pt=le.length===0&&m.filter(u=>!se(O(u))).every(u=>typeof u.$ref=="string"||v.includes(u)),jt=v.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Ct||z(e)&&p[0]==="multivariate")}),Re=(u=[])=>{const p=new Map;for(const S of[...v,...m.filter(b=>!v.includes(b)).flatMap(b=>q(b)),...u]){const b=Q(S);b&&!p.has(b)&&p.set(b,S)}const g=[...p].map(([S,b])=>({resolveType:S,title:typeof b.title=="string"?b.title:ne(S),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,p.size)})),h=[];for(const S of m){if(v.includes(S)||typeof S.$ref!="string")continue;const b=c(S.$ref);let X;const Z=b.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(b.allOf))for(const $t of b.allOf){const Ee=$t.properties?.__resolveType?.enum;if(Array.isArray(Ee)&&typeof Ee[0]=="string"){X=Ee[0];break}}X&&h.push({resolveType:X,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:ne(X),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),_=[...g,...h.filter(S=>!w.has(S.resolveType))],C=m.filter(S=>!v.includes(S)),N=C.length===1&&!E?$(C[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:T,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!tt(D,c);if(u&&le.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>se(O(_))),w=le.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:R(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:R(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Re(le.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&Pt){const p=$(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:v.length>0?{...Re(),title:g,description:h}:void 0}}if(jt){const p=$(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(v.length>0)return Re();const ze=u=>{const p=l(u);if(typeof p.title=="string"&&Xe(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},Qe=m.map(u=>A(u));if(m.length>1&&Qe.every(u=>typeof u=="string")&&!m.some(ze)){const u=m.map((p,g)=>{const h=l(p),w=Qe[g];return{resolveType:w,title:R(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Oe=u=>{if(ze(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},wt=u=>{const p=O(u);return se(p)?!tt(p,c):!1},Ge=y<ke&&m.every(u=>Oe(u)||wt(u))&&m.some(Oe),He=m.every(u=>typeof u.$ref=="string"),Bt=z(e)&&!He&&m.some(u=>typeof u.$ref=="string"&&bn.has(Tn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((He||Bt)&&!Ge){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const S=Xe(g.title);S&&(h=S.blockId,w=S.blockId)}if(!h&&Array.isArray(g.allOf))for(const S of g.allOf){const Z=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(h=b[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!It(h),N=C?void 0:A(p);!N&&!C||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:T,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Ge){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[C,N]of Object.entries(w)){const S=u(N);S!==void 0&&(_[C]=S)}return{title:R(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}M="object"}}else a.allOf?(M="object",qe=I(a.title)):typeof s.$ref=="string"&&(M="object");let fe,We,Ye=!1;if(y<ke&&!E){const k=W(a),m=k.__resolveType?.enum;Ye=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const v=J(k.__required);v.length>0&&(We=v);const T=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(T.length>0){fe={};for(const[D,Se]of T)fe[D]=$(Se,y+1,x)}}let Ae;if((M==="array"||a.type==="array")&&y<ke&&!E){const k=a.items??Fe;if(k){Ae=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Ae.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},kt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:M??"string",title:typeof s.title=="string"?s.title:!qe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:kt(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:fe,required:We,items:Ae,lazy:Ye&&fe?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(M==="object"||M==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Br(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(A=>!A.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function $r(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[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));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 Ue(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,A=O=>O===!0||O==="true",R=A(l.hide)||A(l.ignore)||A(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:R||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Pn=new Set(pt);function De(e){return Pn.has(e)}function Ne(e,t){return De(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function xr(e,t){return Ne(e,z(t)?t:void 0)}function he(e){return e.replace(/\/+$/,"")||"/"}function Lr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function jn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Mr(e){const t=e.trim();return t?jn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wn(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function yt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Cr(e){e=yt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))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 Ir(e,t){return yt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const dt=pt[0],Bn=new Set(["site/sections/Theme/Theme.tsx"]);function $n(e,t){return Bn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function _e(e,t){return!!($n(e,z(t))||ot(e)||e.toLowerCase().includes("preview"))}function mt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(De(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":dt}function xn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Ur(e){return e?xn(e)?"page":mt(e):dt}function Pe(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Pe(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...Pe(n));return t}return[]}function Ln(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(_e(o,e))continue;const c=Ue(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Dr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))_e(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});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=z(e);if(!ht(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&ot(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&xe(e,f))return f}return n}function ht(e,t){return e===Dt||t&&e===Nt}function Mn(e,t){return gt(e,t)!==t.__resolveType}function _t(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||it(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||De(c)||typeof o.path=="string"||_e(c,e)||!(xe(e,c)||ht(c,z(e))&&Mn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Cn(e,t){const n=st(t.resolveType,e),r=n?{}:Ue(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Nr(e,t){const n=mt(e),r=kn(n,e),i=Pe(r?.properties?.sections),o=new Map,c=f=>{if(!_e(f.resolveType,e)){if(st(f.resolveType,e)){it(f.resolveType)||o.set(f.resolveType,f);return}xe(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Ln(e))c(f);for(const f of i)c(Cn(e,f));for(const f of _t(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Kr(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 ve="website/loaders/redirect.ts",Vr=new Set([ve,"website/loaders/redirects.ts"]),be="redirect",In=[301,302,307,308],Un={temporary:307,permanent:301};function Fr(e){return e.flat&&e.status||Un[e.type]}const ue=e=>typeof e=="string"?e:"",Dn=e=>e==="permanent"?"permanent":"temporary",Nn=e=>In.find(t=>t===e);function vt(e){const t=Nn(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function Te(e){if(e?.__resolveType===be)return vt(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Dn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Kn(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!==ve&&i.__resolveType!==be||t.push({key:n,...Te(i)})}return t}function qr(e){return Te(e)}function Vn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:be,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:ve}}function Fn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const qn=1e3;function Wr(e,t){const n=Fn(t);for(let r=0;r<qn;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")}const Wn="Redirects",bt="redirects";function Tt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===bt}function Yn(e){return Object.keys(e).filter(n=>Tt(e[n])).sort()[0]??Wn}function Yr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!Tt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function At(e){return"redirect"in e?Te(e):vt({...e})}function St(e,t){const{__resolveType:n,...r}=Vn(e,{...t});return r}function zr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:ve}:{...n,__resolveType:be}])}function Qr(e,t=Yn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...At(n)}))}function Gr(e,t){const n=re(e)[t];return n?At(n):Te(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:bt,redirects:t}}function Hr(e,t){return Ve(e,[...re(e),St(t)])}function Xr(e,t,n){const r=re(e),i=r.slice();return i[t]=St(n,r[t]),Ve(e,i)}function Zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function zn(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 Jr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=je(e,r);if(o)return o}if(i){const o=je(e,i);if(o)return o}return null}function je(e,t,n){const r=he;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function ei(e,t,n){const r=je(e,t,n);return r||he(t)!=="/"?r:Gn(e)??e[0]??null}function Qn(e){return he(e).split("/").filter(Boolean)}function Gn(e){const t=e.map(n=>Qn(n.path));return e.find((n,r)=>{if(wn(n.path).length>0)return!1;const i=t[r];return t.every(o=>i.every((c,f)=>o[f]===c))})??null}const ce="site",Rt="site/apps/site.ts";function we(e,t){return e===ce?!0:t.__resolveType===Rt}function ti(e,t){return e?Ot(e,t).length>0||Kn(e).length>0?!0:t?tr(e,t).length>0||Jn(e,t)?!0:er(e,t).length>0:!1:!1}function Hn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Ne(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:zn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Hn(r,i,t);o&&n.push(o)}return n}function Be(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Be(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>Be(i,t,n+1))}function nt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):Be(e,t)}function Xn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||nt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&nt(e[c.key],o))}function ni(e,t,n){const r=o=>he(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Xn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Zn(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 $e(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ue(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Jn(e,t){const n=e[ce];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(we(ce,r)||lt(t,i)))return{key:ce,name:$e(ce,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!we(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:Rt;return{key:r,name:$e(r,o,t),resolveType:c}}return null}function er(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(Ne(c,t)||typeof o.path!="string"&&(we(r,o)||!lt(t,c)&&!En(c)||n.push({key:r,name:$e(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function tr(e,t){return _t(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??Zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const nr=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,rr={posts:"post",categories:"category",authors:"author"},Et=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ri(e,...t){const n=e?nr.exec(e)?.[1]:void 0;if(n)return rr[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Et.find(c=>pe(r[c]));if(o)return o}return null}function ir(...e){for(const t of e)if(pe(t))for(const n of Et){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function or(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function ii(e,t,n){return ir(...t)??or(e,n)}const sr="https://github.com/decocms/blocks";function oi(){const e=ae.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(Le,{size:"sm",asChild:!0,children:L.jsxs("a",{href:sr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Me,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function si(e){const t=ae.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(an,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let A;t[6]!==i?(A=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=A):A=t[7];let R;t[8]!==r||t[9]!==A?(R=L.jsx(Le,{variant:"outline",size:"sm",onClick:r,children:A}),t[8]=r,t[9]=A,t[10]=R):R=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==R?(O=L.jsx(Me,{image:f,title:l,description:c,actions:R}),t[11]=c,t[12]=l,t[13]=R,t[14]=O):O=t[14],O}function ci(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ai(){const e=ae.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(Le,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let A;return e[12]!==i||e[13]!==o||e[14]!==l?(A=L.jsx(Me,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=A):A=e[15],A}function fi(e){const t=ae.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{$r as $,bt as A,si as B,fi as C,zr as D,hr as E,gt as F,qr as G,Yr as H,Jr as I,Jn as J,Kn as K,Dr as L,Vr as M,de as N,Yn as O,Zr as P,Qr as Q,Un as R,ai as S,Wr as T,Vn as U,Hr as V,wn as W,_e as X,Ur as Y,De as Z,Br as _,Lr as a,xr as a0,xn as a1,Pe as a2,Hn as a3,zn as a4,ri as a5,ii as a6,_r as a7,or as a8,dt as a9,me as aa,wr as ab,Nr as ac,Sr as ad,Je as ae,Or as af,Rr as ag,br as ah,Er as ai,mr as aj,ir as ak,Ar as al,kr as am,Kr as an,je as ao,Gr as ap,In as aq,Xr as ar,oi as b,tr as c,ei as d,Ot as e,Ir as f,vr as g,ti as h,ci as i,gr as j,mt as k,jr as l,Rt as m,he as n,we as o,ni as p,En as q,Tr as r,Cr as s,$e as t,Pr as u,Mr as v,Ue as w,Fr as x,kn as y,Zn as z};
@@ -1 +1 @@
1
- import{N as y}from"./site-editor-toast-BTadFdcN.js";import{a0 as h,W as _}from"./blocks-tab-states-Dos-yNvu.js";import{s as R,X as B,Y as T}from"./category-tree-jh72wtxu.js";const s=t=>typeof t=="string"?t:"";function p(t,r){for(const e of T(t)){const o=s(e[r]);if(o)return o}return null}function b(t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;return typeof e.__resolveType!="string"||!h(e.__resolveType,r)?null:typeof e.path=="string"?e.path:null}function C(t){return _(t).filter(r=>r!=="*").length}function P(t,r,e){let o=null,a=Number.POSITIVE_INFINITY;for(const u of Object.values(t)){const n=b(u,e);if(!n||!r.test(JSON.stringify(u)))continue;const l=C(n);l<a&&(o=n,a=l)}return o}const O=/blogpostpage/i,E=/blogcategorypage/i;function m(t,r){return p(t,"pageSlug")??P(t,O,r)}function G(t,r){return p(t,"categorySlug")??P(t,E,r)}function I(t){const r=t.categories;if(!Array.isArray(r)||r.length===0)return"";const e=r[0];return s(e?.slug)}function L(t,r){let e=t;if(/:category[*?]?/.test(e)){if(!r.category)return null;e=e.replace(/:category[*?]?/g,g(r.category))}if(/:slug[*?]?/.test(e)){if(!r.slug)return null;e=e.replace(/:slug[*?]?/g,encodeURIComponent(r.slug))}return e}const f=/:(?:categorySlug|categoria|category|slug)[*?]?/,d=/:(?:categorySlug|categoria|category|slug)[*?]?/g;function A(t,r=!1){return/:(?:categorySlug|categoria|category)\*|\/\*$/.test(t)?!0:r&&/:slug\*/.test(t)&&!/:(?:categorySlug|categoria|category)[*?]?/.test(t)}function g(t){return t.split("/").filter(r=>r!=="."&&r!=="..").map(encodeURIComponent).join("/")}function S(t,r){if(!r)return"";const e=R(t).categories;return B(r,e).join("/")}function M(t,r){return/\/\*$/.test(t)&&!f.test(t)?r?t.replace(/\/\*$/,`/${g(r)}`):null:f.test(t)?r?t.replace(d,g(r)):null:t}function v({decofile:t,category:r,previewBaseUrl:e,draftPointer:o,meta:a}){if(!e)return null;const u=G(t,a);if(!u)return null;const n=s(r.slug),l=M(u,A(u,!0)?S(t,n):n);if(!l)return null;try{return y(new URL(l,e).href,o)}catch{return null}}const j="draft";function U({decofile:t,post:r,previewBaseUrl:e,draftPointer:o,meta:a,planning:u=!1}){if(!e)return null;const n=m(t,a);if(!n)return null;const l=I(r),c=L(n,{category:A(n)?S(t,l):l,slug:s(r.slug)});if(!c)return null;try{const i=new URL(c,e);return u&&i.searchParams.set(j,"true"),y(i.href,o)}catch{return null}}export{L as a,U as b,v as c,m as f};
1
+ import{N as y}from"./site-editor-toast-fJQVfqa6.js";import{a0 as h,W as _}from"./blocks-tab-states-DdvH_zgH.js";import{s as R,X as B,Y as T}from"./category-tree-ArvPlYX5.js";const s=t=>typeof t=="string"?t:"";function p(t,r){for(const e of T(t)){const o=s(e[r]);if(o)return o}return null}function b(t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;return typeof e.__resolveType!="string"||!h(e.__resolveType,r)?null:typeof e.path=="string"?e.path:null}function C(t){return _(t).filter(r=>r!=="*").length}function P(t,r,e){let o=null,a=Number.POSITIVE_INFINITY;for(const u of Object.values(t)){const n=b(u,e);if(!n||!r.test(JSON.stringify(u)))continue;const l=C(n);l<a&&(o=n,a=l)}return o}const O=/blogpostpage/i,E=/blogcategorypage/i;function m(t,r){return p(t,"pageSlug")??P(t,O,r)}function G(t,r){return p(t,"categorySlug")??P(t,E,r)}function I(t){const r=t.categories;if(!Array.isArray(r)||r.length===0)return"";const e=r[0];return s(e?.slug)}function L(t,r){let e=t;if(/:category[*?]?/.test(e)){if(!r.category)return null;e=e.replace(/:category[*?]?/g,g(r.category))}if(/:slug[*?]?/.test(e)){if(!r.slug)return null;e=e.replace(/:slug[*?]?/g,encodeURIComponent(r.slug))}return e}const f=/:(?:categorySlug|categoria|category|slug)[*?]?/,d=/:(?:categorySlug|categoria|category|slug)[*?]?/g;function A(t,r=!1){return/:(?:categorySlug|categoria|category)\*|\/\*$/.test(t)?!0:r&&/:slug\*/.test(t)&&!/:(?:categorySlug|categoria|category)[*?]?/.test(t)}function g(t){return t.split("/").filter(r=>r!=="."&&r!=="..").map(encodeURIComponent).join("/")}function S(t,r){if(!r)return"";const e=R(t).categories;return B(r,e).join("/")}function M(t,r){return/\/\*$/.test(t)&&!f.test(t)?r?t.replace(/\/\*$/,`/${g(r)}`):null:f.test(t)?r?t.replace(d,g(r)):null:t}function v({decofile:t,category:r,previewBaseUrl:e,draftPointer:o,meta:a}){if(!e)return null;const u=G(t,a);if(!u)return null;const n=s(r.slug),l=M(u,A(u,!0)?S(t,n):n);if(!l)return null;try{return y(new URL(l,e).href,o)}catch{return null}}const j="draft";function U({decofile:t,post:r,previewBaseUrl:e,draftPointer:o,meta:a,planning:u=!1}){if(!e)return null;const n=m(t,a);if(!n)return null;const l=I(r),c=L(n,{category:A(n)?S(t,l):l,slug:s(r.slug)});if(!c)return null;try{const i=new URL(c,e);return u&&i.searchParams.set(j,"true"),y(i.href,o)}catch{return null}}export{L as a,U as b,v as c,m as f};
@@ -1 +1 @@
1
- import{c as N,j as i,r as _,m as R,b as T}from"./index-BqA84bKQ.js";import{l as v}from"./agent-icon-7pgGOyab.js";import{O as P,S as K,I as D,g as I}from"./held-block-view-9GD7sW5O.js";import{t as y}from"./ChevronUp-B9DaDvS3.js";import{C as W,a as Y,b as w}from"./collapsible-fuf-L_qO.js";import{ah as B,ai as L}from"./category-tree-jh72wtxu.js";function $(l){const e=N.c(2);let t;return e[0]!==l?(t=i.jsx(P,{children:i.jsx(K,{...l})}),e[0]=l,e[1]=t):t=e[1],t}function A(l){const e=N.c(18),{icon:t,title:o,defaultOpen:c,children:d}=l,j=c===void 0?!1:c,[f,C]=_.useState(j);let m;e[0]!==t?(m=i.jsx(t,{size:15}),e[0]=t,e[1]=m):m=e[1];let s;e[2]!==o?(s=i.jsx("span",{className:"flex-1 text-left",children:o}),e[2]=o,e[3]=s):s=e[3];const b=f&&"rotate-180";let n;e[4]!==b?(n=R("transition-transform",b),e[4]=b,e[5]=n):n=e[5];let p;e[6]!==n?(p=i.jsx(y,{size:15,className:n}),e[6]=n,e[7]=p):p=e[7];let r;e[8]!==m||e[9]!==s||e[10]!==p?(r=i.jsx(W,{asChild:!0,children:i.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground cursor-pointer",children:[m,s,p]})}),e[8]=m,e[9]=s,e[10]=p,e[11]=r):r=e[11];let a;e[12]!==d?(a=i.jsx(Y,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=a):a=e[13];let u;return e[14]!==f||e[15]!==r||e[16]!==a?(u=i.jsxs(w,{open:f,onOpenChange:C,className:"mt-4",children:[r,a]}),e[14]=f,e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function Z(l){const e=N.c(32),{schema:t,value:o,onChange:c,basePath:d,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}=l,s=T();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[n,p]=_.useState(b);if(!t)return null;let r;e[1]!==s?(r=s("sandbox.blogCustomFields.title"),e[1]=s,e[2]=r):r=e[2];let a;e[3]!==s?(a=s("sandbox.blogCustomFields.description"),e[3]=s,e[4]=a):a=e[4];let u;e[5]!==a?(u=i.jsx("p",{className:"mb-4 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=u):u=e[6];let x;e[7]!==s?(x=s("sandbox.blogCustomFields.breadcrumbLabel"),e[7]=s,e[8]=x):x=e[8];let h;e[9]!==s?(h=s("sandbox.blogCustomFields.backToFields"),e[9]=s,e[10]=h):h=e[10];let g;e[11]!==n||e[12]!==x||e[13]!==h?(g=i.jsx(D,{path:n,onNavigate:p,label:x,backTitle:h}),e[11]=n,e[12]=x,e[13]=h,e[14]=g):g=e[14];let S;e[15]!==c?(S=F=>c(F),e[15]=c,e[16]=S):S=e[16];let E;e[17]!==d||e[18]!==n||e[19]!==f||e[20]!==j||e[21]!==m||e[22]!==C||e[23]!==t||e[24]!==S||e[25]!==o?(E=i.jsx($,{schema:t,value:o,onChange:S,basePath:d,breadcrumbPath:n,onBreadcrumbChange:p,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}),e[17]=d,e[18]=n,e[19]=f,e[20]=j,e[21]=m,e[22]=C,e[23]=t,e[24]=S,e[25]=o,e[26]=E):E=e[26];let O;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(O=i.jsxs(A,{icon:v,title:r,children:[u,g,E]}),e[27]=r,e[28]=u,e[29]=g,e[30]=E,e[31]=O):O=e[31],O}function k(l,e){if(!e)return null;const o=I(B[l],e)?.properties?.[L[l]];if(!o)return null;const c=o.properties?o:o.plainSchema;return c?.properties?c:null}const z=new Set(["__resolveType","@type"]);function G(l,e){const t=l?.properties;if(!t)return null;const o=Object.fromEntries(Object.entries(t).filter(([c,d])=>!e.has(c)&&!z.has(c)&&d.hidden!==!0));return Object.keys(o).length===0?null:{type:"object",properties:o}}function ee(l,e,t){return G(k(l,e),t)}const V=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(V),M=["name","slug","parentSlug","description","sections"],se=new Set(M);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
1
+ import{c as N,j as i,r as _,m as R,b as T}from"./index-D9wygnbU.js";import{l as v}from"./agent-icon-DHk7TnW1.js";import{O as P,S as K,I as D,g as I}from"./held-block-view-CwWI05W1.js";import{t as y}from"./ChevronUp-s7k4XU_p.js";import{C as W,a as Y,b as w}from"./collapsible-B4lmmxiu.js";import{ah as B,ai as L}from"./category-tree-ArvPlYX5.js";function $(l){const e=N.c(2);let t;return e[0]!==l?(t=i.jsx(P,{children:i.jsx(K,{...l})}),e[0]=l,e[1]=t):t=e[1],t}function A(l){const e=N.c(18),{icon:t,title:o,defaultOpen:c,children:d}=l,j=c===void 0?!1:c,[f,C]=_.useState(j);let m;e[0]!==t?(m=i.jsx(t,{size:15}),e[0]=t,e[1]=m):m=e[1];let s;e[2]!==o?(s=i.jsx("span",{className:"flex-1 text-left",children:o}),e[2]=o,e[3]=s):s=e[3];const b=f&&"rotate-180";let n;e[4]!==b?(n=R("transition-transform",b),e[4]=b,e[5]=n):n=e[5];let p;e[6]!==n?(p=i.jsx(y,{size:15,className:n}),e[6]=n,e[7]=p):p=e[7];let r;e[8]!==m||e[9]!==s||e[10]!==p?(r=i.jsx(W,{asChild:!0,children:i.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground cursor-pointer",children:[m,s,p]})}),e[8]=m,e[9]=s,e[10]=p,e[11]=r):r=e[11];let a;e[12]!==d?(a=i.jsx(Y,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=a):a=e[13];let u;return e[14]!==f||e[15]!==r||e[16]!==a?(u=i.jsxs(w,{open:f,onOpenChange:C,className:"mt-4",children:[r,a]}),e[14]=f,e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function Z(l){const e=N.c(32),{schema:t,value:o,onChange:c,basePath:d,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}=l,s=T();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[n,p]=_.useState(b);if(!t)return null;let r;e[1]!==s?(r=s("sandbox.blogCustomFields.title"),e[1]=s,e[2]=r):r=e[2];let a;e[3]!==s?(a=s("sandbox.blogCustomFields.description"),e[3]=s,e[4]=a):a=e[4];let u;e[5]!==a?(u=i.jsx("p",{className:"mb-4 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=u):u=e[6];let x;e[7]!==s?(x=s("sandbox.blogCustomFields.breadcrumbLabel"),e[7]=s,e[8]=x):x=e[8];let h;e[9]!==s?(h=s("sandbox.blogCustomFields.backToFields"),e[9]=s,e[10]=h):h=e[10];let g;e[11]!==n||e[12]!==x||e[13]!==h?(g=i.jsx(D,{path:n,onNavigate:p,label:x,backTitle:h}),e[11]=n,e[12]=x,e[13]=h,e[14]=g):g=e[14];let S;e[15]!==c?(S=F=>c(F),e[15]=c,e[16]=S):S=e[16];let E;e[17]!==d||e[18]!==n||e[19]!==f||e[20]!==j||e[21]!==m||e[22]!==C||e[23]!==t||e[24]!==S||e[25]!==o?(E=i.jsx($,{schema:t,value:o,onChange:S,basePath:d,breadcrumbPath:n,onBreadcrumbChange:p,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}),e[17]=d,e[18]=n,e[19]=f,e[20]=j,e[21]=m,e[22]=C,e[23]=t,e[24]=S,e[25]=o,e[26]=E):E=e[26];let O;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(O=i.jsxs(A,{icon:v,title:r,children:[u,g,E]}),e[27]=r,e[28]=u,e[29]=g,e[30]=E,e[31]=O):O=e[31],O}function k(l,e){if(!e)return null;const o=I(B[l],e)?.properties?.[L[l]];if(!o)return null;const c=o.properties?o:o.plainSchema;return c?.properties?c:null}const z=new Set(["__resolveType","@type"]);function G(l,e){const t=l?.properties;if(!t)return null;const o=Object.fromEntries(Object.entries(t).filter(([c,d])=>!e.has(c)&&!z.has(c)&&d.hidden!==!0));return Object.keys(o).length===0?null:{type:"object",properties:o}}function ee(l,e,t){return G(k(l,e),t)}const V=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(V),M=["name","slug","parentSlug","description","sections"],se=new Set(M);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
@@ -1 +1 @@
1
- import{c as I,a4 as $,bd as Y,j as n,b as K,B as z,h as V,r as X}from"./index-BqA84bKQ.js";import{E as q}from"./empty-state-COfoPZ3l.js";import{n as J}from"./BookOpen01-BDEDqARy.js";import{c as F,u as Q}from"./chat-context-ChgzPsES.js";import{c as Z,u as ee,i as te,h as se,j as oe,f as ae,k as ie}from"./site-editor-toast-BTadFdcN.js";import{i as ne,u as re,S as le,C as ce}from"./blocks-tab-states-Dos-yNvu.js";import{E as A,B as fe}from"./empty-message-BxCQf5X6.js";import{u as de}from"./use-sandbox-events-f-PdmD_K.js";import{a as me}from"./sandbox-lifecycle-context-Ba3XN5SW.js";import{u as ue}from"./use-voice-input-B4K2dw_4.js";import{k as pe,S as he,i as ge,n as xe,C as be,F as ve,s as Se,p as ye}from"./category-tree-jh72wtxu.js";import{f as je}from"./blog-preview-url-B9WnCIII.js";import{E as ke}from"./empty-state-A6nZ3Khe.js";import{G as D}from"./github-icon-D3u8oGuo.js";import{R as Ee}from"./new-project-dialog-BOtGKQPA.js";import{a as G}from"./agent-capabilities-BobB8G3S.js";import{u as Be}from"./repository-binding-CekCSlJ1.js";function He(R){const e=I.c(27),{children:f}=R,{currentBranch:c,virtualMcpId:s}=F(),{org:d}=$(),m=de(),v=me(),{runtime:j,previewServerUrl:E}=ue(s),{url:k}=Z(s),i=ee(s,c),t=te(i),h=i.kind==="protocol"&&i.source==="github";Y(h);const r=pe({fastPreviewActive:t||j==="cms",previewState:v.previewState,lifecyclePhase:m.lifecycle.phase});let u;e[0]!==i||e[1]!==k?(u=se(i)??k,e[0]=i,e[1]=k,e[2]=u):u=e[2];const p=u,l=j==="cms"&&!p;if(r.kind==="sandbox-card"){const o=`/${d.slug}/settings/connections`;let B;return e[3]!==r.state||e[4]!==v.start||e[5]!==o||e[6]!==m.lifecycle||e[7]!==m.phase?(B=n.jsx(he,{state:r.state,claimPhase:m.phase,lifecycle:m.lifecycle,onStart:v.start,connectionsHref:o}),e[3]=r.state,e[4]=v.start,e[5]=o,e[6]=m.lifecycle,e[7]=m.phase,e[8]=B):B=e[8],B}if(!s||!c){let o;return e[9]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(A,{title:"Waiting for sandbox context…"}),e[9]=o):o=e[9],o}if(ne(i)){let o;return e[10]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(le,{}),e[10]=o):o=e[10],o}if(i.kind==="pending"){let o;return e[11]!==i?(o=n.jsx(ce,{backend:i}),e[11]=i,e[12]=o):o=e[12],o}const S=t?null:v.previewUrl,g=p??(l?E:v.previewUrl);let y;e[13]!==c||e[14]!==f||e[15]!==l||e[16]!==r.devServerReady||e[17]!==r.sandboxWarming||e[18]!==h||e[19]!==d.slug||e[20]!==S||e[21]!==g||e[22]!==s?(y=n.jsx(_e,{orgSlug:d.slug,virtualMcpId:s,branch:c,previewUrl:S,sitePreviewUrl:g,fastPreviewActive:l,hostedDraft:h,devServerReady:r.devServerReady,sandboxWarming:r.sandboxWarming,children:f}),e[13]=c,e[14]=f,e[15]=l,e[16]=r.devServerReady,e[17]=r.sandboxWarming,e[18]=h,e[19]=d.slug,e[20]=S,e[21]=g,e[22]=s,e[23]=y):y=e[23];let _;return e[24]!==t||e[25]!==y?(_=n.jsx(fe,{value:t,children:y}),e[24]=t,e[25]=y,e[26]=_):_=e[26],_}function _e(R){const e=I.c(54),{orgSlug:f,virtualMcpId:c,branch:s,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j,devServerReady:E,sandboxWarming:k,children:i}=R,t=K(),h=Q()?.taskId??null;let r;e[0]!==s||e[1]!==f||e[2]!==d||e[3]!==h||e[4]!==c?(r={orgSlug:f,virtualMcpId:c,branch:s,threadId:h,previewUrl:d},e[0]=s,e[1]=f,e[2]=d,e[3]=h,e[4]=c,e[5]=r):r=e[5];const u=r;let p;e[6]!==E?(p={fetchEnabled:E},e[6]=E,e[7]=p):p=e[7];const{data:l,isLoading:S}=oe(u,p);let g;e[8]!==E?(g={fetchEnabled:E},e[8]=E,e[9]=g):g=e[9];const{data:y,isLoading:_}=re(u,g);let o;e[10]!==s||e[11]!==j||e[12]!==f||e[13]!==c?(o=j?{orgSlug:f,virtualMcpId:c,branch:s}:null,e[10]=s,e[11]=j,e[12]=f,e[13]=c,e[14]=o):o=e[14];const B=o,W=ae(B,ge);let N;e[15]!==W?(N=[...W,xe,be,ve],e[15]=W,e[16]=N):N=e[16];let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L={withRefs:!0},e[17]=L):L=e[17];const T=ie(B,N,L);if(T.failed){let a;e[18]!==t?(a=t("sectionsEditor.hosted.blockLoadFailed"),e[18]=t,e[19]=a):a=e[19];let x;e[20]!==t?(x=t("sectionsEditor.hosted.blockLoadFailedHint"),e[20]=t,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==x?(b=n.jsx(A,{title:a,description:x}),e[22]=a,e[23]=x,e[24]=b):b=e[24];const C=T.retry;let P;e[25]!==t?(P=t("sectionsEditor.namedRules.tryAgain"),e[25]=t,e[26]=P):P=e[26];let w;e[27]!==T.retry||e[28]!==P?(w=n.jsx(z,{variant:"outline",size:"sm",onClick:C,children:P}),e[27]=T.retry,e[28]=P,e[29]=w):w=e[29];let U;return e[30]!==w||e[31]!==b?(U=n.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",children:[b,w]}),e[30]=w,e[31]=b,e[32]=U):U=e[32],U}const M=!l||!y;if(S||_||!T.ready||M&&k){let a;return e[33]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx(V,{className:"size-5 text-muted-foreground"})}),e[33]=a):a=e[33],a}if(M){let a;return e[34]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(A,{title:"Could not load site data."}),e[34]=a):a=e[34],a}const H=Se(l);if(!ye.some(a=>H[a].length>0)&&!je(l,y)){let a;e[35]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(J,{size:22}),e[35]=a):a=e[35];let x;e[36]!==t?(x=t("sandbox.blogWorkspace.noBlogApp"),e[36]=t,e[37]=x):x=e[37];let b;e[38]!==t?(b=t("sandbox.blogWorkspace.noBlogAppHint"),e[38]=t,e[39]=b):b=e[39];let C;return e[40]!==x||e[41]!==b?(C=n.jsx(q,{className:"h-full",icon:a,title:x,description:b}),e[40]=x,e[41]=b,e[42]=C):C=e[42],C}let O;return e[43]!==s||e[44]!==i||e[45]!==l||e[46]!==v||e[47]!==j||e[48]!==y||e[49]!==f||e[50]!==d||e[51]!==m||e[52]!==c?(O=i({orgSlug:f,virtualMcpId:c,branch:s,decofile:l,meta:y,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j}),e[43]=s,e[44]=i,e[45]=l,e[46]=v,e[47]=j,e[48]=y,e[49]=f,e[50]=d,e[51]=m,e[52]=c,e[53]=O):O=e[53],O}function $e(R){const e=I.c(20),{virtualMcpId:f,children:c}=R,s=K(),[d,m]=X.useState(!1),v=Be(f),{activeTask:j}=F();if(G(v?.metadata)||G(j?.metadata))return c;let k;e[0]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-muted",children:n.jsx(D,{className:"size-7 text-foreground"})}),e[0]=k):k=e[0];let i;e[1]!==s?(i=s("mainPanelTabs.contentTab.noContentToEdit"),e[1]=s,e[2]=i):i=e[2];let t;e[3]!==s?(t=s("mainPanelTabs.contentTab.connectGithubDescription"),e[3]=s,e[4]=t):t=e[4];let h,r;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(!0),r=n.jsx(D,{className:"size-4"}),e[5]=h,e[6]=r):(h=e[5],r=e[6]);let u;e[7]!==s?(u=s("mainPanelTabs.previewTab.connectGithub"),e[7]=s,e[8]=u):u=e[8];let p;e[9]!==u?(p=n.jsxs(z,{onClick:h,children:[r,u]}),e[9]=u,e[10]=p):p=e[10];let l;e[11]!==i||e[12]!==t||e[13]!==p?(l=n.jsx(ke,{className:"h-full",image:k,title:i,description:t,actions:p}),e[11]=i,e[12]=t,e[13]=p,e[14]=l):l=e[14];let S;e[15]!==d?(S=n.jsx(Ee,{open:d,onOpenChange:m,mode:"agent"}),e[15]=d,e[16]=S):S=e[16];let g;return e[17]!==l||e[18]!==S?(g=n.jsxs(n.Fragment,{children:[l,S]}),e[17]=l,e[18]=S,e[19]=g):g=e[19],g}export{He as B,$e as a};
1
+ import{c as I,a4 as $,bd as Y,j as n,b as K,B as z,h as V,r as X}from"./index-D9wygnbU.js";import{E as q}from"./empty-state-BmCMJHsS.js";import{n as J}from"./BookOpen01-Cu2i97yZ.js";import{c as F,u as Q}from"./chat-context-B9rZ1ojJ.js";import{c as Z,u as ee,i as te,h as se,j as oe,f as ae,k as ie}from"./site-editor-toast-fJQVfqa6.js";import{i as ne,u as re,S as le,C as ce}from"./blocks-tab-states-DdvH_zgH.js";import{E as A,B as fe}from"./empty-message-ILKuHEfQ.js";import{u as de}from"./use-sandbox-events-BZs_wcMW.js";import{a as me}from"./sandbox-lifecycle-context-oW4CAFSP.js";import{u as ue}from"./use-voice-input-seZQKt1s.js";import{k as pe,S as he,i as ge,n as xe,C as be,F as ve,s as Se,p as ye}from"./category-tree-ArvPlYX5.js";import{f as je}from"./blog-preview-url-BoKhflQE.js";import{E as ke}from"./empty-state-GIO1CyUk.js";import{G as D}from"./github-icon-1x8ZI6aO.js";import{R as Ee}from"./new-project-dialog-MxeroDTr.js";import{a as G}from"./agent-capabilities-DWTuevMP.js";import{u as Be}from"./repository-binding-C2KfYomQ.js";function He(R){const e=I.c(27),{children:f}=R,{currentBranch:c,virtualMcpId:s}=F(),{org:d}=$(),m=de(),v=me(),{runtime:j,previewServerUrl:E}=ue(s),{url:k}=Z(s),i=ee(s,c),t=te(i),h=i.kind==="protocol"&&i.source==="github";Y(h);const r=pe({fastPreviewActive:t||j==="cms",previewState:v.previewState,lifecyclePhase:m.lifecycle.phase});let u;e[0]!==i||e[1]!==k?(u=se(i)??k,e[0]=i,e[1]=k,e[2]=u):u=e[2];const p=u,l=j==="cms"&&!p;if(r.kind==="sandbox-card"){const o=`/${d.slug}/settings/connections`;let B;return e[3]!==r.state||e[4]!==v.start||e[5]!==o||e[6]!==m.lifecycle||e[7]!==m.phase?(B=n.jsx(he,{state:r.state,claimPhase:m.phase,lifecycle:m.lifecycle,onStart:v.start,connectionsHref:o}),e[3]=r.state,e[4]=v.start,e[5]=o,e[6]=m.lifecycle,e[7]=m.phase,e[8]=B):B=e[8],B}if(!s||!c){let o;return e[9]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(A,{title:"Waiting for sandbox context…"}),e[9]=o):o=e[9],o}if(ne(i)){let o;return e[10]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(le,{}),e[10]=o):o=e[10],o}if(i.kind==="pending"){let o;return e[11]!==i?(o=n.jsx(ce,{backend:i}),e[11]=i,e[12]=o):o=e[12],o}const S=t?null:v.previewUrl,g=p??(l?E:v.previewUrl);let y;e[13]!==c||e[14]!==f||e[15]!==l||e[16]!==r.devServerReady||e[17]!==r.sandboxWarming||e[18]!==h||e[19]!==d.slug||e[20]!==S||e[21]!==g||e[22]!==s?(y=n.jsx(_e,{orgSlug:d.slug,virtualMcpId:s,branch:c,previewUrl:S,sitePreviewUrl:g,fastPreviewActive:l,hostedDraft:h,devServerReady:r.devServerReady,sandboxWarming:r.sandboxWarming,children:f}),e[13]=c,e[14]=f,e[15]=l,e[16]=r.devServerReady,e[17]=r.sandboxWarming,e[18]=h,e[19]=d.slug,e[20]=S,e[21]=g,e[22]=s,e[23]=y):y=e[23];let _;return e[24]!==t||e[25]!==y?(_=n.jsx(fe,{value:t,children:y}),e[24]=t,e[25]=y,e[26]=_):_=e[26],_}function _e(R){const e=I.c(54),{orgSlug:f,virtualMcpId:c,branch:s,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j,devServerReady:E,sandboxWarming:k,children:i}=R,t=K(),h=Q()?.taskId??null;let r;e[0]!==s||e[1]!==f||e[2]!==d||e[3]!==h||e[4]!==c?(r={orgSlug:f,virtualMcpId:c,branch:s,threadId:h,previewUrl:d},e[0]=s,e[1]=f,e[2]=d,e[3]=h,e[4]=c,e[5]=r):r=e[5];const u=r;let p;e[6]!==E?(p={fetchEnabled:E},e[6]=E,e[7]=p):p=e[7];const{data:l,isLoading:S}=oe(u,p);let g;e[8]!==E?(g={fetchEnabled:E},e[8]=E,e[9]=g):g=e[9];const{data:y,isLoading:_}=re(u,g);let o;e[10]!==s||e[11]!==j||e[12]!==f||e[13]!==c?(o=j?{orgSlug:f,virtualMcpId:c,branch:s}:null,e[10]=s,e[11]=j,e[12]=f,e[13]=c,e[14]=o):o=e[14];const B=o,W=ae(B,ge);let N;e[15]!==W?(N=[...W,xe,be,ve],e[15]=W,e[16]=N):N=e[16];let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L={withRefs:!0},e[17]=L):L=e[17];const T=ie(B,N,L);if(T.failed){let a;e[18]!==t?(a=t("sectionsEditor.hosted.blockLoadFailed"),e[18]=t,e[19]=a):a=e[19];let x;e[20]!==t?(x=t("sectionsEditor.hosted.blockLoadFailedHint"),e[20]=t,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==x?(b=n.jsx(A,{title:a,description:x}),e[22]=a,e[23]=x,e[24]=b):b=e[24];const C=T.retry;let P;e[25]!==t?(P=t("sectionsEditor.namedRules.tryAgain"),e[25]=t,e[26]=P):P=e[26];let w;e[27]!==T.retry||e[28]!==P?(w=n.jsx(z,{variant:"outline",size:"sm",onClick:C,children:P}),e[27]=T.retry,e[28]=P,e[29]=w):w=e[29];let U;return e[30]!==w||e[31]!==b?(U=n.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",children:[b,w]}),e[30]=w,e[31]=b,e[32]=U):U=e[32],U}const M=!l||!y;if(S||_||!T.ready||M&&k){let a;return e[33]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx(V,{className:"size-5 text-muted-foreground"})}),e[33]=a):a=e[33],a}if(M){let a;return e[34]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(A,{title:"Could not load site data."}),e[34]=a):a=e[34],a}const H=Se(l);if(!ye.some(a=>H[a].length>0)&&!je(l,y)){let a;e[35]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(J,{size:22}),e[35]=a):a=e[35];let x;e[36]!==t?(x=t("sandbox.blogWorkspace.noBlogApp"),e[36]=t,e[37]=x):x=e[37];let b;e[38]!==t?(b=t("sandbox.blogWorkspace.noBlogAppHint"),e[38]=t,e[39]=b):b=e[39];let C;return e[40]!==x||e[41]!==b?(C=n.jsx(q,{className:"h-full",icon:a,title:x,description:b}),e[40]=x,e[41]=b,e[42]=C):C=e[42],C}let O;return e[43]!==s||e[44]!==i||e[45]!==l||e[46]!==v||e[47]!==j||e[48]!==y||e[49]!==f||e[50]!==d||e[51]!==m||e[52]!==c?(O=i({orgSlug:f,virtualMcpId:c,branch:s,decofile:l,meta:y,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j}),e[43]=s,e[44]=i,e[45]=l,e[46]=v,e[47]=j,e[48]=y,e[49]=f,e[50]=d,e[51]=m,e[52]=c,e[53]=O):O=e[53],O}function $e(R){const e=I.c(20),{virtualMcpId:f,children:c}=R,s=K(),[d,m]=X.useState(!1),v=Be(f),{activeTask:j}=F();if(G(v?.metadata)||G(j?.metadata))return c;let k;e[0]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-muted",children:n.jsx(D,{className:"size-7 text-foreground"})}),e[0]=k):k=e[0];let i;e[1]!==s?(i=s("mainPanelTabs.contentTab.noContentToEdit"),e[1]=s,e[2]=i):i=e[2];let t;e[3]!==s?(t=s("mainPanelTabs.contentTab.connectGithubDescription"),e[3]=s,e[4]=t):t=e[4];let h,r;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(!0),r=n.jsx(D,{className:"size-4"}),e[5]=h,e[6]=r):(h=e[5],r=e[6]);let u;e[7]!==s?(u=s("mainPanelTabs.previewTab.connectGithub"),e[7]=s,e[8]=u):u=e[8];let p;e[9]!==u?(p=n.jsxs(z,{onClick:h,children:[r,u]}),e[9]=u,e[10]=p):p=e[10];let l;e[11]!==i||e[12]!==t||e[13]!==p?(l=n.jsx(ke,{className:"h-full",image:k,title:i,description:t,actions:p}),e[11]=i,e[12]=t,e[13]=p,e[14]=l):l=e[14];let S;e[15]!==d?(S=n.jsx(Ee,{open:d,onOpenChange:m,mode:"agent"}),e[15]=d,e[16]=S):S=e[16];let g;return e[17]!==l||e[18]!==S?(g=n.jsxs(n.Fragment,{children:[l,S]}),e[17]=l,e[18]=S,e[19]=g):g=e[19],g}export{He as B,$e as a};
@@ -1 +1 @@
1
- import{c as I,f as _,u as x,be as j,j as g,N as u,$ as h,aZ as S,bf as w}from"./index-BqA84bKQ.js";import{f as v}from"./use-view-draft-kind-vGVmYJM5.js";function E(m){const e=I.c(11),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r);if(f===void 0){let t;return e[2]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx(S,{}),e[2]=t):t=e[2],t}if(f||!l.org||!l.agentId)return p;let o;e[3]!==l.agentId||e[4]!==l.org?(o={org:l.org,agentId:l.agentId},e[3]=l.agentId,e[4]=l.org,e[5]=o):o=e[5];let s;e[6]!==c?(s=t=>({...t,blogCollection:void 0,blogItem:void 0,blogView:void 0,...w(c)}),e[6]=c,e[7]=s):s=e[7];let n;return e[8]!==o||e[9]!==s?(n=g.jsx(u,{to:h.siteEditorContent,params:o,search:s,hash:!0,replace:!0}),e[8]=o,e[9]=s,e[10]=n):n=e[10],n}function k(m){const e=I.c(13),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r),{org:o,agentId:s}=l;let n;e[2]!==s||e[3]!==o||e[4]!==c?(n=o&&s?j(c):null,e[2]=s,e[3]=o,e[4]=c,e[5]=n):n=e[5];const t=n;if(!t||!o||!s||f===!1)return p;if(f===void 0){let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(S,{}),e[6]=i):i=e[6],i}const b=y;let d;return e[7]!==s||e[8]!==o||e[9]!==t.collection||e[10]!==t.item||e[11]!==t.postId?(d=t.postId?g.jsx(u,{to:h.blogPost,params:{org:o,agentId:s,postId:t.postId},search:b,hash:!0,replace:!0}):g.jsx(u,{to:h.blog,params:{org:o,agentId:s},search:i=>({...b(i),blogCollection:t.collection,blogItem:t.item}),hash:!0,replace:!0}),e[7]=s,e[8]=o,e[9]=t.collection,e[10]=t.item,e[11]=t.postId,e[12]=d):d=e[12],d}function y(m){return{...m,contentCollection:void 0,contentItem:void 0}}export{k as B,E as a};
1
+ import{c as I,f as _,u as x,be as j,j as g,N as u,$ as h,aZ as S,bf as w}from"./index-D9wygnbU.js";import{f as v}from"./use-view-draft-kind-BsykP2yK.js";function E(m){const e=I.c(11),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r);if(f===void 0){let t;return e[2]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx(S,{}),e[2]=t):t=e[2],t}if(f||!l.org||!l.agentId)return p;let o;e[3]!==l.agentId||e[4]!==l.org?(o={org:l.org,agentId:l.agentId},e[3]=l.agentId,e[4]=l.org,e[5]=o):o=e[5];let s;e[6]!==c?(s=t=>({...t,blogCollection:void 0,blogItem:void 0,blogView:void 0,...w(c)}),e[6]=c,e[7]=s):s=e[7];let n;return e[8]!==o||e[9]!==s?(n=g.jsx(u,{to:h.siteEditorContent,params:o,search:s,hash:!0,replace:!0}),e[8]=o,e[9]=s,e[10]=n):n=e[10],n}function k(m){const e=I.c(13),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r),{org:o,agentId:s}=l;let n;e[2]!==s||e[3]!==o||e[4]!==c?(n=o&&s?j(c):null,e[2]=s,e[3]=o,e[4]=c,e[5]=n):n=e[5];const t=n;if(!t||!o||!s||f===!1)return p;if(f===void 0){let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(S,{}),e[6]=i):i=e[6],i}const b=y;let d;return e[7]!==s||e[8]!==o||e[9]!==t.collection||e[10]!==t.item||e[11]!==t.postId?(d=t.postId?g.jsx(u,{to:h.blogPost,params:{org:o,agentId:s,postId:t.postId},search:b,hash:!0,replace:!0}):g.jsx(u,{to:h.blog,params:{org:o,agentId:s},search:i=>({...b(i),blogCollection:t.collection,blogItem:t.item}),hash:!0,replace:!0}),e[7]=s,e[8]=o,e[9]=t.collection,e[10]=t.item,e[11]=t.postId,e[12]=d):d=e[12],d}function y(m){return{...m,contentCollection:void 0,contentItem:void 0}}export{k as B,E as a};
@@ -1 +1 @@
1
- import{c as F,b as T,j as t,i2 as W,r as S,B as L,D as X,v as Y,w as Z,x as ee,aT as te,I as D,y as se,b5 as ie,t as K,ay as O,ge as le,aH as ne,aI as re,aJ as ce,aK as ae,aL as oe,aM as de,aN as ue}from"./index-BqA84bKQ.js";import{i as fe}from"./AlertCircle-BNgT9H-9.js";import{s as V}from"./Plus-Dxw22W7_.js";import{s as me}from"./Trash01-CGrA2ON1.js";import{B as R}from"./badge-DJzADYLN.js";import{E as ge}from"./empty-state-COfoPZ3l.js";import{L as B}from"./label-Ducx0j9M.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-DKwtgT2c.js";import{S as je}from"./switch-CaR5PIVi.js";import{T as ke}from"./textarea-BC5J6m5c.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-Cb7TGwCU.js";import{R as Se}from"./require-capability-C5tMOw5q.js";import"./index-BdQq_4o_.js";import"./index-BzeTLGQv.js";import"./ChevronUp-B9DaDvS3.js";import"./access-gate-3uWjt152.js";import"./capability-load-error-BQYVgnjq.js";function Ne(i,e){if(!(i instanceof Error))return e;const s=i.message.match(/\[\s*\{[\s\S]*\}\s*\]/);if(s)try{const l=JSON.parse(s[0])[0];if(l?.message){const r=l.path?.join(".");return r?`${r}: ${l.message}`:l.message}}catch{}return i.message||e}function Be(i){const e=F.c(6),{error:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(fe,{size:16}),e[0]=l):l=e[0];let r;e[1]!==s.message||e[2]!==n?(r=n("settings.buckets.failedToLoadConfigs",{error:s.message}),e[1]=s.message,e[2]=n,e[3]=r):r=e[3];let c;return e[4]!==r?(c=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[l,t.jsx("span",{className:"text-sm font-medium",children:r})]}),e[4]=r,e[5]=c):c=e[5],c}function De(i){const e=F.c(51),{config:s,onDelete:n}=i,l=T();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(O,{size:16,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let c;e[1]!==s.name?(c=t.jsx("span",{className:"font-medium text-sm truncate",children:s.name}),e[1]=s.name,e[2]=c):c=e[2];let o;e[3]!==s.credentialType||e[4]!==l?(o=s.credentialType==="sts-session"?t.jsx(R,{variant:"muted",size:"sm",children:"STS"}):s.credentialType==="managed"?t.jsx(R,{variant:"muted",size:"sm",children:l("settings.buckets.managed")}):null,e[3]=s.credentialType,e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s.bucket||e[7]!==s.region?(d=t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:[s.bucket," · ",s.region]}),e[6]=s.bucket,e[7]=s.region,e[8]=d):d=e[8];let a;e[9]!==c||e[10]!==o||e[11]!==d?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[c,o,d]}),e[9]=c,e[10]=o,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==s.description?(u=s.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:s.description}):null,e[13]=s.description,e[14]=u):u=e[14];let x;e[15]!==s.endpoint||e[16]!==s.forcePathStyle||e[17]!==l?(x=s.endpoint?t.jsxs("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:[s.endpoint,s.forcePathStyle?` (${l("settings.buckets.pathStyle")})`:""]}):null,e[15]=s.endpoint,e[16]=s.forcePathStyle,e[17]=l,e[18]=x):x=e[18];let v;e[19]!==s.prefix||e[20]!==l?(v=s.prefix?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.prefix",{prefix:s.prefix})}):null,e[19]=s.prefix,e[20]=l,e[21]=v):v=e[21];let p;e[22]!==s.publicUrlBase||e[23]!==l?(p=s.publicUrlBase?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.public",{url:s.publicUrlBase})}):null,e[22]=s.publicUrlBase,e[23]=l,e[24]=p):p=e[24];let h;e[25]!==a||e[26]!==u||e[27]!==x||e[28]!==v||e[29]!==p?(h=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[r,t.jsxs("div",{className:"min-w-0",children:[a,u,x,v,p]})]}),e[25]=a,e[26]=u,e[27]=x,e[28]=v,e[29]=p,e[30]=h):h=e[30];let b;e[31]!==s.createdAt?(b=new Date(s.createdAt).toLocaleDateString(),e[31]=s.createdAt,e[32]=b):b=e[32];let C;e[33]!==b?(C=t.jsx("span",{className:"text-xs text-muted-foreground",children:b}),e[33]=b,e[34]=C):C=e[34];let y;e[35]!==s||e[36]!==n?(y=()=>n(s),e[35]=s,e[36]=n,e[37]=y):y=e[37];let j;e[38]!==s.name||e[39]!==l?(j=l("settings.buckets.deleteButton",{name:s.name}),e[38]=s.name,e[39]=l,e[40]=j):j=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(me,{size:14}),e[41]=k):k=e[41];let f;e[42]!==y||e[43]!==j?(f=t.jsx(L,{variant:"ghost",size:"sm",onClick:y,"aria-label":j,children:k}),e[42]=y,e[43]=j,e[44]=f):f=e[44];let m;e[45]!==C||e[46]!==f?(m=t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C,f]}),e[45]=C,e[46]=f,e[47]=m):m=e[47];let N;return e[48]!==h||e[49]!==m?(N=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,m]}),e[48]=h,e[49]=m,e[50]=N):N=e[50],N}function Pe(i){const e=F.c(15),{onCreate:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(O,{}),e[0]=l):l=e[0];let r;e[1]!==n?(r=n("settings.buckets.noBucketsConfigured"),e[1]=n,e[2]=r):r=e[2];let c;e[3]!==n?(c=n("settings.buckets.emptyStateDescription"),e[3]=n,e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(V,{size:14}),e[5]=o):o=e[5];let d;e[6]!==n?(d=n("settings.buckets.addBucket"),e[6]=n,e[7]=d):d=e[7];let a;e[8]!==s||e[9]!==d?(a=t.jsxs(L,{onClick:s,size:"sm",children:[o,d]}),e[8]=s,e[9]=d,e[10]=a):a=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==a?(u=t.jsx(le,{children:t.jsx(ge,{size:"inline",icon:l,title:r,description:c,children:a})}),e[11]=r,e[12]=c,e[13]=a,e[14]=u):u=e[14],u}function I({open:i,onOpenChange:e}){const s=T(),[n,l]=S.useState(""),[r,c]=S.useState(""),[o,d]=S.useState(""),[a,u]=S.useState(""),[x,v]=S.useState(""),[p,h]=S.useState(!1),[b,C]=S.useState(""),[y,j]=S.useState(""),[k,f]=S.useState("static"),[m,N]=S.useState(""),[P,_]=S.useState(""),[w,A]=S.useState(""),[z,E]=S.useState(""),U=ve();function H(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const $=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function J(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!$)return;const M=k==="sts-session"?{credentialType:"sts-session",refreshUrl:w.trim(),apiKey:z.trim()}:{credentialType:"static",accessKeyId:m,secretAccessKey:P};try{await U.mutateAsync({name:n.trim(),description:r.trim()||void 0,bucket:o.trim(),region:a.trim(),endpoint:x.trim()||void 0,forcePathStyle:p,prefix:b.trim()||void 0,publicUrlBase:y.trim()||void 0,...M}),K.success(s("settings.buckets.bucketAdded",{name:n.trim()})),H(),e(!1)}catch(Q){K.error(Ne(Q,s("settings.buckets.failedToAddBucket")))}}const G=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(X,{open:i,onOpenChange:e,children:t.jsxs(Y,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Z,{children:[t.jsx(ee,{children:s("settings.buckets.addS3Bucket")}),t.jsx(te,{children:s("settings.buckets.credentialsEncryptedDescription")})]}),t.jsxs("form",{onSubmit:J,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{H(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:G,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(I,{open:n,onOpenChange:l})]}),i[1]=n,i[2]=m):m=i[2],m}let o;i[3]!==s.length||i[4]!==e?(o=e("settings.buckets.bucketsConfigured",{count:s.length}),i[3]=s.length,i[4]=e,i[5]=o):o=i[5];let d;i[6]!==o?(d=t.jsx("p",{className:"text-sm text-muted-foreground",children:o}),i[6]=o,i[7]=d):d=i[7];let a;i[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(!0),i[8]=a):a=i[8];let u;i[9]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(V,{size:14}),i[9]=u):u=i[9];let x;i[10]!==e?(x=e("settings.buckets.addBucket"),i[10]=e,i[11]=x):x=i[11];let v;i[12]!==x?(v=t.jsxs(L,{onClick:a,size:"sm",children:[u,x]}),i[12]=x,i[13]=v):v=i[13];let p;i[14]!==d||i[15]!==v?(p=t.jsxs("div",{className:"flex items-center justify-between",children:[d,v]}),i[14]=d,i[15]=v,i[16]=p):p=i[16];let h;if(i[17]!==s){let f;i[19]===Symbol.for("react.memo_cache_sentinel")?(f=m=>t.jsx(De,{config:m,onDelete:c},m.id),i[19]=f):f=i[19],h=s.map(f),i[17]=s,i[18]=h}else h=i[18];let b;i[20]!==h?(b=t.jsx("section",{className:"surface p-5",children:t.jsx("div",{children:h})}),i[20]=h,i[21]=b):b=i[21];let C;i[22]!==n?(C=t.jsx(I,{open:n,onOpenChange:l}),i[22]=n,i[23]=C):C=i[23];let y;i[24]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(null),i[24]=y):y=i[24];let j;i[25]!==r?(j=t.jsx(Fe,{config:r,onClose:y}),i[25]=r,i[26]=j):j=i[26];let k;return i[27]!==j||i[28]!==p||i[29]!==b||i[30]!==C?(k=t.jsxs(t.Fragment,{children:[p,b,C,j]}),i[27]=j,i[28]=p,i[29]=b,i[30]=C,i[31]=k):k=i[31],k}function _e(){const i=F.c(5),e=T();let s;i[0]!==e?(s=r=>{const{error:c}=r;return t.jsx(Be,{error:c??new Error(e("settings.buckets.failedToLoadConfigsFallback"))})},i[0]=e,i[1]=s):s=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Te,{}),i[2]=n):n=i[2];let l;return i[3]!==s?(l=t.jsx(W,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Qe(){const i=F.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Se,{capability:"file-configs:manage",area:"files",children:t.jsx(_e,{})}),i[0]=e):e=i[0],e}export{Qe as default};
1
+ import{c as F,b as T,j as t,i2 as W,r as S,B as L,D as X,v as Y,w as Z,x as ee,aT as te,I as D,y as se,b5 as ie,t as K,ay as O,gf as le,aH as ne,aI as re,aJ as ce,aK as ae,aL as oe,aM as de,aN as ue}from"./index-D9wygnbU.js";import{i as fe}from"./AlertCircle-D-4TK36c.js";import{s as V}from"./Plus-D2V2-fTF.js";import{s as me}from"./Trash01-Bu2u0WVA.js";import{B as R}from"./badge-BGmWPELn.js";import{E as ge}from"./empty-state-BmCMJHsS.js";import{L as B}from"./label-CzgbmbQw.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-C2TZ6w0T.js";import{S as je}from"./switch-B0tv99B3.js";import{T as ke}from"./textarea-DM0e8Qi7.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-CG-6B_hv.js";import{R as Se}from"./require-capability-BQcAZUwY.js";import"./index-BdQq_4o_.js";import"./index-3FmhyOXc.js";import"./ChevronUp-s7k4XU_p.js";import"./access-gate-CLxhnjg9.js";import"./capability-load-error-CmORVXZR.js";function Ne(i,e){if(!(i instanceof Error))return e;const s=i.message.match(/\[\s*\{[\s\S]*\}\s*\]/);if(s)try{const l=JSON.parse(s[0])[0];if(l?.message){const r=l.path?.join(".");return r?`${r}: ${l.message}`:l.message}}catch{}return i.message||e}function Be(i){const e=F.c(6),{error:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(fe,{size:16}),e[0]=l):l=e[0];let r;e[1]!==s.message||e[2]!==n?(r=n("settings.buckets.failedToLoadConfigs",{error:s.message}),e[1]=s.message,e[2]=n,e[3]=r):r=e[3];let c;return e[4]!==r?(c=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[l,t.jsx("span",{className:"text-sm font-medium",children:r})]}),e[4]=r,e[5]=c):c=e[5],c}function De(i){const e=F.c(51),{config:s,onDelete:n}=i,l=T();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(O,{size:16,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let c;e[1]!==s.name?(c=t.jsx("span",{className:"font-medium text-sm truncate",children:s.name}),e[1]=s.name,e[2]=c):c=e[2];let o;e[3]!==s.credentialType||e[4]!==l?(o=s.credentialType==="sts-session"?t.jsx(R,{variant:"muted",size:"sm",children:"STS"}):s.credentialType==="managed"?t.jsx(R,{variant:"muted",size:"sm",children:l("settings.buckets.managed")}):null,e[3]=s.credentialType,e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s.bucket||e[7]!==s.region?(d=t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:[s.bucket," · ",s.region]}),e[6]=s.bucket,e[7]=s.region,e[8]=d):d=e[8];let a;e[9]!==c||e[10]!==o||e[11]!==d?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[c,o,d]}),e[9]=c,e[10]=o,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==s.description?(u=s.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:s.description}):null,e[13]=s.description,e[14]=u):u=e[14];let x;e[15]!==s.endpoint||e[16]!==s.forcePathStyle||e[17]!==l?(x=s.endpoint?t.jsxs("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:[s.endpoint,s.forcePathStyle?` (${l("settings.buckets.pathStyle")})`:""]}):null,e[15]=s.endpoint,e[16]=s.forcePathStyle,e[17]=l,e[18]=x):x=e[18];let v;e[19]!==s.prefix||e[20]!==l?(v=s.prefix?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.prefix",{prefix:s.prefix})}):null,e[19]=s.prefix,e[20]=l,e[21]=v):v=e[21];let p;e[22]!==s.publicUrlBase||e[23]!==l?(p=s.publicUrlBase?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.public",{url:s.publicUrlBase})}):null,e[22]=s.publicUrlBase,e[23]=l,e[24]=p):p=e[24];let h;e[25]!==a||e[26]!==u||e[27]!==x||e[28]!==v||e[29]!==p?(h=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[r,t.jsxs("div",{className:"min-w-0",children:[a,u,x,v,p]})]}),e[25]=a,e[26]=u,e[27]=x,e[28]=v,e[29]=p,e[30]=h):h=e[30];let b;e[31]!==s.createdAt?(b=new Date(s.createdAt).toLocaleDateString(),e[31]=s.createdAt,e[32]=b):b=e[32];let C;e[33]!==b?(C=t.jsx("span",{className:"text-xs text-muted-foreground",children:b}),e[33]=b,e[34]=C):C=e[34];let y;e[35]!==s||e[36]!==n?(y=()=>n(s),e[35]=s,e[36]=n,e[37]=y):y=e[37];let j;e[38]!==s.name||e[39]!==l?(j=l("settings.buckets.deleteButton",{name:s.name}),e[38]=s.name,e[39]=l,e[40]=j):j=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(me,{size:14}),e[41]=k):k=e[41];let f;e[42]!==y||e[43]!==j?(f=t.jsx(L,{variant:"ghost",size:"sm",onClick:y,"aria-label":j,children:k}),e[42]=y,e[43]=j,e[44]=f):f=e[44];let m;e[45]!==C||e[46]!==f?(m=t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C,f]}),e[45]=C,e[46]=f,e[47]=m):m=e[47];let N;return e[48]!==h||e[49]!==m?(N=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,m]}),e[48]=h,e[49]=m,e[50]=N):N=e[50],N}function Pe(i){const e=F.c(15),{onCreate:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(O,{}),e[0]=l):l=e[0];let r;e[1]!==n?(r=n("settings.buckets.noBucketsConfigured"),e[1]=n,e[2]=r):r=e[2];let c;e[3]!==n?(c=n("settings.buckets.emptyStateDescription"),e[3]=n,e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(V,{size:14}),e[5]=o):o=e[5];let d;e[6]!==n?(d=n("settings.buckets.addBucket"),e[6]=n,e[7]=d):d=e[7];let a;e[8]!==s||e[9]!==d?(a=t.jsxs(L,{onClick:s,size:"sm",children:[o,d]}),e[8]=s,e[9]=d,e[10]=a):a=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==a?(u=t.jsx(le,{children:t.jsx(ge,{size:"inline",icon:l,title:r,description:c,children:a})}),e[11]=r,e[12]=c,e[13]=a,e[14]=u):u=e[14],u}function I({open:i,onOpenChange:e}){const s=T(),[n,l]=S.useState(""),[r,c]=S.useState(""),[o,d]=S.useState(""),[a,u]=S.useState(""),[x,v]=S.useState(""),[p,h]=S.useState(!1),[b,C]=S.useState(""),[y,j]=S.useState(""),[k,f]=S.useState("static"),[m,N]=S.useState(""),[P,_]=S.useState(""),[w,A]=S.useState(""),[z,E]=S.useState(""),U=ve();function H(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const $=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function J(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!$)return;const M=k==="sts-session"?{credentialType:"sts-session",refreshUrl:w.trim(),apiKey:z.trim()}:{credentialType:"static",accessKeyId:m,secretAccessKey:P};try{await U.mutateAsync({name:n.trim(),description:r.trim()||void 0,bucket:o.trim(),region:a.trim(),endpoint:x.trim()||void 0,forcePathStyle:p,prefix:b.trim()||void 0,publicUrlBase:y.trim()||void 0,...M}),K.success(s("settings.buckets.bucketAdded",{name:n.trim()})),H(),e(!1)}catch(Q){K.error(Ne(Q,s("settings.buckets.failedToAddBucket")))}}const G=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(X,{open:i,onOpenChange:e,children:t.jsxs(Y,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Z,{children:[t.jsx(ee,{children:s("settings.buckets.addS3Bucket")}),t.jsx(te,{children:s("settings.buckets.credentialsEncryptedDescription")})]}),t.jsxs("form",{onSubmit:J,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{H(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:G,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(I,{open:n,onOpenChange:l})]}),i[1]=n,i[2]=m):m=i[2],m}let o;i[3]!==s.length||i[4]!==e?(o=e("settings.buckets.bucketsConfigured",{count:s.length}),i[3]=s.length,i[4]=e,i[5]=o):o=i[5];let d;i[6]!==o?(d=t.jsx("p",{className:"text-sm text-muted-foreground",children:o}),i[6]=o,i[7]=d):d=i[7];let a;i[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(!0),i[8]=a):a=i[8];let u;i[9]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(V,{size:14}),i[9]=u):u=i[9];let x;i[10]!==e?(x=e("settings.buckets.addBucket"),i[10]=e,i[11]=x):x=i[11];let v;i[12]!==x?(v=t.jsxs(L,{onClick:a,size:"sm",children:[u,x]}),i[12]=x,i[13]=v):v=i[13];let p;i[14]!==d||i[15]!==v?(p=t.jsxs("div",{className:"flex items-center justify-between",children:[d,v]}),i[14]=d,i[15]=v,i[16]=p):p=i[16];let h;if(i[17]!==s){let f;i[19]===Symbol.for("react.memo_cache_sentinel")?(f=m=>t.jsx(De,{config:m,onDelete:c},m.id),i[19]=f):f=i[19],h=s.map(f),i[17]=s,i[18]=h}else h=i[18];let b;i[20]!==h?(b=t.jsx("section",{className:"surface p-5",children:t.jsx("div",{children:h})}),i[20]=h,i[21]=b):b=i[21];let C;i[22]!==n?(C=t.jsx(I,{open:n,onOpenChange:l}),i[22]=n,i[23]=C):C=i[23];let y;i[24]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(null),i[24]=y):y=i[24];let j;i[25]!==r?(j=t.jsx(Fe,{config:r,onClose:y}),i[25]=r,i[26]=j):j=i[26];let k;return i[27]!==j||i[28]!==p||i[29]!==b||i[30]!==C?(k=t.jsxs(t.Fragment,{children:[p,b,C,j]}),i[27]=j,i[28]=p,i[29]=b,i[30]=C,i[31]=k):k=i[31],k}function _e(){const i=F.c(5),e=T();let s;i[0]!==e?(s=r=>{const{error:c}=r;return t.jsx(Be,{error:c??new Error(e("settings.buckets.failedToLoadConfigsFallback"))})},i[0]=e,i[1]=s):s=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Te,{}),i[2]=n):n=i[2];let l;return i[3]!==s?(l=t.jsx(W,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Qe(){const i=F.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Se,{capability:"file-configs:manage",area:"files",children:t.jsx(_e,{})}),i[0]=e):e=i[0],e}export{Qe as default};
@@ -1,2 +1,2 @@
1
- import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-BqA84bKQ.js";function R(n){const e=k.c(9),f=$();let r;e[0]!==n?(r=T.user(n),e[0]=n,e[1]=r):r=e[1];let c;e[2]!==f||e[3]!==n?(c=async()=>{const{user:o}=await f.call("USER_GET",{id:n});return o},e[2]=f,e[3]=n,e[4]=c):c=e[4];const x=!!n;let t;return e[5]!==r||e[6]!==c||e[7]!==x?(t={queryKey:r,queryFn:c,staleTime:3e5,retry:1,enabled:x},e[5]=r,e[6]=c,e[7]=x,e[8]=t):t=e[8],S(t)}function q(n){const e=k.c(37),{id:f,size:r,showEmail:c,avatarOnly:x,className:t}=n,o=r===void 0?"xs":r,p=c===void 0?!1:c,d=x===void 0?!1:x,y=K(),{data:m,isLoading:w,isError:U}=R(f);if(w){let a;e[0]!==t?(a=b("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let i;e[2]!==o?(i=s.jsx(E.Skeleton,{shape:"circle",size:o}),e[2]=o,e[3]=i):i=e[3];let l;e[4]!==d||e[5]!==p?(l=!d&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),p&&s.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==i||e[9]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[7]=a,e[8]=i,e[9]=l,e[10]=u):u=e[10],u}if(U||!m){let a;e[11]!==t?(a=b("flex items-center gap-2",t),e[11]=t,e[12]=a):a=e[12];let i;e[13]!==o?(i=s.jsx(E,{shape:"circle",size:o,fallback:"?",muted:!0}),e[13]=o,e[14]=i):i=e[14];let l;e[15]!==d||e[16]!==y?(l=!d&&s.jsx("div",{className:"flex flex-col",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:y("user.user.unknownUser")})}),e[15]=d,e[16]=y,e[17]=l):l=e[17];let u;return e[18]!==a||e[19]!==i||e[20]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[18]=a,e[19]=i,e[20]=l,e[21]=u):u=e[21],u}let v;e[22]!==t?(v=b("flex items-center gap-2",t),e[22]=t,e[23]=v):v=e[23];const N=m.image??void 0;let h;e[24]!==o||e[25]!==N||e[26]!==m.name?(h=s.jsx(E,{shape:"circle",size:o,url:N,fallback:m.name}),e[24]=o,e[25]=N,e[26]=m.name,e[27]=h):h=e[27];let g;e[28]!==d||e[29]!==p||e[30]!==m.email||e[31]!==m.name?(g=!d&&s.jsxs("div",{className:"flex flex-col",children:[s.jsx("div",{className:"text-sm font-medium",children:m.name}),p&&s.jsx("div",{className:"text-xs text-muted-foreground",children:m.email})]}),e[28]=d,e[29]=p,e[30]=m.email,e[31]=m.name,e[32]=g):g=e[32];let j;return e[33]!==v||e[34]!==h||e[35]!==g?(j=s.jsxs("div",{className:v,children:[h,g]}),e[33]=v,e[34]=h,e[35]=g,e[36]=j):j=e[36],j}function z(n){const{managerAgentId:e,managerName:f,kind:r,id:c,instructions:x}=n,t=` to improve the instructions of ${r} "${c}". Here are its current instructions.
1
+ import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-D9wygnbU.js";function R(n){const e=k.c(9),f=$();let r;e[0]!==n?(r=T.user(n),e[0]=n,e[1]=r):r=e[1];let c;e[2]!==f||e[3]!==n?(c=async()=>{const{user:o}=await f.call("USER_GET",{id:n});return o},e[2]=f,e[3]=n,e[4]=c):c=e[4];const x=!!n;let t;return e[5]!==r||e[6]!==c||e[7]!==x?(t={queryKey:r,queryFn:c,staleTime:3e5,retry:1,enabled:x},e[5]=r,e[6]=c,e[7]=x,e[8]=t):t=e[8],S(t)}function q(n){const e=k.c(37),{id:f,size:r,showEmail:c,avatarOnly:x,className:t}=n,o=r===void 0?"xs":r,p=c===void 0?!1:c,d=x===void 0?!1:x,y=K(),{data:m,isLoading:w,isError:U}=R(f);if(w){let a;e[0]!==t?(a=b("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let i;e[2]!==o?(i=s.jsx(E.Skeleton,{shape:"circle",size:o}),e[2]=o,e[3]=i):i=e[3];let l;e[4]!==d||e[5]!==p?(l=!d&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),p&&s.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==i||e[9]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[7]=a,e[8]=i,e[9]=l,e[10]=u):u=e[10],u}if(U||!m){let a;e[11]!==t?(a=b("flex items-center gap-2",t),e[11]=t,e[12]=a):a=e[12];let i;e[13]!==o?(i=s.jsx(E,{shape:"circle",size:o,fallback:"?",muted:!0}),e[13]=o,e[14]=i):i=e[14];let l;e[15]!==d||e[16]!==y?(l=!d&&s.jsx("div",{className:"flex flex-col",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:y("user.user.unknownUser")})}),e[15]=d,e[16]=y,e[17]=l):l=e[17];let u;return e[18]!==a||e[19]!==i||e[20]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[18]=a,e[19]=i,e[20]=l,e[21]=u):u=e[21],u}let v;e[22]!==t?(v=b("flex items-center gap-2",t),e[22]=t,e[23]=v):v=e[23];const N=m.image??void 0;let h;e[24]!==o||e[25]!==N||e[26]!==m.name?(h=s.jsx(E,{shape:"circle",size:o,url:N,fallback:m.name}),e[24]=o,e[25]=N,e[26]=m.name,e[27]=h):h=e[27];let g;e[28]!==d||e[29]!==p||e[30]!==m.email||e[31]!==m.name?(g=!d&&s.jsxs("div",{className:"flex flex-col",children:[s.jsx("div",{className:"text-sm font-medium",children:m.name}),p&&s.jsx("div",{className:"text-xs text-muted-foreground",children:m.email})]}),e[28]=d,e[29]=p,e[30]=m.email,e[31]=m.name,e[32]=g):g=e[32];let j;return e[33]!==v||e[34]!==h||e[35]!==g?(j=s.jsxs("div",{className:v,children:[h,g]}),e[33]=v,e[34]=h,e[35]=g,e[36]=j):j=e[36],j}function z(n){const{managerAgentId:e,managerName:f,kind:r,id:c,instructions:x}=n,t=` to improve the instructions of ${r} "${c}". Here are its current instructions.
2
2
  <current_instructions>${x}</current_instructions>`;return{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Use "},{type:"mention",attrs:{id:e,name:f,char:"@",metadata:{agentId:e,title:f}}},{type:"text",text:t}]}]}}export{q as U,z as b};