decocms 4.619.3 → 4.619.4

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 (432) hide show
  1. package/dist/client/assets/{AlertCircle-DGhmQiH3.js → AlertCircle-BlMH0XE7.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DKWsvY6W.js → AreaChart-CFi6-0Iq.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-FP_83xMo.js → ArrowLeft-B0PZnf1E.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-c12L_DBI.js → ArrowRight-mzMrxxYI.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-B0lRrz50.js → ArrowUp-D5DDc3Cp.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-CGmiFh6c.js → BookOpen01-DU-B3R7s.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-DwY6QAby.js → CartesianChart-fywgd4bq.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-CvWzaQub.js → CategoricalChart-wSsXuALZ.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-DQx8J3sX.js → CheckCircle-DZ8MNpCP.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-C2op7Ztq.js → ChevronDown-XsLJSrfl.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-B8fgmPce.js → ChevronSelectorVertical-CB0fn1Nq.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-C6GRdhwz.js → ChevronUp-BQktpZWC.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-BrYzNGv7.js → CreditCard01-MY4ouqtl.js} +1 -1
  14. package/dist/client/assets/{Eye-D1n0U2nr.js → Eye-kjjhS0vP.js} +1 -1
  15. package/dist/client/assets/{File02-lnmDsOIM.js → File02-DaYek2y9.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-DWY8-Yis.js → Fingerprint04-B2fDIuT8.js} +1 -1
  17. package/dist/client/assets/{Globe04-i-SMP1da.js → Globe04-CeAQ1YNm.js} +1 -1
  18. package/dist/client/assets/{Image01-D0d8t9Nf.js → Image01-BcIZ5mtf.js} +1 -1
  19. package/dist/client/assets/{Key01-BNFXrDTG.js → Key01-CaJGjh13.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-CzGwliNd.js → LayoutLeft-DDtN-od-.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-C-ZJkx1-.js → LinkBroken01-DfUhihLM.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-CmMj6zOJ.js → MessageCircle01-BG1RhOiZ.js} +1 -1
  23. package/dist/client/assets/{Minus-C12vvCq7.js → Minus-hZzPDO0w.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DRn7cBTS.js → Monitor01-DMFbvudn.js} +1 -1
  25. package/dist/client/assets/{Play-LuTO-O0l.js → Play-BCFOaioW.js} +1 -1
  26. package/dist/client/assets/{Plus-lVBJlI-r.js → Plus-DWySsEmB.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-1BlSF-eI.js → ReferenceLine-CCZuWAGw.js} +1 -1
  28. package/dist/client/assets/{SearchMd-DlyifTmg.js → SearchMd-BD2qldmS.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-Cqxv0G3l.js → ShoppingBag01-BbjW7cod.js} +1 -1
  30. package/dist/client/assets/{Sun-CHBjoRg5.js → Sun-O9TdKcV_.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-B9k8zywr.js → SwitchHorizontal01-CMdpIiQk.js} +1 -1
  32. package/dist/client/assets/{Tool01-BCxvp4xD.js → Tool01-BCJ5kyrz.js} +1 -1
  33. package/dist/client/assets/{Tooltip-vc07534F.js → Tooltip-B-bKlk4E.js} +1 -1
  34. package/dist/client/assets/{Trash01-Tyi0X0KA.js → Trash01-BxBhF2b8.js} +1 -1
  35. package/dist/client/assets/{Upload01-BE_2AiDk.js → Upload01-q-rKSvZf.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-BzJrArBA.js → UserCheck01-k-4bTA2h.js} +1 -1
  37. package/dist/client/assets/{UserSquare-Csaj5_OE.js → UserSquare-CafFh5_d.js} +1 -1
  38. package/dist/client/assets/{Users01-B0nNOy2m.js → Users01-DM58_gUL.js} +1 -1
  39. package/dist/client/assets/{XClose-BCBhmnTq.js → XClose-CmTuu4UN.js} +1 -1
  40. package/dist/client/assets/{Zap-DyZkYnvp.js → Zap-CBJ7My90.js} +1 -1
  41. package/dist/client/assets/{access-gate-CAG-WX8M.js → access-gate-ZixeoVbg.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-B3Q9C4ta.js → add-connection-dialog-CS6ZsWUV.js} +1 -1
  43. package/dist/client/assets/agent-app-BjFocMRF.js +1 -0
  44. package/dist/client/assets/{agent-assets-a3MaKVet.js → agent-assets-N3MVvFNQ.js} +1 -1
  45. package/dist/client/assets/{agent-automation-D6Kp8N6n.js → agent-automation-YRM59WCJ.js} +1 -1
  46. package/dist/client/assets/{agent-automations-uOc0h2-3.js → agent-automations-B6GbQ2NX.js} +1 -1
  47. package/dist/client/assets/{agent-blog-Q0x5W9bL.js → agent-blog-BZL3iqos.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-GPtAup4R.js → agent-blog-post-SleYRKhO.js} +2 -2
  49. package/dist/client/assets/{agent-business-case-BVl0QdPX.js → agent-business-case-D7hulp28.js} +1 -1
  50. package/dist/client/assets/{agent-calendar-BgUHNM1x.js → agent-calendar-C2aYQk1W.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-CwQVSwUn.js → agent-capabilities-CyWfHGWp.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-DFSqT3hY.js → agent-connect-sources-B3DsSlYx.js} +1 -1
  53. package/dist/client/assets/agent-deck-Bo3utH19.js +1 -0
  54. package/dist/client/assets/{agent-e2e-C6bQi5ly.js → agent-e2e-CL5z3KLl.js} +1 -1
  55. package/dist/client/assets/agent-experiments-DmxiioQQ.js +1 -0
  56. package/dist/client/assets/agent-file-DP9sslio.js +1 -0
  57. package/dist/client/assets/{agent-hosting-CitTgqFF.js → agent-hosting-o-mcw7Mt.js} +1 -1
  58. package/dist/client/assets/{agent-icon-BeQK1LIp.js → agent-icon-BYWtutu9.js} +1 -1
  59. package/dist/client/assets/agent-library-BXulc_Yl.js +1 -0
  60. package/dist/client/assets/agent-library-file-VKoA-2Ab.js +1 -0
  61. package/dist/client/assets/agent-overview-C34bZy3e.js +1 -0
  62. package/dist/client/assets/{agent-releases-Dh5QVSRR.js → agent-releases-CkoKmdtg.js} +1 -1
  63. package/dist/client/assets/agent-settings-C7Xi7GQ8.js +1 -0
  64. package/dist/client/assets/agent-site-editor-code-BARMlQvm.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-DzffF50u.js +1 -0
  66. package/dist/client/assets/{agent-site-editor-ieqFngGL.js → agent-site-editor-mx714_u8.js} +1 -1
  67. package/dist/client/assets/agent-site-editor-preview-Cb3Jb0dL.js +1 -0
  68. package/dist/client/assets/agent-view-D1SswljO.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-BsFLMhUD.js → agent-view-guard-Du9KtXiN.js} +1 -1
  70. package/dist/client/assets/{ai-providers-C8OUzIy0.js → ai-providers-C5eMJ9gb.js} +1 -1
  71. package/dist/client/assets/{alert-qFpOptTR.js → alert-CxbB9CEj.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-DY-sMeWR.js → analytics-sections-DxDApvgE.js} +1 -1
  73. package/dist/client/assets/api-keys-CyfopOCZ.js +1 -0
  74. package/dist/client/assets/{api-keys-BIZ19WbQ.js → api-keys-Dz9mRGTx.js} +1 -1
  75. package/dist/client/assets/{app-editor-DtEUS7gt.js → app-editor-CjwcCH9G.js} +1 -1
  76. package/dist/client/assets/{asset-utils-kGLknUlk.js → asset-utils-DP9aQr9Q.js} +1 -1
  77. package/dist/client/assets/{auth-D3aaR56V.js → auth-C82OPjUx.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-DXHZSgRo.js → auth-catchall-BuOacwQW.js} +1 -1
  79. package/dist/client/assets/{auth-entry-teQchOi1.js → auth-entry-CvZftMoq.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-DNwm7E6M.js → auth-split-layout-DSQvTHWS.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-CfD2cssG.js → authenticate-and-persist-oauth-87e1Ix6y.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-DWVzdhwb.js → automation-list-row-4ox_h99L.js} +1 -1
  83. package/dist/client/assets/{automation-runs-Ctc1Vi83.js → automation-runs-Dto_jEAs.js} +1 -1
  84. package/dist/client/assets/{automations-2Gnmtaih.js → automations-C9HofLSf.js} +1 -1
  85. package/dist/client/assets/{badge-D4t_0yop.js → badge-DcUertOZ.js} +1 -1
  86. package/dist/client/assets/{block-document-CrxZdpMf.js → block-document-fIbF5XH6.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-DWu-3MoI.js → blocks-preview-workspace-context-ZEZYfsWp.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-CBGKB5th.js → blocks-tab-states-8lUCpJRf.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-C4jHo7Om.js → blog-preview-url-N6iQgPQK.js} +1 -1
  90. package/dist/client/assets/{blog-schema-Diy1WhGr.js → blog-schema-0s-6sCQz.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-Zm7I_b_g.js → blog-source-gate-BIpZ68Ul.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-2cHU2UiQ.js → blog-view-gate-D2LovAn5.js} +1 -1
  93. package/dist/client/assets/{buckets-Bgoscg8b.js → buckets-0rVmiN0b.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-D5lS20WO.js → build-improve-prompt-doc-BBeWkVDi.js} +1 -1
  95. package/dist/client/assets/{calendar-DqJcyMVN.js → calendar-DNzaYWCQ.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-ntTl1fvk.js → capability-load-error-CCChPOz4.js} +1 -1
  97. package/dist/client/assets/{category-editor-DoyoJKV_.js → category-editor-BWoJzJlg.js} +1 -1
  98. package/dist/client/assets/{category-tree-BCyFM0Ok.js → category-tree-DGOo1BAt.js} +1 -1
  99. package/dist/client/assets/{chart-BbYeI8N4.js → chart-DsKJdJFH.js} +1 -1
  100. package/dist/client/assets/{chat-context-MoYYfmsS.js → chat-context-DFEln8mI.js} +1 -1
  101. package/dist/client/assets/{chat-draft-Gm7m0AHh.js → chat-draft-DNEqrl5p.js} +1 -1
  102. package/dist/client/assets/{checkbox-BB8KVrhZ.js → checkbox-QUuOza1H.js} +1 -1
  103. package/dist/client/assets/{choose-editor-B2XjwftL.js → choose-editor-Dn-Q9YwJ.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-DMaAArhS.js → cli-auth-success-r3ux6WHO.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-DtfLPSh_.js → cms-settings-editor-CFS-nduu.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-CwV6xthd.js → cms-store-drafts-_66Q7KaS.js} +1 -1
  107. package/dist/client/assets/{collapsible-CvOWSuY7.js → collapsible-CadTVXY4.js} +1 -1
  108. package/dist/client/assets/{collection-detail-BxBiaeiJ.js → collection-detail-Dx4tVGVC.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-Dzwm3ZFp.js → collection-display-button-6TpQQrIO.js} +1 -1
  110. package/dist/client/assets/{collection-search-DqZnq1kz.js → collection-search-DkVgkcUC.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-D_jB2iSb.js → collection-table-wrapper-Ds5dhGJx.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-CkIuyvEg.js → collection-tabs-Cju2BOrS.js} +1 -1
  113. package/dist/client/assets/{combobox-BTk2iFx5.js → combobox-2rKAfmHD.js} +1 -1
  114. package/dist/client/assets/{command-gq8mLEwk.js → command-C3tlrKUq.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-CoNKZ9Qf.js → companion-mcps-section-DtquKPaV.js} +1 -1
  116. package/dist/client/assets/{config-CKam44yj.js → config-LEYSFIMn.js} +1 -1
  117. package/dist/client/assets/{connect-BO9LGEER.js → connect-BKnKKYKQ.js} +1 -1
  118. package/dist/client/assets/{connect-key-CDyj_Wt6.js → connect-key-FoOHl5BZ.js} +1 -1
  119. package/dist/client/assets/{connect-layout-DkDpPrBE.js → connect-layout-CsTR3j4_.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-BNltPBvM.js → connect-source-dialog-KHsP3PRH.js} +1 -1
  121. package/dist/client/assets/{connection-PdY1jdjN.js → connection-C8I8wKeO.js} +1 -1
  122. package/dist/client/assets/{connection-card-rF-q91cm.js → connection-card-CTJwLo8p.js} +1 -1
  123. package/dist/client/assets/{connection-detail-C-csQnIc.js → connection-detail-CgH5yXt-.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-BbSye8zz.js → connection-form-helpers-BjSA2uCL.js} +1 -1
  125. package/dist/client/assets/{connection-slug-CLSeWQFu.js → connection-slug-BNBBglpK.js} +1 -1
  126. package/dist/client/assets/{connections-n1FwsJcU.js → connections-X4DjYIvQ.js} +1 -1
  127. package/dist/client/assets/{content-changes-B7QLNPm9.js → content-changes-BFwm7dNe.js} +1 -1
  128. package/dist/client/assets/{content-tab-CCuslwaK.js → content-tab-BPEA6p-v.js} +3 -3
  129. package/dist/client/assets/{context-YCyFfQO8.js → context-DUaIKdw9.js} +1 -1
  130. package/dist/client/assets/{context-menu-CYKN_FLZ.js → context-menu-DkaKc9e5.js} +1 -1
  131. package/dist/client/assets/{context-shell-Cg3iDcvG.js → context-shell-fpMmjICJ.js} +3 -3
  132. package/dist/client/assets/{create-organization-dialog-BGvuasWD.js → create-organization-dialog-BVTSqOJU.js} +1 -1
  133. package/dist/client/assets/{daily-pulse-CemPpz9a.js → daily-pulse-BkxIzWUm.js} +1 -1
  134. package/dist/client/assets/{delete-copy-CKxy6ck-.js → delete-copy-DdlDdNyl.js} +1 -1
  135. package/dist/client/assets/{device-hint-C_jFHzsP.js → device-hint-B3WnBHYf.js} +1 -1
  136. package/dist/client/assets/{discover-m_-jSxcN.js → discover-Ciw-8-nj.js} +1 -1
  137. package/dist/client/assets/{domain-settings-CQt8yuzL.js → domain-settings-D4e35lZa.js} +1 -1
  138. package/dist/client/assets/{drawer-DgvYa3k0.js → drawer-CROtV2u4.js} +1 -1
  139. package/dist/client/assets/{editor-classes-Ds44wzZG.js → editor-classes-DYlqLnQ7.js} +1 -1
  140. package/dist/client/assets/{editor-C2k7wzhY.js → editor-ipOJFDhA.js} +1 -1
  141. package/dist/client/assets/{empty-state-R8mrYCIa.js → empty-state-DM4xv3sa.js} +1 -1
  142. package/dist/client/assets/{empty-state-CAav-Xpz.js → empty-state-I_cTbW85.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-4aUPiLsm.js → experiments-tab-choice-C9Djubgs.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-DJrQm_Aj.js → extract-connection-data-DjYTV7t7.js} +1 -1
  145. package/dist/client/assets/{feature-gate-CzNyzvDc.js → feature-gate-DMrFeUy1.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-CIskqUv5.js → feature-paywall-DL1BXqDM.js} +1 -1
  147. package/dist/client/assets/{file-explorer-CFx-jGiv.js → file-explorer-QEFcL5Sf.js} +1 -1
  148. package/dist/client/assets/{file-preview-D23rhyCZ.js → file-preview-f1ZCefMe.js} +1 -1
  149. package/dist/client/assets/{file-share-button-Cdg8mRxK.js → file-share-button-C-f43toh.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-CFo6D_mq.js → file-type-icon-CdjLDWdN.js} +1 -1
  151. package/dist/client/assets/{folder-icon-DCPIgOII.js → folder-icon-DjWOZO3O.js} +1 -1
  152. package/dist/client/assets/{form-lT2yclrj.js → form-DlZ0KMAb.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-DDFtKbzS.js → frame-navigation-DMXKoo4B.js} +1 -1
  154. package/dist/client/assets/{gateway-client-BjTndvcO.js → gateway-client-B4qzR3sF.js} +1 -1
  155. package/dist/client/assets/{general-C9WlB8qj.js → general-CgIfCf24.js} +1 -1
  156. package/dist/client/assets/{github-icon-CXz0klo1.js → github-icon-Bq9Ot22_.js} +1 -1
  157. package/dist/client/assets/{held-block-view-Jaxz4Y5b.js → held-block-view-QD0AvQ2Q.js} +1 -1
  158. package/dist/client/assets/{home-BXZC4jI0.js → home-CfP1B6zJ.js} +1 -1
  159. package/dist/client/assets/{home-overview-feV5lz_7.js → home-overview-B7AwMB08.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-LANuriok.js → hosted-reconcile-rjhKNGnc.js} +1 -1
  161. package/dist/client/assets/{icon-button-DnYO-W8b.js → icon-button-BH8Qviy5.js} +1 -1
  162. package/dist/client/assets/{index-BdizT4sC.js → index-5erPNBmj.js} +1 -1
  163. package/dist/client/assets/{index-CpCzT9a1.js → index-BL01DXCf.js} +1 -1
  164. package/dist/client/assets/{index-2cNmpT6g.js → index-BcACgHiu.js} +1 -1
  165. package/dist/client/assets/{index-BFdtW_Lt.js → index-CDQbtG2e.js} +1 -1
  166. package/dist/client/assets/{index-Cf6V_if2.js → index-CJKec1wg.js} +1 -1
  167. package/dist/client/assets/{index-B4E0TU9S.js → index-CLFrG0Qs.js} +1 -1
  168. package/dist/client/assets/{index-YMgj8hIR.js → index-Co7YBLf6.js} +1 -1
  169. package/dist/client/assets/{index-BKxKXWi8.js → index-D23-6Dnm.js} +1 -1
  170. package/dist/client/assets/{index-CfZknZT0.js → index-DDkGmjwq.js} +1 -1
  171. package/dist/client/assets/{index-CBBEwfQu.js → index-DGzw_xp5.js} +1 -1
  172. package/dist/client/assets/{index-CIjrpBSD.js → index-DMpANy5-.js} +1 -1
  173. package/dist/client/assets/{index-DjiY50Ig.js → index-DrJBZ2ZV.js} +1 -1
  174. package/dist/client/assets/{index-B--QVBAJ.js → index-MkoN5oFR.js} +1 -1
  175. package/dist/client/assets/{index-CC6YS-rB.js → index-g3eDw_KE.js} +1 -1
  176. package/dist/client/assets/{index-CDemOiV4.js → index-kCm_MC3x.js} +1 -1
  177. package/dist/client/assets/{index-redirect-CRqpPHp_.js → index-redirect-BxpEByen.js} +1 -1
  178. package/dist/client/assets/{index-CrQFnFIn.js → index-rjS4IUT9.js} +1 -1
  179. package/dist/client/assets/{index-CTKVsdNw.js → index-ztdGKvBm.js} +3 -3
  180. package/dist/client/assets/{infiniteQueryObserver-DpQtHqSr.js → infiniteQueryObserver-C3KEOANj.js} +1 -1
  181. package/dist/client/assets/{infra-billing-B6OZsXvT.js → infra-billing-BFFvEbBo.js} +1 -1
  182. package/dist/client/assets/{input-A0pROuXz.js → input-B2QsYffT.js} +3 -3
  183. package/dist/client/assets/{input-DGwNGk5F.js → input-aLblPHPG.js} +1 -1
  184. package/dist/client/assets/{integration-icon-CkDjbcLK.js → integration-icon-Bo-3z9o3.js} +1 -1
  185. package/dist/client/assets/{item-actions-KIdbZTtB.js → item-actions-BDi0HvuM.js} +1 -1
  186. package/dist/client/assets/{jira-icon-BMYvV1_v.js → jira-icon-CucNVYe0.js} +1 -1
  187. package/dist/client/assets/{label-DQEXoY6T.js → label-8UxgpYiA.js} +1 -1
  188. package/dist/client/assets/{layout-iVR8y_67.js → layout-CiYqNQ7K.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-DwPqDRJj.js → legacy-admin-welcome-dialog-plmLACwz.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-CAYjJgJ0.js → legacy-agents-deep-DyZsDG6s.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-7oq1Xg-K.js → legacy-main-redirect-CRUswcYw.js} +1 -1
  192. package/dist/client/assets/library-DKz4y7U8.js +1 -0
  193. package/dist/client/assets/{library-tab-Cu5f_jPA.js → library-tab-DdqgBq7X.js} +1 -1
  194. package/dist/client/assets/{login-03pZYKr5.js → login-CSH2sxCM.js} +1 -1
  195. package/dist/client/assets/{markdown-CBsDAJwx.js → markdown-CJR_ooUO.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-GqMvWkA6.js → mcp-app-renderer-DU6s3Olv.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-JdceSX9b.js → mcp-oauth-Alln4VX8.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-n1oSp2-S.js → mcp-oauth-BBSVAQ62.js} +1 -1
  199. package/dist/client/assets/{members-CLfw7bse.js → members-NK4Xc07V.js} +1 -1
  200. package/dist/client/assets/{memory-C2r2x0xw.js → memory-DMWEEOEF.js} +1 -1
  201. package/dist/client/assets/{mock-board-Dd8r2LEz.js → mock-board-NMto_IE_.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-BIu4Dvyb.js → monaco-editor-CLzWWWtl.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-D7PBO8sI.js → monitoring-stats-row-B4nREvBy.js} +1 -1
  204. package/dist/client/assets/{monitoring-CoMGNBw0.js → monitoring-tu8T670c.js} +1 -1
  205. package/dist/client/assets/{multi-select-CL-U4v6T.js → multi-select-DT2CaFLR.js} +1 -1
  206. package/dist/client/assets/{mustache-jt6LkG70.js → mustache-CNuJ7AZ0.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-DUY-1xO9.js → named-rule-step-BUKBZ8bi.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-BPYxwRaw.js → named-rule-view-B2F_JWdt.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-DGVfOfmA.js → new-project-dialog-BW6Lh52P.js} +1 -1
  210. package/dist/client/assets/{new-project-store-DAT5Euei.js → new-project-store-DID5OVrt.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-Bn-MRrdp.js → oauth-callback-CaqSxMor.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-CApiV1K6.js → oauth-callback-ai-provider-U0bkWwKJ.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-D9k2Pclp.js → oauth-consent-BSgGE3Bs.js} +1 -1
  214. package/dist/client/assets/{onboarding-CuJzAlBZ.js → onboarding-DhuU_4Fu.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-DZS79nav.js → openai-conversation-XKCKDcRG.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-DrPHYnmI.js → optimistic-project-sidebar-views-aXJkp7Aa.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-BZweP0_g.js → order-monitor-day-BS6DbEul.js} +1 -1
  218. package/dist/client/assets/{organization-choice-Co4VhRJ8.js → organization-choice-BA2J1Sub.js} +1 -1
  219. package/dist/client/assets/{orgs-DQU9n7nk.js → orgs-BM_ILPKb.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-CuZ-eqUG.js → own-accounts-section-C2hUsPB2.js} +1 -1
  221. package/dist/client/assets/{pair-BR0xVY7K.js → pair-DmyTA2cC.js} +1 -1
  222. package/dist/client/assets/{parse-sections-DwNpuqYY.js → parse-sections-Bun2U10n.js} +2 -2
  223. package/dist/client/assets/plan-BjkLd82J.js +1 -0
  224. package/dist/client/assets/{plan-ladder-CYLyF8a4.js → plan-ladder-C3ogU-RT.js} +1 -1
  225. package/dist/client/assets/{plan-page-CWIUB4vl.js → plan-page-CqrnghH1.js} +1 -1
  226. package/dist/client/assets/{plan-usage-card-D7CUbMYX.js → plan-usage-card-Cu6N697K.js} +1 -1
  227. package/dist/client/assets/{popover-DBuD8VkZ.js → popover-C4oz5B-L.js} +1 -1
  228. package/dist/client/assets/{post-calendar-C7KRPE_7.js → post-calendar-C9jkdGJh.js} +1 -1
  229. package/dist/client/assets/{post-editor-BTOUUukW.js → post-editor-cvzIrkiW.js} +1 -1
  230. package/dist/client/assets/{preview-content-CTLVXt4I.js → preview-content-f1yPbBN0.js} +1 -1
  231. package/dist/client/assets/{preview-dialog-Dp4GbSi5.js → preview-dialog-BPjf_vPa.js} +1 -1
  232. package/dist/client/assets/{preview-panel-CbnF0XdA.js → preview-panel-a1ouBSIL.js} +1 -1
  233. package/dist/client/assets/{preview-tab-CHmFDbc5.js → preview-tab-g0gk5kBr.js} +3 -3
  234. package/dist/client/assets/{primitives-B9kPUDQM.js → primitives-BbUqWJzg.js} +1 -1
  235. package/dist/client/assets/{product-picker-dialog-CUwMfU8B.js → product-picker-dialog-Bux2F3Cd.js} +1 -1
  236. package/dist/client/assets/{profile-CuhUpReQ.js → profile-Dc_5h7y4.js} +1 -1
  237. package/dist/client/assets/{project-app-view-BCEvOARd.js → project-app-view-9F75U5zq.js} +1 -1
  238. package/dist/client/assets/{project-apps-897ilIEF.js → project-apps-BcKyvp4E.js} +1 -1
  239. package/dist/client/assets/{project-icon-DWIG3WsN.js → project-icon-fQqckccl.js} +1 -1
  240. package/dist/client/assets/{project-index-BUfiy84V.js → project-index-C2IrSomv.js} +1 -1
  241. package/dist/client/assets/project-reports-B_rUnWW1.js +1 -0
  242. package/dist/client/assets/project-tasks-em-dO97Z.js +1 -0
  243. package/dist/client/assets/{projects-BWsFj0pV.js → projects-BMIqPW4r.js} +1 -1
  244. package/dist/client/assets/{projects-empty-state-IIoHkVX6.js → projects-empty-state-DXP1mqYF.js} +1 -1
  245. package/dist/client/assets/{prompts-CzjNQB4y.js → prompts-DpRerlb-.js} +1 -1
  246. package/dist/client/assets/record-editor-EDBIJjSW.js +1 -0
  247. package/dist/client/assets/{redirect-editor-Q4eWaKev.js → redirect-editor-C-75DqJ8.js} +1 -1
  248. package/dist/client/assets/reports-Bll5rys5.js +1 -0
  249. package/dist/client/assets/{reports-CPNIXsMR.js → reports-DrD55ws1.js} +1 -1
  250. package/dist/client/assets/{reports-onboarding-sOnle8tZ.js → reports-onboarding-wE7JwoZi.js} +1 -1
  251. package/dist/client/assets/{reports-tab-CmQl03Vu.js → reports-tab-Bm-CyJCU.js} +2 -2
  252. package/dist/client/assets/{repositories-BkFYZENo.js → repositories-DQbDt3rW.js} +1 -1
  253. package/dist/client/assets/repositories-V5ZADqdz.js +1 -0
  254. package/dist/client/assets/{repository-binding-C7rU_ngE.js → repository-binding-D_Xc1yRH.js} +1 -1
  255. package/dist/client/assets/{repository-picker-LXFO8bDM.js → repository-picker-CSaozawA.js} +1 -1
  256. package/dist/client/assets/{require-capability-3euEuxZx.js → require-capability-BvMWopKN.js} +1 -1
  257. package/dist/client/assets/{required-auth-layout-Xfd5oNH3.js → required-auth-layout-Cwtu4iIe.js} +1 -1
  258. package/dist/client/assets/{reset-password-DT6s-J5W.js → reset-password-CCjgtMBz.js} +1 -1
  259. package/dist/client/assets/{resizable-Bmb2XXOb.js → resizable-DNBx7bMi.js} +1 -1
  260. package/dist/client/assets/{resolve-tab-icon-NbNekjKu.js → resolve-tab-icon-XkjIOifK.js} +1 -1
  261. package/dist/client/assets/{review-settings-B1X3rfKZ.js → review-settings-DnBaXa8b.js} +1 -1
  262. package/dist/client/assets/{role-color-LobmKhmk.js → role-color-CCLGEajG.js} +1 -1
  263. package/dist/client/assets/{roles-vlbcWqYa.js → roles-DDL7RCB4.js} +1 -1
  264. package/dist/client/assets/route-BByW4wWq.js +1 -0
  265. package/dist/client/assets/{route-DZ15K8C3.js → route-Bz0dgJ2I.js} +1 -1
  266. package/dist/client/assets/{route-COPrIJ58.js → route-cP2t4t1J.js} +1 -1
  267. package/dist/client/assets/{route-page-header-DpYcASGe.js → route-page-header-CApA0aIo.js} +1 -1
  268. package/dist/client/assets/{sandbox-git-api-zgEm1abw.js → sandbox-git-api-BsG4EzUP.js} +1 -1
  269. package/dist/client/assets/{sandbox-lifecycle-context-B8XBQ27H.js → sandbox-lifecycle-context-DbNrw8-a.js} +1 -1
  270. package/dist/client/assets/{save-status-P-MBD5-0.js → save-status-DhQhbNh0.js} +1 -1
  271. package/dist/client/assets/{schema-BNEJODyB.js → schema-Bb-DbvPZ.js} +1 -1
  272. package/dist/client/assets/{schema-DehrCLDJ.js → schema-D_OZwHJO.js} +1 -1
  273. package/dist/client/assets/{scroll-area-C9_ZoUPP.js → scroll-area-Dm3EbBj1.js} +1 -1
  274. package/dist/client/assets/{search-input-DlGuVm3Y.js → search-input-BQ8Dp8aD.js} +1 -1
  275. package/dist/client/assets/{search-toggle-CCoKiZr4.js → search-toggle-1gezrIbC.js} +1 -1
  276. package/dist/client/assets/{secret-picker--vdUnukB.js → secret-picker-Bjl5COEs.js} +1 -1
  277. package/dist/client/assets/{secrets-nwRSqY5_.js → secrets-k-1ebMsD.js} +1 -1
  278. package/dist/client/assets/{section-array-field-C-IVu4bI.js → section-array-field-uECXIzc8.js} +1 -1
  279. package/dist/client/assets/{sections-C-kr2WbP.js → sections-BA7rlacS.js} +1 -1
  280. package/dist/client/assets/{sections-editor-pzrzBV_6.js → sections-editor-DFekY7v1.js} +1 -1
  281. package/dist/client/assets/{select-DDLvK1MW.js → select-CxXZwsSr.js} +1 -1
  282. package/dist/client/assets/{select-model-9Qz7X06u.js → select-model-ocp0molk.js} +1 -1
  283. package/dist/client/assets/{seo-editor-D9YUlsJr.js → seo-editor-XFI4kpN6.js} +1 -1
  284. package/dist/client/assets/{separator-D4AcMC3Q.js → separator-BQ6pXQbe.js} +1 -1
  285. package/dist/client/assets/{session-runtime-DUDcoTOp.js → session-runtime-DBl1Hlcw.js} +1 -1
  286. package/dist/client/assets/settings-tab-DiVoBlPy.js +1 -0
  287. package/dist/client/assets/{sheet-DwYk86zq.js → sheet-C-umRrOH.js} +1 -1
  288. package/dist/client/assets/{shell-layout-DjDFDvAp.js → shell-layout-UF80oiAz.js} +1 -1
  289. package/dist/client/assets/{site-draft-actions-BFo_T6rU.js → site-draft-actions-FVwQt-Zd.js} +1 -1
  290. package/dist/client/assets/{site-draft-view-CKOJ4qSz.js → site-draft-view-BVBNZFVO.js} +1 -1
  291. package/dist/client/assets/site-editor-C1tqJ8tH.js +1 -0
  292. package/dist/client/assets/{site-editor-toast-CZULEbbj.js → site-editor-toast-Dq7SmLyr.js} +1 -1
  293. package/dist/client/assets/{skills-DE35uXBB.js → skills-Cpr_vZ7G.js} +1 -1
  294. package/dist/client/assets/{slider-BM8aiQga.js → slider-Cqj9bgcu.js} +1 -1
  295. package/dist/client/assets/{sortable.esm-Ci07B_Jj.js → sortable.esm-CKl9Rez4.js} +1 -1
  296. package/dist/client/assets/{sso-DYWJrGEf.js → sso-SC-6fSYF.js} +1 -1
  297. package/dist/client/assets/{suggestion-CFxVXMn8.js → suggestion-aR93AXr2.js} +1 -1
  298. package/dist/client/assets/{super-agent-icon-DnVZmS9i.js → super-agent-icon-JEja25un.js} +1 -1
  299. package/dist/client/assets/{switch-BOASvXY2.js → switch-B81oLbqr.js} +1 -1
  300. package/dist/client/assets/{synced-repos-CfF8I9P4.js → synced-repos-DXCIbAbx.js} +1 -1
  301. package/dist/client/assets/{tab-icon-glyph-BdM4WLaj.js → tab-icon-glyph-CYp2YuI5.js} +1 -1
  302. package/dist/client/assets/{table-DRfPsdaj.js → table-C3AdbrSy.js} +1 -1
  303. package/dist/client/assets/{tabs-BGcPqJhP.js → tabs-nQ7_UOyl.js} +1 -1
  304. package/dist/client/assets/{task-board-DHRO-oCR.js → task-board-i6qU2BVR.js} +1 -1
  305. package/dist/client/assets/{task-key-dODSqtOD.js → task-key-Bt60Ndov.js} +1 -1
  306. package/dist/client/assets/{task-route-Cy5WEzJq.js → task-route-C3cK6F8S.js} +1 -1
  307. package/dist/client/assets/{task-status-CfOd57tl.js → task-status-DYgcNbkh.js} +1 -1
  308. package/dist/client/assets/{taskboard-analytics-O8vpzQJ4.js → taskboard-analytics-BQ6MoPkZ.js} +1 -1
  309. package/dist/client/assets/{tasks-BHJB1jJ_.js → tasks-BHVyL8aT.js} +1 -1
  310. package/dist/client/assets/tasks-DCmQbZqA.js +1 -0
  311. package/dist/client/assets/{textarea-CIDyBlnB.js → textarea-viSdm6BE.js} +1 -1
  312. package/dist/client/assets/{thread-analytics-B5D5JEsi.js → thread-analytics-Cpl3jv6S.js} +1 -1
  313. package/dist/client/assets/{thread-button-BjvcH6Vx.js → thread-button-CP83i3PG.js} +1 -1
  314. package/dist/client/assets/{thread-intent-D4UZcJTa.js → thread-intent-DyZ5A9F9.js} +1 -1
  315. package/dist/client/assets/{thread-route-BoKIU7Oy.js → thread-route-BbVh3366.js} +1 -1
  316. package/dist/client/assets/{thread-route-PqBNFZfw.js → thread-route-CfpvvkkL.js} +1 -1
  317. package/dist/client/assets/{thread-sheet-body-SffXqBpH.js → thread-sheet-body-CC8y_ZHb.js} +1 -1
  318. package/dist/client/assets/{time-range-picker-BRE9Qg9V.js → time-range-picker-BJPUtKv4.js} +1 -1
  319. package/dist/client/assets/{toggle-group-BcyNxcnc.js → toggle-group-yQeAFu4u.js} +1 -1
  320. package/dist/client/assets/{tool-set-selector-CkNcSn8D.js → tool-set-selector-CRKf3QUk.js} +1 -1
  321. package/dist/client/assets/{toolbar-icon-button-B8gCtGPy.js → toolbar-icon-button-Cz-oOJ1w.js} +1 -1
  322. package/dist/client/assets/{tooltip-Cilmqep0.js → tooltip-Bm0P1gm_.js} +1 -1
  323. package/dist/client/assets/{tooltipContext-HNg68jH0.js → tooltipContext-CSDtg0Lk.js} +1 -1
  324. package/dist/client/assets/{track-CGCFac8w.js → track-DLNDfCEf.js} +1 -1
  325. package/dist/client/assets/{types-CnPGvQg1.js → types-5-cDe_8u.js} +1 -1
  326. package/dist/client/assets/{url-slug-ClELDWkv.js → url-slug-CII_0B7H.js} +1 -1
  327. package/dist/client/assets/{usage-stats-B3MiRtbE.js → usage-stats-B0_Yl-r0.js} +1 -1
  328. package/dist/client/assets/{use-ai-providers-zUKWfsvx.js → use-ai-providers-Ct2xvYDX.js} +1 -1
  329. package/dist/client/assets/{use-api-keys-BGtID6j7.js → use-api-keys-BXqgEl25.js} +1 -1
  330. package/dist/client/assets/{use-apply-named-rule-M1kWOQUn.js → use-apply-named-rule-BXltW_Uu.js} +1 -1
  331. package/dist/client/assets/use-ask-in-chat-DiwquGLH.js +1 -0
  332. package/dist/client/assets/{use-automations-DNYDf9Ty.js → use-automations-BF2lxi1L.js} +1 -1
  333. package/dist/client/assets/{use-autosave-C_qxtxF5.js → use-autosave-3MAlhbEw.js} +1 -1
  334. package/dist/client/assets/use-blocks-v8-project-BPvEDyS9.js +1 -0
  335. package/dist/client/assets/use-blog-view-DMfZjkz0.js +1 -0
  336. package/dist/client/assets/{use-chat-layout-state-DyZj7x9R.js → use-chat-layout-state-Im_c7sw4.js} +1 -1
  337. package/dist/client/assets/{use-cms-publish-actions-CD9zGQ2J.js → use-cms-publish-actions-BWS3AiLQ.js} +1 -1
  338. package/dist/client/assets/{use-connect-companion-DfgT1HMG.js → use-connect-companion-6TAp--e4.js} +1 -1
  339. package/dist/client/assets/{use-connection-CZ1NbbVy.js → use-connection-CcG4QE1K.js} +1 -1
  340. package/dist/client/assets/{use-content-sync-Cq2aGUf5.js → use-content-sync-GJv8DmEo.js} +1 -1
  341. package/dist/client/assets/{use-copy-BktBumBM.js → use-copy-DT4_uVrH.js} +1 -1
  342. package/dist/client/assets/{use-current-view-EZITdVTI.js → use-current-view-DBmQQ8uy.js} +1 -1
  343. package/dist/client/assets/{use-date-fns-locale-Bv5Sdh_7.js → use-date-fns-locale-CloMwBOl.js} +1 -1
  344. package/dist/client/assets/{use-debounced-autosave-CPlvHHLn.js → use-debounced-autosave-CCeLz8XW.js} +1 -1
  345. package/dist/client/assets/{use-debounced-value-Dd9WXi-P.js → use-debounced-value-DO5dvp6c.js} +1 -1
  346. package/dist/client/assets/{use-deco-credits-C7fZIj6N.js → use-deco-credits-yGgE3j79.js} +1 -1
  347. package/dist/client/assets/{use-decopilot-events-BnISHAGr.js → use-decopilot-events-43RPCkUH.js} +1 -1
  348. package/dist/client/assets/{use-delete-block-DTWO1nrc.js → use-delete-block-BDYGRW7T.js} +1 -1
  349. package/dist/client/assets/{use-delete-connection-mXUaCdnB.js → use-delete-connection-D6MGPJka.js} +1 -1
  350. package/dist/client/assets/{use-deployment-admin-BPWk2wkA.js → use-deployment-admin-Cr4LWHG9.js} +1 -1
  351. package/dist/client/assets/{use-entitlements-CGKQp5Ve.js → use-entitlements-Gn1rhCN5.js} +1 -1
  352. package/dist/client/assets/{use-fast-preview-draft-url-CPu4xvwz.js → use-fast-preview-draft-url-CpggWNTk.js} +1 -1
  353. package/dist/client/assets/{use-file-configs-CcLJWcIx.js → use-file-configs-3gwPBXwK.js} +1 -1
  354. package/dist/client/assets/{use-id-selection-Umi6LFyy.js → use-id-selection-DNp_iXDg.js} +1 -1
  355. package/dist/client/assets/{use-in-settings-DpMiymIv.js → use-in-settings-CFQ9B3W2.js} +1 -1
  356. package/dist/client/assets/{use-inbox-feed-DQg2WX2L.js → use-inbox-feed-CbqA9xw0.js} +1 -1
  357. package/dist/client/assets/{use-infinite-scroll-CycWyrzU.js → use-infinite-scroll-DdrDrAAo.js} +1 -1
  358. package/dist/client/assets/{use-join-requests-B4BhVPi4.js → use-join-requests-CNlmT1He.js} +1 -1
  359. package/dist/client/assets/{use-main-panel-tabs-ZkgyCIQo.js → use-main-panel-tabs-BmILT_Hf.js} +1 -1
  360. package/dist/client/assets/{use-mcp-auth-status-GMXu-v9L.js → use-mcp-auth-status-6sC2vB74.js} +1 -1
  361. package/dist/client/assets/{use-mcp-client-3JkIBVIw.js → use-mcp-client-2MG3LveS.js} +1 -1
  362. package/dist/client/assets/{use-mcp-prompts-BS4RJMA_.js → use-mcp-prompts-qJSiAdA5.js} +1 -1
  363. package/dist/client/assets/{use-mcp-tools-ByvSnFS9.js → use-mcp-tools-DOqvKogJ.js} +1 -1
  364. package/dist/client/assets/{use-mobile-D4Z5otBR.js → use-mobile-C_hdQY5I.js} +1 -1
  365. package/dist/client/assets/{use-move-blocks-Brooe0Rr.js → use-move-blocks-Bu_TrzH9.js} +1 -1
  366. package/dist/client/assets/{use-navigate-to-agent-DNuLTYeG.js → use-navigate-to-agent-Cw8_3uU5.js} +1 -1
  367. package/dist/client/assets/{use-never-published-CvngtHyh.js → use-never-published-BJeGnEQC.js} +1 -1
  368. package/dist/client/assets/{use-org-fs-BW-3KvTS.js → use-org-fs-D9dHgOYs.js} +1 -1
  369. package/dist/client/assets/{use-org-notice-BX7WVuqK.js → use-org-notice-Bg0zOPPj.js} +1 -1
  370. package/dist/client/assets/{use-org-repo-syncs-D4v_lsZY.js → use-org-repo-syncs-DXtQY1Ns.js} +1 -1
  371. package/dist/client/assets/{use-org-sso-CGL9Mumz.js → use-org-sso-_fzcS8V-.js} +1 -1
  372. package/dist/client/assets/{use-organization-settings-DkS8IzZH.js → use-organization-settings-C2vcrj4S.js} +1 -1
  373. package/dist/client/assets/{use-panel-navigate-D_4zKcAV.js → use-panel-navigate-0z93k6Ut.js} +1 -1
  374. package/dist/client/assets/{use-project-native-view-presence-BIR5C8xh.js → use-project-native-view-presence-C7OB-luC.js} +1 -1
  375. package/dist/client/assets/{use-project-scope-DR1wnfkK.js → use-project-scope-BwqdbGG4.js} +1 -1
  376. package/dist/client/assets/{use-recent-apps-CedAxvA5.js → use-recent-apps-DlYlQGYK.js} +1 -1
  377. package/dist/client/assets/{use-reports-diagnostic-CyE2NKc1.js → use-reports-diagnostic-CHQxra4V.js} +1 -1
  378. package/dist/client/assets/{use-sandbox-events-DWTS0v2d.js → use-sandbox-events-E6fWuIsO.js} +1 -1
  379. package/dist/client/assets/{use-secrets-gsSj0IoF.js → use-secrets-BUuPyfGX.js} +1 -1
  380. package/dist/client/assets/{use-section-preview-base-Bc792c4s.js → use-section-preview-base-CWHJYT12.js} +1 -1
  381. package/dist/client/assets/{use-sidebar-collapsed-D2Rggp6e.js → use-sidebar-collapsed-Cy-mIzeN.js} +1 -1
  382. package/dist/client/assets/{use-tags-B-6GGTRQ.js → use-tags-FRfDz-by.js} +1 -1
  383. package/dist/client/assets/{use-task-board-analytics-BvySA9kr.js → use-task-board-analytics-ByUFAA_6.js} +1 -1
  384. package/dist/client/assets/{use-task-board-item-prs-D66jIICd.js → use-task-board-item-prs-B5FCM085.js} +1 -1
  385. package/dist/client/assets/{use-task-board-items-D4msWN6P.js → use-task-board-items-D2aUd0HA.js} +1 -1
  386. package/dist/client/assets/{use-task-board-prompts-BiKBad5h.js → use-task-board-prompts-BVOJS_Xo.js} +1 -1
  387. package/dist/client/assets/{use-task-metadata-u5FWrVcz.js → use-task-metadata-DZBgcb3y.js} +1 -1
  388. package/dist/client/assets/{use-thread-outputs-C9z66BGs.js → use-thread-outputs-BK5BfLdO.js} +1 -1
  389. package/dist/client/assets/{use-view-draft-kind-BqlsyAow.js → use-view-draft-kind-BopwZu5H.js} +1 -1
  390. package/dist/client/assets/{use-voice-input-BxiteUCw.js → use-voice-input-BMrsODyI.js} +1 -1
  391. package/dist/client/assets/useInfiniteQuery-Ypmdjx1e.js +1 -0
  392. package/dist/client/assets/{useQueries-Cglcpn8c.js → useQueries-GZbpaWZ_.js} +1 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-Pk4rU2Ft.js +1 -0
  394. package/dist/client/assets/{users-NOOsh3xZ.js → users-C3Vmpzra.js} +1 -1
  395. package/dist/client/assets/{utils-BTsdsvJd.js → utils-COdvgYqW.js} +1 -1
  396. package/dist/client/assets/{variant-calendar-fD7BE86h.js → variant-calendar-C0eDQjQb.js} +1 -1
  397. package/dist/client/assets/{variant-matcher-override-CEYGMqhY.js → variant-matcher-override-BAo9iF1F.js} +1 -1
  398. package/dist/client/assets/{view-header-DzcnIXEq.js → view-header-CGFYM1jX.js} +1 -1
  399. package/dist/client/assets/{virtual-mcp-cDV9Te_c.js → virtual-mcp-CAb2l-zV.js} +1 -1
  400. package/dist/client/assets/{watch-sse-pool-BkhdInio.js → watch-sse-pool-DdfLfQcH.js} +1 -1
  401. package/dist/client/index.html +1 -1
  402. package/dist/server/server.js +378 -378
  403. package/package.json +1 -1
  404. package/dist/client/assets/agent-app-BRcFq3N_.js +0 -1
  405. package/dist/client/assets/agent-deck-DFZMd15r.js +0 -1
  406. package/dist/client/assets/agent-experiments-BwmqLj-j.js +0 -1
  407. package/dist/client/assets/agent-file-DrGdjV8i.js +0 -1
  408. package/dist/client/assets/agent-library-file-CmPv7Krc.js +0 -1
  409. package/dist/client/assets/agent-library-ql5PM1_p.js +0 -1
  410. package/dist/client/assets/agent-overview-DTDzoW5N.js +0 -1
  411. package/dist/client/assets/agent-settings-8YJX0S3n.js +0 -1
  412. package/dist/client/assets/agent-site-editor-code-BQI2D43u.js +0 -2
  413. package/dist/client/assets/agent-site-editor-content-CDmctPHk.js +0 -1
  414. package/dist/client/assets/agent-site-editor-preview-CKC5QFTH.js +0 -1
  415. package/dist/client/assets/agent-view-FUSo29uN.js +0 -1
  416. package/dist/client/assets/api-keys-BbCRE0dt.js +0 -1
  417. package/dist/client/assets/library-CcUW4dD6.js +0 -1
  418. package/dist/client/assets/plan-CJ9mRGsN.js +0 -1
  419. package/dist/client/assets/project-reports-DyX_cnwF.js +0 -1
  420. package/dist/client/assets/project-tasks-ooMrzCbe.js +0 -1
  421. package/dist/client/assets/record-editor-DXGRK_O0.js +0 -1
  422. package/dist/client/assets/reports-Cxm5HLgj.js +0 -1
  423. package/dist/client/assets/repositories-cv2qvoSk.js +0 -1
  424. package/dist/client/assets/route-DBnYGUy3.js +0 -1
  425. package/dist/client/assets/settings-tab-BSv-jpzu.js +0 -1
  426. package/dist/client/assets/site-editor-yQW8pV2u.js +0 -1
  427. package/dist/client/assets/tasks-BsCMzq1D.js +0 -1
  428. package/dist/client/assets/use-ask-in-chat-DwZDq51q.js +0 -1
  429. package/dist/client/assets/use-blocks-v8-project-B_RMtP9Z.js +0 -1
  430. package/dist/client/assets/use-blog-view-Cf0gUXmH.js +0 -1
  431. package/dist/client/assets/useInfiniteQuery-C8AjoHI-.js +0 -1
  432. package/dist/client/assets/useSuspenseInfiniteQuery-DkDXLw8E.js +0 -1
