decocms 4.574.10 → 4.576.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 (407) hide show
  1. package/dist/client/assets/{AlertCircle-JrI6GhX-.js → AlertCircle-BoWj3bmI.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BCQgd1R0.js → AreaChart-CayWrMkG.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BY3YUYmg.js → ArrowLeft-BnmiAsgO.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Dbd0DsFj.js → ArrowUp-B1rRBoAl.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-D-__q6zo.js → CartesianChart-CLdJy-tG.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-CGbYI81w.js → CategoricalChart-DIMW48Er.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-Lk0BK653.js → CheckCircle-DqwYeIyi.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-D-Hk_1B6.js → ChevronSelectorVertical-CUAybNrz.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-CypYcouh.js → ChevronUp-CjYakPcO.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-D4hEMIBc.js → CreditCard01-B2hFUd9r.js} +1 -1
  11. package/dist/client/assets/{Globe04-BSIf8tfY.js → Globe04-DDVQybOc.js} +1 -1
  12. package/dist/client/assets/{Key01-CCkW71V8.js → Key01-CP_3sF4j.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-dVGcDCd1.js → LinkBroken01-Dz0priKS.js} +1 -1
  14. package/dist/client/assets/{Minus-B6bCcC1a.js → Minus-BUE5BtZS.js} +1 -1
  15. package/dist/client/assets/{Monitor01-B1R4t9_g.js → Monitor01-Bv9vshAO.js} +1 -1
  16. package/dist/client/assets/{Play-nrEhEYaX.js → Play-BZxxVkLQ.js} +1 -1
  17. package/dist/client/assets/{Plus-CXFgI-7S.js → Plus-D9BJQ8Ip.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-9SV0TNSu.js → ReferenceLine-BGAigOEu.js} +1 -1
  19. package/dist/client/assets/{SearchMd-BgyEwNMN.js → SearchMd-eMVBpMYs.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-C8w58xcy.js → ShoppingBag01-CCbfQ2Ar.js} +1 -1
  21. package/dist/client/assets/{Sun-BbLelrLi.js → Sun-DYx61HHA.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-BKQGE_Gz.js → SwitchHorizontal01-D1J2TI3k.js} +1 -1
  23. package/dist/client/assets/{Tool01-3EDhR0eh.js → Tool01-lye9w7uq.js} +1 -1
  24. package/dist/client/assets/{Tooltip-BvsEJkNR.js → Tooltip-BbDbdtmF.js} +1 -1
  25. package/dist/client/assets/{Trash01-Cc7bOGxh.js → Trash01-BoIu5wHA.js} +1 -1
  26. package/dist/client/assets/{Upload01-CUdaL1MP.js → Upload01-CWarigy8.js} +1 -1
  27. package/dist/client/assets/{UserSquare-CgD5WRTE.js → UserSquare-BbdNewBi.js} +1 -1
  28. package/dist/client/assets/{Users01-D_DratJd.js → Users01-JvVmj0s2.js} +1 -1
  29. package/dist/client/assets/{XClose-Ba9vOcHg.js → XClose-D8nV11Fp.js} +1 -1
  30. package/dist/client/assets/{Zap-CGLJP1Pm.js → Zap-BNFgHEeM.js} +1 -1
  31. package/dist/client/assets/{access-gate-BkmPTKhe.js → access-gate-DMQroDuW.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-CfkDdpLR.js → add-connection-dialog-CumYTqRP.js} +1 -1
  33. package/dist/client/assets/agent-app-yGED1LS1.js +1 -0
  34. package/dist/client/assets/{agent-assets-CMHlV0cw.js → agent-assets-CeYgy5uR.js} +1 -1
  35. package/dist/client/assets/{agent-automation-D1d_SA1s.js → agent-automation-jc1a3Q5g.js} +1 -1
  36. package/dist/client/assets/{agent-automations-0O6U_BaC.js → agent-automations-DcM30lJx.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-B5sssWfz.js → agent-calendar-C42tR2RR.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-Re3Rcd9U.js → agent-capabilities-Dnf4CKY_.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-CEVb5ZQC.js → agent-connect-sources-D-SSC-jg.js} +1 -1
  40. package/dist/client/assets/agent-deck-LUFm8nK5.js +1 -0
  41. package/dist/client/assets/{agent-e2e-DfU5GcgW.js → agent-e2e-JPujhNJE.js} +1 -1
  42. package/dist/client/assets/agent-experiments-CrI0Xt-_.js +1 -0
  43. package/dist/client/assets/{agent-file-tQpTdSLO.js → agent-file-BT_7iBMO.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-BIVmahmR.js → agent-hosting-DmAopBeY.js} +1 -1
  45. package/dist/client/assets/{agent-icon-De2MEsoK.js → agent-icon-CIk0WHPf.js} +1 -1
  46. package/dist/client/assets/agent-library-file-YDJ0zlYR.js +1 -0
  47. package/dist/client/assets/agent-library-wOcEVpTS.js +1 -0
  48. package/dist/client/assets/agent-overview-C4c1_ZnT.js +1 -0
  49. package/dist/client/assets/{agent-releases-C0fMyr3d.js → agent-releases-CVdcqHgm.js} +1 -1
  50. package/dist/client/assets/agent-settings-1nd2TnHk.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-CA2ft33p.js → agent-site-editor-C60bHZn5.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-C9o2WiSd.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-B2S2vOuL.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-C_1acQkW.js +1 -0
  55. package/dist/client/assets/agent-view-BRDx54tu.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-DYNxqeX8.js → agent-view-guard-BxQEXEqp.js} +1 -1
  57. package/dist/client/assets/{ai-providers-BCNCtdBa.js → ai-providers-DPzbU011.js} +1 -1
  58. package/dist/client/assets/{alert-uAfMA0iM.js → alert-ZkM0KiHW.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-CNoqcvsB.js → analytics-sections-BeCItG-r.js} +1 -1
  60. package/dist/client/assets/api-keys-BlapvHSK.js +1 -0
  61. package/dist/client/assets/{api-keys-B5T8tqGJ.js → api-keys-CbrkjJrZ.js} +1 -1
  62. package/dist/client/assets/app-editor-D4GBuqRr.js +1 -0
  63. package/dist/client/assets/{asset-utils-JtmKNz_N.js → asset-utils-Bod0b-nj.js} +1 -1
  64. package/dist/client/assets/{auth-eTld9LX2.js → auth-Xuy-VreX.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-Dzg-edmQ.js → auth-catchall-DyHxOUjQ.js} +1 -1
  66. package/dist/client/assets/{auth-entry-BMj8fL-s.js → auth-entry-C3k-_dZK.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-Cc8hsshw.js → auth-split-layout-BiFyTeQF.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-CIIpordz.js → authenticate-and-persist-oauth-BcT61tas.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-DzzZLBM9.js → automation-list-row-psn1jT8Z.js} +1 -1
  70. package/dist/client/assets/{automation-runs-85Ff33Cw.js → automation-runs-DZMls_iH.js} +1 -1
  71. package/dist/client/assets/{automations-BEURwcUG.js → automations-DPAF2sPr.js} +1 -1
  72. package/dist/client/assets/{autosend-C7zfiAZa.js → autosend-lHRfnZnw.js} +1 -1
  73. package/dist/client/assets/{badge-Dmw39gk8.js → badge-DkZUyuLE.js} +1 -1
  74. package/dist/client/assets/{block-document-BJPvsr5R.js → block-document-lzBLHqet.js} +3 -3
  75. package/dist/client/assets/{blocks-preview-workspace-context-DHCuGpRF.js → blocks-preview-workspace-context-nVzlii3E.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-UGg2OTih.js → blocks-tab-states-Bk50Moxc.js} +1 -1
  77. package/dist/client/assets/{blog-schema-BCoxbBJ-.js → blog-schema-_cHri49Q.js} +1 -1
  78. package/dist/client/assets/{buckets-BHmMQmes.js → buckets-xCVkFj72.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-CtCZmE42.js → build-improve-prompt-doc-BEqFpLp8.js} +1 -1
  80. package/dist/client/assets/{calendar-lV1do84b.js → calendar-DKdblSlt.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-J4cHUY10.js → capability-load-error-DDwDpZAe.js} +1 -1
  82. package/dist/client/assets/category-editor-h9JRAnwx.js +1 -0
  83. package/dist/client/assets/{chart-CqpI550f.js → chart-CjVr_q9X.js} +1 -1
  84. package/dist/client/assets/{chat-context-CkHIxm7-.js → chat-context-CgzRmLj9.js} +2 -2
  85. package/dist/client/assets/{chat-draft-BiuP1YLO.js → chat-draft-B4UydoTt.js} +1 -1
  86. package/dist/client/assets/{checkbox-CTcmxKf9.js → checkbox-DWK-s7Qb.js} +1 -1
  87. package/dist/client/assets/{choose-editor-BMMl2UBw.js → choose-editor--2LsyfCd.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-DzTdo4Jo.js → cli-auth-success-CND8gpL5.js} +1 -1
  89. package/dist/client/assets/{client-icons-CO1vrTp-.js → client-icons-BaAUNhEJ.js} +1 -1
  90. package/dist/client/assets/cms-settings-editor-lqxcI5Hg.js +1 -0
  91. package/dist/client/assets/{cms-store-drafts-Te00tOIa.js → cms-store-drafts-C58TTepj.js} +1 -1
  92. package/dist/client/assets/{collapsible-Cef981-n.js → collapsible-BDLE2DdR.js} +1 -1
  93. package/dist/client/assets/{collection-detail-CimaYbt8.js → collection-detail-DOAZyoBJ.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-DIAxsEaA.js → collection-display-button-DtSbqGBw.js} +1 -1
  95. package/dist/client/assets/{collection-search-RPq6faeR.js → collection-search-7CuPB6Mj.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-CFc_pRSp.js → collection-table-wrapper-C0bVVs5u.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-DZtyDg8t.js → collection-tabs-BwjOtf-h.js} +1 -1
  98. package/dist/client/assets/{combobox-C7gjhmEU.js → combobox-DQc1zHex.js} +1 -1
  99. package/dist/client/assets/{command-D_vABNVv.js → command-S6wl_N-A.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-lJWCKZlX.js → companion-mcps-section-qyqwAzKW.js} +1 -1
  101. package/dist/client/assets/{config-e0Nvtw2Y.js → config-B4N1KvK3.js} +1 -1
  102. package/dist/client/assets/{connect-DZp46x-D.js → connect-C19zSnhk.js} +3 -3
  103. package/dist/client/assets/{connect-layout-DV6kyauB.js → connect-layout-8NYqxlGK.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-DePhFcrr.js → connect-source-dialog-DRb46j31.js} +1 -1
  105. package/dist/client/assets/{connection-BvqfkXwo.js → connection-RGsn1zoX.js} +1 -1
  106. package/dist/client/assets/{connection-card-BDFmpEai.js → connection-card-DVOlmkv8.js} +1 -1
  107. package/dist/client/assets/{connection-detail-CAgTUs6Z.js → connection-detail-C3GIijyZ.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-EN5T3lTJ.js → connection-form-helpers-EUgEl7Bu.js} +1 -1
  109. package/dist/client/assets/{connection-slug-CfDyadIo.js → connection-slug-DgEoYwIW.js} +1 -1
  110. package/dist/client/assets/{connections-BANTiWC_.js → connections-CL_TB_cb.js} +1 -1
  111. package/dist/client/assets/content-tab-BUefWRPb.js +25 -0
  112. package/dist/client/assets/context-PcxN-Yb3.js +1 -0
  113. package/dist/client/assets/{context-menu-BFsADuow.js → context-menu-CCk675ED.js} +1 -1
  114. package/dist/client/assets/{context-shell-CdL8192k.js → context-shell-Y8UEjYd5.js} +3 -3
  115. package/dist/client/assets/{core.esm-OJgsJB-k.js → core.esm-GtXGAknm.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-DULZI-ch.js → create-organization-dialog-l03VBmUT.js} +1 -1
  117. package/dist/client/assets/{device-hint-B4h7argX.js → device-hint-DdS-9onj.js} +1 -1
  118. package/dist/client/assets/{discover-BJlgFEIL.js → discover-Dc5MvCTM.js} +1 -1
  119. package/dist/client/assets/{domain-settings-CT--UdMT.js → domain-settings-DhDqArit.js} +1 -1
  120. package/dist/client/assets/{drawer-B-H4hfQm.js → drawer-CeL3iOe9.js} +1 -1
  121. package/dist/client/assets/{editor-CsGz7SqJ.js → editor-DI-SD6st.js} +1 -1
  122. package/dist/client/assets/{editor-classes-_nt7TZ0L.js → editor-classes-rz90F5QL.js} +1 -1
  123. package/dist/client/assets/{empty-state-BMJVmWPT.js → empty-state-BzJZeJ1_.js} +1 -1
  124. package/dist/client/assets/{empty-state-B9Q-olZe.js → empty-state-CPXu2SjZ.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-rmEY3th7.js → experiments-tab-choice-BFkdJ9rD.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-CWUwzdyr.js → extract-connection-data-BiC-GhNR.js} +1 -1
  127. package/dist/client/assets/{feature-gate-Cd7EozQO.js → feature-gate-CCAJFbdi.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-XlPt677B.js → feature-paywall-msT8ZMne.js} +1 -1
  129. package/dist/client/assets/{file-explorer-BOVoci0C.js → file-explorer-E9lr9dLc.js} +1 -1
  130. package/dist/client/assets/{file-preview-DMLj4MCU.js → file-preview-D5yUv2iw.js} +1 -1
  131. package/dist/client/assets/{file-share-button-CvkBxFom.js → file-share-button-DM_8wEfN.js} +2 -2
  132. package/dist/client/assets/{file-type-icon-g9-x3_cf.js → file-type-icon-BvWm1zTi.js} +1 -1
  133. package/dist/client/assets/{folder-icon-CA-yyvjC.js → folder-icon-Ba-oFD1p.js} +1 -1
  134. package/dist/client/assets/{form-D9ocAu49.js → form-L-VC2P7Q.js} +1 -1
  135. package/dist/client/assets/{general-BVROjYSK.js → general-BWnZfXcy.js} +1 -1
  136. package/dist/client/assets/{github-icon-BuHFJx0u.js → github-icon-B6p2n-Kl.js} +1 -1
  137. package/dist/client/assets/{home-CZO-BAxK.js → home-CwRSX6s5.js} +1 -1
  138. package/dist/client/assets/{home-overview-Dgo7cAUD.js → home-overview-C4tikkR5.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-CiKTWXGS.js → hosted-reconcile-BDgHjLi6.js} +1 -1
  140. package/dist/client/assets/{icon-button-cmhhff3C.js → icon-button-B0NgHaBw.js} +1 -1
  141. package/dist/client/assets/{index-DIv66EvA.js → index-4il9ZN1V.js} +1 -1
  142. package/dist/client/assets/index-69S-cBsb.css +1 -0
  143. package/dist/client/assets/{index-Xu3sMDdX.js → index-BLztRQYt.js} +3 -3
  144. package/dist/client/assets/index-BM4aqxou.js +69 -0
  145. package/dist/client/assets/{index-B2f89yTC.js → index-BwRnmN3X.js} +1 -1
  146. package/dist/client/assets/{index-CpKrWBFM.js → index-C5rKbfQX.js} +37 -37
  147. package/dist/client/assets/{index-BWVe-okg.js → index-CBDkPY2u.js} +1 -1
  148. package/dist/client/assets/{index-CCr5d-bq.js → index-CbNS-lqc.js} +1 -1
  149. package/dist/client/assets/index-DAw2iB-r.js +1 -0
  150. package/dist/client/assets/{index-BvcpEDRp.js → index-DEjhS3On.js} +1 -1
  151. package/dist/client/assets/index-DdsVIe4X.js +15 -0
  152. package/dist/client/assets/{index-BgS_wSN7.js → index-DpapZCOM.js} +1 -1
  153. package/dist/client/assets/{index-CERqFrvp.js → index-DzDxrfRc.js} +1 -1
  154. package/dist/client/assets/{index-BH-yAxyT.js → index-G9etLsCu.js} +1 -1
  155. package/dist/client/assets/{index-BqpQ0Oz6.js → index-Kdb8LYBY.js} +1 -1
  156. package/dist/client/assets/{index-DYOJSKNv.js → index-LAMXRZBI.js} +1 -1
  157. package/dist/client/assets/{index-Cu0X1Ryu.js → index-LtcFVDl-.js} +1 -1
  158. package/dist/client/assets/{index-DfCff2zl.js → index-htBIzPBo.js} +1 -1
  159. package/dist/client/assets/{index-redirect-3g0WbUIU.js → index-redirect-D65M4lKT.js} +1 -1
  160. package/dist/client/assets/{infiniteQueryObserver-DB_1TZXQ.js → infiniteQueryObserver-YWHwwvoP.js} +1 -1
  161. package/dist/client/assets/{infra-billing-BkNwG0At.js → infra-billing-Xxb1Bh-S.js} +1 -1
  162. package/dist/client/assets/{input-CetABZ1t.js → input-BlK3U8US.js} +1 -1
  163. package/dist/client/assets/{input-BFegQsoJ.js → input-D27vv69n.js} +3 -3
  164. package/dist/client/assets/{integration-icon-B40Wh7Yg.js → integration-icon-Bsx-3jGF.js} +1 -1
  165. package/dist/client/assets/{jira-icon-DRT1LjUg.js → jira-icon-D4OqjMM1.js} +1 -1
  166. package/dist/client/assets/{label-BfDWtWVd.js → label-ClvjBErg.js} +1 -1
  167. package/dist/client/assets/{layout-D6GIbXPf.js → layout-dHNilPeS.js} +1 -1
  168. package/dist/client/assets/{legacy-admin-welcome-dialog-CWnygl8t.js → legacy-admin-welcome-dialog-BWjZM5AD.js} +1 -1
  169. package/dist/client/assets/{legacy-agents-deep-BON-Uap3.js → legacy-agents-deep-Cp7T1hMb.js} +1 -1
  170. package/dist/client/assets/{legacy-main-redirect-7K4gzdWJ.js → legacy-main-redirect-D2VmYkks.js} +1 -1
  171. package/dist/client/assets/{library-tab-cPvE59qy.js → library-tab-xCweoCmU.js} +1 -1
  172. package/dist/client/assets/library-x_PzwwCZ.js +1 -0
  173. package/dist/client/assets/{login-B1LerdGj.js → login-UoVVABWK.js} +1 -1
  174. package/dist/client/assets/{markdown-76gpdRfx.js → markdown-BdJYipZI.js} +7 -7
  175. package/dist/client/assets/{mcp-app-renderer-D2ApozFH.js → mcp-app-renderer-D5FAR8Ib.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-Ciaq70yo.js → mcp-oauth-DRARiFN2.js} +1 -1
  177. package/dist/client/assets/{mcp-oauth-Cv9nCTWQ.js → mcp-oauth-t279DpyZ.js} +1 -1
  178. package/dist/client/assets/{members-DhpI2yjO.js → members-DbmfOPrk.js} +1 -1
  179. package/dist/client/assets/{memory-C2cklx-U.js → memory-Bhu-z5Pk.js} +1 -1
  180. package/dist/client/assets/{mock-board-DMtyKhZF.js → mock-board-C3_eVd32.js} +3 -3
  181. package/dist/client/assets/{monaco-editor-B1sfLlbf.js → monaco-editor-BDOHWgUD.js} +1 -1
  182. package/dist/client/assets/{monitoring-Cko11Af4.js → monitoring-ovrO5sTD.js} +1 -1
  183. package/dist/client/assets/{monitoring-stats-row-CNgZcKxB.js → monitoring-stats-row-DH7xohBl.js} +1 -1
  184. package/dist/client/assets/{multi-select-C403rRdD.js → multi-select-R2NOj_5y.js} +1 -1
  185. package/dist/client/assets/{mustache-e4HtHwg-.js → mustache-D5PfsUhz.js} +3 -3
  186. package/dist/client/assets/{named-rule-view-Cc1641XV.js → named-rule-view-Djrur4H7.js} +1 -1
  187. package/dist/client/assets/{new-project-dialog-CBKXLl_5.js → new-project-dialog-2FiQJTVA.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-B-w7X7CW.js → oauth-callback-DUowyC76.js} +1 -1
  189. package/dist/client/assets/{oauth-callback-ai-provider-BAYGboHu.js → oauth-callback-ai-provider-C1tRdwHi.js} +1 -1
  190. package/dist/client/assets/{oauth-consent-CoxfO_xS.js → oauth-consent-BVvs4mEw.js} +1 -1
  191. package/dist/client/assets/{onboarding-7GiDV_a-.js → onboarding-BCTjaPZ_.js} +1 -1
  192. package/dist/client/assets/{openai-conversation-CWwnbl62.js → openai-conversation-D1PUy-BO.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-BktmZYTP.js → optimistic-project-sidebar-views-Bh3ICpY8.js} +1 -1
  194. package/dist/client/assets/{order-monitor-day-DCrwQKXh.js → order-monitor-day-DqdyBwnN.js} +1 -1
  195. package/dist/client/assets/{organization-choice--RCqz3ju.js → organization-choice-ZuFXzhnR.js} +1 -1
  196. package/dist/client/assets/{orgs-tCNrRFKw.js → orgs-9UW_iExW.js} +1 -1
  197. package/dist/client/assets/{own-accounts-section-ChZriIwH.js → own-accounts-section-isSB-FSp.js} +1 -1
  198. package/dist/client/assets/{pair-tmC6PpOp.js → pair-CElz1KSY.js} +7 -7
  199. package/dist/client/assets/parse-sections--hSYduXv.js +20 -0
  200. package/dist/client/assets/plan-D63C_MPU.js +1 -0
  201. package/dist/client/assets/{plan-ladder-DK7Z5wEN.js → plan-ladder-NpTeU9-u.js} +1 -1
  202. package/dist/client/assets/{plan-usage-card-DHkPqm05.js → plan-usage-card-DEXJyMAS.js} +1 -1
  203. package/dist/client/assets/{popover-DsnoY7gE.js → popover-CqBUgUd4.js} +1 -1
  204. package/dist/client/assets/post-calendar-B31lbJWM.js +1 -0
  205. package/dist/client/assets/post-editor-BpfbNo9B.js +2 -0
  206. package/dist/client/assets/{preview-content-W28O7oBF.js → preview-content-BhYb-Vka.js} +1 -1
  207. package/dist/client/assets/{preview-dialog-DS-Ukev2.js → preview-dialog-Cn9E_1ja.js} +1 -1
  208. package/dist/client/assets/{preview-panel-CtHwojzA.js → preview-panel-CnPb4vzV.js} +1 -1
  209. package/dist/client/assets/{preview-tab-B7WKX_jB.js → preview-tab-BPXubm1u.js} +3 -3
  210. package/dist/client/assets/{product-picker-dialog-DbnA1q8B.js → product-picker-dialog-Ln-fortG.js} +1 -1
  211. package/dist/client/assets/{profile-6j9OcP2L.js → profile-DWNOXniN.js} +1 -1
  212. package/dist/client/assets/{project-app-view-TULDeLlR.js → project-app-view-DWRWpiiK.js} +1 -1
  213. package/dist/client/assets/{project-apps-B8XrqASg.js → project-apps-CZSvF64d.js} +1 -1
  214. package/dist/client/assets/{project-icon-SG6bYAhL.js → project-icon-C4lVIM96.js} +1 -1
  215. package/dist/client/assets/{project-index-CKqx4tH5.js → project-index-x-ZOZ8Mf.js} +1 -1
  216. package/dist/client/assets/project-reports-Co8V8gK_.js +1 -0
  217. package/dist/client/assets/project-tasks-BZllmGjR.js +1 -0
  218. package/dist/client/assets/{projects-ZPSZzS-2.js → projects-BsM1ITvC.js} +1 -1
  219. package/dist/client/assets/{projects-empty-state-D0MMQ8sq.js → projects-empty-state-sTtuIh4q.js} +1 -1
  220. package/dist/client/assets/{prompts-9qkglIAd.js → prompts-dgUfCSOB.js} +1 -1
  221. package/dist/client/assets/record-editor-mwl6n7Or.js +1 -0
  222. package/dist/client/assets/redirect-editor-D-2T4F71.js +1 -0
  223. package/dist/client/assets/reports-BcYIlq-E.js +1 -0
  224. package/dist/client/assets/{reports-DCT8OLXu.js → reports-Cq6UP-zD.js} +1 -1
  225. package/dist/client/assets/{reports-onboarding-Co5Q5X1T.js → reports-onboarding-Cw1ES_fk.js} +1 -1
  226. package/dist/client/assets/{reports-tab-CUX0tKBD.js → reports-tab-BXxSmfY-.js} +2 -2
  227. package/dist/client/assets/repositories-DpxY5Srs.js +1 -0
  228. package/dist/client/assets/{repositories-BN38EwkA.js → repositories-zLGliE0C.js} +1 -1
  229. package/dist/client/assets/{repository-binding-FcrTKkLc.js → repository-binding-DUEv5f7z.js} +1 -1
  230. package/dist/client/assets/{repository-picker-uDInunvt.js → repository-picker-LEy-d9M8.js} +1 -1
  231. package/dist/client/assets/{require-capability-CLtIqMdo.js → require-capability-BFJscvRg.js} +1 -1
  232. package/dist/client/assets/{required-auth-layout-DYY0v5vc.js → required-auth-layout-CS2LsSXS.js} +1 -1
  233. package/dist/client/assets/{reset-password-DXzM6d6N.js → reset-password-CLJvl3-M.js} +1 -1
  234. package/dist/client/assets/{resizable-Cwvumcp8.js → resizable-BTzOABh_.js} +1 -1
  235. package/dist/client/assets/{resolve-tab-icon-CpKqYylc.js → resolve-tab-icon-Cx12hCTF.js} +1 -1
  236. package/dist/client/assets/{review-settings-DhXUecFY.js → review-settings-K73MViBj.js} +1 -1
  237. package/dist/client/assets/{role-color-Bmggoorj.js → role-color-wtFF9FyO.js} +1 -1
  238. package/dist/client/assets/{roles-CDov6Epa.js → roles-lA_VDVLq.js} +1 -1
  239. package/dist/client/assets/route-Ar-PaeSg.js +1 -0
  240. package/dist/client/assets/route-Db3DsYPk.js +1 -0
  241. package/dist/client/assets/{route-ByenP2AC.js → route-DvsMi8Up.js} +1 -1
  242. package/dist/client/assets/{sandbox-lifecycle-context-CWyZPDgB.js → sandbox-lifecycle-context-DDRNmIrA.js} +1 -1
  243. package/dist/client/assets/{schema-BzPNqisL.js → schema-BVevzILm.js} +1 -1
  244. package/dist/client/assets/{schema-BtgOmeu0.js → schema-X_RDdg-y.js} +1 -1
  245. package/dist/client/assets/{scroll-area-BetFFhjH.js → scroll-area-DKlcsV7g.js} +1 -1
  246. package/dist/client/assets/{search-input-B143wE4b.js → search-input-Dp__IM9S.js} +1 -1
  247. package/dist/client/assets/{search-toggle-B60V5fY3.js → search-toggle-CBmuZ2WE.js} +1 -1
  248. package/dist/client/assets/{secret-picker-0dwjcuZ2.js → secret-picker-DhQoz4cP.js} +1 -1
  249. package/dist/client/assets/{secrets-CaFiB2gJ.js → secrets-ClQzoiri.js} +1 -1
  250. package/dist/client/assets/{section-array-field-BGVc7GN5.js → section-array-field-BJlTuDJ0.js} +1 -1
  251. package/dist/client/assets/{sections-7hWvDZxF.js → sections-DawDKX-z.js} +1 -1
  252. package/dist/client/assets/{sections-editor-DV62ul9c.js → sections-editor-DxtomCA1.js} +1 -1
  253. package/dist/client/assets/{select-CynqC93H.js → select-CyUEqwIm.js} +1 -1
  254. package/dist/client/assets/{select-model-pbBNqCJO.js → select-model-BzSnEGgg.js} +1 -1
  255. package/dist/client/assets/{seo-editor-D_-BHzsC.js → seo-editor-3ngDHo5h.js} +1 -1
  256. package/dist/client/assets/{separator-BstUCndM.js → separator-CmzlIaEc.js} +1 -1
  257. package/dist/client/assets/settings-tab-BqZqehcR.js +1 -0
  258. package/dist/client/assets/{sheet-DRzohuTq.js → sheet-IIyyroSY.js} +1 -1
  259. package/dist/client/assets/{shell-layout-yWlnACBx.js → shell-layout-B3OvMhlE.js} +1 -1
  260. package/dist/client/assets/{site-draft-actions-CezwaYzG.js → site-draft-actions-DrqlFBor.js} +1 -1
  261. package/dist/client/assets/{site-draft-view-D3ax_gON.js → site-draft-view-D-ELfHPh.js} +1 -1
  262. package/dist/client/assets/site-editor-DLyKSqN3.js +1 -0
  263. package/dist/client/assets/{site-editor-toast-BzBdZBKk.js → site-editor-toast-DENHUiCT.js} +1 -1
  264. package/dist/client/assets/{skills-BVynzZAe.js → skills-B8RU12dT.js} +1 -1
  265. package/dist/client/assets/{slider-CVqkGq0u.js → slider-BepoHGY5.js} +1 -1
  266. package/dist/client/assets/{sortable.esm-CLb-zEUc.js → sortable.esm-BrSOrmKx.js} +1 -1
  267. package/dist/client/assets/{sso-D3L3bPHO.js → sso-BulaOiW_.js} +1 -1
  268. package/dist/client/assets/{suggestion-ZPwpaecb.js → suggestion-YqRrGHMj.js} +2 -2
  269. package/dist/client/assets/{super-agent-icon-CYwYFCF-.js → super-agent-icon-x69TX2ms.js} +1 -1
  270. package/dist/client/assets/{switch-DVFRbC37.js → switch-orhYNiag.js} +1 -1
  271. package/dist/client/assets/{synced-repos-CvJMz8IM.js → synced-repos-DGyWZrAj.js} +1 -1
  272. package/dist/client/assets/{tab-icon-glyph-CSVQlnge.js → tab-icon-glyph-BGRWjUyB.js} +1 -1
  273. package/dist/client/assets/{table-B7g6T_zR.js → table-CbTKxzQy.js} +1 -1
  274. package/dist/client/assets/{tabs-_i5AcyEU.js → tabs-DtSLfZo2.js} +1 -1
  275. package/dist/client/assets/{task-board-CwSJI_Nh.js → task-board-BRiMfa1H.js} +1 -1
  276. package/dist/client/assets/{task-route-DHnjMT6H.js → task-route-Ct1ewCdc.js} +1 -1
  277. package/dist/client/assets/{task-status-CoCBESax.js → task-status-CNp27qEf.js} +1 -1
  278. package/dist/client/assets/{taskboard-analytics-CkN-nZww.js → taskboard-analytics-BzQaMsBY.js} +1 -1
  279. package/dist/client/assets/{tasks-CvuI8Qsn.js → tasks-Pj9yL7A8.js} +1 -1
  280. package/dist/client/assets/tasks-wdjdAvFr.js +1 -0
  281. package/dist/client/assets/{textarea-BJYFhWH0.js → textarea-209m9vBn.js} +1 -1
  282. package/dist/client/assets/{thread-analytics-CDKp0-KR.js → thread-analytics-D53Jdel6.js} +1 -1
  283. package/dist/client/assets/{thread-intent-CaOco8G4.js → thread-intent-WcxoFFz-.js} +1 -1
  284. package/dist/client/assets/{thread-route-J75JIOlK.js → thread-route--T7U_PM9.js} +1 -1
  285. package/dist/client/assets/{thread-route-Ddday1Ur.js → thread-route-DPSPrt7d.js} +1 -1
  286. package/dist/client/assets/{thread-sheet-body-BRKc6pTX.js → thread-sheet-body-DND-PwQV.js} +1 -1
  287. package/dist/client/assets/{time-range-picker-DFFd7aW8.js → time-range-picker-DfNJN-OE.js} +1 -1
  288. package/dist/client/assets/{toggle-group-u9Wi3ddU.js → toggle-group-DM_BOhW0.js} +1 -1
  289. package/dist/client/assets/{tool-namespace-MYfklNim.js → tool-namespace-C59qlTVf.js} +1 -1
  290. package/dist/client/assets/{tool-set-selector-ByaGzWxc.js → tool-set-selector-DgrOma0D.js} +1 -1
  291. package/dist/client/assets/{toolbar-icon-button-DWFGDofy.js → toolbar-icon-button-CJQ4RpgO.js} +1 -1
  292. package/dist/client/assets/{tooltip-BN1ul0v0.js → tooltip-DfoRFUTt.js} +1 -1
  293. package/dist/client/assets/{tooltipContext-DYJdhWXE.js → tooltipContext-DkEG8PKQ.js} +1 -1
  294. package/dist/client/assets/{track-BvwOMvDA.js → track-nzJv4YA6.js} +1 -1
  295. package/dist/client/assets/{types-CZmkZk5S.js → types-Cgo3CFt9.js} +1 -1
  296. package/dist/client/assets/{url-slug-yKaykGVx.js → url-slug-D5Ql5NBy.js} +1 -1
  297. package/dist/client/assets/{usage-stats-B-U2im7t.js → usage-stats-D1pQya7R.js} +32 -32
  298. package/dist/client/assets/{use-ai-providers-DMerS0dR.js → use-ai-providers-FchZM1mi.js} +1 -1
  299. package/dist/client/assets/{use-apply-named-rule-B_pcj1fJ.js → use-apply-named-rule-CFJrM0f2.js} +1 -1
  300. package/dist/client/assets/use-ask-in-chat-CdLHTgVd.js +1 -0
  301. package/dist/client/assets/{use-automations-CotbuTIN.js → use-automations-CarYUcnW.js} +1 -1
  302. package/dist/client/assets/{use-autosave-BMHCMWOG.js → use-autosave-Csria5RZ.js} +1 -1
  303. package/dist/client/assets/use-blocks-v8-project-B0q_oYPf.js +1 -0
  304. package/dist/client/assets/{use-chat-layout-state-CKlzZSFB.js → use-chat-layout-state-BqEltHtu.js} +1 -1
  305. package/dist/client/assets/{use-cms-publish-actions-B18WgFwx.js → use-cms-publish-actions-DPRkhh6_.js} +1 -1
  306. package/dist/client/assets/{use-connect-companion-CP2lbL5p.js → use-connect-companion-BhmBql_v.js} +1 -1
  307. package/dist/client/assets/{use-connection-Yeg3sQ-l.js → use-connection-VuRKL2Wi.js} +1 -1
  308. package/dist/client/assets/{use-content-sync-DEW9pHRa.js → use-content-sync-CGHzShO7.js} +1 -1
  309. package/dist/client/assets/{use-copy-m2oUJF7G.js → use-copy-0cdTfCyw.js} +1 -1
  310. package/dist/client/assets/{use-date-fns-locale-7jMzA5l2.js → use-date-fns-locale-CaSBMCYV.js} +1 -1
  311. package/dist/client/assets/{use-debounced-autosave-C-UsjeaV.js → use-debounced-autosave-B_FG-Ld6.js} +1 -1
  312. package/dist/client/assets/{use-debounced-value-BlVaTHev.js → use-debounced-value-Dx--8iDQ.js} +1 -1
  313. package/dist/client/assets/{use-deco-credits-BvPiIPxy.js → use-deco-credits-CakmKLVf.js} +1 -1
  314. package/dist/client/assets/{use-decopilot-events-B0PBK1Av.js → use-decopilot-events-YhVenol5.js} +1 -1
  315. package/dist/client/assets/{use-delete-connection-DExrJh9G.js → use-delete-connection-CuVqc_g7.js} +1 -1
  316. package/dist/client/assets/{use-deployment-admin-CRigQkc2.js → use-deployment-admin-DQEDNV2B.js} +1 -1
  317. package/dist/client/assets/{use-entitlements-Bn1lpTMW.js → use-entitlements-D_MPAaiQ.js} +1 -1
  318. package/dist/client/assets/{use-fast-preview-draft-url-kLM5HS2Q.js → use-fast-preview-draft-url-Bh1bJ8Tn.js} +1 -1
  319. package/dist/client/assets/{use-file-configs-D7MvTYxK.js → use-file-configs-CXBJCroM.js} +1 -1
  320. package/dist/client/assets/{use-id-selection-BA3JsAi6.js → use-id-selection-BtSilIwG.js} +1 -1
  321. package/dist/client/assets/{use-inbox-feed-DwHoJq6j.js → use-inbox-feed-BPWzxstR.js} +1 -1
  322. package/dist/client/assets/{use-infinite-scroll-C87qe8Wa.js → use-infinite-scroll-B6u7Pc2_.js} +1 -1
  323. package/dist/client/assets/{use-join-requests-qfP8I5hc.js → use-join-requests-BPXOtsdm.js} +1 -1
  324. package/dist/client/assets/{use-main-panel-tabs-CPwSHrEE.js → use-main-panel-tabs-D5rq6cfQ.js} +1 -1
  325. package/dist/client/assets/{use-mcp-auth-status-BqFL1hj_.js → use-mcp-auth-status-DgRTk282.js} +1 -1
  326. package/dist/client/assets/{use-mcp-client-sJ5tYuZ0.js → use-mcp-client-CS5CWOuF.js} +1 -1
  327. package/dist/client/assets/{use-mcp-prompts-CLTd7fVx.js → use-mcp-prompts-CCE8Fbv3.js} +1 -1
  328. package/dist/client/assets/{use-mcp-tools-Ds_pRYTC.js → use-mcp-tools-BxzPGngG.js} +1 -1
  329. package/dist/client/assets/{use-mobile-Ca0mzlkS.js → use-mobile-BRC3jJYG.js} +1 -1
  330. package/dist/client/assets/{use-move-blocks-C4yvAsmR.js → use-move-blocks-CVmWlpJu.js} +1 -1
  331. package/dist/client/assets/{use-navigate-to-agent-Cxr48619.js → use-navigate-to-agent-DeqGja5R.js} +1 -1
  332. package/dist/client/assets/{use-org-fs-noLXcqcI.js → use-org-fs-BR5xSOAD.js} +1 -1
  333. package/dist/client/assets/{use-org-repo-syncs-PTxVSrm9.js → use-org-repo-syncs-992WvYkT.js} +1 -1
  334. package/dist/client/assets/{use-org-sso-29QrT10j.js → use-org-sso-CW-nSjRe.js} +1 -1
  335. package/dist/client/assets/{use-organization-settings-DEeoFtSz.js → use-organization-settings-CFMK78d5.js} +1 -1
  336. package/dist/client/assets/use-project-native-view-presence-BkX9SQu7.js +1 -0
  337. package/dist/client/assets/{use-project-scope-BXftze_e.js → use-project-scope-BytjCxz5.js} +1 -1
  338. package/dist/client/assets/{use-recent-apps-CIrhZcWD.js → use-recent-apps-fmj7r_1V.js} +1 -1
  339. package/dist/client/assets/{use-reports-diagnostic-oIW-vWNT.js → use-reports-diagnostic-ZH33t2Ry.js} +1 -1
  340. package/dist/client/assets/{use-sandbox-events-BG3ieUWQ.js → use-sandbox-events-BtH7E0uv.js} +1 -1
  341. package/dist/client/assets/{use-secrets-DkEnO-x0.js → use-secrets-MV8rBv8h.js} +1 -1
  342. package/dist/client/assets/{use-section-preview-base-BjAgfXf5.js → use-section-preview-base-NYQYAFvE.js} +1 -1
  343. package/dist/client/assets/{use-sidebar-collapsed-CvNtqVy2.js → use-sidebar-collapsed-DrrBSrPo.js} +1 -1
  344. package/dist/client/assets/{use-tags-BHiGxU75.js → use-tags-B4IWxKLq.js} +1 -1
  345. package/dist/client/assets/{use-task-board-analytics-Ckz7K9Sk.js → use-task-board-analytics-CPWfH5yX.js} +1 -1
  346. package/dist/client/assets/{use-task-board-events-N3Hmav6X.js → use-task-board-events-D2PTxteH.js} +1 -1
  347. package/dist/client/assets/{use-task-board-item-prs-BrW26Cl1.js → use-task-board-item-prs-D7OlirOV.js} +1 -1
  348. package/dist/client/assets/{use-task-board-items-Boto1WTW.js → use-task-board-items-BKptWuO1.js} +1 -1
  349. package/dist/client/assets/{use-task-board-prompts-BU1x5m9R.js → use-task-board-prompts-DnVDJ6_x.js} +1 -1
  350. package/dist/client/assets/{use-task-metadata-BB2iYALn.js → use-task-metadata-oUNTu7G7.js} +1 -1
  351. package/dist/client/assets/{use-thread-outputs-BUT_Bu11.js → use-thread-outputs-BZy8PRyS.js} +1 -1
  352. package/dist/client/assets/{use-voice-input-BlXyivEI.js → use-voice-input-DGGVK_ws.js} +1 -1
  353. package/dist/client/assets/useInfiniteQuery-D6ILTDQv.js +1 -0
  354. package/dist/client/assets/{useQueries-B4AI0K7c.js → useQueries-BL2FM5JE.js} +1 -1
  355. package/dist/client/assets/useSuspenseInfiniteQuery-BcYDPkVL.js +1 -0
  356. package/dist/client/assets/{users-BJUWBQrO.js → users-DN8b1dro.js} +1 -1
  357. package/dist/client/assets/{utils-Cwe-foul.js → utils-0-v3IEet.js} +2 -2
  358. package/dist/client/assets/{variant-calendar-DTdamyQ9.js → variant-calendar-AGawLsl4.js} +1 -1
  359. package/dist/client/assets/{variant-matcher-override-Ve07uZhZ.js → variant-matcher-override-bkTeCqdH.js} +1 -1
  360. package/dist/client/assets/{view-header-CcqynLIn.js → view-header-BIzMLTHX.js} +1 -1
  361. package/dist/client/assets/virtual-mcp-BMrSPW2C.js +1 -0
  362. package/dist/client/assets/{watch-sse-pool-C6-OWpzA.js → watch-sse-pool-GnUwxcY-.js} +1 -1
  363. package/dist/client/index.html +2 -2
  364. package/dist/server/server.js +2 -2
  365. package/package.json +1 -1
  366. package/dist/client/assets/agent-app-DIOn_zxU.js +0 -1
  367. package/dist/client/assets/agent-deck-D8sIhHcl.js +0 -1
  368. package/dist/client/assets/agent-experiments-CTwWI_LC.js +0 -1
  369. package/dist/client/assets/agent-library-C8-K4C_A.js +0 -1
  370. package/dist/client/assets/agent-library-file-CUAfUV8b.js +0 -1
  371. package/dist/client/assets/agent-overview-BA99Kh7t.js +0 -1
  372. package/dist/client/assets/agent-settings-BLtzbihE.js +0 -1
  373. package/dist/client/assets/agent-site-editor-code-Cz02M8Vo.js +0 -2
  374. package/dist/client/assets/agent-site-editor-content-BR1zYqRC.js +0 -1
  375. package/dist/client/assets/agent-site-editor-preview-DmnTxDaZ.js +0 -1
  376. package/dist/client/assets/agent-view-zCDPmtYP.js +0 -1
  377. package/dist/client/assets/api-keys-JGOPVjRU.js +0 -1
  378. package/dist/client/assets/app-editor-DToZlbxJ.js +0 -1
  379. package/dist/client/assets/category-editor-DCkmHYcQ.js +0 -1
  380. package/dist/client/assets/cms-settings-editor-CBpfvEej.js +0 -1
  381. package/dist/client/assets/content-tab-Df3tIOmt.js +0 -25
  382. package/dist/client/assets/context-C2o5DQEj.js +0 -1
  383. package/dist/client/assets/index-BYag0D9X.js +0 -83
  384. package/dist/client/assets/index-BkJtJQz4.css +0 -1
  385. package/dist/client/assets/index-Bu4stMck.js +0 -1
  386. package/dist/client/assets/library-DSOuf5_0.js +0 -1
  387. package/dist/client/assets/parse-sections-3ze3XXop.js +0 -20
  388. package/dist/client/assets/plan-BbVPxdYG.js +0 -1
  389. package/dist/client/assets/post-calendar-kAnC_2Hm.js +0 -1
  390. package/dist/client/assets/post-editor-DJ3OH6KB.js +0 -2
  391. package/dist/client/assets/project-reports-DBO5X-h0.js +0 -1
  392. package/dist/client/assets/project-tasks-CfmD3VHL.js +0 -1
  393. package/dist/client/assets/record-editor-BnGOXmOt.js +0 -1
  394. package/dist/client/assets/redirect-editor-OjmSo149.js +0 -1
  395. package/dist/client/assets/reports-DoGHDSe5.js +0 -1
  396. package/dist/client/assets/repositories-btzaY915.js +0 -1
  397. package/dist/client/assets/route-f2InXsa9.js +0 -1
  398. package/dist/client/assets/route-t1xHDXK-.js +0 -1
  399. package/dist/client/assets/settings-tab-CPJwJyA3.js +0 -1
  400. package/dist/client/assets/site-editor-cTg-Jmis.js +0 -1
  401. package/dist/client/assets/tasks-DZsRgr7r.js +0 -1
  402. package/dist/client/assets/use-ask-in-chat-DO48HVtQ.js +0 -1
  403. package/dist/client/assets/use-blocks-v8-project-2aeIHOAc.js +0 -1
  404. package/dist/client/assets/use-project-native-view-presence-BO67nAre.js +0 -1
  405. package/dist/client/assets/useInfiniteQuery-Dn6_bz5e.js +0 -1
  406. package/dist/client/assets/useSuspenseInfiniteQuery-FPhi-YvF.js +0 -1
  407. package/dist/client/assets/virtual-mcp-DvDiWLao.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as b,b as P,j as t,n as w,m as N}from"./index-C5rKbfQX.js";import{C}from"./index-LAMXRZBI.js";import{j as y,u as $,bP as z}from"./agent-icon-CIk0WHPf.js";import{B as I}from"./badge-DkZUyuLE.js";import"./use-mobile-BRC3jJYG.js";import"./use-sidebar-collapsed-DrrBSrPo.js";import"./use-chat-layout-state-BqEltHtu.js";import"./thread-route-DPSPrt7d.js";import"./autosend-lHRfnZnw.js";import"./use-project-scope-BytjCxz5.js";import"./repository-binding-DUEv5f7z.js";import"./use-mcp-client-CS5CWOuF.js";import"./auth-Xuy-VreX.js";import"./thread-intent-WcxoFFz-.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-GnUwxcY-.js";import"./task-board-BRiMfa1H.js";import"./schema-X_RDdg-y.js";import"./tooltip-DfoRFUTt.js";import"./index-Kdb8LYBY.js";import"./toolbar-icon-button-CJQ4RpgO.js";import"./shell-layout-B3OvMhlE.js";import"./Globe04-DDVQybOc.js";import"./UserSquare-BbdNewBi.js";import"./use-deployment-admin-DQEDNV2B.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-D8nV11Fp.js";import"./CheckCircle-DqwYeIyi.js";import"./Monitor01-Bv9vshAO.js";import"./Zap-BNFgHEeM.js";import"./Plus-D9BJQ8Ip.js";import"./Tool01-lye9w7uq.js";import"./command-S6wl_N-A.js";import"./index-LtcFVDl-.js";import"./SearchMd-eMVBpMYs.js";import"./integration-icon-Bsx-3jGF.js";import"./LinkBroken01-Dz0priKS.js";import"./project-icon-C4lVIM96.js";import"./use-navigate-to-agent-DeqGja5R.js";import"./use-debounced-value-Dx--8iDQ.js";import"./new-project-dialog-2FiQJTVA.js";import"./ArrowLeft-BnmiAsgO.js";import"./label-ClvjBErg.js";import"./repository-picker-LEy-d9M8.js";import"./github-icon-B6p2n-Kl.js";import"./useInfiniteQuery-D6ILTDQv.js";import"./infiniteQueryObserver-YWHwwvoP.js";import"./collection-search-7CuPB6Mj.js";import"./ShoppingBag01-CCbfQ2Ar.js";import"./use-organization-settings-CFMK78d5.js";import"./legacy-admin-welcome-dialog-BWjZM5AD.js";import"./drawer-CeL3iOe9.js";import"./required-auth-layout-CS2LsSXS.js";import"./use-org-sso-CW-nSjRe.js";import"./sheet-IIyyroSY.js";import"./resizable-BTzOABh_.js";import"./AlertCircle-BoWj3bmI.js";import"./ArrowUp-B1rRBoAl.js";import"./ChevronUp-CjYakPcO.js";import"./ChevronSelectorVertical-CUAybNrz.js";import"./CreditCard01-B2hFUd9r.js";import"./SwitchHorizontal01-D1J2TI3k.js";import"./Key01-CP_3sF4j.js";import"./Minus-BUE5BtZS.js";import"./Sun-DYx61HHA.js";import"./Play-BZxxVkLQ.js";import"./Trash01-BoIu5wHA.js";import"./Upload01-CWarigy8.js";import"./Users01-JvVmj0s2.js";const K={plan:{heading:"home.comingSoon.planHeading",description:"home.comingSoon.planDescription",points:[{Icon:y,labelKey:"home.comingSoon.planGoals",tone:"bg-chart-2/15 text-chart-2"},{Icon:$,labelKey:"home.comingSoon.planTasks",tone:"bg-chart-1/15 text-chart-1"},{Icon:z,labelKey:"home.comingSoon.planProgress",tone:"bg-chart-4/15 text-chart-4"}]}};function L(o){const e=b.c(4),{className:f}=o;let i;e[0]!==f?(i=N("block h-2 rounded-full bg-muted",f),e[0]=f,e[1]=i):i=e[1];let r;return e[2]!==i?(r=t.jsx("span",{className:i}),e[2]=i,e[3]=r):r=e[3],r}const R=[{title:"w-32",fill:"w-[72%]",tone:"bg-chart-2",value:"72%"},{title:"w-24",fill:"w-[45%]",tone:"bg-chart-1",value:"45%"},{title:"w-28",fill:"w-[88%]",tone:"bg-chart-4",value:"88%"}];function B(){const o=b.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex flex-col gap-5",children:R.map(E)}),o[0]=e):e=o[0],e}function E(o){return t.jsxs("div",{className:"flex flex-col gap-2.5",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("span",{className:"flex size-6 items-center justify-center rounded-md bg-muted text-muted-foreground",children:t.jsx(y,{size:14})}),t.jsx(L,{className:o.title}),t.jsx("span",{className:"ml-auto text-xs font-medium tabular-nums text-muted-foreground",children:o.value})]}),t.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:t.jsx("div",{className:N("h-full rounded-full",o.fill,o.tone)})})]},o.value)}function G(o){const e=b.c(30),{kind:f}=o,i=P(),r=K[f];let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("div",{className:"absolute inset-x-10 -top-4 h-40 rounded-full bg-chart-2/20 blur-3xl"}),e[0]=u):u=e[0];let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs("div",{"aria-hidden":!0,className:"relative w-full max-w-md",children:[u,t.jsx("div",{className:"relative surface p-6 [mask-image:linear-gradient(to_bottom,black_65%,transparent)]",children:t.jsx(B,{})})]}),e[1]=h):h=e[1];let s;e[2]!==i?(s=i("home.comingSoon.badge"),e[2]=i,e[3]=s):s=e[3];let l;e[4]!==s?(l=t.jsx(I,{variant:"muted",children:s}),e[4]=s,e[5]=l):l=e[5];let m;e[6]!==r.heading||e[7]!==i?(m=i(r.heading),e[6]=r.heading,e[7]=i,e[8]=m):m=e[8];let n;e[9]!==m?(n=t.jsx("h1",{className:"text-2xl font-medium text-balance text-foreground",children:m}),e[9]=m,e[10]=n):n=e[10];let a;e[11]!==r.description||e[12]!==i?(a=i(r.description),e[11]=r.description,e[12]=i,e[13]=a):a=e[13];let c;e[14]!==a?(c=t.jsx("p",{className:"max-w-md text-sm text-pretty text-muted-foreground",children:a}),e[14]=a,e[15]=c):c=e[15];let p;e[16]!==l||e[17]!==n||e[18]!==c?(p=t.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[l,n,c]}),e[16]=l,e[17]=n,e[18]=c,e[19]=p):p=e[19];let d;if(e[20]!==r.points||e[21]!==i){let j;e[23]!==i?(j=S=>{const{Icon:_,labelKey:v,tone:k}=S;return t.jsxs("li",{className:"flex items-center gap-3 surface p-4 sm:flex-col sm:items-start",children:[t.jsx("span",{className:N("flex size-9 shrink-0 items-center justify-center rounded-lg",k),children:t.jsx(_,{size:18})}),t.jsx("span",{className:"text-sm text-foreground",children:i(v)})]},v)},e[23]=i,e[24]=j):j=e[24],d=r.points.map(j),e[20]=r.points,e[21]=i,e[22]=d}else d=e[22];let x;e[25]!==d?(x=t.jsx("ul",{className:"grid w-full gap-3 sm:grid-cols-3",children:d}),e[25]=d,e[26]=x):x=e[26];let g;return e[27]!==x||e[28]!==p?(g=t.jsx(w,{children:t.jsx(w.Content,{children:t.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-10 px-4 pt-12 pb-16 md:pt-20",children:[h,p,x]})})}),e[27]=x,e[28]=p,e[29]=g):g=e[29],g}function et(){const o=b.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(C.Content,{children:t.jsx(G,{kind:"plan"})}),o[0]=e):e=o[0],e}export{et as default};
