decocms 4.568.1 → 4.568.2

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 (395) hide show
  1. package/dist/client/assets/{AlertCircle-2S4m6Uee.js → AlertCircle-C8Ovs13g.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DzDvwx79.js → AreaChart-BPZ71FQT.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CljOyrIP.js → ArrowLeft-BevitLPy.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Bk8mxo48.js → ArrowUp-LKVB7Ud3.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-DEGLB-d5.js → CartesianChart-BKvZsEJJ.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-BulNcxIZ.js → CategoricalChart-BAz9vqhr.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-f2YXXhCp.js → CheckCircle-6PthhUL2.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-DlyDkNpb.js → ChevronSelectorVertical-DPCJGeHn.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BQPjne-n.js → ChevronUp-CpgR3_nb.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-B4eSBulM.js → CreditCard01-C2oB4pfr.js} +1 -1
  11. package/dist/client/assets/{Globe04-CdD9x2xM.js → Globe04-BhKEHcph.js} +1 -1
  12. package/dist/client/assets/{Key01-DtPiSC33.js → Key01-BSJHIVa1.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-CctT2suC.js → LinkBroken01-BBFDlqgt.js} +1 -1
  14. package/dist/client/assets/{Minus-xsukVIT2.js → Minus-CVdaI4Fm.js} +1 -1
  15. package/dist/client/assets/{Monitor01-DiSF-kjz.js → Monitor01-Cuob4vSq.js} +1 -1
  16. package/dist/client/assets/{Play-ChTUD8rH.js → Play-Da9nWpcs.js} +1 -1
  17. package/dist/client/assets/{Plus-CFb7oJrI.js → Plus-_9GNTGSE.js} +1 -1
  18. package/dist/client/assets/ReferenceLine-DsOcULXV.js +1 -0
  19. package/dist/client/assets/{SearchMd-DBFjE3ta.js → SearchMd-CW3ppy8-.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-Ce0oZ7tq.js → ShoppingBag01-B5QyiZLr.js} +1 -1
  21. package/dist/client/assets/{Sun-CNo1YpD-.js → Sun-BDkIkIw6.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-sZUZBsf0.js → SwitchHorizontal01-Mkrao4SC.js} +1 -1
  23. package/dist/client/assets/{Tool01-CEctUV2j.js → Tool01-B3AGNBtQ.js} +1 -1
  24. package/dist/client/assets/{Tooltip-Dw-CUg_6.js → Tooltip-VyzG-XyD.js} +1 -1
  25. package/dist/client/assets/{Trash01-D1V404v-.js → Trash01-BMv3ZifH.js} +1 -1
  26. package/dist/client/assets/{Upload01-c3loaqre.js → Upload01-C0aUrRmk.js} +1 -1
  27. package/dist/client/assets/{UserSquare-D1FSX2q6.js → UserSquare-Vj3086v1.js} +1 -1
  28. package/dist/client/assets/{Users01-DZ_8WK0j.js → Users01-B9jA9cs-.js} +1 -1
  29. package/dist/client/assets/{XClose-CUWsLE89.js → XClose-BIHWtUjo.js} +1 -1
  30. package/dist/client/assets/{Zap-D4Hgh2tO.js → Zap-TomaYxmL.js} +1 -1
  31. package/dist/client/assets/{access-gate-DlxNXK1w.js → access-gate-Kza0R1uM.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-CgKOW9SX.js → add-connection-dialog-P67nq7X-.js} +1 -1
  33. package/dist/client/assets/agent-app-Da9CCDUf.js +1 -0
  34. package/dist/client/assets/{agent-assets-Ce1P8u97.js → agent-assets-DtbqMuB9.js} +1 -1
  35. package/dist/client/assets/{agent-automation-BRp-dxYO.js → agent-automation-DAvuTlAb.js} +1 -1
  36. package/dist/client/assets/{agent-automations-DH6-Bwa9.js → agent-automations-NySBiOWw.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-CsyPj6t3.js → agent-calendar-CH42INb4.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-XEaBuaCG.js → agent-capabilities-W9vBXHXR.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-DmdlUmUE.js → agent-connect-sources-DhfPL4pD.js} +1 -1
  40. package/dist/client/assets/agent-deck-BAqsiSU8.js +1 -0
  41. package/dist/client/assets/{agent-e2e-Dl84TG-q.js → agent-e2e-BU2QcQtT.js} +1 -1
  42. package/dist/client/assets/agent-experiments-D_FXRK8m.js +1 -0
  43. package/dist/client/assets/{agent-file-BJlF5HM_.js → agent-file-3PXh2x7T.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-RUQdsE0U.js → agent-hosting-DP-fQO-C.js} +1 -1
  45. package/dist/client/assets/{agent-icon-DCW_KqWB.js → agent-icon-CqeITJaa.js} +1 -1
  46. package/dist/client/assets/agent-library-file-CClO1HJb.js +1 -0
  47. package/dist/client/assets/agent-library-jdBUMrX4.js +1 -0
  48. package/dist/client/assets/agent-overview-CozHgqWw.js +1 -0
  49. package/dist/client/assets/{agent-releases-DrG4uQ2L.js → agent-releases-BUU1ZC1p.js} +1 -1
  50. package/dist/client/assets/agent-settings-DFWwpeNN.js +1 -0
  51. package/dist/client/assets/agent-site-editor-code-Y9S3Tflm.js +2 -0
  52. package/dist/client/assets/agent-site-editor-content-DQIMpOhN.js +1 -0
  53. package/dist/client/assets/{agent-site-editor-BWGxnBFw.js → agent-site-editor-mLmsToBw.js} +1 -1
  54. package/dist/client/assets/agent-site-editor-preview-Cmd7Qr1A.js +1 -0
  55. package/dist/client/assets/agent-view-CECuI8u1.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-B51lKDrE.js → agent-view-guard-CEF0TLXe.js} +1 -1
  57. package/dist/client/assets/{ai-providers-DesoVO6n.js → ai-providers-Bk0b8lBS.js} +1 -1
  58. package/dist/client/assets/{alert-CNUnViSc.js → alert-DVyXeSP0.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-DZ6bSrej.js → analytics-sections-HglAPM52.js} +1 -1
  60. package/dist/client/assets/{api-keys-DMJ1ggJe.js → api-keys-CPcOhmA3.js} +1 -1
  61. package/dist/client/assets/api-keys-CeUptd-H.js +1 -0
  62. package/dist/client/assets/{app-editor-CYKwEWzW.js → app-editor-BuVYUcC0.js} +1 -1
  63. package/dist/client/assets/{asset-utils-csHzYcpa.js → asset-utils-B_PFTFoC.js} +1 -1
  64. package/dist/client/assets/{auth-B2w9HRxQ.js → auth-DmpUBIs7.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-B3ScoKqp.js → auth-catchall-CFzPqvha.js} +1 -1
  66. package/dist/client/assets/{auth-entry-ffUGVaD5.js → auth-entry-wXfEcyl9.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-cxR5U8N-.js → auth-split-layout-BjY-DDgX.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-CJC-QeJ8.js → authenticate-and-persist-oauth-DaaDxUin.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-6cISNX0K.js → automation-list-row-DXb5up2E.js} +1 -1
  70. package/dist/client/assets/{automation-runs-vjsNSmlS.js → automation-runs-BAUKeHIB.js} +1 -1
  71. package/dist/client/assets/automations-BvaZrGnV.js +1 -0
  72. package/dist/client/assets/{autosend-tnLQ3hUB.js → autosend-BVZJx1Ct.js} +1 -1
  73. package/dist/client/assets/{badge-Ksu8KJbs.js → badge-DzMp3mdM.js} +1 -1
  74. package/dist/client/assets/{block-document-BcO7ziS9.js → block-document-bjE6-3hu.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-BCVvfbLh.js → blocks-preview-workspace-context-BL9PsmSD.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-DA0koo91.js → blocks-tab-states-ifXBK4F2.js} +1 -1
  77. package/dist/client/assets/{blog-schema-ChjeQAln.js → blog-schema-rddaOm3X.js} +1 -1
  78. package/dist/client/assets/{buckets-Bv0Gqv_3.js → buckets-BzOMugSD.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-JnzVJ3fg.js → build-improve-prompt-doc-BYoR7ku5.js} +1 -1
  80. package/dist/client/assets/{calendar-CNFfehjI.js → calendar-BJC2oYOH.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-C3U-ZhDb.js → capability-load-error-N3peg2W6.js} +1 -1
  82. package/dist/client/assets/{category-editor-GEMaUqfv.js → category-editor-11ETFMeQ.js} +1 -1
  83. package/dist/client/assets/{chart-BEnYUkVg.js → chart-BaW3HlzU.js} +1 -1
  84. package/dist/client/assets/{chat-context-B1zyw_h1.js → chat-context-Bc7GhR8U.js} +1 -1
  85. package/dist/client/assets/{chat-draft-DRes0F_S.js → chat-draft-CnT-R9KP.js} +1 -1
  86. package/dist/client/assets/{checkbox-tAVwTDof.js → checkbox-Djgrt1vS.js} +1 -1
  87. package/dist/client/assets/{choose-editor-DlLnUDKe.js → choose-editor-BY15-a1C.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-CwqWdQXx.js → cli-auth-success-Wkek8Nxt.js} +1 -1
  89. package/dist/client/assets/{client-icons-o-FN7f8P.js → client-icons-DUqNvNJS.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-Ca3p-t4F.js → cms-settings-editor-CMQtdcSG.js} +1 -1
  91. package/dist/client/assets/cms-store-drafts-BakCAk7K.js +1 -0
  92. package/dist/client/assets/{collapsible-5yAdMS_P.js → collapsible-Cu2ykx45.js} +1 -1
  93. package/dist/client/assets/{collection-detail-CVpfPE8q.js → collection-detail-CnJWnmsp.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-qWeIMlr2.js → collection-display-button-NSxOZ5TH.js} +1 -1
  95. package/dist/client/assets/{collection-search-9RSy1xeA.js → collection-search-ClV5mqoe.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-C_YIQpgC.js → collection-table-wrapper-Dh8uL3pb.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-Bnk-eCpC.js → collection-tabs-T0QGfCDZ.js} +1 -1
  98. package/dist/client/assets/{combobox-r5XUdipE.js → combobox-Cx-C-l4z.js} +1 -1
  99. package/dist/client/assets/{command-xe4xl69E.js → command-DgSBNjBh.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-DzyY7ngn.js → companion-mcps-section-zXENoXl8.js} +1 -1
  101. package/dist/client/assets/{config-DpPtGg1B.js → config-1zqgWIk2.js} +1 -1
  102. package/dist/client/assets/{connect-BpD7GFw-.js → connect-DrCZmYlD.js} +3 -3
  103. package/dist/client/assets/{connect-layout-DidM4s1D.js → connect-layout-DQ4O9ewt.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-CVMKd01i.js → connect-source-dialog-BFfL8MZO.js} +1 -1
  105. package/dist/client/assets/{connection-BG0LCkS_.js → connection-DHqLhyYm.js} +1 -1
  106. package/dist/client/assets/{connection-card-CC-UP_Iv.js → connection-card-yh4MTPg_.js} +1 -1
  107. package/dist/client/assets/{connection-detail-DQS-1IZw.js → connection-detail-CLMyx8eY.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-DwaYI15n.js → connection-form-helpers-Bp0P0TC9.js} +1 -1
  109. package/dist/client/assets/{connection-slug-BAlEhVgz.js → connection-slug-nir9u1BL.js} +1 -1
  110. package/dist/client/assets/{connections-jotualBC.js → connections-DvAElJBj.js} +1 -1
  111. package/dist/client/assets/{content-tab-C72v9K4t.js → content-tab-ClOEdPwZ.js} +3 -3
  112. package/dist/client/assets/{context-BKrbirxJ.js → context-Duc_mQnE.js} +1 -1
  113. package/dist/client/assets/{context-menu-BXrkB7rz.js → context-menu-Cxk9gBC0.js} +1 -1
  114. package/dist/client/assets/{context-shell-DojPqPCt.js → context-shell-DUWqXQZN.js} +3 -3
  115. package/dist/client/assets/{core.esm-BOqq6di7.js → core.esm-DAx4DJuz.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-D2ePlI_m.js → create-organization-dialog-BjqA3lpc.js} +1 -1
  117. package/dist/client/assets/{device-hint-nQyGyXyE.js → device-hint-DPZT-Xea.js} +1 -1
  118. package/dist/client/assets/{discover-URIcA-sL.js → discover-BY4Mr8uM.js} +1 -1
  119. package/dist/client/assets/{domain-settings-BmNyQb_H.js → domain-settings-CbT821rp.js} +1 -1
  120. package/dist/client/assets/{drawer-BXpgrjgO.js → drawer-BFx-bd_L.js} +1 -1
  121. package/dist/client/assets/{editor-BNio8R7L.js → editor-C09OhWY7.js} +1 -1
  122. package/dist/client/assets/{editor-classes-D_gybp_M.js → editor-classes-CBvy4Zr6.js} +1 -1
  123. package/dist/client/assets/{empty-state-KdDqwAjO.js → empty-state-DUTglEtg.js} +1 -1
  124. package/dist/client/assets/{empty-state-D1kuCCvh.js → empty-state-UqiTRa_b.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-Dasf4HtL.js → experiments-tab-choice-DVTcfAT7.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-ByBB6fTN.js → extract-connection-data-Dc6vmoBL.js} +1 -1
  127. package/dist/client/assets/{feature-gate-N64tj0DX.js → feature-gate-DIvD2qXm.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-C6hwn5S0.js → feature-paywall-Ds90JgjK.js} +1 -1
  129. package/dist/client/assets/{feedback-Bn9737Cr.js → feedback-JjHaNOsE.js} +1 -1
  130. package/dist/client/assets/{file-explorer-C3LrfGir.js → file-explorer-CluRXZ37.js} +1 -1
  131. package/dist/client/assets/{file-preview-DhfzScDD.js → file-preview-D8Si3yqg.js} +1 -1
  132. package/dist/client/assets/{file-share-button-IDXjXg-A.js → file-share-button-BMnJAgQ5.js} +1 -1
  133. package/dist/client/assets/{file-type-icon-jrw7H8zE.js → file-type-icon-CNSXAyFe.js} +1 -1
  134. package/dist/client/assets/{folder-icon-DUOwLJoM.js → folder-icon-C89oXJaH.js} +1 -1
  135. package/dist/client/assets/{form-iPBnt3oj.js → form-DpIMBI8y.js} +1 -1
  136. package/dist/client/assets/{general-B4zzx7IE.js → general-DHFARAaC.js} +1 -1
  137. package/dist/client/assets/{github-icon-B3lAwfsm.js → github-icon-DewiI3zK.js} +1 -1
  138. package/dist/client/assets/{home-B9w8E6oP.js → home-DUBEI8qS.js} +1 -1
  139. package/dist/client/assets/{home-overview-D7ApqTOh.js → home-overview-BoEkJpNz.js} +1 -1
  140. package/dist/client/assets/{hosted-reconcile-BhSM-qbd.js → hosted-reconcile-97iAdZVR.js} +1 -1
  141. package/dist/client/assets/{icon-button-qr7hW5Fe.js → icon-button-BfxFpZIz.js} +1 -1
  142. package/dist/client/assets/{index-BQIeGgfw.js → index-7uos3LCQ.js} +1 -1
  143. package/dist/client/assets/{index-BkV0ePYZ.js → index-B64fyQ1o.js} +1 -1
  144. package/dist/client/assets/{index-BlGy9Bb5.js → index-BA4wFQV0.js} +1 -1
  145. package/dist/client/assets/{index-B6uyloRF.js → index-BIHeqmlu.js} +1 -1
  146. package/dist/client/assets/{index-BFEychws.js → index-BLlatKRp.js} +1 -1
  147. package/dist/client/assets/{index-BdDgw28T.js → index-BqI8ssrO.js} +1 -1
  148. package/dist/client/assets/{index-BM6V4GkN.js → index-Bv7_FvT_.js} +1 -1
  149. package/dist/client/assets/{index-D43W3NwR.js → index-CYEUdIaI.js} +1 -1
  150. package/dist/client/assets/{index-b28YA5pM.js → index-D3yQzMmD.js} +1 -1
  151. package/dist/client/assets/{index-Bs4HBbkZ.js → index-DYz5vKDK.js} +1 -1
  152. package/dist/client/assets/{index-CS1qwofw.js → index-DnPa3j4q.js} +1 -1
  153. package/dist/client/assets/{index-ThHlPkA1.js → index-YAbWBpI2.js} +4 -4
  154. package/dist/client/assets/{index-8vlZdtjm.js → index-_xfuQegh.js} +1 -1
  155. package/dist/client/assets/{index-CkUeEi5S.js → index-cBEKd_zd.js} +1 -1
  156. package/dist/client/assets/{index-gIaywX47.js → index-ooZoGt7g.js} +1 -1
  157. package/dist/client/assets/{index-redirect-DN8vGzbZ.js → index-redirect-o6Cxf_-C.js} +1 -1
  158. package/dist/client/assets/{index-Zhz3FEfg.js → index-sUdqwSqQ.js} +1 -1
  159. package/dist/client/assets/{infiniteQueryObserver-DO5Ifm28.js → infiniteQueryObserver-BetHfx9E.js} +1 -1
  160. package/dist/client/assets/{infra-billing-CEMSfDL_.js → infra-billing-C4-Upy26.js} +1 -1
  161. package/dist/client/assets/{input-Dv1RwHqe.js → input-BwL2yzTb.js} +3 -3
  162. package/dist/client/assets/{input-BSU_Rb1v.js → input-DD9yaa2N.js} +1 -1
  163. package/dist/client/assets/{integration-icon-Cm0oa98P.js → integration-icon-BJPq2ynB.js} +1 -1
  164. package/dist/client/assets/{jira-icon-ZW0Sv1e5.js → jira-icon-BJ1Yqfz3.js} +1 -1
  165. package/dist/client/assets/{label-BRcQIH7Z.js → label-ERMWTDM1.js} +1 -1
  166. package/dist/client/assets/{layout-Bys7Eped.js → layout-Clyb314Q.js} +1 -1
  167. package/dist/client/assets/{legacy-agents-deep-CpsXYlRM.js → legacy-agents-deep-DXqg162W.js} +1 -1
  168. package/dist/client/assets/{legacy-main-redirect-r6B1R3al.js → legacy-main-redirect-DnsMd1-f.js} +1 -1
  169. package/dist/client/assets/library-D5ziXpSY.js +1 -0
  170. package/dist/client/assets/{library-tab-SsaPyFyy.js → library-tab-B4AZKZNW.js} +1 -1
  171. package/dist/client/assets/{login-Dk7eEOiP.js → login-DoyIZZDV.js} +1 -1
  172. package/dist/client/assets/{markdown-DJi-9CBK.js → markdown-XW6Y_EoI.js} +1 -1
  173. package/dist/client/assets/{mcp-app-renderer-CckffJyx.js → mcp-app-renderer-DL7gNCl6.js} +1 -1
  174. package/dist/client/assets/{mcp-oauth-DKJ4B9sm.js → mcp-oauth-PRMkVXh1.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-Cug27Wy_.js → mcp-oauth-rHESfw1u.js} +1 -1
  176. package/dist/client/assets/{members-COCISWR-.js → members-DBffdKOk.js} +1 -1
  177. package/dist/client/assets/{memory-CjdJ31Mj.js → memory-DTe7ai10.js} +1 -1
  178. package/dist/client/assets/{mock-board-Cwj6vTmL.js → mock-board-Dcrv6S29.js} +3 -3
  179. package/dist/client/assets/{monaco-editor-D-tIIKfx.js → monaco-editor-Bomp4HmR.js} +1 -1
  180. package/dist/client/assets/{monitoring-C8zAkl9o.js → monitoring-CKTJkohg.js} +1 -1
  181. package/dist/client/assets/{monitoring-stats-row-HLfK5nXn.js → monitoring-stats-row-BVMN-DLg.js} +1 -1
  182. package/dist/client/assets/{multi-select-Dmw2FHdE.js → multi-select-D9N-nXLY.js} +1 -1
  183. package/dist/client/assets/{mustache-C_dugd4c.js → mustache-eb_Bg87y.js} +1 -1
  184. package/dist/client/assets/{named-rule-view-B2Cmocns.js → named-rule-view-zp9L0ztj.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-NNiGQZ9q.js → new-project-dialog-CxL0mjQ3.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-DiSnZu8_.js → oauth-callback-BXFUoube.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-C0PCpWFG.js → oauth-callback-ai-provider-C-SfsQUr.js} +1 -1
  188. package/dist/client/assets/{oauth-consent-DSznDB5g.js → oauth-consent-hR2Ry0UE.js} +1 -1
  189. package/dist/client/assets/{onboarding-BVi3tEPn.js → onboarding-IOMBN2u3.js} +1 -1
  190. package/dist/client/assets/{openai-conversation-BFUVr9Gk.js → openai-conversation-U4xBjBfE.js} +1 -1
  191. package/dist/client/assets/{optimistic-project-sidebar-views-DTcSwY9T.js → optimistic-project-sidebar-views-DlG0FgvT.js} +1 -1
  192. package/dist/client/assets/{order-monitor-day-DJBGaIxr.js → order-monitor-day-DHO_k1R7.js} +1 -1
  193. package/dist/client/assets/{organization-choice-C-gzKMX0.js → organization-choice-SsLKJxTz.js} +1 -1
  194. package/dist/client/assets/{orgs-BIO2wd0h.js → orgs-CN24uHaU.js} +1 -1
  195. package/dist/client/assets/{own-accounts-section-DVG2PaGF.js → own-accounts-section-DiMchtro.js} +1 -1
  196. package/dist/client/assets/{pair-DsssEbw0.js → pair-BzX9EpMl.js} +1 -1
  197. package/dist/client/assets/{parse-sections-Du7KAexn.js → parse-sections-UGlsQq9_.js} +3 -3
  198. package/dist/client/assets/{plan-CvJcMsFW.js → plan-CwrMkHhz.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-BUzJX8lf.js → plan-ladder-BmHzS4XX.js} +1 -1
  200. package/dist/client/assets/{plan-usage-card-Cj34MSfd.js → plan-usage-card-BPrhaw5t.js} +2 -2
  201. package/dist/client/assets/{popover-BKyGlArJ.js → popover-eKoh4-Z1.js} +1 -1
  202. package/dist/client/assets/{post-calendar-C85ccmZv.js → post-calendar-5-RTMM86.js} +1 -1
  203. package/dist/client/assets/{post-editor-BILiJR0b.js → post-editor-bG2s_3vv.js} +1 -1
  204. package/dist/client/assets/{preview-content-DxU1lFaM.js → preview-content-B0_lha9p.js} +1 -1
  205. package/dist/client/assets/{preview-dialog-DUF3utt_.js → preview-dialog-Ci3FAVDm.js} +1 -1
  206. package/dist/client/assets/{preview-panel-CDP6cBjX.js → preview-panel-BuqHC95v.js} +1 -1
  207. package/dist/client/assets/{preview-tab-D0WJzTBj.js → preview-tab-ChwoL7Do.js} +3 -3
  208. package/dist/client/assets/{product-picker-dialog-BlOnxTDw.js → product-picker-dialog-DkygTQUe.js} +1 -1
  209. package/dist/client/assets/{profile-BN8Spa_O.js → profile-GstFURmM.js} +1 -1
  210. package/dist/client/assets/project-app-view-BML0V8pu.js +1 -0
  211. package/dist/client/assets/{project-apps-DEEaqSDI.js → project-apps-BFVy6oqU.js} +1 -1
  212. package/dist/client/assets/{project-icon-CwIKfNXv.js → project-icon-DRALSoCE.js} +1 -1
  213. package/dist/client/assets/{project-index-ykrov_ra.js → project-index-0ZlMTyxM.js} +1 -1
  214. package/dist/client/assets/project-reports-Db25ahlS.js +1 -0
  215. package/dist/client/assets/{project-sidebar-views-fTZB7Z_k.js → project-sidebar-views-IsAuRqFR.js} +1 -1
  216. package/dist/client/assets/project-tasks-8KIU2G_G.js +1 -0
  217. package/dist/client/assets/{projects-CVzMOpxL.js → projects-Cwfayn5A.js} +1 -1
  218. package/dist/client/assets/{projects-empty-state-6Kka4G3W.js → projects-empty-state-BLo1oUuy.js} +1 -1
  219. package/dist/client/assets/{prompts-CVdkm21t.js → prompts-geIlmCw0.js} +1 -1
  220. package/dist/client/assets/record-editor-B_4KV28Z.js +1 -0
  221. package/dist/client/assets/{redirect-editor-B-nqVvUE.js → redirect-editor-CZ8Jt6Rk.js} +1 -1
  222. package/dist/client/assets/reports-BCF6hR_E.js +1 -0
  223. package/dist/client/assets/{reports-_wFENoO-.js → reports-SAO6FB-Y.js} +1 -1
  224. package/dist/client/assets/{reports-onboarding-BN9xyNeS.js → reports-onboarding-8dWVmpHn.js} +1 -1
  225. package/dist/client/assets/{reports-tab-Ca8ZNDWh.js → reports-tab-ICX3CL8K.js} +2 -2
  226. package/dist/client/assets/{repositories-BRLQ6722.js → repositories-CEe5dTCI.js} +1 -1
  227. package/dist/client/assets/repositories-CaGUOsCY.js +1 -0
  228. package/dist/client/assets/{repository-binding-kEo67YAA.js → repository-binding-BEFtyvwg.js} +1 -1
  229. package/dist/client/assets/{repository-picker-DtUL_pmI.js → repository-picker-dYbX0JPX.js} +1 -1
  230. package/dist/client/assets/{require-capability-Zb9L0UB5.js → require-capability-C_BedkF8.js} +1 -1
  231. package/dist/client/assets/{required-auth-layout-a7ktq9mi.js → required-auth-layout-B2yDP8xU.js} +1 -1
  232. package/dist/client/assets/{reset-password-DRN2uuu1.js → reset-password-HMJAQkaR.js} +1 -1
  233. package/dist/client/assets/{resizable-K-LVkIyE.js → resizable-CXcYWQyr.js} +1 -1
  234. package/dist/client/assets/{resolve-tab-icon-CoWGlUuO.js → resolve-tab-icon-CSavMQhX.js} +1 -1
  235. package/dist/client/assets/{review-settings-Ddi1WLdb.js → review-settings-HR5AJuT5.js} +1 -1
  236. package/dist/client/assets/{role-color-BctdkWBx.js → role-color-XqQUBPY2.js} +1 -1
  237. package/dist/client/assets/{roles-DrAmbc9_.js → roles-WFtvt_td.js} +1 -1
  238. package/dist/client/assets/{route-BKCGrPKZ.js → route-BeJKDC7d.js} +1 -1
  239. package/dist/client/assets/{route-CrqRe4gQ.js → route-CUPbBKJB.js} +1 -1
  240. package/dist/client/assets/route-Dvj1xiWd.js +1 -0
  241. package/dist/client/assets/{sandbox-lifecycle-context-Dk4p8Va5.js → sandbox-lifecycle-context-CFqytSKR.js} +1 -1
  242. package/dist/client/assets/{schema-DI0DUCq8.js → schema-CU--MvCG.js} +1 -1
  243. package/dist/client/assets/{schema-iAJ4pGqb.js → schema-s_8X_Pq7.js} +1 -1
  244. package/dist/client/assets/{scroll-area-jaG-waNH.js → scroll-area-V--N6BXn.js} +1 -1
  245. package/dist/client/assets/{search-input-DotNkIYu.js → search-input-BQcAdCac.js} +1 -1
  246. package/dist/client/assets/{search-toggle-BEuCPCyS.js → search-toggle-BQnVnCJm.js} +1 -1
  247. package/dist/client/assets/{secret-picker-DD55lNbu.js → secret-picker-kAED7ZfH.js} +1 -1
  248. package/dist/client/assets/{secrets-CpTTyplo.js → secrets-CI8FkMIy.js} +1 -1
  249. package/dist/client/assets/{section-array-field-q3hyC_SJ.js → section-array-field-D45EV3Ua.js} +1 -1
  250. package/dist/client/assets/{sections-TT75Kv4G.js → sections-ChpddIHY.js} +1 -1
  251. package/dist/client/assets/{sections-editor-IZCF9AF5.js → sections-editor-DGs8wpRP.js} +1 -1
  252. package/dist/client/assets/{select-CCYd2TPQ.js → select-BkMg57qf.js} +1 -1
  253. package/dist/client/assets/{select-model-CKv54PS4.js → select-model-Dxh581PI.js} +1 -1
  254. package/dist/client/assets/{seo-editor-C0m4E77v.js → seo-editor-46VthC2w.js} +1 -1
  255. package/dist/client/assets/{separator-DeBRxF5d.js → separator-XP0nOrIu.js} +1 -1
  256. package/dist/client/assets/settings-tab-D_5Bm5aU.js +1 -0
  257. package/dist/client/assets/{sheet-BSgpG-DI.js → sheet-B4T7-RMg.js} +1 -1
  258. package/dist/client/assets/{shell-layout-BYhWS3vs.js → shell-layout-BejViDQa.js} +1 -1
  259. package/dist/client/assets/{site-draft-actions-C_Fp0n5R.js → site-draft-actions-QFmuYxUg.js} +1 -1
  260. package/dist/client/assets/{site-draft-view-apRQq9-Y.js → site-draft-view-ffleha4j.js} +1 -1
  261. package/dist/client/assets/site-editor-By5ShAZu.js +1 -0
  262. package/dist/client/assets/site-editor-toast-B1S7n1Id.js +1 -0
  263. package/dist/client/assets/{skills-Cf6NSvOp.js → skills-BIRzMqs8.js} +1 -1
  264. package/dist/client/assets/{slider-DkWue6jL.js → slider-B7-Cm7k7.js} +1 -1
  265. package/dist/client/assets/{sortable.esm-B9jCn7Jf.js → sortable.esm-CW_p4INX.js} +1 -1
  266. package/dist/client/assets/{sso-CVKKJgrT.js → sso-BsU2HJVe.js} +1 -1
  267. package/dist/client/assets/{suggestion-BZ3yYe8g.js → suggestion-DbrJ_AD8.js} +1 -1
  268. package/dist/client/assets/{switch-CT_-wvDo.js → switch-B_lDpEA0.js} +1 -1
  269. package/dist/client/assets/{synced-repos-iMCXg49s.js → synced-repos-DCv_vlRR.js} +1 -1
  270. package/dist/client/assets/{tab-icon-glyph-C69zFBTl.js → tab-icon-glyph-6tkQpk4Q.js} +1 -1
  271. package/dist/client/assets/{table-B2yq1HU_.js → table-C6s_VKOi.js} +1 -1
  272. package/dist/client/assets/{tabs-tnJgzRLS.js → tabs-DlRJfLwT.js} +1 -1
  273. package/dist/client/assets/{task-board-DDcqJlpm.js → task-board-DUco_y7A.js} +1 -1
  274. package/dist/client/assets/{task-route-BCTxfyfM.js → task-route-CRs-eXmU.js} +1 -1
  275. package/dist/client/assets/{task-status-BEHN2G02.js → task-status-BOHpGrk3.js} +1 -1
  276. package/dist/client/assets/{taskboard-analytics-Buy1SOLE.js → taskboard-analytics-fFVrXogo.js} +1 -1
  277. package/dist/client/assets/tasks-B4qczLXa.js +1 -0
  278. package/dist/client/assets/{tasks-CE0DiwPA.js → tasks-SWTgaFVa.js} +1 -1
  279. package/dist/client/assets/{textarea-yOWP9JYC.js → textarea-OklqAHMd.js} +1 -1
  280. package/dist/client/assets/{thread-analytics-tbdaEPzR.js → thread-analytics-DTuM9ZEl.js} +1 -1
  281. package/dist/client/assets/{thread-intent-nQKoAtIt.js → thread-intent-C1wXk8R2.js} +1 -1
  282. package/dist/client/assets/{thread-route-D3RMPPhn.js → thread-route-DicZMCve.js} +1 -1
  283. package/dist/client/assets/{thread-route-CaTSdvjC.js → thread-route-LSwEDNk3.js} +1 -1
  284. package/dist/client/assets/{thread-sheet-body-DWlZ0AuE.js → thread-sheet-body-CEMon8kR.js} +1 -1
  285. package/dist/client/assets/{time-range-picker-DW4m3Fj7.js → time-range-picker-C6ZqhnIM.js} +1 -1
  286. package/dist/client/assets/{toggle-group-ChdMftEA.js → toggle-group-5MHxVWOz.js} +1 -1
  287. package/dist/client/assets/{tool-namespace-BZTsC2dJ.js → tool-namespace-Ceqr3QyQ.js} +1 -1
  288. package/dist/client/assets/{tool-set-selector-BQzr6TGk.js → tool-set-selector-DLUu043H.js} +1 -1
  289. package/dist/client/assets/{toolbar-icon-button-BX9f9dfy.js → toolbar-icon-button-DEBmHG_e.js} +1 -1
  290. package/dist/client/assets/{tooltip-DgFw0k5f.js → tooltip-DAuc-B32.js} +1 -1
  291. package/dist/client/assets/{tooltipContext-DWz55G6n.js → tooltipContext-1vhchD6-.js} +1 -1
  292. package/dist/client/assets/{track-vG379Xgy.js → track-YH0kfWd_.js} +1 -1
  293. package/dist/client/assets/{types-C4p5J4i3.js → types-DyZTbbkk.js} +1 -1
  294. package/dist/client/assets/{url-slug-Cn4QUCu9.js → url-slug-DIlgbobQ.js} +1 -1
  295. package/dist/client/assets/{usage-stats-QxuZaLxO.js → usage-stats-BebN-2hd.js} +1 -1
  296. package/dist/client/assets/{use-ai-providers-BlqN6sFc.js → use-ai-providers-DcAVgXsj.js} +1 -1
  297. package/dist/client/assets/{use-apply-named-rule-Dl2Ggjjn.js → use-apply-named-rule-B_Z446Ry.js} +1 -1
  298. package/dist/client/assets/use-ask-in-chat-Ta68GLzt.js +1 -0
  299. package/dist/client/assets/{use-automations-CU4k5FoP.js → use-automations-nJoSSUFU.js} +1 -1
  300. package/dist/client/assets/{use-autosave-AwrL44So.js → use-autosave-D5M1H1ld.js} +1 -1
  301. package/dist/client/assets/use-blocks-v8-project-DcWNpXou.js +1 -0
  302. package/dist/client/assets/{use-chat-layout-state-DL_MZ1dS.js → use-chat-layout-state-DlqdI6ik.js} +1 -1
  303. package/dist/client/assets/{use-cms-publish-actions-wj8dD2ct.js → use-cms-publish-actions-sdbq0KPV.js} +1 -1
  304. package/dist/client/assets/{use-connect-companion-DPKbGRzH.js → use-connect-companion-DXp8DxZm.js} +1 -1
  305. package/dist/client/assets/{use-connection-DPOM6dGj.js → use-connection-Dht5w7Xq.js} +1 -1
  306. package/dist/client/assets/{use-content-sync-DbirYUIB.js → use-content-sync-TbLiRz5C.js} +1 -1
  307. package/dist/client/assets/{use-copy-Bn2_BzAq.js → use-copy-D33RiL7q.js} +1 -1
  308. package/dist/client/assets/{use-date-fns-locale-C6ew7srm.js → use-date-fns-locale-BRlda5oW.js} +1 -1
  309. package/dist/client/assets/{use-debounced-autosave-CxdIMhCd.js → use-debounced-autosave-DE6eSc27.js} +1 -1
  310. package/dist/client/assets/{use-debounced-value-WdYCpwhX.js → use-debounced-value-CzIv9NaE.js} +1 -1
  311. package/dist/client/assets/{use-deco-credits-C82siBHu.js → use-deco-credits-BaQvGBEw.js} +1 -1
  312. package/dist/client/assets/{use-decopilot-events-BV_lXdgc.js → use-decopilot-events-DjIuYjOP.js} +1 -1
  313. package/dist/client/assets/{use-delete-connection-CXdEQvu3.js → use-delete-connection-aPrSXyAj.js} +1 -1
  314. package/dist/client/assets/{use-deployment-admin-DaUkmiAb.js → use-deployment-admin-CUut_j3Q.js} +1 -1
  315. package/dist/client/assets/{use-entitlements-D-Q_nl4X.js → use-entitlements-D3oGZGk4.js} +1 -1
  316. package/dist/client/assets/{use-fast-preview-draft-url-WItEabV5.js → use-fast-preview-draft-url-axvbwLaV.js} +1 -1
  317. package/dist/client/assets/{use-file-configs-Crafuymh.js → use-file-configs-5QRblAyS.js} +1 -1
  318. package/dist/client/assets/{use-id-selection-BIJ8AX1K.js → use-id-selection-BvQC2CH0.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-D-ssKZpB.js → use-inbox-feed-B_E5DqhG.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-fIo7cuNC.js → use-infinite-scroll-DUyqnU8Z.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-Cr7MSHze.js → use-join-requests-Dz7yS88x.js} +1 -1
  322. package/dist/client/assets/use-main-panel-tabs-ChV3O5om.js +1 -0
  323. package/dist/client/assets/{use-mcp-auth-status-B2DJG7bc.js → use-mcp-auth-status-BwIqp-AR.js} +1 -1
  324. package/dist/client/assets/{use-mcp-client-D5PLD4qt.js → use-mcp-client-Ce3gHVGN.js} +1 -1
  325. package/dist/client/assets/{use-mcp-prompts-D9F_AaJG.js → use-mcp-prompts-Dq9WwEe3.js} +1 -1
  326. package/dist/client/assets/{use-mcp-tools-BMLxikig.js → use-mcp-tools-DuEgTWI8.js} +1 -1
  327. package/dist/client/assets/{use-mobile-DRrjjVo-.js → use-mobile-CW1BshYp.js} +1 -1
  328. package/dist/client/assets/{use-move-blocks-DRRRafPk.js → use-move-blocks-B6bkFBMu.js} +1 -1
  329. package/dist/client/assets/{use-navigate-to-agent-rsGycZF7.js → use-navigate-to-agent-DEmRYJP2.js} +1 -1
  330. package/dist/client/assets/{use-org-fs-Dwn0EOt5.js → use-org-fs-Dj3nhg6p.js} +1 -1
  331. package/dist/client/assets/{use-org-repo-syncs-D8rrVqZZ.js → use-org-repo-syncs-BssG7LDG.js} +1 -1
  332. package/dist/client/assets/{use-org-sso-ChcM6ORm.js → use-org-sso-CPPSm2_k.js} +1 -1
  333. package/dist/client/assets/{use-organization-settings-DGtBK5Oe.js → use-organization-settings-Bxmr_gqX.js} +1 -1
  334. package/dist/client/assets/{use-project-scope-CiDCxjqm.js → use-project-scope-Cp4z8A1-.js} +1 -1
  335. package/dist/client/assets/{use-recent-apps-XmK10nlo.js → use-recent-apps-BZ6rxv5O.js} +1 -1
  336. package/dist/client/assets/use-reports-diagnostic-C7WA1MXv.js +1 -0
  337. package/dist/client/assets/{use-sandbox-events-Bq9A93g4.js → use-sandbox-events-D_ekj7qC.js} +1 -1
  338. package/dist/client/assets/{use-secrets-Dkprxq3w.js → use-secrets-CaIOigN4.js} +1 -1
  339. package/dist/client/assets/{use-section-preview-base-DM-846AX.js → use-section-preview-base-C1Vehe6q.js} +1 -1
  340. package/dist/client/assets/{use-sidebar-collapsed-ODbl6tJi.js → use-sidebar-collapsed-BzixWcm4.js} +1 -1
  341. package/dist/client/assets/{use-tags-C9uawszR.js → use-tags-CKT9rJaQ.js} +1 -1
  342. package/dist/client/assets/{use-task-board-analytics-923fGIFt.js → use-task-board-analytics-GfBHZgc-.js} +1 -1
  343. package/dist/client/assets/{use-task-board-events-8V_2rJ4q.js → use-task-board-events-B65L1qbJ.js} +1 -1
  344. package/dist/client/assets/{use-task-board-item-prs-7hUD8mce.js → use-task-board-item-prs-BVht1yZk.js} +1 -1
  345. package/dist/client/assets/{use-task-board-items-CJKrgsc2.js → use-task-board-items-D_dsOzO4.js} +1 -1
  346. package/dist/client/assets/{use-task-board-prompts-VxpkhWca.js → use-task-board-prompts-CNi_885P.js} +1 -1
  347. package/dist/client/assets/{use-task-metadata-DWgHyEF3.js → use-task-metadata-CVbCX8pH.js} +1 -1
  348. package/dist/client/assets/{use-thread-outputs-BwXyGaNo.js → use-thread-outputs-BgwiVnbA.js} +1 -1
  349. package/dist/client/assets/{use-voice-input-uD40DPmP.js → use-voice-input-qp904jOd.js} +1 -1
  350. package/dist/client/assets/useInfiniteQuery-CCCREFcj.js +1 -0
  351. package/dist/client/assets/{useQueries-BPVhq8ix.js → useQueries-_uQRl1Uh.js} +1 -1
  352. package/dist/client/assets/useSuspenseInfiniteQuery-CIdX85h2.js +1 -0
  353. package/dist/client/assets/{users-Chcd5Rxh.js → users-D-5oJ2Ks.js} +1 -1
  354. package/dist/client/assets/{utils-BIFmS1TT.js → utils-CWqleJYQ.js} +1 -1
  355. package/dist/client/assets/{variant-calendar-7ZR-M1ix.js → variant-calendar-WDduM77l.js} +1 -1
  356. package/dist/client/assets/{variant-matcher-override-LwZc-3hp.js → variant-matcher-override-Bb9J_WJV.js} +1 -1
  357. package/dist/client/assets/{view-header-BQHcyKnO.js → view-header-BdEbmY1e.js} +1 -1
  358. package/dist/client/assets/{virtual-mcp-U5XZzfSG.js → virtual-mcp-B5SyuXEj.js} +1 -1
  359. package/dist/client/assets/{watch-sse-pool-CMjB6F6-.js → watch-sse-pool-BQPiLe0y.js} +1 -1
  360. package/dist/client/index.html +1 -1
  361. package/dist/server/server.js +616 -616
  362. package/package.json +1 -1
  363. package/dist/client/assets/ReferenceLine-BWJSu1DO.js +0 -1
  364. package/dist/client/assets/agent-app-BgTND6J2.js +0 -1
  365. package/dist/client/assets/agent-deck-D4mWjyc2.js +0 -1
  366. package/dist/client/assets/agent-experiments-Cie0yKpB.js +0 -1
  367. package/dist/client/assets/agent-library-BGAtPAnF.js +0 -1
  368. package/dist/client/assets/agent-library-file-BiIBcHvG.js +0 -1
  369. package/dist/client/assets/agent-overview-CR-dCL6h.js +0 -1
  370. package/dist/client/assets/agent-settings-CfxZCODh.js +0 -1
  371. package/dist/client/assets/agent-site-editor-code-CkFLAR_7.js +0 -2
  372. package/dist/client/assets/agent-site-editor-content-B9iT0QSE.js +0 -1
  373. package/dist/client/assets/agent-site-editor-preview-CaYM7sgM.js +0 -1
  374. package/dist/client/assets/agent-view-Cd0hZBcv.js +0 -1
  375. package/dist/client/assets/api-keys-cBMCz_xx.js +0 -1
  376. package/dist/client/assets/automations-DvlDC4kP.js +0 -1
  377. package/dist/client/assets/cms-store-drafts-VJAKdhLe.js +0 -1
  378. package/dist/client/assets/library-BL7Y0RCS.js +0 -1
  379. package/dist/client/assets/project-app-view-CFbUaLRI.js +0 -1
  380. package/dist/client/assets/project-reports-dGxWnXSL.js +0 -1
  381. package/dist/client/assets/project-tasks-D9abvA2D.js +0 -1
  382. package/dist/client/assets/record-editor-Co1jxiVZ.js +0 -1
  383. package/dist/client/assets/reports-mX_6jbjb.js +0 -1
  384. package/dist/client/assets/repositories-BZes21ms.js +0 -1
  385. package/dist/client/assets/route-C7yj3pAQ.js +0 -1
  386. package/dist/client/assets/settings-tab-C6VFnmgD.js +0 -1
  387. package/dist/client/assets/site-editor-DaTnC4GN.js +0 -1
  388. package/dist/client/assets/site-editor-toast-BNwhrRf9.js +0 -1
  389. package/dist/client/assets/tasks-BWwZ8vjL.js +0 -1
  390. package/dist/client/assets/use-ask-in-chat-B83kUKgj.js +0 -1
  391. package/dist/client/assets/use-blocks-v8-project-DW3Lf4gT.js +0 -1
  392. package/dist/client/assets/use-main-panel-tabs-BriP2KR6.js +0 -1
  393. package/dist/client/assets/use-reports-diagnostic-DOgSx3yJ.js +0 -1
  394. package/dist/client/assets/useInfiniteQuery-f_imkp8-.js +0 -1
  395. package/dist/client/assets/useSuspenseInfiniteQuery-C9R0dxHf.js +0 -1