@@ -1,4 +1,4 @@
1
- import{dR as Zt,c as q,b as ee,r as w,j as t,B,a_ as qt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aW as at,y as nt,t as X,e3 as es,_ as ts,X as ss,Z as os,as,aq as ns,ar as is,Y as ze,b9 as rs,h as Le,aL as pt,aM as xt,aN as gt,aO as ht,bc as jt,aP as yt,aQ as bt,aR as vt,E as Ke,aI as ls,eb as Ct,I as Nt,hv as cs,am as ds,ba as Ze,n as Xe,f as ms}from"./index-CTKVsdNw.js";import{ChatLayout as us}from"./index-YMgj8hIR.js";import{b as it,v as fs,a as ps,Z as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Qe}from"./agent-icon-BeQK1LIp.js";import{n as kt}from"./BookOpen01-CGmiFh6c.js";import{t as rt}from"./ChevronDown-C2op7Ztq.js";import{f as ys}from"./UserSquare-Csaj5_OE.js";import{s as Tt}from"./File02-lnmDsOIM.js";import{f as lt,b as Ot,t as zt}from"./Tool01-BCxvp4xD.js";import{a as bs}from"./Image01-D0d8t9Nf.js";import{i as vs}from"./SearchMd-DlyifTmg.js";import{B as Kt}from"./badge-D4t_0yop.js";import{C as Ft}from"./checkbox-BB8KVrhZ.js";import{S as ct}from"./switch-BOASvXY2.js";import{a as Mt,b as Rt,P as Lt}from"./popover-DBuD8VkZ.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-gq8mLEwk.js";import{g as ws,a as _s}from"./gateway-client-BjTndvcO.js";import{b as dt}from"./use-connection-CZ1NbbVy.js";import{u as Ds}from"./use-mcp-client-3JkIBVIw.js";import{u as Is}from"./use-mcp-tools-ByvSnFS9.js";import{I as Ps}from"./integration-icon-CkDjbcLK.js";import{M as As}from"./select-model-9Qz7X06u.js";import{u as $s}from"./use-ai-providers-zUKWfsvx.js";import{U as Es,b as Os}from"./build-improve-prompt-doc-D5lS20WO.js";import{a as ve,c as zs,d as Ks}from"./use-automations-DNYDf9Ty.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-MoYYfmsS.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-CvOWSuY7.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-Cilmqep0.js";import{u as Js}from"./shell-layout-DjDFDvAp.js";import{i as Vt}from"./ArrowLeft-FP_83xMo.js";import{i as Xs}from"./ArrowUp-B0lRrz50.js";import{s as Me}from"./UserCheck01-BzJrArBA.js";import{s as Qs}from"./Trash01-Tyi0X0KA.js";import{s as mt}from"./XClose-BCBhmnTq.js";import{u as _t}from"./use-debounced-autosave-CPlvHHLn.js";import{T as Ys,a as Zs}from"./input-DGwNGk5F.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-BMYvV1_v.js";import{s as to}from"./Plus-lVBJlI-r.js";import{i as ut}from"./Zap-DyZkYnvp.js";import{l as We,H as so}from"./config-CKam44yj.js";import{C as oo}from"./task-board-DHRO-oCR.js";import{M as Wt}from"./multi-select-CL-U4v6T.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-DDLvK1MW.js";import{b as ao,a as no,T as Dt}from"./tabs-BGcPqJhP.js";import{MonacoCodeEditor as io}from"./monaco-editor-BIu4Dvyb.js";import{A as ro}from"./automation-runs-Ctc1Vi83.js";import{C as lo}from"./collection-tabs-CkIuyvEg.js";import{a as co}from"./use-panel-navigate-D_4zKcAV.js";import"./use-mobile-D4Z5otBR.js";import"./MessageCircle01-CmMj6zOJ.js";import"./thread-button-BjvcH6Vx.js";import"./use-sidebar-collapsed-D2Rggp6e.js";import"./sheet-DwYk86zq.js";import"./use-chat-layout-state-DyZj7x9R.js";import"./toolbar-icon-button-B8gCtGPy.js";import"./use-in-settings-DpMiymIv.js";import"./resizable-Bmb2XXOb.js";import"./route-page-header-DpYcASGe.js";import"./LayoutLeft-CzGwliNd.js";import"./use-project-scope-DR1wnfkK.js";import"./repository-binding-C7rU_ngE.js";import"./use-current-view-EZITdVTI.js";import"./thread-route-PqBNFZfw.js";import"./index-BFdtW_Lt.js";import"./auth-D3aaR56V.js";import"./AlertCircle-DGhmQiH3.js";import"./ArrowRight-c12L_DBI.js";import"./Globe04-i-SMP1da.js";import"./CheckCircle-DQx8J3sX.js";import"./ChevronSelectorVertical-B8fgmPce.js";import"./ChevronUp-C6GRdhwz.js";import"./LinkBroken01-C-ZJkx1-.js";import"./CreditCard01-BrYzNGv7.js";import"./SwitchHorizontal01-B9k8zywr.js";import"./Eye-D1n0U2nr.js";import"./Fingerprint04-DWY8-Yis.js";import"./Key01-BNFXrDTG.js";import"./Minus-C12vvCq7.js";import"./Monitor01-DRn7cBTS.js";import"./Sun-CHBjoRg5.js";import"./Play-LuTO-O0l.js";import"./ShoppingBag01-Cqxv0G3l.js";import"./Upload01-BE_2AiDk.js";import"./Users01-B0nNOy2m.js";import"./index-CIjrpBSD.js";import"./drawer-DgvYa3k0.js";import"./index-Cf6V_if2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-CGKQp5Ve.js";import"./use-view-draft-kind-BqlsyAow.js";import"./use-blog-view-Cf0gUXmH.js";import"./use-organization-settings-DkS8IzZH.js";import"./schema-BNEJODyB.js";import"./thread-intent-D4UZcJTa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BkhdInio.js";import"./session-runtime-DUDcoTOp.js";import"./use-decopilot-events-BnISHAGr.js";import"./use-org-fs-BW-3KvTS.js";import"./useInfiniteQuery-C8AjoHI-.js";import"./infiniteQueryObserver-DpQtHqSr.js";import"./use-deployment-admin-BPWk2wkA.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BX7WVuqK.js";import"./project-icon-DWIG3WsN.js";import"./use-navigate-to-agent-DNuLTYeG.js";import"./use-debounced-value-Dd9WXi-P.js";import"./new-project-dialog-DGVfOfmA.js";import"./label-DQEXoY6T.js";import"./repository-picker-LXFO8bDM.js";import"./github-icon-CXz0klo1.js";import"./collection-search-DqZnq1kz.js";import"./new-project-store-DAT5Euei.js";import"./legacy-admin-welcome-dialog-DwPqDRJj.js";import"./required-auth-layout-Xfd5oNH3.js";import"./use-org-sso-CGL9Mumz.js";import"./suggestion-CFxVXMn8.js";import"./usage-stats-B3MiRtbE.js";import"./utils-CVEq3hMx.js";import"./markdown-CBsDAJwx.js";import"./use-copy-BktBumBM.js";import"./form-lT2yclrj.js";import"./use-mcp-prompts-BS4RJMA_.js";import"./task-key-dODSqtOD.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-C2k7wzhY.js";import"./table-DRfPsdaj.js";import"./empty-state-CAav-Xpz.js";import"./use-id-selection-Umi6LFyy.js";import"./use-infinite-scroll-CycWyrzU.js";import"./task-status-CfOd57tl.js";import"./thread-sheet-body-SffXqBpH.js";import"./useSuspenseInfiniteQuery-DkDXLw8E.js";import"./pair-BR0xVY7K.js";import"./use-task-board-items-D4msWN6P.js";import"./task-route-Cy5WEzJq.js";import"./project-index-BUfiy84V.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-GqMvWkA6.js";import"./types-CnPGvQg1.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-C9z66BGs.js";import"./file-type-icon-CFo6D_mq.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:zt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=Ye[s].icon;let j;e[0]!==o?(j=t.jsx(o,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==a||e[3]!==d.labelKey?(m=a(d.labelKey),e[2]=a,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==a||e[11]!==s?(g=mo.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:At("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-accent"),children:[t.jsx(y,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:a(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:a(l.subtitleKey)})]}),p===s&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:Ot},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Ft,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Q=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const O=ws(I._meta)??"__other__",Z=_s(I.name,O==="__other__"?void 0:O),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(O)||H.set(O,{clientId:O,conn:Q.get(O),tools:[]}),H.get(O).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(O=>I.has(O))?null:[...I]),ae=I=>{const O=new Set(V);O.has(I)?O.delete(I):O.add(I),E(O)},ne=(I,O)=>{const Z=new Set(V);for(const A of I)O?Z.add(A):Z.delete(A);E(Z)};y=Lt,P=o,v=j;let Y;e[26]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=Y):Y=e[26];let ie;e[27]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Y,ie,ue,me]})}),e[31]=ie,e[32]=ue,e[33]=N):N=e[33],l=Rt,D="p-0 w-80",k="start",p=Ss;let te;e[34]!==i?(te=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=te):te=e[35],e[36]!==te?(T=t.jsx(ks,{placeholder:te}),e[36]=te,e[37]=T):T=e[37];const fe=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let z;e[49]!==a?(z=()=>a([]),e[49]=a,e[50]=z):z=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==z||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:z,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:oe}),e[53]=z,e[54]=pe,e[55]=oe,e[56]=ce):ce=e[56];let de;e[57]!==C||e[58]!==ce?(de=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,ce]}),e[57]=C,e[58]=ce,e[59]=de):de=e[59],e[60]!==se||e[61]!==de?(_=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[se,de]}),e[60]=se,e[61]=de,e[62]=_):_=e[62],h=Ts,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Cs,{children:i("automations.automationConfig.noToolsFound")}),Bt.map(I=>{const O=I.tools.map(bo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const O=I.tools.map(yo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let F;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(F=t.jsxs(y,{open:P,onOpenChange:v,children:[N,K]}),e[77]=y,e[78]=v,e[79]=N,e[80]=K,e[81]=P,e[82]=F):F=e[82],F}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(ze,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),a?.()},children:[t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
1
+ import{dR as Zt,c as q,b as ee,r as w,j as t,B,a_ as qt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aW as at,y as nt,t as X,e3 as es,_ as ts,X as ss,Z as os,as,aq as ns,ar as is,Y as ze,b9 as rs,h as Le,aL as pt,aM as xt,aN as gt,aO as ht,bc as jt,aP as yt,aQ as bt,aR as vt,E as Ke,aI as ls,eb as Ct,I as Nt,hv as cs,am as ds,ba as Ze,n as Xe,f as ms}from"./index-ztdGKvBm.js";import{ChatLayout as us}from"./index-Co7YBLf6.js";import{b as it,v as fs,a as ps,Z as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Qe}from"./agent-icon-BYWtutu9.js";import{n as kt}from"./BookOpen01-DU-B3R7s.js";import{t as rt}from"./ChevronDown-XsLJSrfl.js";import{f as ys}from"./UserSquare-CafFh5_d.js";import{s as Tt}from"./File02-DaYek2y9.js";import{f as lt,b as Ot,t as zt}from"./Tool01-BCJ5kyrz.js";import{a as bs}from"./Image01-BcIZ5mtf.js";import{i as vs}from"./SearchMd-BD2qldmS.js";import{B as Kt}from"./badge-DcUertOZ.js";import{C as Ft}from"./checkbox-QUuOza1H.js";import{S as ct}from"./switch-B81oLbqr.js";import{a as Mt,b as Rt,P as Lt}from"./popover-C4oz5B-L.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-C3tlrKUq.js";import{g as ws,a as _s}from"./gateway-client-B4qzR3sF.js";import{b as dt}from"./use-connection-CcG4QE1K.js";import{u as Ds}from"./use-mcp-client-2MG3LveS.js";import{u as Is}from"./use-mcp-tools-DOqvKogJ.js";import{I as Ps}from"./integration-icon-Bo-3z9o3.js";import{M as As}from"./select-model-ocp0molk.js";import{u as $s}from"./use-ai-providers-Ct2xvYDX.js";import{U as Es,b as Os}from"./build-improve-prompt-doc-BBeWkVDi.js";import{a as ve,c as zs,d as Ks}from"./use-automations-BF2lxi1L.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-DFEln8mI.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-CadTVXY4.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-Bm0P1gm_.js";import{u as Js}from"./shell-layout-UF80oiAz.js";import{i as Vt}from"./ArrowLeft-B0PZnf1E.js";import{i as Xs}from"./ArrowUp-D5DDc3Cp.js";import{s as Me}from"./UserCheck01-k-4bTA2h.js";import{s as Qs}from"./Trash01-BxBhF2b8.js";import{s as mt}from"./XClose-CmTuu4UN.js";import{u as _t}from"./use-debounced-autosave-CCeLz8XW.js";import{T as Ys,a as Zs}from"./input-aLblPHPG.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-CucNVYe0.js";import{s as to}from"./Plus-DWySsEmB.js";import{i as ut}from"./Zap-CBJ7My90.js";import{l as We,H as so}from"./config-LEYSFIMn.js";import{C as oo}from"./task-board-i6qU2BVR.js";import{M as Wt}from"./multi-select-DT2CaFLR.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-CxXZwsSr.js";import{b as ao,a as no,T as Dt}from"./tabs-nQ7_UOyl.js";import{MonacoCodeEditor as io}from"./monaco-editor-CLzWWWtl.js";import{A as ro}from"./automation-runs-Dto_jEAs.js";import{C as lo}from"./collection-tabs-Cju2BOrS.js";import{a as co}from"./use-panel-navigate-0z93k6Ut.js";import"./use-mobile-C_hdQY5I.js";import"./MessageCircle01-BG1RhOiZ.js";import"./thread-button-CP83i3PG.js";import"./use-sidebar-collapsed-Cy-mIzeN.js";import"./sheet-C-umRrOH.js";import"./use-chat-layout-state-Im_c7sw4.js";import"./toolbar-icon-button-Cz-oOJ1w.js";import"./use-in-settings-CFQ9B3W2.js";import"./resizable-DNBx7bMi.js";import"./route-page-header-CApA0aIo.js";import"./LayoutLeft-DDtN-od-.js";import"./use-project-scope-BwqdbGG4.js";import"./repository-binding-D_Xc1yRH.js";import"./use-current-view-DBmQQ8uy.js";import"./thread-route-CfpvvkkL.js";import"./index-CDQbtG2e.js";import"./auth-C82OPjUx.js";import"./AlertCircle-BlMH0XE7.js";import"./ArrowRight-mzMrxxYI.js";import"./Globe04-CeAQ1YNm.js";import"./CheckCircle-DZ8MNpCP.js";import"./ChevronSelectorVertical-CB0fn1Nq.js";import"./ChevronUp-BQktpZWC.js";import"./LinkBroken01-DfUhihLM.js";import"./CreditCard01-MY4ouqtl.js";import"./SwitchHorizontal01-CMdpIiQk.js";import"./Eye-kjjhS0vP.js";import"./Fingerprint04-B2fDIuT8.js";import"./Key01-CaJGjh13.js";import"./Minus-hZzPDO0w.js";import"./Monitor01-DMFbvudn.js";import"./Sun-O9TdKcV_.js";import"./Play-BCFOaioW.js";import"./ShoppingBag01-BbjW7cod.js";import"./Upload01-q-rKSvZf.js";import"./Users01-DM58_gUL.js";import"./index-DMpANy5-.js";import"./drawer-CROtV2u4.js";import"./index-CJKec1wg.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-Gn1rhCN5.js";import"./use-view-draft-kind-BopwZu5H.js";import"./use-blog-view-DMfZjkz0.js";import"./use-organization-settings-C2vcrj4S.js";import"./schema-Bb-DbvPZ.js";import"./thread-intent-DyZ5A9F9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DdfLfQcH.js";import"./session-runtime-DBl1Hlcw.js";import"./use-decopilot-events-43RPCkUH.js";import"./use-org-fs-D9dHgOYs.js";import"./useInfiniteQuery-Ypmdjx1e.js";import"./infiniteQueryObserver-C3KEOANj.js";import"./use-deployment-admin-Cr4LWHG9.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Bg0zOPPj.js";import"./project-icon-fQqckccl.js";import"./use-navigate-to-agent-Cw8_3uU5.js";import"./use-debounced-value-DO5dvp6c.js";import"./new-project-dialog-BW6Lh52P.js";import"./label-8UxgpYiA.js";import"./repository-picker-CSaozawA.js";import"./github-icon-Bq9Ot22_.js";import"./collection-search-DkVgkcUC.js";import"./new-project-store-DID5OVrt.js";import"./legacy-admin-welcome-dialog-plmLACwz.js";import"./required-auth-layout-Cwtu4iIe.js";import"./use-org-sso-_fzcS8V-.js";import"./suggestion-aR93AXr2.js";import"./usage-stats-B0_Yl-r0.js";import"./utils-CVEq3hMx.js";import"./markdown-CJR_ooUO.js";import"./use-copy-DT4_uVrH.js";import"./form-DlZ0KMAb.js";import"./use-mcp-prompts-qJSiAdA5.js";import"./task-key-Bt60Ndov.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-ipOJFDhA.js";import"./table-C3AdbrSy.js";import"./empty-state-I_cTbW85.js";import"./use-id-selection-DNp_iXDg.js";import"./use-infinite-scroll-DdrDrAAo.js";import"./task-status-DYgcNbkh.js";import"./thread-sheet-body-CC8y_ZHb.js";import"./useSuspenseInfiniteQuery-Pk4rU2Ft.js";import"./pair-DmyTA2cC.js";import"./use-task-board-items-D2aUd0HA.js";import"./task-route-C3cK6F8S.js";import"./project-index-C2IrSomv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DU6s3Olv.js";import"./types-5-cDe_8u.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-BK5BfLdO.js";import"./file-type-icon-CdjLDWdN.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:zt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=Ye[s].icon;let j;e[0]!==o?(j=t.jsx(o,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==a||e[3]!==d.labelKey?(m=a(d.labelKey),e[2]=a,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==a||e[11]!==s?(g=mo.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:At("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-accent"),children:[t.jsx(y,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:a(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:a(l.subtitleKey)})]}),p===s&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:Ot},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Ft,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Q=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const O=ws(I._meta)??"__other__",Z=_s(I.name,O==="__other__"?void 0:O),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(O)||H.set(O,{clientId:O,conn:Q.get(O),tools:[]}),H.get(O).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(O=>I.has(O))?null:[...I]),ae=I=>{const O=new Set(V);O.has(I)?O.delete(I):O.add(I),E(O)},ne=(I,O)=>{const Z=new Set(V);for(const A of I)O?Z.add(A):Z.delete(A);E(Z)};y=Lt,P=o,v=j;let Y;e[26]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=Y):Y=e[26];let ie;e[27]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Y,ie,ue,me]})}),e[31]=ie,e[32]=ue,e[33]=N):N=e[33],l=Rt,D="p-0 w-80",k="start",p=Ss;let te;e[34]!==i?(te=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=te):te=e[35],e[36]!==te?(T=t.jsx(ks,{placeholder:te}),e[36]=te,e[37]=T):T=e[37];const fe=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let z;e[49]!==a?(z=()=>a([]),e[49]=a,e[50]=z):z=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==z||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:z,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:oe}),e[53]=z,e[54]=pe,e[55]=oe,e[56]=ce):ce=e[56];let de;e[57]!==C||e[58]!==ce?(de=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,ce]}),e[57]=C,e[58]=ce,e[59]=de):de=e[59],e[60]!==se||e[61]!==de?(_=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[se,de]}),e[60]=se,e[61]=de,e[62]=_):_=e[62],h=Ts,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Cs,{children:i("automations.automationConfig.noToolsFound")}),Bt.map(I=>{const O=I.tools.map(bo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const O=I.tools.map(yo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let F;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(F=t.jsxs(y,{open:P,onOpenChange:v,children:[N,K]}),e[77]=y,e[78]=v,e[79]=N,e[80]=K,e[81]=P,e[82]=F):F=e[82],F}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(ze,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),a?.()},children:[t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
2
2
  -H "Authorization: Bearer ${i}" \\
