decocms 4.577.1 → 4.578.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/dist/client/assets/{AlertCircle-Bj2NuHQY.js → AlertCircle-BHOdje2-.js} +1 -1
  2. package/dist/client/assets/{AreaChart-wF798x8i.js → AreaChart--NTdNKkN.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DCMq103h.js → ArrowLeft-DwK9IQqr.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-AwRcCsuH.js → ArrowUp-BKp-bI0t.js} +1 -1
  5. package/dist/client/assets/{BookOpen01-D2g_6Ti1.js → BookOpen01-CCzJ3iHg.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-B6p3i5Ce.js → CartesianChart-DcsXR4up.js} +1 -1
  7. package/dist/client/assets/{CategoricalChart-Bjq2Qe33.js → CategoricalChart-BH2fCBYy.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-BfCYdSA_.js → CheckCircle-CpYSXUlJ.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-Bwduw2Hp.js → ChevronSelectorVertical-BfPzQt1M.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-JSFuaLqF.js → ChevronUp-yM6kuF7B.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-DsaJOWgX.js → CreditCard01-ClPhtnpy.js} +1 -1
  12. package/dist/client/assets/{Globe04-BBKBtEaK.js → Globe04-CpMO0Sfn.js} +1 -1
  13. package/dist/client/assets/{Key01-BTIXWKkS.js → Key01-BUefgO6r.js} +1 -1
  14. package/dist/client/assets/{LinkBroken01-DjOOxf0e.js → LinkBroken01-Beajkv8Y.js} +1 -1
  15. package/dist/client/assets/{Minus-BAq-AD33.js → Minus-CkHBDYFP.js} +1 -1
  16. package/dist/client/assets/{Monitor01-CqtNhdJN.js → Monitor01-6Z9BL4ul.js} +1 -1
  17. package/dist/client/assets/{Play-kmXfE4Am.js → Play-QQIqJKj8.js} +1 -1
  18. package/dist/client/assets/{Plus-Bq5KiXqn.js → Plus-jqQtsDrV.js} +1 -1
  19. package/dist/client/assets/{ReferenceLine-CcfMMo9r.js → ReferenceLine-65eMf_HF.js} +1 -1
  20. package/dist/client/assets/{SearchMd-D1P7yVqT.js → SearchMd--9oaPr0p.js} +1 -1
  21. package/dist/client/assets/{ShoppingBag01-CAQ4NRTU.js → ShoppingBag01-DWT7jnvZ.js} +1 -1
  22. package/dist/client/assets/{Sun-C5iV1Zpq.js → Sun-CBa0lZzX.js} +1 -1
  23. package/dist/client/assets/{SwitchHorizontal01-CP6L8rlm.js → SwitchHorizontal01-Be5wnM3M.js} +1 -1
  24. package/dist/client/assets/{Tool01-DAYJL0v-.js → Tool01-C_vFDQiZ.js} +1 -1
  25. package/dist/client/assets/{Tooltip-DiDmzDgy.js → Tooltip-BxRazsja.js} +1 -1
  26. package/dist/client/assets/{Trash01-Dt7pyOwE.js → Trash01-D4h16nnS.js} +1 -1
  27. package/dist/client/assets/{Upload01-CZ2h76oj.js → Upload01-DLWP4rJI.js} +1 -1
  28. package/dist/client/assets/UserSquare-DomA7Npc.js +1 -0
  29. package/dist/client/assets/{Users01-BZzvQda-.js → Users01-DQk985Hj.js} +1 -1
  30. package/dist/client/assets/{XClose-D2u966Hj.js → XClose-DsOcImLD.js} +1 -1
  31. package/dist/client/assets/{Zap-CDj8jJFt.js → Zap-CXSu8byh.js} +1 -1
  32. package/dist/client/assets/{access-gate-DL6Fx00C.js → access-gate-COWmI5bk.js} +1 -1
  33. package/dist/client/assets/{add-connection-dialog-DXVmpebU.js → add-connection-dialog-BcVopUkx.js} +1 -1
  34. package/dist/client/assets/agent-app-IytyCAeX.js +1 -0
  35. package/dist/client/assets/{agent-assets-C4JxM7ek.js → agent-assets-BiP4eXwk.js} +1 -1
  36. package/dist/client/assets/{agent-automation-BRLWOY9Z.js → agent-automation-DBUljkhT.js} +1 -1
  37. package/dist/client/assets/{agent-automations-Bi4PZQpt.js → agent-automations-SLj1xajz.js} +1 -1
  38. package/dist/client/assets/{agent-blog-CZFhSkNf.js → agent-blog-CwfLgnOy.js} +2 -2
  39. package/dist/client/assets/{agent-blog-post-DWjaJsuP.js → agent-blog-post-Dv9DOEk2.js} +2 -2
  40. package/dist/client/assets/{agent-calendar-DVRrZoQI.js → agent-calendar-CjQfj1Sz.js} +1 -1
  41. package/dist/client/assets/{agent-capabilities-DHVCvnvi.js → agent-capabilities-B2YgTs9t.js} +1 -1
  42. package/dist/client/assets/{agent-connect-sources-zocgSqV4.js → agent-connect-sources-COR6xHVk.js} +1 -1
  43. package/dist/client/assets/agent-deck-BaQ_Lg8E.js +1 -0
  44. package/dist/client/assets/{agent-e2e-C7P50BKx.js → agent-e2e-CqM9gm_q.js} +1 -1
  45. package/dist/client/assets/agent-experiments-BQTqMeA9.js +1 -0
  46. package/dist/client/assets/{agent-file-CVIHN4Pv.js → agent-file-aW_ERFnN.js} +1 -1
  47. package/dist/client/assets/agent-hosting-D1eqz9SR.js +1 -0
  48. package/dist/client/assets/agent-icon-C-RKmmDR.js +1 -0
  49. package/dist/client/assets/agent-library-BMuykAhZ.js +1 -0
  50. package/dist/client/assets/agent-library-file-DMgZUrW5.js +1 -0
  51. package/dist/client/assets/agent-overview-BCgVG2tE.js +1 -0
  52. package/dist/client/assets/{agent-releases-Bxmxt--5.js → agent-releases-IeUzKjUs.js} +1 -1
  53. package/dist/client/assets/agent-settings-DmzwtPvi.js +1 -0
  54. package/dist/client/assets/{agent-site-editor-Bxgpwy-D.js → agent-site-editor-WH6jHL7m.js} +1 -1
  55. package/dist/client/assets/agent-site-editor-code-CtuKhycC.js +2 -0
  56. package/dist/client/assets/agent-site-editor-content-6A0AHGJH.js +1 -0
  57. package/dist/client/assets/agent-site-editor-preview-DiYiv2sS.js +1 -0
  58. package/dist/client/assets/agent-view-BLZVy10x.js +1 -0
  59. package/dist/client/assets/{agent-view-guard-B4P_nOY3.js → agent-view-guard-DL_BQ0ym.js} +1 -1
  60. package/dist/client/assets/{ai-providers-CvpoHUFb.js → ai-providers-DQRQioIu.js} +1 -1
  61. package/dist/client/assets/{alert-0-4Lk02S.js → alert-DejWJPEC.js} +1 -1
  62. package/dist/client/assets/{analytics-sections-DEuK9yNO.js → analytics-sections-aJEg6Lrj.js} +1 -1
  63. package/dist/client/assets/api-keys-BVTq6_vY.js +1 -0
  64. package/dist/client/assets/{api-keys-BWb-_Fqf.js → api-keys-CtF2T7md.js} +1 -1
  65. package/dist/client/assets/{app-editor-DVjFa_ip.js → app-editor-BbInzuqi.js} +1 -1
  66. package/dist/client/assets/{asset-utils-DSh1-4fR.js → asset-utils-DLSL6NlD.js} +1 -1
  67. package/dist/client/assets/{auth-DFCgioOs.js → auth-DQhl82rC.js} +1 -1
  68. package/dist/client/assets/{auth-catchall-_w9pWMK8.js → auth-catchall-CKKMb7Qg.js} +1 -1
  69. package/dist/client/assets/{auth-entry-HAlWF4UX.js → auth-entry-GYtwsP_U.js} +1 -1
  70. package/dist/client/assets/{auth-split-layout-BSaVPfK6.js → auth-split-layout-Den49bbd.js} +1 -1
  71. package/dist/client/assets/{authenticate-and-persist-oauth-BGX0Y23v.js → authenticate-and-persist-oauth-BUdNrcOr.js} +1 -1
  72. package/dist/client/assets/{automation-list-row-Xayp8iFs.js → automation-list-row-BNUSbcf6.js} +1 -1
  73. package/dist/client/assets/{automation-runs-CUwzltO7.js → automation-runs-Pz0rgqnE.js} +1 -1
  74. package/dist/client/assets/{automations-C0bs2qin.js → automations-DQjVvCEj.js} +1 -1
  75. package/dist/client/assets/{badge-DbKUf3vA.js → badge-lysbeP9P.js} +1 -1
  76. package/dist/client/assets/{block-document-zkAHP8m2.js → block-document-DvtTe-B8.js} +1 -1
  77. package/dist/client/assets/{blocks-preview-workspace-context-DQL_zlqC.js → blocks-preview-workspace-context-CnaE8A0D.js} +1 -1
  78. package/dist/client/assets/{blocks-tab-states-BUfMyINR.js → blocks-tab-states-DScRj9jB.js} +1 -1
  79. package/dist/client/assets/{blog-preview-url-CT-VZElJ.js → blog-preview-url-BaS_j9Mv.js} +1 -1
  80. package/dist/client/assets/{blog-schema-Dys-tzF0.js → blog-schema-BZTYj2LA.js} +1 -1
  81. package/dist/client/assets/{blog-source-gate-CYaEgV9t.js → blog-source-gate-D36m3Pml.js} +1 -1
  82. package/dist/client/assets/{blog-view-gate-zXMdlu7Q.js → blog-view-gate-DZU_55_0.js} +1 -1
  83. package/dist/client/assets/{buckets-DOgpbimo.js → buckets-Bbtnc4QE.js} +1 -1
  84. package/dist/client/assets/{build-improve-prompt-doc-BMf33123.js → build-improve-prompt-doc-Ukn_sIrt.js} +1 -1
  85. package/dist/client/assets/{calendar-5Nt9EKO9.js → calendar-RFGSgZO6.js} +1 -1
  86. package/dist/client/assets/{capability-load-error-BSxnBi9L.js → capability-load-error-zDoTf-tr.js} +1 -1
  87. package/dist/client/assets/{category-editor-DziWemO6.js → category-editor-Dji5QxhQ.js} +1 -1
  88. package/dist/client/assets/{category-tree-Cm0a3nBT.js → category-tree-hquVl_NC.js} +1 -1
  89. package/dist/client/assets/{chart-DPgJVmAl.js → chart-Y23GGTjZ.js} +1 -1
  90. package/dist/client/assets/{chat-context-D8Eje7xK.js → chat-context-o9Pyy_rd.js} +1 -1
  91. package/dist/client/assets/{chat-draft-ArmxHiV6.js → chat-draft-ZyzRFxm_.js} +1 -1
  92. package/dist/client/assets/{checkbox-CCw3an34.js → checkbox-BgJ_rDKP.js} +1 -1
  93. package/dist/client/assets/{choose-editor-CXiL24Bl.js → choose-editor-BE7aIxmQ.js} +1 -1
  94. package/dist/client/assets/{cli-auth-success-c7wBWUO5.js → cli-auth-success-BlHmHrJ9.js} +1 -1
  95. package/dist/client/assets/{client-icons-CuJeSv2A.js → client-icons-ClEjJoc4.js} +1 -1
  96. package/dist/client/assets/{cms-settings-editor-gxtK9SOp.js → cms-settings-editor-DTSvLtYU.js} +1 -1
  97. package/dist/client/assets/{cms-store-drafts-chLFxeWf.js → cms-store-drafts-DChYgVhP.js} +1 -1
  98. package/dist/client/assets/{collapsible-CVtLl5wO.js → collapsible-Ck6jFTQH.js} +1 -1
  99. package/dist/client/assets/{collection-detail-D_Bcp_j6.js → collection-detail-Cu5F_YZk.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-CnhRvkGN.js → collection-display-button-Cc8fDLFX.js} +1 -1
  101. package/dist/client/assets/{collection-search-CC2QUXh2.js → collection-search-Cr2_Tgzy.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-DSy_nx4_.js → collection-table-wrapper-VD4O1Z7Z.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-DHZJ_O9U.js → collection-tabs-BNEX9U1D.js} +1 -1
  104. package/dist/client/assets/{combobox-CB15NqGc.js → combobox-CqgGSY4o.js} +1 -1
  105. package/dist/client/assets/{command-BOSLOC8n.js → command-CnhVLB17.js} +1 -1
  106. package/dist/client/assets/{companion-mcps-section-CeNpBYo7.js → companion-mcps-section-CLNVvG7e.js} +1 -1
  107. package/dist/client/assets/{config-DqdBgCnO.js → config-a5cd-EVs.js} +1 -1
  108. package/dist/client/assets/{connect-WyHpmSHS.js → connect-4PrNRBjZ.js} +1 -1
  109. package/dist/client/assets/{connect-layout-D_zQARSX.js → connect-layout-CNlF_K4x.js} +1 -1
  110. package/dist/client/assets/{connect-source-dialog-DHtZw9ff.js → connect-source-dialog-UDY4VqBo.js} +1 -1
  111. package/dist/client/assets/{connection-D0YCkaZO.js → connection-CV7VyK2j.js} +1 -1
  112. package/dist/client/assets/{connection-card-B1Rl2nXN.js → connection-card-DpuIDx02.js} +1 -1
  113. package/dist/client/assets/{connection-detail-LxUhih2_.js → connection-detail-BTx1Lau8.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-CAOx4zgX.js → connection-form-helpers-BHr2mHhQ.js} +1 -1
  115. package/dist/client/assets/{connection-slug-BH_NX0Ks.js → connection-slug-D2uNKvQr.js} +1 -1
  116. package/dist/client/assets/{connections-BhxOwljy.js → connections-DyhjRe5H.js} +1 -1
  117. package/dist/client/assets/{content-tab-BdaE3oCc.js → content-tab-BGklezQM.js} +3 -3
  118. package/dist/client/assets/{context-BmOpD-Hr.js → context-Cw8yAq79.js} +1 -1
  119. package/dist/client/assets/{context-menu-Df7WW_d5.js → context-menu-DIqy9oGB.js} +1 -1
  120. package/dist/client/assets/{context-shell-cJbikpSJ.js → context-shell-DzGB0CzT.js} +3 -3
  121. package/dist/client/assets/{core.esm-CAA73EV4.js → core.esm-AubJLKZ-.js} +1 -1
  122. package/dist/client/assets/{create-organization-dialog-BLvG9G-Z.js → create-organization-dialog-D5uXvaYq.js} +1 -1
  123. package/dist/client/assets/{delete-copy-CAFEtw8Z.js → delete-copy-CdfctKz4.js} +1 -1
  124. package/dist/client/assets/{device-hint-DgkMhcRQ.js → device-hint-CFgRDD8m.js} +1 -1
  125. package/dist/client/assets/{discover-Cceep_sX.js → discover-DxhSOuBA.js} +1 -1
  126. package/dist/client/assets/{domain-settings-52h_8fKM.js → domain-settings-C9lZyHfM.js} +1 -1
  127. package/dist/client/assets/{drawer-B9PFQFcy.js → drawer-Donq2Zq_.js} +1 -1
  128. package/dist/client/assets/{editor-DZ4pzlHx.js → editor-BRySXv_B.js} +1 -1
  129. package/dist/client/assets/{editor-classes-Cb5f4sl2.js → editor-classes-8qIA7W4N.js} +1 -1
  130. package/dist/client/assets/{empty-message-CXYzekmD.js → empty-message-BAHk-1bK.js} +1 -1
  131. package/dist/client/assets/{empty-state-DMtSEEQ1.js → empty-state-BwFbOlsH.js} +1 -1
  132. package/dist/client/assets/{empty-state-BkAAjXrp.js → empty-state-DDTtYKkY.js} +1 -1
  133. package/dist/client/assets/{experiments-tab-choice-CDm4A9Wq.js → experiments-tab-choice-BM855EvI.js} +1 -1
  134. package/dist/client/assets/{extract-connection-data-u6K4j2aJ.js → extract-connection-data-DsPBwLZT.js} +1 -1
  135. package/dist/client/assets/{feature-gate-DFWAlRCv.js → feature-gate-CEBXLuF8.js} +1 -1
  136. package/dist/client/assets/{feature-paywall-BiIzjBeB.js → feature-paywall-DKb-BDqu.js} +1 -1
  137. package/dist/client/assets/{file-explorer-M__gA7Xu.js → file-explorer-C_M9KHGa.js} +1 -1
  138. package/dist/client/assets/{file-preview-D7WeSAA4.js → file-preview-ekcEL18H.js} +1 -1
  139. package/dist/client/assets/{file-share-button-BtW_yxzc.js → file-share-button-ZGH-qkC_.js} +1 -1
  140. package/dist/client/assets/{file-type-icon-mKSSLPP8.js → file-type-icon-D4Edy8Bo.js} +1 -1
  141. package/dist/client/assets/{folder-icon-DCyvwLH6.js → folder-icon-C46Lx0s6.js} +1 -1
  142. package/dist/client/assets/{form-8HJUl2GV.js → form-DddGN9Yh.js} +1 -1
  143. package/dist/client/assets/{frame-navigation-Bp6fuuV5.js → frame-navigation-HWq_5QB3.js} +1 -1
  144. package/dist/client/assets/{general-C9cj7tJH.js → general-brvHskhD.js} +1 -1
  145. package/dist/client/assets/{github-icon-DEvD-SlA.js → github-icon-CBn2nQtJ.js} +1 -1
  146. package/dist/client/assets/{held-block-view-DRxUlNuB.js → held-block-view-BFXBQ9fK.js} +1 -1
  147. package/dist/client/assets/{home-DR1hV3al.js → home-C--lHJVb.js} +1 -1
  148. package/dist/client/assets/{home-overview-CgBJdfHr.js → home-overview-DaE-41lI.js} +1 -1
  149. package/dist/client/assets/{hosted-reconcile-DH_YtUfF.js → hosted-reconcile-CrIPblfo.js} +1 -1
  150. package/dist/client/assets/{icon-button-CadQrI05.js → icon-button-DYLciVFZ.js} +1 -1
  151. package/dist/client/assets/{index-CcTmEE1N.js → index-BJ5UuERb.js} +1 -1
  152. package/dist/client/assets/{index-yzkfeOP2.js → index-BNwuaZhD.js} +1 -1
  153. package/dist/client/assets/{index-8kUWDN7v.js → index-BZdAVrUU.js} +1 -1
  154. package/dist/client/assets/{index-C1fc6W9Q.js → index-BmYwClLx.js} +1 -1
  155. package/dist/client/assets/{index-DVdV24aR.js → index-BqD88VPt.js} +1 -1
  156. package/dist/client/assets/{index-CWKxkTwy.js → index-CHOxYhnv.js} +43 -43
  157. package/dist/client/assets/{index-t9nYrZiR.js → index-CXvGxxAm.js} +1 -1
  158. package/dist/client/assets/{index-Tvs593C1.js → index-C_bl8gsZ.js} +1 -1
  159. package/dist/client/assets/{index-ButqNodW.js → index-Cqxphjz0.js} +1 -1
  160. package/dist/client/assets/{index-gX7QfQio.js → index-DChf1qbF.js} +1 -1
  161. package/dist/client/assets/{index-BLdRRqFU.js → index-Dk-oU4JL.js} +1 -1
  162. package/dist/client/assets/{index-CzrYE4jE.js → index-DnxJcpC4.js} +1 -1
  163. package/dist/client/assets/{index-C5aoCNXr.js → index-Dz6MGtCy.js} +1 -1
  164. package/dist/client/assets/{index-C9E0iqgh.js → index-Ujlc9MWT.js} +1 -1
  165. package/dist/client/assets/{index-BvGbwvSS.js → index-W-F8Gjme.js} +1 -1
  166. package/dist/client/assets/{index-Bkf6As2Q.js → index-Z4MRwIRr.js} +1 -1
  167. package/dist/client/assets/{index-_sPF1edR.js → index-jntxieqb.js} +1 -1
  168. package/dist/client/assets/{index-redirect-DOlNtcAX.js → index-redirect-Bw8K1uPG.js} +1 -1
  169. package/dist/client/assets/{infiniteQueryObserver-DCK-YXw1.js → infiniteQueryObserver-Sb4-Zoh0.js} +1 -1
  170. package/dist/client/assets/{infra-billing-B-pN25L9.js → infra-billing-B222FxLt.js} +1 -1
  171. package/dist/client/assets/{input-DA-TtdGL.js → input-CHhCTfcg.js} +1 -1
  172. package/dist/client/assets/{input-1NX4JUHA.js → input-rNhKaUqk.js} +3 -3
  173. package/dist/client/assets/{integration-icon-C1bpkd7s.js → integration-icon-CM5LyK_z.js} +1 -1
  174. package/dist/client/assets/{item-actions-kNG-BlG3.js → item-actions-Cdz0dPi_.js} +1 -1
  175. package/dist/client/assets/{jira-icon-CnBOGlR6.js → jira-icon-CgHUBjzE.js} +1 -1
  176. package/dist/client/assets/{label-BXSXPHWU.js → label-B6kbb_qI.js} +1 -1
  177. package/dist/client/assets/{layout-C0J9eFzL.js → layout-8yHvgWm7.js} +1 -1
  178. package/dist/client/assets/{legacy-admin-welcome-dialog-DbVWjlJ6.js → legacy-admin-welcome-dialog-C1EB7MCq.js} +1 -1
  179. package/dist/client/assets/{legacy-agents-deep-DVKmxbFS.js → legacy-agents-deep-BQInfINZ.js} +1 -1
  180. package/dist/client/assets/{legacy-main-redirect-D0wT4Yry.js → legacy-main-redirect-CJKXe_S6.js} +1 -1
  181. package/dist/client/assets/library-CLMpbtIy.js +1 -0
  182. package/dist/client/assets/{library-tab-gK_7g-te.js → library-tab-CW_E0hfE.js} +1 -1
  183. package/dist/client/assets/{login-DnxvVl1t.js → login-CDwczf6C.js} +1 -1
  184. package/dist/client/assets/{markdown-DiEygcQw.js → markdown-Deyw3r6u.js} +1 -1
  185. package/dist/client/assets/{mcp-app-renderer-BbTTGmQC.js → mcp-app-renderer-CEhql9SF.js} +1 -1
  186. package/dist/client/assets/{mcp-oauth-TUUsAJpA.js → mcp-oauth-BQtVOszP.js} +1 -1
  187. package/dist/client/assets/{mcp-oauth-CQGGouuy.js → mcp-oauth-JUy-C_de.js} +1 -1
  188. package/dist/client/assets/{members-nUmVbnC9.js → members-DrjrN5qN.js} +1 -1
  189. package/dist/client/assets/{memory-Blrtbn8a.js → memory-BITIQ7DP.js} +1 -1
  190. package/dist/client/assets/{mock-board-CC-isAOX.js → mock-board-CprpumRW.js} +3 -3
  191. package/dist/client/assets/{monaco-editor-C9ZwdTpU.js → monaco-editor-CRckTkcR.js} +1 -1
  192. package/dist/client/assets/{monitoring-B36SUiOP.js → monitoring-GakxK6v8.js} +1 -1
  193. package/dist/client/assets/{monitoring-stats-row-H3pnSbDz.js → monitoring-stats-row-CCOAzga2.js} +1 -1
  194. package/dist/client/assets/{multi-select-obeT7dRo.js → multi-select-B_Fvyk0J.js} +1 -1
  195. package/dist/client/assets/{mustache-gM754ehf.js → mustache-BGNYir1R.js} +1 -1
  196. package/dist/client/assets/{named-rule-step-W9P9uG-f.js → named-rule-step-WRCKmihp.js} +1 -1
  197. package/dist/client/assets/{named-rule-view-BJLbVNsp.js → named-rule-view-BGKV11Gn.js} +1 -1
  198. package/dist/client/assets/{new-project-dialog-Cfdy4DZo.js → new-project-dialog-C9WcHYrC.js} +1 -1
  199. package/dist/client/assets/{oauth-callback-Cxz67hG6.js → oauth-callback-DG6fghbH.js} +1 -1
  200. package/dist/client/assets/{oauth-callback-ai-provider-Diui0sS6.js → oauth-callback-ai-provider-BjKgNB2f.js} +1 -1
  201. package/dist/client/assets/{oauth-consent-BWS32jU1.js → oauth-consent-C8DnEY1C.js} +1 -1
  202. package/dist/client/assets/{onboarding-Cg2Txb26.js → onboarding-DWuD3Chf.js} +1 -1
  203. package/dist/client/assets/{openai-conversation-CGGu6BWJ.js → openai-conversation-BMcQmBgw.js} +1 -1
  204. package/dist/client/assets/{optimistic-project-sidebar-views-cd4O2LnM.js → optimistic-project-sidebar-views-xEm1EFDd.js} +1 -1
  205. package/dist/client/assets/{order-monitor-day-DrziIuIu.js → order-monitor-day-Cp9FGnxW.js} +1 -1
  206. package/dist/client/assets/{organization-choice-CPef1x_g.js → organization-choice-DC3kAtog.js} +1 -1
  207. package/dist/client/assets/{orgs--h6JaB89.js → orgs-C3ExmEUV.js} +1 -1
  208. package/dist/client/assets/{own-accounts-section-D0sCVz2F.js → own-accounts-section-D0We85Qt.js} +1 -1
  209. package/dist/client/assets/{pair-DbwVEDlq.js → pair-BoFr4FJb.js} +1 -1
  210. package/dist/client/assets/{parse-sections-CMxFIp3d.js → parse-sections-D9GxphKG.js} +2 -2
  211. package/dist/client/assets/plan-Bsk7Zd5h.js +1 -0
  212. package/dist/client/assets/{plan-ladder-XiZUV3-n.js → plan-ladder-D1iTEGuZ.js} +1 -1
  213. package/dist/client/assets/{plan-usage-card-BsCyr1kn.js → plan-usage-card-BJ5m6iCB.js} +1 -1
  214. package/dist/client/assets/{popover-CTEYICXO.js → popover-AfVmBiXN.js} +1 -1
  215. package/dist/client/assets/{post-calendar-DbsJgYWp.js → post-calendar-CuIdS76v.js} +1 -1
  216. package/dist/client/assets/{post-editor-GP7cTHEm.js → post-editor-BnakSlKS.js} +2 -2
  217. package/dist/client/assets/{preview-content-BYvAegAr.js → preview-content-DjjT4V-O.js} +1 -1
  218. package/dist/client/assets/{preview-dialog-tONoLcHy.js → preview-dialog-Ccy0t2uO.js} +1 -1
  219. package/dist/client/assets/{preview-panel-CxdwWGtV.js → preview-panel-lxiY3O14.js} +1 -1
  220. package/dist/client/assets/{preview-tab-BJQS3_gN.js → preview-tab-CqLWllse.js} +3 -3
  221. package/dist/client/assets/{product-picker-dialog-DVmdugXw.js → product-picker-dialog-D8WcSokk.js} +1 -1
  222. package/dist/client/assets/{profile-CFEIL030.js → profile-Drjsxz7t.js} +1 -1
  223. package/dist/client/assets/{project-app-view-DpcLMitT.js → project-app-view-iFxD19E8.js} +1 -1
  224. package/dist/client/assets/{project-apps-T4OBSnxG.js → project-apps-CNXyAUnR.js} +1 -1
  225. package/dist/client/assets/{project-icon-CsM5Xu_3.js → project-icon-D_A1aREs.js} +1 -1
  226. package/dist/client/assets/{project-index-CnwYmkRd.js → project-index-6AmZpE2T.js} +1 -1
  227. package/dist/client/assets/project-reports-Bph27UgY.js +1 -0
  228. package/dist/client/assets/project-tasks-g0DZAutp.js +1 -0
  229. package/dist/client/assets/{projects-D9OLRq0V.js → projects-C-jes6vD.js} +1 -1
  230. package/dist/client/assets/{projects-empty-state-DAdhJyFi.js → projects-empty-state-CzS59zMw.js} +1 -1
  231. package/dist/client/assets/{prompts-hNC_o6uG.js → prompts-Cdt8Hsyk.js} +1 -1
  232. package/dist/client/assets/{record-editor-BUh6IBbj.js → record-editor-CDn5r9vK.js} +1 -1
  233. package/dist/client/assets/{redirect-editor-CRbYvUNE.js → redirect-editor-CjfokzC6.js} +1 -1
  234. package/dist/client/assets/reports-BNOk1CAK.js +1 -0
  235. package/dist/client/assets/{reports-CoqdbgJH.js → reports-W44854hR.js} +1 -1
  236. package/dist/client/assets/{reports-onboarding-B8pLePIS.js → reports-onboarding-B8EBbkkq.js} +1 -1
  237. package/dist/client/assets/{reports-tab-BTcGlLJG.js → reports-tab-CAQtX43j.js} +2 -2
  238. package/dist/client/assets/repositories-Bh3IcyhH.js +1 -0
  239. package/dist/client/assets/{repositories-cxta7jGt.js → repositories-DKNamez0.js} +1 -1
  240. package/dist/client/assets/{repository-binding-DScgU6HN.js → repository-binding-zOZEsVNQ.js} +1 -1
  241. package/dist/client/assets/{repository-picker-BUWqEoln.js → repository-picker-DQ8Ce_c3.js} +1 -1
  242. package/dist/client/assets/{require-capability-Cqs162cO.js → require-capability-DR3oejOb.js} +1 -1
  243. package/dist/client/assets/{required-auth-layout-BiIyXd3D.js → required-auth-layout-D8CrwDut.js} +1 -1
  244. package/dist/client/assets/{reset-password-da4PvhID.js → reset-password-DMlXhive.js} +1 -1
  245. package/dist/client/assets/{resizable-Bf-xwR0k.js → resizable-DOkGVAXY.js} +1 -1
  246. package/dist/client/assets/{resolve-tab-icon-CGJDnTEl.js → resolve-tab-icon-w8xgbNJA.js} +1 -1
  247. package/dist/client/assets/review-settings-CYZdQlMs.js +1 -0
  248. package/dist/client/assets/{role-color-C7dBdDUi.js → role-color-Dmigi-fS.js} +1 -1
  249. package/dist/client/assets/{roles-z96sRIvs.js → roles-LwSdhOgS.js} +1 -1
  250. package/dist/client/assets/route-Bq6SpTLT.js +1 -0
  251. package/dist/client/assets/{route-D7eWiLEQ.js → route-CxYCV9F1.js} +1 -1
  252. package/dist/client/assets/{route-UFlyMaLZ.js → route-DoHag-FN.js} +1 -1
  253. package/dist/client/assets/{sandbox-lifecycle-context-DY2xu0Uo.js → sandbox-lifecycle-context-DrAhvgSp.js} +1 -1
  254. package/dist/client/assets/{save-status-DshwUBI8.js → save-status-CzYNQ6G2.js} +1 -1
  255. package/dist/client/assets/{schema-DWYnTC39.js → schema-BB8zKrPl.js} +1 -1
  256. package/dist/client/assets/{schema-DUByfd2Y.js → schema-Cf58u1YZ.js} +1 -1
  257. package/dist/client/assets/{scroll-area-EO9hsjie.js → scroll-area-w2Fr7CkP.js} +1 -1
  258. package/dist/client/assets/{search-input-Dc1w2xyv.js → search-input-CxzHzt1i.js} +1 -1
  259. package/dist/client/assets/{search-toggle-BZIowSkC.js → search-toggle-NGBAT2W1.js} +1 -1
  260. package/dist/client/assets/{secret-picker-t9uXEG8-.js → secret-picker-B1Sm2AGS.js} +1 -1
  261. package/dist/client/assets/{secrets-CPHCsh_T.js → secrets-BnQFmasl.js} +1 -1
  262. package/dist/client/assets/{section-array-field-BFg67nYp.js → section-array-field-D7aYRyOo.js} +1 -1
  263. package/dist/client/assets/{sections-CrmI_GQr.js → sections-BB3EA9UD.js} +1 -1
  264. package/dist/client/assets/{sections-editor-CrXI2Bvd.js → sections-editor-CgPW71Cu.js} +1 -1
  265. package/dist/client/assets/{select-model-_wNlq-Z9.js → select-model-DRmGTTKK.js} +1 -1
  266. package/dist/client/assets/{select-CWL8C0Pw.js → select-oOpcW8y8.js} +1 -1
  267. package/dist/client/assets/{seo-editor-B3mQn1CH.js → seo-editor-CHYDqTFC.js} +1 -1
  268. package/dist/client/assets/{separator-Cyq4ZO_K.js → separator-kcuCI0BI.js} +1 -1
  269. package/dist/client/assets/settings-tab-vjcKSXb3.js +1 -0
  270. package/dist/client/assets/{sheet-Bqz29cSo.js → sheet-B4sQvcZD.js} +1 -1
  271. package/dist/client/assets/{shell-layout-DVIwCYxA.js → shell-layout-C4gugWKg.js} +1 -1
  272. package/dist/client/assets/{site-draft-actions-DQ2Ndjsf.js → site-draft-actions-DpgDCYG8.js} +1 -1
  273. package/dist/client/assets/{site-draft-view-CIEvFlZ7.js → site-draft-view-BZ84hckI.js} +1 -1
  274. package/dist/client/assets/site-editor-BJf_n_54.js +1 -0
  275. package/dist/client/assets/site-editor-toast-CPe_RO4U.js +1 -0
  276. package/dist/client/assets/{skills-0h7pumIQ.js → skills-CUzlP_yL.js} +1 -1
  277. package/dist/client/assets/{slider-GCMZAdst.js → slider-DMICv7y9.js} +1 -1
  278. package/dist/client/assets/{sortable.esm-CYzspn3s.js → sortable.esm-DMidKm69.js} +1 -1
  279. package/dist/client/assets/{sso-Ca2H_kJv.js → sso-rrH5Y6U0.js} +1 -1
  280. package/dist/client/assets/{suggestion-CppSMZxc.js → suggestion-D5SniAVu.js} +1 -1
  281. package/dist/client/assets/{super-agent-icon-Dq0ZAaMf.js → super-agent-icon-CDMKv4pz.js} +1 -1
  282. package/dist/client/assets/{switch-DBO_GrNe.js → switch-DCbfNrSN.js} +1 -1
  283. package/dist/client/assets/{synced-repos-BTn3MABM.js → synced-repos-_SlW524E.js} +1 -1
  284. package/dist/client/assets/{tab-icon-glyph-BaeBTavE.js → tab-icon-glyph-BmobLy_7.js} +1 -1
  285. package/dist/client/assets/{table-xCmpwB0s.js → table-BdoV93HO.js} +1 -1
  286. package/dist/client/assets/{tabs-rkhPwLiJ.js → tabs-CGFgLwIj.js} +1 -1
  287. package/dist/client/assets/{task-board-D7RCmGkN.js → task-board--eP68xys.js} +1 -1
  288. package/dist/client/assets/{task-route-BJeZEOaQ.js → task-route-Btx_tQTg.js} +1 -1
  289. package/dist/client/assets/{task-status-ISwbNtXh.js → task-status-BvghF77r.js} +1 -1
  290. package/dist/client/assets/{taskboard-analytics-B3vmd83_.js → taskboard-analytics-BZAQkd-b.js} +1 -1
  291. package/dist/client/assets/tasks-BNPmBOf9.js +1 -0
  292. package/dist/client/assets/{tasks-BLz1W4rF.js → tasks-C8a0rX7H.js} +1 -1
  293. package/dist/client/assets/{textarea-CvY2QE-l.js → textarea-DiKdmgZC.js} +1 -1
  294. package/dist/client/assets/{thread-analytics-DmP3G179.js → thread-analytics-D3z89Y54.js} +1 -1
  295. package/dist/client/assets/{thread-intent-0TjSPqLd.js → thread-intent-otNmUDpT.js} +1 -1
  296. package/dist/client/assets/{thread-route-BbSych2c.js → thread-route-CVZs3lS7.js} +1 -1
  297. package/dist/client/assets/{thread-route-4ZjlovaL.js → thread-route-CkasfYkE.js} +1 -1
  298. package/dist/client/assets/{thread-sheet-body-JQX8n1oy.js → thread-sheet-body-DcJJrL4A.js} +1 -1
  299. package/dist/client/assets/{time-range-picker-Bcp8sqUk.js → time-range-picker-DBVsSx_d.js} +1 -1
  300. package/dist/client/assets/{toggle-group-BPubP3Pi.js → toggle-group-DWJu5FLK.js} +1 -1
  301. package/dist/client/assets/{tool-namespace-c-MaHIy3.js → tool-namespace-BOC8taOg.js} +1 -1
  302. package/dist/client/assets/{tool-set-selector-qnchAzSg.js → tool-set-selector-BA1yDuio.js} +1 -1
  303. package/dist/client/assets/{toolbar-icon-button-DqW_CkJO.js → toolbar-icon-button-Q9J4as0k.js} +1 -1
  304. package/dist/client/assets/{tooltip-mM1fQXaq.js → tooltip-D2JXB44W.js} +1 -1
  305. package/dist/client/assets/{tooltipContext-B2y0_sWP.js → tooltipContext-DFFEsXAa.js} +1 -1
  306. package/dist/client/assets/{track-XkKLQQJT.js → track-BoXXDgSF.js} +1 -1
  307. package/dist/client/assets/{types-E9_eqrxO.js → types-BQyA3BSs.js} +1 -1
  308. package/dist/client/assets/{url-slug-BVpN8K6B.js → url-slug-C5-8vP9h.js} +1 -1
  309. package/dist/client/assets/{usage-stats-DT9jvl-J.js → usage-stats-PiJNBrSI.js} +1 -1
  310. package/dist/client/assets/{use-ai-providers-Bku85sJ3.js → use-ai-providers-BJRvsFFm.js} +1 -1
  311. package/dist/client/assets/{use-apply-named-rule-Bwm7LB-d.js → use-apply-named-rule-Bx_7T9aq.js} +1 -1
  312. package/dist/client/assets/use-ask-in-chat-BbPdenM-.js +1 -0
  313. package/dist/client/assets/{use-automations-D9iFnWhp.js → use-automations-D6sbYMe4.js} +1 -1
  314. package/dist/client/assets/{use-autosave-CLbBIg-P.js → use-autosave-B4Qmzq9F.js} +1 -1
  315. package/dist/client/assets/use-blocks-v8-project-D8GbwCrf.js +1 -0
  316. package/dist/client/assets/{use-chat-layout-state-Cbkyo6cP.js → use-chat-layout-state-Do_nZB5B.js} +1 -1
  317. package/dist/client/assets/{use-cms-publish-actions-XYKTfqt2.js → use-cms-publish-actions-xdyGorKy.js} +1 -1
  318. package/dist/client/assets/{use-connect-companion-DCIdJC0W.js → use-connect-companion-vyHul4nj.js} +1 -1
  319. package/dist/client/assets/{use-connection-CLoaxXGr.js → use-connection-D0bmffUK.js} +1 -1
  320. package/dist/client/assets/{use-content-sync-14ry1gRC.js → use-content-sync-lsuVBOfK.js} +1 -1
  321. package/dist/client/assets/{use-copy-D3ELC0tX.js → use-copy-BMjPWKp8.js} +1 -1
  322. package/dist/client/assets/{use-date-fns-locale-DU1bARSL.js → use-date-fns-locale-BGBBIFpr.js} +1 -1
  323. package/dist/client/assets/{use-debounced-autosave-Dxp05968.js → use-debounced-autosave-7L7lz31t.js} +1 -1
  324. package/dist/client/assets/{use-debounced-value-CgYJanEq.js → use-debounced-value-CoBOVCcY.js} +1 -1
  325. package/dist/client/assets/{use-deco-credits-DlgC2mIc.js → use-deco-credits-DVIvAOkL.js} +1 -1
  326. package/dist/client/assets/{use-decopilot-events-DhxeqkWl.js → use-decopilot-events-Bvlss2N9.js} +1 -1
  327. package/dist/client/assets/{use-delete-block-BJD7162e.js → use-delete-block-C97xuHhI.js} +1 -1
  328. package/dist/client/assets/{use-delete-connection-DtzGQTsr.js → use-delete-connection-tX5LcknK.js} +1 -1
  329. package/dist/client/assets/{use-deployment-admin-8guQU4GC.js → use-deployment-admin-BLMaSYC-.js} +1 -1
  330. package/dist/client/assets/{use-entitlements-J4XPZF2l.js → use-entitlements-npCYsfMp.js} +1 -1
  331. package/dist/client/assets/{use-fast-preview-draft-url-BX0PGrG_.js → use-fast-preview-draft-url-Dd9sZXW3.js} +1 -1
  332. package/dist/client/assets/{use-file-configs-DngvlIXa.js → use-file-configs-H9DeMtGB.js} +1 -1
  333. package/dist/client/assets/{use-id-selection-Dkbf-QZH.js → use-id-selection-DwyVyKTM.js} +1 -1
  334. package/dist/client/assets/{use-inbox-feed-b7aNeh2-.js → use-inbox-feed-CrWtaQnK.js} +1 -1
  335. package/dist/client/assets/{use-infinite-scroll-BWIp-OKY.js → use-infinite-scroll-6BCwcRG9.js} +1 -1
  336. package/dist/client/assets/{use-join-requests-CdvnKUpu.js → use-join-requests-B4f6m6mx.js} +1 -1
  337. package/dist/client/assets/{use-main-panel-tabs-i0OC0oRI.js → use-main-panel-tabs-CRM1n__j.js} +1 -1
  338. package/dist/client/assets/{use-mcp-auth-status-CxxAbIdU.js → use-mcp-auth-status-C-7pHlxN.js} +1 -1
  339. package/dist/client/assets/{use-mcp-client-CmWEhN6T.js → use-mcp-client-CAI0PiRc.js} +1 -1
  340. package/dist/client/assets/{use-mcp-prompts-RB8yW0_L.js → use-mcp-prompts-DqQEh2Qr.js} +1 -1
  341. package/dist/client/assets/{use-mcp-tools-Bfew76Ae.js → use-mcp-tools-DTs06gsh.js} +1 -1
  342. package/dist/client/assets/{use-mobile-BZ5I1Gts.js → use-mobile-DlyIeamj.js} +1 -1
  343. package/dist/client/assets/{use-move-blocks-a-Gpcz1Q.js → use-move-blocks-CfkVWpoJ.js} +1 -1
  344. package/dist/client/assets/{use-navigate-to-agent-CMbT8SLE.js → use-navigate-to-agent-rf_XQPo1.js} +1 -1
  345. package/dist/client/assets/{use-never-published-Cq663vOp.js → use-never-published-DP-ayb_U.js} +1 -1
  346. package/dist/client/assets/{use-org-fs-D8fqy59B.js → use-org-fs-DzWj7Jta.js} +1 -1
  347. package/dist/client/assets/{use-org-repo-syncs-D0tdQJ2P.js → use-org-repo-syncs-0oF8-eI-.js} +1 -1
  348. package/dist/client/assets/{use-org-sso-D-kGbeq_.js → use-org-sso-Bz3FXaUK.js} +1 -1
  349. package/dist/client/assets/{use-organization-settings-BZz5ibUN.js → use-organization-settings-04SG-hKv.js} +1 -1
  350. package/dist/client/assets/{use-project-native-view-presence-BbI14MhH.js → use-project-native-view-presence-C642E_7q.js} +1 -1
  351. package/dist/client/assets/{use-project-scope-3ijTexFj.js → use-project-scope-BTU4ukSL.js} +1 -1
  352. package/dist/client/assets/{use-recent-apps-CWPH7SDm.js → use-recent-apps-Bh-9Swg8.js} +1 -1
  353. package/dist/client/assets/{use-reports-diagnostic-V-qftvBJ.js → use-reports-diagnostic-C6P63hrA.js} +1 -1
  354. package/dist/client/assets/{use-sandbox-events-CBP-Uwww.js → use-sandbox-events-BgsP-jl-.js} +1 -1
  355. package/dist/client/assets/{use-secrets-CfMZEME2.js → use-secrets-CL1K9zBu.js} +1 -1
  356. package/dist/client/assets/{use-section-preview-base-DxIpbqPr.js → use-section-preview-base-DiLHxC8Z.js} +1 -1
  357. package/dist/client/assets/{use-sidebar-collapsed-Cbxz0vjB.js → use-sidebar-collapsed-D-c-hbM9.js} +1 -1
  358. package/dist/client/assets/{use-tags-DTSxZWpz.js → use-tags-0c8J6MeW.js} +1 -1
  359. package/dist/client/assets/{use-task-board-analytics-BKNhIlpV.js → use-task-board-analytics-Bp8Wbi_t.js} +1 -1
  360. package/dist/client/assets/{use-task-board-events-MfMFlaj-.js → use-task-board-events-BC3zf7YM.js} +1 -1
  361. package/dist/client/assets/{use-task-board-item-prs-i0iDRtks.js → use-task-board-item-prs-BByRm2Es.js} +1 -1
  362. package/dist/client/assets/{use-task-board-items-6-h_Haer.js → use-task-board-items-BhZCRvwX.js} +1 -1
  363. package/dist/client/assets/{use-task-board-prompts-BzepMvGT.js → use-task-board-prompts-BRt0XfbY.js} +1 -1
  364. package/dist/client/assets/{use-task-metadata-CkJg1Id-.js → use-task-metadata-DK9jGytt.js} +1 -1
  365. package/dist/client/assets/{use-thread-outputs-DegzudvH.js → use-thread-outputs-DcXhIS9K.js} +1 -1
  366. package/dist/client/assets/{use-view-draft-kind-BQ4N5uEB.js → use-view-draft-kind-By-WcYfU.js} +1 -1
  367. package/dist/client/assets/{use-voice-input-vD0BpiqU.js → use-voice-input-Bt11fXlC.js} +1 -1
  368. package/dist/client/assets/useInfiniteQuery-Cr6l3hRz.js +1 -0
  369. package/dist/client/assets/{useQueries-D6BmTkII.js → useQueries-tOLR6QE3.js} +1 -1
  370. package/dist/client/assets/useSuspenseInfiniteQuery-BEaEPCKW.js +1 -0
  371. package/dist/client/assets/{users-RduqDlHV.js → users-BW_rkyv3.js} +1 -1
  372. package/dist/client/assets/{utils-CkU_P8Ie.js → utils-2an1bWl1.js} +1 -1
  373. package/dist/client/assets/{variant-calendar-1rTVvyAx.js → variant-calendar-7xv9ohqO.js} +1 -1
  374. package/dist/client/assets/{variant-matcher-override-B3zGkPXZ.js → variant-matcher-override-CGi_ZY_N.js} +1 -1
  375. package/dist/client/assets/{view-header-B-Vek7fH.js → view-header-DkkNDHNd.js} +1 -1
  376. package/dist/client/assets/{virtual-mcp-DPJ0M-HO.js → virtual-mcp-D-PJ7-_0.js} +1 -1
  377. package/dist/client/assets/{watch-sse-pool-DqTWfbxM.js → watch-sse-pool-Gp1E8HHl.js} +1 -1
  378. package/dist/client/index.html +1 -1
  379. package/dist/server/migrate.js +245 -245
  380. package/dist/server/server.js +749 -748
  381. package/package.json +1 -1
  382. package/dist/client/assets/UserSquare-CBWDFbi3.js +0 -1
  383. package/dist/client/assets/agent-app-DClrb2ok.js +0 -1
  384. package/dist/client/assets/agent-deck-BQ_G3Xvk.js +0 -1
  385. package/dist/client/assets/agent-experiments-B7tgn9fP.js +0 -1
  386. package/dist/client/assets/agent-hosting-DmUbTOe2.js +0 -1
  387. package/dist/client/assets/agent-icon-BwEytdmh.js +0 -1
  388. package/dist/client/assets/agent-library-BhTWSN-a.js +0 -1
  389. package/dist/client/assets/agent-library-file-C9nXPWjk.js +0 -1
  390. package/dist/client/assets/agent-overview-gQqe-_Zq.js +0 -1
  391. package/dist/client/assets/agent-settings-BZlQcdRN.js +0 -1
  392. package/dist/client/assets/agent-site-editor-code-D3XwSBBo.js +0 -2
  393. package/dist/client/assets/agent-site-editor-content-5EK8c-yC.js +0 -1
  394. package/dist/client/assets/agent-site-editor-preview-DtbJe_5m.js +0 -1
  395. package/dist/client/assets/agent-view-DJh235b7.js +0 -1
  396. package/dist/client/assets/api-keys-PaXWWj2O.js +0 -1
  397. package/dist/client/assets/library-sYbbN7ux.js +0 -1
  398. package/dist/client/assets/plan-1pM1JHac.js +0 -1
  399. package/dist/client/assets/project-reports-Bsj_xvMI.js +0 -1
  400. package/dist/client/assets/project-tasks-BGrqP4mL.js +0 -1
  401. package/dist/client/assets/reports-D5qXQXTJ.js +0 -1
  402. package/dist/client/assets/repositories-Cb1lXF50.js +0 -1
  403. package/dist/client/assets/review-settings-Ulx4CyPZ.js +0 -1
  404. package/dist/client/assets/route-CNldsqd_.js +0 -1
  405. package/dist/client/assets/settings-tab-CDHhpvzE.js +0 -1
  406. package/dist/client/assets/site-editor-C927WhHx.js +0 -1
  407. package/dist/client/assets/site-editor-toast-BLqoqKy_.js +0 -1
  408. package/dist/client/assets/tasks-hZ3cVL1W.js +0 -1
  409. package/dist/client/assets/use-ask-in-chat-C5w0G3Ru.js +0 -1
  410. package/dist/client/assets/use-blocks-v8-project-BTQz7erp.js +0 -1
  411. package/dist/client/assets/useInfiniteQuery-njPYFTao.js +0 -1
  412. package/dist/client/assets/useSuspenseInfiniteQuery-CSPS7F0z.js +0 -1