@@ -1 +1 @@
1
- import{c as f,a4 as g,aj as P,K as _,i as y,m as h,j as d}from"./index-CpKrWBFM.js";import{u as A}from"./use-entitlements-Bn1lpTMW.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 j(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 R="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function q(){const e=f.c(8),{org:t}=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 D(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color: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{R as C,F,K as P,w as S,I as a,D as b,v as f,O as i,j as p,q as u};
1
+ import{c as f,a4 as g,aj as P,K as _,i as y,m as h,j as d}from"./index-C5rKbfQX.js";import{u as A}from"./use-entitlements-D_MPAaiQ.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 j(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 R="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function q(){const e=f.c(8),{org:t}=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 D(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color: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{R as C,F,K as P,w as S,I as a,D as b,v as f,O as i,j as p,q as u};
@@ -1,4 +1,4 @@
1
- import{r as Y,j as s,eq as me,hH as ye,c as V,m as Z,cy as Pe,b as q,a4 as se,aj as J,q as _e,e as ae,J as ge,B as G,I as Se,t as W,K as ee,aG as we,aH as Ee,aI as Ie,aJ as Ae,bj as Ue,aK as De,aL as Te,aM as $e,g1 as le,gL as ne,i as pe,bC as xe,b2 as Re,ap as Le,ar as Be,L as He,gv as ke}from"./index-CpKrWBFM.js";import{s as Oe}from"./Plus-CXFgI-7S.js";import{B as Fe}from"./badge-Dmw39gk8.js";import{a as Me,b as ze,P as Ge}from"./popover-DsnoY7gE.js";import{T as ce,a as Ve}from"./toggle-group-u9Wi3ddU.js";import{g as Ke}from"./use-ai-providers-DMerS0dR.js";import{u as ie,d as he,a as qe}from"./use-entitlements-Bn1lpTMW.js";import{u as Qe,P as Ye}from"./plan-ladder-DK7Z5wEN.js";var re="Progress",oe=100,[Ze]=ye(re),[Je,Xe]=Ze(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(Je,{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 je="ProgressIndicator",be=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Xe(je,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})});be.displayName=je;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,eq as me,hH as ye,c as V,m as Z,cy as Pe,b as q,a4 as se,aj as J,q as _e,e as ae,J as ge,B as G,I as Se,t as W,K as ee,aG as we,aH as Ee,aI as Ie,aJ as Ae,bj as Ue,aK as De,aL as Te,aM as $e,g6 as le,gL as ne,i as pe,bC as xe,b2 as Re,ap as Le,ar as Be,L as He,gv as ke}from"./index-C5rKbfQX.js";import{s as Oe}from"./Plus-D9BJQ8Ip.js";import{B as Fe}from"./badge-DkZUyuLE.js";import{a as Me,b as ze,P as Ge}from"./popover-CqBUgUd4.js";import{T as ce,a as Ve}from"./toggle-group-DM_BOhW0.js";import{g as Ke}from"./use-ai-providers-FchZM1mi.js";import{u as ie,d as he,a as qe}from"./use-entitlements-D_MPAaiQ.js";import{u as Qe,P as Ye}from"./plan-ladder-NpTeU9-u.js";var re="Progress",oe=100,[Ze]=ye(re),[Je,Xe]=Ze(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(Je,{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 je="ProgressIndicator",be=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Xe(je,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})});be.displayName=je;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,cE as _,j as c,cG as j,cH as x,cF as E,cB as H,cC as L,cD as z,cK as w,cT as K,ev as b,cO as U,cQ as V,cU as W,cP as B,cR as J,cS as Q,cV as Z,cW as q,cJ as X,c as R,m as Y}from"./index-CpKrWBFM.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]=H({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(L,{...i,children:c.jsx(ee,{scope:e,contentId:z(),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 S="PopoverAnchor",y=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(S,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(E,{...s,...r,ref:e})});y.displayName=S;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":G(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(E,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),T=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};T.displayName=O;var h="PopoverContent",k=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});k.displayName=h;var re=W("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 U(a)},[]),c.jsx(V,{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 B(),c.jsx(J,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Q,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Z,{"data-state":G(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 G(t){return t?"open":"closed"}var le=F,pe=y,de=M,ue=T,fe=k;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,cE as _,j as c,cG as j,cH as x,cF as E,cB as H,cC as L,cD as z,cK as w,cT as K,ev as b,cO as U,cQ as V,cU as W,cP as B,cR as J,cS as Q,cV as Z,cW as q,cJ as X,c as R,m as Y}from"./index-C5rKbfQX.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]=H({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(L,{...i,children:c.jsx(ee,{scope:e,contentId:z(),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 S="PopoverAnchor",y=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(S,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(E,{...s,...r,ref:e})});y.displayName=S;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":G(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(E,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),T=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};T.displayName=O;var h="PopoverContent",k=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});k.displayName=h;var re=W("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 U(a)},[]),c.jsx(V,{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 B(),c.jsx(J,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Q,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Z,{"data-state":G(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 G(t){return t?"open":"closed"}var le=F,pe=y,de=M,ue=T,fe=k;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};
@@ -0,0 +1 @@
1
+ import{c as it,b as pt,r as lt,J as jt,j as e,m as et,B as tt,ar as Ct}from"./index-C5rKbfQX.js";import{a0 as Nt,F as Dt}from"./agent-icon-CIk0WHPf.js";import{s as kt}from"./Plus-D9BJQ8Ip.js";import{S as St}from"./scroll-area-DKlcsV7g.js";import{c as wt,s as Tt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{aE as zt,l as Et,aF as Pt}from"./content-tab-BUefWRPb.js";import"./AlertCircle-BoWj3bmI.js";import"./Tool01-lye9w7uq.js";import"./ArrowUp-B1rRBoAl.js";import"./ArrowLeft-BnmiAsgO.js";import"./LinkBroken01-Dz0priKS.js";import"./ShoppingBag01-CCbfQ2Ar.js";import"./Globe04-DDVQybOc.js";import"./CheckCircle-DqwYeIyi.js";import"./ChevronUp-CjYakPcO.js";import"./ChevronSelectorVertical-CUAybNrz.js";import"./UserSquare-BbdNewBi.js";import"./CreditCard01-B2hFUd9r.js";import"./SwitchHorizontal01-D1J2TI3k.js";import"./Key01-CP_3sF4j.js";import"./Minus-BUE5BtZS.js";import"./Monitor01-Bv9vshAO.js";import"./Sun-DYx61HHA.js";import"./Play-BZxxVkLQ.js";import"./SearchMd-eMVBpMYs.js";import"./Trash01-BoIu5wHA.js";import"./Upload01-CWarigy8.js";import"./Users01-JvVmj0s2.js";import"./XClose-D8nV11Fp.js";import"./Zap-BNFgHEeM.js";import"./index-BdQq_4o_.js";import"./parse-sections--hSYduXv.js";import"./utils-0-v3IEet.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CElz1KSY.js";import"./collapsible-BDLE2DdR.js";import"./use-copy-0cdTfCyw.js";import"./usage-stats-D1pQya7R.js";import"./tool-namespace-C59qlTVf.js";import"./form-L-VC2P7Q.js";import"./label-ClvjBErg.js";import"./utils-CVEq3hMx.js";import"./markdown-BdJYipZI.js";import"./chat-context-CgzRmLj9.js";import"./autosend-lHRfnZnw.js";import"./thread-route-DPSPrt7d.js";import"./use-project-scope-BytjCxz5.js";import"./repository-binding-DUEv5f7z.js";import"./use-mcp-client-CS5CWOuF.js";import"./auth-Xuy-VreX.js";import"./thread-intent-WcxoFFz-.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-GnUwxcY-.js";import"./task-board-BRiMfa1H.js";import"./schema-X_RDdg-y.js";import"./use-entitlements-D_MPAaiQ.js";import"./use-ai-providers-FchZM1mi.js";import"./use-decopilot-events-YhVenol5.js";import"./use-organization-settings-CFMK78d5.js";import"./use-mobile-BRC3jJYG.js";import"./tooltip-DfoRFUTt.js";import"./index-Kdb8LYBY.js";import"./shell-layout-B3OvMhlE.js";import"./use-deployment-admin-DQEDNV2B.js";import"./admin-fetch-BhTJlAsX.js";import"./command-S6wl_N-A.js";import"./index-LtcFVDl-.js";import"./integration-icon-Bsx-3jGF.js";import"./project-icon-C4lVIM96.js";import"./use-navigate-to-agent-DeqGja5R.js";import"./use-debounced-value-Dx--8iDQ.js";import"./new-project-dialog-2FiQJTVA.js";import"./repository-picker-LEy-d9M8.js";import"./github-icon-B6p2n-Kl.js";import"./useInfiniteQuery-D6ILTDQv.js";import"./infiniteQueryObserver-YWHwwvoP.js";import"./collection-search-7CuPB6Mj.js";import"./legacy-admin-welcome-dialog-BWjZM5AD.js";import"./drawer-CeL3iOe9.js";import"./required-auth-layout-CS2LsSXS.js";import"./use-org-sso-CW-nSjRe.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D5FAR8Ib.js";import"./types-Cgo3CFt9.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-IIyyroSY.js";import"./use-connection-VuRKL2Wi.js";import"./use-mcp-prompts-CCE8Fbv3.js";import"./use-thread-outputs-BZy8PRyS.js";import"./file-type-icon-BvWm1zTi.js";import"./section-array-field-BJlTuDJ0.js";import"./blocks-tab-states-Bk50Moxc.js";import"./site-editor-toast-DENHUiCT.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-BtH7E0uv.js";import"./use-blocks-v8-project-B0q_oYPf.js";import"./use-voice-input-DGGVK_ws.js";import"./popover-CqBUgUd4.js";import"./index-htBIzPBo.js";import"./checkbox-DWK-s7Qb.js";import"./select-CyUEqwIm.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-CPXu2SjZ.js";import"./hosted-reconcile-BDgHjLi6.js";import"./slider-BepoHGY5.js";import"./index-CBDkPY2u.js";import"./tooltipContext-DkEG8PKQ.js";import"./CategoricalChart-DIMW48Er.js";import"./index-G9etLsCu.js";import"./switch-orhYNiag.js";import"./textarea-209m9vBn.js";import"./monaco-editor-BDOHWgUD.js";import"./editor-DI-SD6st.js";import"./calendar-DKdblSlt.js";import"./editor-classes-rz90F5QL.js";import"./core.esm-GtXGAknm.js";import"./sortable.esm-BrSOrmKx.js";import"./toggle-group-DM_BOhW0.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-DQc1zHex.js";import"./search-input-Dp__IM9S.js";import"./tabs-DtSLfZo2.js";import"./use-file-configs-CXBJCroM.js";import"./asset-utils-Bod0b-nj.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./view-header-BIzMLTHX.js";import"./use-cms-publish-actions-DPRkhh6_.js";import"./use-content-sync-CGHzShO7.js";import"./mustache-D5PfsUhz.js";import"./sandbox-lifecycle-context-DDRNmIrA.js";import"./use-move-blocks-CVmWlpJu.js";import"./badge-DkZUyuLE.js";import"./empty-state-BzJZeJ1_.js";import"./index-DdsVIe4X.js";import"./collection-table-wrapper-C0bVVs5u.js";import"./table-CbTKxzQy.js";import"./agent-capabilities-Dnf4CKY_.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function xo(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:m,onReschedule:i,isCreating:D}=h,s=D===void 0?!1:D,r=pt(),[j,C]=lt.useState(null),[rt]=jt(),[n,f]=lt.useState(It),p=rt.language;let N;t[0]!==n||t[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=N):N=t[2];const y=N;let x,u,a,c,v,k,S,w,T,z;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==y||t[9]!==m||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=zt(Et(b)),st=wt(n),bt=Tt(new Date);u="flex h-full w-full flex-col";let G;t[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ct(new Date)),t[24]=G):G=t[24];let I;t[25]!==r?(I=r("sandbox.postCalendar.today"),t[25]=r,t[26]=I):I=t[26];let F;t[27]!==I?(F=e.jsx(tt,{variant:"outline",size:"sm",onClick:G,children:I}),t[27]=I,t[28]=F):F=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Mt),t[29]=Q):Q=t[29];let H;t[30]!==r?(H=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=H):H=t[31];let V;t[32]===Symbol.for("react.memo_cache_sentinel")?(V=e.jsx(Dt,{size:16}),t[32]=V):V=t[32];let U;t[33]!==H?(U=e.jsx(tt,{variant:"ghost",size:"icon",onClick:Q,"aria-label":H,children:V}),t[33]=H,t[34]=U):U=t[34];let X;t[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Lt),t[35]=X):X=t[35];let _;t[36]!==r?(_=r("sandbox.postCalendar.next"),t[36]=r,t[37]=_):_=t[37];let Y;t[38]===Symbol.for("react.memo_cache_sentinel")?(Y=e.jsx(Ct,{size:16}),t[38]=Y):Y=t[38];let $;t[39]!==_?($=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":_,children:Y}),t[39]=_,t[40]=$):$=t[40];let O;t[41]!==y?(O=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),t[41]=y,t[42]=O):O=t[42];let B;t[43]!==r?(B=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=B):B=t[44];let R;t[45]!==B?(R=e.jsx(mt,{className:ft,label:B}),t[45]=B,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(mt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==F||t[55]!==U||t[56]!==$||t[57]!==O||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[F,U,$,O,W]}),t[54]=F,t[55]=U,t[56]=$,t[57]=O,t[58]=W,t[59]=a):a=t[59],z="relative flex-1 min-h-0",x=St,T="h-full",S="flex min-w-[880px] gap-4 p-4";let J;t[60]!==r?(J=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=J):J=t[61];let Z;t[62]!==J?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:J}),t[62]=J,t[63]=Z):Z=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(l=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(l)},l.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(l=>{const yt=l.getMonth()===n.getMonth(),vt=ht.get(Pt(l))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");C(null),at&&i(at,l)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",yt?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",l.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:l.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>m(l),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(l)}),children:e.jsx(kt,{size:14})})]}),vt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},l.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=e.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),k=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Nt,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(l=>e.jsx(nt,{entry:l,active:l.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},l.post.key)),t[3]=n,t[4]=b,t[5]=j,t[6]=s,t[7]=p,t[8]=y,t[9]=m,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=v,t[19]=k,t[20]=S,t[21]=w,t[22]=T,t[23]=z}else x=t[14],u=t[15],a=t[16],c=t[17],v=t[18],k=t[19],S=t[20],w=t[21],T=t[22],z=t[23];let E;t[64]!==c||t[65]!==v||t[66]!==k?(E=e.jsxs("div",{className:c,children:[v,k]}),t[64]=c,t[65]=v,t[66]=k,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let L;t[72]!==x||t[73]!==P||t[74]!==T?(L=e.jsx(x,{className:T,children:P}),t[72]=x,t[73]=P,t[74]=T,t[75]=L):L=t[75];let M;t[76]!==L||t[77]!==z?(M=e.jsx("div",{className:z,children:L}),t[76]=L,t[77]=z,t[78]=M):M=t[78];let q;return t[79]!==u||t[80]!==a||t[81]!==M?(q=e.jsxs("div",{className:u,children:[a,M]}),t[79]=u,t[80]=a,t[81]=M,t[82]=q):q=t[82],q}function Lt(h){return dt(h,1)}function Mt(h){return dt(h,-1)}function It(){return ct(new Date)}function mt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let m;t[2]!==o?(m=e.jsx("span",{className:o}),t[2]=o,t[3]=m):m=t[3];let i;return t[4]!==d||t[5]!==m?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[m,d]}),t[4]=d,t[5]=m,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:m,onDragStateChange:i}=h,D=pt(),{post:s,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;t[0]!==D||t[1]!==j?(C=D(j),t[0]=D,t[1]=j,t[2]=C):C=t[2];const rt=C;let n;t[3]!==i||t[4]!==s.key?(n=v=>{v.dataTransfer.setData("text/plain",s.key),v.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==s.key?(p=()=>m(s.key),t[8]=m,t[9]=s.key,t[10]=p):p=t[10];const N=`${s.title} · ${rt}`,y=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==y||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),t[11]=y,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==N?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:N,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{xo as PostCalendar};
@@ -0,0 +1,2 @@
1
+ import{b as X,aj as lt,r as Y,j as t,B as Te,D as at,v as nt,w as rt,x as ct,aS as dt,by as mt,m as De,y as pt,t as Le,c as te,a7 as ut,aM as ft,aL as xt,aI as ht,aG as gt,aH as bt,aK as jt,aJ as vt,bj as yt,h as St,bk as _t,I as Be}from"./index-C5rKbfQX.js";import{u as kt}from"./chat-context-CgzRmLj9.js";import{i as Ie}from"./AlertCircle-BoWj3bmI.js";import{a6 as Et,aY as Ct,b_ as Pt,at as Nt,aq as Tt,l as Lt}from"./agent-icon-CIk0WHPf.js";import{d as wt}from"./UserSquare-BbdNewBi.js";import{s as Dt}from"./Trash01-BoIu5wHA.js";import{s as Bt}from"./XClose-D8nV11Fp.js";import{L as ee}from"./label-ClvjBErg.js";import{M as At}from"./multi-select-R2NOj_5y.js";import{c as Ft,a as It,T as Ge,b as We}from"./tabs-DtSLfZo2.js";import{S as Ot}from"./switch-orhYNiag.js";import{T as Qe}from"./textarea-209m9vBn.js";import{Y as zt,Z as Rt,_ as $t,H as qt,u as Ye,I as Ut,a as Mt,U as Ht,$ as Re,x as Vt,a0 as Gt,a1 as Wt}from"./parse-sections--hSYduXv.js";import{f as Yt,a as Kt,u as Zt,I as Jt,b as Qt,c as Fe,B as Xt,R as es}from"./block-document-lzBLHqet.js";import{b as ts,C as ss,K as os}from"./blog-schema-_cHri49Q.js";import{b as is,l as ls,a as as,c as ns,d as Ke,u as rs,e as cs,g as ds,f as ms,s as ps,h as us,i as O,j as fs,m as xs,k as Ze,E as hs,o as gs,p as Xe,r as bs,q as et,R as js,t as vs,v as ys,w as Ss,A as _s,P as ks,x as Es}from"./content-tab-BUefWRPb.js";import{c as $e,T as qe,a as Ue}from"./tooltip-DfoRFUTt.js";import{u as Cs}from"./use-ai-providers-FchZM1mi.js";import{u as Ps}from"./mustache-D5PfsUhz.js";import{b as Ns}from"./use-fast-preview-draft-url-Bh1bJ8Tn.js";import{u as Ts}from"./use-autosave-Csria5RZ.js";import{f as Ls,b as ws}from"./Tool01-lye9w7uq.js";import{e as Ds,f as Bs,u as As}from"./usage-stats-D1pQya7R.js";import{s as Fs}from"./suggestion-YqRrGHMj.js";import{E as Is,T as Me}from"./editor-classes-rz90F5QL.js";import{u as Os}from"./site-editor-toast-DENHUiCT.js";import"./autosend-lHRfnZnw.js";import"./thread-route-DPSPrt7d.js";import"./use-project-scope-BytjCxz5.js";import"./repository-binding-DUEv5f7z.js";import"./use-mcp-client-CS5CWOuF.js";import"./auth-Xuy-VreX.js";import"./thread-intent-WcxoFFz-.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-GnUwxcY-.js";import"./task-board-BRiMfa1H.js";import"./schema-X_RDdg-y.js";import"./use-entitlements-D_MPAaiQ.js";import"./use-decopilot-events-YhVenol5.js";import"./use-organization-settings-CFMK78d5.js";import"./ArrowUp-B1rRBoAl.js";import"./ArrowLeft-BnmiAsgO.js";import"./LinkBroken01-Dz0priKS.js";import"./ShoppingBag01-CCbfQ2Ar.js";import"./Globe04-DDVQybOc.js";import"./CheckCircle-DqwYeIyi.js";import"./ChevronUp-CjYakPcO.js";import"./ChevronSelectorVertical-CUAybNrz.js";import"./CreditCard01-B2hFUd9r.js";import"./SwitchHorizontal01-D1J2TI3k.js";import"./Key01-CP_3sF4j.js";import"./Minus-BUE5BtZS.js";import"./Monitor01-Bv9vshAO.js";import"./Sun-DYx61HHA.js";import"./Play-BZxxVkLQ.js";import"./Plus-D9BJQ8Ip.js";import"./SearchMd-eMVBpMYs.js";import"./Upload01-CWarigy8.js";import"./Users01-JvVmj0s2.js";import"./Zap-BNFgHEeM.js";import"./badge-DkZUyuLE.js";import"./checkbox-DWK-s7Qb.js";import"./command-S6wl_N-A.js";import"./index-LtcFVDl-.js";import"./popover-CqBUgUd4.js";import"./active-indicator-CCMhAsc_.js";import"./utils-0-v3IEet.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CElz1KSY.js";import"./collapsible-BDLE2DdR.js";import"./use-copy-0cdTfCyw.js";import"./shell-layout-B3OvMhlE.js";import"./use-deployment-admin-DQEDNV2B.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-Bsx-3jGF.js";import"./project-icon-C4lVIM96.js";import"./use-navigate-to-agent-DeqGja5R.js";import"./use-debounced-value-Dx--8iDQ.js";import"./new-project-dialog-2FiQJTVA.js";import"./repository-picker-LEy-d9M8.js";import"./github-icon-B6p2n-Kl.js";import"./useInfiniteQuery-D6ILTDQv.js";import"./infiniteQueryObserver-YWHwwvoP.js";import"./collection-search-7CuPB6Mj.js";import"./legacy-admin-welcome-dialog-BWjZM5AD.js";import"./drawer-CeL3iOe9.js";import"./use-mobile-BRC3jJYG.js";import"./required-auth-layout-CS2LsSXS.js";import"./use-org-sso-CW-nSjRe.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D5FAR8Ib.js";import"./types-Cgo3CFt9.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./tool-namespace-C59qlTVf.js";import"./utils-CVEq3hMx.js";import"./markdown-BdJYipZI.js";import"./sheet-IIyyroSY.js";import"./use-connection-VuRKL2Wi.js";import"./use-mcp-prompts-CCE8Fbv3.js";import"./use-thread-outputs-BZy8PRyS.js";import"./file-type-icon-BvWm1zTi.js";import"./section-array-field-BJlTuDJ0.js";import"./blocks-tab-states-Bk50Moxc.js";import"./use-voice-input-DGGVK_ws.js";import"./index-htBIzPBo.js";import"./select-CyUEqwIm.js";import"./index-BdQq_4o_.js";import"./index-Kdb8LYBY.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-CPXu2SjZ.js";import"./hosted-reconcile-BDgHjLi6.js";import"./slider-BepoHGY5.js";import"./index-CBDkPY2u.js";import"./tooltipContext-DkEG8PKQ.js";import"./CategoricalChart-DIMW48Er.js";import"./index-G9etLsCu.js";import"./scroll-area-DKlcsV7g.js";import"./monaco-editor-BDOHWgUD.js";import"./editor-DI-SD6st.js";import"./calendar-DKdblSlt.js";import"./core.esm-GtXGAknm.js";import"./sortable.esm-BrSOrmKx.js";import"./toggle-group-DM_BOhW0.js";import"./combobox-DQc1zHex.js";import"./search-input-Dp__IM9S.js";import"./use-file-configs-CXBJCroM.js";import"./asset-utils-Bod0b-nj.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-git-api-DcqI6XE4.js";import"./sandbox-url-D3mC8qhT.js";import"./product-picker-dialog-Ln-fortG.js";import"./index-DAw2iB-r.js";import"./index-DdsVIe4X.js";import"./view-header-BIzMLTHX.js";import"./use-cms-publish-actions-DPRkhh6_.js";import"./use-content-sync-CGHzShO7.js";import"./use-sandbox-events-BtH7E0uv.js";import"./sandbox-lifecycle-context-DDRNmIrA.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-CVmWlpJu.js";import"./empty-state-BzJZeJ1_.js";import"./collection-table-wrapper-C0bVVs5u.js";import"./table-CbTKxzQy.js";import"./agent-capabilities-Dnf4CKY_.js";import"./form-L-VC2P7Q.js";import"./use-blocks-v8-project-B0q_oYPf.js";const we=a=>typeof a=="string"?a:"",zs={"&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=zs[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 Rs(a){return tt(a).text.trim()}function $s(a){const e=[];for(const s of a)switch(is(we(s.__resolveType))){case"Paragraph":e.push(Rs(we(s.html)));break;case"Heading":e.push(we(s.text));break;case"Quote":e.push(we(s.quote));break;case"List":e.push(we(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],u=i[p+l.length-1];if(x&&u){const r=x.start,g=u.end,m=n.slice(r,g);if(!m.includes("<")&&!Us(n,r)){const f=n.slice(0,r)+`<a href="${qs(s)}">${m}</a>`+n.slice(g),b=a.slice();return b[o]={...d,html:f},{blocks:b,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=X(),i=lt(),[p,x]=Y.useState(!1),[u,r]=Y.useState(!1),[g,m]=Y.useState([]),[f,b]=Y.useState(new Set),_=Yt(e,o),E=ls(e).filter(j=>j.key!==l&&j.slug),T=async()=>{r(!0);try{const j=$s(s),k=await i.call("BLOG_SITE_GROUND",{virtualMcpId:a,purpose:"link"}).catch(S=>{console.warn("[linkSuggest] grounding failed",S)}),y=await i.call("BLOG_LINK_SUGGEST",{virtualMcpId:a,body:j,posts:E.map(S=>({title:S.title,slug:S.slug})),grounding:k?{report:k.report,outcome:k.outcome}:void 0}),h=[],P=new Set;for(const S of y.suggestions){const B=E.find(R=>R.slug===S.slug);if(!B||!_)continue;const N=Kt(_,{category:B.categorySlugs[0]??"",slug:B.slug});if(!N||!j.includes(S.quote))continue;const L=`${S.quote}→${B.slug}`;P.has(L)||(P.add(L),h.push({quote:S.quote,href:N,title:B.title}))}m(h),b(new Set(h.map((S,B)=>B))),x(!0),h.length===0&&Le.info(c("sandbox.linkSuggest.none"))}catch(j){Le.error(j instanceof Error?j.message:c("sandbox.linkSuggest.failed"))}finally{r(!1)}},w=j=>b(k=>{const y=new Set(k);return y.has(j)?y.delete(j):y.add(j),y}),D=()=>{const j=g.filter((h,P)=>f.has(P)).map(h=>({quote:h.quote,href:h.href})),{blocks:k,applied:y}=Hs(s,j);n(k),x(!1),Le.success(c("sandbox.linkSuggest.applied",{count:String(y)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:u||!d||E.length===0,title:d?E.length===0?c("sandbox.linkSuggest.noCandidates"):c("sandbox.linkSuggest.hint"):c("sandbox.autonomous.noAiProvider"),onClick:()=>{T()},children:[u?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")})]}),g.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:g.map((j,k)=>{const y=f.has(k);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>w(k),"aria-pressed":y,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:De("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",y?"border-primary bg-primary text-primary-foreground":"border-input"),children:y&&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(Te,{type:"button",disabled:f.size===0,onClick:D,children:c("sandbox.linkSuggest.apply",{count:String(f.size)})})})]})})]})}const Gs={unit:"pt",initial:12,min:6,max:96},Ws=["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],Ys=["[&_.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 Ks(a){const e=te.c(39),{editor:s}=a,l=X(),[o,d]=Y.useState(!1),[n,c]=Y.useState(null),[i,p]=Y.useState(null);let x;e[0]!==s?(x=N=>{s.chain().setImage({src:N}).run()},e[0]=s,e[1]=x):x=e[1];const u=x;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{c(null),p(null)},e[2]=r):r=e[2];const g=r;let m;e[3]!==u||e[4]!==l||e[5]!==n?(m=()=>{const N=(n??"").trim(),L=Ke(N);if(!L&&N){p(N.toLowerCase().startsWith("data:")?l("sandbox.postEditor.legacyImageDataUrl"):l("sectionsEditor.imageField.unsafeUrl"));return}L&&u(L),g()},e[3]=u,e[4]=l,e[5]=n,e[6]=m):m=e[6];const f=m;let b;e[7]!==l?(b=l("sandbox.postEditor.legacyInsertImage"),e[7]=l,e[8]=b):b=e[8];let _,E;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=()=>d(!0),E=t.jsx(Ls,{size:14}),e[9]=_,e[10]=E):(_=e[9],E=e[10]);let T;e[11]!==o||e[12]!==b?(T=t.jsx(Me,{active:o,label:b,onClick:_,children:E}),e[11]=o,e[12]=b,e[13]=T):T=e[13];const w=n!==null;let D;e[14]!==l?(D=l("sandbox.postEditor.legacyInsertImageUrl"),e[14]=l,e[15]=D):D=e[15];let j;e[16]!==f||e[17]!==n?(j=()=>n===null?c(""):f(),e[16]=f,e[17]=n,e[18]=j):j=e[18];let k;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ws,{size:14}),e[19]=k):k=e[19];let y;e[20]!==j||e[21]!==w||e[22]!==D?(y=t.jsx(Me,{active:w,label:D,onClick:j,children:k}),e[20]=j,e[21]=w,e[22]=D,e[23]=y):y=e[23];let h;e[24]!==f||e[25]!==l||e[26]!==n||e[27]!==i?(h=n!==null&&t.jsx(Jt,{draft:n,notice:i,label:l("sandbox.postEditor.legacyInsertImageUrl"),placeholder:l("sectionsEditor.imageField.urlPlaceholder"),onDraftChange:N=>{p(null),c(N)},onCommit:f,onCancel:g}),e[24]=f,e[25]=l,e[26]=n,e[27]=i,e[28]=h):h=e[28];let P;e[29]!==u?(P=N=>{const L=Ke(N);L&&u(L)},e[29]=u,e[30]=P):P=e[30];let S;e[31]!==o||e[32]!==P?(S=t.jsx($t,{open:o,onOpenChange:d,mode:"image",onSelect:P}),e[31]=o,e[32]=P,e[33]=S):S=e[33];let B;return e[34]!==y||e[35]!==h||e[36]!==S||e[37]!==T?(B=t.jsxs("div",{className:"flex items-center gap-0.5",children:[T,y,h,S]}),e[34]=y,e[35]=h,e[36]=S,e[37]=T,e[38]=B):B=e[38],B}function Zs(a){const e=te.c(21),{editor:s}=a,l=X(),[o,d]=Y.useState(!1);let n;e[0]!==s?(n={editor:s,selector:Js},e[0]=s,e[1]=n):n=e[1];const c=As(n);let i;e[2]!==s||e[3]!==o||e[4]!==c.highlight?(i=t.jsx(Rt,{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 u;e[8]!==s?(u=()=>s.chain().focus().toggleCodeBlock().run(),e[8]=s,e[9]=u):u=e[9];let r;e[10]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Pt,{size:14}),e[10]=r):r=e[10];let g;e[11]!==c.codeBlock||e[12]!==x||e[13]!==u?(g=t.jsx(Me,{active:p,label:x,onClick:u,children:r}),e[11]=c.codeBlock,e[12]=x,e[13]=u,e[14]=g):g=e[14];let m;e[15]!==s?(m=t.jsx(Ks,{editor:s}),e[15]=s,e[16]=m):m=e[16];let f;return e[17]!==i||e[18]!==g||e[19]!==m?(f=t.jsxs(t.Fragment,{children:[i,g,m]}),e[17]=i,e[18]=g,e[19]=m,e[20]=f):f=e[20],f}function Js(a){const{editor:e}=a;return{highlight:e.isActive("highlight")?e.getAttributes("highlight").color??null:null,codeBlock:e.isActive("codeBlock")}}function Qs({value:a,onChange:e,decofile:s,sandboxRef:l}){const o=X(),d=Y.useRef(e);d.current=e;const n=Ds({extensions:[...ns(),Fs.configure({placeholder:o("sandbox.postEditor.legacyContentPlaceholder")})],content:a,editorProps:{attributes:{class:De(Ws)}},onUpdate:({editor:i})=>{d.current(as(i.getHTML()))}}),c=Zt({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(zt,{editor:n,fontSize:Gs,linkSources:c,extras:t.jsx(Zs,{editor:n})}),t.jsx(Bs,{editor:n,className:De("max-h-[70vh] overflow-y-auto",Ys)})]}):null}function Xs(a){return Array.isArray(a)?a.map(e=>({key:O(e?.key),value:O(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:u}){const r=X(),g=kt()?.taskId??null,m=Ye({orgSlug:a,virtualMcpId:e,branch:s},{holdsCopy:!0}),f=Ps({orgSlug:a,virtualMcpId:e,branch:s}),b=Os(e,s),_=b.kind==="protocol"&&b.source==="github",E=Ut({orgSlug:a,virtualMcpId:e,branch:s}),T=Cs().length>0,w=rs(),D=cs(e),j=Ns({orgSlug:a,virtualMcpId:e,branch:s}),k=ds(o,"posts"),y=v=>{const J=m.shown(v);return J?{[v]:J}:{}},[h,P,S,B]=Ts(k,v=>{m.mutate({blockKey:l,data:ms(l,ps(v))})},{isSaving:m.isPending,onSeed:()=>m.hold(l)}),[N,L]=Y.useState(l);N!==l&&(L(l),S(k));const R=v=>{S(h),i.apply(l,v,h,()=>y(l))},I=(v,J)=>P({...h,[v]:J}),M=ts("posts",n,os),$=Ye({orgSlug:a,virtualMcpId:e,branch:s}),U=Mt(v=>(m.v8?$:m).mutate(v),d,m.v8),[K,H]=Y.useState(0),z=Qt({decofile:d,post:h,previewBaseUrl:c,draftPointer:j,meta:n}),V=us(d,"posts",l,O(h.title)),G=fs(h),[Q,q]=Y.useState(!1),W=async()=>{S(h);try{const v=await f.mutateAsync({blockKey:l,shown:()=>m.shown(l)});if(q(!1),Vt(v))return;Le.success(r("sandbox.postEditor.deletePostSuccess",{title:O(h.title)})),p?.()}catch(v){Le.error(v instanceof Error?v.message:r("sandbox.postEditor.deletePostFailed"))}},A=xs(h),Z=A.length>0,F=A.length===1?r("sandbox.postEditor.missingFieldSingular",{fields:Ze(A,r)}):r("sandbox.postEditor.missingFieldPlural",{fields:Ze(A,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(Ht,{isPending:m.isPending||m.v8&&$.isPending||B,isError:m.isError||m.v8&&$.isError}),Z&&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(Ie,{size:14}),A.length," ",A.length===1?r("sandbox.postEditor.issueSingular"):r("sandbox.postEditor.issuePlural")]})}),t.jsx(Ue,{side:"bottom",children:F})]})]}),(u||p)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[u&&t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:u,title:r(x?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:x?t.jsx(Nt,{size:16}):t.jsx(Tt,{size:16})}),p&&t.jsx(Te,{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(hs,{value:O(h.title),onChange:v=>I("title",v),placeholder:r("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),V&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Ie,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(Ft,{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(Ge,{value:"content",children:[t.jsx(wt,{}),r("sandbox.postEditor.contentTab")]}),t.jsxs(Ge,{value:"settings",children:[t.jsx(Lt,{}),r("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[G&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx(Te,{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")})]}),w&&!D&&t.jsx(Vs,{decofile:d,virtualMcpId:e,sections:Fe(h.sections),currentKey:l,meta:n,hasAi:T,onApply:v=>{I("sections",v),H(J=>J+1)}}),t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:!z,title:r(z?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{z&&window.open(z,"_blank","noopener,noreferrer")},children:[t.jsx(ut,{size:14}),r("sandbox.postEditor.seePreview")]})]})]}),t.jsx(We,{value:"content",children:D?t.jsxs("div",{className:"space-y-3",children:[Fe(h.sections).length>0&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Ie,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.legacySectionsNotice",{count:Fe(h.sections).length})]}),t.jsx(Qs,{value:O(h.content),onChange:v=>I("content",v),decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:g}})]}):t.jsx("div",{className:"surface p-8",children:t.jsx(Xt,{value:Fe(h.sections),onChange:v=>I("sections",v),meta:n,decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:g},previewBaseUrl:c,onSaveReferencedBlock:U,emptyMessage:r("sandbox.postEditor.noContentYet")},K)})}),t.jsx(We,{value:"settings",children:t.jsxs("div",{className:"surface p-6",children:[t.jsx(so,{post:h,decofile:d,onChange:I,blockKey:l,move:i,onMoveStatus:R}),t.jsx(ss,{schema:M,value:h,onChange:P,basePath:"post",meta:n,decofile:d,sandbox:{orgSlug:a,virtualMcpId:e,branch:s,threadId:g},onSaveReferencedBlock:U})]})})]})]})}),t.jsx(ft,{open:Q,onOpenChange:v=>{!v&&!f.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(gs("post",_,{neverPublished:E(l)}),{title:O(h.title)||r("sandbox.postBoard.untitled")})})]}),t.jsxs(jt,{children:[t.jsx(vt,{disabled:f.isPending,children:r("sandbox.postEditor.deletePostCancel")}),t.jsx(yt,{onClick:v=>{v.preventDefault(),W()},disabled:f.isPending,className:De(_t({variant:"destructive"})),children:f.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=te.c(15),{blockKey:s,post:l,move:o,onMoveStatus:d}=a,n=X();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 r;e[10]!==i?(r=m=>m!=="generating"||i==="generating",e[10]=i,e[11]=r):r=e[11];const g=ks.filter(r);p="flex flex-wrap gap-1.5",x=g.map(m=>{const f=m===i,b=f?null:o.refuse(s,m,l);return t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!b,"aria-pressed":f,onClick:()=>d(m),className:De("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",f?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-accent",b&&"cursor-not-allowed opacity-50"),children:n(Es[m])})})}),b&&t.jsx(Ue,{side:"bottom",children:o.reasonText(b)})]},m)}),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 u;return e[12]!==p||e[13]!==x?(u=t.jsx("div",{className:p,children:x}),e[12]=p,e[13]=x,e[14]=u):u=e[14],u}function so(a){const e=te.c(166),{post:s,decofile:l,onChange:o,blockKey:d,move:n,onMoveStatus:c}=a,i=X();let p;e[0]!==s?(p=Xe(s),e[0]=s,e[1]=p):p=e[1];const u=p==="scheduled";let r;e[2]!==s.slug?(r=O(s.slug),e[2]=s.slug,e[3]=r):r=e[3];const g=r,[m,f]=Y.useState(g),[b,_]=Y.useState(null),[E,T]=Y.useState(g);E!==g&&(T(g),f(g));let w;e[4]!==d||e[5]!==g||e[6]!==l||e[7]!==o||e[8]!==m||e[9]!==i?(w=()=>{const C=vs(m);if(f(C),C===g)return;if(!C){_(null),o("slug","");return}const He=et(l,"posts").filter(it=>it.key!==d).map(lo).filter(Boolean);if(!He.includes(C)){_(null),o("slug",C);return}const ze=ys(C,He),Ve=i("sandbox.postEditor.slugDeduped",{slug:ze});f(ze),_(Ve),Le.info(Ve),o("slug",ze)},e[4]=d,e[5]=g,e[6]=l,e[7]=o,e[8]=m,e[9]=i,e[10]=w):w=e[10];const D=w;let j;e[11]!==i?(j=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=j):j=e[12];let k;e[13]!==j?(k=t.jsx(ee,{children:j}),e[13]=j,e[14]=k):k=e[14];let y;e[15]!==d||e[16]!==n||e[17]!==c||e[18]!==s?(y=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]=y):y=e[19];let h;e[20]!==k||e[21]!==y?(h=t.jsxs("div",{className:"space-y-2",children:[k,y]}),e[20]=k,e[21]=y,e[22]=h):h=e[22];let P;e[23]!==u||e[24]!==o||e[25]!==s.scheduledDatetime||e[26]!==i?(P=u&&t.jsx(Re,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:O(s.scheduledDatetime),onChange:C=>o("scheduledDatetime",C),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=u,e[24]=o,e[25]=s.scheduledDatetime,e[26]=i,e[27]=P):P=e[27];let S;e[28]!==h||e[29]!==P?(S=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[h,P]}),e[28]=h,e[29]=P,e[30]=S):S=e[30];let B;e[31]!==i?(B=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=B):B=e[32];let N;e[33]!==B?(N=t.jsx(ee,{htmlFor:"post-excerpt",children:B}),e[33]=B,e[34]=N):N=e[34];let L;e[35]!==s.excerpt?(L=O(s.excerpt),e[35]=s.excerpt,e[36]=L):L=e[36];let R;e[37]!==o?(R=C=>o("excerpt",C.target.value),e[37]=o,e[38]=R):R=e[38];let I;e[39]!==L||e[40]!==R?(I=t.jsx(Qe,{id:"post-excerpt",value:L,onChange:R,rows:2}),e[39]=L,e[40]=R,e[41]=I):I=e[41];let M;e[42]!==N||e[43]!==I?(M=t.jsxs("div",{className:"space-y-2",children:[N,I]}),e[42]=N,e[43]=I,e[44]=M):M=e[44];let $;e[45]!==i?($=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=$):$=e[46];let U;e[47]!==$?(U=t.jsx(ee,{htmlFor:"post-slug",children:$}),e[47]=$,e[48]=U):U=e[48];let K;e[49]===Symbol.for("react.memo_cache_sentinel")?(K=C=>{_(null),f(Ss(C.target.value))},e[49]=K):K=e[49];let H;e[50]!==i?(H=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=H):H=e[51];let z;e[52]!==D||e[53]!==m||e[54]!==H?(z=t.jsx(Be,{id:"post-slug",value:m,onChange:K,onBlur:D,placeholder:H,maxLength:80,className:"h-10"}),e[52]=D,e[53]=m,e[54]=H,e[55]=z):z=e[55];let V;e[56]!==b?(V=b&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Ie,{size:14,className:"mt-px shrink-0"}),b]}),e[56]=b,e[57]=V):V=e[57];let G;e[58]!==U||e[59]!==z||e[60]!==V?(G=t.jsxs("div",{className:"space-y-2",children:[U,z,V]}),e[58]=U,e[59]=z,e[60]=V,e[61]=G):G=e[61];let Q;e[62]!==i?(Q=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=Q):Q=e[63];let q;e[64]!==Q?(q={type:"string",format:"date",title:Q},e[64]=Q,e[65]=q):q=e[65];let W;e[66]!==s.date?(W=O(s.date),e[66]=s.date,e[67]=W):W=e[67];let A;e[68]!==o?(A=C=>o("date",C),e[68]=o,e[69]=A):A=e[69];let Z;e[70]!==i?(Z=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=Z):Z=e[71];let F;e[72]!==q||e[73]!==W||e[74]!==A||e[75]!==Z?(F=t.jsx(Re,{schema:q,value:W,onChange:A,path:"post-date",label:Z}),e[72]=q,e[73]=W,e[74]=A,e[75]=Z,e[76]=F):F=e[76];let v;e[77]!==i?(v=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=v):v=e[78];let J;e[79]!==v?(J={type:"integer",title:v},e[79]=v,e[80]=J):J=e[80];const Oe=typeof s.readTime=="number"?s.readTime:void 0;let se;e[81]!==o?(se=C=>o("readTime",C),e[81]=o,e[82]=se):se=e[82];let oe;e[83]!==i?(oe=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=oe):oe=e[84];let ie;e[85]!==J||e[86]!==Oe||e[87]!==se||e[88]!==oe?(ie=t.jsx(Gt,{schema:J,value:Oe,onChange:se,path:"post-read-time",label:oe}),e[85]=J,e[86]=Oe,e[87]=se,e[88]=oe,e[89]=ie):ie=e[89];let le;e[90]!==G||e[91]!==F||e[92]!==ie?(le=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[G,F,ie]}),e[90]=G,e[91]=F,e[92]=ie,e[93]=le):le=e[93];const st=s.image,ot=s.mobileImage;let ae,ne;e[94]!==o?(ae=C=>o("image",C),ne=C=>o("mobileImage",C),e[94]=o,e[95]=ae,e[96]=ne):(ae=e[95],ne=e[96]);let re;e[97]!==s.alt?(re=O(s.alt),e[97]=s.alt,e[98]=re):re=e[98];let ce;e[99]!==i?(ce=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=ce):ce=e[100];let de;e[101]!==s.image||e[102]!==s.mobileImage||e[103]!==ae||e[104]!==ne||e[105]!==re||e[106]!==ce?(de=t.jsx(es,{value:st,mobileValue:ot,onChange:ae,onMobileChange:ne,alt:re,label:ce}),e[101]=s.image,e[102]=s.mobileImage,e[103]=ae,e[104]=ne,e[105]=re,e[106]=ce,e[107]=de):de=e[107];let me;e[108]!==i?(me=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=me):me=e[109];let pe;e[110]!==i?(pe=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=pe):pe=e[111];let ue;e[112]!==me||e[113]!==pe?(ue={type:"string",title:me,description:pe},e[112]=me,e[113]=pe,e[114]=ue):ue=e[114];let fe;e[115]!==s.alt?(fe=O(s.alt),e[115]=s.alt,e[116]=fe):fe=e[116];let xe;e[117]!==o?(xe=C=>o("alt",C),e[117]=o,e[118]=xe):xe=e[118];let he;e[119]!==i?(he=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=he):he=e[120];let ge;e[121]!==ue||e[122]!==fe||e[123]!==xe||e[124]!==he?(ge=t.jsx(Re,{schema:ue,value:fe,onChange:xe,path:"post-alt",label:he}),e[121]=ue,e[122]=fe,e[123]=xe,e[124]=he,e[125]=ge):ge=e[125];let be;e[126]!==de||e[127]!==ge?(be=t.jsxs("div",{className:"space-y-2",children:[de,ge]}),e[126]=de,e[127]=ge,e[128]=be):be=e[128];let je;e[129]!==i?(je=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=je):je=e[130];let ve;e[131]!==o?(ve=C=>o("authors",C),e[131]=o,e[132]=ve):ve=e[132];let ye;e[133]!==l||e[134]!==s.authors||e[135]!==je||e[136]!==ve?(ye=t.jsx(Je,{label:je,decofile:l,kind:"authors",valueField:"email",toRef:io,selected:s.authors,onChange:ve}),e[133]=l,e[134]=s.authors,e[135]=je,e[136]=ve,e[137]=ye):ye=e[137];let Se;e[138]!==i?(Se=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=Se):Se=e[139];let _e;e[140]!==o?(_e=C=>o("categories",C),e[140]=o,e[141]=_e):_e=e[141];let ke;e[142]!==l||e[143]!==s.categories||e[144]!==Se||e[145]!==_e?(ke=t.jsx(Je,{label:Se,decofile:l,kind:"categories",valueField:"slug",toRef:oo,selected:s.categories,onChange:_e}),e[142]=l,e[143]=s.categories,e[144]=Se,e[145]=_e,e[146]=ke):ke=e[146];let Ee;e[147]!==o?(Ee=C=>o("extraProps",C),e[147]=o,e[148]=Ee):Ee=e[148];let Ce;e[149]!==s.extraProps||e[150]!==Ee?(Ce=t.jsx(no,{value:s.extraProps,onChange:Ee}),e[149]=s.extraProps,e[150]=Ee,e[151]=Ce):Ce=e[151];let Pe;e[152]!==o?(Pe=C=>o("seo",C),e[152]=o,e[153]=Pe):Pe=e[153];let Ne;e[154]!==s.seo||e[155]!==Pe?(Ne=t.jsx(ao,{value:s.seo,onChange:Pe}),e[154]=s.seo,e[155]=Pe,e[156]=Ne):Ne=e[156];let Ae;return e[157]!==M||e[158]!==le||e[159]!==be||e[160]!==ye||e[161]!==ke||e[162]!==Ce||e[163]!==Ne||e[164]!==S?(Ae=t.jsxs("div",{className:"space-y-5",children:[S,M,le,be,ye,ke,Ce,Ne]}),e[157]=M,e[158]=le,e[159]=be,e[160]=ye,e[161]=ke,e[162]=Ce,e[163]=Ne,e[164]=S,e[165]=Ae):Ae=e[165],Ae}function oo(a){return{name:O(a.name),slug:O(a.slug)}}function io(a){return{...a}}function lo(a){return O(a.payload.slug)}function ao(a){const e=te.c(93),{value:s,onChange:l}=a,o=X();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,v)=>l({...n,[F]:v}),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 u;e[9]!==o?(u=o("sandbox.postEditor.seoSectionHint"),e[9]=o,e[10]=u):u=e[10];let r;e[11]!==u?(r=t.jsx("p",{className:"text-xs text-muted-foreground",children:u}),e[11]=u,e[12]=r):r=e[12];let g;e[13]!==x||e[14]!==r?(g=t.jsxs("div",{className:"space-y-1",children:[x,r]}),e[13]=x,e[14]=r,e[15]=g):g=e[15];let m;e[16]!==o?(m=o("sandbox.postEditor.seoTitleLabel"),e[16]=o,e[17]=m):m=e[17];let f;e[18]!==m?(f=t.jsx(ee,{htmlFor:"post-seo-title",children:m}),e[18]=m,e[19]=f):f=e[19];let b;e[20]!==n.title?(b=O(n.title),e[20]=n.title,e[21]=b):b=e[21];let _;e[22]!==i?(_=F=>i("title",F.target.value),e[22]=i,e[23]=_):_=e[23];let E;e[24]!==b||e[25]!==_?(E=t.jsx(Be,{id:"post-seo-title",value:b,onChange:_,className:"h-10"}),e[24]=b,e[25]=_,e[26]=E):E=e[26];let T;e[27]!==E||e[28]!==f?(T=t.jsxs("div",{className:"space-y-2",children:[f,E]}),e[27]=E,e[28]=f,e[29]=T):T=e[29];let w;e[30]!==o?(w=o("sandbox.postEditor.seoDescriptionLabel"),e[30]=o,e[31]=w):w=e[31];let D;e[32]!==w?(D=t.jsx(ee,{htmlFor:"post-seo-description",children:w}),e[32]=w,e[33]=D):D=e[33];let j;e[34]!==n.description?(j=O(n.description),e[34]=n.description,e[35]=j):j=e[35];let k;e[36]!==i?(k=F=>i("description",F.target.value),e[36]=i,e[37]=k):k=e[37];let y;e[38]!==j||e[39]!==k?(y=t.jsx(Qe,{id:"post-seo-description",value:j,onChange:k,rows:2}),e[38]=j,e[39]=k,e[40]=y):y=e[40];let h;e[41]!==D||e[42]!==y?(h=t.jsxs("div",{className:"space-y-2",children:[D,y]}),e[41]=D,e[42]=y,e[43]=h):h=e[43];let P;e[44]!==o?(P=o("sandbox.postEditor.seoImageLabel"),e[44]=o,e[45]=P):P=e[45];let S;e[46]!==P?(S={type:"string",format:"image-uri",title:P},e[46]=P,e[47]=S):S=e[47];const B=n.image;let N;e[48]!==i?(N=F=>i("image",F),e[48]=i,e[49]=N):N=e[49];let L;e[50]!==o?(L=o("sandbox.postEditor.seoImageLabel"),e[50]=o,e[51]=L):L=e[51];let R;e[52]!==n.image||e[53]!==S||e[54]!==N||e[55]!==L?(R=t.jsx(Wt,{schema:S,value:B,onChange:N,path:"post-seo-image",label:L}),e[52]=n.image,e[53]=S,e[54]=N,e[55]=L,e[56]=R):R=e[56];let I;e[57]!==o?(I=o("sandbox.postEditor.seoCanonicalLabel"),e[57]=o,e[58]=I):I=e[58];let M;e[59]!==I?(M=t.jsx(ee,{htmlFor:"post-seo-canonical",children:I}),e[59]=I,e[60]=M):M=e[60];let $;e[61]!==n.canonical?($=O(n.canonical),e[61]=n.canonical,e[62]=$):$=e[62];let U;e[63]!==i?(U=F=>i("canonical",F.target.value),e[63]=i,e[64]=U):U=e[64];let K;e[65]!==o?(K=o("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=o,e[66]=K):K=e[66];let H;e[67]!==$||e[68]!==U||e[69]!==K?(H=t.jsx(Be,{id:"post-seo-canonical",value:$,onChange:U,placeholder:K,className:"h-10"}),e[67]=$,e[68]=U,e[69]=K,e[70]=H):H=e[70];let z;e[71]!==M||e[72]!==H?(z=t.jsxs("div",{className:"space-y-2",children:[M,H]}),e[71]=M,e[72]=H,e[73]=z):z=e[73];let V;e[74]!==o?(V=o("sandbox.postEditor.seoNoIndexingLabel"),e[74]=o,e[75]=V):V=e[75];let G;e[76]!==V?(G=t.jsx(ee,{htmlFor:"post-seo-no-indexing",children:V}),e[76]=V,e[77]=G):G=e[77];const Q=n.noIndexing===!0;let q;e[78]!==i?(q=F=>i("noIndexing",F),e[78]=i,e[79]=q):q=e[79];let W;e[80]!==Q||e[81]!==q?(W=t.jsx(Ot,{id:"post-seo-no-indexing",checked:Q,onCheckedChange:q}),e[80]=Q,e[81]=q,e[82]=W):W=e[82];let A;e[83]!==G||e[84]!==W?(A=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[G,W]}),e[83]=G,e[84]=W,e[85]=A):A=e[85];let Z;return e[86]!==T||e[87]!==h||e[88]!==R||e[89]!==z||e[90]!==A||e[91]!==g?(Z=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[g,T,h,R,z,A]}),e[86]=T,e[87]=h,e[88]=R,e[89]=z,e[90]=A,e[91]=g,e[92]=Z):Z=e[92],Z}function no(a){const e=te.c(24),{value:s,onChange:l}=a,o=X();let d,n,c,i;if(e[0]!==l||e[1]!==o||e[2]!==s){d=Xs(s);const g=(f,b)=>l(d.map((_,E)=>E===f?{..._,...b}:_));n="space-y-2";let m;e[7]!==o?(m=o("sandbox.postEditor.extraPropsLabel"),e[7]=o,e[8]=m):m=e[8],e[9]!==m?(c=t.jsx(ee,{children:m}),e[9]=m,e[10]=c):c=e[10],i=d.length>0&&t.jsx("ul",{className:"space-y-2",children:d.map((f,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(Be,{value:f.key,onChange:_=>g(b,{key:_.target.value}),placeholder:o("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(Be,{value:f.value,onChange:_=>g(b,{value:_.target.value}),placeholder:o("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(js,{label:o("sandbox.postEditor.removePropLabel"),onClick:()=>l(d.filter((_,E)=>E!==b))})]},b))}),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 u;e[16]!==p||e[17]!==x?(u=t.jsx(_s,{label:p,onClick:x}),e[16]=p,e[17]=x,e[18]=u):u=e[18];let r;return e[19]!==n||e[20]!==c||e[21]!==i||e[22]!==u?(r=t.jsxs("div",{className:n,children:[c,i,u]}),e[19]=n,e[20]=c,e[21]=i,e[22]=u,e[23]=r):r=e[23],r}function Je(a){const e=te.c(24),{label:s,decofile:l,kind:o,valueField:d,toRef:n,selected:c,onChange:i}=a,p=X();let x;e[0]!==l||e[1]!==o||e[2]!==c||e[3]!==n||e[4]!==d?(x=bs({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:u,selectedValues:r,refsForValues:g}=x;let m;e[6]!==o||e[7]!==p?(m=p(o==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=o,e[7]=p,e[8]=m):m=e[8];const f=m;let b;e[9]!==o||e[10]!==p?(b=p(o==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=o,e[10]=p,e[11]=b):b=e[11];const _=b;let E;e[12]!==s?(E=t.jsx(ee,{children:s}),e[12]=s,e[13]=E):E=e[13];let T;e[14]!==f||e[15]!==i||e[16]!==u||e[17]!==g||e[18]!==_||e[19]!==r?(T=u.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:f}):t.jsx(At,{options:u,defaultValue:r,onValueChange:D=>i(g(D)),placeholder:_,maxCount:4}),e[14]=f,e[15]=i,e[16]=u,e[17]=g,e[18]=_,e[19]=r,e[20]=T):T=e[20];let w;return e[21]!==E||e[22]!==T?(w=t.jsxs("div",{className:"space-y-2",children:[E,T]}),e[21]=E,e[22]=T,e[23]=w):w=e[23],w}function Kl(a){const e=te.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(qt,{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{Kl as PostEditor};
@@ -1 +1 @@
1
- import{c as O,b as D,d as ne,f as re,ae as oe,j as t,B as G,a7 as ce,n as de,x as W,m as X}from"./index-CpKrWBFM.js";import{I as ae}from"./icon-button-cmhhff3C.js";import{c as Y,T as Z,a as ee}from"./tooltip-BN1ul0v0.js";import{m as fe,aV as me,as as xe,O as he}from"./agent-icon-De2MEsoK.js";import{s as pe}from"./XClose-Ba9vOcHg.js";import{F as te,t as K,H as ue}from"./file-share-button-CvkBxFom.js";import{f as je,F as be,a as ge}from"./file-preview-DMLj4MCU.js";import{F as se}from"./file-type-icon-g9-x3_cf.js";import{c as ve,a as we,e as ye}from"./use-org-fs-noLXcqcI.js";import{Q as Pe,J as Ce}from"./chat-context-CkHIxm7-.js";function Ne(j){const e=O.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(G,{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=O.c(12),{expanded:l,onToggle:m,placement:r}=j,p=D();let s;e[0]!==r?(s=K(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=O.c(9),{onClose:l,placement:m}=j,r=m===void 0?"bar":m,p=D();let s;e[0]!==r?(s=K(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 Ee(j){const e=O.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=K(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",V=f.effectivePublic??!1,q=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==Q||e[35]!==V||e[36]!==q||e[37]!==J?(S=t.jsx(te,{volume:J,path:x,shareMode:Q,effectivePublic:V,url:q,placement:i}),e[32]=x,e[33]=i,e[34]=Q,e[35]=V,e[36]=q,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 E;return e[57]!==L||e[58]!==g?(E=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=E):E=e[59],E}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==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(G,{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(G,{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 _;return e[89]!==F||e[90]!==k?(_=t.jsxs(t.Fragment,{children:[F,k]}),e[89]=F,e[90]=k,e[91]=_):_=e[91],_}export{Ee as L};
1
+ import{c as O,b as D,d as ne,f as re,ae as oe,j as t,B as K,a7 as ce,n as de,x as W,m as X}from"./index-C5rKbfQX.js";import{I as ae}from"./icon-button-B0NgHaBw.js";import{c as Y,T as Z,a as ee}from"./tooltip-DfoRFUTt.js";import{m as fe,aP as me,at as xe,O as he}from"./agent-icon-CIk0WHPf.js";import{s as pe}from"./XClose-D8nV11Fp.js";import{F as te,t as V,H as ue}from"./file-share-button-DM_8wEfN.js";import{f as je,F as be,a as ge}from"./file-preview-D5yUv2iw.js";import{F as se}from"./file-type-icon-BvWm1zTi.js";import{c as ve,a as we,e as ye}from"./use-org-fs-BR5xSOAD.js";import{Q as Pe,M as Ce}from"./chat-context-CgzRmLj9.js";function Ne(j){const e=O.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(K,{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=O.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=O.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 Ee(j){const e=O.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,Q=u??"",q=f.shareMode??"private",G=f.effectivePublic??!1,J=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==q||e[35]!==G||e[36]!==J||e[37]!==Q?(S=t.jsx(te,{volume:Q,path:x,shareMode:q,effectivePublic:G,url:J,placement:i}),e[32]=x,e[33]=i,e[34]=q,e[35]=G,e[36]=J,e[37]=Q,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==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 E;return e[57]!==L||e[58]!==g?(E=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=E):E=e[59],E}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==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(K,{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(K,{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 M;e[74]!==C||e[75]!==N?(M=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=M):M=e[76];const $=M;let F;e[77]!==$||e[78]!==n||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(F=i==="topbar"?t.jsx(de.Actions,{children:$}):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)})]}),$]}),e[77]=$,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 _;return e[89]!==F||e[90]!==k?(_=t.jsxs(t.Fragment,{children:[F,k]}),e[89]=F,e[90]=k,e[91]=_):_=e[91],_}export{Ee as L};
@@ -1 +1 @@
1
- import{c as p,j as l,v as x,D as f}from"./index-CpKrWBFM.js";import{L as h}from"./preview-content-W28O7oBF.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-C5rKbfQX.js";import{L as h}from"./preview-content-BhYb-Vka.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-CpKrWBFM.js";import{L as x}from"./preview-content-W28O7oBF.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-C5rKbfQX.js";import{L as x}from"./preview-content-BhYb-Vka.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};