3
3
  -H "Content-Type: application/json" \\
4
4
  -d '{"hello":"world"}'`:`curl -X POST "${S}" \\
@@ -1 +1 @@
1
- import{c as S,b as O,r as G,j as e,n as a,E as Q,B as V,ba as U}from"./index-CTKVsdNw.js";import{ChatLayout as W}from"./index-YMgj8hIR.js";import{s as X}from"./Plus-lVBJlI-r.js";import{a as Y}from"./UserCheck01-BzJrArBA.js";import{i as F}from"./Zap-DyZkYnvp.js";import{S as Z}from"./search-input-DlGuVm3Y.js";import{E as $}from"./empty-state-CAav-Xpz.js";import{u as tt,a as et,b as it}from"./use-automations-DNYDf9Ty.js";import{a as ot}from"./use-panel-navigate-D_4zKcAV.js";import{A as st}from"./automation-list-row-DWVzdhwb.js";import{c as nt}from"./thread-route-PqBNFZfw.js";import"./use-mobile-D4Z5otBR.js";import"./tooltip-Cilmqep0.js";import"./index-BFdtW_Lt.js";import"./MessageCircle01-CmMj6zOJ.js";import"./XClose-BCBhmnTq.js";import"./thread-button-BjvcH6Vx.js";import"./use-sidebar-collapsed-D2Rggp6e.js";import"./sheet-DwYk86zq.js";import"./use-chat-layout-state-DyZj7x9R.js";import"./toolbar-icon-button-B8gCtGPy.js";import"./use-in-settings-DpMiymIv.js";import"./resizable-Bmb2XXOb.js";import"./route-page-header-DpYcASGe.js";import"./LayoutLeft-CzGwliNd.js";import"./use-project-scope-DR1wnfkK.js";import"./repository-binding-C7rU_ngE.js";import"./use-mcp-client-3JkIBVIw.js";import"./auth-D3aaR56V.js";import"./use-current-view-EZITdVTI.js";import"./SearchMd-DlyifTmg.js";import"./badge-D4t_0yop.js";import"./SwitchHorizontal01-B9k8zywr.js";import"./Trash01-Tyi0X0KA.js";import"./agent-icon-BeQK1LIp.js";import"./AlertCircle-DGhmQiH3.js";import"./Tool01-BCxvp4xD.js";import"./ArrowUp-B0lRrz50.js";import"./ArrowLeft-FP_83xMo.js";import"./ArrowRight-c12L_DBI.js";import"./BookOpen01-CGmiFh6c.js";import"./Globe04-i-SMP1da.js";import"./CheckCircle-DQx8J3sX.js";import"./ChevronDown-C2op7Ztq.js";import"./ChevronSelectorVertical-B8fgmPce.js";import"./ChevronUp-C6GRdhwz.js";import"./UserSquare-Csaj5_OE.js";import"./LinkBroken01-C-ZJkx1-.js";import"./CreditCard01-BrYzNGv7.js";import"./File02-lnmDsOIM.js";import"./Eye-D1n0U2nr.js";import"./Fingerprint04-DWY8-Yis.js";import"./Image01-D0d8t9Nf.js";import"./Key01-BNFXrDTG.js";import"./Minus-C12vvCq7.js";import"./Monitor01-DRn7cBTS.js";import"./Sun-CHBjoRg5.js";import"./Play-LuTO-O0l.js";import"./ShoppingBag01-Cqxv0G3l.js";import"./Upload01-BE_2AiDk.js";import"./Users01-B0nNOy2m.js";function rt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function at(o){const t=S.c(45),{virtualMcpId:n}=o,i=O(),{openPanel:r}=ot(),{data:D,error:M}=tt(n),v=D===void 0?[]:D,{create:y}=et(),[_,H]=G.useState("");if(M&&rt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==r?(j=()=>r("settings"),t[5]=r,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const J=_.toLowerCase(),q=v.filter(s=>s.name.toLowerCase().includes(J));let w;t[16]!==r?(w=s=>r(`automation:${s}`),t[16]=r,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:n,existing_count:v.length});const s=await y.mutateAsync(it(n));B(s.id)},K=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(X,{size:14}),t[18]=A):A=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==m?(L=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[A,m]}),t[21]=y.isPending,t[22]=R,t[23]=m,t[24]=L):L=t[24];const P=L,E=a,T=a,k=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(a.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=v.length>0&&e.jsx(Z,{value:_,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=v.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let b;return t[42]!==E||t[43]!==f?(b=e.jsx(E,{children:f}),t[42]=E,t[43]=f,t[44]=b):b=t[44],b}function mt(o){const t=S.c(3),{virtualMcpId:n}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let r;return t[1]!==n?(r=e.jsx(G.Suspense,{fallback:i,children:e.jsx(at,{virtualMcpId:n})}),t[1]=n,t[2]=r):r=t[2],r}function lt(){const o=S.c(2),t=nt();let n;return o[0]!==t?(n=e.jsx(mt,{virtualMcpId:t}),o[0]=t,o[1]=n):n=o[1],n}function je(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{je as default};
1
+ import{c as S,b as O,r as G,j as e,n as a,E as Q,B as V,ba as U}from"./index-ztdGKvBm.js";import{ChatLayout as W}from"./index-Co7YBLf6.js";import{s as X}from"./Plus-DWySsEmB.js";import{a as Y}from"./UserCheck01-k-4bTA2h.js";import{i as F}from"./Zap-CBJ7My90.js";import{S as Z}from"./search-input-BQ8Dp8aD.js";import{E as $}from"./empty-state-I_cTbW85.js";import{u as tt,a as et,b as it}from"./use-automations-BF2lxi1L.js";import{a as ot}from"./use-panel-navigate-0z93k6Ut.js";import{A as st}from"./automation-list-row-4ox_h99L.js";import{c as nt}from"./thread-route-CfpvvkkL.js";import"./use-mobile-C_hdQY5I.js";import"./tooltip-Bm0P1gm_.js";import"./index-CDQbtG2e.js";import"./MessageCircle01-BG1RhOiZ.js";import"./XClose-CmTuu4UN.js";import"./thread-button-CP83i3PG.js";import"./use-sidebar-collapsed-Cy-mIzeN.js";import"./sheet-C-umRrOH.js";import"./use-chat-layout-state-Im_c7sw4.js";import"./toolbar-icon-button-Cz-oOJ1w.js";import"./use-in-settings-CFQ9B3W2.js";import"./resizable-DNBx7bMi.js";import"./route-page-header-CApA0aIo.js";import"./LayoutLeft-DDtN-od-.js";import"./use-project-scope-BwqdbGG4.js";import"./repository-binding-D_Xc1yRH.js";import"./use-mcp-client-2MG3LveS.js";import"./auth-C82OPjUx.js";import"./use-current-view-DBmQQ8uy.js";import"./SearchMd-BD2qldmS.js";import"./badge-DcUertOZ.js";import"./SwitchHorizontal01-CMdpIiQk.js";import"./Trash01-BxBhF2b8.js";import"./agent-icon-BYWtutu9.js";import"./AlertCircle-BlMH0XE7.js";import"./Tool01-BCJ5kyrz.js";import"./ArrowUp-D5DDc3Cp.js";import"./ArrowLeft-B0PZnf1E.js";import"./ArrowRight-mzMrxxYI.js";import"./BookOpen01-DU-B3R7s.js";import"./Globe04-CeAQ1YNm.js";import"./CheckCircle-DZ8MNpCP.js";import"./ChevronDown-XsLJSrfl.js";import"./ChevronSelectorVertical-CB0fn1Nq.js";import"./ChevronUp-BQktpZWC.js";import"./UserSquare-CafFh5_d.js";import"./LinkBroken01-DfUhihLM.js";import"./CreditCard01-MY4ouqtl.js";import"./File02-DaYek2y9.js";import"./Eye-kjjhS0vP.js";import"./Fingerprint04-B2fDIuT8.js";import"./Image01-BcIZ5mtf.js";import"./Key01-CaJGjh13.js";import"./Minus-hZzPDO0w.js";import"./Monitor01-DMFbvudn.js";import"./Sun-O9TdKcV_.js";import"./Play-BCFOaioW.js";import"./ShoppingBag01-BbjW7cod.js";import"./Upload01-q-rKSvZf.js";import"./Users01-DM58_gUL.js";function rt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function at(o){const t=S.c(45),{virtualMcpId:n}=o,i=O(),{openPanel:r}=ot(),{data:D,error:M}=tt(n),v=D===void 0?[]:D,{create:y}=et(),[_,H]=G.useState("");if(M&&rt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==r?(j=()=>r("settings"),t[5]=r,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const J=_.toLowerCase(),q=v.filter(s=>s.name.toLowerCase().includes(J));let w;t[16]!==r?(w=s=>r(`automation:${s}`),t[16]=r,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:n,existing_count:v.length});const s=await y.mutateAsync(it(n));B(s.id)},K=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(X,{size:14}),t[18]=A):A=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==m?(L=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[A,m]}),t[21]=y.isPending,t[22]=R,t[23]=m,t[24]=L):L=t[24];const P=L,E=a,T=a,k=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(a.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=v.length>0&&e.jsx(Z,{value:_,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=v.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let b;return t[42]!==E||t[43]!==f?(b=e.jsx(E,{children:f}),t[42]=E,t[43]=f,t[44]=b):b=t[44],b}function mt(o){const t=S.c(3),{virtualMcpId:n}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let r;return t[1]!==n?(r=e.jsx(G.Suspense,{fallback:i,children:e.jsx(at,{virtualMcpId:n})}),t[1]=n,t[2]=r):r=t[2],r}function lt(){const o=S.c(2),t=nt();let n;return o[0]!==t?(n=e.jsx(mt,{virtualMcpId:t}),o[0]=t,o[1]=n):n=o[1],n}function je(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{je as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-calendar-C7KRPE_7.js","assets/index-CTKVsdNw.js","assets/index-DOMlzk_A.css","assets/agent-icon-BeQK1LIp.js","assets/AlertCircle-DGhmQiH3.js","assets/UserCheck01-BzJrArBA.js","assets/Tool01-BCxvp4xD.js","assets/ArrowUp-B0lRrz50.js","assets/ArrowLeft-FP_83xMo.js","assets/ArrowRight-c12L_DBI.js","assets/BookOpen01-CGmiFh6c.js","assets/Globe04-i-SMP1da.js","assets/CheckCircle-DQx8J3sX.js","assets/ChevronDown-C2op7Ztq.js","assets/ChevronSelectorVertical-B8fgmPce.js","assets/ChevronUp-C6GRdhwz.js","assets/UserSquare-Csaj5_OE.js","assets/LinkBroken01-C-ZJkx1-.js","assets/CreditCard01-BrYzNGv7.js","assets/File02-lnmDsOIM.js","assets/MessageCircle01-CmMj6zOJ.js","assets/SwitchHorizontal01-B9k8zywr.js","assets/Eye-D1n0U2nr.js","assets/Fingerprint04-DWY8-Yis.js","assets/Image01-D0d8t9Nf.js","assets/Key01-BNFXrDTG.js","assets/LayoutLeft-CzGwliNd.js","assets/Minus-C12vvCq7.js","assets/Monitor01-DRn7cBTS.js","assets/Sun-CHBjoRg5.js","assets/Play-LuTO-O0l.js","assets/Plus-lVBJlI-r.js","assets/SearchMd-DlyifTmg.js","assets/ShoppingBag01-Cqxv0G3l.js","assets/Trash01-Tyi0X0KA.js","assets/Upload01-BE_2AiDk.js","assets/Users01-B0nNOy2m.js","assets/XClose-BCBhmnTq.js","assets/Zap-DyZkYnvp.js","assets/scroll-area-C9_ZoUPP.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-BCyFM0Ok.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BR0xVY7K.js","assets/collapsible-CvOWSuY7.js","assets/use-copy-BktBumBM.js","assets/usage-stats-B3MiRtbE.js","assets/utils-CVEq3hMx.js","assets/markdown-CBsDAJwx.js","assets/chat-context-MoYYfmsS.js","assets/use-panel-navigate-D_4zKcAV.js","assets/thread-route-PqBNFZfw.js","assets/use-project-scope-DR1wnfkK.js","assets/repository-binding-C7rU_ngE.js","assets/use-mcp-client-3JkIBVIw.js","assets/auth-D3aaR56V.js","assets/use-view-draft-kind-BqlsyAow.js","assets/use-blog-view-Cf0gUXmH.js","assets/use-organization-settings-DkS8IzZH.js","assets/schema-BNEJODyB.js","assets/task-board-DHRO-oCR.js","assets/thread-intent-D4UZcJTa.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-BkhdInio.js","assets/session-runtime-DUDcoTOp.js","assets/use-entitlements-CGKQp5Ve.js","assets/use-ai-providers-zUKWfsvx.js","assets/use-current-view-EZITdVTI.js","assets/use-in-settings-DpMiymIv.js","assets/use-decopilot-events-BnISHAGr.js","assets/use-org-fs-BW-3KvTS.js","assets/useInfiniteQuery-C8AjoHI-.js","assets/infiniteQueryObserver-DpQtHqSr.js","assets/use-mobile-D4Z5otBR.js","assets/tooltip-Cilmqep0.js","assets/index-BFdtW_Lt.js","assets/gateway-client-BjTndvcO.js","assets/form-lT2yclrj.js","assets/label-DQEXoY6T.js","assets/task-key-dODSqtOD.js","assets/use-task-board-items-D4msWN6P.js","assets/config-CKam44yj.js","assets/task-route-Cy5WEzJq.js","assets/project-index-BUfiy84V.js","assets/shell-layout-DjDFDvAp.js","assets/use-deployment-admin-BPWk2wkA.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-BX7WVuqK.js","assets/command-gq8mLEwk.js","assets/index-CIjrpBSD.js","assets/integration-icon-CkDjbcLK.js","assets/project-icon-DWIG3WsN.js","assets/use-navigate-to-agent-DNuLTYeG.js","assets/use-debounced-value-Dd9WXi-P.js","assets/new-project-dialog-DGVfOfmA.js","assets/repository-picker-LXFO8bDM.js","assets/github-icon-CXz0klo1.js","assets/collection-search-DqZnq1kz.js","assets/new-project-store-DAT5Euei.js","assets/legacy-admin-welcome-dialog-DwPqDRJj.js","assets/drawer-DgvYa3k0.js","assets/required-auth-layout-Xfd5oNH3.js","assets/use-org-sso-CGL9Mumz.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-GqMvWkA6.js","assets/types-CnPGvQg1.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-DwYk86zq.js","assets/use-connection-CZ1NbbVy.js","assets/use-mcp-prompts-BS4RJMA_.js","assets/use-thread-outputs-C9z66BGs.js","assets/file-type-icon-CFo6D_mq.js","assets/section-array-field-C-IVu4bI.js","assets/blocks-tab-states-CBGKB5th.js","assets/site-editor-toast-CZULEbbj.js","assets/content-changes-B7QLNPm9.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-DWTS0v2d.js","assets/use-blocks-v8-project-B_RMtP9Z.js","assets/use-voice-input-BxiteUCw.js","assets/popover-DBuD8VkZ.js","assets/index-Cf6V_if2.js","assets/checkbox-BB8KVrhZ.js","assets/select-DDLvK1MW.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-BTsdsvJd.js","assets/sandbox-git-api-zgEm1abw.js","assets/empty-state-CAav-Xpz.js","assets/item-actions-KIdbZTtB.js","assets/badge-D4t_0yop.js","assets/empty-state-R8mrYCIa.js","assets/delete-copy-CKxy6ck-.js","assets/use-never-published-CvngtHyh.js","assets/hosted-reconcile-LANuriok.js","assets/search-input-DlGuVm3Y.js","assets/tabs-BGcPqJhP.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-CcLJWcIx.js","assets/asset-utils-kGLknUlk.js","assets/index-CpCzT9a1.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-CIDyBlnB.js","assets/primitives-B9kPUDQM.js","assets/use-move-blocks-Brooe0Rr.js","assets/monaco-editor-BIu4Dvyb.js","assets/editor-C2k7wzhY.js","assets/record-editor-DXGRK_O0.js","assets/save-status-P-MBD5-0.js","assets/switch-BOASvXY2.js","assets/toggle-group-BcyNxcnc.js","assets/blog-schema-Diy1WhGr.js","assets/held-block-view-Jaxz4Y5b.js","assets/calendar-DqJcyMVN.js","assets/editor-classes-Ds44wzZG.js","assets/sortable.esm-Ci07B_Jj.js","assets/named-rule-step-DUY-1xO9.js","assets/slider-BM8aiQga.js","assets/index-B--QVBAJ.js","assets/tooltipContext-HNg68jH0.js","assets/CategoricalChart-CvWzaQub.js","assets/index-CrQFnFIn.js","assets/combobox-BTk2iFx5.js","assets/use-autosave-C_qxtxF5.js","assets/category-editor-DoyoJKV_.js","assets/blog-preview-url-C4jHo7Om.js","assets/use-fast-preview-draft-url-CPu4xvwz.js","assets/block-document-CrxZdpMf.js","assets/suggestion-CFxVXMn8.js","assets/product-picker-dialog-CUwMfU8B.js","assets/index-DjiY50Ig.js","assets/context-YCyFfQO8.js","assets/index-CC6YS-rB.js","assets/icon-button-DnYO-W8b.js","assets/use-delete-block-DTWO1nrc.js"])))=>i.map(i=>d[i]);
2
- import{c as X,b as ie,j as t,r as M,bb as oe,h as ae,aR as xe,aQ as be,aN as ye,aL as ve,aM as ke,aP as Ce,aO as je,bc as _e,m as we,bd as Se,be as Pe,t as T,B as Be,d as De,f as Ae,u as Ne,$ as le,bf as Ee}from"./index-CTKVsdNw.js";import{ChatLayout as Re}from"./index-YMgj8hIR.js";import{S as Te}from"./site-draft-actions-BFo_T6rU.js";import{F as $e}from"./feature-gate-CzNyzvDc.js";import{i as ne}from"./File02-lnmDsOIM.js";import{s as Ie}from"./Plus-lVBJlI-r.js";import{s as Le,a as Ke}from"./UserSquare-Csaj5_OE.js";import{c as ce}from"./UserCheck01-BzJrArBA.js";import{t as me}from"./Users01-B0nNOy2m.js";import{S as Ve}from"./scroll-area-C9_ZoUPP.js";import{T as Me,a as Fe,c as Oe}from"./tooltip-Cilmqep0.js";import{u as ze,a as Ge,d as Qe}from"./delete-copy-CKxy6ck-.js";import{u as Ue,a as We,k as Z}from"./use-never-published-CvngtHyh.js";import{u as qe}from"./use-delete-block-DTWO1nrc.js";import{d as He,f as Je}from"./site-editor-toast-CZULEbbj.js";import{C as J,u as Xe,P as Ye,L as Ze,I as et,a as tt,s as ot,r as st}from"./item-actions-KIdbZTtB.js";import{i as rt,B as te,s as it,E as at,o as lt,c as nt,m as ct,b as ee,g as se,e as mt,a as re,l as pt,r as dt,d as ut,f as ft,u as gt}from"./category-tree-BCyFM0Ok.js";import{u as ht}from"./primitives-B9kPUDQM.js";import{F as xt}from"./agent-icon-BeQK1LIp.js";import{B as bt,a as yt}from"./blog-source-gate-Zm7I_b_g.js";import{r as vt}from"./use-panel-navigate-D_4zKcAV.js";import{c as kt}from"./thread-route-PqBNFZfw.js";import{A as Ct}from"./agent-view-guard-BsFLMhUD.js";import{a as jt}from"./blog-view-gate-2cHU2UiQ.js";import"./use-mobile-D4Z5otBR.js";import"./MessageCircle01-CmMj6zOJ.js";import"./XClose-BCBhmnTq.js";import"./thread-button-BjvcH6Vx.js";import"./use-sidebar-collapsed-D2Rggp6e.js";import"./sheet-DwYk86zq.js";import"./use-chat-layout-state-DyZj7x9R.js";import"./toolbar-icon-button-B8gCtGPy.js";import"./use-in-settings-DpMiymIv.js";import"./resizable-Bmb2XXOb.js";import"./route-page-header-DpYcASGe.js";import"./LayoutLeft-CzGwliNd.js";import"./use-project-scope-DR1wnfkK.js";import"./repository-binding-C7rU_ngE.js";import"./use-mcp-client-3JkIBVIw.js";import"./auth-D3aaR56V.js";import"./use-current-view-EZITdVTI.js";import"./separator-D4AcMC3Q.js";import"./chat-context-MoYYfmsS.js";import"./use-view-draft-kind-BqlsyAow.js";import"./use-blog-view-Cf0gUXmH.js";import"./use-organization-settings-DkS8IzZH.js";import"./schema-BNEJODyB.js";import"./task-board-DHRO-oCR.js";import"./thread-intent-D4UZcJTa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BkhdInio.js";import"./session-runtime-DUDcoTOp.js";import"./use-entitlements-CGKQp5Ve.js";import"./use-ai-providers-zUKWfsvx.js";import"./use-decopilot-events-BnISHAGr.js";import"./use-org-fs-BW-3KvTS.js";import"./useInfiniteQuery-C8AjoHI-.js";import"./infiniteQueryObserver-DpQtHqSr.js";import"./use-org-notice-BX7WVuqK.js";import"./popover-DBuD8VkZ.js";import"./command-gq8mLEwk.js";import"./index-CIjrpBSD.js";import"./SearchMd-DlyifTmg.js";import"./tabs-BGcPqJhP.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-C2op7Ztq.js";import"./SwitchHorizontal01-B9k8zywr.js";import"./Tool01-BCxvp4xD.js";import"./Trash01-Tyi0X0KA.js";import"./use-voice-input-BxiteUCw.js";import"./drawer-DgvYa3k0.js";import"./index-Cf6V_if2.js";import"./checkbox-BB8KVrhZ.js";import"./Minus-C12vvCq7.js";import"./select-DDLvK1MW.js";import"./index-BdQq_4o_.js";import"./index-BFdtW_Lt.js";import"./ChevronUp-C6GRdhwz.js";import"./ArrowLeft-FP_83xMo.js";import"./ChevronSelectorVertical-B8fgmPce.js";import"./Key01-BNFXrDTG.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-DRn7cBTS.js";import"./AlertCircle-DGhmQiH3.js";import"./Eye-D1n0U2nr.js";import"./Image01-D0d8t9Nf.js";import"./use-debounced-value-Dd9WXi-P.js";import"./shell-layout-DjDFDvAp.js";import"./Globe04-i-SMP1da.js";import"./use-deployment-admin-BPWk2wkA.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DQx8J3sX.js";import"./Zap-DyZkYnvp.js";import"./integration-icon-CkDjbcLK.js";import"./LinkBroken01-C-ZJkx1-.js";import"./project-icon-DWIG3WsN.js";import"./use-navigate-to-agent-DNuLTYeG.js";import"./new-project-dialog-DGVfOfmA.js";import"./label-DQEXoY6T.js";import"./repository-picker-LXFO8bDM.js";import"./github-icon-CXz0klo1.js";import"./collection-search-DqZnq1kz.js";import"./BookOpen01-CGmiFh6c.js";import"./ShoppingBag01-Cqxv0G3l.js";import"./new-project-store-DAT5Euei.js";import"./legacy-admin-welcome-dialog-DwPqDRJj.js";import"./required-auth-layout-Xfd5oNH3.js";import"./use-org-sso-CGL9Mumz.js";import"./cms-store-drafts-CwV6xthd.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-cDV9Te_c.js";import"./url-slug-ClELDWkv.js";import"./use-blocks-v8-project-B_RMtP9Z.js";import"./content-changes-B7QLNPm9.js";import"./use-fast-preview-draft-url-CPu4xvwz.js";import"./blocks-tab-states-CBGKB5th.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-CAav-Xpz.js";import"./index-BdizT4sC.js";import"./ArrowUp-B0lRrz50.js";import"./input-A0pROuXz.js";import"./usage-stats-B3MiRtbE.js";import"./utils-CVEq3hMx.js";import"./markdown-CBsDAJwx.js";import"./use-copy-BktBumBM.js";import"./gateway-client-BjTndvcO.js";import"./form-lT2yclrj.js";import"./icon-button-DnYO-W8b.js";import"./file-type-icon-CFo6D_mq.js";import"./chat-draft-Gm7m0AHh.js";import"./ArrowRight-c12L_DBI.js";import"./Upload01-BE_2AiDk.js";import"./use-deco-credits-C7fZIj6N.js";import"./toggle-group-BcyNxcnc.js";import"./input-DGwNGk5F.js";import"./suggestion-CFxVXMn8.js";import"./use-mcp-prompts-BS4RJMA_.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CIskqUv5.js";import"./plan-ladder-CYLyF8a4.js";import"./add-connection-dialog-B3Q9C4ta.js";import"./extract-connection-data-DJrQm_Aj.js";import"./metadata-D72DunRR.js";import"./connection-PdY1jdjN.js";import"./connection-card-rF-q91cm.js";import"./connection-slug-CLSeWQFu.js";import"./textarea-CIDyBlnB.js";import"./use-connection-CZ1NbbVy.js";import"./schema-DehrCLDJ.js";import"./connection-form-helpers-BbSye8zz.js";import"./authenticate-and-persist-oauth-CfD2cssG.js";import"./mcp-oauth-n1oSp2-S.js";import"./mcp-oauth-JdceSX9b.js";import"./collection-tabs-CkIuyvEg.js";import"./badge-D4t_0yop.js";import"./use-infinite-scroll-CycWyrzU.js";import"./useSuspenseInfiniteQuery-DkDXLw8E.js";import"./use-task-board-items-D4msWN6P.js";import"./pair-BR0xVY7K.js";import"./collapsible-CvOWSuY7.js";import"./task-key-dODSqtOD.js";import"./config-CKam44yj.js";import"./task-route-Cy5WEzJq.js";import"./project-index-BUfiy84V.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-GqMvWkA6.js";import"./types-CnPGvQg1.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-C9z66BGs.js";import"./agent-capabilities-CwQVSwUn.js";import"./use-cms-publish-actions-CD9zGQ2J.js";import"./use-content-sync-Cq2aGUf5.js";import"./sandbox-git-api-zgEm1abw.js";import"./utils-BTsdsvJd.js";import"./device-hint-C_jFHzsP.js";import"./alert-qFpOptTR.js";import"./section-array-field-C-IVu4bI.js";import"./editor-C2k7wzhY.js";import"./save-changes-debug-nBi-n9eV.js";import"./use-sandbox-events-DWTS0v2d.js";import"./sandbox-lifecycle-context-B8XBQ27H.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-CpCzT9a1.js";import"./hosted-reconcile-LANuriok.js";import"./search-input-DlGuVm3Y.js";import"./use-file-configs-CcLJWcIx.js";import"./asset-utils-kGLknUlk.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-R8mrYCIa.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-BIu4Dvyb.js";import"./Play-LuTO-O0l.js";import"./use-move-blocks-Brooe0Rr.js";import"./CreditCard01-BrYzNGv7.js";import"./Fingerprint04-DWY8-Yis.js";import"./Sun-CHBjoRg5.js";import"./blog-preview-url-C4jHo7Om.js";import"./use-main-panel-tabs-ZkgyCIQo.js";import"./use-mcp-tools-ByvSnFS9.js";import"./resolve-tab-icon-NbNekjKu.js";import"./use-task-metadata-u5FWrVcz.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-BIR5C8xh.js";function _t(i){const e=X.c(53),{active:a,counts:g,showContext:v,onSelect:n}=i,o=ie();let d;e[0]!==o?(d=o("sandbox.collectionsSidebar.blog"),e[0]=o,e[1]=d):d=e[1];let c;e[2]!==d?(c=t.jsx("div",{className:"flex h-12 shrink-0 items-center border-b px-3",children:t.jsx("span",{className:"text-sm font-medium",children:d})}),e[2]=d,e[3]=c):c=e[3];let u;e[4]!==a||e[5]!==n||e[6]!==v||e[7]!==o?(u=v&&t.jsx(J,{icon:Le,label:o("sandbox.collectionsSidebar.context"),active:a==="context",onClick:()=>n("context")}),e[4]=a,e[5]=n,e[6]=v,e[7]=o,e[8]=u):u=e[8];let s;e[9]!==o?(s=o("sandbox.collectionsSidebar.posts"),e[9]=o,e[10]=s):s=e[10];const j=a==="posts";let x;e[11]!==n?(x=()=>n("posts"),e[11]=n,e[12]=x):x=e[12];let b;e[13]!==g.posts||e[14]!==s||e[15]!==j||e[16]!==x?(b=t.jsx(J,{icon:ne,label:s,count:g.posts,active:j,onClick:x}),e[13]=g.posts,e[14]=s,e[15]=j,e[16]=x,e[17]=b):b=e[17];let y;e[18]!==o?(y=o("sandbox.collectionsSidebar.authors"),e[18]=o,e[19]=y):y=e[19];const k=a==="authors";let l;e[20]!==n?(l=()=>n("authors"),e[20]=n,e[21]=l):l=e[21];let m;e[22]!==g.authors||e[23]!==l||e[24]!==y||e[25]!==k?(m=t.jsx(J,{icon:me,label:y,count:g.authors,active:k,onClick:l}),e[22]=g.authors,e[23]=l,e[24]=y,e[25]=k,e[26]=m):m=e[26];let h;e[27]!==o?(h=o("sandbox.collectionsSidebar.categories"),e[27]=o,e[28]=h):h=e[28];const f=a==="categories";let S;e[29]!==n?(S=()=>n("categories"),e[29]=n,e[30]=S):S=e[30];let A;e[31]!==g.categories||e[32]!==h||e[33]!==f||e[34]!==S?(A=t.jsx(J,{icon:ce,label:h,count:g.categories,active:f,onClick:S}),e[31]=g.categories,e[32]=h,e[33]=f,e[34]=S,e[35]=A):A=e[35];let N;e[36]!==o?(N=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=N):N=e[37];const Q=a==="post-schedule";let D;e[38]!==n?(D=()=>n("post-schedule"),e[38]=n,e[39]=D):D=e[39];let B;e[40]!==N||e[41]!==Q||e[42]!==D?(B=t.jsx(J,{icon:xt,label:N,active:Q,onClick:D}),e[40]=N,e[41]=Q,e[42]=D,e[43]=B):B=e[43];let E;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(E=t.jsxs("nav",{className:"flex flex-col gap-0.5 p-1.5",children:[u,b,m,A,B]}),e[44]=m,e[45]=A,e[46]=B,e[47]=u,e[48]=b,e[49]=E):E=e[49];let C;return e[50]!==c||e[51]!==E?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,E]}),e[50]=c,e[51]=E,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-C7KRPE_7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-DXGRK_O0.js"),__vite__mapDeps([150,1,2,80,126,40,77,13,15,145,151,24,34,35,136,122,66,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,123,102,76,75,3,4,5,6,7,8,9,10,11,12,14,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,152,153,144,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,154,155,156,157,158,159,160,161,162,163,164,165,39,146,147,166])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-DoyoJKV_.js"),__vite__mapDeps([167,1,2,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,4,9,19,16,80,126,40,77,13,15,154,5,155,136,122,123,102,76,75,3,6,7,8,10,11,12,14,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,151,152,153,144,156,145,157,81,158,42,43,44,45,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,159,160,161,162,163,164,165,39,168,147,169,166,170,135,143,171,146,172,173])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-YCyFfQO8.js"),__vite__mapDeps([174,1,2,137,117,118,54,55,56,64,119,50,51,52,53,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,120,121,122,123,102,76,77,75,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,126,40,127,128,129,130,116,131,133,80,152,145,135,47,48,49,46,78,79,136,138,139,140,95,141,142,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,143,166,151,153,144,146,147,175,157,171,173,176,177,156,172])).then(i=>({default:i.BlogContext})));function Dt(i){return i==="authors"||i==="categories"}function At({context:i,collection:e,item:a,onOpenCollection:g,onSelectItem:v,onOpenPost:n}){const o=ie(),{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j,sitePreviewUrl:x,hostedDraft:b}=i,y=ze(),k=Ge(c),l=Pe(e,y),m=Ue({orgSlug:d,virtualMcpId:c,branch:u}),h=qe({orgSlug:d,virtualMcpId:c,branch:u}),f=m.v8,S=He({orgSlug:d,virtualMcpId:c,branch:u}),A=Je(b?{orgSlug:d,virtualMcpId:c,branch:u}:null,rt),N=We({orgSlug:d,virtualMcpId:c,branch:u}),[Q,D]=M.useState(""),[B,E]=M.useState("list"),[C,$]=M.useState(null),U=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Qe("block",b,{neverPublished:N(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:U,description:K},b),[F,O]=M.useState(l);F!==l&&(O(l),D(""));const P=ht({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),z=it(s),pe={posts:z.posts.length,authors:z.authors.length,categories:z.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,mt(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(`Created ${te[r]}`),v(_)}catch(p){T.error(p instanceof Error?p.message:"Could not create")}},ue=async r=>{const _=p=>{if(!p)return T.error("Record not found."),null;const w=se(s,r.kind),R=r.kind==="posts"?"title":"name",L={...structuredClone(re(p,r.kind)),[R]:`${r.label} (copy)`};if(r.kind==="categories"){const q=z.categories.map(W=>W.slug??"").filter(Boolean);L.slug=gt(String(L.slug??""),q)}return{key:w,payload:L}},I=f?null:_(s[r.key]);try{const p=f?_(await S(s,r.key)):I;if(!p)return;const{key:w,payload:R}=p,L=await m.mutateAsync({blockKey:w,data:ee(w,r.kind,R),...f?{create:!0}:{}});Z(L)||T.success(`Duplicated "${r.label}"`),v(w)}catch(p){T.error(p instanceof Error?p.message:"Duplicate failed")}},fe=async r=>{const _=se(s,"posts"),I=ee(_,"posts",ot(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(o("sandbox.postCalendar.createdScheduledPost")),n(_)}catch(p){T.error(p instanceof Error?p.message:o("sandbox.postCalendar.couldNotCreate"))}},ge=async(r,_)=>{const I=w=>{const R=w?st(re(w,"posts"),_):null;return R?{source:w,payload:R}:(T.error(o("sandbox.postCalendar.onlyScheduledCanMove")),null)},p=f?null:I(s[r]);try{const w=f?I(await S(s,r)):p;if(!w)return;const{source:R,payload:L}=w;await m.mutateAsync({blockKey:r,data:ee(r,"posts",L),...f?{base:{value:R,fromCache:!0}}:{}})}catch(w){T.error(w instanceof Error?w.message:o("sandbox.postCalendar.couldNotReschedule"))}},he=async()=>{if(!C)return;const{kind:r,key:_,label:I}=C;try{const p=f?await S(s,_):r==="categories"?s[_]:void 0;if(f&&!p)throw new Error(o("sectionsEditor.hosted.blockLoadFailed"));if(r==="categories"){const R=re(p,"categories").slug,L=typeof R=="string"?R:"";if(L){const q=f?{...s}:s;if(f){const W=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of W)H?q[G]=H:delete q[G]}for(const{key:W,payload:G}of pt(q)){const H=dt(G,L);H!==G&&await m.mutateAsync({blockKey:W,data:ut(W,ft(H)),...f?{base:{value:q[W],fromCache:!0}}:{}})}}}const w=await h.mutateAsync({blockKey:_,...f?{base:{value:p}}:{}});if($(null),Z(w))return;T.success(`Deleted "${I}"`),a===_&&v(void 0)}catch(p){T.error(p instanceof Error?p.message:"Delete failed")}},Y=h.isPending||m.isPending;return t.jsxs("div",{className:"flex h-full w-full",children:[t.jsx(_t,{active:l,counts:pe,showContext:y,onSelect:g}),Dt(l)&&t.jsx(Nt,{kind:l,entries:z[l],searchQuery:Q,onSearchChange:D,selectedKey:a,onSelect:r=>v(r),onCreate:()=>{de(l)},onDuplicate:r=>{ue(r)},onDelete:$}),t.jsx("div",{className:"min-w-0 flex-1",children:t.jsx(M.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ae,{className:"size-5 text-muted-foreground"})}),children:l==="context"?t.jsx(Bt,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j}):l==="post-schedule"?t.jsx(wt,{decofile:s,isCreating:m.isPending,onCreate:r=>{fe(r)},onReschedule:(r,_)=>{ge(r,_)},onSelect:n}):l==="posts"?t.jsx(Ye,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,view:B,onViewChange:E,onOpen:n,move:P,meta:j}):a?l==="categories"?t.jsx(Pt,{orgSlug:d,virtualMcpId:c,branch:u,blockKey:a,block:s[a],decofile:s,meta:j,onManagePosts:()=>g("posts"),onOpenPost:n,previewBaseUrl:x,fastPreviewActive:i.fastPreviewActive},`category:${a}`):t.jsx(St,{orgSlug:d,virtualMcpId:c,branch:u,kind:"authors",blockKey:a,block:s[a],meta:j,decofile:s},`authors:${a}`):t.jsx(at,{title:`Select ${l==="authors"?"an author":"a category"} to edit`,description:'Pick an item from the list, or click "+" to create one.'})})}),t.jsx(xe,{open:!!C,onOpenChange:r=>{!r&&!Y&&$(null)},children:t.jsxs(be,{children:[t.jsxs(ye,{children:[t.jsx(ve,{children:V?.title??U}),t.jsx(ke,{children:V?.description??null})]}),t.jsxs(Ce,{children:[t.jsx(je,{disabled:Y,children:o("sandbox.contentBrowser.deleteDialog.cancel")}),t.jsx(_e,{onClick:r=>{r.preventDefault(),he()},disabled:Y,className:we(Se({variant:"destructive"})),children:Y?t.jsxs(t.Fragment,{children:[t.jsx(ae,{className:"size-3.5"}),o("sandbox.contentBrowser.deleteDialog.deleting")]}):o("sandbox.contentBrowser.deleteDialog.delete")})]})]})})]})}function Nt(i){const e=X.c(46),{kind:a,entries:g,searchQuery:v,onSearchChange:n,selectedKey:o,onSelect:d,onCreate:c,onDuplicate:u,onDelete:s}=i,j=ie();let x,b,y,k,l,m;if(e[0]!==g||e[1]!==a||e[2]!==c||e[3]!==s||e[4]!==u||e[5]!==n||e[6]!==d||e[7]!==v||e[8]!==o||e[9]!==j){const A=v.toLowerCase(),N=g.filter(O=>!A||O.label.toLowerCase().includes(A)||O.subtitle.toLowerCase().includes(A)),Q=a==="categories"&&!A?lt(N):N.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=E):E=e[16];let C;e[17]!==n?(C=O=>n(O.target.value),e[17]=n,e[18]=C):C=e[18];let $;e[19]!==D||e[20]!==v||e[21]!==C?($=t.jsxs("div",{className:"flex flex-1 items-center gap-2 pl-1",children:[E,t.jsx("input",{type:"text",value:v,onChange:C,placeholder:D,"aria-label":D,className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"})]}),e[19]=D,e[20]=v,e[21]=C,e[22]=$):$=e[22];let U;e[23]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(Ie,{size:16}),e[23]=U):U=e[23];let K;e[24]!==B||e[25]!==c?(K=t.jsx(Me,{asChild:!0,children:t.jsx(Be,{variant:"ghost",size:"icon",onClick:c,"aria-label":B,children:U})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Fe,{children:B}),e[27]=B,e[28]=V):V=e[28];let F;e[29]!==K||e[30]!==V?(F=t.jsxs(Oe,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=F):F=e[31],e[32]!==F||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,F]}),e[32]=F,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=N.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):Q.map(O=>{const{entry:P,depth:z}=O;return t.jsx("div",{style:{paddingLeft:z*16},children:t.jsx(et,{icon:P.kind==="posts"?ne:P.kind==="authors"?me:ce,title:P.label,invalid:P.missing.length>0,invalidReason:P.missing.length>0?j("sandbox.itemRow.missingFields",{fields:ct(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:z>0?nt(P.slug??"",N).map(Et).join(" / "):P.subtitle,active:o===P.key,onClick:()=>d(P.key),menu:t.jsx(tt,{onDuplicate:()=>u(P),onDelete:()=>s(P)})})},P.key)}),e[0]=g,e[1]=a,e[2]=c,e[3]=s,e[4]=u,e[5]=n,e[6]=d,e[7]=v,e[8]=o,e[9]=j,e[10]=x,e[11]=b,e[12]=y,e[13]=k,e[14]=l,e[15]=m}else x=e[10],b=e[11],y=e[12],k=e[13],l=e[14],m=e[15];let h;e[35]!==b||e[36]!==y?(h=t.jsx("div",{className:b,children:y}),e[35]=b,e[36]=y,e[37]=h):h=e[37];let f;e[38]!==x||e[39]!==k||e[40]!==h?(f=t.jsx(x,{className:k,children:h}),e[38]=x,e[39]=k,e[40]=h,e[41]=f):f=e[41];let S;return e[42]!==l||e[43]!==m||e[44]!==f?(S=t.jsxs("div",{className:l,children:[m,f]}),e[42]=l,e[43]=m,e[44]=f,e[45]=S):S=e[45],S}function Et(i){return i.slug}function Rt(i){return{entry:i,depth:0}}function Tt(i){const e=X.c(17),{virtualMcpId:a}=i,g=De();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={strict:!1},e[0]=v):v=e[0];const n=Ae(v);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const d=Ne(o),c=d.blogCollection??"posts",u=n.org??"",s=n.agentId??"";let j;e[2]!==u||e[3]!==s?(j={org:u,agentId:s},e[2]=u,e[3]=s,e[4]=j):j=e[4];const x=j;let b;e[5]!==g||e[6]!==x?(b=m=>{g({to:le.blog,params:x,search:h=>({...h,...m}),replace:!0})},e[5]=g,e[6]=x,e[7]=b):b=e[7];const y=b;let k;e[8]!==c||e[9]!==g||e[10]!==x||e[11]!==d.blogItem||e[12]!==y?(k=t.jsx(bt,{children:m=>t.jsx(At,{context:m,collection:c,item:d.blogItem,onOpenCollection:h=>y({blogCollection:h,blogItem:void 0}),onSelectItem:h=>y({blogItem:h}),onOpenPost:h=>{g({to:le.blogPost,params:{...x,postId:Ee(h)},search:$t})}})}),e[8]=c,e[9]=g,e[10]=x,e[11]=d.blogItem,e[12]=y,e[13]=k):k=e[13];let l;return e[14]!==k||e[15]!==a?(l=t.jsx(yt,{virtualMcpId:a,children:k}),e[14]=k,e[15]=a,e[16]=l):l=e[16],l}function $t(i){return vt({previous:i,destination:"agent"})}function It(){const i=X.c(2),e=kt();let a;return i[0]!==e?(a=t.jsx(jt,{children:t.jsx(Ct,{tabId:"blog",children:t.jsx($e,{feature:"cms",children:t.jsx(Tt,{virtualMcpId:e})})})}),i[0]=e,i[1]=a):a=i[1],a}function Pi(){const i=X.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re.Content,{actions:t.jsx(Te,{}),children:t.jsx(It,{})}),i[0]=e):e=i[0],e}export{Pi as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-calendar-C9jkdGJh.js","assets/index-ztdGKvBm.js","assets/index-DOMlzk_A.css","assets/agent-icon-BYWtutu9.js","assets/AlertCircle-BlMH0XE7.js","assets/UserCheck01-k-4bTA2h.js","assets/Tool01-BCJ5kyrz.js","assets/ArrowUp-D5DDc3Cp.js","assets/ArrowLeft-B0PZnf1E.js","assets/ArrowRight-mzMrxxYI.js","assets/BookOpen01-DU-B3R7s.js","assets/Globe04-CeAQ1YNm.js","assets/CheckCircle-DZ8MNpCP.js","assets/ChevronDown-XsLJSrfl.js","assets/ChevronSelectorVertical-CB0fn1Nq.js","assets/ChevronUp-BQktpZWC.js","assets/UserSquare-CafFh5_d.js","assets/LinkBroken01-DfUhihLM.js","assets/CreditCard01-MY4ouqtl.js","assets/File02-DaYek2y9.js","assets/MessageCircle01-BG1RhOiZ.js","assets/SwitchHorizontal01-CMdpIiQk.js","assets/Eye-kjjhS0vP.js","assets/Fingerprint04-B2fDIuT8.js","assets/Image01-BcIZ5mtf.js","assets/Key01-CaJGjh13.js","assets/LayoutLeft-DDtN-od-.js","assets/Minus-hZzPDO0w.js","assets/Monitor01-DMFbvudn.js","assets/Sun-O9TdKcV_.js","assets/Play-BCFOaioW.js","assets/Plus-DWySsEmB.js","assets/SearchMd-BD2qldmS.js","assets/ShoppingBag01-BbjW7cod.js","assets/Trash01-BxBhF2b8.js","assets/Upload01-q-rKSvZf.js","assets/Users01-DM58_gUL.js","assets/XClose-CmTuu4UN.js","assets/Zap-CBJ7My90.js","assets/scroll-area-Dm3EbBj1.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-DGOo1BAt.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-DmyTA2cC.js","assets/collapsible-CadTVXY4.js","assets/use-copy-DT4_uVrH.js","assets/usage-stats-B0_Yl-r0.js","assets/utils-CVEq3hMx.js","assets/markdown-CJR_ooUO.js","assets/chat-context-DFEln8mI.js","assets/use-panel-navigate-0z93k6Ut.js","assets/thread-route-CfpvvkkL.js","assets/use-project-scope-BwqdbGG4.js","assets/repository-binding-D_Xc1yRH.js","assets/use-mcp-client-2MG3LveS.js","assets/auth-C82OPjUx.js","assets/use-view-draft-kind-BopwZu5H.js","assets/use-blog-view-DMfZjkz0.js","assets/use-organization-settings-C2vcrj4S.js","assets/schema-Bb-DbvPZ.js","assets/task-board-i6qU2BVR.js","assets/thread-intent-DyZ5A9F9.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-DdfLfQcH.js","assets/session-runtime-DBl1Hlcw.js","assets/use-entitlements-Gn1rhCN5.js","assets/use-ai-providers-Ct2xvYDX.js","assets/use-current-view-DBmQQ8uy.js","assets/use-in-settings-CFQ9B3W2.js","assets/use-decopilot-events-43RPCkUH.js","assets/use-org-fs-D9dHgOYs.js","assets/useInfiniteQuery-Ypmdjx1e.js","assets/infiniteQueryObserver-C3KEOANj.js","assets/use-mobile-C_hdQY5I.js","assets/tooltip-Bm0P1gm_.js","assets/index-CDQbtG2e.js","assets/gateway-client-B4qzR3sF.js","assets/form-DlZ0KMAb.js","assets/label-8UxgpYiA.js","assets/task-key-Bt60Ndov.js","assets/use-task-board-items-D2aUd0HA.js","assets/config-LEYSFIMn.js","assets/task-route-C3cK6F8S.js","assets/project-index-C2IrSomv.js","assets/shell-layout-UF80oiAz.js","assets/use-deployment-admin-Cr4LWHG9.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-Bg0zOPPj.js","assets/command-C3tlrKUq.js","assets/index-DMpANy5-.js","assets/integration-icon-Bo-3z9o3.js","assets/project-icon-fQqckccl.js","assets/use-navigate-to-agent-Cw8_3uU5.js","assets/use-debounced-value-DO5dvp6c.js","assets/new-project-dialog-BW6Lh52P.js","assets/repository-picker-CSaozawA.js","assets/github-icon-Bq9Ot22_.js","assets/collection-search-DkVgkcUC.js","assets/new-project-store-DID5OVrt.js","assets/legacy-admin-welcome-dialog-plmLACwz.js","assets/drawer-CROtV2u4.js","assets/required-auth-layout-Cwtu4iIe.js","assets/use-org-sso-_fzcS8V-.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-DU6s3Olv.js","assets/types-5-cDe_8u.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-C-umRrOH.js","assets/use-connection-CcG4QE1K.js","assets/use-mcp-prompts-qJSiAdA5.js","assets/use-thread-outputs-BK5BfLdO.js","assets/file-type-icon-CdjLDWdN.js","assets/section-array-field-uECXIzc8.js","assets/blocks-tab-states-8lUCpJRf.js","assets/site-editor-toast-Dq7SmLyr.js","assets/content-changes-BFwm7dNe.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-E6fWuIsO.js","assets/use-blocks-v8-project-BPvEDyS9.js","assets/use-voice-input-BMrsODyI.js","assets/popover-C4oz5B-L.js","assets/index-CJKec1wg.js","assets/checkbox-QUuOza1H.js","assets/select-CxXZwsSr.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-COdvgYqW.js","assets/sandbox-git-api-BsG4EzUP.js","assets/empty-state-I_cTbW85.js","assets/item-actions-BDi0HvuM.js","assets/badge-DcUertOZ.js","assets/empty-state-DM4xv3sa.js","assets/delete-copy-DdlDdNyl.js","assets/use-never-published-BJeGnEQC.js","assets/hosted-reconcile-rjhKNGnc.js","assets/search-input-BQ8Dp8aD.js","assets/tabs-nQ7_UOyl.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-3gwPBXwK.js","assets/asset-utils-DP9aQr9Q.js","assets/index-BL01DXCf.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-viSdm6BE.js","assets/primitives-BbUqWJzg.js","assets/use-move-blocks-Bu_TrzH9.js","assets/monaco-editor-CLzWWWtl.js","assets/editor-ipOJFDhA.js","assets/record-editor-EDBIJjSW.js","assets/save-status-DhQhbNh0.js","assets/switch-B81oLbqr.js","assets/toggle-group-yQeAFu4u.js","assets/blog-schema-0s-6sCQz.js","assets/held-block-view-QD0AvQ2Q.js","assets/calendar-DNzaYWCQ.js","assets/editor-classes-DYlqLnQ7.js","assets/sortable.esm-CKl9Rez4.js","assets/named-rule-step-BUKBZ8bi.js","assets/slider-Cqj9bgcu.js","assets/index-MkoN5oFR.js","assets/tooltipContext-CSDtg0Lk.js","assets/CategoricalChart-wSsXuALZ.js","assets/index-rjS4IUT9.js","assets/combobox-2rKAfmHD.js","assets/use-autosave-3MAlhbEw.js","assets/category-editor-BWoJzJlg.js","assets/blog-preview-url-N6iQgPQK.js","assets/use-fast-preview-draft-url-CpggWNTk.js","assets/block-document-fIbF5XH6.js","assets/suggestion-aR93AXr2.js","assets/product-picker-dialog-Bux2F3Cd.js","assets/index-DrJBZ2ZV.js","assets/context-DUaIKdw9.js","assets/index-g3eDw_KE.js","assets/icon-button-BH8Qviy5.js","assets/use-delete-block-BDYGRW7T.js"])))=>i.map(i=>d[i]);
2
+ import{c as X,b as ie,j as t,r as M,bb as oe,h as ae,aR as xe,aQ as be,aN as ye,aL as ve,aM as ke,aP as Ce,aO as je,bc as _e,m as we,bd as Se,be as Pe,t as T,B as Be,d as De,f as Ae,u as Ne,$ as le,bf as Ee}from"./index-ztdGKvBm.js";import{ChatLayout as Re}from"./index-Co7YBLf6.js";import{S as Te}from"./site-draft-actions-FVwQt-Zd.js";import{F as $e}from"./feature-gate-DMrFeUy1.js";import{i as ne}from"./File02-DaYek2y9.js";import{s as Ie}from"./Plus-DWySsEmB.js";import{s as Le,a as Ke}from"./UserSquare-CafFh5_d.js";import{c as ce}from"./UserCheck01-k-4bTA2h.js";import{t as me}from"./Users01-DM58_gUL.js";import{S as Ve}from"./scroll-area-Dm3EbBj1.js";import{T as Me,a as Fe,c as Oe}from"./tooltip-Bm0P1gm_.js";import{u as ze,a as Ge,d as Qe}from"./delete-copy-DdlDdNyl.js";import{u as Ue,a as We,k as Z}from"./use-never-published-BJeGnEQC.js";import{u as qe}from"./use-delete-block-BDYGRW7T.js";import{d as He,f as Je}from"./site-editor-toast-Dq7SmLyr.js";import{C as J,u as Xe,P as Ye,L as Ze,I as et,a as tt,s as ot,r as st}from"./item-actions-BDi0HvuM.js";import{i as rt,B as te,s as it,E as at,o as lt,c as nt,m as ct,b as ee,g as se,e as mt,a as re,l as pt,r as dt,d as ut,f as ft,u as gt}from"./category-tree-DGOo1BAt.js";import{u as ht}from"./primitives-BbUqWJzg.js";import{F as xt}from"./agent-icon-BYWtutu9.js";import{B as bt,a as yt}from"./blog-source-gate-BIpZ68Ul.js";import{r as vt}from"./use-panel-navigate-0z93k6Ut.js";import{c as kt}from"./thread-route-CfpvvkkL.js";import{A as Ct}from"./agent-view-guard-Du9KtXiN.js";import{a as jt}from"./blog-view-gate-D2LovAn5.js";import"./use-mobile-C_hdQY5I.js";import"./MessageCircle01-BG1RhOiZ.js";import"./XClose-CmTuu4UN.js";import"./thread-button-CP83i3PG.js";import"./use-sidebar-collapsed-Cy-mIzeN.js";import"./sheet-C-umRrOH.js";import"./use-chat-layout-state-Im_c7sw4.js";import"./toolbar-icon-button-Cz-oOJ1w.js";import"./use-in-settings-CFQ9B3W2.js";import"./resizable-DNBx7bMi.js";import"./route-page-header-CApA0aIo.js";import"./LayoutLeft-DDtN-od-.js";import"./use-project-scope-BwqdbGG4.js";import"./repository-binding-D_Xc1yRH.js";import"./use-mcp-client-2MG3LveS.js";import"./auth-C82OPjUx.js";import"./use-current-view-DBmQQ8uy.js";import"./separator-BQ6pXQbe.js";import"./chat-context-DFEln8mI.js";import"./use-view-draft-kind-BopwZu5H.js";import"./use-blog-view-DMfZjkz0.js";import"./use-organization-settings-C2vcrj4S.js";import"./schema-Bb-DbvPZ.js";import"./task-board-i6qU2BVR.js";import"./thread-intent-DyZ5A9F9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DdfLfQcH.js";import"./session-runtime-DBl1Hlcw.js";import"./use-entitlements-Gn1rhCN5.js";import"./use-ai-providers-Ct2xvYDX.js";import"./use-decopilot-events-43RPCkUH.js";import"./use-org-fs-D9dHgOYs.js";import"./useInfiniteQuery-Ypmdjx1e.js";import"./infiniteQueryObserver-C3KEOANj.js";import"./use-org-notice-Bg0zOPPj.js";import"./popover-C4oz5B-L.js";import"./command-C3tlrKUq.js";import"./index-DMpANy5-.js";import"./SearchMd-BD2qldmS.js";import"./tabs-nQ7_UOyl.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-XsLJSrfl.js";import"./SwitchHorizontal01-CMdpIiQk.js";import"./Tool01-BCJ5kyrz.js";import"./Trash01-BxBhF2b8.js";import"./use-voice-input-BMrsODyI.js";import"./drawer-CROtV2u4.js";import"./index-CJKec1wg.js";import"./checkbox-QUuOza1H.js";import"./Minus-hZzPDO0w.js";import"./select-CxXZwsSr.js";import"./index-BdQq_4o_.js";import"./index-CDQbtG2e.js";import"./ChevronUp-BQktpZWC.js";import"./ArrowLeft-B0PZnf1E.js";import"./ChevronSelectorVertical-CB0fn1Nq.js";import"./Key01-CaJGjh13.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-DMFbvudn.js";import"./AlertCircle-BlMH0XE7.js";import"./Eye-kjjhS0vP.js";import"./Image01-BcIZ5mtf.js";import"./use-debounced-value-DO5dvp6c.js";import"./shell-layout-UF80oiAz.js";import"./Globe04-CeAQ1YNm.js";import"./use-deployment-admin-Cr4LWHG9.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DZ8MNpCP.js";import"./Zap-CBJ7My90.js";import"./integration-icon-Bo-3z9o3.js";import"./LinkBroken01-DfUhihLM.js";import"./project-icon-fQqckccl.js";import"./use-navigate-to-agent-Cw8_3uU5.js";import"./new-project-dialog-BW6Lh52P.js";import"./label-8UxgpYiA.js";import"./repository-picker-CSaozawA.js";import"./github-icon-Bq9Ot22_.js";import"./collection-search-DkVgkcUC.js";import"./BookOpen01-DU-B3R7s.js";import"./ShoppingBag01-BbjW7cod.js";import"./new-project-store-DID5OVrt.js";import"./legacy-admin-welcome-dialog-plmLACwz.js";import"./required-auth-layout-Cwtu4iIe.js";import"./use-org-sso-_fzcS8V-.js";import"./cms-store-drafts-_66Q7KaS.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-CAb2l-zV.js";import"./url-slug-CII_0B7H.js";import"./use-blocks-v8-project-BPvEDyS9.js";import"./content-changes-BFwm7dNe.js";import"./use-fast-preview-draft-url-CpggWNTk.js";import"./blocks-tab-states-8lUCpJRf.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-I_cTbW85.js";import"./index-5erPNBmj.js";import"./ArrowUp-D5DDc3Cp.js";import"./input-B2QsYffT.js";import"./usage-stats-B0_Yl-r0.js";import"./utils-CVEq3hMx.js";import"./markdown-CJR_ooUO.js";import"./use-copy-DT4_uVrH.js";import"./gateway-client-B4qzR3sF.js";import"./form-DlZ0KMAb.js";import"./icon-button-BH8Qviy5.js";import"./file-type-icon-CdjLDWdN.js";import"./chat-draft-DNEqrl5p.js";import"./ArrowRight-mzMrxxYI.js";import"./Upload01-q-rKSvZf.js";import"./use-deco-credits-yGgE3j79.js";import"./toggle-group-yQeAFu4u.js";import"./input-aLblPHPG.js";import"./suggestion-aR93AXr2.js";import"./use-mcp-prompts-qJSiAdA5.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DL1BXqDM.js";import"./plan-ladder-C3ogU-RT.js";import"./add-connection-dialog-CS6ZsWUV.js";import"./extract-connection-data-DjYTV7t7.js";import"./metadata-D72DunRR.js";import"./connection-C8I8wKeO.js";import"./connection-card-CTJwLo8p.js";import"./connection-slug-BNBBglpK.js";import"./textarea-viSdm6BE.js";import"./use-connection-CcG4QE1K.js";import"./schema-D_OZwHJO.js";import"./connection-form-helpers-BjSA2uCL.js";import"./authenticate-and-persist-oauth-87e1Ix6y.js";import"./mcp-oauth-BBSVAQ62.js";import"./mcp-oauth-Alln4VX8.js";import"./collection-tabs-Cju2BOrS.js";import"./badge-DcUertOZ.js";import"./use-infinite-scroll-DdrDrAAo.js";import"./useSuspenseInfiniteQuery-Pk4rU2Ft.js";import"./use-task-board-items-D2aUd0HA.js";import"./pair-DmyTA2cC.js";import"./collapsible-CadTVXY4.js";import"./task-key-Bt60Ndov.js";import"./config-LEYSFIMn.js";import"./task-route-C3cK6F8S.js";import"./project-index-C2IrSomv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DU6s3Olv.js";import"./types-5-cDe_8u.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-BK5BfLdO.js";import"./agent-capabilities-CyWfHGWp.js";import"./use-cms-publish-actions-BWS3AiLQ.js";import"./use-content-sync-GJv8DmEo.js";import"./sandbox-git-api-BsG4EzUP.js";import"./utils-COdvgYqW.js";import"./device-hint-B3WnBHYf.js";import"./alert-CxbB9CEj.js";import"./section-array-field-uECXIzc8.js";import"./editor-ipOJFDhA.js";import"./save-changes-debug-nBi-n9eV.js";import"./use-sandbox-events-E6fWuIsO.js";import"./sandbox-lifecycle-context-DbNrw8-a.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-BL01DXCf.js";import"./hosted-reconcile-rjhKNGnc.js";import"./search-input-BQ8Dp8aD.js";import"./use-file-configs-3gwPBXwK.js";import"./asset-utils-DP9aQr9Q.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-DM4xv3sa.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-CLzWWWtl.js";import"./Play-BCFOaioW.js";import"./use-move-blocks-Bu_TrzH9.js";import"./CreditCard01-MY4ouqtl.js";import"./Fingerprint04-B2fDIuT8.js";import"./Sun-O9TdKcV_.js";import"./blog-preview-url-N6iQgPQK.js";import"./use-main-panel-tabs-BmILT_Hf.js";import"./use-mcp-tools-DOqvKogJ.js";import"./resolve-tab-icon-XkjIOifK.js";import"./use-task-metadata-DZBgcb3y.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-C7OB-luC.js";function _t(i){const e=X.c(53),{active:a,counts:g,showContext:v,onSelect:n}=i,o=ie();let d;e[0]!==o?(d=o("sandbox.collectionsSidebar.blog"),e[0]=o,e[1]=d):d=e[1];let c;e[2]!==d?(c=t.jsx("div",{className:"flex h-12 shrink-0 items-center border-b px-3",children:t.jsx("span",{className:"text-sm font-medium",children:d})}),e[2]=d,e[3]=c):c=e[3];let u;e[4]!==a||e[5]!==n||e[6]!==v||e[7]!==o?(u=v&&t.jsx(J,{icon:Le,label:o("sandbox.collectionsSidebar.context"),active:a==="context",onClick:()=>n("context")}),e[4]=a,e[5]=n,e[6]=v,e[7]=o,e[8]=u):u=e[8];let s;e[9]!==o?(s=o("sandbox.collectionsSidebar.posts"),e[9]=o,e[10]=s):s=e[10];const j=a==="posts";let x;e[11]!==n?(x=()=>n("posts"),e[11]=n,e[12]=x):x=e[12];let b;e[13]!==g.posts||e[14]!==s||e[15]!==j||e[16]!==x?(b=t.jsx(J,{icon:ne,label:s,count:g.posts,active:j,onClick:x}),e[13]=g.posts,e[14]=s,e[15]=j,e[16]=x,e[17]=b):b=e[17];let y;e[18]!==o?(y=o("sandbox.collectionsSidebar.authors"),e[18]=o,e[19]=y):y=e[19];const k=a==="authors";let l;e[20]!==n?(l=()=>n("authors"),e[20]=n,e[21]=l):l=e[21];let m;e[22]!==g.authors||e[23]!==l||e[24]!==y||e[25]!==k?(m=t.jsx(J,{icon:me,label:y,count:g.authors,active:k,onClick:l}),e[22]=g.authors,e[23]=l,e[24]=y,e[25]=k,e[26]=m):m=e[26];let h;e[27]!==o?(h=o("sandbox.collectionsSidebar.categories"),e[27]=o,e[28]=h):h=e[28];const f=a==="categories";let S;e[29]!==n?(S=()=>n("categories"),e[29]=n,e[30]=S):S=e[30];let A;e[31]!==g.categories||e[32]!==h||e[33]!==f||e[34]!==S?(A=t.jsx(J,{icon:ce,label:h,count:g.categories,active:f,onClick:S}),e[31]=g.categories,e[32]=h,e[33]=f,e[34]=S,e[35]=A):A=e[35];let N;e[36]!==o?(N=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=N):N=e[37];const Q=a==="post-schedule";let D;e[38]!==n?(D=()=>n("post-schedule"),e[38]=n,e[39]=D):D=e[39];let B;e[40]!==N||e[41]!==Q||e[42]!==D?(B=t.jsx(J,{icon:xt,label:N,active:Q,onClick:D}),e[40]=N,e[41]=Q,e[42]=D,e[43]=B):B=e[43];let E;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(E=t.jsxs("nav",{className:"flex flex-col gap-0.5 p-1.5",children:[u,b,m,A,B]}),e[44]=m,e[45]=A,e[46]=B,e[47]=u,e[48]=b,e[49]=E):E=e[49];let C;return e[50]!==c||e[51]!==E?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,E]}),e[50]=c,e[51]=E,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-C9jkdGJh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-EDBIJjSW.js"),__vite__mapDeps([150,1,2,80,126,40,77,13,15,145,151,24,34,35,136,122,66,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,123,102,76,75,3,4,5,6,7,8,9,10,11,12,14,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,152,153,144,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,154,155,156,157,158,159,160,161,162,163,164,165,39,146,147,166])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-BWoJzJlg.js"),__vite__mapDeps([167,1,2,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,4,9,19,16,80,126,40,77,13,15,154,5,155,136,122,123,102,76,75,3,6,7,8,10,11,12,14,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,151,152,153,144,156,145,157,81,158,42,43,44,45,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,159,160,161,162,163,164,165,39,168,147,169,166,170,135,143,171,146,172,173])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-DUaIKdw9.js"),__vite__mapDeps([174,1,2,137,117,118,54,55,56,64,119,50,51,52,53,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,120,121,122,123,102,76,77,75,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,126,40,127,128,129,130,116,131,133,80,152,145,135,47,48,49,46,78,79,136,138,139,140,95,141,142,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,143,166,151,153,144,146,147,175,157,171,173,176,177,156,172])).then(i=>({default:i.BlogContext})));function Dt(i){return i==="authors"||i==="categories"}function At({context:i,collection:e,item:a,onOpenCollection:g,onSelectItem:v,onOpenPost:n}){const o=ie(),{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j,sitePreviewUrl:x,hostedDraft:b}=i,y=ze(),k=Ge(c),l=Pe(e,y),m=Ue({orgSlug:d,virtualMcpId:c,branch:u}),h=qe({orgSlug:d,virtualMcpId:c,branch:u}),f=m.v8,S=He({orgSlug:d,virtualMcpId:c,branch:u}),A=Je(b?{orgSlug:d,virtualMcpId:c,branch:u}:null,rt),N=We({orgSlug:d,virtualMcpId:c,branch:u}),[Q,D]=M.useState(""),[B,E]=M.useState("list"),[C,$]=M.useState(null),U=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Qe("block",b,{neverPublished:N(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:U,description:K},b),[F,O]=M.useState(l);F!==l&&(O(l),D(""));const P=ht({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),z=it(s),pe={posts:z.posts.length,authors:z.authors.length,categories:z.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,mt(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(`Created ${te[r]}`),v(_)}catch(p){T.error(p instanceof Error?p.message:"Could not create")}},ue=async r=>{const _=p=>{if(!p)return T.error("Record not found."),null;const w=se(s,r.kind),R=r.kind==="posts"?"title":"name",L={...structuredClone(re(p,r.kind)),[R]:`${r.label} (copy)`};if(r.kind==="categories"){const q=z.categories.map(W=>W.slug??"").filter(Boolean);L.slug=gt(String(L.slug??""),q)}return{key:w,payload:L}},I=f?null:_(s[r.key]);try{const p=f?_(await S(s,r.key)):I;if(!p)return;const{key:w,payload:R}=p,L=await m.mutateAsync({blockKey:w,data:ee(w,r.kind,R),...f?{create:!0}:{}});Z(L)||T.success(`Duplicated "${r.label}"`),v(w)}catch(p){T.error(p instanceof Error?p.message:"Duplicate failed")}},fe=async r=>{const _=se(s,"posts"),I=ee(_,"posts",ot(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(o("sandbox.postCalendar.createdScheduledPost")),n(_)}catch(p){T.error(p instanceof Error?p.message:o("sandbox.postCalendar.couldNotCreate"))}},ge=async(r,_)=>{const I=w=>{const R=w?st(re(w,"posts"),_):null;return R?{source:w,payload:R}:(T.error(o("sandbox.postCalendar.onlyScheduledCanMove")),null)},p=f?null:I(s[r]);try{const w=f?I(await S(s,r)):p;if(!w)return;const{source:R,payload:L}=w;await m.mutateAsync({blockKey:r,data:ee(r,"posts",L),...f?{base:{value:R,fromCache:!0}}:{}})}catch(w){T.error(w instanceof Error?w.message:o("sandbox.postCalendar.couldNotReschedule"))}},he=async()=>{if(!C)return;const{kind:r,key:_,label:I}=C;try{const p=f?await S(s,_):r==="categories"?s[_]:void 0;if(f&&!p)throw new Error(o("sectionsEditor.hosted.blockLoadFailed"));if(r==="categories"){const R=re(p,"categories").slug,L=typeof R=="string"?R:"";if(L){const q=f?{...s}:s;if(f){const W=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of W)H?q[G]=H:delete q[G]}for(const{key:W,payload:G}of pt(q)){const H=dt(G,L);H!==G&&await m.mutateAsync({blockKey:W,data:ut(W,ft(H)),...f?{base:{value:q[W],fromCache:!0}}:{}})}}}const w=await h.mutateAsync({blockKey:_,...f?{base:{value:p}}:{}});if($(null),Z(w))return;T.success(`Deleted "${I}"`),a===_&&v(void 0)}catch(p){T.error(p instanceof Error?p.message:"Delete failed")}},Y=h.isPending||m.isPending;return t.jsxs("div",{className:"flex h-full w-full",children:[t.jsx(_t,{active:l,counts:pe,showContext:y,onSelect:g}),Dt(l)&&t.jsx(Nt,{kind:l,entries:z[l],searchQuery:Q,onSearchChange:D,selectedKey:a,onSelect:r=>v(r),onCreate:()=>{de(l)},onDuplicate:r=>{ue(r)},onDelete:$}),t.jsx("div",{className:"min-w-0 flex-1",children:t.jsx(M.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ae,{className:"size-5 text-muted-foreground"})}),children:l==="context"?t.jsx(Bt,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j}):l==="post-schedule"?t.jsx(wt,{decofile:s,isCreating:m.isPending,onCreate:r=>{fe(r)},onReschedule:(r,_)=>{ge(r,_)},onSelect:n}):l==="posts"?t.jsx(Ye,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,view:B,onViewChange:E,onOpen:n,move:P,meta:j}):a?l==="categories"?t.jsx(Pt,{orgSlug:d,virtualMcpId:c,branch:u,blockKey:a,block:s[a],decofile:s,meta:j,onManagePosts:()=>g("posts"),onOpenPost:n,previewBaseUrl:x,fastPreviewActive:i.fastPreviewActive},`category:${a}`):t.jsx(St,{orgSlug:d,virtualMcpId:c,branch:u,kind:"authors",blockKey:a,block:s[a],meta:j,decofile:s},`authors:${a}`):t.jsx(at,{title:`Select ${l==="authors"?"an author":"a category"} to edit`,description:'Pick an item from the list, or click "+" to create one.'})})}),t.jsx(xe,{open:!!C,onOpenChange:r=>{!r&&!Y&&$(null)},children:t.jsxs(be,{children:[t.jsxs(ye,{children:[t.jsx(ve,{children:V?.title??U}),t.jsx(ke,{children:V?.description??null})]}),t.jsxs(Ce,{children:[t.jsx(je,{disabled:Y,children:o("sandbox.contentBrowser.deleteDialog.cancel")}),t.jsx(_e,{onClick:r=>{r.preventDefault(),he()},disabled:Y,className:we(Se({variant:"destructive"})),children:Y?t.jsxs(t.Fragment,{children:[t.jsx(ae,{className:"size-3.5"}),o("sandbox.contentBrowser.deleteDialog.deleting")]}):o("sandbox.contentBrowser.deleteDialog.delete")})]})]})})]})}function Nt(i){const e=X.c(46),{kind:a,entries:g,searchQuery:v,onSearchChange:n,selectedKey:o,onSelect:d,onCreate:c,onDuplicate:u,onDelete:s}=i,j=ie();let x,b,y,k,l,m;if(e[0]!==g||e[1]!==a||e[2]!==c||e[3]!==s||e[4]!==u||e[5]!==n||e[6]!==d||e[7]!==v||e[8]!==o||e[9]!==j){const A=v.toLowerCase(),N=g.filter(O=>!A||O.label.toLowerCase().includes(A)||O.subtitle.toLowerCase().includes(A)),Q=a==="categories"&&!A?lt(N):N.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=E):E=e[16];let C;e[17]!==n?(C=O=>n(O.target.value),e[17]=n,e[18]=C):C=e[18];let $;e[19]!==D||e[20]!==v||e[21]!==C?($=t.jsxs("div",{className:"flex flex-1 items-center gap-2 pl-1",children:[E,t.jsx("input",{type:"text",value:v,onChange:C,placeholder:D,"aria-label":D,className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"})]}),e[19]=D,e[20]=v,e[21]=C,e[22]=$):$=e[22];let U;e[23]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(Ie,{size:16}),e[23]=U):U=e[23];let K;e[24]!==B||e[25]!==c?(K=t.jsx(Me,{asChild:!0,children:t.jsx(Be,{variant:"ghost",size:"icon",onClick:c,"aria-label":B,children:U})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Fe,{children:B}),e[27]=B,e[28]=V):V=e[28];let F;e[29]!==K||e[30]!==V?(F=t.jsxs(Oe,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=F):F=e[31],e[32]!==F||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,F]}),e[32]=F,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=N.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):Q.map(O=>{const{entry:P,depth:z}=O;return t.jsx("div",{style:{paddingLeft:z*16},children:t.jsx(et,{icon:P.kind==="posts"?ne:P.kind==="authors"?me:ce,title:P.label,invalid:P.missing.length>0,invalidReason:P.missing.length>0?j("sandbox.itemRow.missingFields",{fields:ct(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:z>0?nt(P.slug??"",N).map(Et).join(" / "):P.subtitle,active:o===P.key,onClick:()=>d(P.key),menu:t.jsx(tt,{onDuplicate:()=>u(P),onDelete:()=>s(P)})})},P.key)}),e[0]=g,e[1]=a,e[2]=c,e[3]=s,e[4]=u,e[5]=n,e[6]=d,e[7]=v,e[8]=o,e[9]=j,e[10]=x,e[11]=b,e[12]=y,e[13]=k,e[14]=l,e[15]=m}else x=e[10],b=e[11],y=e[12],k=e[13],l=e[14],m=e[15];let h;e[35]!==b||e[36]!==y?(h=t.jsx("div",{className:b,children:y}),e[35]=b,e[36]=y,e[37]=h):h=e[37];let f;e[38]!==x||e[39]!==k||e[40]!==h?(f=t.jsx(x,{className:k,children:h}),e[38]=x,e[39]=k,e[40]=h,e[41]=f):f=e[41];let S;return e[42]!==l||e[43]!==m||e[44]!==f?(S=t.jsxs("div",{className:l,children:[m,f]}),e[42]=l,e[43]=m,e[44]=f,e[45]=S):S=e[45],S}function Et(i){return i.slug}function Rt(i){return{entry:i,depth:0}}function Tt(i){const e=X.c(17),{virtualMcpId:a}=i,g=De();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={strict:!1},e[0]=v):v=e[0];const n=Ae(v);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const d=Ne(o),c=d.blogCollection??"posts",u=n.org??"",s=n.agentId??"";let j;e[2]!==u||e[3]!==s?(j={org:u,agentId:s},e[2]=u,e[3]=s,e[4]=j):j=e[4];const x=j;let b;e[5]!==g||e[6]!==x?(b=m=>{g({to:le.blog,params:x,search:h=>({...h,...m}),replace:!0})},e[5]=g,e[6]=x,e[7]=b):b=e[7];const y=b;let k;e[8]!==c||e[9]!==g||e[10]!==x||e[11]!==d.blogItem||e[12]!==y?(k=t.jsx(bt,{children:m=>t.jsx(At,{context:m,collection:c,item:d.blogItem,onOpenCollection:h=>y({blogCollection:h,blogItem:void 0}),onSelectItem:h=>y({blogItem:h}),onOpenPost:h=>{g({to:le.blogPost,params:{...x,postId:Ee(h)},search:$t})}})}),e[8]=c,e[9]=g,e[10]=x,e[11]=d.blogItem,e[12]=y,e[13]=k):k=e[13];let l;return e[14]!==k||e[15]!==a?(l=t.jsx(yt,{virtualMcpId:a,children:k}),e[14]=k,e[15]=a,e[16]=l):l=e[16],l}function $t(i){return vt({previous:i,destination:"agent"})}function It(){const i=X.c(2),e=kt();let a;return i[0]!==e?(a=t.jsx(jt,{children:t.jsx(Ct,{tabId:"blog",children:t.jsx($e,{feature:"cms",children:t.jsx(Tt,{virtualMcpId:e})})})}),i[0]=e,i[1]=a):a=i[1],a}function Pi(){const i=X.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re.Content,{actions:t.jsx(Te,{}),children:t.jsx(It,{})}),i[0]=e):e=i[0],e}export{Pi as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-BTOUUukW.js","assets/index-CTKVsdNw.js","assets/index-DOMlzk_A.css","assets/chat-context-MoYYfmsS.js","assets/use-panel-navigate-D_4zKcAV.js","assets/thread-route-PqBNFZfw.js","assets/use-project-scope-DR1wnfkK.js","assets/repository-binding-C7rU_ngE.js","assets/use-mcp-client-3JkIBVIw.js","assets/auth-D3aaR56V.js","assets/use-view-draft-kind-BqlsyAow.js","assets/use-blog-view-Cf0gUXmH.js","assets/use-organization-settings-DkS8IzZH.js","assets/schema-BNEJODyB.js","assets/task-board-DHRO-oCR.js","assets/thread-intent-D4UZcJTa.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-BkhdInio.js","assets/session-runtime-DUDcoTOp.js","assets/use-entitlements-CGKQp5Ve.js","assets/use-ai-providers-zUKWfsvx.js","assets/use-current-view-EZITdVTI.js","assets/use-in-settings-DpMiymIv.js","assets/use-decopilot-events-BnISHAGr.js","assets/use-org-fs-BW-3KvTS.js","assets/useInfiniteQuery-C8AjoHI-.js","assets/infiniteQueryObserver-DpQtHqSr.js","assets/AlertCircle-DGhmQiH3.js","assets/agent-icon-BeQK1LIp.js","assets/UserCheck01-BzJrArBA.js","assets/Tool01-BCxvp4xD.js","assets/ArrowUp-B0lRrz50.js","assets/ArrowLeft-FP_83xMo.js","assets/ArrowRight-c12L_DBI.js","assets/BookOpen01-CGmiFh6c.js","assets/Globe04-i-SMP1da.js","assets/CheckCircle-DQx8J3sX.js","assets/ChevronDown-C2op7Ztq.js","assets/ChevronSelectorVertical-B8fgmPce.js","assets/ChevronUp-C6GRdhwz.js","assets/UserSquare-Csaj5_OE.js","assets/LinkBroken01-C-ZJkx1-.js","assets/CreditCard01-BrYzNGv7.js","assets/File02-lnmDsOIM.js","assets/MessageCircle01-CmMj6zOJ.js","assets/SwitchHorizontal01-B9k8zywr.js","assets/Eye-D1n0U2nr.js","assets/Fingerprint04-DWY8-Yis.js","assets/Image01-D0d8t9Nf.js","assets/Key01-BNFXrDTG.js","assets/LayoutLeft-CzGwliNd.js","assets/Minus-C12vvCq7.js","assets/Monitor01-DRn7cBTS.js","assets/Sun-CHBjoRg5.js","assets/Play-LuTO-O0l.js","assets/Plus-lVBJlI-r.js","assets/SearchMd-DlyifTmg.js","assets/ShoppingBag01-Cqxv0G3l.js","assets/Trash01-Tyi0X0KA.js","assets/Upload01-BE_2AiDk.js","assets/Users01-B0nNOy2m.js","assets/XClose-BCBhmnTq.js","assets/Zap-DyZkYnvp.js","assets/label-DQEXoY6T.js","assets/multi-select-CL-U4v6T.js","assets/badge-D4t_0yop.js","assets/checkbox-BB8KVrhZ.js","assets/command-gq8mLEwk.js","assets/index-CIjrpBSD.js","assets/popover-DBuD8VkZ.js","assets/tabs-BGcPqJhP.js","assets/active-indicator-CCMhAsc_.js","assets/switch-BOASvXY2.js","assets/textarea-CIDyBlnB.js","assets/save-status-P-MBD5-0.js","assets/use-never-published-CvngtHyh.js","assets/use-voice-input-BxiteUCw.js","assets/drawer-DgvYa3k0.js","assets/tooltip-Cilmqep0.js","assets/index-BFdtW_Lt.js","assets/use-mobile-D4Z5otBR.js","assets/index-Cf6V_if2.js","assets/select-DDLvK1MW.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-CZULEbbj.js","assets/content-changes-B7QLNPm9.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-DWTS0v2d.js","assets/use-blocks-v8-project-B_RMtP9Z.js","assets/utils-BTsdsvJd.js","assets/sandbox-git-api-zgEm1abw.js","assets/hosted-reconcile-LANuriok.js","assets/blocks-tab-states-CBGKB5th.js","assets/empty-state-CAav-Xpz.js","assets/search-input-DlGuVm3Y.js","assets/use-debounced-value-Dd9WXi-P.js","assets/use-file-configs-CcLJWcIx.js","assets/asset-utils-kGLknUlk.js","assets/usage-stats-B3MiRtbE.js","assets/utils-CVEq3hMx.js","assets/markdown-CBsDAJwx.js","assets/use-copy-BktBumBM.js","assets/gateway-client-BjTndvcO.js","assets/form-lT2yclrj.js","assets/toggle-group-BcyNxcnc.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-CrxZdpMf.js","assets/task-key-dODSqtOD.js","assets/sortable.esm-Ci07B_Jj.js","assets/delete-copy-CKxy6ck-.js","assets/category-tree-BCyFM0Ok.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BR0xVY7K.js","assets/collapsible-CvOWSuY7.js","assets/use-task-board-items-D4msWN6P.js","assets/config-CKam44yj.js","assets/task-route-Cy5WEzJq.js","assets/project-index-BUfiy84V.js","assets/shell-layout-DjDFDvAp.js","assets/use-deployment-admin-BPWk2wkA.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-BX7WVuqK.js","assets/integration-icon-CkDjbcLK.js","assets/project-icon-DWIG3WsN.js","assets/use-navigate-to-agent-DNuLTYeG.js","assets/new-project-dialog-DGVfOfmA.js","assets/repository-picker-LXFO8bDM.js","assets/github-icon-CXz0klo1.js","assets/collection-search-DqZnq1kz.js","assets/new-project-store-DAT5Euei.js","assets/legacy-admin-welcome-dialog-DwPqDRJj.js","assets/required-auth-layout-Xfd5oNH3.js","assets/use-org-sso-CGL9Mumz.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-GqMvWkA6.js","assets/types-CnPGvQg1.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-DwYk86zq.js","assets/use-connection-CZ1NbbVy.js","assets/use-mcp-prompts-BS4RJMA_.js","assets/use-thread-outputs-C9z66BGs.js","assets/file-type-icon-CFo6D_mq.js","assets/section-array-field-C-IVu4bI.js","assets/index-CpCzT9a1.js","assets/suggestion-CFxVXMn8.js","assets/editor-classes-Ds44wzZG.js","assets/blog-preview-url-C4jHo7Om.js","assets/primitives-B9kPUDQM.js","assets/use-move-blocks-Brooe0Rr.js","assets/product-picker-dialog-CUwMfU8B.js","assets/index-DjiY50Ig.js","assets/held-block-view-Jaxz4Y5b.js","assets/calendar-DqJcyMVN.js","assets/named-rule-step-DUY-1xO9.js","assets/slider-BM8aiQga.js","assets/index-B--QVBAJ.js","assets/tooltipContext-HNg68jH0.js","assets/CategoricalChart-CvWzaQub.js","assets/index-CrQFnFIn.js","assets/combobox-BTk2iFx5.js","assets/scroll-area-C9_ZoUPP.js","assets/blog-schema-Diy1WhGr.js","assets/use-delete-block-DTWO1nrc.js","assets/use-fast-preview-draft-url-CPu4xvwz.js","assets/use-autosave-C_qxtxF5.js"])))=>i.map(i=>d[i]);
2
- import{c as $,r as D,m as re,j as n,b as se,bg as xe,b9 as we,B as ce,a9 as Pe,au as ye,bb as Se,bh as je,n as Ee,bf as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bi as Be,bj as De}from"./index-CTKVsdNw.js";import{ChatLayout as Le}from"./index-YMgj8hIR.js";import{b as Ie,S as Te}from"./site-draft-actions-BFo_T6rU.js";import{F as $e}from"./feature-gate-CzNyzvDc.js";import{E as be}from"./empty-state-R8mrYCIa.js";import{G as ze,n as Ae}from"./agent-icon-BeQK1LIp.js";import{e as Ce}from"./UserSquare-Csaj5_OE.js";import{u as Oe}from"./use-fast-preview-draft-url-CPu4xvwz.js";import{a as Fe}from"./category-tree-BCyFM0Ok.js";import{u as He,s as Ke}from"./primitives-B9kPUDQM.js";import{i as Me}from"./Monitor01-DRn7cBTS.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe,g as Ye}from"./frame-navigation-DDFtKbzS.js";import{g as qe}from"./site-editor-toast-CZULEbbj.js";import{b as Je}from"./use-sandbox-events-DWTS0v2d.js";import{b as Qe,f as Ze}from"./blog-preview-url-C4jHo7Om.js";import{B as et,a as tt}from"./blog-source-gate-Zm7I_b_g.js";import{r as ot}from"./use-panel-navigate-D_4zKcAV.js";import{c as it}from"./thread-route-PqBNFZfw.js";import{a as rt}from"./blog-view-gate-2cHU2UiQ.js";import"./use-mobile-D4Z5otBR.js";import"./tooltip-Cilmqep0.js";import"./index-BFdtW_Lt.js";import"./MessageCircle01-CmMj6zOJ.js";import"./XClose-BCBhmnTq.js";import"./thread-button-BjvcH6Vx.js";import"./use-sidebar-collapsed-D2Rggp6e.js";import"./sheet-DwYk86zq.js";import"./use-chat-layout-state-DyZj7x9R.js";import"./toolbar-icon-button-B8gCtGPy.js";import"./use-in-settings-DpMiymIv.js";import"./resizable-Bmb2XXOb.js";import"./route-page-header-DpYcASGe.js";import"./LayoutLeft-CzGwliNd.js";import"./use-project-scope-DR1wnfkK.js";import"./repository-binding-C7rU_ngE.js";import"./use-mcp-client-3JkIBVIw.js";import"./auth-D3aaR56V.js";import"./use-current-view-EZITdVTI.js";import"./separator-D4AcMC3Q.js";import"./chat-context-MoYYfmsS.js";import"./use-view-draft-kind-BqlsyAow.js";import"./use-blog-view-Cf0gUXmH.js";import"./use-organization-settings-DkS8IzZH.js";import"./schema-BNEJODyB.js";import"./task-board-DHRO-oCR.js";import"./thread-intent-D4UZcJTa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BkhdInio.js";import"./session-runtime-DUDcoTOp.js";import"./use-entitlements-CGKQp5Ve.js";import"./use-ai-providers-zUKWfsvx.js";import"./use-decopilot-events-BnISHAGr.js";import"./use-org-fs-BW-3KvTS.js";import"./useInfiniteQuery-C8AjoHI-.js";import"./infiniteQueryObserver-DpQtHqSr.js";import"./use-org-notice-BX7WVuqK.js";import"./popover-DBuD8VkZ.js";import"./command-gq8mLEwk.js";import"./index-CIjrpBSD.js";import"./SearchMd-DlyifTmg.js";import"./tabs-BGcPqJhP.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-C2op7Ztq.js";import"./UserCheck01-BzJrArBA.js";import"./SwitchHorizontal01-B9k8zywr.js";import"./Tool01-BCxvp4xD.js";import"./Plus-lVBJlI-r.js";import"./Trash01-Tyi0X0KA.js";import"./use-voice-input-BxiteUCw.js";import"./drawer-DgvYa3k0.js";import"./index-Cf6V_if2.js";import"./checkbox-BB8KVrhZ.js";import"./Minus-C12vvCq7.js";import"./select-DDLvK1MW.js";import"./index-BdQq_4o_.js";import"./ChevronUp-C6GRdhwz.js";import"./ArrowLeft-FP_83xMo.js";import"./ChevronSelectorVertical-B8fgmPce.js";import"./Key01-BNFXrDTG.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-DGhmQiH3.js";import"./Eye-D1n0U2nr.js";import"./Image01-D0d8t9Nf.js";import"./use-debounced-value-Dd9WXi-P.js";import"./shell-layout-DjDFDvAp.js";import"./Globe04-i-SMP1da.js";import"./use-deployment-admin-BPWk2wkA.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DQx8J3sX.js";import"./Zap-DyZkYnvp.js";import"./integration-icon-CkDjbcLK.js";import"./LinkBroken01-C-ZJkx1-.js";import"./project-icon-DWIG3WsN.js";import"./use-navigate-to-agent-DNuLTYeG.js";import"./new-project-dialog-DGVfOfmA.js";import"./label-DQEXoY6T.js";import"./repository-picker-LXFO8bDM.js";import"./github-icon-CXz0klo1.js";import"./collection-search-DqZnq1kz.js";import"./BookOpen01-CGmiFh6c.js";import"./ShoppingBag01-Cqxv0G3l.js";import"./new-project-store-DAT5Euei.js";import"./legacy-admin-welcome-dialog-DwPqDRJj.js";import"./required-auth-layout-Xfd5oNH3.js";import"./use-org-sso-CGL9Mumz.js";import"./cms-store-drafts-CwV6xthd.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-cDV9Te_c.js";import"./url-slug-ClELDWkv.js";import"./use-blocks-v8-project-B_RMtP9Z.js";import"./content-changes-B7QLNPm9.js";import"./blocks-tab-states-CBGKB5th.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-CAav-Xpz.js";import"./index-BdizT4sC.js";import"./ArrowUp-B0lRrz50.js";import"./input-A0pROuXz.js";import"./usage-stats-B3MiRtbE.js";import"./utils-CVEq3hMx.js";import"./markdown-CBsDAJwx.js";import"./use-copy-BktBumBM.js";import"./File02-lnmDsOIM.js";import"./gateway-client-BjTndvcO.js";import"./form-lT2yclrj.js";import"./icon-button-DnYO-W8b.js";import"./file-type-icon-CFo6D_mq.js";import"./chat-draft-Gm7m0AHh.js";import"./ArrowRight-c12L_DBI.js";import"./Upload01-BE_2AiDk.js";import"./use-deco-credits-C7fZIj6N.js";import"./toggle-group-BcyNxcnc.js";import"./input-DGwNGk5F.js";import"./suggestion-CFxVXMn8.js";import"./use-mcp-prompts-BS4RJMA_.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CIskqUv5.js";import"./plan-ladder-CYLyF8a4.js";import"./add-connection-dialog-B3Q9C4ta.js";import"./extract-connection-data-DJrQm_Aj.js";import"./metadata-D72DunRR.js";import"./connection-PdY1jdjN.js";import"./connection-card-rF-q91cm.js";import"./connection-slug-CLSeWQFu.js";import"./textarea-CIDyBlnB.js";import"./use-connection-CZ1NbbVy.js";import"./schema-DehrCLDJ.js";import"./connection-form-helpers-BbSye8zz.js";import"./authenticate-and-persist-oauth-CfD2cssG.js";import"./mcp-oauth-n1oSp2-S.js";import"./mcp-oauth-JdceSX9b.js";import"./collection-tabs-CkIuyvEg.js";import"./badge-D4t_0yop.js";import"./use-infinite-scroll-CycWyrzU.js";import"./useSuspenseInfiniteQuery-DkDXLw8E.js";import"./use-task-board-items-D4msWN6P.js";import"./pair-BR0xVY7K.js";import"./collapsible-CvOWSuY7.js";import"./task-key-dODSqtOD.js";import"./config-CKam44yj.js";import"./task-route-Cy5WEzJq.js";import"./project-index-BUfiy84V.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-GqMvWkA6.js";import"./types-CnPGvQg1.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-C9z66BGs.js";import"./agent-capabilities-CwQVSwUn.js";import"./use-cms-publish-actions-CD9zGQ2J.js";import"./use-content-sync-Cq2aGUf5.js";import"./sandbox-git-api-zgEm1abw.js";import"./utils-BTsdsvJd.js";import"./device-hint-C_jFHzsP.js";import"./alert-qFpOptTR.js";import"./section-array-field-C-IVu4bI.js";import"./editor-C2k7wzhY.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-B8XBQ27H.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-BrYzNGv7.js";import"./Fingerprint04-DWY8-Yis.js";import"./Sun-CHBjoRg5.js";import"./Play-LuTO-O0l.js";import"./Users01-B0nNOy2m.js";import"./use-move-blocks-Brooe0Rr.js";import"./hosted-reconcile-LANuriok.js";const st={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},nt=1;function at(t){const e=st[t.device],o=e.width+2*nt,i=t.device==="desktop"&&(t.canvas.width===0||t.canvas.width>=o);if(i)return{fluid:i,scale:1,style:{width:"100%",height:"100%"}};const r=t.canvas.width>0?Math.min(t.canvas.width/o,1):1;return{fluid:i,scale:r,style:{width:`${e.width}px`,height:t.canvas.height>0?`${t.canvas.height/r}px`:`${e.height}px`,transform:`scale(${r})`,transformOrigin:"top center"}}}function lt(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function ct(t){const e=$.c(51),{iframeRef:o,iframeBase:i,src:r,device:a,canvas:p,title:c,recoveryActive:l,draftUrl:m,holdNavigation:f,changePending:d,expectLoad:s}=t,g=f===void 0?!1:f,h=d===void 0?!1:d,b=s===void 0?0:s;let w;e[0]!==p||e[1]!==a?(w=at({device:a,canvas:p}),e[0]=p,e[1]=a,e[2]=w):w=e[2];const S=w,v=l?r:null;let j;e[3]!==o||e[4]!==l||e[5]!==v?(j={iframeRef:o,src:v,active:l},e[3]=o,e[4]=l,e[5]=v,e[6]=j):j=e[6];const x=Ve(j);let u;e[7]!==r?(u={src:r,loading:!1},e[7]=r,e[8]=u):u=e[8];const[y,H]=D.useState(u);let z;e[9]!==h||e[10]!==g||e[11]!==y||e[12]!==r?(z=Ue(y,We(y.src,r,h),g),e[9]=h,e[10]=g,e[11]=y,e[12]=r,e[13]=z):z=e[13];const Y=z;Y!==y&&H(Y);const P=Y.src,E=Y.loading,[k,A]=D.useState(!0);let K;e[14]!==h||e[15]!==b||e[16]!==P?(K={frameSrc:P,changePending:h,expectLoad:b},e[14]=h,e[15]=b,e[16]=P,e[17]=K):K=e[17];const[L,W]=D.useState(K);if(L.frameSrc!==P||L.changePending!==h||L.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const B=h&&!L.changePending;(L.frameSrc!==P||L.expectLoad!==b||B)&&A(!0)}const q=D.useRef(null);let I;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(I=()=>{const B=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{B&&clearTimeout(B)};if(!m||!P||q.current===m)return G;q.current=m;const F=o.current;return F&&F.getAttribute("src")!==P&&(F.src=P),G},e[18]=k,e[19]=m,e[20]=E,e[21]=P,e[22]=o,e[23]=I):I=e[23];let M;e[24]!==k||e[25]!==m||e[26]!==E||e[27]!==P?(M=[m,P,E,k],e[24]=k,e[25]=m,e[26]=E,e[27]=P,e[28]=M):M=e[28],D.useEffect(I,M);let T;e[29]!==k||e[30]!==h||e[31]!==E?(T=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=T):T=e[32];const C=!S.fluid&&"bg-background shadow-edge";let _;e[33]!==C?(_=re("shrink-0",C),e[33]=C,e[34]=_):_=e[34];let O;e[35]!==x?(O=B=>{Ye(B.currentTarget),H(fe),A(!1),x.handleLoad()},e[35]=x,e[36]=O):O=e[36];let R;e[37]!==P||e[38]!==i||e[39]!==o||e[40]!==x.handleError||e[41]!==O||e[42]!==c?(R=n.jsx("iframe",{ref:o,src:P,className:"w-full h-full border-0",title:c,onError:x.handleError,onLoad:O},i),e[37]=P,e[38]=i,e[39]=o,e[40]=x.handleError,e[41]=O,e[42]=c,e[43]=R):R=e[43];let N;e[44]!==S.style||e[45]!==_||e[46]!==R?(N=n.jsx("div",{className:_,style:S.style,children:R}),e[44]=S.style,e[45]=_,e[46]=R,e[47]=N):N=e[47];let V;return e[48]!==T||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[T,N]}),e[48]=T,e[49]=N,e[50]=V):V=e[50],V}function mt(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const pt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},dt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function ft(t){const e=$.c(77),{orgSlug:o,virtualMcpId:i,decofile:r,post:a,blockKey:p,previewBaseUrl:c,meta:l,fastPreviewActive:m,draftPointer:f,visible:d}=t,s=se(),[g,h]=D.useState("desktop"),b=D.useRef(null),[w,S]=Ie(),[v,j]=D.useState(d);d&&!v&&j(!0);let x,u;if(e[0]!==p||e[1]!==r||e[2]!==f||e[3]!==m||e[4]!==l||e[5]!==a||e[6]!==c){u=Qe({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Ze(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=mt({previewBaseUrl:c,hasPostRoute:!!X,url:u,awaitingDraft:m&&!f}),e[0]=p,e[1]=r,e[2]=f,e[3]=m,e[4]=l,e[5]=a,e[6]=c,e[7]=x,e[8]=u}else x=e[7],u=e[8];const y=x,H=qe(o,i),[z,Y]=D.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(lt(X,u),Y(ut))},e[12]=u,e[13]=P):P=e[13];const E=P;Je(E);const k=g==="desktop";let A;e[14]!==s?(A=s("sandbox.postPreview.desktop"),e[14]=s,e[15]=A):A=e[15];let K,L;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),L=n.jsx(Me,{size:16}),e[16]=K,e[17]=L):(K=e[16],L=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:L}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let I;e[21]!==s?(I=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=I):I=e[22];let M,T;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),T=n.jsx(ze,{size:16}),e[23]=M,e[24]=T):(M=e[23],T=e[24]);let C;e[25]!==q||e[26]!==I?(C=n.jsx(ue,{active:q,label:I,onClick:M,children:T}),e[25]=q,e[26]=I,e[27]=C):C=e[27];let _;e[28]!==C||e[29]!==W?(_=n.jsxs("div",{className:"flex items-center gap-0.5",children:[W,C]}),e[28]=C,e[29]=W,e[30]=_):_=e[30];const O=!!y;let R;e[31]!==s?(R=s("sandbox.postPreview.refresh"),e[31]=s,e[32]=R):R=e[32];let N;e[33]!==s?(N=s("sandbox.postPreview.refresh"),e[33]=s,e[34]=N):N=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(we,{size:16}),e[35]=V):V=e[35];let B;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?(B=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:O,"aria-label":R,title:N,onClick:E,children:V}),e[36]=E,e[37]=O,e[38]=R,e[39]=N,e[40]=B):B=e[40];const G=!u||!!y;let F;e[41]!==s?(F=s("sandbox.postPreview.openInNewTab"),e[41]=s,e[42]=F):F=e[42];let J;e[43]!==s?(J=s("sandbox.postPreview.openInNewTab"),e[43]=s,e[44]=J):J=e[44];let Q;e[45]!==y||e[46]!==u?(Q=()=>{u&&!y&&window.open(u,"_blank","noopener,noreferrer")},e[45]=y,e[46]=u,e[47]=Q):Q=e[47];let ne;e[48]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Pe,{size:16}),e[48]=ne):ne=e[48];let Z;e[49]!==G||e[50]!==F||e[51]!==J||e[52]!==Q?(Z=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:G,"aria-label":F,title:J,onClick:Q,children:ne}),e[49]=G,e[50]=F,e[51]=J,e[52]=Q,e[53]=Z):Z=e[53];let ee;e[54]!==B||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[B,Z]}),e[54]=B,e[55]=Z,e[56]=ee):ee=e[56];let te;e[57]!==_||e[58]!==ee?(te=n.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between gap-2 border-b px-2",children:[_,ee]}),e[57]=_,e[58]=ee,e[59]=te):te=e[59];let oe;e[60]!==y||e[61]!==w||e[62]!==H||e[63]!==g||e[64]!==m||e[65]!==v||e[66]!==c||e[67]!==z||e[68]!==s||e[69]!==u?(oe=y||!u?n.jsx(be,{className:"h-full",title:s(pt[y??"missing-params"]),description:s(dt[y??"missing-params"])}):v?n.jsx(ct,{iframeRef:b,iframeBase:c??null,src:u,device:g,canvas:w,title:s("sandbox.postPreview.frameTitle"),recoveryActive:!m,draftUrl:m?u:null,holdNavigation:m,changePending:H,expectLoad:z}):null,e[60]=y,e[61]=w,e[62]=H,e[63]=g,e[64]=m,e[65]=v,e[66]=c,e[67]=z,e[68]=s,e[69]=u,e[70]=oe):oe=e[70];let ie;e[71]!==S||e[72]!==oe?(ie=n.jsx("div",{ref:S,className:"relative flex min-h-0 flex-1 justify-center overflow-clip bg-muted/30",children:oe}),e[71]=S,e[72]=oe,e[73]=ie):ie=e[73];let ae;return e[74]!==te||e[75]!==ie?(ae=n.jsxs("div",{className:"flex h-full min-w-0 flex-col border-l bg-muted/30",children:[te,ie]}),e[74]=te,e[75]=ie,e[76]=ae):ae=e[76],ae}function ut(t){return t+1}function ue(t){const e=$.c(8),{active:o,label:i,onClick:r,children:a}=t,p=o&&"bg-accent text-accent-foreground";let c;e[0]!==p?(c=re(p),e[0]=p,e[1]=c):c=e[1];let l;return e[2]!==o||e[3]!==a||e[4]!==i||e[5]!==r||e[6]!==c?(l=n.jsx(ce,{type:"button",variant:"ghost",size:"icon","aria-pressed":o,"aria-label":i,title:i,className:c,onClick:r,children:a}),e[2]=o,e[3]=a,e[4]=i,e[5]=r,e[6]=c,e[7]=l):l=e[7],l}const ht=1366;function vt(t){return t.width<0?{kind:"pending"}:t.width<ht?{kind:"one-at-a-time",showing:t.view??"edit"}:{kind:"side-by-side",panes:t.view??"both"}}function pe(t,e){switch(t.kind){case"pending":return e==="edit";case"one-at-a-time":return t.showing===e;case"side-by-side":return t.panes==="both"||t.panes===e}}function gt(t,e){return t==="both"?e==="edit"?"preview":"edit":t===e?null:void 0}const U={default:55,min:30,max:75};function le(t){return Number.isFinite(t)?Math.min(U.max,Math.max(U.min,t)):U.default}const bt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function xt(){const t=$.c(13),[e,o]=ye(bt,wt),i=le(e),r=D.useRef(null);let a;t[0]!==o||t[1]!==i?(a=d=>{const s=r.current,g=s?.getBoundingClientRect().width??0;if(!s||g<=0||d.button!==0)return;d.preventDefault();const h=d.clientX,b=x=>le(Math.round((i+(x-h)/g*100)*10)/10);let w=i;const S=Array.from(s.querySelectorAll("iframe"));for(const x of S)x.style.pointerEvents="none";const v=x=>{w=b(x.clientX),s.style.setProperty(me,`${w}%`)},j=x=>{x.type==="pointerup"&&(w=b(x.clientX)),s.style.setProperty(me,`${w}%`),o(w);for(const u of S)u.style.pointerEvents="";window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",v),window.addEventListener("pointerup",j),window.addEventListener("pointercancel",j)},t[0]=o,t[1]=i,t[2]=a):a=t[2];const p=a;let c;t[3]!==o||t[4]!==i?(c=d=>{const s=d.key==="ArrowLeft"?i-he:d.key==="ArrowRight"?i+he:d.key==="Home"?U.min:d.key==="End"?U.max:null;s!==null&&(d.preventDefault(),o(le(s)))},t[3]=o,t[4]=i,t[5]=c):c=t[5];const l=c;let m;t[6]!==o?(m=()=>o(U.default),t[6]=o,t[7]=m):m=t[7];let f;return t[8]!==l||t[9]!==p||t[10]!==i||t[11]!==m?(f={share:i,containerRef:r,onPointerDown:p,onKeyDown:l,reset:m},t[8]=l,t[9]=p,t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function wt(t){return typeof t=="number"?le(t):U.default}const Pt=D.lazy(()=>Se(()=>import("./post-editor-BTOUUukW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168])).then(t=>({default:t.PostEditor})));function yt({orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,fastPreviewActive:c,view:l,onViewChange:m,onOpenBlog:f}){const d=se(),[s,g]=je(),h=He({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=Fe(w,"posts"),v=vt({width:s,view:l}),j=xt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(Et,{orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,move:h,onDeleted:f});return n.jsxs("div",{ref:g,className:"flex h-full min-h-0 flex-col",children:[n.jsx(Ee.Breadcrumbs,{after:"page",parent:{onSelect:f},items:[{key:`post:${ge(i)}`,label:H||d("sandbox.postBoard.untitled")}]}),v.kind!=="pending"&&n.jsx("div",{className:"flex h-10 shrink-0 items-center justify-end border-b px-2",children:n.jsx(St,{layout:v,onViewChange:m})}),n.jsxs("div",{ref:j.containerRef,className:"flex min-h-0 flex-1",style:{[me]:`${j.share}%`},children:[n.jsx("div",{className:re("min-w-0",!x&&"hidden",y?"shrink-0":"flex-1"),style:y?{width:`var(${me})`}:void 0,children:z}),y&&n.jsx(jt,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(ft,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function St(t){const e=$.c(4),{layout:o,onViewChange:i}=t,r=se();if(o.kind==="pending")return null;let a;if(e[0]!==o||e[1]!==i||e[2]!==r){const p=[{pane:"edit",label:r("sandbox.postEditScreen.edit"),icon:n.jsx(Ce,{size:14})},{pane:"preview",label:r("sandbox.postEditScreen.preview"),icon:n.jsx(Ae,{size:14})}];a=n.jsx("div",{className:"flex items-center gap-0.5 rounded-lg bg-muted p-0.5",children:p.map(c=>{const{pane:l,label:m,icon:f}=c,d=pe(o,l);if(o.kind==="one-at-a-time")return n.jsx(ve,{pressed:d,label:m,icon:f,onClick:d?void 0:()=>i(l)},l);const s=gt(o.panes,l);return n.jsx(ve,{pressed:d,locked:s===null,label:m,icon:f,onClick:s===null?void 0:()=>i(s)},l)})}),e[0]=o,e[1]=i,e[2]=r,e[3]=a}else a=e[3];return a}function ve(t){const e=$.c(10),{pressed:o,locked:i,label:r,icon:a,onClick:p}=t,c=i===void 0?!1:i,l=c||void 0,m=o&&"bg-background shadow-sm",f=c&&"cursor-default";let d;e[0]!==m||e[1]!==f?(d=re("h-7 px-2",m,f),e[0]=m,e[1]=f,e[2]=d):d=e[2];let s;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==o||e[7]!==l||e[8]!==d?(s=n.jsxs(ce,{type:"button",variant:"ghost",size:"sm","aria-pressed":o,"aria-disabled":l,className:d,onClick:p,children:[a,r]}),e[3]=a,e[4]=r,e[5]=p,e[6]=o,e[7]=l,e[8]=d,e[9]=s):s=e[9],s}function jt(t){const e=$.c(14),{split:o}=t,i=se();let r;e[0]!==i?(r=i("sandbox.postEditScreen.resizeSplit"),e[0]=i,e[1]=r):r=e[1];let a;e[2]!==o.share?(a=Math.round(o.share),e[2]=o.share,e[3]=a):a=e[3];let p;e[4]!==i?(p=i("sandbox.postEditScreen.resizeSplitHint"),e[4]=i,e[5]=p):p=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-ring group-active/resize:bg-ring group-focus-visible/resize:bg-ring"}),e[6]=c):c=e[6];let l;return e[7]!==o.onKeyDown||e[8]!==o.onPointerDown||e[9]!==o.reset||e[10]!==r||e[11]!==a||e[12]!==p?(l=n.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":r,"aria-valuenow":a,"aria-valuemin":U.min,"aria-valuemax":U.max,title:p,tabIndex:0,onPointerDown:o.onPointerDown,onKeyDown:o.onKeyDown,onDoubleClick:o.reset,className:"group/resize relative z-10 -mx-1 w-2 shrink-0 cursor-col-resize touch-none focus-visible:outline-none",children:c}),e[7]=o.onKeyDown,e[8]=o.onPointerDown,e[9]=o.reset,e[10]=r,e[11]=a,e[12]=p,e[13]=l):l=e[13],l}function Et(t){const e=$.c(15),{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f}=t;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex h-full items-center justify-center",children:n.jsx(ke,{className:"size-5 text-muted-foreground"})}),e[0]=d):d=e[0];let s;e[1]!==a?(s=ge(a),e[1]=a,e[2]=s):s=e[2];const g=`post:${s}`,h=p[a];let b;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==c||e[7]!==m||e[8]!==f||e[9]!==o||e[10]!==l||e[11]!==g||e[12]!==h||e[13]!==i?(b=n.jsx(D.Suspense,{fallback:d,children:n.jsx(Pt,{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,block:h,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f},g)}),e[3]=a,e[4]=r,e[5]=p,e[6]=c,e[7]=m,e[8]=f,e[9]=o,e[10]=l,e[11]=g,e[12]=h,e[13]=i,e[14]=b):b=e[14],b}function kt(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function _t(t){const e=$.c(18),{virtualMcpId:o}=t,i=se(),r=_e();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const p=Re(a);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const l=Ne(c),m=p.postId??"",f=p.org??"",d=p.agentId??"";let s;e[2]!==f||e[3]!==d?(s={org:f,agentId:d},e[2]=f,e[3]=d,e[4]=s):s=e[4];const g=s;let h;e[5]!==r||e[6]!==g?(h=()=>{r({to:de.blog,params:g,search:Rt})},e[5]=r,e[6]=g,e[7]=h):h=e[7];const b=h;let w;e[8]!==r||e[9]!==b||e[10]!==m||e[11]!==g||e[12]!==l||e[13]!==i?(w=n.jsx(et,{children:v=>{const j=kt(v.decofile,m);return j?n.jsx(yt,{orgSlug:v.orgSlug,virtualMcpId:v.virtualMcpId,branch:v.branch,blockKey:j,decofile:v.decofile,meta:v.meta,previewBaseUrl:v.sitePreviewUrl,fastPreviewActive:v.fastPreviewActive,view:l.blogView,onViewChange:x=>{r({to:de.blogPost,params:{...g,postId:m},search:u=>({...u,blogView:x}),replace:!0})},onOpenBlog:b}):n.jsx(be,{className:"h-full",title:i("sandbox.postEditScreen.notFound"),description:i("sandbox.postEditScreen.notFoundHint"),buttonProps:{children:i("sandbox.collectionsSidebar.posts"),onClick:b}})}}),e[8]=r,e[9]=b,e[10]=m,e[11]=g,e[12]=l,e[13]=i,e[14]=w):w=e[14];let S;return e[15]!==w||e[16]!==o?(S=n.jsx(tt,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function Rt(t){return ot({previous:t,destination:"agent"})}function Nt(){const t=$.c(2),e=it();let o;return t[0]!==e?(o=n.jsx(rt,{children:n.jsx($e,{feature:"cms",children:n.jsx(_t,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function os(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx(Te,{}),children:n.jsx(Nt,{})}),t[0]=e):e=t[0],e}export{os as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-cvzIrkiW.js","assets/index-ztdGKvBm.js","assets/index-DOMlzk_A.css","assets/chat-context-DFEln8mI.js","assets/use-panel-navigate-0z93k6Ut.js","assets/thread-route-CfpvvkkL.js","assets/use-project-scope-BwqdbGG4.js","assets/repository-binding-D_Xc1yRH.js","assets/use-mcp-client-2MG3LveS.js","assets/auth-C82OPjUx.js","assets/use-view-draft-kind-BopwZu5H.js","assets/use-blog-view-DMfZjkz0.js","assets/use-organization-settings-C2vcrj4S.js","assets/schema-Bb-DbvPZ.js","assets/task-board-i6qU2BVR.js","assets/thread-intent-DyZ5A9F9.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-DdfLfQcH.js","assets/session-runtime-DBl1Hlcw.js","assets/use-entitlements-Gn1rhCN5.js","assets/use-ai-providers-Ct2xvYDX.js","assets/use-current-view-DBmQQ8uy.js","assets/use-in-settings-CFQ9B3W2.js","assets/use-decopilot-events-43RPCkUH.js","assets/use-org-fs-D9dHgOYs.js","assets/useInfiniteQuery-Ypmdjx1e.js","assets/infiniteQueryObserver-C3KEOANj.js","assets/AlertCircle-BlMH0XE7.js","assets/agent-icon-BYWtutu9.js","assets/UserCheck01-k-4bTA2h.js","assets/Tool01-BCJ5kyrz.js","assets/ArrowUp-D5DDc3Cp.js","assets/ArrowLeft-B0PZnf1E.js","assets/ArrowRight-mzMrxxYI.js","assets/BookOpen01-DU-B3R7s.js","assets/Globe04-CeAQ1YNm.js","assets/CheckCircle-DZ8MNpCP.js","assets/ChevronDown-XsLJSrfl.js","assets/ChevronSelectorVertical-CB0fn1Nq.js","assets/ChevronUp-BQktpZWC.js","assets/UserSquare-CafFh5_d.js","assets/LinkBroken01-DfUhihLM.js","assets/CreditCard01-MY4ouqtl.js","assets/File02-DaYek2y9.js","assets/MessageCircle01-BG1RhOiZ.js","assets/SwitchHorizontal01-CMdpIiQk.js","assets/Eye-kjjhS0vP.js","assets/Fingerprint04-B2fDIuT8.js","assets/Image01-BcIZ5mtf.js","assets/Key01-CaJGjh13.js","assets/LayoutLeft-DDtN-od-.js","assets/Minus-hZzPDO0w.js","assets/Monitor01-DMFbvudn.js","assets/Sun-O9TdKcV_.js","assets/Play-BCFOaioW.js","assets/Plus-DWySsEmB.js","assets/SearchMd-BD2qldmS.js","assets/ShoppingBag01-BbjW7cod.js","assets/Trash01-BxBhF2b8.js","assets/Upload01-q-rKSvZf.js","assets/Users01-DM58_gUL.js","assets/XClose-CmTuu4UN.js","assets/Zap-CBJ7My90.js","assets/label-8UxgpYiA.js","assets/multi-select-DT2CaFLR.js","assets/badge-DcUertOZ.js","assets/checkbox-QUuOza1H.js","assets/command-C3tlrKUq.js","assets/index-DMpANy5-.js","assets/popover-C4oz5B-L.js","assets/tabs-nQ7_UOyl.js","assets/active-indicator-CCMhAsc_.js","assets/switch-B81oLbqr.js","assets/textarea-viSdm6BE.js","assets/save-status-DhQhbNh0.js","assets/use-never-published-BJeGnEQC.js","assets/use-voice-input-BMrsODyI.js","assets/drawer-CROtV2u4.js","assets/tooltip-Bm0P1gm_.js","assets/index-CDQbtG2e.js","assets/use-mobile-C_hdQY5I.js","assets/index-CJKec1wg.js","assets/select-CxXZwsSr.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-Dq7SmLyr.js","assets/content-changes-BFwm7dNe.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-E6fWuIsO.js","assets/use-blocks-v8-project-BPvEDyS9.js","assets/utils-COdvgYqW.js","assets/sandbox-git-api-BsG4EzUP.js","assets/hosted-reconcile-rjhKNGnc.js","assets/blocks-tab-states-8lUCpJRf.js","assets/empty-state-I_cTbW85.js","assets/search-input-BQ8Dp8aD.js","assets/use-debounced-value-DO5dvp6c.js","assets/use-file-configs-3gwPBXwK.js","assets/asset-utils-DP9aQr9Q.js","assets/usage-stats-B0_Yl-r0.js","assets/utils-CVEq3hMx.js","assets/markdown-CJR_ooUO.js","assets/use-copy-DT4_uVrH.js","assets/gateway-client-B4qzR3sF.js","assets/form-DlZ0KMAb.js","assets/toggle-group-yQeAFu4u.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-fIbF5XH6.js","assets/task-key-Bt60Ndov.js","assets/sortable.esm-CKl9Rez4.js","assets/delete-copy-DdlDdNyl.js","assets/category-tree-DGOo1BAt.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-DmyTA2cC.js","assets/collapsible-CadTVXY4.js","assets/use-task-board-items-D2aUd0HA.js","assets/config-LEYSFIMn.js","assets/task-route-C3cK6F8S.js","assets/project-index-C2IrSomv.js","assets/shell-layout-UF80oiAz.js","assets/use-deployment-admin-Cr4LWHG9.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-Bg0zOPPj.js","assets/integration-icon-Bo-3z9o3.js","assets/project-icon-fQqckccl.js","assets/use-navigate-to-agent-Cw8_3uU5.js","assets/new-project-dialog-BW6Lh52P.js","assets/repository-picker-CSaozawA.js","assets/github-icon-Bq9Ot22_.js","assets/collection-search-DkVgkcUC.js","assets/new-project-store-DID5OVrt.js","assets/legacy-admin-welcome-dialog-plmLACwz.js","assets/required-auth-layout-Cwtu4iIe.js","assets/use-org-sso-_fzcS8V-.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-DU6s3Olv.js","assets/types-5-cDe_8u.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-C-umRrOH.js","assets/use-connection-CcG4QE1K.js","assets/use-mcp-prompts-qJSiAdA5.js","assets/use-thread-outputs-BK5BfLdO.js","assets/file-type-icon-CdjLDWdN.js","assets/section-array-field-uECXIzc8.js","assets/index-BL01DXCf.js","assets/suggestion-aR93AXr2.js","assets/editor-classes-DYlqLnQ7.js","assets/blog-preview-url-N6iQgPQK.js","assets/primitives-BbUqWJzg.js","assets/use-move-blocks-Bu_TrzH9.js","assets/product-picker-dialog-Bux2F3Cd.js","assets/index-DrJBZ2ZV.js","assets/held-block-view-QD0AvQ2Q.js","assets/calendar-DNzaYWCQ.js","assets/named-rule-step-BUKBZ8bi.js","assets/slider-Cqj9bgcu.js","assets/index-MkoN5oFR.js","assets/tooltipContext-CSDtg0Lk.js","assets/CategoricalChart-wSsXuALZ.js","assets/index-rjS4IUT9.js","assets/combobox-2rKAfmHD.js","assets/scroll-area-Dm3EbBj1.js","assets/blog-schema-0s-6sCQz.js","assets/use-delete-block-BDYGRW7T.js","assets/use-fast-preview-draft-url-CpggWNTk.js","assets/use-autosave-3MAlhbEw.js"])))=>i.map(i=>d[i]);
2
+ import{c as $,r as D,m as re,j as n,b as se,bg as xe,b9 as we,B as ce,a9 as Pe,au as ye,bb as Se,bh as je,n as Ee,bf as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bi as Be,bj as De}from"./index-ztdGKvBm.js";import{ChatLayout as Le}from"./index-Co7YBLf6.js";import{b as Ie,S as Te}from"./site-draft-actions-FVwQt-Zd.js";import{F as $e}from"./feature-gate-DMrFeUy1.js";import{E as be}from"./empty-state-DM4xv3sa.js";import{G as ze,n as Ae}from"./agent-icon-BYWtutu9.js";import{e as Ce}from"./UserSquare-CafFh5_d.js";import{u as Oe}from"./use-fast-preview-draft-url-CpggWNTk.js";import{a as Fe}from"./category-tree-DGOo1BAt.js";import{u as He,s as Ke}from"./primitives-BbUqWJzg.js";import{i as Me}from"./Monitor01-DMFbvudn.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe,g as Ye}from"./frame-navigation-DMXKoo4B.js";import{g as qe}from"./site-editor-toast-Dq7SmLyr.js";import{b as Je}from"./use-sandbox-events-E6fWuIsO.js";import{b as Qe,f as Ze}from"./blog-preview-url-N6iQgPQK.js";import{B as et,a as tt}from"./blog-source-gate-BIpZ68Ul.js";import{r as ot}from"./use-panel-navigate-0z93k6Ut.js";import{c as it}from"./thread-route-CfpvvkkL.js";import{a as rt}from"./blog-view-gate-D2LovAn5.js";import"./use-mobile-C_hdQY5I.js";import"./tooltip-Bm0P1gm_.js";import"./index-CDQbtG2e.js";import"./MessageCircle01-BG1RhOiZ.js";import"./XClose-CmTuu4UN.js";import"./thread-button-CP83i3PG.js";import"./use-sidebar-collapsed-Cy-mIzeN.js";import"./sheet-C-umRrOH.js";import"./use-chat-layout-state-Im_c7sw4.js";import"./toolbar-icon-button-Cz-oOJ1w.js";import"./use-in-settings-CFQ9B3W2.js";import"./resizable-DNBx7bMi.js";import"./route-page-header-CApA0aIo.js";import"./LayoutLeft-DDtN-od-.js";import"./use-project-scope-BwqdbGG4.js";import"./repository-binding-D_Xc1yRH.js";import"./use-mcp-client-2MG3LveS.js";import"./auth-C82OPjUx.js";import"./use-current-view-DBmQQ8uy.js";import"./separator-BQ6pXQbe.js";import"./chat-context-DFEln8mI.js";import"./use-view-draft-kind-BopwZu5H.js";import"./use-blog-view-DMfZjkz0.js";import"./use-organization-settings-C2vcrj4S.js";import"./schema-Bb-DbvPZ.js";import"./task-board-i6qU2BVR.js";import"./thread-intent-DyZ5A9F9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DdfLfQcH.js";import"./session-runtime-DBl1Hlcw.js";import"./use-entitlements-Gn1rhCN5.js";import"./use-ai-providers-Ct2xvYDX.js";import"./use-decopilot-events-43RPCkUH.js";import"./use-org-fs-D9dHgOYs.js";import"./useInfiniteQuery-Ypmdjx1e.js";import"./infiniteQueryObserver-C3KEOANj.js";import"./use-org-notice-Bg0zOPPj.js";import"./popover-C4oz5B-L.js";import"./command-C3tlrKUq.js";import"./index-DMpANy5-.js";import"./SearchMd-BD2qldmS.js";import"./tabs-nQ7_UOyl.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-XsLJSrfl.js";import"./UserCheck01-k-4bTA2h.js";import"./SwitchHorizontal01-CMdpIiQk.js";import"./Tool01-BCJ5kyrz.js";import"./Plus-DWySsEmB.js";import"./Trash01-BxBhF2b8.js";import"./use-voice-input-BMrsODyI.js";import"./drawer-CROtV2u4.js";import"./index-CJKec1wg.js";import"./checkbox-QUuOza1H.js";import"./Minus-hZzPDO0w.js";import"./select-CxXZwsSr.js";import"./index-BdQq_4o_.js";import"./ChevronUp-BQktpZWC.js";import"./ArrowLeft-B0PZnf1E.js";import"./ChevronSelectorVertical-CB0fn1Nq.js";import"./Key01-CaJGjh13.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-BlMH0XE7.js";import"./Eye-kjjhS0vP.js";import"./Image01-BcIZ5mtf.js";import"./use-debounced-value-DO5dvp6c.js";import"./shell-layout-UF80oiAz.js";import"./Globe04-CeAQ1YNm.js";import"./use-deployment-admin-Cr4LWHG9.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DZ8MNpCP.js";import"./Zap-CBJ7My90.js";import"./integration-icon-Bo-3z9o3.js";import"./LinkBroken01-DfUhihLM.js";import"./project-icon-fQqckccl.js";import"./use-navigate-to-agent-Cw8_3uU5.js";import"./new-project-dialog-BW6Lh52P.js";import"./label-8UxgpYiA.js";import"./repository-picker-CSaozawA.js";import"./github-icon-Bq9Ot22_.js";import"./collection-search-DkVgkcUC.js";import"./BookOpen01-DU-B3R7s.js";import"./ShoppingBag01-BbjW7cod.js";import"./new-project-store-DID5OVrt.js";import"./legacy-admin-welcome-dialog-plmLACwz.js";import"./required-auth-layout-Cwtu4iIe.js";import"./use-org-sso-_fzcS8V-.js";import"./cms-store-drafts-_66Q7KaS.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-CAb2l-zV.js";import"./url-slug-CII_0B7H.js";import"./use-blocks-v8-project-BPvEDyS9.js";import"./content-changes-BFwm7dNe.js";import"./blocks-tab-states-8lUCpJRf.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-I_cTbW85.js";import"./index-5erPNBmj.js";import"./ArrowUp-D5DDc3Cp.js";import"./input-B2QsYffT.js";import"./usage-stats-B0_Yl-r0.js";import"./utils-CVEq3hMx.js";import"./markdown-CJR_ooUO.js";import"./use-copy-DT4_uVrH.js";import"./File02-DaYek2y9.js";import"./gateway-client-B4qzR3sF.js";import"./form-DlZ0KMAb.js";import"./icon-button-BH8Qviy5.js";import"./file-type-icon-CdjLDWdN.js";import"./chat-draft-DNEqrl5p.js";import"./ArrowRight-mzMrxxYI.js";import"./Upload01-q-rKSvZf.js";import"./use-deco-credits-yGgE3j79.js";import"./toggle-group-yQeAFu4u.js";import"./input-aLblPHPG.js";import"./suggestion-aR93AXr2.js";import"./use-mcp-prompts-qJSiAdA5.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DL1BXqDM.js";import"./plan-ladder-C3ogU-RT.js";import"./add-connection-dialog-CS6ZsWUV.js";import"./extract-connection-data-DjYTV7t7.js";import"./metadata-D72DunRR.js";import"./connection-C8I8wKeO.js";import"./connection-card-CTJwLo8p.js";import"./connection-slug-BNBBglpK.js";import"./textarea-viSdm6BE.js";import"./use-connection-CcG4QE1K.js";import"./schema-D_OZwHJO.js";import"./connection-form-helpers-BjSA2uCL.js";import"./authenticate-and-persist-oauth-87e1Ix6y.js";import"./mcp-oauth-BBSVAQ62.js";import"./mcp-oauth-Alln4VX8.js";import"./collection-tabs-Cju2BOrS.js";import"./badge-DcUertOZ.js";import"./use-infinite-scroll-DdrDrAAo.js";import"./useSuspenseInfiniteQuery-Pk4rU2Ft.js";import"./use-task-board-items-D2aUd0HA.js";import"./pair-DmyTA2cC.js";import"./collapsible-CadTVXY4.js";import"./task-key-Bt60Ndov.js";import"./config-LEYSFIMn.js";import"./task-route-C3cK6F8S.js";import"./project-index-C2IrSomv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DU6s3Olv.js";import"./types-5-cDe_8u.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-BK5BfLdO.js";import"./agent-capabilities-CyWfHGWp.js";import"./use-cms-publish-actions-BWS3AiLQ.js";import"./use-content-sync-GJv8DmEo.js";import"./sandbox-git-api-BsG4EzUP.js";import"./utils-COdvgYqW.js";import"./device-hint-B3WnBHYf.js";import"./alert-CxbB9CEj.js";import"./section-array-field-uECXIzc8.js";import"./editor-ipOJFDhA.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-DbNrw8-a.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-MY4ouqtl.js";import"./Fingerprint04-B2fDIuT8.js";import"./Sun-O9TdKcV_.js";import"./Play-BCFOaioW.js";import"./Users01-DM58_gUL.js";import"./use-move-blocks-Bu_TrzH9.js";import"./hosted-reconcile-rjhKNGnc.js";const st={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},nt=1;function at(t){const e=st[t.device],o=e.width+2*nt,i=t.device==="desktop"&&(t.canvas.width===0||t.canvas.width>=o);if(i)return{fluid:i,scale:1,style:{width:"100%",height:"100%"}};const r=t.canvas.width>0?Math.min(t.canvas.width/o,1):1;return{fluid:i,scale:r,style:{width:`${e.width}px`,height:t.canvas.height>0?`${t.canvas.height/r}px`:`${e.height}px`,transform:`scale(${r})`,transformOrigin:"top center"}}}function lt(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function ct(t){const e=$.c(51),{iframeRef:o,iframeBase:i,src:r,device:a,canvas:p,title:c,recoveryActive:l,draftUrl:m,holdNavigation:f,changePending:d,expectLoad:s}=t,g=f===void 0?!1:f,h=d===void 0?!1:d,b=s===void 0?0:s;let w;e[0]!==p||e[1]!==a?(w=at({device:a,canvas:p}),e[0]=p,e[1]=a,e[2]=w):w=e[2];const S=w,v=l?r:null;let j;e[3]!==o||e[4]!==l||e[5]!==v?(j={iframeRef:o,src:v,active:l},e[3]=o,e[4]=l,e[5]=v,e[6]=j):j=e[6];const x=Ve(j);let u;e[7]!==r?(u={src:r,loading:!1},e[7]=r,e[8]=u):u=e[8];const[y,H]=D.useState(u);let z;e[9]!==h||e[10]!==g||e[11]!==y||e[12]!==r?(z=Ue(y,We(y.src,r,h),g),e[9]=h,e[10]=g,e[11]=y,e[12]=r,e[13]=z):z=e[13];const Y=z;Y!==y&&H(Y);const P=Y.src,E=Y.loading,[k,A]=D.useState(!0);let K;e[14]!==h||e[15]!==b||e[16]!==P?(K={frameSrc:P,changePending:h,expectLoad:b},e[14]=h,e[15]=b,e[16]=P,e[17]=K):K=e[17];const[L,W]=D.useState(K);if(L.frameSrc!==P||L.changePending!==h||L.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const B=h&&!L.changePending;(L.frameSrc!==P||L.expectLoad!==b||B)&&A(!0)}const q=D.useRef(null);let I;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(I=()=>{const B=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{B&&clearTimeout(B)};if(!m||!P||q.current===m)return G;q.current=m;const F=o.current;return F&&F.getAttribute("src")!==P&&(F.src=P),G},e[18]=k,e[19]=m,e[20]=E,e[21]=P,e[22]=o,e[23]=I):I=e[23];let M;e[24]!==k||e[25]!==m||e[26]!==E||e[27]!==P?(M=[m,P,E,k],e[24]=k,e[25]=m,e[26]=E,e[27]=P,e[28]=M):M=e[28],D.useEffect(I,M);let T;e[29]!==k||e[30]!==h||e[31]!==E?(T=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=T):T=e[32];const C=!S.fluid&&"bg-background shadow-edge";let _;e[33]!==C?(_=re("shrink-0",C),e[33]=C,e[34]=_):_=e[34];let O;e[35]!==x?(O=B=>{Ye(B.currentTarget),H(fe),A(!1),x.handleLoad()},e[35]=x,e[36]=O):O=e[36];let R;e[37]!==P||e[38]!==i||e[39]!==o||e[40]!==x.handleError||e[41]!==O||e[42]!==c?(R=n.jsx("iframe",{ref:o,src:P,className:"w-full h-full border-0",title:c,onError:x.handleError,onLoad:O},i),e[37]=P,e[38]=i,e[39]=o,e[40]=x.handleError,e[41]=O,e[42]=c,e[43]=R):R=e[43];let N;e[44]!==S.style||e[45]!==_||e[46]!==R?(N=n.jsx("div",{className:_,style:S.style,children:R}),e[44]=S.style,e[45]=_,e[46]=R,e[47]=N):N=e[47];let V;return e[48]!==T||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[T,N]}),e[48]=T,e[49]=N,e[50]=V):V=e[50],V}function mt(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const pt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},dt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function ft(t){const e=$.c(77),{orgSlug:o,virtualMcpId:i,decofile:r,post:a,blockKey:p,previewBaseUrl:c,meta:l,fastPreviewActive:m,draftPointer:f,visible:d}=t,s=se(),[g,h]=D.useState("desktop"),b=D.useRef(null),[w,S]=Ie(),[v,j]=D.useState(d);d&&!v&&j(!0);let x,u;if(e[0]!==p||e[1]!==r||e[2]!==f||e[3]!==m||e[4]!==l||e[5]!==a||e[6]!==c){u=Qe({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Ze(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=mt({previewBaseUrl:c,hasPostRoute:!!X,url:u,awaitingDraft:m&&!f}),e[0]=p,e[1]=r,e[2]=f,e[3]=m,e[4]=l,e[5]=a,e[6]=c,e[7]=x,e[8]=u}else x=e[7],u=e[8];const y=x,H=qe(o,i),[z,Y]=D.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(lt(X,u),Y(ut))},e[12]=u,e[13]=P):P=e[13];const E=P;Je(E);const k=g==="desktop";let A;e[14]!==s?(A=s("sandbox.postPreview.desktop"),e[14]=s,e[15]=A):A=e[15];let K,L;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),L=n.jsx(Me,{size:16}),e[16]=K,e[17]=L):(K=e[16],L=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:L}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let I;e[21]!==s?(I=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=I):I=e[22];let M,T;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),T=n.jsx(ze,{size:16}),e[23]=M,e[24]=T):(M=e[23],T=e[24]);let C;e[25]!==q||e[26]!==I?(C=n.jsx(ue,{active:q,label:I,onClick:M,children:T}),e[25]=q,e[26]=I,e[27]=C):C=e[27];let _;e[28]!==C||e[29]!==W?(_=n.jsxs("div",{className:"flex items-center gap-0.5",children:[W,C]}),e[28]=C,e[29]=W,e[30]=_):_=e[30];const O=!!y;let R;e[31]!==s?(R=s("sandbox.postPreview.refresh"),e[31]=s,e[32]=R):R=e[32];let N;e[33]!==s?(N=s("sandbox.postPreview.refresh"),e[33]=s,e[34]=N):N=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(we,{size:16}),e[35]=V):V=e[35];let B;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?(B=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:O,"aria-label":R,title:N,onClick:E,children:V}),e[36]=E,e[37]=O,e[38]=R,e[39]=N,e[40]=B):B=e[40];const G=!u||!!y;let F;e[41]!==s?(F=s("sandbox.postPreview.openInNewTab"),e[41]=s,e[42]=F):F=e[42];let J;e[43]!==s?(J=s("sandbox.postPreview.openInNewTab"),e[43]=s,e[44]=J):J=e[44];let Q;e[45]!==y||e[46]!==u?(Q=()=>{u&&!y&&window.open(u,"_blank","noopener,noreferrer")},e[45]=y,e[46]=u,e[47]=Q):Q=e[47];let ne;e[48]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Pe,{size:16}),e[48]=ne):ne=e[48];let Z;e[49]!==G||e[50]!==F||e[51]!==J||e[52]!==Q?(Z=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:G,"aria-label":F,title:J,onClick:Q,children:ne}),e[49]=G,e[50]=F,e[51]=J,e[52]=Q,e[53]=Z):Z=e[53];let ee;e[54]!==B||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[B,Z]}),e[54]=B,e[55]=Z,e[56]=ee):ee=e[56];let te;e[57]!==_||e[58]!==ee?(te=n.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between gap-2 border-b px-2",children:[_,ee]}),e[57]=_,e[58]=ee,e[59]=te):te=e[59];let oe;e[60]!==y||e[61]!==w||e[62]!==H||e[63]!==g||e[64]!==m||e[65]!==v||e[66]!==c||e[67]!==z||e[68]!==s||e[69]!==u?(oe=y||!u?n.jsx(be,{className:"h-full",title:s(pt[y??"missing-params"]),description:s(dt[y??"missing-params"])}):v?n.jsx(ct,{iframeRef:b,iframeBase:c??null,src:u,device:g,canvas:w,title:s("sandbox.postPreview.frameTitle"),recoveryActive:!m,draftUrl:m?u:null,holdNavigation:m,changePending:H,expectLoad:z}):null,e[60]=y,e[61]=w,e[62]=H,e[63]=g,e[64]=m,e[65]=v,e[66]=c,e[67]=z,e[68]=s,e[69]=u,e[70]=oe):oe=e[70];let ie;e[71]!==S||e[72]!==oe?(ie=n.jsx("div",{ref:S,className:"relative flex min-h-0 flex-1 justify-center overflow-clip bg-muted/30",children:oe}),e[71]=S,e[72]=oe,e[73]=ie):ie=e[73];let ae;return e[74]!==te||e[75]!==ie?(ae=n.jsxs("div",{className:"flex h-full min-w-0 flex-col border-l bg-muted/30",children:[te,ie]}),e[74]=te,e[75]=ie,e[76]=ae):ae=e[76],ae}function ut(t){return t+1}function ue(t){const e=$.c(8),{active:o,label:i,onClick:r,children:a}=t,p=o&&"bg-accent text-accent-foreground";let c;e[0]!==p?(c=re(p),e[0]=p,e[1]=c):c=e[1];let l;return e[2]!==o||e[3]!==a||e[4]!==i||e[5]!==r||e[6]!==c?(l=n.jsx(ce,{type:"button",variant:"ghost",size:"icon","aria-pressed":o,"aria-label":i,title:i,className:c,onClick:r,children:a}),e[2]=o,e[3]=a,e[4]=i,e[5]=r,e[6]=c,e[7]=l):l=e[7],l}const ht=1366;function vt(t){return t.width<0?{kind:"pending"}:t.width<ht?{kind:"one-at-a-time",showing:t.view??"edit"}:{kind:"side-by-side",panes:t.view??"both"}}function pe(t,e){switch(t.kind){case"pending":return e==="edit";case"one-at-a-time":return t.showing===e;case"side-by-side":return t.panes==="both"||t.panes===e}}function gt(t,e){return t==="both"?e==="edit"?"preview":"edit":t===e?null:void 0}const U={default:55,min:30,max:75};function le(t){return Number.isFinite(t)?Math.min(U.max,Math.max(U.min,t)):U.default}const bt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function xt(){const t=$.c(13),[e,o]=ye(bt,wt),i=le(e),r=D.useRef(null);let a;t[0]!==o||t[1]!==i?(a=d=>{const s=r.current,g=s?.getBoundingClientRect().width??0;if(!s||g<=0||d.button!==0)return;d.preventDefault();const h=d.clientX,b=x=>le(Math.round((i+(x-h)/g*100)*10)/10);let w=i;const S=Array.from(s.querySelectorAll("iframe"));for(const x of S)x.style.pointerEvents="none";const v=x=>{w=b(x.clientX),s.style.setProperty(me,`${w}%`)},j=x=>{x.type==="pointerup"&&(w=b(x.clientX)),s.style.setProperty(me,`${w}%`),o(w);for(const u of S)u.style.pointerEvents="";window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",v),window.addEventListener("pointerup",j),window.addEventListener("pointercancel",j)},t[0]=o,t[1]=i,t[2]=a):a=t[2];const p=a;let c;t[3]!==o||t[4]!==i?(c=d=>{const s=d.key==="ArrowLeft"?i-he:d.key==="ArrowRight"?i+he:d.key==="Home"?U.min:d.key==="End"?U.max:null;s!==null&&(d.preventDefault(),o(le(s)))},t[3]=o,t[4]=i,t[5]=c):c=t[5];const l=c;let m;t[6]!==o?(m=()=>o(U.default),t[6]=o,t[7]=m):m=t[7];let f;return t[8]!==l||t[9]!==p||t[10]!==i||t[11]!==m?(f={share:i,containerRef:r,onPointerDown:p,onKeyDown:l,reset:m},t[8]=l,t[9]=p,t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function wt(t){return typeof t=="number"?le(t):U.default}const Pt=D.lazy(()=>Se(()=>import("./post-editor-cvzIrkiW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168])).then(t=>({default:t.PostEditor})));function yt({orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,fastPreviewActive:c,view:l,onViewChange:m,onOpenBlog:f}){const d=se(),[s,g]=je(),h=He({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=Fe(w,"posts"),v=vt({width:s,view:l}),j=xt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(Et,{orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,move:h,onDeleted:f});return n.jsxs("div",{ref:g,className:"flex h-full min-h-0 flex-col",children:[n.jsx(Ee.Breadcrumbs,{after:"page",parent:{onSelect:f},items:[{key:`post:${ge(i)}`,label:H||d("sandbox.postBoard.untitled")}]}),v.kind!=="pending"&&n.jsx("div",{className:"flex h-10 shrink-0 items-center justify-end border-b px-2",children:n.jsx(St,{layout:v,onViewChange:m})}),n.jsxs("div",{ref:j.containerRef,className:"flex min-h-0 flex-1",style:{[me]:`${j.share}%`},children:[n.jsx("div",{className:re("min-w-0",!x&&"hidden",y?"shrink-0":"flex-1"),style:y?{width:`var(${me})`}:void 0,children:z}),y&&n.jsx(jt,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(ft,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function St(t){const e=$.c(4),{layout:o,onViewChange:i}=t,r=se();if(o.kind==="pending")return null;let a;if(e[0]!==o||e[1]!==i||e[2]!==r){const p=[{pane:"edit",label:r("sandbox.postEditScreen.edit"),icon:n.jsx(Ce,{size:14})},{pane:"preview",label:r("sandbox.postEditScreen.preview"),icon:n.jsx(Ae,{size:14})}];a=n.jsx("div",{className:"flex items-center gap-0.5 rounded-lg bg-muted p-0.5",children:p.map(c=>{const{pane:l,label:m,icon:f}=c,d=pe(o,l);if(o.kind==="one-at-a-time")return n.jsx(ve,{pressed:d,label:m,icon:f,onClick:d?void 0:()=>i(l)},l);const s=gt(o.panes,l);return n.jsx(ve,{pressed:d,locked:s===null,label:m,icon:f,onClick:s===null?void 0:()=>i(s)},l)})}),e[0]=o,e[1]=i,e[2]=r,e[3]=a}else a=e[3];return a}function ve(t){const e=$.c(10),{pressed:o,locked:i,label:r,icon:a,onClick:p}=t,c=i===void 0?!1:i,l=c||void 0,m=o&&"bg-background shadow-sm",f=c&&"cursor-default";let d;e[0]!==m||e[1]!==f?(d=re("h-7 px-2",m,f),e[0]=m,e[1]=f,e[2]=d):d=e[2];let s;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==o||e[7]!==l||e[8]!==d?(s=n.jsxs(ce,{type:"button",variant:"ghost",size:"sm","aria-pressed":o,"aria-disabled":l,className:d,onClick:p,children:[a,r]}),e[3]=a,e[4]=r,e[5]=p,e[6]=o,e[7]=l,e[8]=d,e[9]=s):s=e[9],s}function jt(t){const e=$.c(14),{split:o}=t,i=se();let r;e[0]!==i?(r=i("sandbox.postEditScreen.resizeSplit"),e[0]=i,e[1]=r):r=e[1];let a;e[2]!==o.share?(a=Math.round(o.share),e[2]=o.share,e[3]=a):a=e[3];let p;e[4]!==i?(p=i("sandbox.postEditScreen.resizeSplitHint"),e[4]=i,e[5]=p):p=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-ring group-active/resize:bg-ring group-focus-visible/resize:bg-ring"}),e[6]=c):c=e[6];let l;return e[7]!==o.onKeyDown||e[8]!==o.onPointerDown||e[9]!==o.reset||e[10]!==r||e[11]!==a||e[12]!==p?(l=n.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":r,"aria-valuenow":a,"aria-valuemin":U.min,"aria-valuemax":U.max,title:p,tabIndex:0,onPointerDown:o.onPointerDown,onKeyDown:o.onKeyDown,onDoubleClick:o.reset,className:"group/resize relative z-10 -mx-1 w-2 shrink-0 cursor-col-resize touch-none focus-visible:outline-none",children:c}),e[7]=o.onKeyDown,e[8]=o.onPointerDown,e[9]=o.reset,e[10]=r,e[11]=a,e[12]=p,e[13]=l):l=e[13],l}function Et(t){const e=$.c(15),{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f}=t;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex h-full items-center justify-center",children:n.jsx(ke,{className:"size-5 text-muted-foreground"})}),e[0]=d):d=e[0];let s;e[1]!==a?(s=ge(a),e[1]=a,e[2]=s):s=e[2];const g=`post:${s}`,h=p[a];let b;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==c||e[7]!==m||e[8]!==f||e[9]!==o||e[10]!==l||e[11]!==g||e[12]!==h||e[13]!==i?(b=n.jsx(D.Suspense,{fallback:d,children:n.jsx(Pt,{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,block:h,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f},g)}),e[3]=a,e[4]=r,e[5]=p,e[6]=c,e[7]=m,e[8]=f,e[9]=o,e[10]=l,e[11]=g,e[12]=h,e[13]=i,e[14]=b):b=e[14],b}function kt(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function _t(t){const e=$.c(18),{virtualMcpId:o}=t,i=se(),r=_e();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const p=Re(a);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const l=Ne(c),m=p.postId??"",f=p.org??"",d=p.agentId??"";let s;e[2]!==f||e[3]!==d?(s={org:f,agentId:d},e[2]=f,e[3]=d,e[4]=s):s=e[4];const g=s;let h;e[5]!==r||e[6]!==g?(h=()=>{r({to:de.blog,params:g,search:Rt})},e[5]=r,e[6]=g,e[7]=h):h=e[7];const b=h;let w;e[8]!==r||e[9]!==b||e[10]!==m||e[11]!==g||e[12]!==l||e[13]!==i?(w=n.jsx(et,{children:v=>{const j=kt(v.decofile,m);return j?n.jsx(yt,{orgSlug:v.orgSlug,virtualMcpId:v.virtualMcpId,branch:v.branch,blockKey:j,decofile:v.decofile,meta:v.meta,previewBaseUrl:v.sitePreviewUrl,fastPreviewActive:v.fastPreviewActive,view:l.blogView,onViewChange:x=>{r({to:de.blogPost,params:{...g,postId:m},search:u=>({...u,blogView:x}),replace:!0})},onOpenBlog:b}):n.jsx(be,{className:"h-full",title:i("sandbox.postEditScreen.notFound"),description:i("sandbox.postEditScreen.notFoundHint"),buttonProps:{children:i("sandbox.collectionsSidebar.posts"),onClick:b}})}}),e[8]=r,e[9]=b,e[10]=m,e[11]=g,e[12]=l,e[13]=i,e[14]=w):w=e[14];let S;return e[15]!==w||e[16]!==o?(S=n.jsx(tt,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function Rt(t){return ot({previous:t,destination:"agent"})}function Nt(){const t=$.c(2),e=it();let o;return t[0]!==e?(o=n.jsx(rt,{children:n.jsx($e,{feature:"cms",children:n.jsx(_t,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function os(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx(Te,{}),children:n.jsx(Nt,{})}),t[0]=e):e=t[0],e}export{os as default};