@@ -1 +1 @@
1
- import{c as f,a4 as g,ak as P,K as _,i as y,m as h,j as d}from"./index-CWKxkTwy.js";import{u as A}from"./use-entitlements-J4XPZF2l.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(p))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function p(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function k(){const e=f.c(8),{org:t}=g(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function q(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function D(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:x}=S(a);n=b,s="0 0 16 16",r="true",c=h("size-8 shrink-0",x,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,D as P,w as S,I as a,q as b,v as f,O as i,R as p,k as u};
1
+ import{c as f,a4 as g,ak as P,K as _,i as y,m as h,j as d}from"./index-CHOxYhnv.js";import{u as A}from"./use-entitlements-npCYsfMp.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(p))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function p(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function k(){const e=f.c(8),{org:t}=g(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function q(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function D(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:x}=S(a);n=b,s="0 0 16 16",r="true",c=h("size-8 shrink-0",x,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,D as P,w as S,I as a,q as b,v as f,O as i,R as p,k as u};
@@ -1,4 +1,4 @@
1
- import{r as Y,j as s,dT as me,hP as ye,c as G,m as X,bX as Pe,b as q,a4 as se,ak as Z,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aH as we,aI as Ee,aJ as Ie,aK as Ae,b5 as Ue,aL as Te,aM as De,aN as $e,ge as le,gT as ne,i as xe,dY as pe,b3 as Re,aq as Be,as as Le,L as ke,gD as He}from"./index-CWKxkTwy.js";import{s as Oe}from"./Plus-Bq5KiXqn.js";import{B as Fe}from"./badge-DbKUf3vA.js";import{a as Me,b as ze,P as Ve}from"./popover-CTEYICXO.js";import{T as ce,a as Ge}from"./toggle-group-BPubP3Pi.js";import{g as Ke}from"./use-ai-providers-Bku85sJ3.js";import{u as ie,d as he,a as qe}from"./use-entitlements-J4XPZF2l.js";import{u as Qe,P as Ye}from"./plan-ladder-XiZUV3-n.js";var re="Progress",oe=100,[Xe]=ye(re),[Ze,Je]=Xe(re),ve=Y.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:a,getValueLabel:l=We,...c}=e;(a||a===0)&&!de(a)&&console.error(et(`${a}`,"Progress"));const i=de(a)?a:oe;o!==null&&!ue(o,i)&&console.error(tt(`${o}`,"Progress"));const r=ue(o,i)?o:null,u=te(r)?l(r,i):void 0;return s.jsx(Ze,{scope:n,value:r,max:i,children:s.jsx(me.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":te(r)?r:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ne(r,i),"data-value":r??void 0,"data-max":i,...c,ref:t})})});ve.displayName=re;var be="ProgressIndicator",je=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Je(be,n);return s.jsx(me.div,{"data-state":Ne(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:t})});je.displayName=be;function We(e,t){return`${Math.round(e/t*100)}%`}function Ne(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function te(e){return typeof e=="number"}function de(e){return te(e)&&!isNaN(e)&&e>0}function ue(e,t){return te(e)&&!isNaN(e)&&e<=t&&e>=0}function et(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${oe}\`.`}function tt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1
+ import{r as Y,j as s,dT as me,hP as ye,c as G,m as X,bX as Pe,b as q,a4 as se,ak as Z,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aH as we,aI as Ee,aJ as Ie,aK as Ae,b5 as Ue,aL as Te,aM as De,aN as $e,ge as le,gT as ne,i as xe,dY as pe,b3 as Re,aq as Be,as as Le,L as ke,gD as He}from"./index-CHOxYhnv.js";import{s as Oe}from"./Plus-jqQtsDrV.js";import{B as Fe}from"./badge-lysbeP9P.js";import{a as Me,b as ze,P as Ve}from"./popover-AfVmBiXN.js";import{T as ce,a as Ge}from"./toggle-group-DWJu5FLK.js";import{g as Ke}from"./use-ai-providers-BJRvsFFm.js";import{u as ie,d as he,a as qe}from"./use-entitlements-npCYsfMp.js";import{u as Qe,P as Ye}from"./plan-ladder-D1iTEGuZ.js";var re="Progress",oe=100,[Xe]=ye(re),[Ze,Je]=Xe(re),ve=Y.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:a,getValueLabel:l=We,...c}=e;(a||a===0)&&!de(a)&&console.error(et(`${a}`,"Progress"));const i=de(a)?a:oe;o!==null&&!ue(o,i)&&console.error(tt(`${o}`,"Progress"));const r=ue(o,i)?o:null,u=te(r)?l(r,i):void 0;return s.jsx(Ze,{scope:n,value:r,max:i,children:s.jsx(me.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":te(r)?r:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ne(r,i),"data-value":r??void 0,"data-max":i,...c,ref:t})})});ve.displayName=re;var be="ProgressIndicator",je=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Je(be,n);return s.jsx(me.div,{"data-state":Ne(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:t})});je.displayName=be;function We(e,t){return`${Math.round(e/t*100)}%`}function Ne(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function te(e){return typeof e=="number"}function de(e){return te(e)&&!isNaN(e)&&e>0}function ue(e,t){return te(e)&&!isNaN(e)&&e<=t&&e>=0}function et(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${oe}\`.`}function tt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
2
  - a positive number
3
3
  - less than the value passed to \`max\` (or ${oe} if no \`max\` prop is set)
4
4
  - \`null\` or \`undefined\` if the progress is indeterminate.
@@ -1 +1 @@
1
- import{r as l,c1 as _,j as c,c3 as j,c4 as x,c2 as b,b_ as z,b$ as G,c0 as H,c8 as w,ch as K,dZ as E,cc as Z,ce as U,ci as V,cd as W,cf as q,cg as B,cj as J,ck as Q,c6 as X,c as R,m as Y}from"./index-CWKxkTwy.js";var A="Popover",[N]=K(A,[w]),m=w(),[ee,P]=N(A),F=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=m(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};F.displayName=A;var y="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(y,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(b,{...s,...r,ref:e})});S.displayName=y;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=m(o),a=_(e,n.triggerRef),i=c.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(b,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),k=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(E,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};k.displayName=O;var h="PopoverContent",T=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(E,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});T.displayName=h;var re=V("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=_(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return Z(a)},[]),c.jsx(U,{as:re,allowPinchZoom:!0,children:c.jsx(I,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(I,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),I=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=m(o);return W(),c.jsx(q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(J,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(j.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=m(o);return c.jsx(Q,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=F,pe=S,de=M,ue=k,fe=T;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let C;return e[16]!==r||e[17]!==d?(C=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=C):C=e[18],C}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
1
+ import{r as l,c1 as _,j as c,c3 as j,c4 as x,c2 as b,b_ as z,b$ as G,c0 as H,c8 as w,ch as K,dZ as E,cc as Z,ce as U,ci as V,cd as W,cf as q,cg as B,cj as J,ck as Q,c6 as X,c as R,m as Y}from"./index-CHOxYhnv.js";var A="Popover",[N]=K(A,[w]),m=w(),[ee,P]=N(A),F=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=m(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};F.displayName=A;var y="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(y,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(b,{...s,...r,ref:e})});S.displayName=y;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=m(o),a=_(e,n.triggerRef),i=c.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(b,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),k=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(E,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};k.displayName=O;var h="PopoverContent",T=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(E,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});T.displayName=h;var re=V("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=_(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return Z(a)},[]),c.jsx(U,{as:re,allowPinchZoom:!0,children:c.jsx(I,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(I,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),I=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=m(o);return W(),c.jsx(q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(J,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(j.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=m(o);return c.jsx(Q,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=F,pe=S,de=M,ue=k,fe=T;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let C;return e[16]!==r||e[17]!==d?(C=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=C):C=e[18],C}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
@@ -1 +1 @@
1
- import{c as se,b as pe,r as ae,J as je,j as t,m as te,B as ee,as as Ce}from"./index-CWKxkTwy.js";import{R as Ne,F as De}from"./agent-icon-BwEytdmh.js";import{s as ke}from"./Plus-Bq5KiXqn.js";import{S as Se}from"./scroll-area-EO9hsjie.js";import{c as we,s as Te,b as ce,a as de}from"./date-utils-CrvIKg-s.js";import{M as ze}from"./category-tree-Cm0a3nBT.js";import{g as Ee,d as Me}from"./item-actions-kNG-BlG3.js";import"./AlertCircle-Bj2NuHQY.js";import"./Tool01-DAYJL0v-.js";import"./ArrowUp-AwRcCsuH.js";import"./ArrowLeft-DCMq103h.js";import"./LinkBroken01-DjOOxf0e.js";import"./BookOpen01-D2g_6Ti1.js";import"./Globe04-BBKBtEaK.js";import"./CheckCircle-BfCYdSA_.js";import"./ChevronUp-JSFuaLqF.js";import"./ChevronSelectorVertical-Bwduw2Hp.js";import"./UserSquare-CBWDFbi3.js";import"./CreditCard01-DsaJOWgX.js";import"./SwitchHorizontal01-CP6L8rlm.js";import"./Key01-BTIXWKkS.js";import"./Minus-BAq-AD33.js";import"./Monitor01-CqtNhdJN.js";import"./Sun-C5iV1Zpq.js";import"./Play-kmXfE4Am.js";import"./SearchMd-D1P7yVqT.js";import"./ShoppingBag01-CAQ4NRTU.js";import"./Trash01-Dt7pyOwE.js";import"./Upload01-CZ2h76oj.js";import"./Users01-BZzvQda-.js";import"./XClose-D2u966Hj.js";import"./Zap-CDj8jJFt.js";import"./index-BdQq_4o_.js";import"./empty-message-CXYzekmD.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DbwVEDlq.js";import"./collapsible-CVtLl5wO.js";import"./use-copy-D3ELC0tX.js";import"./usage-stats-DT9jvl-J.js";import"./tool-namespace-c-MaHIy3.js";import"./form-8HJUl2GV.js";import"./label-BXSXPHWU.js";import"./utils-CVEq3hMx.js";import"./markdown-DiEygcQw.js";import"./chat-context-D8Eje7xK.js";import"./use-view-draft-kind-BQ4N5uEB.js";import"./thread-route-BbSych2c.js";import"./use-project-scope-3ijTexFj.js";import"./repository-binding-DScgU6HN.js";import"./use-mcp-client-CmWEhN6T.js";import"./auth-DFCgioOs.js";import"./use-organization-settings-BZz5ibUN.js";import"./schema-DWYnTC39.js";import"./task-board-D7RCmGkN.js";import"./thread-intent-0TjSPqLd.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DqTWfbxM.js";import"./use-entitlements-J4XPZF2l.js";import"./use-ai-providers-Bku85sJ3.js";import"./use-decopilot-events-DhxeqkWl.js";import"./use-mobile-BZ5I1Gts.js";import"./tooltip-mM1fQXaq.js";import"./index-8kUWDN7v.js";import"./shell-layout-DVIwCYxA.js";import"./use-deployment-admin-8guQU4GC.js";import"./admin-fetch-BhTJlAsX.js";import"./command-BOSLOC8n.js";import"./index-yzkfeOP2.js";import"./integration-icon-C1bpkd7s.js";import"./project-icon-CsM5Xu_3.js";import"./use-navigate-to-agent-CMbT8SLE.js";import"./use-debounced-value-CgYJanEq.js";import"./new-project-dialog-Cfdy4DZo.js";import"./repository-picker-BUWqEoln.js";import"./github-icon-DEvD-SlA.js";import"./useInfiniteQuery-njPYFTao.js";import"./infiniteQueryObserver-DCK-YXw1.js";import"./collection-search-CC2QUXh2.js";import"./legacy-admin-welcome-dialog-DbVWjlJ6.js";import"./drawer-B9PFQFcy.js";import"./required-auth-layout-BiIyXd3D.js";import"./use-org-sso-D-kGbeq_.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BbTTGmQC.js";import"./types-E9_eqrxO.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-Bqz29cSo.js";import"./use-connection-CLoaxXGr.js";import"./use-mcp-prompts-RB8yW0_L.js";import"./use-thread-outputs-DegzudvH.js";import"./file-type-icon-mKSSLPP8.js";import"./section-array-field-BFg67nYp.js";import"./blocks-tab-states-BUfMyINR.js";import"./site-editor-toast-BLqoqKy_.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-CBP-Uwww.js";import"./use-blocks-v8-project-BTQz7erp.js";import"./use-voice-input-vD0BpiqU.js";import"./popover-CTEYICXO.js";import"./index-C9E0iqgh.js";import"./checkbox-CCw3an34.js";import"./select-CWL8C0Pw.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-CkU_P8Ie.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-BkAAjXrp.js";import"./use-move-blocks-a-Gpcz1Q.js";import"./hosted-reconcile-DH_YtUfF.js";import"./badge-DbKUf3vA.js";import"./empty-state-DMtSEEQ1.js";import"./delete-copy-CAFEtw8Z.js";import"./use-never-published-Cq663vOp.js";import"./search-input-Dc1w2xyv.js";import"./tabs-rkhPwLiJ.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-DngvlIXa.js";import"./asset-utils-DSh1-4fR.js";import"./index-C1fc6W9Q.js";import"./textarea-CvY2QE-l.js";import"./monaco-editor-C9ZwdTpU.js";import"./editor-DZ4pzlHx.js";const fe="border-success/30 bg-success/10 text-success hover:bg-success/20",xe="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function Vr(h){const e=se.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:n,onReschedule:s,isCreating:D}=h,i=D===void 0?!1:D,r=pe(),[j,C]=ae.useState(null),[re]=je(),[m,f]=ae.useState(Ie),p=re.language;let N;e[0]!==m||e[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(m),e[0]=m,e[1]=p,e[2]=N):N=e[2];const y=N;let x,u,l,c,v,k,S,w,T,z;if(e[3]!==m||e[4]!==b||e[5]!==j||e[6]!==i||e[7]!==p||e[8]!==y||e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==d||e[13]!==r){const ue=new Intl.DateTimeFormat(p,{weekday:"short"}),ge=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:he,undated:oe}=Ee(ze(b)),ie=we(m),be=Te(new Date);u="flex h-full w-full flex-col";let G;e[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ce(new Date)),e[24]=G):G=e[24];let I;e[25]!==r?(I=r("sandbox.postCalendar.today"),e[25]=r,e[26]=I):I=e[26];let H;e[27]!==I?(H=t.jsx(ee,{variant:"outline",size:"sm",onClick:G,children:I}),e[27]=I,e[28]=H):H=e[28];let Q;e[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Le),e[29]=Q):Q=e[29];let U;e[30]!==r?(U=r("sandbox.postCalendar.previous"),e[30]=r,e[31]=U):U=e[31];let V;e[32]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(De,{size:16}),e[32]=V):V=e[32];let _;e[33]!==U?(_=t.jsx(ee,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),e[33]=U,e[34]=_):_=e[34];let X;e[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Pe),e[35]=X):X=e[35];let $;e[36]!==r?($=r("sandbox.postCalendar.next"),e[36]=r,e[37]=$):$=e[37];let Y;e[38]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(Ce,{size:16}),e[38]=Y):Y=e[38];let F;e[39]!==$?(F=t.jsx(ee,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),e[39]=$,e[40]=F):F=e[40];let O;e[41]!==y?(O=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),e[41]=y,e[42]=O):O=e[42];let R;e[43]!==r?(R=r("sandbox.postCalendar.legendScheduled"),e[43]=r,e[44]=R):R=e[44];let B;e[45]!==R?(B=t.jsx(ne,{className:fe,label:R}),e[45]=R,e[46]=B):B=e[46];let A;e[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),e[47]=r,e[48]=A):A=e[48];let K;e[49]!==A?(K=t.jsx(ne,{className:xe,label:A}),e[49]=A,e[50]=K):K=e[50];let W;e[51]!==B||e[52]!==K?(W=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[B,K]}),e[51]=B,e[52]=K,e[53]=W):W=e[53],e[54]!==H||e[55]!==_||e[56]!==F||e[57]!==O||e[58]!==W?(l=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,F,O,W]}),e[54]=H,e[55]=_,e[56]=F,e[57]=O,e[58]=W,e[59]=l):l=e[59],z="relative flex-1 min-h-0",x=Se,T="h-full",S="flex min-w-[880px] gap-4 p-4";let J;e[60]!==r?(J=r("sandbox.postCalendar.unscheduledHint"),e[60]=r,e[61]=J):J=e[61];let Z;e[62]!==J?(Z=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:J}),e[62]=J,e[63]=Z):Z=e[63],w=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:ie[0]?.map(a=>t.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ue.format(a)},a.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:ie.flat().map(a=>{const ye=a.getMonth()===m.getMonth(),ve=he.get(Me(a))??[];return t.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const le=g.dataTransfer.getData("text/plain");C(null),le&&s(le,a)},className:te("group/day min-h-28 space-y-1 p-2 transition-colors",ye?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:te("grid size-6 place-items-center rounded-full text-xs",a.getTime()===be.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:a.getDate()}),t.jsx(ee,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:i,onClick:()=>n(a),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:ge.format(a)}),children:t.jsx(ke,{size:14})})]}),ve.map(g=>t.jsx(me,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},a.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=t.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:oe.length})}),k=oe.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(Ne,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):oe.map(a=>t.jsx(me,{entry:a,active:a.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},a.post.key)),e[3]=m,e[4]=b,e[5]=j,e[6]=i,e[7]=p,e[8]=y,e[9]=n,e[10]=s,e[11]=o,e[12]=d,e[13]=r,e[14]=x,e[15]=u,e[16]=l,e[17]=c,e[18]=v,e[19]=k,e[20]=S,e[21]=w,e[22]=T,e[23]=z}else x=e[14],u=e[15],l=e[16],c=e[17],v=e[18],k=e[19],S=e[20],w=e[21],T=e[22],z=e[23];let E;e[64]!==c||e[65]!==v||e[66]!==k?(E=t.jsxs("div",{className:c,children:[v,k]}),e[64]=c,e[65]=v,e[66]=k,e[67]=E):E=e[67];let M;e[68]!==E||e[69]!==S||e[70]!==w?(M=t.jsxs("div",{className:S,children:[w,E]}),e[68]=E,e[69]=S,e[70]=w,e[71]=M):M=e[71];let P;e[72]!==x||e[73]!==M||e[74]!==T?(P=t.jsx(x,{className:T,children:M}),e[72]=x,e[73]=M,e[74]=T,e[75]=P):P=e[75];let L;e[76]!==P||e[77]!==z?(L=t.jsx("div",{className:z,children:P}),e[76]=P,e[77]=z,e[78]=L):L=e[78];let q;return e[79]!==u||e[80]!==l||e[81]!==L?(q=t.jsxs("div",{className:u,children:[l,L]}),e[79]=u,e[80]=l,e[81]=L,e[82]=q):q=e[82],q}function Pe(h){return de(h,1)}function Le(h){return de(h,-1)}function Ie(){return ce(new Date)}function ne(h){const e=se.c(7),{className:b,label:d}=h;let o;e[0]!==b?(o=te("size-3 rounded-sm border",b),e[0]=b,e[1]=o):o=e[1];let n;e[2]!==o?(n=t.jsx("span",{className:o}),e[2]=o,e[3]=n):n=e[3];let s;return e[4]!==d||e[5]!==n?(s=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[n,d]}),e[4]=d,e[5]=n,e[6]=s):s=e[6],s}function me(h){const e=se.c(23),{entry:b,active:d,draggable:o,onSelect:n,onDragStateChange:s}=h,D=pe(),{post:i,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;e[0]!==D||e[1]!==j?(C=D(j),e[0]=D,e[1]=j,e[2]=C):C=e[2];const re=C;let m;e[3]!==s||e[4]!==i.key?(m=v=>{v.dataTransfer.setData("text/plain",i.key),v.dataTransfer.effectAllowed="move",s(i.key)},e[3]=s,e[4]=i.key,e[5]=m):m=e[5];let f;e[6]!==s?(f=()=>s(null),e[6]=s,e[7]=f):f=e[7];let p;e[8]!==n||e[9]!==i.key?(p=()=>n(i.key),e[8]=n,e[9]=i.key,e[10]=p):p=e[10];const N=`${i.title} · ${re}`,y=r?fe:xe,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let l;e[11]!==y||e[12]!==x||e[13]!==u?(l=te("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),e[11]=y,e[12]=x,e[13]=u,e[14]=l):l=e[14];let c;return e[15]!==o||e[16]!==i.title||e[17]!==l||e[18]!==m||e[19]!==f||e[20]!==p||e[21]!==N?(c=t.jsx("button",{type:"button",draggable:o,onDragStart:m,onDragEnd:f,onClick:p,title:N,className:l,children:i.title}),e[15]=o,e[16]=i.title,e[17]=l,e[18]=m,e[19]=f,e[20]=p,e[21]=N,e[22]=c):c=e[22],c}export{Vr as PostCalendar};
1
+ import{c as se,b as pe,r as ae,J as je,j as t,m as te,B as ee,as as Ce}from"./index-CHOxYhnv.js";import{R as Ne,F as De}from"./agent-icon-C-RKmmDR.js";import{s as ke}from"./Plus-jqQtsDrV.js";import{S as Se}from"./scroll-area-w2Fr7CkP.js";import{c as we,s as Te,b as ce,a as de}from"./date-utils-CrvIKg-s.js";import{M as ze}from"./category-tree-hquVl_NC.js";import{g as Ee,d as Me}from"./item-actions-Cdz0dPi_.js";import"./AlertCircle-BHOdje2-.js";import"./Tool01-C_vFDQiZ.js";import"./ArrowUp-BKp-bI0t.js";import"./ArrowLeft-DwK9IQqr.js";import"./LinkBroken01-Beajkv8Y.js";import"./BookOpen01-CCzJ3iHg.js";import"./Globe04-CpMO0Sfn.js";import"./CheckCircle-CpYSXUlJ.js";import"./ChevronUp-yM6kuF7B.js";import"./ChevronSelectorVertical-BfPzQt1M.js";import"./UserSquare-DomA7Npc.js";import"./CreditCard01-ClPhtnpy.js";import"./SwitchHorizontal01-Be5wnM3M.js";import"./Key01-BUefgO6r.js";import"./Minus-CkHBDYFP.js";import"./Monitor01-6Z9BL4ul.js";import"./Sun-CBa0lZzX.js";import"./Play-QQIqJKj8.js";import"./SearchMd--9oaPr0p.js";import"./ShoppingBag01-DWT7jnvZ.js";import"./Trash01-D4h16nnS.js";import"./Upload01-DLWP4rJI.js";import"./Users01-DQk985Hj.js";import"./XClose-DsOcImLD.js";import"./Zap-CXSu8byh.js";import"./index-BdQq_4o_.js";import"./empty-message-BAHk-1bK.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BoFr4FJb.js";import"./collapsible-Ck6jFTQH.js";import"./use-copy-BMjPWKp8.js";import"./usage-stats-PiJNBrSI.js";import"./tool-namespace-BOC8taOg.js";import"./form-DddGN9Yh.js";import"./label-B6kbb_qI.js";import"./utils-CVEq3hMx.js";import"./markdown-Deyw3r6u.js";import"./chat-context-o9Pyy_rd.js";import"./use-view-draft-kind-By-WcYfU.js";import"./thread-route-CVZs3lS7.js";import"./use-project-scope-BTU4ukSL.js";import"./repository-binding-zOZEsVNQ.js";import"./use-mcp-client-CAI0PiRc.js";import"./auth-DQhl82rC.js";import"./use-organization-settings-04SG-hKv.js";import"./schema-BB8zKrPl.js";import"./task-board--eP68xys.js";import"./thread-intent-otNmUDpT.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Gp1E8HHl.js";import"./use-entitlements-npCYsfMp.js";import"./use-ai-providers-BJRvsFFm.js";import"./use-decopilot-events-Bvlss2N9.js";import"./use-mobile-DlyIeamj.js";import"./tooltip-D2JXB44W.js";import"./index-BZdAVrUU.js";import"./shell-layout-C4gugWKg.js";import"./use-deployment-admin-BLMaSYC-.js";import"./admin-fetch-BhTJlAsX.js";import"./command-CnhVLB17.js";import"./index-BNwuaZhD.js";import"./integration-icon-CM5LyK_z.js";import"./project-icon-D_A1aREs.js";import"./use-navigate-to-agent-rf_XQPo1.js";import"./use-debounced-value-CoBOVCcY.js";import"./new-project-dialog-C9WcHYrC.js";import"./repository-picker-DQ8Ce_c3.js";import"./github-icon-CBn2nQtJ.js";import"./useInfiniteQuery-Cr6l3hRz.js";import"./infiniteQueryObserver-Sb4-Zoh0.js";import"./collection-search-Cr2_Tgzy.js";import"./legacy-admin-welcome-dialog-C1EB7MCq.js";import"./drawer-Donq2Zq_.js";import"./required-auth-layout-D8CrwDut.js";import"./use-org-sso-Bz3FXaUK.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CEhql9SF.js";import"./types-BQyA3BSs.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-B4sQvcZD.js";import"./use-connection-D0bmffUK.js";import"./use-mcp-prompts-DqQEh2Qr.js";import"./use-thread-outputs-DcXhIS9K.js";import"./file-type-icon-D4Edy8Bo.js";import"./section-array-field-D7aYRyOo.js";import"./blocks-tab-states-DScRj9jB.js";import"./site-editor-toast-CPe_RO4U.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-BgsP-jl-.js";import"./use-blocks-v8-project-D8GbwCrf.js";import"./use-voice-input-Bt11fXlC.js";import"./popover-AfVmBiXN.js";import"./index-Ujlc9MWT.js";import"./checkbox-BgJ_rDKP.js";import"./select-oOpcW8y8.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-2an1bWl1.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-DDTtYKkY.js";import"./use-move-blocks-CfkVWpoJ.js";import"./hosted-reconcile-CrIPblfo.js";import"./badge-lysbeP9P.js";import"./empty-state-BwFbOlsH.js";import"./delete-copy-CdfctKz4.js";import"./use-never-published-DP-ayb_U.js";import"./search-input-CxzHzt1i.js";import"./tabs-CGFgLwIj.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-H9DeMtGB.js";import"./asset-utils-DLSL6NlD.js";import"./index-BmYwClLx.js";import"./textarea-DiKdmgZC.js";import"./monaco-editor-CRckTkcR.js";import"./editor-BRySXv_B.js";const fe="border-success/30 bg-success/10 text-success hover:bg-success/20",xe="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function Vr(h){const e=se.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:n,onReschedule:s,isCreating:D}=h,i=D===void 0?!1:D,r=pe(),[j,C]=ae.useState(null),[re]=je(),[m,f]=ae.useState(Ie),p=re.language;let N;e[0]!==m||e[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(m),e[0]=m,e[1]=p,e[2]=N):N=e[2];const y=N;let x,u,l,c,v,k,S,w,T,z;if(e[3]!==m||e[4]!==b||e[5]!==j||e[6]!==i||e[7]!==p||e[8]!==y||e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==d||e[13]!==r){const ue=new Intl.DateTimeFormat(p,{weekday:"short"}),ge=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:he,undated:oe}=Ee(ze(b)),ie=we(m),be=Te(new Date);u="flex h-full w-full flex-col";let G;e[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ce(new Date)),e[24]=G):G=e[24];let I;e[25]!==r?(I=r("sandbox.postCalendar.today"),e[25]=r,e[26]=I):I=e[26];let H;e[27]!==I?(H=t.jsx(ee,{variant:"outline",size:"sm",onClick:G,children:I}),e[27]=I,e[28]=H):H=e[28];let Q;e[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Le),e[29]=Q):Q=e[29];let U;e[30]!==r?(U=r("sandbox.postCalendar.previous"),e[30]=r,e[31]=U):U=e[31];let V;e[32]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(De,{size:16}),e[32]=V):V=e[32];let _;e[33]!==U?(_=t.jsx(ee,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),e[33]=U,e[34]=_):_=e[34];let X;e[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Pe),e[35]=X):X=e[35];let $;e[36]!==r?($=r("sandbox.postCalendar.next"),e[36]=r,e[37]=$):$=e[37];let Y;e[38]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(Ce,{size:16}),e[38]=Y):Y=e[38];let F;e[39]!==$?(F=t.jsx(ee,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),e[39]=$,e[40]=F):F=e[40];let O;e[41]!==y?(O=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),e[41]=y,e[42]=O):O=e[42];let R;e[43]!==r?(R=r("sandbox.postCalendar.legendScheduled"),e[43]=r,e[44]=R):R=e[44];let B;e[45]!==R?(B=t.jsx(ne,{className:fe,label:R}),e[45]=R,e[46]=B):B=e[46];let A;e[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),e[47]=r,e[48]=A):A=e[48];let K;e[49]!==A?(K=t.jsx(ne,{className:xe,label:A}),e[49]=A,e[50]=K):K=e[50];let W;e[51]!==B||e[52]!==K?(W=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[B,K]}),e[51]=B,e[52]=K,e[53]=W):W=e[53],e[54]!==H||e[55]!==_||e[56]!==F||e[57]!==O||e[58]!==W?(l=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,F,O,W]}),e[54]=H,e[55]=_,e[56]=F,e[57]=O,e[58]=W,e[59]=l):l=e[59],z="relative flex-1 min-h-0",x=Se,T="h-full",S="flex min-w-[880px] gap-4 p-4";let J;e[60]!==r?(J=r("sandbox.postCalendar.unscheduledHint"),e[60]=r,e[61]=J):J=e[61];let Z;e[62]!==J?(Z=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:J}),e[62]=J,e[63]=Z):Z=e[63],w=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:ie[0]?.map(a=>t.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ue.format(a)},a.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:ie.flat().map(a=>{const ye=a.getMonth()===m.getMonth(),ve=he.get(Me(a))??[];return t.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const le=g.dataTransfer.getData("text/plain");C(null),le&&s(le,a)},className:te("group/day min-h-28 space-y-1 p-2 transition-colors",ye?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:te("grid size-6 place-items-center rounded-full text-xs",a.getTime()===be.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:a.getDate()}),t.jsx(ee,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:i,onClick:()=>n(a),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:ge.format(a)}),children:t.jsx(ke,{size:14})})]}),ve.map(g=>t.jsx(me,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},a.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=t.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:oe.length})}),k=oe.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(Ne,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):oe.map(a=>t.jsx(me,{entry:a,active:a.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},a.post.key)),e[3]=m,e[4]=b,e[5]=j,e[6]=i,e[7]=p,e[8]=y,e[9]=n,e[10]=s,e[11]=o,e[12]=d,e[13]=r,e[14]=x,e[15]=u,e[16]=l,e[17]=c,e[18]=v,e[19]=k,e[20]=S,e[21]=w,e[22]=T,e[23]=z}else x=e[14],u=e[15],l=e[16],c=e[17],v=e[18],k=e[19],S=e[20],w=e[21],T=e[22],z=e[23];let E;e[64]!==c||e[65]!==v||e[66]!==k?(E=t.jsxs("div",{className:c,children:[v,k]}),e[64]=c,e[65]=v,e[66]=k,e[67]=E):E=e[67];let M;e[68]!==E||e[69]!==S||e[70]!==w?(M=t.jsxs("div",{className:S,children:[w,E]}),e[68]=E,e[69]=S,e[70]=w,e[71]=M):M=e[71];let P;e[72]!==x||e[73]!==M||e[74]!==T?(P=t.jsx(x,{className:T,children:M}),e[72]=x,e[73]=M,e[74]=T,e[75]=P):P=e[75];let L;e[76]!==P||e[77]!==z?(L=t.jsx("div",{className:z,children:P}),e[76]=P,e[77]=z,e[78]=L):L=e[78];let q;return e[79]!==u||e[80]!==l||e[81]!==L?(q=t.jsxs("div",{className:u,children:[l,L]}),e[79]=u,e[80]=l,e[81]=L,e[82]=q):q=e[82],q}function Pe(h){return de(h,1)}function Le(h){return de(h,-1)}function Ie(){return ce(new Date)}function ne(h){const e=se.c(7),{className:b,label:d}=h;let o;e[0]!==b?(o=te("size-3 rounded-sm border",b),e[0]=b,e[1]=o):o=e[1];let n;e[2]!==o?(n=t.jsx("span",{className:o}),e[2]=o,e[3]=n):n=e[3];let s;return e[4]!==d||e[5]!==n?(s=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[n,d]}),e[4]=d,e[5]=n,e[6]=s):s=e[6],s}function me(h){const e=se.c(23),{entry:b,active:d,draggable:o,onSelect:n,onDragStateChange:s}=h,D=pe(),{post:i,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;e[0]!==D||e[1]!==j?(C=D(j),e[0]=D,e[1]=j,e[2]=C):C=e[2];const re=C;let m;e[3]!==s||e[4]!==i.key?(m=v=>{v.dataTransfer.setData("text/plain",i.key),v.dataTransfer.effectAllowed="move",s(i.key)},e[3]=s,e[4]=i.key,e[5]=m):m=e[5];let f;e[6]!==s?(f=()=>s(null),e[6]=s,e[7]=f):f=e[7];let p;e[8]!==n||e[9]!==i.key?(p=()=>n(i.key),e[8]=n,e[9]=i.key,e[10]=p):p=e[10];const N=`${i.title} · ${re}`,y=r?fe:xe,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let l;e[11]!==y||e[12]!==x||e[13]!==u?(l=te("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),e[11]=y,e[12]=x,e[13]=u,e[14]=l):l=e[14];let c;return e[15]!==o||e[16]!==i.title||e[17]!==l||e[18]!==m||e[19]!==f||e[20]!==p||e[21]!==N?(c=t.jsx("button",{type:"button",draggable:o,onDragStart:m,onDragEnd:f,onClick:p,title:N,className:l,children:i.title}),e[15]=o,e[16]=i.title,e[17]=l,e[18]=m,e[19]=f,e[20]=p,e[21]=N,e[22]=c):c=e[22],c}export{Vr as PostCalendar};
@@ -1,2 +1,2 @@
1
- import{b as ee,ak as lt,r as Y,j as t,B as Le,D as at,v as nt,w as rt,x as ct,aT as dt,bu as mt,m as Be,y as pt,t as we,c as se,a7 as ut,aN as ft,aM as xt,aJ as ht,aH as gt,aI as bt,aL as jt,aK as vt,b5 as yt,h as St,b6 as _t,I as Fe}from"./index-CWKxkTwy.js";import{u as kt}from"./chat-context-D8Eje7xK.js";import{i as Oe}from"./AlertCircle-Bj2NuHQY.js";import{aa as Et,aX as Ct,b_ as Nt,ae as Pt,aF as Tt,l as Lt}from"./agent-icon-BwEytdmh.js";import{d as wt}from"./UserSquare-CBWDFbi3.js";import{s as Dt}from"./Trash01-Dt7pyOwE.js";import{s as Bt}from"./XClose-D2u966Hj.js";import{L as te}from"./label-BXSXPHWU.js";import{M as Ft}from"./multi-select-obeT7dRo.js";import{b as At,a as It,T as We,c as Ge}from"./tabs-rkhPwLiJ.js";import{S as Ot}from"./switch-DBO_GrNe.js";import{T as Je}from"./textarea-CvY2QE-l.js";import{S as Rt,I as zt}from"./save-status-DshwUBI8.js";import{u as $t,I as qt,a as Ie,B as Ut,R as Mt}from"./block-document-zkAHP8m2.js";import{R as Ht,e as Vt,H as Wt,c as Gt,f as ze,N as Kt}from"./held-block-view-DRxUlNuB.js";import{b as Yt,C as Qt,K as Zt}from"./blog-schema-Dys-tzF0.js";import{Z as Jt,M as Xt,a as es,d as ts,f as ss,_ as os,j as I,$ as is,a0 as ls,m as Ke,a1 as as,a2 as Xe,a3 as ns,H as et,a4 as rs,W as cs,V as ds,a5 as ms,a6 as ps,R as us,Q as fs}from"./category-tree-Cm0a3nBT.js";import{c as $e,T as qe,a as Ue}from"./tooltip-mM1fQXaq.js";import{f as xs,a as hs,b as gs}from"./blog-preview-url-CT-VZElJ.js";import{e as bs,f as js,g as Ye,u as vs,a as ys,d as Ss}from"./delete-copy-CAFEtw8Z.js";import{u as _s}from"./use-ai-providers-Bku85sJ3.js";import{u as ks}from"./use-delete-block-BJD7162e.js";import{F as Es,u as Qe,a as Cs,k as Ns}from"./use-never-published-Cq663vOp.js";import{u as Ps}from"./use-fast-preview-draft-url-BX0PGrG_.js";import{u as Ts}from"./use-autosave-CLbBIg-P.js";import{e as Ls,b as ws}from"./Tool01-DAYJL0v-.js";import{a as Ds,E as Bs,u as Fs}from"./usage-stats-DT9jvl-J.js";import{s as As}from"./suggestion-CppSMZxc.js";import{E as Is,T as Me}from"./editor-classes-Cb5f4sl2.js";import{u as Os}from"./site-editor-toast-BLqoqKy_.js";import"./use-view-draft-kind-BQ4N5uEB.js";import"./thread-route-BbSych2c.js";import"./use-project-scope-3ijTexFj.js";import"./repository-binding-DScgU6HN.js";import"./use-mcp-client-CmWEhN6T.js";import"./auth-DFCgioOs.js";import"./use-organization-settings-BZz5ibUN.js";import"./schema-DWYnTC39.js";import"./task-board-D7RCmGkN.js";import"./thread-intent-0TjSPqLd.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DqTWfbxM.js";import"./use-entitlements-J4XPZF2l.js";import"./use-decopilot-events-DhxeqkWl.js";import"./ArrowUp-AwRcCsuH.js";import"./ArrowLeft-DCMq103h.js";import"./LinkBroken01-DjOOxf0e.js";import"./BookOpen01-D2g_6Ti1.js";import"./Globe04-BBKBtEaK.js";import"./CheckCircle-BfCYdSA_.js";import"./ChevronUp-JSFuaLqF.js";import"./ChevronSelectorVertical-Bwduw2Hp.js";import"./CreditCard01-DsaJOWgX.js";import"./SwitchHorizontal01-CP6L8rlm.js";import"./Key01-BTIXWKkS.js";import"./Minus-BAq-AD33.js";import"./Monitor01-CqtNhdJN.js";import"./Sun-C5iV1Zpq.js";import"./Play-kmXfE4Am.js";import"./Plus-Bq5KiXqn.js";import"./SearchMd-D1P7yVqT.js";import"./ShoppingBag01-CAQ4NRTU.js";import"./Upload01-CZ2h76oj.js";import"./Users01-BZzvQda-.js";import"./Zap-CDj8jJFt.js";import"./badge-DbKUf3vA.js";import"./checkbox-CCw3an34.js";import"./command-BOSLOC8n.js";import"./index-yzkfeOP2.js";import"./popover-CTEYICXO.js";import"./active-indicator-CCMhAsc_.js";import"./toggle-group-BPubP3Pi.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DngvlIXa.js";import"./asset-utils-DSh1-4fR.js";import"./useInfiniteQuery-njPYFTao.js";import"./infiniteQueryObserver-DCK-YXw1.js";import"./core.esm-CAA73EV4.js";import"./sortable.esm-CYzspn3s.js";import"./product-picker-dialog-DVmdugXw.js";import"./index-Tvs593C1.js";import"./index-C1fc6W9Q.js";import"./blocks-tab-states-BUfMyINR.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-vD0BpiqU.js";import"./drawer-B9PFQFcy.js";import"./use-mobile-BZ5I1Gts.js";import"./index-C9E0iqgh.js";import"./select-CWL8C0Pw.js";import"./index-BdQq_4o_.js";import"./index-8kUWDN7v.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-BkAAjXrp.js";import"./utils-CkU_P8Ie.js";import"./calendar-5Nt9EKO9.js";import"./empty-message-CXYzekmD.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DbwVEDlq.js";import"./collapsible-CVtLl5wO.js";import"./use-copy-D3ELC0tX.js";import"./shell-layout-DVIwCYxA.js";import"./use-deployment-admin-8guQU4GC.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-C1bpkd7s.js";import"./project-icon-CsM5Xu_3.js";import"./use-navigate-to-agent-CMbT8SLE.js";import"./use-debounced-value-CgYJanEq.js";import"./new-project-dialog-Cfdy4DZo.js";import"./repository-picker-BUWqEoln.js";import"./github-icon-DEvD-SlA.js";import"./collection-search-CC2QUXh2.js";import"./legacy-admin-welcome-dialog-DbVWjlJ6.js";import"./required-auth-layout-BiIyXd3D.js";import"./use-org-sso-D-kGbeq_.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BbTTGmQC.js";import"./types-E9_eqrxO.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./tool-namespace-c-MaHIy3.js";import"./utils-CVEq3hMx.js";import"./markdown-DiEygcQw.js";import"./sheet-Bqz29cSo.js";import"./use-connection-CLoaxXGr.js";import"./use-mcp-prompts-RB8yW0_L.js";import"./use-thread-outputs-DegzudvH.js";import"./file-type-icon-mKSSLPP8.js";import"./section-array-field-BFg67nYp.js";import"./named-rule-step-W9P9uG-f.js";import"./slider-GCMZAdst.js";import"./index-gX7QfQio.js";import"./tooltipContext-B2y0_sWP.js";import"./CategoricalChart-Bjq2Qe33.js";import"./index-_sPF1edR.js";import"./combobox-CB15NqGc.js";import"./scroll-area-EO9hsjie.js";import"./hosted-reconcile-DH_YtUfF.js";import"./use-move-blocks-a-Gpcz1Q.js";import"./sandbox-git-api-DcqI6XE4.js";import"./search-input-Dc1w2xyv.js";import"./form-8HJUl2GV.js";import"./use-sandbox-events-CBP-Uwww.js";import"./use-blocks-v8-project-BTQz7erp.js";const De=a=>typeof a=="string"?a:"",Rs={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&#39;":"'"};function tt(a){const e=[];let s=0,l=!1;for(;s<a.length;){if(a[s]==="<"){const c=a.indexOf(">",s);s=c<0?a.length:c+1;continue}let o=a[s]??"",d=s+1;if(a[s]==="&"){const c=a.indexOf(";",s);if(c>=0&&c-s<=10){const i=Rs[a.slice(s,c+1).toLowerCase()];i!==void 0&&(o=i,d=c+1)}}const n=s;if(s=d,/\s/.test(o)){if(l){const c=e[e.length-1];c&&(c.end=d);continue}e.push({ch:" ",start:n,end:d}),l=!0}else e.push({ch:o,start:n,end:d}),l=!1}return{text:e.map(o=>o.ch).join(""),chars:e}}function zs(a){return tt(a).text.trim()}function $s(a){const e=[];for(const s of a)switch(Jt(De(s.__resolveType))){case"Paragraph":e.push(zs(De(s.html)));break;case"Heading":e.push(De(s.text));break;case"Quote":e.push(De(s.quote));break;case"List":e.push(De(s.items));break}return e.filter(Boolean).join(`
2
- `)}function qs(a){return a.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function Us(a,e){const s=a.slice(0,e);return s.lastIndexOf("<a")>s.lastIndexOf("</a")}function Ms(a,e,s){const l=e.trim();if(!l||!s)return{blocks:a,applied:!1};for(let o=0;o<a.length;o++){const d=a[o];if(!d||typeof d.html!="string")continue;const n=d.html,{text:c,chars:i}=tt(n);let p=c.indexOf(l);for(;p>=0;){const x=i[p],f=i[p+l.length-1];if(x&&f){const g=x.start,r=f.end,u=n.slice(g,r);if(!u.includes("<")&&!Us(n,g)){const m=n.slice(0,g)+`<a href="${qs(s)}">${u}</a>`+n.slice(r),h=a.slice();return h[o]={...d,html:m},{blocks:h,applied:!0}}}p=c.indexOf(l,p+1)}}return{blocks:a,applied:!1}}function Hs(a,e){let s=a,l=0;for(const o of e){const d=Ms(s,o.quote,o.href);d.applied&&(s=d.blocks,l++)}return{blocks:s,applied:l}}function Vs({virtualMcpId:a,decofile:e,sections:s,currentKey:l,meta:o,hasAi:d,onApply:n}){const c=ee(),i=lt(),[p,x]=Y.useState(!1),[f,g]=Y.useState(!1),[r,u]=Y.useState([]),[m,h]=Y.useState(new Set),y=xs(e,o),k=Xt(e).filter(j=>j.key!==l&&j.slug),T=async()=>{g(!0);try{const j=$s(s),E=await i.call("BLOG_SITE_GROUND",{virtualMcpId:a,purpose:"link"}).catch(S=>{console.warn("[linkSuggest] grounding failed",S)}),v=await i.call("BLOG_LINK_SUGGEST",{virtualMcpId:a,body:j,posts:k.map(S=>({title:S.title,slug:S.slug})),grounding:E?{report:E.report,outcome:E.outcome}:void 0}),C=[],b=new Set;for(const S of v.suggestions){const L=k.find(z=>z.slug===S.slug);if(!L||!y)continue;const P=hs(y,{category:L.categorySlugs[0]??"",slug:L.slug});if(!P||!j.includes(S.quote))continue;const w=`${S.quote}→${L.slug}`;b.has(w)||(b.add(w),C.push({quote:S.quote,href:P,title:L.title}))}u(C),h(new Set(C.map((S,L)=>L))),x(!0),C.length===0&&we.info(c("sandbox.linkSuggest.none"))}catch(j){we.error(j instanceof Error?j.message:c("sandbox.linkSuggest.failed"))}finally{g(!1)}},D=j=>h(E=>{const v=new Set(E);return v.has(j)?v.delete(j):v.add(j),v}),B=()=>{const j=r.filter((C,b)=>m.has(b)).map(C=>({quote:C.quote,href:C.href})),{blocks:E,applied:v}=Hs(s,j);n(E),x(!1),we.success(c("sandbox.linkSuggest.applied",{count:String(v)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:f||!d||k.length===0,title:d?k.length===0?c("sandbox.linkSuggest.noCandidates"):c("sandbox.linkSuggest.hint"):c("sandbox.autonomous.noAiProvider"),onClick:()=>{T()},children:[f?t.jsx(Et,{size:14,className:"animate-spin"}):t.jsx(Ct,{size:14}),c("sandbox.linkSuggest.button")]}),t.jsx(at,{open:p,onOpenChange:x,children:t.jsxs(nt,{className:"max-h-[85vh] sm:max-w-lg",children:[t.jsxs(rt,{children:[t.jsx(ct,{children:c("sandbox.linkSuggest.title")}),t.jsx(dt,{children:c("sandbox.linkSuggest.description")})]}),r.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:c("sandbox.linkSuggest.none")}):t.jsx("ul",{className:"max-h-[50vh] space-y-1 overflow-y-auto",children:r.map((j,E)=>{const v=m.has(E);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>D(E),"aria-pressed":v,className:"flex w-full items-start gap-2.5 rounded-lg border p-2.5 text-left transition-colors hover:bg-accent",children:[t.jsx("span",{className:Be("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",v?"border-primary bg-primary text-primary-foreground":"border-input"),children:v&&t.jsx(mt,{size:11})}),t.jsxs("span",{className:"min-w-0 flex-1 text-sm",children:[t.jsxs("span",{className:"font-medium",children:["“",j.quote,"”"]}),t.jsxs("span",{className:"text-muted-foreground",children:[" → ",j.title]})]})]})},`${j.quote}-${j.href}`)})}),t.jsx(pt,{children:t.jsx(Le,{type:"button",disabled:m.size===0,onClick:B,children:c("sandbox.linkSuggest.apply",{count:String(m.size)})})})]})})]})}const Ws={unit:"pt",initial:12,min:6,max:96},Gs=["outline-none min-h-80 px-4 py-3 text-[15px] leading-relaxed text-foreground","[&>*:first-child]:mt-0 [&_p]:my-3","[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-3xl [&_h1]:font-bold","[&_h2]:mb-3 [&_h2]:mt-6 [&_h2]:text-2xl [&_h2]:font-bold","[&_h3]:mb-2 [&_h3]:mt-5 [&_h3]:text-xl [&_h3]:font-bold","[&_h4]:mb-2 [&_h4]:mt-4 [&_h4]:text-lg [&_h4]:font-bold","[&_h5]:mb-2 [&_h5]:mt-4 [&_h5]:text-base [&_h5]:font-bold","[&_h6]:mb-2 [&_h6]:mt-4 [&_h6]:text-sm [&_h6]:font-bold","[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-6 [&_li>p]:my-1","[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground","[&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-sm","[&_img]:inline-block [&_img]:h-auto [&_img]:max-w-full","[&_img.ProseMirror-selectednode]:outline-2 [&_img.ProseMirror-selectednode]:outline-primary","[&_table]:my-3 [&_table]:w-full [&_table]:border-collapse [&_td>p]:my-0 [&_th>p]:my-0","[&_td]:border [&_td]:border-border [&_td]:p-2 [&_th]:border [&_th]:border-border [&_th]:bg-muted [&_th]:p-2","[&_strong]:font-bold",Is],Ks=["[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none"];function Ys(a){const e=se.c(39),{editor:s}=a,l=ee(),[o,d]=Y.useState(!1),[n,c]=Y.useState(null),[i,p]=Y.useState(null);let x;e[0]!==s?(x=P=>{s.chain().setImage({src:P}).run()},e[0]=s,e[1]=x):x=e[1];const f=x;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{c(null),p(null)},e[2]=g):g=e[2];const r=g;let u;e[3]!==f||e[4]!==l||e[5]!==n?(u=()=>{const P=(n??"").trim(),w=Ye(P);if(!w&&P){p(P.toLowerCase().startsWith("data:")?l("sandbox.postEditor.legacyImageDataUrl"):l("sectionsEditor.imageField.unsafeUrl"));return}w&&f(w),r()},e[3]=f,e[4]=l,e[5]=n,e[6]=u):u=e[6];const m=u;let h;e[7]!==l?(h=l("sandbox.postEditor.legacyInsertImage"),e[7]=l,e[8]=h):h=e[8];let y,k;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=()=>d(!0),k=t.jsx(Ls,{size:14}),e[9]=y,e[10]=k):(y=e[9],k=e[10]);let T;e[11]!==o||e[12]!==h?(T=t.jsx(Me,{active:o,label:h,onClick:y,children:k}),e[11]=o,e[12]=h,e[13]=T):T=e[13];const D=n!==null;let B;e[14]!==l?(B=l("sandbox.postEditor.legacyInsertImageUrl"),e[14]=l,e[15]=B):B=e[15];let j;e[16]!==m||e[17]!==n?(j=()=>n===null?c(""):m(),e[16]=m,e[17]=n,e[18]=j):j=e[18];let E;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(ws,{size:14}),e[19]=E):E=e[19];let v;e[20]!==j||e[21]!==D||e[22]!==B?(v=t.jsx(Me,{active:D,label:B,onClick:j,children:E}),e[20]=j,e[21]=D,e[22]=B,e[23]=v):v=e[23];let C;e[24]!==m||e[25]!==l||e[26]!==n||e[27]!==i?(C=n!==null&&t.jsx(qt,{draft:n,notice:i,label:l("sandbox.postEditor.legacyInsertImageUrl"),placeholder:l("sectionsEditor.imageField.urlPlaceholder"),onDraftChange:P=>{p(null),c(P)},onCommit:m,onCancel:r}),e[24]=m,e[25]=l,e[26]=n,e[27]=i,e[28]=C):C=e[28];let b;e[29]!==f?(b=P=>{const w=Ye(P);w&&f(w)},e[29]=f,e[30]=b):b=e[30];let S;e[31]!==o||e[32]!==b?(S=t.jsx(Es,{open:o,onOpenChange:d,mode:"image",onSelect:b}),e[31]=o,e[32]=b,e[33]=S):S=e[33];let L;return e[34]!==v||e[35]!==C||e[36]!==S||e[37]!==T?(L=t.jsxs("div",{className:"flex items-center gap-0.5",children:[T,v,C,S]}),e[34]=v,e[35]=C,e[36]=S,e[37]=T,e[38]=L):L=e[38],L}function Qs(a){const e=se.c(21),{editor:s}=a,l=ee(),[o,d]=Y.useState(!1);let n;e[0]!==s?(n={editor:s,selector:Zs},e[0]=s,e[1]=n):n=e[1];const c=Fs(n);let i;e[2]!==s||e[3]!==o||e[4]!==c.highlight?(i=t.jsx(Vt,{editor:s,mark:"highlight",currentColor:c.highlight,open:o,onOpenChange:d}),e[2]=s,e[3]=o,e[4]=c.highlight,e[5]=i):i=e[5];const p=c.codeBlock;let x;e[6]!==l?(x=l("sandbox.postEditor.legacyCodeBlock"),e[6]=l,e[7]=x):x=e[7];let f;e[8]!==s?(f=()=>s.chain().focus().toggleCodeBlock().run(),e[8]=s,e[9]=f):f=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Nt,{size:14}),e[10]=g):g=e[10];let r;e[11]!==c.codeBlock||e[12]!==x||e[13]!==f?(r=t.jsx(Me,{active:p,label:x,onClick:f,children:g}),e[11]=c.codeBlock,e[12]=x,e[13]=f,e[14]=r):r=e[14];let u;e[15]!==s?(u=t.jsx(Ys,{editor:s}),e[15]=s,e[16]=u):u=e[16];let m;return e[17]!==i||e[18]!==r||e[19]!==u?(m=t.jsxs(t.Fragment,{children:[i,r,u]}),e[17]=i,e[18]=r,e[19]=u,e[20]=m):m=e[20],m}function Zs(a){const{editor:e}=a;return{highlight:e.isActive("highlight")?e.getAttributes("highlight").color??null:null,codeBlock:e.isActive("codeBlock")}}function Js({value:a,onChange:e,decofile:s,sandboxRef:l}){const o=ee(),d=Y.useRef(e);d.current=e;const n=Ds({extensions:[...js(),As.configure({placeholder:o("sandbox.postEditor.legacyContentPlaceholder")})],content:a,editorProps:{attributes:{class:Be(Gs)}},onUpdate:({editor:i})=>{d.current(bs(i.getHTML()))}}),c=$t({decofile:s,sandboxRef:l});return n?t.jsxs("div",{className:"rounded-[var(--studio-surface-radius,var(--radius-md))] border shadow-edge border-input",children:[t.jsx(Ht,{editor:n,fontSize:Ws,linkSources:c,extras:t.jsx(Qs,{editor:n})}),t.jsx(Bs,{editor:n,className:Be("max-h-[70vh] overflow-y-auto",Ks)})]}):null}function Xs(a){return Array.isArray(a)?a.map(e=>({key:I(e?.key),value:I(e?.value)})):[]}function eo({orgSlug:a,virtualMcpId:e,branch:s,blockKey:l,block:o,decofile:d,meta:n,previewBaseUrl:c,move:i,onClose:p,expanded:x,onToggleExpand:f,onDeleted:g}){const r=ee(),u=kt()?.taskId??null,m=Qe({orgSlug:a,virtualMcpId:e,branch:s},{holdsCopy:!0}),h=ks({orgSlug:a,virtualMcpId:e,branch:s}),y=Os(e,s),k=y.kind==="protocol"&&y.source==="github",T=Cs({orgSlug:a,virtualMcpId:e,branch:s}),D=_s().length>0,B=vs(),j=ys(e),E=Ps({orgSlug:a,virtualMcpId:e,branch:s}),v=es(o,"posts"),C=_=>{const X=m.shown(_);return X?{[_]:X}:{}},[b,S,L,P]=Ts(v,_=>{m.mutate({blockKey:l,data:ts(l,ss(_))})},{isSaving:m.isPending,onSeed:()=>m.hold(l)}),[w,z]=Y.useState(l);w!==l&&(z(l),L(v));const U=_=>{L(b),i.apply(l,_,b,()=>C(l))},A=(_,X)=>S({...b,[_]:X}),M=Yt("posts",n,Zt),$=Qe({orgSlug:a,virtualMcpId:e,branch:s}),Q=Gt(_=>(m.v8?$:m).mutate(_),d,m.v8),[H,V]=Y.useState(0),O=gs({decofile:d,post:b,previewBaseUrl:c,draftPointer:E,meta:n}),W=os(d,"posts",l,I(b.title)),Z=is(b),[G,q]=Y.useState(!1),K=async()=>{L(b);try{const _=await h.mutateAsync({blockKey:l,shown:()=>m.shown(l)});if(q(!1),Ns(_))return;we.success(r("sandbox.postEditor.deletePostSuccess",{title:I(b.title)})),g?.(),p?.()}catch(_){we.error(_ instanceof Error?_.message:r("sandbox.postEditor.deletePostFailed"))}},R=ls(b),F=R.length>0,J=R.length===1?r("sandbox.postEditor.missingFieldSingular",{fields:Ke(R,r)}):r("sandbox.postEditor.missingFieldPlural",{fields:Ke(R,r)});return t.jsxs("div",{className:"relative flex h-full flex-col",children:[t.jsx("div",{className:"absolute inset-x-0 top-0 z-10 bg-background/80 backdrop-blur-sm",children:t.jsxs("div",{className:"mx-auto flex max-w-4xl items-center justify-between gap-2 px-8 py-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Rt,{isPending:m.isPending||m.v8&&$.isPending||P,isError:m.isError||m.v8&&$.isError}),F&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Oe,{size:14}),R.length," ",R.length===1?r("sandbox.postEditor.issueSingular"):r("sandbox.postEditor.issuePlural")]})}),t.jsx(Ue,{side:"bottom",children:J})]})]}),(f||p)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[f&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:f,title:r(x?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:x?t.jsx(Pt,{size:16}):t.jsx(Tt,{size:16})}),p&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:p,title:r("sandbox.postBoard.close"),children:t.jsx(Bt,{size:16})})]})]})}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 pb-6 pt-14",children:[t.jsx(as,{value:I(b.title),onChange:_=>A("title",_),placeholder:r("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),W&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(At,{defaultValue:"content",className:"mt-6 gap-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs(It,{children:[t.jsxs(We,{value:"content",children:[t.jsx(wt,{}),r("sandbox.postEditor.contentTab")]}),t.jsxs(We,{value:"settings",children:[t.jsx(Lt,{}),r("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[Z&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx(Le,{type:"button",variant:"ghost-destructive",size:"sm",className:"px-2","aria-label":r("sandbox.postEditor.deletePost"),onClick:()=>q(!0),children:t.jsx(Dt,{size:14})})}),t.jsx(Ue,{side:"bottom",children:r("sandbox.postEditor.deletePost")})]}),B&&!j&&t.jsx(Vs,{decofile:d,virtualMcpId:e,sections:Ie(b.sections),currentKey:l,meta:n,hasAi:D,onApply:_=>{A("sections",_),V(X=>X+1)}}),p&&t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:!O,title:r(O?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{O&&window.open(O,"_blank","noopener,noreferrer")},children:[t.jsx(ut,{size:14}),r("sandbox.postEditor.seePreview")]})]})]}),t.jsx(Ge,{value:"content",children:j?t.jsxs("div",{className:"space-y-3",children:[Ie(b.sections).length>0&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.legacySectionsNotice",{count:Ie(b.sections).length})]}),t.jsx(Js,{value:I(b.content),onChange:_=>A("content",_),decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u}})]}):t.jsx("div",{className:"surface p-8",children:t.jsx(Ut,{value:Ie(b.sections),onChange:_=>A("sections",_),meta:n,decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u},previewBaseUrl:c,onSaveReferencedBlock:Q,emptyMessage:r("sandbox.postEditor.noContentYet")},H)})}),t.jsx(Ge,{value:"settings",children:t.jsxs("div",{className:"surface p-6",children:[t.jsx(so,{post:b,decofile:d,onChange:A,blockKey:l,move:i,onMoveStatus:U}),t.jsx(Qt,{schema:M,value:b,onChange:S,basePath:"post",meta:n,decofile:d,sandbox:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u},onSaveReferencedBlock:Q})]})})]})]})}),t.jsx(ft,{open:G,onOpenChange:_=>{!_&&!h.isPending&&q(!1)},children:t.jsxs(xt,{children:[t.jsxs(ht,{children:[t.jsx(gt,{children:r("sandbox.postEditor.deletePostConfirmTitle")}),t.jsx(bt,{children:r(Ss("post",k,{neverPublished:T(l)}),{title:I(b.title)||r("sandbox.postBoard.untitled")})})]}),t.jsxs(jt,{children:[t.jsx(vt,{disabled:h.isPending,children:r("sandbox.postEditor.deletePostCancel")}),t.jsx(yt,{onClick:_=>{_.preventDefault(),K()},disabled:h.isPending,className:Be(_t({variant:"destructive"})),children:h.isPending?t.jsxs(t.Fragment,{children:[t.jsx(St,{className:"size-3.5"}),r("sandbox.postEditor.deletingPost")]}):r("sandbox.postEditor.deletePost")})]})]})})]})}function to(a){const e=se.c(15),{blockKey:s,post:l,move:o,onMoveStatus:d}=a,n=ee();let c;e[0]!==l?(c=Xe(l),e[0]=l,e[1]=c):c=e[1];const i=c;let p,x;if(e[2]!==s||e[3]!==i||e[4]!==o||e[5]!==d||e[6]!==l||e[7]!==n){let g;e[10]!==i?(g=u=>u!=="generating"||i==="generating",e[10]=i,e[11]=g):g=e[11];const r=us.filter(g);p="flex flex-wrap gap-1.5",x=r.map(u=>{const m=u===i,h=m?null:o.refuse(s,u,l);return t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!h,"aria-pressed":m,onClick:()=>d(u),className:Be("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",m?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-accent",h&&"cursor-not-allowed opacity-50"),children:n(fs[u])})})}),h&&t.jsx(Ue,{side:"bottom",children:o.reasonText(h)})]},u)}),e[2]=s,e[3]=i,e[4]=o,e[5]=d,e[6]=l,e[7]=n,e[8]=p,e[9]=x}else p=e[8],x=e[9];let f;return e[12]!==p||e[13]!==x?(f=t.jsx("div",{className:p,children:x}),e[12]=p,e[13]=x,e[14]=f):f=e[14],f}function so(a){const e=se.c(166),{post:s,decofile:l,onChange:o,blockKey:d,move:n,onMoveStatus:c}=a,i=ee();let p;e[0]!==s?(p=Xe(s),e[0]=s,e[1]=p):p=e[1];const f=p==="scheduled";let g;e[2]!==s.slug?(g=I(s.slug),e[2]=s.slug,e[3]=g):g=e[3];const r=g,[u,m]=Y.useState(r),[h,y]=Y.useState(null),[k,T]=Y.useState(r);k!==r&&(T(r),m(r));let D;e[4]!==d||e[5]!==r||e[6]!==l||e[7]!==o||e[8]!==u||e[9]!==i?(D=()=>{const N=cs(u);if(m(N),N===r)return;if(!N){y(null),o("slug","");return}const He=et(l,"posts").filter(it=>it.key!==d).map(lo).filter(Boolean);if(!He.includes(N)){y(null),o("slug",N);return}const Re=ds(N,He),Ve=i("sandbox.postEditor.slugDeduped",{slug:Re});m(Re),y(Ve),we.info(Ve),o("slug",Re)},e[4]=d,e[5]=r,e[6]=l,e[7]=o,e[8]=u,e[9]=i,e[10]=D):D=e[10];const B=D;let j;e[11]!==i?(j=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=j):j=e[12];let E;e[13]!==j?(E=t.jsx(te,{children:j}),e[13]=j,e[14]=E):E=e[14];let v;e[15]!==d||e[16]!==n||e[17]!==c||e[18]!==s?(v=t.jsx(to,{blockKey:d,post:s,move:n,onMoveStatus:c}),e[15]=d,e[16]=n,e[17]=c,e[18]=s,e[19]=v):v=e[19];let C;e[20]!==E||e[21]!==v?(C=t.jsxs("div",{className:"space-y-2",children:[E,v]}),e[20]=E,e[21]=v,e[22]=C):C=e[22];let b;e[23]!==f||e[24]!==o||e[25]!==s.scheduledDatetime||e[26]!==i?(b=f&&t.jsx(ze,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:I(s.scheduledDatetime),onChange:N=>o("scheduledDatetime",N),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=f,e[24]=o,e[25]=s.scheduledDatetime,e[26]=i,e[27]=b):b=e[27];let S;e[28]!==C||e[29]!==b?(S=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[C,b]}),e[28]=C,e[29]=b,e[30]=S):S=e[30];let L;e[31]!==i?(L=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=L):L=e[32];let P;e[33]!==L?(P=t.jsx(te,{htmlFor:"post-excerpt",children:L}),e[33]=L,e[34]=P):P=e[34];let w;e[35]!==s.excerpt?(w=I(s.excerpt),e[35]=s.excerpt,e[36]=w):w=e[36];let z;e[37]!==o?(z=N=>o("excerpt",N.target.value),e[37]=o,e[38]=z):z=e[38];let U;e[39]!==w||e[40]!==z?(U=t.jsx(Je,{id:"post-excerpt",value:w,onChange:z,rows:2}),e[39]=w,e[40]=z,e[41]=U):U=e[41];let A;e[42]!==P||e[43]!==U?(A=t.jsxs("div",{className:"space-y-2",children:[P,U]}),e[42]=P,e[43]=U,e[44]=A):A=e[44];let M;e[45]!==i?(M=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=M):M=e[46];let $;e[47]!==M?($=t.jsx(te,{htmlFor:"post-slug",children:M}),e[47]=M,e[48]=$):$=e[48];let Q;e[49]===Symbol.for("react.memo_cache_sentinel")?(Q=N=>{y(null),m(ms(N.target.value))},e[49]=Q):Q=e[49];let H;e[50]!==i?(H=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=H):H=e[51];let V;e[52]!==B||e[53]!==u||e[54]!==H?(V=t.jsx(Fe,{id:"post-slug",value:u,onChange:Q,onBlur:B,placeholder:H,maxLength:80,className:"h-10"}),e[52]=B,e[53]=u,e[54]=H,e[55]=V):V=e[55];let O;e[56]!==h?(O=h&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),h]}),e[56]=h,e[57]=O):O=e[57];let W;e[58]!==$||e[59]!==V||e[60]!==O?(W=t.jsxs("div",{className:"space-y-2",children:[$,V,O]}),e[58]=$,e[59]=V,e[60]=O,e[61]=W):W=e[61];let Z;e[62]!==i?(Z=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=Z):Z=e[63];let G;e[64]!==Z?(G={type:"string",format:"date",title:Z},e[64]=Z,e[65]=G):G=e[65];let q;e[66]!==s.date?(q=I(s.date),e[66]=s.date,e[67]=q):q=e[67];let K;e[68]!==o?(K=N=>o("date",N),e[68]=o,e[69]=K):K=e[69];let R;e[70]!==i?(R=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=R):R=e[71];let F;e[72]!==G||e[73]!==q||e[74]!==K||e[75]!==R?(F=t.jsx(ze,{schema:G,value:q,onChange:K,path:"post-date",label:R}),e[72]=G,e[73]=q,e[74]=K,e[75]=R,e[76]=F):F=e[76];let J;e[77]!==i?(J=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=J):J=e[78];let _;e[79]!==J?(_={type:"integer",title:J},e[79]=J,e[80]=_):_=e[80];const X=typeof s.readTime=="number"?s.readTime:void 0;let oe;e[81]!==o?(oe=N=>o("readTime",N),e[81]=o,e[82]=oe):oe=e[82];let ie;e[83]!==i?(ie=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=ie):ie=e[84];let le;e[85]!==_||e[86]!==X||e[87]!==oe||e[88]!==ie?(le=t.jsx(Kt,{schema:_,value:X,onChange:oe,path:"post-read-time",label:ie}),e[85]=_,e[86]=X,e[87]=oe,e[88]=ie,e[89]=le):le=e[89];let ae;e[90]!==W||e[91]!==F||e[92]!==le?(ae=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[W,F,le]}),e[90]=W,e[91]=F,e[92]=le,e[93]=ae):ae=e[93];const st=s.image,ot=s.mobileImage;let ne,re;e[94]!==o?(ne=N=>o("image",N),re=N=>o("mobileImage",N),e[94]=o,e[95]=ne,e[96]=re):(ne=e[95],re=e[96]);let ce;e[97]!==s.alt?(ce=I(s.alt),e[97]=s.alt,e[98]=ce):ce=e[98];let de;e[99]!==i?(de=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=de):de=e[100];let me;e[101]!==s.image||e[102]!==s.mobileImage||e[103]!==ne||e[104]!==re||e[105]!==ce||e[106]!==de?(me=t.jsx(Mt,{value:st,mobileValue:ot,onChange:ne,onMobileChange:re,alt:ce,label:de}),e[101]=s.image,e[102]=s.mobileImage,e[103]=ne,e[104]=re,e[105]=ce,e[106]=de,e[107]=me):me=e[107];let pe;e[108]!==i?(pe=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=pe):pe=e[109];let ue;e[110]!==i?(ue=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=ue):ue=e[111];let fe;e[112]!==pe||e[113]!==ue?(fe={type:"string",title:pe,description:ue},e[112]=pe,e[113]=ue,e[114]=fe):fe=e[114];let xe;e[115]!==s.alt?(xe=I(s.alt),e[115]=s.alt,e[116]=xe):xe=e[116];let he;e[117]!==o?(he=N=>o("alt",N),e[117]=o,e[118]=he):he=e[118];let ge;e[119]!==i?(ge=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=ge):ge=e[120];let be;e[121]!==fe||e[122]!==xe||e[123]!==he||e[124]!==ge?(be=t.jsx(ze,{schema:fe,value:xe,onChange:he,path:"post-alt",label:ge}),e[121]=fe,e[122]=xe,e[123]=he,e[124]=ge,e[125]=be):be=e[125];let je;e[126]!==me||e[127]!==be?(je=t.jsxs("div",{className:"space-y-2",children:[me,be]}),e[126]=me,e[127]=be,e[128]=je):je=e[128];let ve;e[129]!==i?(ve=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=ve):ve=e[130];let ye;e[131]!==o?(ye=N=>o("authors",N),e[131]=o,e[132]=ye):ye=e[132];let Se;e[133]!==l||e[134]!==s.authors||e[135]!==ve||e[136]!==ye?(Se=t.jsx(Ze,{label:ve,decofile:l,kind:"authors",valueField:"email",toRef:io,selected:s.authors,onChange:ye}),e[133]=l,e[134]=s.authors,e[135]=ve,e[136]=ye,e[137]=Se):Se=e[137];let _e;e[138]!==i?(_e=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=_e):_e=e[139];let ke;e[140]!==o?(ke=N=>o("categories",N),e[140]=o,e[141]=ke):ke=e[141];let Ee;e[142]!==l||e[143]!==s.categories||e[144]!==_e||e[145]!==ke?(Ee=t.jsx(Ze,{label:_e,decofile:l,kind:"categories",valueField:"slug",toRef:oo,selected:s.categories,onChange:ke}),e[142]=l,e[143]=s.categories,e[144]=_e,e[145]=ke,e[146]=Ee):Ee=e[146];let Ce;e[147]!==o?(Ce=N=>o("extraProps",N),e[147]=o,e[148]=Ce):Ce=e[148];let Ne;e[149]!==s.extraProps||e[150]!==Ce?(Ne=t.jsx(no,{value:s.extraProps,onChange:Ce}),e[149]=s.extraProps,e[150]=Ce,e[151]=Ne):Ne=e[151];let Pe;e[152]!==o?(Pe=N=>o("seo",N),e[152]=o,e[153]=Pe):Pe=e[153];let Te;e[154]!==s.seo||e[155]!==Pe?(Te=t.jsx(ao,{value:s.seo,onChange:Pe}),e[154]=s.seo,e[155]=Pe,e[156]=Te):Te=e[156];let Ae;return e[157]!==A||e[158]!==ae||e[159]!==je||e[160]!==Se||e[161]!==Ee||e[162]!==Ne||e[163]!==Te||e[164]!==S?(Ae=t.jsxs("div",{className:"space-y-5",children:[S,A,ae,je,Se,Ee,Ne,Te]}),e[157]=A,e[158]=ae,e[159]=je,e[160]=Se,e[161]=Ee,e[162]=Ne,e[163]=Te,e[164]=S,e[165]=Ae):Ae=e[165],Ae}function oo(a){return{name:I(a.name),slug:I(a.slug)}}function io(a){return{...a}}function lo(a){return I(a.payload.slug)}function ao(a){const e=se.c(93),{value:s,onChange:l}=a,o=ee();let d;e[0]!==s?(d=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=d):d=e[1];const n=d;let c;e[2]!==l||e[3]!==n?(c=(F,J)=>l({...n,[F]:J}),e[2]=l,e[3]=n,e[4]=c):c=e[4];const i=c;let p;e[5]!==o?(p=o("sandbox.postEditor.seoSectionLabel"),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==p?(x=t.jsx("p",{className:"text-sm font-medium",children:p}),e[7]=p,e[8]=x):x=e[8];let f;e[9]!==o?(f=o("sandbox.postEditor.seoSectionHint"),e[9]=o,e[10]=f):f=e[10];let g;e[11]!==f?(g=t.jsx("p",{className:"text-xs text-muted-foreground",children:f}),e[11]=f,e[12]=g):g=e[12];let r;e[13]!==x||e[14]!==g?(r=t.jsxs("div",{className:"space-y-1",children:[x,g]}),e[13]=x,e[14]=g,e[15]=r):r=e[15];let u;e[16]!==o?(u=o("sandbox.postEditor.seoTitleLabel"),e[16]=o,e[17]=u):u=e[17];let m;e[18]!==u?(m=t.jsx(te,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=m):m=e[19];let h;e[20]!==n.title?(h=I(n.title),e[20]=n.title,e[21]=h):h=e[21];let y;e[22]!==i?(y=F=>i("title",F.target.value),e[22]=i,e[23]=y):y=e[23];let k;e[24]!==h||e[25]!==y?(k=t.jsx(Fe,{id:"post-seo-title",value:h,onChange:y,className:"h-10"}),e[24]=h,e[25]=y,e[26]=k):k=e[26];let T;e[27]!==k||e[28]!==m?(T=t.jsxs("div",{className:"space-y-2",children:[m,k]}),e[27]=k,e[28]=m,e[29]=T):T=e[29];let D;e[30]!==o?(D=o("sandbox.postEditor.seoDescriptionLabel"),e[30]=o,e[31]=D):D=e[31];let B;e[32]!==D?(B=t.jsx(te,{htmlFor:"post-seo-description",children:D}),e[32]=D,e[33]=B):B=e[33];let j;e[34]!==n.description?(j=I(n.description),e[34]=n.description,e[35]=j):j=e[35];let E;e[36]!==i?(E=F=>i("description",F.target.value),e[36]=i,e[37]=E):E=e[37];let v;e[38]!==j||e[39]!==E?(v=t.jsx(Je,{id:"post-seo-description",value:j,onChange:E,rows:2}),e[38]=j,e[39]=E,e[40]=v):v=e[40];let C;e[41]!==B||e[42]!==v?(C=t.jsxs("div",{className:"space-y-2",children:[B,v]}),e[41]=B,e[42]=v,e[43]=C):C=e[43];let b;e[44]!==o?(b=o("sandbox.postEditor.seoImageLabel"),e[44]=o,e[45]=b):b=e[45];let S;e[46]!==b?(S={type:"string",format:"image-uri",title:b},e[46]=b,e[47]=S):S=e[47];const L=n.image;let P;e[48]!==i?(P=F=>i("image",F),e[48]=i,e[49]=P):P=e[49];let w;e[50]!==o?(w=o("sandbox.postEditor.seoImageLabel"),e[50]=o,e[51]=w):w=e[51];let z;e[52]!==n.image||e[53]!==S||e[54]!==P||e[55]!==w?(z=t.jsx(zt,{schema:S,value:L,onChange:P,path:"post-seo-image",label:w}),e[52]=n.image,e[53]=S,e[54]=P,e[55]=w,e[56]=z):z=e[56];let U;e[57]!==o?(U=o("sandbox.postEditor.seoCanonicalLabel"),e[57]=o,e[58]=U):U=e[58];let A;e[59]!==U?(A=t.jsx(te,{htmlFor:"post-seo-canonical",children:U}),e[59]=U,e[60]=A):A=e[60];let M;e[61]!==n.canonical?(M=I(n.canonical),e[61]=n.canonical,e[62]=M):M=e[62];let $;e[63]!==i?($=F=>i("canonical",F.target.value),e[63]=i,e[64]=$):$=e[64];let Q;e[65]!==o?(Q=o("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=o,e[66]=Q):Q=e[66];let H;e[67]!==M||e[68]!==$||e[69]!==Q?(H=t.jsx(Fe,{id:"post-seo-canonical",value:M,onChange:$,placeholder:Q,className:"h-10"}),e[67]=M,e[68]=$,e[69]=Q,e[70]=H):H=e[70];let V;e[71]!==A||e[72]!==H?(V=t.jsxs("div",{className:"space-y-2",children:[A,H]}),e[71]=A,e[72]=H,e[73]=V):V=e[73];let O;e[74]!==o?(O=o("sandbox.postEditor.seoNoIndexingLabel"),e[74]=o,e[75]=O):O=e[75];let W;e[76]!==O?(W=t.jsx(te,{htmlFor:"post-seo-no-indexing",children:O}),e[76]=O,e[77]=W):W=e[77];const Z=n.noIndexing===!0;let G;e[78]!==i?(G=F=>i("noIndexing",F),e[78]=i,e[79]=G):G=e[79];let q;e[80]!==Z||e[81]!==G?(q=t.jsx(Ot,{id:"post-seo-no-indexing",checked:Z,onCheckedChange:G}),e[80]=Z,e[81]=G,e[82]=q):q=e[82];let K;e[83]!==W||e[84]!==q?(K=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[W,q]}),e[83]=W,e[84]=q,e[85]=K):K=e[85];let R;return e[86]!==T||e[87]!==C||e[88]!==z||e[89]!==V||e[90]!==K||e[91]!==r?(R=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[r,T,C,z,V,K]}),e[86]=T,e[87]=C,e[88]=z,e[89]=V,e[90]=K,e[91]=r,e[92]=R):R=e[92],R}function no(a){const e=se.c(24),{value:s,onChange:l}=a,o=ee();let d,n,c,i;if(e[0]!==l||e[1]!==o||e[2]!==s){d=Xs(s);const r=(m,h)=>l(d.map((y,k)=>k===m?{...y,...h}:y));n="space-y-2";let u;e[7]!==o?(u=o("sandbox.postEditor.extraPropsLabel"),e[7]=o,e[8]=u):u=e[8],e[9]!==u?(c=t.jsx(te,{children:u}),e[9]=u,e[10]=c):c=e[10],i=d.length>0&&t.jsx("ul",{className:"space-y-2",children:d.map((m,h)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(Fe,{value:m.key,onChange:y=>r(h,{key:y.target.value}),placeholder:o("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(Fe,{value:m.value,onChange:y=>r(h,{value:y.target.value}),placeholder:o("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(rs,{label:o("sandbox.postEditor.removePropLabel"),onClick:()=>l(d.filter((y,k)=>k!==h))})]},h))}),e[0]=l,e[1]=o,e[2]=s,e[3]=d,e[4]=n,e[5]=c,e[6]=i}else d=e[3],n=e[4],c=e[5],i=e[6];let p;e[11]!==o?(p=o("sandbox.postEditor.addPropLabel"),e[11]=o,e[12]=p):p=e[12];let x;e[13]!==d||e[14]!==l?(x=()=>l([...d,{key:"",value:""}]),e[13]=d,e[14]=l,e[15]=x):x=e[15];let f;e[16]!==p||e[17]!==x?(f=t.jsx(ps,{label:p,onClick:x}),e[16]=p,e[17]=x,e[18]=f):f=e[18];let g;return e[19]!==n||e[20]!==c||e[21]!==i||e[22]!==f?(g=t.jsxs("div",{className:n,children:[c,i,f]}),e[19]=n,e[20]=c,e[21]=i,e[22]=f,e[23]=g):g=e[23],g}function Ze(a){const e=se.c(24),{label:s,decofile:l,kind:o,valueField:d,toRef:n,selected:c,onChange:i}=a,p=ee();let x;e[0]!==l||e[1]!==o||e[2]!==c||e[3]!==n||e[4]!==d?(x=ns({records:et(l,o),selected:c,valueField:d,toRef:n}),e[0]=l,e[1]=o,e[2]=c,e[3]=n,e[4]=d,e[5]=x):x=e[5];const{options:f,selectedValues:g,refsForValues:r}=x;let u;e[6]!==o||e[7]!==p?(u=p(o==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=o,e[7]=p,e[8]=u):u=e[8];const m=u;let h;e[9]!==o||e[10]!==p?(h=p(o==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=o,e[10]=p,e[11]=h):h=e[11];const y=h;let k;e[12]!==s?(k=t.jsx(te,{children:s}),e[12]=s,e[13]=k):k=e[13];let T;e[14]!==m||e[15]!==i||e[16]!==f||e[17]!==r||e[18]!==y||e[19]!==g?(T=f.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:m}):t.jsx(Ft,{options:f,defaultValue:g,onValueChange:B=>i(r(B)),placeholder:y,maxCount:4}),e[14]=m,e[15]=i,e[16]=f,e[17]=r,e[18]=y,e[19]=g,e[20]=T):T=e[20];let D;return e[21]!==k||e[22]!==T?(D=t.jsxs("div",{className:"space-y-2",children:[k,T]}),e[21]=k,e[22]=T,e[23]=D):D=e[23],D}function Vl(a){const e=se.c(10),s=a.block!==void 0;let l;e[0]!==a?(l=t.jsx(eo,{...a}),e[0]=a,e[1]=l):l=e[1];let o;return e[2]!==a.blockKey||e[3]!==a.branch||e[4]!==a.decofile||e[5]!==a.orgSlug||e[6]!==a.virtualMcpId||e[7]!==s||e[8]!==l?(o=t.jsx(Wt,{listing:a.decofile,orgSlug:a.orgSlug,virtualMcpId:a.virtualMcpId,branch:a.branch,blockKey:a.blockKey,present:s,children:l}),e[2]=a.blockKey,e[3]=a.branch,e[4]=a.decofile,e[5]=a.orgSlug,e[6]=a.virtualMcpId,e[7]=s,e[8]=l,e[9]=o):o=e[9],o}export{Vl as PostEditor};
1
+ import{b as ee,ak as lt,r as Y,j as t,B as Le,D as at,v as nt,w as rt,x as ct,aT as dt,bu as mt,m as Be,y as pt,t as we,c as se,a7 as ut,aN as ft,aM as xt,aJ as ht,aH as gt,aI as bt,aL as jt,aK as vt,b5 as yt,h as St,b6 as _t,I as Fe}from"./index-CHOxYhnv.js";import{u as kt}from"./chat-context-o9Pyy_rd.js";import{i as Oe}from"./AlertCircle-BHOdje2-.js";import{aa as Et,aX as Ct,bZ as Nt,ae as Pt,aF as Tt,l as Lt}from"./agent-icon-C-RKmmDR.js";import{d as wt}from"./UserSquare-DomA7Npc.js";import{s as Dt}from"./Trash01-D4h16nnS.js";import{s as Bt}from"./XClose-DsOcImLD.js";import{L as te}from"./label-B6kbb_qI.js";import{M as Ft}from"./multi-select-B_Fvyk0J.js";import{b as At,a as It,T as We,c as Ge}from"./tabs-CGFgLwIj.js";import{S as Ot}from"./switch-DCbfNrSN.js";import{T as Je}from"./textarea-DiKdmgZC.js";import{S as Rt,I as zt}from"./save-status-CzYNQ6G2.js";import{u as $t,I as qt,a as Ie,B as Ut,R as Mt}from"./block-document-DvtTe-B8.js";import{R as Ht,e as Vt,H as Wt,c as Gt,f as ze,N as Kt}from"./held-block-view-BFXBQ9fK.js";import{b as Yt,C as Zt,K as Qt}from"./blog-schema-BZTYj2LA.js";import{Z as Jt,M as Xt,a as es,d as ts,f as ss,_ as os,j as I,$ as is,a0 as ls,m as Ke,a1 as as,a2 as Xe,a3 as ns,H as et,a4 as rs,W as cs,V as ds,a5 as ms,a6 as ps,R as us,Q as fs}from"./category-tree-hquVl_NC.js";import{c as $e,T as qe,a as Ue}from"./tooltip-D2JXB44W.js";import{f as xs,a as hs,b as gs}from"./blog-preview-url-BaS_j9Mv.js";import{e as bs,f as js,g as Ye,u as vs,a as ys,d as Ss}from"./delete-copy-CdfctKz4.js";import{u as _s}from"./use-ai-providers-BJRvsFFm.js";import{u as ks}from"./use-delete-block-C97xuHhI.js";import{F as Es,u as Ze,a as Cs,k as Ns}from"./use-never-published-DP-ayb_U.js";import{u as Ps}from"./use-fast-preview-draft-url-Dd9sZXW3.js";import{u as Ts}from"./use-autosave-B4Qmzq9F.js";import{e as Ls,b as ws}from"./Tool01-C_vFDQiZ.js";import{a as Ds,E as Bs,u as Fs}from"./usage-stats-PiJNBrSI.js";import{s as As}from"./suggestion-D5SniAVu.js";import{E as Is,T as Me}from"./editor-classes-8qIA7W4N.js";import{u as Os}from"./site-editor-toast-CPe_RO4U.js";import"./use-view-draft-kind-By-WcYfU.js";import"./thread-route-CVZs3lS7.js";import"./use-project-scope-BTU4ukSL.js";import"./repository-binding-zOZEsVNQ.js";import"./use-mcp-client-CAI0PiRc.js";import"./auth-DQhl82rC.js";import"./use-organization-settings-04SG-hKv.js";import"./schema-BB8zKrPl.js";import"./task-board--eP68xys.js";import"./thread-intent-otNmUDpT.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Gp1E8HHl.js";import"./use-entitlements-npCYsfMp.js";import"./use-decopilot-events-Bvlss2N9.js";import"./ArrowUp-BKp-bI0t.js";import"./ArrowLeft-DwK9IQqr.js";import"./LinkBroken01-Beajkv8Y.js";import"./BookOpen01-CCzJ3iHg.js";import"./Globe04-CpMO0Sfn.js";import"./CheckCircle-CpYSXUlJ.js";import"./ChevronUp-yM6kuF7B.js";import"./ChevronSelectorVertical-BfPzQt1M.js";import"./CreditCard01-ClPhtnpy.js";import"./SwitchHorizontal01-Be5wnM3M.js";import"./Key01-BUefgO6r.js";import"./Minus-CkHBDYFP.js";import"./Monitor01-6Z9BL4ul.js";import"./Sun-CBa0lZzX.js";import"./Play-QQIqJKj8.js";import"./Plus-jqQtsDrV.js";import"./SearchMd--9oaPr0p.js";import"./ShoppingBag01-DWT7jnvZ.js";import"./Upload01-DLWP4rJI.js";import"./Users01-DQk985Hj.js";import"./Zap-CXSu8byh.js";import"./badge-lysbeP9P.js";import"./checkbox-BgJ_rDKP.js";import"./command-CnhVLB17.js";import"./index-BNwuaZhD.js";import"./popover-AfVmBiXN.js";import"./active-indicator-CCMhAsc_.js";import"./toggle-group-DWJu5FLK.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-H9DeMtGB.js";import"./asset-utils-DLSL6NlD.js";import"./useInfiniteQuery-Cr6l3hRz.js";import"./infiniteQueryObserver-Sb4-Zoh0.js";import"./core.esm-AubJLKZ-.js";import"./sortable.esm-DMidKm69.js";import"./product-picker-dialog-D8WcSokk.js";import"./index-C_bl8gsZ.js";import"./index-BmYwClLx.js";import"./blocks-tab-states-DScRj9jB.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-Bt11fXlC.js";import"./drawer-Donq2Zq_.js";import"./use-mobile-DlyIeamj.js";import"./index-Ujlc9MWT.js";import"./select-oOpcW8y8.js";import"./index-BdQq_4o_.js";import"./index-BZdAVrUU.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-DDTtYKkY.js";import"./utils-2an1bWl1.js";import"./calendar-RFGSgZO6.js";import"./empty-message-BAHk-1bK.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BoFr4FJb.js";import"./collapsible-Ck6jFTQH.js";import"./use-copy-BMjPWKp8.js";import"./shell-layout-C4gugWKg.js";import"./use-deployment-admin-BLMaSYC-.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-CM5LyK_z.js";import"./project-icon-D_A1aREs.js";import"./use-navigate-to-agent-rf_XQPo1.js";import"./use-debounced-value-CoBOVCcY.js";import"./new-project-dialog-C9WcHYrC.js";import"./repository-picker-DQ8Ce_c3.js";import"./github-icon-CBn2nQtJ.js";import"./collection-search-Cr2_Tgzy.js";import"./legacy-admin-welcome-dialog-C1EB7MCq.js";import"./required-auth-layout-D8CrwDut.js";import"./use-org-sso-Bz3FXaUK.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CEhql9SF.js";import"./types-BQyA3BSs.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./tool-namespace-BOC8taOg.js";import"./utils-CVEq3hMx.js";import"./markdown-Deyw3r6u.js";import"./sheet-B4sQvcZD.js";import"./use-connection-D0bmffUK.js";import"./use-mcp-prompts-DqQEh2Qr.js";import"./use-thread-outputs-DcXhIS9K.js";import"./file-type-icon-D4Edy8Bo.js";import"./section-array-field-D7aYRyOo.js";import"./named-rule-step-WRCKmihp.js";import"./slider-DMICv7y9.js";import"./index-DChf1qbF.js";import"./tooltipContext-DFFEsXAa.js";import"./CategoricalChart-BH2fCBYy.js";import"./index-jntxieqb.js";import"./combobox-CqgGSY4o.js";import"./scroll-area-w2Fr7CkP.js";import"./hosted-reconcile-CrIPblfo.js";import"./use-move-blocks-CfkVWpoJ.js";import"./sandbox-git-api-DcqI6XE4.js";import"./search-input-CxzHzt1i.js";import"./form-DddGN9Yh.js";import"./use-sandbox-events-BgsP-jl-.js";import"./use-blocks-v8-project-D8GbwCrf.js";const De=a=>typeof a=="string"?a:"",Rs={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&#39;":"'"};function tt(a){const e=[];let s=0,l=!1;for(;s<a.length;){if(a[s]==="<"){const c=a.indexOf(">",s);s=c<0?a.length:c+1;continue}let o=a[s]??"",d=s+1;if(a[s]==="&"){const c=a.indexOf(";",s);if(c>=0&&c-s<=10){const i=Rs[a.slice(s,c+1).toLowerCase()];i!==void 0&&(o=i,d=c+1)}}const n=s;if(s=d,/\s/.test(o)){if(l){const c=e[e.length-1];c&&(c.end=d);continue}e.push({ch:" ",start:n,end:d}),l=!0}else e.push({ch:o,start:n,end:d}),l=!1}return{text:e.map(o=>o.ch).join(""),chars:e}}function zs(a){return tt(a).text.trim()}function $s(a){const e=[];for(const s of a)switch(Jt(De(s.__resolveType))){case"Paragraph":e.push(zs(De(s.html)));break;case"Heading":e.push(De(s.text));break;case"Quote":e.push(De(s.quote));break;case"List":e.push(De(s.items));break}return e.filter(Boolean).join(`
2
+ `)}function qs(a){return a.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function Us(a,e){const s=a.slice(0,e);return s.lastIndexOf("<a")>s.lastIndexOf("</a")}function Ms(a,e,s){const l=e.trim();if(!l||!s)return{blocks:a,applied:!1};for(let o=0;o<a.length;o++){const d=a[o];if(!d||typeof d.html!="string")continue;const n=d.html,{text:c,chars:i}=tt(n);let p=c.indexOf(l);for(;p>=0;){const x=i[p],f=i[p+l.length-1];if(x&&f){const g=x.start,r=f.end,u=n.slice(g,r);if(!u.includes("<")&&!Us(n,g)){const m=n.slice(0,g)+`<a href="${qs(s)}">${u}</a>`+n.slice(r),h=a.slice();return h[o]={...d,html:m},{blocks:h,applied:!0}}}p=c.indexOf(l,p+1)}}return{blocks:a,applied:!1}}function Hs(a,e){let s=a,l=0;for(const o of e){const d=Ms(s,o.quote,o.href);d.applied&&(s=d.blocks,l++)}return{blocks:s,applied:l}}function Vs({virtualMcpId:a,decofile:e,sections:s,currentKey:l,meta:o,hasAi:d,onApply:n}){const c=ee(),i=lt(),[p,x]=Y.useState(!1),[f,g]=Y.useState(!1),[r,u]=Y.useState([]),[m,h]=Y.useState(new Set),y=xs(e,o),k=Xt(e).filter(j=>j.key!==l&&j.slug),T=async()=>{g(!0);try{const j=$s(s),E=await i.call("BLOG_SITE_GROUND",{virtualMcpId:a,purpose:"link"}).catch(S=>{console.warn("[linkSuggest] grounding failed",S)}),v=await i.call("BLOG_LINK_SUGGEST",{virtualMcpId:a,body:j,posts:k.map(S=>({title:S.title,slug:S.slug})),grounding:E?{report:E.report,outcome:E.outcome}:void 0}),C=[],b=new Set;for(const S of v.suggestions){const L=k.find(z=>z.slug===S.slug);if(!L||!y)continue;const P=hs(y,{category:L.categorySlugs[0]??"",slug:L.slug});if(!P||!j.includes(S.quote))continue;const w=`${S.quote}→${L.slug}`;b.has(w)||(b.add(w),C.push({quote:S.quote,href:P,title:L.title}))}u(C),h(new Set(C.map((S,L)=>L))),x(!0),C.length===0&&we.info(c("sandbox.linkSuggest.none"))}catch(j){we.error(j instanceof Error?j.message:c("sandbox.linkSuggest.failed"))}finally{g(!1)}},D=j=>h(E=>{const v=new Set(E);return v.has(j)?v.delete(j):v.add(j),v}),B=()=>{const j=r.filter((C,b)=>m.has(b)).map(C=>({quote:C.quote,href:C.href})),{blocks:E,applied:v}=Hs(s,j);n(E),x(!1),we.success(c("sandbox.linkSuggest.applied",{count:String(v)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:f||!d||k.length===0,title:d?k.length===0?c("sandbox.linkSuggest.noCandidates"):c("sandbox.linkSuggest.hint"):c("sandbox.autonomous.noAiProvider"),onClick:()=>{T()},children:[f?t.jsx(Et,{size:14,className:"animate-spin"}):t.jsx(Ct,{size:14}),c("sandbox.linkSuggest.button")]}),t.jsx(at,{open:p,onOpenChange:x,children:t.jsxs(nt,{className:"max-h-[85vh] sm:max-w-lg",children:[t.jsxs(rt,{children:[t.jsx(ct,{children:c("sandbox.linkSuggest.title")}),t.jsx(dt,{children:c("sandbox.linkSuggest.description")})]}),r.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:c("sandbox.linkSuggest.none")}):t.jsx("ul",{className:"max-h-[50vh] space-y-1 overflow-y-auto",children:r.map((j,E)=>{const v=m.has(E);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>D(E),"aria-pressed":v,className:"flex w-full items-start gap-2.5 rounded-lg border p-2.5 text-left transition-colors hover:bg-accent",children:[t.jsx("span",{className:Be("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",v?"border-primary bg-primary text-primary-foreground":"border-input"),children:v&&t.jsx(mt,{size:11})}),t.jsxs("span",{className:"min-w-0 flex-1 text-sm",children:[t.jsxs("span",{className:"font-medium",children:["“",j.quote,"”"]}),t.jsxs("span",{className:"text-muted-foreground",children:[" → ",j.title]})]})]})},`${j.quote}-${j.href}`)})}),t.jsx(pt,{children:t.jsx(Le,{type:"button",disabled:m.size===0,onClick:B,children:c("sandbox.linkSuggest.apply",{count:String(m.size)})})})]})})]})}const Ws={unit:"pt",initial:12,min:6,max:96},Gs=["outline-none min-h-80 px-4 py-3 text-[15px] leading-relaxed text-foreground","[&>*:first-child]:mt-0 [&_p]:my-3","[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-3xl [&_h1]:font-bold","[&_h2]:mb-3 [&_h2]:mt-6 [&_h2]:text-2xl [&_h2]:font-bold","[&_h3]:mb-2 [&_h3]:mt-5 [&_h3]:text-xl [&_h3]:font-bold","[&_h4]:mb-2 [&_h4]:mt-4 [&_h4]:text-lg [&_h4]:font-bold","[&_h5]:mb-2 [&_h5]:mt-4 [&_h5]:text-base [&_h5]:font-bold","[&_h6]:mb-2 [&_h6]:mt-4 [&_h6]:text-sm [&_h6]:font-bold","[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-6 [&_li>p]:my-1","[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground","[&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-sm","[&_img]:inline-block [&_img]:h-auto [&_img]:max-w-full","[&_img.ProseMirror-selectednode]:outline-2 [&_img.ProseMirror-selectednode]:outline-primary","[&_table]:my-3 [&_table]:w-full [&_table]:border-collapse [&_td>p]:my-0 [&_th>p]:my-0","[&_td]:border [&_td]:border-border [&_td]:p-2 [&_th]:border [&_th]:border-border [&_th]:bg-muted [&_th]:p-2","[&_strong]:font-bold",Is],Ks=["[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none"];function Ys(a){const e=se.c(39),{editor:s}=a,l=ee(),[o,d]=Y.useState(!1),[n,c]=Y.useState(null),[i,p]=Y.useState(null);let x;e[0]!==s?(x=P=>{s.chain().setImage({src:P}).run()},e[0]=s,e[1]=x):x=e[1];const f=x;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{c(null),p(null)},e[2]=g):g=e[2];const r=g;let u;e[3]!==f||e[4]!==l||e[5]!==n?(u=()=>{const P=(n??"").trim(),w=Ye(P);if(!w&&P){p(P.toLowerCase().startsWith("data:")?l("sandbox.postEditor.legacyImageDataUrl"):l("sectionsEditor.imageField.unsafeUrl"));return}w&&f(w),r()},e[3]=f,e[4]=l,e[5]=n,e[6]=u):u=e[6];const m=u;let h;e[7]!==l?(h=l("sandbox.postEditor.legacyInsertImage"),e[7]=l,e[8]=h):h=e[8];let y,k;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=()=>d(!0),k=t.jsx(Ls,{size:14}),e[9]=y,e[10]=k):(y=e[9],k=e[10]);let T;e[11]!==o||e[12]!==h?(T=t.jsx(Me,{active:o,label:h,onClick:y,children:k}),e[11]=o,e[12]=h,e[13]=T):T=e[13];const D=n!==null;let B;e[14]!==l?(B=l("sandbox.postEditor.legacyInsertImageUrl"),e[14]=l,e[15]=B):B=e[15];let j;e[16]!==m||e[17]!==n?(j=()=>n===null?c(""):m(),e[16]=m,e[17]=n,e[18]=j):j=e[18];let E;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(ws,{size:14}),e[19]=E):E=e[19];let v;e[20]!==j||e[21]!==D||e[22]!==B?(v=t.jsx(Me,{active:D,label:B,onClick:j,children:E}),e[20]=j,e[21]=D,e[22]=B,e[23]=v):v=e[23];let C;e[24]!==m||e[25]!==l||e[26]!==n||e[27]!==i?(C=n!==null&&t.jsx(qt,{draft:n,notice:i,label:l("sandbox.postEditor.legacyInsertImageUrl"),placeholder:l("sectionsEditor.imageField.urlPlaceholder"),onDraftChange:P=>{p(null),c(P)},onCommit:m,onCancel:r}),e[24]=m,e[25]=l,e[26]=n,e[27]=i,e[28]=C):C=e[28];let b;e[29]!==f?(b=P=>{const w=Ye(P);w&&f(w)},e[29]=f,e[30]=b):b=e[30];let S;e[31]!==o||e[32]!==b?(S=t.jsx(Es,{open:o,onOpenChange:d,mode:"image",onSelect:b}),e[31]=o,e[32]=b,e[33]=S):S=e[33];let L;return e[34]!==v||e[35]!==C||e[36]!==S||e[37]!==T?(L=t.jsxs("div",{className:"flex items-center gap-0.5",children:[T,v,C,S]}),e[34]=v,e[35]=C,e[36]=S,e[37]=T,e[38]=L):L=e[38],L}function Zs(a){const e=se.c(21),{editor:s}=a,l=ee(),[o,d]=Y.useState(!1);let n;e[0]!==s?(n={editor:s,selector:Qs},e[0]=s,e[1]=n):n=e[1];const c=Fs(n);let i;e[2]!==s||e[3]!==o||e[4]!==c.highlight?(i=t.jsx(Vt,{editor:s,mark:"highlight",currentColor:c.highlight,open:o,onOpenChange:d}),e[2]=s,e[3]=o,e[4]=c.highlight,e[5]=i):i=e[5];const p=c.codeBlock;let x;e[6]!==l?(x=l("sandbox.postEditor.legacyCodeBlock"),e[6]=l,e[7]=x):x=e[7];let f;e[8]!==s?(f=()=>s.chain().focus().toggleCodeBlock().run(),e[8]=s,e[9]=f):f=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Nt,{size:14}),e[10]=g):g=e[10];let r;e[11]!==c.codeBlock||e[12]!==x||e[13]!==f?(r=t.jsx(Me,{active:p,label:x,onClick:f,children:g}),e[11]=c.codeBlock,e[12]=x,e[13]=f,e[14]=r):r=e[14];let u;e[15]!==s?(u=t.jsx(Ys,{editor:s}),e[15]=s,e[16]=u):u=e[16];let m;return e[17]!==i||e[18]!==r||e[19]!==u?(m=t.jsxs(t.Fragment,{children:[i,r,u]}),e[17]=i,e[18]=r,e[19]=u,e[20]=m):m=e[20],m}function Qs(a){const{editor:e}=a;return{highlight:e.isActive("highlight")?e.getAttributes("highlight").color??null:null,codeBlock:e.isActive("codeBlock")}}function Js({value:a,onChange:e,decofile:s,sandboxRef:l}){const o=ee(),d=Y.useRef(e);d.current=e;const n=Ds({extensions:[...js(),As.configure({placeholder:o("sandbox.postEditor.legacyContentPlaceholder")})],content:a,editorProps:{attributes:{class:Be(Gs)}},onUpdate:({editor:i})=>{d.current(bs(i.getHTML()))}}),c=$t({decofile:s,sandboxRef:l});return n?t.jsxs("div",{className:"rounded-[var(--studio-surface-radius,var(--radius-md))] border shadow-edge border-input",children:[t.jsx(Ht,{editor:n,fontSize:Ws,linkSources:c,extras:t.jsx(Zs,{editor:n})}),t.jsx(Bs,{editor:n,className:Be("max-h-[70vh] overflow-y-auto",Ks)})]}):null}function Xs(a){return Array.isArray(a)?a.map(e=>({key:I(e?.key),value:I(e?.value)})):[]}function eo({orgSlug:a,virtualMcpId:e,branch:s,blockKey:l,block:o,decofile:d,meta:n,previewBaseUrl:c,move:i,onClose:p,expanded:x,onToggleExpand:f,onDeleted:g}){const r=ee(),u=kt()?.taskId??null,m=Ze({orgSlug:a,virtualMcpId:e,branch:s},{holdsCopy:!0}),h=ks({orgSlug:a,virtualMcpId:e,branch:s}),y=Os(e,s),k=y.kind==="protocol"&&y.source==="github",T=Cs({orgSlug:a,virtualMcpId:e,branch:s}),D=_s().length>0,B=vs(),j=ys(e),E=Ps({orgSlug:a,virtualMcpId:e,branch:s}),v=es(o,"posts"),C=_=>{const X=m.shown(_);return X?{[_]:X}:{}},[b,S,L,P]=Ts(v,_=>{m.mutate({blockKey:l,data:ts(l,ss(_))})},{isSaving:m.isPending,onSeed:()=>m.hold(l)}),[w,z]=Y.useState(l);w!==l&&(z(l),L(v));const U=_=>{L(b),i.apply(l,_,b,()=>C(l))},A=(_,X)=>S({...b,[_]:X}),M=Yt("posts",n,Qt),$=Ze({orgSlug:a,virtualMcpId:e,branch:s}),Z=Gt(_=>(m.v8?$:m).mutate(_),d,m.v8),[H,V]=Y.useState(0),O=gs({decofile:d,post:b,previewBaseUrl:c,draftPointer:E,meta:n}),W=os(d,"posts",l,I(b.title)),Q=is(b),[G,q]=Y.useState(!1),K=async()=>{L(b);try{const _=await h.mutateAsync({blockKey:l,shown:()=>m.shown(l)});if(q(!1),Ns(_))return;we.success(r("sandbox.postEditor.deletePostSuccess",{title:I(b.title)})),g?.(),p?.()}catch(_){we.error(_ instanceof Error?_.message:r("sandbox.postEditor.deletePostFailed"))}},R=ls(b),F=R.length>0,J=R.length===1?r("sandbox.postEditor.missingFieldSingular",{fields:Ke(R,r)}):r("sandbox.postEditor.missingFieldPlural",{fields:Ke(R,r)});return t.jsxs("div",{className:"relative flex h-full flex-col",children:[t.jsx("div",{className:"absolute inset-x-0 top-0 z-10 bg-background/80 backdrop-blur-sm",children:t.jsxs("div",{className:"mx-auto flex max-w-4xl items-center justify-between gap-2 px-8 py-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Rt,{isPending:m.isPending||m.v8&&$.isPending||P,isError:m.isError||m.v8&&$.isError}),F&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Oe,{size:14}),R.length," ",R.length===1?r("sandbox.postEditor.issueSingular"):r("sandbox.postEditor.issuePlural")]})}),t.jsx(Ue,{side:"bottom",children:J})]})]}),(f||p)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[f&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:f,title:r(x?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:x?t.jsx(Pt,{size:16}):t.jsx(Tt,{size:16})}),p&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:p,title:r("sandbox.postBoard.close"),children:t.jsx(Bt,{size:16})})]})]})}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 pb-6 pt-14",children:[t.jsx(as,{value:I(b.title),onChange:_=>A("title",_),placeholder:r("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),W&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(At,{defaultValue:"content",className:"mt-6 gap-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs(It,{children:[t.jsxs(We,{value:"content",children:[t.jsx(wt,{}),r("sandbox.postEditor.contentTab")]}),t.jsxs(We,{value:"settings",children:[t.jsx(Lt,{}),r("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[Q&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx(Le,{type:"button",variant:"ghost-destructive",size:"sm",className:"px-2","aria-label":r("sandbox.postEditor.deletePost"),onClick:()=>q(!0),children:t.jsx(Dt,{size:14})})}),t.jsx(Ue,{side:"bottom",children:r("sandbox.postEditor.deletePost")})]}),B&&!j&&t.jsx(Vs,{decofile:d,virtualMcpId:e,sections:Ie(b.sections),currentKey:l,meta:n,hasAi:D,onApply:_=>{A("sections",_),V(X=>X+1)}}),p&&t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:!O,title:r(O?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{O&&window.open(O,"_blank","noopener,noreferrer")},children:[t.jsx(ut,{size:14}),r("sandbox.postEditor.seePreview")]})]})]}),t.jsx(Ge,{value:"content",children:j?t.jsxs("div",{className:"space-y-3",children:[Ie(b.sections).length>0&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.legacySectionsNotice",{count:Ie(b.sections).length})]}),t.jsx(Js,{value:I(b.content),onChange:_=>A("content",_),decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u}})]}):t.jsx("div",{className:"surface p-8",children:t.jsx(Ut,{value:Ie(b.sections),onChange:_=>A("sections",_),meta:n,decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u},previewBaseUrl:c,onSaveReferencedBlock:Z,emptyMessage:r("sandbox.postEditor.noContentYet")},H)})}),t.jsx(Ge,{value:"settings",children:t.jsxs("div",{className:"surface p-6",children:[t.jsx(so,{post:b,decofile:d,onChange:A,blockKey:l,move:i,onMoveStatus:U}),t.jsx(Zt,{schema:M,value:b,onChange:S,basePath:"post",meta:n,decofile:d,sandbox:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u},onSaveReferencedBlock:Z})]})})]})]})}),t.jsx(ft,{open:G,onOpenChange:_=>{!_&&!h.isPending&&q(!1)},children:t.jsxs(xt,{children:[t.jsxs(ht,{children:[t.jsx(gt,{children:r("sandbox.postEditor.deletePostConfirmTitle")}),t.jsx(bt,{children:r(Ss("post",k,{neverPublished:T(l)}),{title:I(b.title)||r("sandbox.postBoard.untitled")})})]}),t.jsxs(jt,{children:[t.jsx(vt,{disabled:h.isPending,children:r("sandbox.postEditor.deletePostCancel")}),t.jsx(yt,{onClick:_=>{_.preventDefault(),K()},disabled:h.isPending,className:Be(_t({variant:"destructive"})),children:h.isPending?t.jsxs(t.Fragment,{children:[t.jsx(St,{className:"size-3.5"}),r("sandbox.postEditor.deletingPost")]}):r("sandbox.postEditor.deletePost")})]})]})})]})}function to(a){const e=se.c(15),{blockKey:s,post:l,move:o,onMoveStatus:d}=a,n=ee();let c;e[0]!==l?(c=Xe(l),e[0]=l,e[1]=c):c=e[1];const i=c;let p,x;if(e[2]!==s||e[3]!==i||e[4]!==o||e[5]!==d||e[6]!==l||e[7]!==n){let g;e[10]!==i?(g=u=>u!=="generating"||i==="generating",e[10]=i,e[11]=g):g=e[11];const r=us.filter(g);p="flex flex-wrap gap-1.5",x=r.map(u=>{const m=u===i,h=m?null:o.refuse(s,u,l);return t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!h,"aria-pressed":m,onClick:()=>d(u),className:Be("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",m?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-accent",h&&"cursor-not-allowed opacity-50"),children:n(fs[u])})})}),h&&t.jsx(Ue,{side:"bottom",children:o.reasonText(h)})]},u)}),e[2]=s,e[3]=i,e[4]=o,e[5]=d,e[6]=l,e[7]=n,e[8]=p,e[9]=x}else p=e[8],x=e[9];let f;return e[12]!==p||e[13]!==x?(f=t.jsx("div",{className:p,children:x}),e[12]=p,e[13]=x,e[14]=f):f=e[14],f}function so(a){const e=se.c(166),{post:s,decofile:l,onChange:o,blockKey:d,move:n,onMoveStatus:c}=a,i=ee();let p;e[0]!==s?(p=Xe(s),e[0]=s,e[1]=p):p=e[1];const f=p==="scheduled";let g;e[2]!==s.slug?(g=I(s.slug),e[2]=s.slug,e[3]=g):g=e[3];const r=g,[u,m]=Y.useState(r),[h,y]=Y.useState(null),[k,T]=Y.useState(r);k!==r&&(T(r),m(r));let D;e[4]!==d||e[5]!==r||e[6]!==l||e[7]!==o||e[8]!==u||e[9]!==i?(D=()=>{const N=cs(u);if(m(N),N===r)return;if(!N){y(null),o("slug","");return}const He=et(l,"posts").filter(it=>it.key!==d).map(lo).filter(Boolean);if(!He.includes(N)){y(null),o("slug",N);return}const Re=ds(N,He),Ve=i("sandbox.postEditor.slugDeduped",{slug:Re});m(Re),y(Ve),we.info(Ve),o("slug",Re)},e[4]=d,e[5]=r,e[6]=l,e[7]=o,e[8]=u,e[9]=i,e[10]=D):D=e[10];const B=D;let j;e[11]!==i?(j=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=j):j=e[12];let E;e[13]!==j?(E=t.jsx(te,{children:j}),e[13]=j,e[14]=E):E=e[14];let v;e[15]!==d||e[16]!==n||e[17]!==c||e[18]!==s?(v=t.jsx(to,{blockKey:d,post:s,move:n,onMoveStatus:c}),e[15]=d,e[16]=n,e[17]=c,e[18]=s,e[19]=v):v=e[19];let C;e[20]!==E||e[21]!==v?(C=t.jsxs("div",{className:"space-y-2",children:[E,v]}),e[20]=E,e[21]=v,e[22]=C):C=e[22];let b;e[23]!==f||e[24]!==o||e[25]!==s.scheduledDatetime||e[26]!==i?(b=f&&t.jsx(ze,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:I(s.scheduledDatetime),onChange:N=>o("scheduledDatetime",N),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=f,e[24]=o,e[25]=s.scheduledDatetime,e[26]=i,e[27]=b):b=e[27];let S;e[28]!==C||e[29]!==b?(S=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[C,b]}),e[28]=C,e[29]=b,e[30]=S):S=e[30];let L;e[31]!==i?(L=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=L):L=e[32];let P;e[33]!==L?(P=t.jsx(te,{htmlFor:"post-excerpt",children:L}),e[33]=L,e[34]=P):P=e[34];let w;e[35]!==s.excerpt?(w=I(s.excerpt),e[35]=s.excerpt,e[36]=w):w=e[36];let z;e[37]!==o?(z=N=>o("excerpt",N.target.value),e[37]=o,e[38]=z):z=e[38];let U;e[39]!==w||e[40]!==z?(U=t.jsx(Je,{id:"post-excerpt",value:w,onChange:z,rows:2}),e[39]=w,e[40]=z,e[41]=U):U=e[41];let A;e[42]!==P||e[43]!==U?(A=t.jsxs("div",{className:"space-y-2",children:[P,U]}),e[42]=P,e[43]=U,e[44]=A):A=e[44];let M;e[45]!==i?(M=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=M):M=e[46];let $;e[47]!==M?($=t.jsx(te,{htmlFor:"post-slug",children:M}),e[47]=M,e[48]=$):$=e[48];let Z;e[49]===Symbol.for("react.memo_cache_sentinel")?(Z=N=>{y(null),m(ms(N.target.value))},e[49]=Z):Z=e[49];let H;e[50]!==i?(H=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=H):H=e[51];let V;e[52]!==B||e[53]!==u||e[54]!==H?(V=t.jsx(Fe,{id:"post-slug",value:u,onChange:Z,onBlur:B,placeholder:H,maxLength:80,className:"h-10"}),e[52]=B,e[53]=u,e[54]=H,e[55]=V):V=e[55];let O;e[56]!==h?(O=h&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),h]}),e[56]=h,e[57]=O):O=e[57];let W;e[58]!==$||e[59]!==V||e[60]!==O?(W=t.jsxs("div",{className:"space-y-2",children:[$,V,O]}),e[58]=$,e[59]=V,e[60]=O,e[61]=W):W=e[61];let Q;e[62]!==i?(Q=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=Q):Q=e[63];let G;e[64]!==Q?(G={type:"string",format:"date",title:Q},e[64]=Q,e[65]=G):G=e[65];let q;e[66]!==s.date?(q=I(s.date),e[66]=s.date,e[67]=q):q=e[67];let K;e[68]!==o?(K=N=>o("date",N),e[68]=o,e[69]=K):K=e[69];let R;e[70]!==i?(R=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=R):R=e[71];let F;e[72]!==G||e[73]!==q||e[74]!==K||e[75]!==R?(F=t.jsx(ze,{schema:G,value:q,onChange:K,path:"post-date",label:R}),e[72]=G,e[73]=q,e[74]=K,e[75]=R,e[76]=F):F=e[76];let J;e[77]!==i?(J=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=J):J=e[78];let _;e[79]!==J?(_={type:"integer",title:J},e[79]=J,e[80]=_):_=e[80];const X=typeof s.readTime=="number"?s.readTime:void 0;let oe;e[81]!==o?(oe=N=>o("readTime",N),e[81]=o,e[82]=oe):oe=e[82];let ie;e[83]!==i?(ie=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=ie):ie=e[84];let le;e[85]!==_||e[86]!==X||e[87]!==oe||e[88]!==ie?(le=t.jsx(Kt,{schema:_,value:X,onChange:oe,path:"post-read-time",label:ie}),e[85]=_,e[86]=X,e[87]=oe,e[88]=ie,e[89]=le):le=e[89];let ae;e[90]!==W||e[91]!==F||e[92]!==le?(ae=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[W,F,le]}),e[90]=W,e[91]=F,e[92]=le,e[93]=ae):ae=e[93];const st=s.image,ot=s.mobileImage;let ne,re;e[94]!==o?(ne=N=>o("image",N),re=N=>o("mobileImage",N),e[94]=o,e[95]=ne,e[96]=re):(ne=e[95],re=e[96]);let ce;e[97]!==s.alt?(ce=I(s.alt),e[97]=s.alt,e[98]=ce):ce=e[98];let de;e[99]!==i?(de=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=de):de=e[100];let me;e[101]!==s.image||e[102]!==s.mobileImage||e[103]!==ne||e[104]!==re||e[105]!==ce||e[106]!==de?(me=t.jsx(Mt,{value:st,mobileValue:ot,onChange:ne,onMobileChange:re,alt:ce,label:de}),e[101]=s.image,e[102]=s.mobileImage,e[103]=ne,e[104]=re,e[105]=ce,e[106]=de,e[107]=me):me=e[107];let pe;e[108]!==i?(pe=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=pe):pe=e[109];let ue;e[110]!==i?(ue=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=ue):ue=e[111];let fe;e[112]!==pe||e[113]!==ue?(fe={type:"string",title:pe,description:ue},e[112]=pe,e[113]=ue,e[114]=fe):fe=e[114];let xe;e[115]!==s.alt?(xe=I(s.alt),e[115]=s.alt,e[116]=xe):xe=e[116];let he;e[117]!==o?(he=N=>o("alt",N),e[117]=o,e[118]=he):he=e[118];let ge;e[119]!==i?(ge=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=ge):ge=e[120];let be;e[121]!==fe||e[122]!==xe||e[123]!==he||e[124]!==ge?(be=t.jsx(ze,{schema:fe,value:xe,onChange:he,path:"post-alt",label:ge}),e[121]=fe,e[122]=xe,e[123]=he,e[124]=ge,e[125]=be):be=e[125];let je;e[126]!==me||e[127]!==be?(je=t.jsxs("div",{className:"space-y-2",children:[me,be]}),e[126]=me,e[127]=be,e[128]=je):je=e[128];let ve;e[129]!==i?(ve=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=ve):ve=e[130];let ye;e[131]!==o?(ye=N=>o("authors",N),e[131]=o,e[132]=ye):ye=e[132];let Se;e[133]!==l||e[134]!==s.authors||e[135]!==ve||e[136]!==ye?(Se=t.jsx(Qe,{label:ve,decofile:l,kind:"authors",valueField:"email",toRef:io,selected:s.authors,onChange:ye}),e[133]=l,e[134]=s.authors,e[135]=ve,e[136]=ye,e[137]=Se):Se=e[137];let _e;e[138]!==i?(_e=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=_e):_e=e[139];let ke;e[140]!==o?(ke=N=>o("categories",N),e[140]=o,e[141]=ke):ke=e[141];let Ee;e[142]!==l||e[143]!==s.categories||e[144]!==_e||e[145]!==ke?(Ee=t.jsx(Qe,{label:_e,decofile:l,kind:"categories",valueField:"slug",toRef:oo,selected:s.categories,onChange:ke}),e[142]=l,e[143]=s.categories,e[144]=_e,e[145]=ke,e[146]=Ee):Ee=e[146];let Ce;e[147]!==o?(Ce=N=>o("extraProps",N),e[147]=o,e[148]=Ce):Ce=e[148];let Ne;e[149]!==s.extraProps||e[150]!==Ce?(Ne=t.jsx(no,{value:s.extraProps,onChange:Ce}),e[149]=s.extraProps,e[150]=Ce,e[151]=Ne):Ne=e[151];let Pe;e[152]!==o?(Pe=N=>o("seo",N),e[152]=o,e[153]=Pe):Pe=e[153];let Te;e[154]!==s.seo||e[155]!==Pe?(Te=t.jsx(ao,{value:s.seo,onChange:Pe}),e[154]=s.seo,e[155]=Pe,e[156]=Te):Te=e[156];let Ae;return e[157]!==A||e[158]!==ae||e[159]!==je||e[160]!==Se||e[161]!==Ee||e[162]!==Ne||e[163]!==Te||e[164]!==S?(Ae=t.jsxs("div",{className:"space-y-5",children:[S,A,ae,je,Se,Ee,Ne,Te]}),e[157]=A,e[158]=ae,e[159]=je,e[160]=Se,e[161]=Ee,e[162]=Ne,e[163]=Te,e[164]=S,e[165]=Ae):Ae=e[165],Ae}function oo(a){return{name:I(a.name),slug:I(a.slug)}}function io(a){return{...a}}function lo(a){return I(a.payload.slug)}function ao(a){const e=se.c(93),{value:s,onChange:l}=a,o=ee();let d;e[0]!==s?(d=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=d):d=e[1];const n=d;let c;e[2]!==l||e[3]!==n?(c=(F,J)=>l({...n,[F]:J}),e[2]=l,e[3]=n,e[4]=c):c=e[4];const i=c;let p;e[5]!==o?(p=o("sandbox.postEditor.seoSectionLabel"),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==p?(x=t.jsx("p",{className:"text-sm font-medium",children:p}),e[7]=p,e[8]=x):x=e[8];let f;e[9]!==o?(f=o("sandbox.postEditor.seoSectionHint"),e[9]=o,e[10]=f):f=e[10];let g;e[11]!==f?(g=t.jsx("p",{className:"text-xs text-muted-foreground",children:f}),e[11]=f,e[12]=g):g=e[12];let r;e[13]!==x||e[14]!==g?(r=t.jsxs("div",{className:"space-y-1",children:[x,g]}),e[13]=x,e[14]=g,e[15]=r):r=e[15];let u;e[16]!==o?(u=o("sandbox.postEditor.seoTitleLabel"),e[16]=o,e[17]=u):u=e[17];let m;e[18]!==u?(m=t.jsx(te,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=m):m=e[19];let h;e[20]!==n.title?(h=I(n.title),e[20]=n.title,e[21]=h):h=e[21];let y;e[22]!==i?(y=F=>i("title",F.target.value),e[22]=i,e[23]=y):y=e[23];let k;e[24]!==h||e[25]!==y?(k=t.jsx(Fe,{id:"post-seo-title",value:h,onChange:y,className:"h-10"}),e[24]=h,e[25]=y,e[26]=k):k=e[26];let T;e[27]!==k||e[28]!==m?(T=t.jsxs("div",{className:"space-y-2",children:[m,k]}),e[27]=k,e[28]=m,e[29]=T):T=e[29];let D;e[30]!==o?(D=o("sandbox.postEditor.seoDescriptionLabel"),e[30]=o,e[31]=D):D=e[31];let B;e[32]!==D?(B=t.jsx(te,{htmlFor:"post-seo-description",children:D}),e[32]=D,e[33]=B):B=e[33];let j;e[34]!==n.description?(j=I(n.description),e[34]=n.description,e[35]=j):j=e[35];let E;e[36]!==i?(E=F=>i("description",F.target.value),e[36]=i,e[37]=E):E=e[37];let v;e[38]!==j||e[39]!==E?(v=t.jsx(Je,{id:"post-seo-description",value:j,onChange:E,rows:2}),e[38]=j,e[39]=E,e[40]=v):v=e[40];let C;e[41]!==B||e[42]!==v?(C=t.jsxs("div",{className:"space-y-2",children:[B,v]}),e[41]=B,e[42]=v,e[43]=C):C=e[43];let b;e[44]!==o?(b=o("sandbox.postEditor.seoImageLabel"),e[44]=o,e[45]=b):b=e[45];let S;e[46]!==b?(S={type:"string",format:"image-uri",title:b},e[46]=b,e[47]=S):S=e[47];const L=n.image;let P;e[48]!==i?(P=F=>i("image",F),e[48]=i,e[49]=P):P=e[49];let w;e[50]!==o?(w=o("sandbox.postEditor.seoImageLabel"),e[50]=o,e[51]=w):w=e[51];let z;e[52]!==n.image||e[53]!==S||e[54]!==P||e[55]!==w?(z=t.jsx(zt,{schema:S,value:L,onChange:P,path:"post-seo-image",label:w}),e[52]=n.image,e[53]=S,e[54]=P,e[55]=w,e[56]=z):z=e[56];let U;e[57]!==o?(U=o("sandbox.postEditor.seoCanonicalLabel"),e[57]=o,e[58]=U):U=e[58];let A;e[59]!==U?(A=t.jsx(te,{htmlFor:"post-seo-canonical",children:U}),e[59]=U,e[60]=A):A=e[60];let M;e[61]!==n.canonical?(M=I(n.canonical),e[61]=n.canonical,e[62]=M):M=e[62];let $;e[63]!==i?($=F=>i("canonical",F.target.value),e[63]=i,e[64]=$):$=e[64];let Z;e[65]!==o?(Z=o("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=o,e[66]=Z):Z=e[66];let H;e[67]!==M||e[68]!==$||e[69]!==Z?(H=t.jsx(Fe,{id:"post-seo-canonical",value:M,onChange:$,placeholder:Z,className:"h-10"}),e[67]=M,e[68]=$,e[69]=Z,e[70]=H):H=e[70];let V;e[71]!==A||e[72]!==H?(V=t.jsxs("div",{className:"space-y-2",children:[A,H]}),e[71]=A,e[72]=H,e[73]=V):V=e[73];let O;e[74]!==o?(O=o("sandbox.postEditor.seoNoIndexingLabel"),e[74]=o,e[75]=O):O=e[75];let W;e[76]!==O?(W=t.jsx(te,{htmlFor:"post-seo-no-indexing",children:O}),e[76]=O,e[77]=W):W=e[77];const Q=n.noIndexing===!0;let G;e[78]!==i?(G=F=>i("noIndexing",F),e[78]=i,e[79]=G):G=e[79];let q;e[80]!==Q||e[81]!==G?(q=t.jsx(Ot,{id:"post-seo-no-indexing",checked:Q,onCheckedChange:G}),e[80]=Q,e[81]=G,e[82]=q):q=e[82];let K;e[83]!==W||e[84]!==q?(K=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[W,q]}),e[83]=W,e[84]=q,e[85]=K):K=e[85];let R;return e[86]!==T||e[87]!==C||e[88]!==z||e[89]!==V||e[90]!==K||e[91]!==r?(R=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[r,T,C,z,V,K]}),e[86]=T,e[87]=C,e[88]=z,e[89]=V,e[90]=K,e[91]=r,e[92]=R):R=e[92],R}function no(a){const e=se.c(24),{value:s,onChange:l}=a,o=ee();let d,n,c,i;if(e[0]!==l||e[1]!==o||e[2]!==s){d=Xs(s);const r=(m,h)=>l(d.map((y,k)=>k===m?{...y,...h}:y));n="space-y-2";let u;e[7]!==o?(u=o("sandbox.postEditor.extraPropsLabel"),e[7]=o,e[8]=u):u=e[8],e[9]!==u?(c=t.jsx(te,{children:u}),e[9]=u,e[10]=c):c=e[10],i=d.length>0&&t.jsx("ul",{className:"space-y-2",children:d.map((m,h)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(Fe,{value:m.key,onChange:y=>r(h,{key:y.target.value}),placeholder:o("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(Fe,{value:m.value,onChange:y=>r(h,{value:y.target.value}),placeholder:o("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(rs,{label:o("sandbox.postEditor.removePropLabel"),onClick:()=>l(d.filter((y,k)=>k!==h))})]},h))}),e[0]=l,e[1]=o,e[2]=s,e[3]=d,e[4]=n,e[5]=c,e[6]=i}else d=e[3],n=e[4],c=e[5],i=e[6];let p;e[11]!==o?(p=o("sandbox.postEditor.addPropLabel"),e[11]=o,e[12]=p):p=e[12];let x;e[13]!==d||e[14]!==l?(x=()=>l([...d,{key:"",value:""}]),e[13]=d,e[14]=l,e[15]=x):x=e[15];let f;e[16]!==p||e[17]!==x?(f=t.jsx(ps,{label:p,onClick:x}),e[16]=p,e[17]=x,e[18]=f):f=e[18];let g;return e[19]!==n||e[20]!==c||e[21]!==i||e[22]!==f?(g=t.jsxs("div",{className:n,children:[c,i,f]}),e[19]=n,e[20]=c,e[21]=i,e[22]=f,e[23]=g):g=e[23],g}function Qe(a){const e=se.c(24),{label:s,decofile:l,kind:o,valueField:d,toRef:n,selected:c,onChange:i}=a,p=ee();let x;e[0]!==l||e[1]!==o||e[2]!==c||e[3]!==n||e[4]!==d?(x=ns({records:et(l,o),selected:c,valueField:d,toRef:n}),e[0]=l,e[1]=o,e[2]=c,e[3]=n,e[4]=d,e[5]=x):x=e[5];const{options:f,selectedValues:g,refsForValues:r}=x;let u;e[6]!==o||e[7]!==p?(u=p(o==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=o,e[7]=p,e[8]=u):u=e[8];const m=u;let h;e[9]!==o||e[10]!==p?(h=p(o==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=o,e[10]=p,e[11]=h):h=e[11];const y=h;let k;e[12]!==s?(k=t.jsx(te,{children:s}),e[12]=s,e[13]=k):k=e[13];let T;e[14]!==m||e[15]!==i||e[16]!==f||e[17]!==r||e[18]!==y||e[19]!==g?(T=f.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:m}):t.jsx(Ft,{options:f,defaultValue:g,onValueChange:B=>i(r(B)),placeholder:y,maxCount:4}),e[14]=m,e[15]=i,e[16]=f,e[17]=r,e[18]=y,e[19]=g,e[20]=T):T=e[20];let D;return e[21]!==k||e[22]!==T?(D=t.jsxs("div",{className:"space-y-2",children:[k,T]}),e[21]=k,e[22]=T,e[23]=D):D=e[23],D}function Vl(a){const e=se.c(10),s=a.block!==void 0;let l;e[0]!==a?(l=t.jsx(eo,{...a}),e[0]=a,e[1]=l):l=e[1];let o;return e[2]!==a.blockKey||e[3]!==a.branch||e[4]!==a.decofile||e[5]!==a.orgSlug||e[6]!==a.virtualMcpId||e[7]!==s||e[8]!==l?(o=t.jsx(Wt,{listing:a.decofile,orgSlug:a.orgSlug,virtualMcpId:a.virtualMcpId,branch:a.branch,blockKey:a.blockKey,present:s,children:l}),e[2]=a.blockKey,e[3]=a.branch,e[4]=a.decofile,e[5]=a.orgSlug,e[6]=a.virtualMcpId,e[7]=s,e[8]=l,e[9]=o):o=e[9],o}export{Vl as PostEditor};
@@ -1 +1 @@
1
- import{c as E,b as D,d as ne,f as re,ae as oe,j as t,B as Q,a7 as ce,n as de,x as W,m as X}from"./index-CWKxkTwy.js";import{I as ae}from"./icon-button-CadQrI05.js";import{c as Y,T as Z,a as ee}from"./tooltip-mM1fQXaq.js";import{m as fe,aN as me,ae as xe,O as he}from"./agent-icon-BwEytdmh.js";import{s as pe}from"./XClose-D2u966Hj.js";import{F as te,t as V,H as ue}from"./file-share-button-BtW_yxzc.js";import{f as je,F as be,a as ge}from"./file-preview-D7WeSAA4.js";import{F as se}from"./file-type-icon-mKSSLPP8.js";import{c as ve,a as we,e as ye}from"./use-org-fs-D8fqy59B.js";import{O as Pe,J as Ce}from"./chat-context-D8Eje7xK.js";function Ne(j){const e=E.c(13),{previewPath:l}=j,m=D(),r=ne(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let a;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(a=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=a):a=e[6];const c=a;let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(fe,{size:14}),e[7]=b):b=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[b,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const Fe=j=>/\.html?$/i.test(j);function le(j){switch(j){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return j}}function ke(j){const e=E.c(12),{expanded:l,onToggle:m,placement:r}=j,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let a;e[2]!==p||e[3]!==o?(a=p(o),e[2]=p,e[3]=o,e[4]=a):a=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let b;return e[7]!==m||e[8]!==s||e[9]!==a||e[10]!==c?(b=t.jsx(ae,{...s,label:a,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=a,e[10]=c,e[11]=b):b=e[11],b}function ie(j){const e=E.c(9),{onClose:l,placement:m}=j,r=m===void 0?"bar":m,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(pe,{size:14}),e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ae,{...s,label:o,tooltipSide:"bottom",onClick:l,children:a}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function _e(j){const e=E.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=j,o=p===void 0?!1:p,a=D();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const b=c,{volume:u,dirPath:x}=b,{data:f,isPending:A}=ve(u,x),H=we(u??"");let w,y,n,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let g;e[17]!==i?(g=V(i),e[17]=i,e[18]=g):g=e[18],w=g;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(ke,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let v;e[22]!==l||e[23]!==o?(v=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=v):v=e[24],P=v,n=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=n&&f&&Fe(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=n,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],n=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let g;e[25]!==d||e[26]!==h?(g=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=g):g=e[27];const T=n.downloadUrl;let v;e[28]!==f?(v=ye(f),e[28]=f,e[29]=v):v=e[29];let z;e[30]!==s?(z=s==="panel"?void 0:le(s),e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,J=u??"",q=f.shareMode??"private",G=f.effectivePublic??!1,K=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==q||e[35]!==G||e[36]!==K||e[37]!==J?(S=t.jsx(te,{volume:J,path:x,shareMode:q,effectivePublic:G,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=q,e[35]=G,e[36]=K,e[37]=J,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==n.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==v||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:v,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=n.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=v,e[54]=z,e[55]=R,e[56]=L):L=e[56];let _;return e[57]!==L||e[58]!==g?(_=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=_):_=e[59],_}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==n||e[64]!==x||e[65]!==i||e[66]!==a||e[67]!==u?(C=n&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+n.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:n.downloadUrl,download:n.filename,children:t.jsx(me,{size:14})})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(n.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=n,e[64]=x,e[65]=i,e[66]=a,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let F;e[77]!==M||e[78]!==n||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(F=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),n&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:je(n.size)})]}),M]}),e[77]=M,e[78]=n,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=F):F=e[83];let k;e[84]!==n||e[85]!==d||e[86]!==A||e[87]!==a?(k=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:n?t.jsx(be,{file:n}):A?t.jsx(ge,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:a("library.previewContent.fileNotAvailable")})]})}),e[84]=n,e[85]=d,e[86]=A,e[87]=a,e[88]=k):k=e[88];let O;return e[89]!==F||e[90]!==k?(O=t.jsxs(t.Fragment,{children:[F,k]}),e[89]=F,e[90]=k,e[91]=O):O=e[91],O}export{_e as L};
1
+ import{c as E,b as D,d as ne,f as re,ae as oe,j as t,B as Q,a7 as ce,n as de,x as W,m as X}from"./index-CHOxYhnv.js";import{I as ae}from"./icon-button-DYLciVFZ.js";import{c as Y,T as Z,a as ee}from"./tooltip-D2JXB44W.js";import{m as fe,aN as me,ae as xe,O as he}from"./agent-icon-C-RKmmDR.js";import{s as pe}from"./XClose-DsOcImLD.js";import{F as te,t as V,H as ue}from"./file-share-button-ZGH-qkC_.js";import{f as je,F as be,a as ge}from"./file-preview-ekcEL18H.js";import{F as se}from"./file-type-icon-D4Edy8Bo.js";import{c as ve,a as we,e as ye}from"./use-org-fs-DzWj7Jta.js";import{O as Pe,J as Ce}from"./chat-context-o9Pyy_rd.js";function Ne(j){const e=E.c(13),{previewPath:l}=j,m=D(),r=ne(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let a;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(a=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=a):a=e[6];const c=a;let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(fe,{size:14}),e[7]=b):b=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[b,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const Fe=j=>/\.html?$/i.test(j);function le(j){switch(j){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return j}}function ke(j){const e=E.c(12),{expanded:l,onToggle:m,placement:r}=j,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let a;e[2]!==p||e[3]!==o?(a=p(o),e[2]=p,e[3]=o,e[4]=a):a=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let b;return e[7]!==m||e[8]!==s||e[9]!==a||e[10]!==c?(b=t.jsx(ae,{...s,label:a,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=a,e[10]=c,e[11]=b):b=e[11],b}function ie(j){const e=E.c(9),{onClose:l,placement:m}=j,r=m===void 0?"bar":m,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(pe,{size:14}),e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ae,{...s,label:o,tooltipSide:"bottom",onClick:l,children:a}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function _e(j){const e=E.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=j,o=p===void 0?!1:p,a=D();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const b=c,{volume:u,dirPath:x}=b,{data:f,isPending:A}=ve(u,x),H=we(u??"");let w,y,n,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let g;e[17]!==i?(g=V(i),e[17]=i,e[18]=g):g=e[18],w=g;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(ke,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let v;e[22]!==l||e[23]!==o?(v=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=v):v=e[24],P=v,n=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=n&&f&&Fe(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=n,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],n=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let g;e[25]!==d||e[26]!==h?(g=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=g):g=e[27];const T=n.downloadUrl;let v;e[28]!==f?(v=ye(f),e[28]=f,e[29]=v):v=e[29];let z;e[30]!==s?(z=s==="panel"?void 0:le(s),e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,J=u??"",q=f.shareMode??"private",G=f.effectivePublic??!1,K=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==q||e[35]!==G||e[36]!==K||e[37]!==J?(S=t.jsx(te,{volume:J,path:x,shareMode:q,effectivePublic:G,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=q,e[35]=G,e[36]=K,e[37]=J,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==n.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==v||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:v,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=n.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=v,e[54]=z,e[55]=R,e[56]=L):L=e[56];let _;return e[57]!==L||e[58]!==g?(_=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=_):_=e[59],_}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==n||e[64]!==x||e[65]!==i||e[66]!==a||e[67]!==u?(C=n&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+n.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:n.downloadUrl,download:n.filename,children:t.jsx(me,{size:14})})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(n.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=n,e[64]=x,e[65]=i,e[66]=a,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let F;e[77]!==M||e[78]!==n||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(F=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),n&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:je(n.size)})]}),M]}),e[77]=M,e[78]=n,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=F):F=e[83];let k;e[84]!==n||e[85]!==d||e[86]!==A||e[87]!==a?(k=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:n?t.jsx(be,{file:n}):A?t.jsx(ge,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:a("library.previewContent.fileNotAvailable")})]})}),e[84]=n,e[85]=d,e[86]=A,e[87]=a,e[88]=k):k=e[88];let O;return e[89]!==F||e[90]!==k?(O=t.jsxs(t.Fragment,{children:[F,k]}),e[89]=F,e[90]=k,e[91]=O):O=e[91],O}export{_e as L};
@@ -1 +1 @@
1
- import{c as p,j as l,v as x,D as f}from"./index-CWKxkTwy.js";import{L as h}from"./preview-content-BYvAegAr.js";function g(c){const e=p.c(9),{previewPath:r,onClose:o,showSeeInLibrary:n}=c,a=n===void 0?!1:n;let i;e[0]!==o?(i=m=>{m||o()},e[0]=o,e[1]=i):i=e[1];let s;e[2]!==o||e[3]!==r||e[4]!==a?(s=l.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"top-2 right-3",children:l.jsx(h,{previewPath:r,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=r,e[4]=a,e[5]=s):s=e[5];let t;return e[6]!==i||e[7]!==s?(t=l.jsx(f,{open:!0,onOpenChange:i,children:s}),e[6]=i,e[7]=s,e[8]=t):t=e[8],t}export{g as L};
1
+ import{c as p,j as l,v as x,D as f}from"./index-CHOxYhnv.js";import{L as h}from"./preview-content-DjjT4V-O.js";function g(c){const e=p.c(9),{previewPath:r,onClose:o,showSeeInLibrary:n}=c,a=n===void 0?!1:n;let i;e[0]!==o?(i=m=>{m||o()},e[0]=o,e[1]=i):i=e[1];let s;e[2]!==o||e[3]!==r||e[4]!==a?(s=l.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"top-2 right-3",children:l.jsx(h,{previewPath:r,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=r,e[4]=a,e[5]=s):s=e[5];let t;return e[6]!==i||e[7]!==s?(t=l.jsx(f,{open:!0,onOpenChange:i,children:s}),e[6]=i,e[7]=s,e[8]=t):t=e[8],t}export{g as L};
@@ -1 +1 @@
1
- import{c as p,j as c}from"./index-CWKxkTwy.js";import{L as x}from"./preview-content-BYvAegAr.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};
1
+ import{c as p,j as c}from"./index-CHOxYhnv.js";import{L as x}from"./preview-content-DjjT4V-O.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};