@@ -1 +1 @@
1
- import{bf as z,c as ce,q as $t,K as nt,i as xt,a3 as Lt,fH as Ct,fA as Mt,bH as He,bK as It,bJ as ne,c5 as rt,fI as $e,b7 as Ut,b8 as it,fC as Dt,bF as Nt,bA as ot,bz as Kt,fJ as Vt,bS as Ft,b as ye,a5 as qt,j as L,B as xe,L as Wt,h as Yt,a8 as zt}from"./index-ThHlPkA1.js";import{c as Qt,o as Gt,u as Ht,U as Xt,af as Jt,aC as Zt,aD as en,aE as tn,x as nn,q as rn}from"./site-editor-toast-BNwhrRf9.js";import{u as on}from"./use-voice-input-uD40DPmP.js";import{i as sn}from"./AlertCircle-2S4m6Uee.js";import{aJ as st}from"./agent-icon-DCW_KqWB.js";import{E as Le}from"./empty-state-KdDqwAjO.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 fr(e){return K[e]}const lr=de.map(e=>K[e].blockKey);function cn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function ur(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function pr(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const an="deco";function yr(e,t){if(!z(e))return"missing";const n=K[t],r=Xe(e,n.resolveType),i=Xe(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===an;return o(r)&&o(i)?"available":"replaced"}function Xe(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,T]of Object.entries(o)){if(l==="__resolveType")continue;const S=t==="experiments"?fn(T):ln(T);S===null?f.push(l):c[l]=S}return{kind:"saved",block:o,values:c,invalid:f}}function dr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function mr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function fn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function ln(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 gr(e){return e<=0?"off":e>=100?"everyone":"running"}function hr(e){if(!me(e))return null;const t=cn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function _r(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const un="date";function vr(e){return me(e)&&e.__resolveType===un&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function br(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function Tr(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 pn(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 yn=5e3,dn=new Map;async function mn(e,t,n=dn){const r=new URL("/live/_meta",e).href,i=n.get(e),o=i==="refused"?void 0:t?.etag,c=await fetch(r,{cache:"no-store",headers:o?{"If-None-Match":o}:{}}).catch(()=>null),f=!c&&!!o&&i===void 0,l=f?await fetch(r,{cache:"no-store",headers:{}}).catch(()=>null):c;if(o&&(f&&l?n.set(e,"refused"):c&&n.set(e,"ok")),t&&(!l||l.status===304))return t;if(!l?.ok)return null;try{return await l.json()}catch{return null}}function gn(e){return nt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Ar(e,t){const n=ce.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:T}=on(e?.virtualMcpId),S=!i&&T==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=$t(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Jt(e,P):gn({...e,previewUrl:c,productionUrl:l}):nt.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]!==S||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 Zt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>S?tn(e):nn(e,rn(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:pn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:S});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 mn(d.baseUrl,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]=S,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?yn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==S||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||S||i||s.status!==502)&&G<3,n[18]=S,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:hn},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],xt(Y)}function hn(e){return Lt(5e3,1e3,e,2,0)}const _n=new Set(["split-traffic","calendar"]);function vn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const bn=12,Tn=8,Ee=32,An=40,Ze="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function et(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 Sn="VideoWidget";function Z(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function ct(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 at(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 at(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=ct(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 Sr(e,t){return Object.keys(ge(e,t)).length>0}function ft(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(at(n.vendor,n.app).some(c=>c in r))return!0;const i=ct(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function On(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Me(e)!==null}function Rn(e,t){return lt(t,{resolveType:e})}function Or(e,t){return lt(t,{ref:e})}function lt(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===Ze?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,T=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]}},S=(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===Ze?!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>bn)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=[...Z(a.__required),...Z(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=Z(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...U,...Z(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===Sn&&!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,b,R=!0)=>!E&&(!R||b<=An)&&m<Tn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(R=>!(R.type==="null"||R.type===null)),b=R=>{if(typeof R.const=="string"||typeof R.const=="number")return R.const;if(Array.isArray(R.enum)&&R.enum.length===1&&(typeof R.enum[0]=="string"||typeof R.enum[0]=="number"))return R.enum[0]};m.length>0&&m.every(R=>b(R)!==void 0)&&(H=m.map(R=>b(R)))}}let M,oe,Fe=!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(b=>!(b.type==="null"||b.type===null));if(m.length===0)M="null";else if(m.length===1){const b=m[0];oe=b,M=b.type?Array.isArray(b.type)?String(b.type[0]):String(b.type):typeof b.$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 b=m.filter(V),R=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(le),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 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},fe=m.flatMap(u=>{const p=Ae(u);return p?[p]:[]}),kt=fe.length===0&&m.filter(u=>!le(O(u))).every(u=>typeof u.$ref=="string"||b.includes(u)),Pt=b.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 A of[...b,...m.filter(v=>!b.includes(v)).flatMap(v=>q(v)),...u]){const v=Q(A);v&&!p.has(v)&&p.set(v,A)}const g=[...p].map(([A,v])=>({resolveType:A,title:typeof v.title=="string"?v.title:ne(A),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,p.size)})),h=[];for(const A of m){if(b.includes(A)||typeof A.$ref!="string")continue;const v=c(A.$ref);let X;const J=v.properties?.__resolveType;if(Array.isArray(J?.enum)&&typeof J.enum[0]=="string"&&(X=J.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Re=Bt.properties?.__resolveType?.enum;if(Array.isArray(Re)&&typeof Re[0]=="string"){X=Re[0];break}}X&&h.push({resolveType:X,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:ne(X),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,m.length)})}const w=new Set(g.map(A=>A.resolveType)),_=[...g,...h.filter(A=>!w.has(A.resolveType))],C=m.filter(A=>!b.includes(A)),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:R,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!et(D,c);if(u&&fe.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(_=>le(O(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:S(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:S(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Se(fe.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&kt){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:b.length>0?{...Se(),title:g,description:h}:void 0}}if(Pt){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(b.length>0)return Se();const Ye=u=>{const p=l(u);if(typeof p.title=="string"&&He(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},ze=m.map(u=>T(u));if(m.length>1&&ze.every(u=>typeof u=="string")&&!m.some(Ye)){const u=m.map((p,g)=>{const h=l(p),w=ze[g];return{resolveType:w,title:S(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>Z(_.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(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=O(u);return le(p)?!et(p,c):!1},Qe=y<Ee&&m.every(u=>Oe(u)||jt(u))&&m.some(Oe),Ge=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Ge&&m.some(u=>typeof u.$ref=="string"&&_n.has(vn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((Ge||wt)&&!Qe){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 A=He(g.title);A&&(h=A.blockId,w=A.blockId)}if(!h&&Array.isArray(g.allOf))for(const A of g.allOf){const J=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(J)&&typeof J[0]=="string"){h=J[0],_=!0;break}}if(!h){const v=g.properties?.__resolveType?.enum;Array.isArray(v)&&typeof v[0]=="string"&&(h=v[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!It(h),N=C?void 0:T(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:R,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(Qe){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 A=u(N);A!==void 0&&(_[C]=A)}return{title:S(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",Fe=I(a.title)):typeof s.$ref=="string"&&(M="object");let ae,qe,We=!1;if(y<Ee&&!E){const k=W(a),m=k.__resolveType?.enum;We=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const b=Z(k.__required);b.length>0&&(qe=b);const R=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(R.length>0){ae={};for(const[D,Ae]of R)ae[D]=$(Ae,y+1,x)}}let Te;if((M==="array"||a.type==="array")&&y<Ee&&!E){const k=a.items;if(k){Te=$(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},Et=()=>{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:!Fe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:Et(),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:ae,required:qe,items:Te,lazy:We&&ae?.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=Z(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Rr(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(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function Er(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,T=O=>O===!0||O==="true",S=T(l.hide)||T(l.ignore)||T(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:S||void 0}}const ut=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],En=new Set(ut);function Ue(e){return En.has(e)}function De(e,t){return Ue(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function kr(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function Pr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function kn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function jr(e){const t=e.trim();return t?kn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wr(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function pt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Br(e){e=pt(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 $r(e,t){return pt(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 yt=ut[0],Pn=new Set(["site/sections/Theme/Theme.tsx"]);function jn(e,t){return Pn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(jn(e,z(t))||it(e)||e.toLowerCase().includes("preview"))}function dt(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":yt}function wn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function xr(e){return e?wn(e)?"page":dt(e):yt}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 Bn(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 Lr(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 mt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!gt(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"&&it(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&$e(e,f))return f}return n}function gt(e,t){return e===Dt||t&&e===Nt}function $n(e,t){return mt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||rt(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)||!($e(e,c)||gt(c,z(e))&&$n(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function xn(e,t){const n=ot(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 Cr(e,t){const n=dt(e),r=Rn(n,e),i=ke(r?.properties?.sections),o=new Map,c=f=>{if(!he(f.resolveType,e)){if(ot(f.resolveType,e)){rt(f.resolveType)||o.set(f.resolveType,f);return}$e(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Bn(e))c(f);for(const f of i)c(xn(e,f));for(const f of ht(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Mr(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",Ir=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",Ln=[301,302,307,308],Cn={temporary:307,permanent:301};function Ur(e){return e.flat&&e.status||Cn[e.type]}const ue=e=>typeof e=="string"?e:"",Mn=e=>e==="permanent"?"permanent":"temporary",In=e=>Ln.find(t=>t===e);function _t(e){const t=In(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 _t(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:Mn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Un(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 Dr(e){return be(e)}function Dn(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 Nn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Kn=1e3;function Nr(e,t){const n=Nn(t);for(let r=0;r<Kn;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 Vn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function Fn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Vn}function Kr(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)||!bt(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 Tt(e){return"redirect"in e?be(e):_t({...e})}function At(e,t){const{__resolveType:n,...r}=Dn(e,{...t});return r}function Vr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Fr(e,t=Fn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function qr(e,t){const n=re(e)[t];return n?Tt(n):be(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:vt,redirects:t}}function Wr(e,t){return Ve(e,[...re(e),At(t)])}function Yr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function qn(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 Qr(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 Gr(e,t,n){const r=Pe(e,t,n);return r||Ne(t)!=="/"?r:e[0]??null}const se="site",St="site/apps/site.ts";function je(e,t){return e===se?!0:t.__resolveType===St}function Hr(e,t){return e?Ot(e,t).length>0||Un(e).length>0?!0:t?Hn(e,t).length>0||Qn(e,t)?!0:Gn(e,t).length>0:!1:!1}function Wn(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:qn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Wn(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 tt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):we(e,t)}function Yn(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)||tt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&tt(e[c.key],o))}function Xr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Yn(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 Be(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 Qn(e,t){const n=e[se];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(je(se,r)||ft(t,i)))return{key:se,name:Be(se,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:St;return{key:r,name:Be(r,o,t),resolveType:c}}return null}function Gn(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)||!ft(t,c)&&!On(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Hn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Xn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Jn={posts:"post",categories:"category",authors:"author"},Rt=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Jr(e,...t){const n=e?Xn.exec(e)?.[1]:void 0;if(n)return Jn[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=Rt.find(c=>pe(r[c]));if(o)return o}return null}function Zn(...e){for(const t of e)if(pe(t))for(const n of Rt){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 er(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function Zr(e,t,n){return Zn(...t)??er(e,n)}const tr="https://github.com/decocms/blocks";function ei(){const e=ce.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(st,{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:tr,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 ti(e){const t=ce.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(sn,{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 T;t[6]!==i?(T=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=T):T=t[7];let S;t[8]!==r||t[9]!==T?(S=L.jsx(xe,{variant:"outline",size:"sm",onClick:r,children:T}),t[8]=r,t[9]=T,t[10]=S):S=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==S?(O=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=O):O=t[14],O}function ni(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ri(){const e=ce.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(st,{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 T;return e[12]!==i||e[13]!==o||e[14]!==l?(T=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]=T):T=e[15],T}function ii(e){const t=ce.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{ke as $,Rn as A,ti as B,ii as C,zn as D,vt as E,Vr as F,ur as G,mt as H,Dr as I,Kr as J,Qr as K,Qn as L,Un as M,de as N,Lr as O,Ir as P,Fn as Q,Cn as R,ri as S,Fr as T,Nr as U,Dn as V,Wr as W,zr as X,kr as Y,wn as Z,xr as _,Pr as a,Ue as a0,Or as a1,Cr as a2,hr as a3,Rr as a4,Er as a5,Wn as a6,qn as a7,Jr as a8,Zr as a9,pr as aa,er as ab,yt as ac,me as ad,Je as ae,vr as af,fr as ag,_r as ah,dr as ai,br as aj,Zn as ak,gr as al,Tr as am,Mr as an,Pe as ao,qr as ap,Ln as aq,Yr as ar,ei as b,Hn as c,Gr as d,Ot as e,$r as f,yr as g,Hr as h,ni as i,lr as j,dt as k,Sr as l,St as m,Ne as n,je as o,Xr as p,On as q,mr as r,Br as s,Be as t,Ar as u,jr as v,Ie as w,Ur as x,wr as y,he as z};
1
+ import{bf as z,c as ce,q as $t,K as nt,i as xt,a3 as Lt,fI as Mt,fB as Ct,bH as He,bK as It,bJ as ne,c5 as rt,fJ as $e,b7 as Ut,b8 as it,fD as Dt,bF as Nt,bA as ot,bz as Kt,fK as Vt,bS as Ft,b as ye,a5 as qt,j as L,B as xe,L as Wt,h as Yt,a8 as zt}from"./index-YAbWBpI2.js";import{c as Qt,o as Gt,u as Ht,U as Xt,af as Jt,aC as Zt,aD as en,aE as tn,x as nn,q as rn}from"./site-editor-toast-B1S7n1Id.js";import{u as on}from"./use-voice-input-qp904jOd.js";import{i as sn}from"./AlertCircle-C8Ovs13g.js";import{aJ as st}from"./agent-icon-CqeITJaa.js";import{E as Le}from"./empty-state-DUTglEtg.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 fr(e){return K[e]}const lr=de.map(e=>K[e].blockKey);function cn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function ur(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function pr(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const an="deco";function yr(e,t){if(!z(e))return"missing";const n=K[t],r=Xe(e,n.resolveType),i=Xe(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===an;return o(r)&&o(i)?"available":"replaced"}function Xe(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,T]of Object.entries(o)){if(l==="__resolveType")continue;const S=t==="experiments"?fn(T):ln(T);S===null?f.push(l):c[l]=S}return{kind:"saved",block:o,values:c,invalid:f}}function dr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function mr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function fn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function ln(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 gr(e){return e<=0?"off":e>=100?"everyone":"running"}function hr(e){if(!me(e))return null;const t=cn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function _r(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const un="date";function vr(e){return me(e)&&e.__resolveType===un&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function br(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function Tr(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 pn(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 yn=5e3,dn=new Map;async function mn(e,t,n=dn){const r=new URL("/live/_meta",e).href,i=n.get(e),o=i==="refused"?void 0:t?.etag,c=await fetch(r,{cache:"no-store",headers:o?{"If-None-Match":o}:{}}).catch(()=>null),f=!c&&!!o&&i===void 0,l=f?await fetch(r,{cache:"no-store",headers:{}}).catch(()=>null):c;if(o&&(f&&l?n.set(e,"refused"):c&&n.set(e,"ok")),t&&(!l||l.status===304))return t;if(!l?.ok)return null;try{return await l.json()}catch{return null}}function gn(e){return nt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Ar(e,t){const n=ce.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:T}=on(e?.virtualMcpId),S=!i&&T==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=$t(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Jt(e,P):gn({...e,previewUrl:c,productionUrl:l}):nt.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]!==S||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 Zt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>S?tn(e):nn(e,rn(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:pn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:S});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 mn(d.baseUrl,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]=S,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?yn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==S||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||S||i||s.status!==502)&&G<3,n[18]=S,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:hn},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],xt(Y)}function hn(e){return Lt(5e3,1e3,e,2,0)}const _n=new Set(["split-traffic","calendar"]);function vn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const bn=12,Tn=8,Ee=32,An=40,Ze="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function et(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 Sn="VideoWidget";function Z(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function ct(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Me(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ce(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function at(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=Me(e)??Ce(e);if(r){for(const f of at(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=ct(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 Sr(e,t){return Object.keys(ge(e,t)).length>0}function ft(e,t){if(Mt(e,t))return!0;const n=Me(t)??Ce(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(at(n.vendor,n.app).some(c=>c in r))return!0;const i=ct(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function On(e){return e==="site/apps/site.ts"?!1:Me(e)!==null||Ce(e)!==null}function Rn(e,t){return lt(t,{resolveType:e})}function Or(e,t){return lt(t,{ref:e})}function lt(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===Ze?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,T=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]}},S=(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===Ze?!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>bn)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=[...Z(a.__required),...Z(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=Z(a.__required),H=W(x,y,d+1);a={...a,...H};const C=B==="allOf"?[...U,...Z(H.__required)]:U;C.length>0?a.__required=C: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===Sn&&!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,b,R=!0)=>!E&&(!R||b<=An)&&m<Tn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(R=>!(R.type==="null"||R.type===null)),b=R=>{if(typeof R.const=="string"||typeof R.const=="number")return R.const;if(Array.isArray(R.enum)&&R.enum.length===1&&(typeof R.enum[0]=="string"||typeof R.enum[0]=="number"))return R.enum[0]};m.length>0&&m.every(R=>b(R)!==void 0)&&(H=m.map(R=>b(R)))}}let C,oe,Fe=!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(b=>!(b.type==="null"||b.type===null));if(m.length===0)C="null";else if(m.length===1){const b=m[0];oe=b,C=b.type?Array.isArray(b.type)?String(b.type[0]):String(b.type):typeof b.$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 b=m.filter(V),R=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(le),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},fe=m.flatMap(u=>{const p=Ae(u);return p?[p]:[]}),kt=fe.length===0&&m.filter(u=>!le(O(u))).every(u=>typeof u.$ref=="string"||b.includes(u)),Pt=b.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Ct||z(e)&&p[0]==="multivariate")}),Se=(u=[])=>{const p=new Map;for(const A of[...b,...m.filter(v=>!b.includes(v)).flatMap(v=>q(v)),...u]){const v=Q(A);v&&!p.has(v)&&p.set(v,A)}const g=[...p].map(([A,v])=>({resolveType:A,title:typeof v.title=="string"?v.title:ne(A),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,p.size)})),h=[];for(const A of m){if(b.includes(A)||typeof A.$ref!="string")continue;const v=c(A.$ref);let X;const J=v.properties?.__resolveType;if(Array.isArray(J?.enum)&&typeof J.enum[0]=="string"&&(X=J.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Re=Bt.properties?.__resolveType?.enum;if(Array.isArray(Re)&&typeof Re[0]=="string"){X=Re[0];break}}X&&h.push({resolveType:X,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:ne(X),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,m.length)})}const w=new Set(g.map(A=>A.resolveType)),_=[...g,...h.filter(A=>!w.has(A.resolveType))],M=m.filter(A=>!b.includes(A)),N=M.length===1&&!E?$(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:R,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!et(D,c);if(u&&fe.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(_=>le(O(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,M)=>({title:S(_,`Option ${M+1}`),schema:$(_,y+1,x)})),{title:S(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Se(fe.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&kt){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:b.length>0?{...Se(),title:g,description:h}:void 0}}if(Pt){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(b.length>0)return Se();const Ye=u=>{const p=l(u);if(typeof p.title=="string"&&He(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},ze=m.map(u=>T(u));if(m.length>1&&ze.every(u=>typeof u=="string")&&!m.some(Ye)){const u=m.map((p,g)=>{const h=l(p),w=ze[g];return{resolveType:w,title:S(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>Z(_.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(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=O(u);return le(p)?!et(p,c):!1},Qe=y<Ee&&m.every(u=>Oe(u)||jt(u))&&m.some(Oe),Ge=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Ge&&m.some(u=>typeof u.$ref=="string"&&_n.has(vn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((Ge||wt)&&!Qe){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 A=He(g.title);A&&(h=A.blockId,w=A.blockId)}if(!h&&Array.isArray(g.allOf))for(const A of g.allOf){const J=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(J)&&typeof J[0]=="string"){h=J[0],_=!0;break}}if(!h){const v=g.properties?.__resolveType?.enum;Array.isArray(v)&&typeof v[0]=="string"&&(h=v[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const M=h.includes("/")||_&&!It(h),N=M?void 0:T(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:R,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(Qe){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 A=u(N);A!==void 0&&(_[M]=A)}return{title:S(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}}C="object"}}else a.allOf?(C="object",Fe=I(a.title)):typeof s.$ref=="string"&&(C="object");let ae,qe,We=!1;if(y<Ee&&!E){const k=W(a),m=k.__resolveType?.enum;We=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const b=Z(k.__required);b.length>0&&(qe=b);const R=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(R.length>0){ae={};for(const[D,Ae]of R)ae[D]=$(Ae,y+1,x)}}let Te;if((C==="array"||a.type==="array")&&y<Ee&&!E){const k=a.items;if(k){Te=$(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},Et=()=>{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:!Fe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:Et(),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:ae,required:qe,items:Te,lazy:We&&ae?.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 $({$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=Z(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Rr(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(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function Er(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,T=O=>O===!0||O==="true",S=T(l.hide)||T(l.ignore)||T(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:S||void 0}}const ut=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],En=new Set(ut);function Ue(e){return En.has(e)}function De(e,t){return Ue(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function kr(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function Pr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function kn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function jr(e){const t=e.trim();return t?kn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wr(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function pt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Br(e){e=pt(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 $r(e,t){return pt(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 yt=ut[0],Pn=new Set(["site/sections/Theme/Theme.tsx"]);function jn(e,t){return Pn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(jn(e,z(t))||it(e)||e.toLowerCase().includes("preview"))}function dt(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":yt}function wn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function xr(e){return e?wn(e)?"page":dt(e):yt}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 Bn(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 Lr(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 mt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!gt(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"&&it(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&$e(e,f))return f}return n}function gt(e,t){return e===Dt||t&&e===Nt}function $n(e,t){return mt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||rt(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)||!($e(e,c)||gt(c,z(e))&&$n(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function xn(e,t){const n=ot(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 Mr(e,t){const n=dt(e),r=Rn(n,e),i=ke(r?.properties?.sections),o=new Map,c=f=>{if(!he(f.resolveType,e)){if(ot(f.resolveType,e)){rt(f.resolveType)||o.set(f.resolveType,f);return}$e(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Bn(e))c(f);for(const f of i)c(xn(e,f));for(const f of ht(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Cr(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",Ir=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",Ln=[301,302,307,308],Mn={temporary:307,permanent:301};function Ur(e){return e.flat&&e.status||Mn[e.type]}const ue=e=>typeof e=="string"?e:"",Cn=e=>e==="permanent"?"permanent":"temporary",In=e=>Ln.find(t=>t===e);function _t(e){const t=In(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 _t(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:Cn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Un(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 Dr(e){return be(e)}function Dn(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 Nn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Kn=1e3;function Nr(e,t){const n=Nn(t);for(let r=0;r<Kn;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 Vn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function Fn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Vn}function Kr(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)||!bt(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 Tt(e){return"redirect"in e?be(e):_t({...e})}function At(e,t){const{__resolveType:n,...r}=Dn(e,{...t});return r}function Vr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Fr(e,t=Fn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function qr(e,t){const n=re(e)[t];return n?Tt(n):be(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:vt,redirects:t}}function Wr(e,t){return Ve(e,[...re(e),At(t)])}function Yr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function qn(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 Qr(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 Gr(e,t,n){const r=Pe(e,t,n);return r||Ne(t)!=="/"?r:e[0]??null}const se="site",St="site/apps/site.ts";function je(e,t){return e===se?!0:t.__resolveType===St}function Hr(e,t){return e?Ot(e,t).length>0||Un(e).length>0?!0:t?Hn(e,t).length>0||Qn(e,t)?!0:Gn(e,t).length>0:!1:!1}function Wn(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:qn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Wn(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 tt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):we(e,t)}function Yn(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)||tt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&tt(e[c.key],o))}function Xr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Yn(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 Be(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 Qn(e,t){const n=e[se];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(je(se,r)||ft(t,i)))return{key:se,name:Be(se,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:St;return{key:r,name:Be(r,o,t),resolveType:c}}return null}function Gn(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)||!ft(t,c)&&!On(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Hn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Xn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Jn={posts:"post",categories:"category",authors:"author"},Rt=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Jr(e,...t){const n=e?Xn.exec(e)?.[1]:void 0;if(n)return Jn[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=Rt.find(c=>pe(r[c]));if(o)return o}return null}function Zn(...e){for(const t of e)if(pe(t))for(const n of Rt){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 er(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function Zr(e,t,n){return Zn(...t)??er(e,n)}const tr="https://github.com/decocms/blocks";function ei(){const e=ce.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(st,{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:tr,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 ti(e){const t=ce.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(sn,{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 T;t[6]!==i?(T=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=T):T=t[7];let S;t[8]!==r||t[9]!==T?(S=L.jsx(xe,{variant:"outline",size:"sm",onClick:r,children:T}),t[8]=r,t[9]=T,t[10]=S):S=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==S?(O=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=O):O=t[14],O}function ni(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ri(){const e=ce.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(st,{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 T;return e[12]!==i||e[13]!==o||e[14]!==l?(T=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]=T):T=e[15],T}function ii(e){const t=ce.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{ke as $,Rn as A,ti as B,ii as C,zn as D,vt as E,Vr as F,ur as G,mt as H,Dr as I,Kr as J,Qr as K,Qn as L,Un as M,de as N,Lr as O,Ir as P,Fn as Q,Mn as R,ri as S,Fr as T,Nr as U,Dn as V,Wr as W,zr as X,kr as Y,wn as Z,xr as _,Pr as a,Ue as a0,Or as a1,Mr as a2,hr as a3,Rr as a4,Er as a5,Wn as a6,qn as a7,Jr as a8,Zr as a9,pr as aa,er as ab,yt as ac,me as ad,Je as ae,vr as af,fr as ag,_r as ah,dr as ai,br as aj,Zn as ak,gr as al,Tr as am,Cr as an,Pe as ao,qr as ap,Ln as aq,Yr as ar,ei as b,Hn as c,Gr as d,Ot as e,$r as f,yr as g,Hr as h,ni as i,lr as j,dt as k,Sr as l,St as m,Ne as n,je as o,Xr as p,On as q,mr as r,Br as s,Be as t,Ar as u,jr as v,Ie as w,Ur as x,wr as y,he as z};
@@ -1 +1 @@
1
- import{c as O,j as i,r as _,m as R,b as T}from"./index-ThHlPkA1.js";import{l as v}from"./agent-icon-DCW_KqWB.js";import{a1 as P,x as K,a0 as D,a2 as W}from"./parse-sections-Du7KAexn.js";import{t as y}from"./ChevronUp-BQPjne-n.js";import{C as I,a as Y,b as w}from"./collapsible-5yAdMS_P.js";import{M as B,W as L}from"./content-tab-C72v9K4t.js";function $(l){const e=O.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=O.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(I,{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=O.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 N;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(N=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]=N):N=e[31],N}function k(l,e){if(!e)return null;const o=W(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 M=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(M),V=["name","slug","parentSlug","description","sections"],se=new Set(V);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
1
+ import{c as O,j as i,r as _,m as R,b as T}from"./index-YAbWBpI2.js";import{l as v}from"./agent-icon-CqeITJaa.js";import{a1 as P,x as K,a0 as D,a2 as W}from"./parse-sections-UGlsQq9_.js";import{t as y}from"./ChevronUp-CpgR3_nb.js";import{C as I,a as Y,b as w}from"./collapsible-Cu2ykx45.js";import{M as B,W as L}from"./content-tab-ClOEdPwZ.js";function $(l){const e=O.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=O.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(I,{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=O.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 N;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(N=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]=N):N=e[31],N}function k(l,e){if(!e)return null;const o=W(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 M=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(M),V=["name","slug","parentSlug","description","sections"],se=new Set(V);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
@@ -1 +1 @@
1
- import{c as F,b as T,j as t,hY as Q,r as S,B as L,D as W,v as X,w as Z,x as ee,aT as te,I as D,y as se,bj as ie,t as K,ay as O,g2 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-ThHlPkA1.js";import{i as fe}from"./AlertCircle-2S4m6Uee.js";import{s as V}from"./Plus-CFb7oJrI.js";import{s as me}from"./Trash01-D1V404v-.js";import{B as R}from"./badge-Ksu8KJbs.js";import{E as ge}from"./empty-state-D1kuCCvh.js";import{L as B}from"./label-BRcQIH7Z.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-CCYd2TPQ.js";import{S as je}from"./switch-CT_-wvDo.js";import{T as ke}from"./textarea-yOWP9JYC.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-Crafuymh.js";import{R as Se}from"./require-capability-Zb9L0UB5.js";import"./index-BdQq_4o_.js";import"./index-B6uyloRF.js";import"./ChevronUp-BQPjne-n.js";import"./access-gate-DlxNXK1w.js";import"./capability-load-error-C3U-ZhDb.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(Y){K.error(Ne(Y,s("settings.buckets.failedToAddBucket")))}}const G=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(W,{open:i,onOpenChange:e,children:t.jsxs(X,{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(Q,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Ye(){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{Ye as default};
1
+ import{c as F,b as T,j as t,hZ as Q,r as S,B as L,D as W,v as X,w as Y,x as ee,aT as te,I as D,y as se,bj as ie,t as K,ay as O,g3 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-YAbWBpI2.js";import{i as fe}from"./AlertCircle-C8Ovs13g.js";import{s as V}from"./Plus-_9GNTGSE.js";import{s as me}from"./Trash01-BMv3ZifH.js";import{B as R}from"./badge-DzMp3mdM.js";import{E as ge}from"./empty-state-UqiTRa_b.js";import{L as B}from"./label-ERMWTDM1.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-BkMg57qf.js";import{S as je}from"./switch-B_lDpEA0.js";import{T as ke}from"./textarea-OklqAHMd.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-5QRblAyS.js";import{R as Se}from"./require-capability-C_BedkF8.js";import"./index-BdQq_4o_.js";import"./index-BIHeqmlu.js";import"./ChevronUp-CpgR3_nb.js";import"./access-gate-Kza0R1uM.js";import"./capability-load-error-N3peg2W6.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(Z){K.error(Ne(Z,s("settings.buckets.failedToAddBucket")))}}const G=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(W,{open:i,onOpenChange:e,children:t.jsxs(X,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Y,{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(Q,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Ze(){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{Ze 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-ThHlPkA1.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-YAbWBpI2.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};