decocms 4.591.1 → 4.591.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/dist/client/assets/{AlertCircle-DNLZLHo2.js → AlertCircle-CzISmSv-.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Dgn18xxn.js → AreaChart-CwYkoyxd.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BYy4HE5O.js → ArrowLeft-Cp5wBgN1.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-nl42uWN9.js → ArrowRight-CeB6x55t.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-D7c5FfG5.js → ArrowUp-COdTIRs6.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-IKZ1bU3J.js → BookOpen01-BHs6bUbD.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-XllT2jEf.js → CartesianChart-6JTa6wpg.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-DFzU-S2b.js → CategoricalChart-BqZTua92.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-B0s2c8RQ.js → CheckCircle-ChJcEZnJ.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-Dfi32xkE.js → ChevronDown-fzLgfNMN.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-C9hJFm1V.js → ChevronSelectorVertical-BTk3FRkw.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-e2lZn6eP.js → ChevronUp-b-VOSMPT.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-DkTCpzky.js → CreditCard01-B0Yfe9hH.js} +1 -1
  14. package/dist/client/assets/{Eye-s8k6ZpFd.js → Eye-DArYaInn.js} +1 -1
  15. package/dist/client/assets/{File02-CIRvfyNR.js → File02-DVaBtYaE.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-CAyq7Ns9.js → Fingerprint04-CALESuKW.js} +1 -1
  17. package/dist/client/assets/{Globe04-Bk3xc77M.js → Globe04-BGV551sq.js} +1 -1
  18. package/dist/client/assets/{Image01-iZnpkSRO.js → Image01-8jmgxAd8.js} +1 -1
  19. package/dist/client/assets/{Key01-2bzDLRA-.js → Key01-DGjA9S6x.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-CqL2QU9u.js → LayoutLeft-Vc1HAa0M.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-DWDlVNIY.js → LinkBroken01-D4pDcB76.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-BeRCqRNK.js → MessageCircle01-BpGqYTnP.js} +1 -1
  23. package/dist/client/assets/{Minus-DbxKzySK.js → Minus-Dw6Nli5H.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CZJ-m8AM.js → Monitor01-Br8acw8G.js} +1 -1
  25. package/dist/client/assets/{Play-B7iY71_g.js → Play-C4UbfvzT.js} +1 -1
  26. package/dist/client/assets/{Plus-Cd_Fqc7w.js → Plus-RCDHml3m.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-DgWivVK0.js → ReferenceLine-BaWNdAtc.js} +1 -1
  28. package/dist/client/assets/{SearchMd-Bdv01_Qr.js → SearchMd-BvUkn3rx.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-C0jxZbeK.js → ShoppingBag01-CAJ64xat.js} +1 -1
  30. package/dist/client/assets/{Sun-B0Lq9-BK.js → Sun-GOAVarv9.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-DD94Yq3O.js → SwitchHorizontal01-CxL0NygI.js} +1 -1
  32. package/dist/client/assets/{Tool01-QwUIWOHx.js → Tool01-C3uo6Lgt.js} +1 -1
  33. package/dist/client/assets/{Tooltip-Beh195nG.js → Tooltip-ijK8GJwk.js} +1 -1
  34. package/dist/client/assets/{Trash01--3zpoQ8b.js → Trash01-hjBWefQQ.js} +1 -1
  35. package/dist/client/assets/{TrendUp01-BvBI14pN.js → TrendUp01-iFr5GCuv.js} +1 -1
  36. package/dist/client/assets/{Upload01-CZv9e6Tj.js → Upload01-qGyzp9T6.js} +1 -1
  37. package/dist/client/assets/{UserCheck01-q7ulPlqF.js → UserCheck01-DZjyuuBK.js} +1 -1
  38. package/dist/client/assets/{UserSquare-CKotvVGa.js → UserSquare-ByLgJRcg.js} +1 -1
  39. package/dist/client/assets/{Users01-Bk6C0ZLv.js → Users01-CqdtHmSR.js} +1 -1
  40. package/dist/client/assets/{XClose-kKpsb0VH.js → XClose-CsOm5OF2.js} +1 -1
  41. package/dist/client/assets/{Zap-2IsMX7ff.js → Zap-DJuxbhuP.js} +1 -1
  42. package/dist/client/assets/{access-gate-Y-WXIoO7.js → access-gate-BRbA9z61.js} +1 -1
  43. package/dist/client/assets/{add-connection-dialog-BqKVQOpT.js → add-connection-dialog-C_sfKhNP.js} +1 -1
  44. package/dist/client/assets/agent-app-KcLcVuvW.js +1 -0
  45. package/dist/client/assets/{agent-assets-B9d6vfY_.js → agent-assets-CTfoRBsg.js} +1 -1
  46. package/dist/client/assets/{agent-automation-BaFxVQLM.js → agent-automation-qCDnCR9w.js} +1 -1
  47. package/dist/client/assets/{agent-automations-CtZ7lFGh.js → agent-automations-swI_7sFA.js} +1 -1
  48. package/dist/client/assets/{agent-blog-DmYTtMYH.js → agent-blog-DywHfbcF.js} +2 -2
  49. package/dist/client/assets/{agent-blog-post-zLQxCDx5.js → agent-blog-post-CMxln6qx.js} +2 -2
  50. package/dist/client/assets/{agent-calendar-y5ZSUmpg.js → agent-calendar-BWNmM7E7.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-D90My_uJ.js → agent-capabilities-Dl5qDebF.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-BtVMYAUz.js → agent-connect-sources-fQGzOuZ8.js} +1 -1
  53. package/dist/client/assets/agent-deck-DtFtG-uU.js +1 -0
  54. package/dist/client/assets/{agent-e2e-BIAK0FpC.js → agent-e2e-CsN4vXlg.js} +1 -1
  55. package/dist/client/assets/agent-experiments-DTR-s4pe.js +1 -0
  56. package/dist/client/assets/agent-file-DltUebDB.js +1 -0
  57. package/dist/client/assets/{agent-hosting-C4FgDohA.js → agent-hosting-BTSTq4mZ.js} +1 -1
  58. package/dist/client/assets/{agent-icon-BOlYSKaH.js → agent-icon-BDoJ39oK.js} +1 -1
  59. package/dist/client/assets/agent-library-COo2GDdn.js +1 -0
  60. package/dist/client/assets/agent-library-file-EXaEuagq.js +1 -0
  61. package/dist/client/assets/agent-overview-UailvCri.js +1 -0
  62. package/dist/client/assets/{agent-releases-HZ4ryE1y.js → agent-releases-096WrRe1.js} +1 -1
  63. package/dist/client/assets/agent-settings-CJP-_4zD.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-Bzjm2lU3.js → agent-site-editor-D5NdG3ya.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-BZGVUEun.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-PfSFSNZ5.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-CaciVvp9.js +1 -0
  68. package/dist/client/assets/agent-view-DJwTS-DW.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-BRdNQ8qK.js → agent-view-guard-BGcDWcPU.js} +1 -1
  70. package/dist/client/assets/{ai-providers-VLF80mWu.js → ai-providers-BpEUU1pI.js} +1 -1
  71. package/dist/client/assets/{alert-B2cQRalI.js → alert-CeUAN2Gm.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-C9YkntzK.js → analytics-sections-BggC7iJ9.js} +1 -1
  73. package/dist/client/assets/{api-keys-BND70lnf.js → api-keys-B43QdkMk.js} +1 -1
  74. package/dist/client/assets/api-keys-ns5plBYO.js +1 -0
  75. package/dist/client/assets/{app-editor-CgGz9MiW.js → app-editor-CzDuoB95.js} +1 -1
  76. package/dist/client/assets/{asset-utils-BVIkMmcx.js → asset-utils-D3oLKwAE.js} +1 -1
  77. package/dist/client/assets/{auth-Dd6nwDaa.js → auth-PzOm_zFv.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-C_ssNZxp.js → auth-catchall-DbQ-000B.js} +1 -1
  79. package/dist/client/assets/{auth-entry-DsM_yiTh.js → auth-entry-DWU242Fg.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-C0EQq32i.js → auth-split-layout-5r4joR8z.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-4YZOrw25.js → authenticate-and-persist-oauth-BDW-ZPLh.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-B_4Wbm-T.js → automation-list-row-oa6t_8-9.js} +1 -1
  83. package/dist/client/assets/{automation-runs-dnZundrC.js → automation-runs-CtevjOto.js} +1 -1
  84. package/dist/client/assets/{automations-DQ8VCZs6.js → automations-BwUBif8p.js} +1 -1
  85. package/dist/client/assets/{badge-DESkUuDj.js → badge-CA_zRurx.js} +1 -1
  86. package/dist/client/assets/{block-document-BUTr6VAJ.js → block-document-_79-V04H.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-DFmac8Yq.js → blocks-preview-workspace-context-zoaVWyNB.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-2WKhheZD.js → blocks-tab-states-B8JNI9rP.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-5VwX4cc2.js → blog-preview-url-pZbpXnSV.js} +1 -1
  90. package/dist/client/assets/{blog-schema-MT2kK_O9.js → blog-schema-CilAbDlC.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-N5r2xTwN.js → blog-source-gate-CuhbPoPW.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-DJoWGjbF.js → blog-view-gate-DkmdG0vt.js} +1 -1
  93. package/dist/client/assets/{buckets-Cq_e1x8V.js → buckets-zq4ipxKc.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-CjdW-8YA.js → build-improve-prompt-doc-B2KHjCtV.js} +1 -1
  95. package/dist/client/assets/{calendar-BuuRBO7G.js → calendar-BROMdOEm.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-_SuVL26W.js → capability-load-error-B2nGOB8U.js} +1 -1
  97. package/dist/client/assets/{category-editor-BNi6Eyn8.js → category-editor-CkOr_tBK.js} +1 -1
  98. package/dist/client/assets/{category-tree-C5kOgk1O.js → category-tree-CDQb6hKD.js} +1 -1
  99. package/dist/client/assets/{chart-DXJJQABJ.js → chart-DFP5BeIe.js} +1 -1
  100. package/dist/client/assets/{chat-context-DMSbRtvz.js → chat-context-Bv66eHof.js} +1 -1
  101. package/dist/client/assets/{chat-draft-D0onyqDp.js → chat-draft-B-z19fpg.js} +1 -1
  102. package/dist/client/assets/{checkbox-DOoztQkP.js → checkbox-CXlqSbPC.js} +1 -1
  103. package/dist/client/assets/{choose-editor-CKH_HXQC.js → choose-editor-CgLJ-xuj.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-BNgU6mI_.js → cli-auth-success-8pWPeNxE.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-DKNtlatG.js → cms-settings-editor-D2NvmbtZ.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-BOdMkvBn.js → cms-store-drafts-DCNFP7LB.js} +1 -1
  107. package/dist/client/assets/{collapsible-cugvhfSU.js → collapsible-DzLPWd70.js} +1 -1
  108. package/dist/client/assets/{collection-detail-DTPoOL5D.js → collection-detail-CCi6huRZ.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-CFDz1S92.js → collection-display-button-CF7hoid9.js} +1 -1
  110. package/dist/client/assets/{collection-search-D_CW05AO.js → collection-search-CdjAgPSP.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-Doqxyp7U.js → collection-table-wrapper-CWctg3S1.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-DbmQO_sc.js → collection-tabs-D03BVHFN.js} +1 -1
  113. package/dist/client/assets/{combobox-BQeWlUrV.js → combobox-Cfg_BsiZ.js} +1 -1
  114. package/dist/client/assets/{command-gpEmThj0.js → command-CTDIy4l6.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-sFfyOi86.js → companion-mcps-section-Cy2umPEM.js} +1 -1
  116. package/dist/client/assets/{config-DrmqoBxA.js → config-CCcwWB8c.js} +1 -1
  117. package/dist/client/assets/{connect-BQ3Tdw2f.js → connect-CVfAe8Qe.js} +1 -1
  118. package/dist/client/assets/{connect-key-CZEnmQQz.js → connect-key-COnDBirE.js} +1 -1
  119. package/dist/client/assets/{connect-layout-Ct9VdADT.js → connect-layout-DiA9oBHd.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-CqC2vLb8.js → connect-source-dialog-DgeFUsaD.js} +1 -1
  121. package/dist/client/assets/{connection-ClKw8_td.js → connection-B3DAaQoc.js} +1 -1
  122. package/dist/client/assets/{connection-card-C0Rw3A1o.js → connection-card-CM3dQtaR.js} +1 -1
  123. package/dist/client/assets/{connection-detail-CiU5uky7.js → connection-detail-D3cB0EmB.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-CovVYy8L.js → connection-form-helpers-CvBBFmRQ.js} +1 -1
  125. package/dist/client/assets/{connection-slug-BiqlqYek.js → connection-slug-CnFKm4nL.js} +1 -1
  126. package/dist/client/assets/{connections-z0RQoC_A.js → connections-DqyZjinv.js} +1 -1
  127. package/dist/client/assets/{content-tab-BHUz6e9o.js → content-tab-CmqbXB83.js} +10 -10
  128. package/dist/client/assets/{context-B-_BqCcu.js → context-CWkIELvN.js} +1 -1
  129. package/dist/client/assets/{context-menu-AynYRKkI.js → context-menu-DEyHZ9o-.js} +1 -1
  130. package/dist/client/assets/{context-shell-XdXFt9er.js → context-shell-BNE5ZlsL.js} +3 -3
  131. package/dist/client/assets/{create-organization-dialog-lAFaRwje.js → create-organization-dialog-B1tyfK6Q.js} +1 -1
  132. package/dist/client/assets/{daily-pulse-Cc2GgDjw.js → daily-pulse-DPTt6UvA.js} +1 -1
  133. package/dist/client/assets/{delete-copy-CbzinzJ0.js → delete-copy-Cv0ifUJG.js} +1 -1
  134. package/dist/client/assets/{device-hint-DGeaIC_m.js → device-hint-nPYgqbIG.js} +1 -1
  135. package/dist/client/assets/{discover-BEYppnSo.js → discover-B7LhTmwb.js} +1 -1
  136. package/dist/client/assets/{domain-settings-6efMd9BF.js → domain-settings-BYiHALNW.js} +1 -1
  137. package/dist/client/assets/{drawer-BKonTqr_.js → drawer-BEcXc_-E.js} +1 -1
  138. package/dist/client/assets/{editor-01f9wJNF.js → editor-BFAj_1BW.js} +1 -1
  139. package/dist/client/assets/{editor-classes-g6v2wpmT.js → editor-classes-BxMZYBKM.js} +1 -1
  140. package/dist/client/assets/{empty-message-B9zXvnhW.js → empty-message-C0f5_LY5.js} +1 -1
  141. package/dist/client/assets/{empty-state-BYd9I_7t.js → empty-state-BkUMxsIo.js} +1 -1
  142. package/dist/client/assets/{empty-state-BcShFY0G.js → empty-state-obejKp5A.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-CcVd3GIy.js → experiments-tab-choice-BboZlACY.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-CJI1R136.js → extract-connection-data-CuocrlN0.js} +1 -1
  145. package/dist/client/assets/{feature-gate-CBoQS_gt.js → feature-gate-Bw3bXdA4.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-Cx-Lcnrh.js → feature-paywall-DeRLsq8M.js} +1 -1
  147. package/dist/client/assets/{file-explorer-CmH1ZbN9.js → file-explorer--EQh0bHO.js} +1 -1
  148. package/dist/client/assets/{file-preview-C9pRQ11O.js → file-preview-C0A1Khjl.js} +1 -1
  149. package/dist/client/assets/{file-share-button-CLPSvN-I.js → file-share-button-BPQx1PMv.js} +1 -1
  150. package/dist/client/assets/{file-type-icon--afDNYpi.js → file-type-icon-DVl3LYgB.js} +1 -1
  151. package/dist/client/assets/{folder-icon-DS9ndptP.js → folder-icon-CAQabffa.js} +1 -1
  152. package/dist/client/assets/{form-7596BaOo.js → form-BZRFxWry.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-albuGlCo.js → frame-navigation-CQQpWfbX.js} +1 -1
  154. package/dist/client/assets/{gateway-client-B9YCX672.js → gateway-client-23IpJZq4.js} +1 -1
  155. package/dist/client/assets/{general-BtntUBIR.js → general-CV_QwMf2.js} +1 -1
  156. package/dist/client/assets/{github-icon-BLUj5Utn.js → github-icon-CBNn-o18.js} +1 -1
  157. package/dist/client/assets/{held-block-view-BjOvRj0_.js → held-block-view-YbSpr4rH.js} +3 -3
  158. package/dist/client/assets/{home-BZI0iz0V.js → home-Cp7pc1Nc.js} +1 -1
  159. package/dist/client/assets/{home-overview-BZXZdrra.js → home-overview-CDH5DaIu.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-D41Tlmkh.js → hosted-reconcile-CpaX3Kk9.js} +1 -1
  161. package/dist/client/assets/{icon-button-BHXRNgNb.js → icon-button-SEPOUIsz.js} +1 -1
  162. package/dist/client/assets/{index-BKSDEpIS.js → index-BH0NNV-_.js} +1 -1
  163. package/dist/client/assets/{index-C4NSe7Qj.js → index-C8hJzRYZ.js} +1 -1
  164. package/dist/client/assets/{index-CSJO2yev.js → index-CArf-8X7.js} +1 -1
  165. package/dist/client/assets/{index-BN0QoJby.js → index-CL5AbR0i.js} +1 -1
  166. package/dist/client/assets/{index-D0GeB565.js → index-CTMcJAph.js} +3 -3
  167. package/dist/client/assets/{index-BVmDOIOP.js → index-Cbm5nFnf.js} +1 -1
  168. package/dist/client/assets/{index-dMLxV3YB.js → index-CcZwoObK.js} +1 -1
  169. package/dist/client/assets/{index-CUQ1BswV.js → index-CeH1uymC.js} +1 -1
  170. package/dist/client/assets/{index-Dd-W0xw_.js → index-D1VYxwS2.js} +1 -1
  171. package/dist/client/assets/{index-DTk6GQ2P.js → index-DCrMMrc1.js} +1 -1
  172. package/dist/client/assets/{index-CvFFHqJF.js → index-DLxdCPEu.js} +1 -1
  173. package/dist/client/assets/{index-C9yheUoG.js → index-DVnJxoIV.js} +1 -1
  174. package/dist/client/assets/{index-BD_DIDaa.js → index-DiuIOj3H.js} +1 -1
  175. package/dist/client/assets/{index-BIDJRIpg.js → index-IT8TkaWL.js} +1 -1
  176. package/dist/client/assets/{index-Blu8s1uS.js → index-lloVSdjU.js} +1 -1
  177. package/dist/client/assets/{index-redirect-DO8EXy89.js → index-redirect-wrAKZzFR.js} +1 -1
  178. package/dist/client/assets/{index-DSjH9rb-.js → index-rnYUd4dS.js} +1 -1
  179. package/dist/client/assets/{index-eI8rvTkx.js → index-zWe21PVN.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-hHqnlqQ1.js → infiniteQueryObserver-D9m6eB2O.js} +1 -1
  181. package/dist/client/assets/{infra-billing-BJxmEIuE.js → infra-billing-60iN2wEr.js} +1 -1
  182. package/dist/client/assets/{input-BUHB_rvt.js → input-eXowApKu.js} +1 -1
  183. package/dist/client/assets/{input-C2lGNPjf.js → input-h0wz_TXZ.js} +3 -3
  184. package/dist/client/assets/{integration-icon-BkB-kGBE.js → integration-icon-_XZmtsUQ.js} +1 -1
  185. package/dist/client/assets/{item-actions-DpmgpUO4.js → item-actions-BTbo4VGv.js} +1 -1
  186. package/dist/client/assets/{jira-icon-DMG0-uSD.js → jira-icon-Bot-p4Py.js} +1 -1
  187. package/dist/client/assets/{label-BLzM6AtD.js → label-trmpdZLi.js} +1 -1
  188. package/dist/client/assets/{layout-BwI_EDlk.js → layout-C-cUvA7Y.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-CPZIfWlp.js → legacy-admin-welcome-dialog-CUKFHE53.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-sICxlvQs.js → legacy-agents-deep-CSPw0gvh.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-urupLYth.js → legacy-main-redirect-C5BvZoki.js} +1 -1
  192. package/dist/client/assets/library-Ck1LsxTN.js +1 -0
  193. package/dist/client/assets/{library-tab-Dr2DfKRA.js → library-tab-CpZ6q1qr.js} +1 -1
  194. package/dist/client/assets/{login-DlkOLJMf.js → login-DAJXJhrY.js} +1 -1
  195. package/dist/client/assets/{markdown-BV_s4Mt8.js → markdown-Dc3CvpIQ.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-CQLZ6oJM.js → mcp-app-renderer-D4M3J8xI.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-CQDWFiaF.js → mcp-oauth-B4J7uUwj.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-C_rhXZPj.js → mcp-oauth-v1wlsxnr.js} +1 -1
  199. package/dist/client/assets/{members-Ckqzbsuf.js → members-BDXWGlxv.js} +1 -1
  200. package/dist/client/assets/{memory-B4oQBzat.js → memory-C6fS_dk4.js} +1 -1
  201. package/dist/client/assets/{mock-board-RZycy88C.js → mock-board-L6wLs7Cj.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-km4ZZ6Ns.js → monaco-editor-Cop8b3Iq.js} +1 -1
  203. package/dist/client/assets/{monitoring-BxVCY9gM.js → monitoring-TGVc4sza.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-BFBJqmLk.js → monitoring-stats-row-DFSbHH_1.js} +1 -1
  205. package/dist/client/assets/{multi-select-DLFBYfWy.js → multi-select-CgSYI-SO.js} +1 -1
  206. package/dist/client/assets/{mustache-B3BUM7e1.js → mustache-CdP8aWYo.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-DA0QKfw_.js → named-rule-step-MGqpbfvr.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-Bn_-iMiI.js → named-rule-view-BcughUTX.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-Dls8crnt.js → new-project-dialog-C9TjL-bf.js} +1 -1
  210. package/dist/client/assets/{new-project-store-Bxh71GBu.js → new-project-store-DziLBvLE.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-DLvx5kqa.js → oauth-callback-BYBCupF-.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-CVDXdKco.js → oauth-callback-ai-provider-DekPvyld.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-DhLMAC0B.js → oauth-consent-I9AzZRg_.js} +1 -1
  214. package/dist/client/assets/{onboarding-C839R4v1.js → onboarding-D-LllJI3.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-C1ev65J2.js → openai-conversation-BlD_ym1N.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-WBWrA2dI.js → optimistic-project-sidebar-views-B3ScBIX8.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-Db-hRsXp.js → order-monitor-day-I-qDM9kN.js} +1 -1
  218. package/dist/client/assets/{organization-choice-CFr-V__n.js → organization-choice-BtO7vVfY.js} +1 -1
  219. package/dist/client/assets/{orgs-D0m2wEd0.js → orgs-DoZeaOU9.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-C5RVS5kt.js → own-accounts-section-WC2YQHur.js} +1 -1
  221. package/dist/client/assets/{pair-BaHqE7sK.js → pair-Ds0-e3lZ.js} +1 -1
  222. package/dist/client/assets/{parse-sections-CN3QQIAj.js → parse-sections-DR_12bc5.js} +4 -4
  223. package/dist/client/assets/{plan-jf1rEdxf.js → plan-9OrDLcOP.js} +1 -1
  224. package/dist/client/assets/{plan-ladder-CNDrxas8.js → plan-ladder-BhsGSh5u.js} +1 -1
  225. package/dist/client/assets/{plan-usage-card-CphUxi5K.js → plan-usage-card-XFJJHMmu.js} +1 -1
  226. package/dist/client/assets/{popover-By3JKa_e.js → popover-C8zi00Ue.js} +1 -1
  227. package/dist/client/assets/{post-calendar-2-zFyr6a.js → post-calendar-0qVUtDwn.js} +1 -1
  228. package/dist/client/assets/{post-editor-D61Lc2td.js → post-editor-1NMNs92L.js} +1 -1
  229. package/dist/client/assets/{preview-content-BGvA3AB8.js → preview-content-CkKl8ZNQ.js} +1 -1
  230. package/dist/client/assets/{preview-dialog-BnJVPFRG.js → preview-dialog-DvruGkSl.js} +1 -1
  231. package/dist/client/assets/{preview-panel-CCKrQfj6.js → preview-panel-DvGs4NBe.js} +1 -1
  232. package/dist/client/assets/{preview-tab-CjFwGJne.js → preview-tab-B6qjDxNU.js} +3 -3
  233. package/dist/client/assets/{product-picker-dialog-DEo-VOVl.js → product-picker-dialog-CxMIxnVH.js} +1 -1
  234. package/dist/client/assets/{profile-BrJ8bclT.js → profile-CIv9uH9k.js} +1 -1
  235. package/dist/client/assets/{project-app-view-DEASgc1y.js → project-app-view-Dis-yc3P.js} +1 -1
  236. package/dist/client/assets/{project-apps-DIy4KN9j.js → project-apps-B22pTvYC.js} +1 -1
  237. package/dist/client/assets/{project-icon-BEYuDUOM.js → project-icon-BWLuHtAC.js} +1 -1
  238. package/dist/client/assets/{project-index-DfmWJtff.js → project-index-BuGJUH1H.js} +1 -1
  239. package/dist/client/assets/project-reports-BrxV6cp-.js +1 -0
  240. package/dist/client/assets/project-tasks-Drfeslni.js +1 -0
  241. package/dist/client/assets/{projects-LWlp5_6D.js → projects-BUZGm2qT.js} +1 -1
  242. package/dist/client/assets/{projects-empty-state-B8OJUlrb.js → projects-empty-state-BbuqCUBa.js} +1 -1
  243. package/dist/client/assets/{prompts-CZqDpzHc.js → prompts-Bb7YMjhn.js} +1 -1
  244. package/dist/client/assets/record-editor-DpFDePV5.js +1 -0
  245. package/dist/client/assets/{redirect-editor-DZ7gM6ho.js → redirect-editor-ByYjuA1G.js} +1 -1
  246. package/dist/client/assets/reports-B9s6jT4A.js +1 -0
  247. package/dist/client/assets/{reports-BJxWKma6.js → reports-Pu2jzKU8.js} +1 -1
  248. package/dist/client/assets/{reports-onboarding-BNYj7ESg.js → reports-onboarding-iS7AGjXC.js} +1 -1
  249. package/dist/client/assets/{reports-tab-DTYcxVLq.js → reports-tab-XAOKssbW.js} +2 -2
  250. package/dist/client/assets/{repositories-CJ2lZilK.js → repositories-Cx31XGsh.js} +1 -1
  251. package/dist/client/assets/repositories-Dqo40TlZ.js +1 -0
  252. package/dist/client/assets/{repository-binding-DU6dgTMT.js → repository-binding--vh_BYpc.js} +1 -1
  253. package/dist/client/assets/{repository-picker-DoxwL7AV.js → repository-picker-Brbv4xAW.js} +1 -1
  254. package/dist/client/assets/{require-capability-aRgQMMXs.js → require-capability-BAfns9Aj.js} +1 -1
  255. package/dist/client/assets/{required-auth-layout-Bq4XBTg_.js → required-auth-layout-DS3Ymu6e.js} +1 -1
  256. package/dist/client/assets/{reset-password-ArYquIXf.js → reset-password-DZbyY6JF.js} +1 -1
  257. package/dist/client/assets/{resizable-BUgDd76Z.js → resizable-DxAoPV5h.js} +1 -1
  258. package/dist/client/assets/{resolve-tab-icon-BhH6Q4u7.js → resolve-tab-icon-e4_ZG2lV.js} +1 -1
  259. package/dist/client/assets/{review-settings-DZ7OaJNS.js → review-settings-ZwTP4tx5.js} +1 -1
  260. package/dist/client/assets/{role-color-NmgxyksJ.js → role-color-DRYA-NI9.js} +1 -1
  261. package/dist/client/assets/{roles-DUDUBt3s.js → roles-CqJbEns3.js} +1 -1
  262. package/dist/client/assets/route-B3IhE4_f.js +1 -0
  263. package/dist/client/assets/{route-DQ9sJWcw.js → route-B_TmhkDK.js} +1 -1
  264. package/dist/client/assets/{route-DuYCI_0F.js → route-D70xVZu3.js} +1 -1
  265. package/dist/client/assets/{route-page-header-Ck79CNi5.js → route-page-header-Bpm0W1nW.js} +1 -1
  266. package/dist/client/assets/{sandbox-git-api-C_L9X4wx.js → sandbox-git-api-DOzEUsKW.js} +1 -1
  267. package/dist/client/assets/{sandbox-lifecycle-context-Cn4eIj_W.js → sandbox-lifecycle-context-Dp0s3TpP.js} +1 -1
  268. package/dist/client/assets/{save-status-BgBSGkrf.js → save-status-BtdtqD2M.js} +1 -1
  269. package/dist/client/assets/{schema-38oQj0vb.js → schema-BhHglPtg.js} +1 -1
  270. package/dist/client/assets/{schema-CwDUMrSI.js → schema-Hu_PAkfm.js} +1 -1
  271. package/dist/client/assets/{scroll-area-ClXdH976.js → scroll-area-86kp0Juo.js} +1 -1
  272. package/dist/client/assets/{search-input-CygnSPSy.js → search-input-OHQ7aB3a.js} +1 -1
  273. package/dist/client/assets/{search-toggle-CIyhA75x.js → search-toggle-DQQyP_lz.js} +1 -1
  274. package/dist/client/assets/{secret-picker-BqMHlugg.js → secret-picker-ChpIYvE5.js} +1 -1
  275. package/dist/client/assets/{secrets-DwYbd4Z0.js → secrets-Bab9DPUO.js} +1 -1
  276. package/dist/client/assets/{section-array-field-CPNuVUAP.js → section-array-field-BYNGi1SJ.js} +1 -1
  277. package/dist/client/assets/{sections-CsZXPR4R.js → sections-B0KD_iOl.js} +1 -1
  278. package/dist/client/assets/{sections-editor-Cbl6DJgd.js → sections-editor-BVl-tWHW.js} +1 -1
  279. package/dist/client/assets/{select-DzZo69Bj.js → select-DPgeUwK8.js} +1 -1
  280. package/dist/client/assets/{select-model-DGf4V9hp.js → select-model-C_3sJmJn.js} +1 -1
  281. package/dist/client/assets/{seo-editor-rlTihC1C.js → seo-editor-_3HPQ8Q6.js} +1 -1
  282. package/dist/client/assets/{separator-B1Ke3oud.js → separator-DhjB_iu5.js} +1 -1
  283. package/dist/client/assets/{session-runtime-BTzXkfZD.js → session-runtime-i5m3WIi5.js} +1 -1
  284. package/dist/client/assets/settings-tab-Cjv_Rd4o.js +1 -0
  285. package/dist/client/assets/{sheet-C6r3lw_r.js → sheet-BK-tSef6.js} +1 -1
  286. package/dist/client/assets/{shell-layout-Bayq9a0Q.js → shell-layout-BuI483D3.js} +1 -1
  287. package/dist/client/assets/{site-draft-actions-DEUrBnoc.js → site-draft-actions-DoX_UDfb.js} +1 -1
  288. package/dist/client/assets/{site-draft-view-mzR9kRA9.js → site-draft-view-BPK_umRU.js} +1 -1
  289. package/dist/client/assets/site-editor-DjbeXhle.js +1 -0
  290. package/dist/client/assets/{site-editor-toast-D_EDSc8S.js → site-editor-toast-tb2AMckD.js} +1 -1
  291. package/dist/client/assets/{skills-0EDCzjch.js → skills-C-X6unw1.js} +1 -1
  292. package/dist/client/assets/{slider-DBR4l_U5.js → slider-Ls5eTZcT.js} +1 -1
  293. package/dist/client/assets/{sortable.esm-6WZidv3Q.js → sortable.esm-BjAYLhGV.js} +1 -1
  294. package/dist/client/assets/{sso-YwL6XJXn.js → sso-m7GTAbeC.js} +1 -1
  295. package/dist/client/assets/{suggestion-AfnnjI9w.js → suggestion-C-xAkFMh.js} +1 -1
  296. package/dist/client/assets/{super-agent-icon-eZA1lkSR.js → super-agent-icon-CW1v2RWL.js} +1 -1
  297. package/dist/client/assets/{switch-BdTWJIKp.js → switch-md0gRiEr.js} +1 -1
  298. package/dist/client/assets/{synced-repos-BCXMk99M.js → synced-repos-Dny6042B.js} +1 -1
  299. package/dist/client/assets/{tab-icon-glyph-CDxFLf6G.js → tab-icon-glyph-B2J47YqA.js} +1 -1
  300. package/dist/client/assets/{table-CNfhbK6q.js → table-D0iRcy-V.js} +1 -1
  301. package/dist/client/assets/{tabs-Biepa-0w.js → tabs-2mcRw6CQ.js} +1 -1
  302. package/dist/client/assets/{task-board-DZkCWK57.js → task-board-PS4uTaEc.js} +1 -1
  303. package/dist/client/assets/{task-key-Cw3Q9yew.js → task-key-CN2bdn8Q.js} +1 -1
  304. package/dist/client/assets/{task-route-B_nVJy5Z.js → task-route-CeP9N75K.js} +1 -1
  305. package/dist/client/assets/{task-status-DyM15eNX.js → task-status-Dtw0yYYt.js} +1 -1
  306. package/dist/client/assets/{taskboard-analytics-aruOTH_6.js → taskboard-analytics-Cq4a6PcZ.js} +1 -1
  307. package/dist/client/assets/{tasks-CGZiwAnf.js → tasks-DwdT3G88.js} +1 -1
  308. package/dist/client/assets/tasks-yTUoQbs0.js +1 -0
  309. package/dist/client/assets/{textarea-7QouZXlU.js → textarea-CpsIhOMc.js} +1 -1
  310. package/dist/client/assets/{thread-analytics-NilPpJma.js → thread-analytics-BuaDw2wT.js} +1 -1
  311. package/dist/client/assets/{thread-button-DUys9zit.js → thread-button-BBpIpfN4.js} +1 -1
  312. package/dist/client/assets/{thread-intent-Dn_I9q5Q.js → thread-intent-1ccDEEyI.js} +1 -1
  313. package/dist/client/assets/{thread-route-BeV7voWz.js → thread-route-CftGRyLL.js} +1 -1
  314. package/dist/client/assets/{thread-route-DzKX6liX.js → thread-route-DR-mysJ4.js} +1 -1
  315. package/dist/client/assets/{thread-sheet-body-D7eInHgy.js → thread-sheet-body-BeI89SCu.js} +1 -1
  316. package/dist/client/assets/{time-range-picker-C3Kj_DzP.js → time-range-picker-DG4w9hkA.js} +1 -1
  317. package/dist/client/assets/{toggle-group-C88GzCgF.js → toggle-group-Ls4QOte6.js} +1 -1
  318. package/dist/client/assets/{tool-set-selector-DPAEBK_1.js → tool-set-selector-DjbDtWc3.js} +1 -1
  319. package/dist/client/assets/{toolbar-icon-button-BNYS9FHi.js → toolbar-icon-button-w0w5tyY2.js} +1 -1
  320. package/dist/client/assets/{tooltip-C7G4UfJI.js → tooltip-BwiBQZRg.js} +1 -1
  321. package/dist/client/assets/{tooltipContext-D9QOuNjA.js → tooltipContext-CAee1FwO.js} +1 -1
  322. package/dist/client/assets/{track-mepHVlsg.js → track-DovfvUQO.js} +1 -1
  323. package/dist/client/assets/{types-_Mc3dgb4.js → types-CQPseOG9.js} +1 -1
  324. package/dist/client/assets/{url-slug-BGTpsOPw.js → url-slug-_KiIaSc5.js} +1 -1
  325. package/dist/client/assets/{usage-stats-CVy63u8A.js → usage-stats-DTtlBjNo.js} +1 -1
  326. package/dist/client/assets/{use-ai-providers-uG4gafxz.js → use-ai-providers-DZEaT-ul.js} +1 -1
  327. package/dist/client/assets/{use-api-keys-Dy8qFkgs.js → use-api-keys-Bnfl-RCF.js} +1 -1
  328. package/dist/client/assets/{use-apply-named-rule-DaC_4AVp.js → use-apply-named-rule-BMJ9PQoA.js} +1 -1
  329. package/dist/client/assets/use-ask-in-chat-CRX_DV_t.js +1 -0
  330. package/dist/client/assets/{use-automations-XPyJSn5i.js → use-automations-D0ZND8n5.js} +1 -1
  331. package/dist/client/assets/{use-autosave-CQWWEeHn.js → use-autosave-DCpw1AWV.js} +1 -1
  332. package/dist/client/assets/use-blocks-v8-project-D5fKsCGm.js +1 -0
  333. package/dist/client/assets/use-blog-view-CNoSAPL8.js +1 -0
  334. package/dist/client/assets/{use-chat-layout-state-Dk5bkORO.js → use-chat-layout-state-B1ybe4ap.js} +1 -1
  335. package/dist/client/assets/{use-cms-publish-actions-DBQ6Q3f-.js → use-cms-publish-actions-CZ7OOlql.js} +1 -1
  336. package/dist/client/assets/{use-connect-companion-BuZ-MrXS.js → use-connect-companion-CU0e5fqV.js} +1 -1
  337. package/dist/client/assets/{use-connection-DgTiiad4.js → use-connection-BNMimkPL.js} +1 -1
  338. package/dist/client/assets/{use-content-sync-BsgwPn0U.js → use-content-sync-ClbM0XA1.js} +1 -1
  339. package/dist/client/assets/{use-copy-C0RvTw-H.js → use-copy-CE9nrbOr.js} +1 -1
  340. package/dist/client/assets/{use-current-view-BMmxo0aT.js → use-current-view-D44ayMhH.js} +1 -1
  341. package/dist/client/assets/{use-date-fns-locale-Bur6T0pq.js → use-date-fns-locale-DjUw_n69.js} +1 -1
  342. package/dist/client/assets/{use-debounced-autosave-ByD2Pgdj.js → use-debounced-autosave-BcqPkjFV.js} +1 -1
  343. package/dist/client/assets/{use-debounced-value-DhSyfF-z.js → use-debounced-value-DT9lKq9i.js} +1 -1
  344. package/dist/client/assets/{use-deco-credits-DWZtWChN.js → use-deco-credits-D66VTWCl.js} +1 -1
  345. package/dist/client/assets/{use-decopilot-events-Dn5SVp08.js → use-decopilot-events-_mLqRiEF.js} +1 -1
  346. package/dist/client/assets/{use-delete-block-Wy_ricMb.js → use-delete-block-DQun19Xn.js} +1 -1
  347. package/dist/client/assets/{use-delete-connection-CuZXriSO.js → use-delete-connection-BCDQzopb.js} +1 -1
  348. package/dist/client/assets/{use-deployment-admin-BaMvvnFU.js → use-deployment-admin-DlPnuM4S.js} +1 -1
  349. package/dist/client/assets/{use-entitlements-CQAaswTi.js → use-entitlements-DNwniW7G.js} +1 -1
  350. package/dist/client/assets/{use-fast-preview-draft-url-DZJKuoMT.js → use-fast-preview-draft-url-BDGYAn85.js} +1 -1
  351. package/dist/client/assets/{use-file-configs-DIdjpCrR.js → use-file-configs-DNyK94-h.js} +1 -1
  352. package/dist/client/assets/{use-id-selection-DFbcsEj8.js → use-id-selection-B4X3PiKb.js} +1 -1
  353. package/dist/client/assets/{use-in-settings-CoKa2UN1.js → use-in-settings-Bm865pUH.js} +1 -1
  354. package/dist/client/assets/{use-inbox-feed-BAI125hE.js → use-inbox-feed-j1HCg11s.js} +1 -1
  355. package/dist/client/assets/{use-infinite-scroll-43Fpjl-2.js → use-infinite-scroll-COH_kc3E.js} +1 -1
  356. package/dist/client/assets/{use-join-requests-CUTQLVce.js → use-join-requests-CaFjJ02B.js} +1 -1
  357. package/dist/client/assets/{use-main-panel-tabs-DRLNeh3r.js → use-main-panel-tabs-CKNAH4y7.js} +1 -1
  358. package/dist/client/assets/{use-mcp-auth-status-VaZXxPg0.js → use-mcp-auth-status-BiCnJXr1.js} +1 -1
  359. package/dist/client/assets/{use-mcp-client-DcK8Rg4C.js → use-mcp-client-I3y8cfsJ.js} +1 -1
  360. package/dist/client/assets/{use-mcp-prompts-BBr4tWPB.js → use-mcp-prompts-BvVRtZ43.js} +1 -1
  361. package/dist/client/assets/{use-mcp-tools-N7GhzMA3.js → use-mcp-tools-D4mbfBv6.js} +1 -1
  362. package/dist/client/assets/{use-mobile-CaiJHLz_.js → use-mobile-BmDu9lai.js} +1 -1
  363. package/dist/client/assets/{use-move-blocks-DAmL1Heq.js → use-move-blocks-D9FoxaY3.js} +1 -1
  364. package/dist/client/assets/{use-navigate-to-agent-BGM5WtD5.js → use-navigate-to-agent-DGvRNQ_A.js} +1 -1
  365. package/dist/client/assets/{use-never-published-BYxG3YAd.js → use-never-published-tdlolbih.js} +1 -1
  366. package/dist/client/assets/{use-org-fs-Dtby7PZD.js → use-org-fs-DhWc9O8e.js} +1 -1
  367. package/dist/client/assets/{use-org-notice-C_AIAJu5.js → use-org-notice-BcxmaTvi.js} +1 -1
  368. package/dist/client/assets/{use-org-repo-syncs-BiDw6Ch1.js → use-org-repo-syncs-CZEtfIEc.js} +1 -1
  369. package/dist/client/assets/{use-org-sso-CozAYMGc.js → use-org-sso-QOAhbUXz.js} +1 -1
  370. package/dist/client/assets/{use-organization-settings-Zs-0HDOz.js → use-organization-settings-CwuyWnwZ.js} +1 -1
  371. package/dist/client/assets/{use-panel-navigate-NIjceqGa.js → use-panel-navigate-D-3r_Fkm.js} +1 -1
  372. package/dist/client/assets/{use-project-native-view-presence-CatCNaTt.js → use-project-native-view-presence-DNdTgIQV.js} +1 -1
  373. package/dist/client/assets/{use-project-scope-Dydoyc7j.js → use-project-scope-uv2IbJz0.js} +1 -1
  374. package/dist/client/assets/{use-recent-apps-C_QvRY2B.js → use-recent-apps-YAb9EkOH.js} +1 -1
  375. package/dist/client/assets/{use-reports-diagnostic-C6Ha5u1Z.js → use-reports-diagnostic-CV_Elu-_.js} +1 -1
  376. package/dist/client/assets/{use-sandbox-events-BT3ZCsDp.js → use-sandbox-events-Dw0utopN.js} +1 -1
  377. package/dist/client/assets/{use-secrets-D2U3rBRB.js → use-secrets-BrD_3u0D.js} +1 -1
  378. package/dist/client/assets/{use-section-preview-base-CK-knzeW.js → use-section-preview-base-BVnv1Txk.js} +1 -1
  379. package/dist/client/assets/{use-sidebar-collapsed-o4Py6pIV.js → use-sidebar-collapsed-Du6f3z_j.js} +1 -1
  380. package/dist/client/assets/{use-tags-OF3YvfJl.js → use-tags-D9qlYHDa.js} +1 -1
  381. package/dist/client/assets/{use-task-board-analytics-D4lkCLhG.js → use-task-board-analytics-CFtX6Vrh.js} +1 -1
  382. package/dist/client/assets/{use-task-board-item-prs-B72nhEKK.js → use-task-board-item-prs-DPCCrxHj.js} +1 -1
  383. package/dist/client/assets/{use-task-board-items-DFbx09Hb.js → use-task-board-items-hngRazfo.js} +1 -1
  384. package/dist/client/assets/{use-task-board-prompts-DEg-COv1.js → use-task-board-prompts-sTov8wbK.js} +1 -1
  385. package/dist/client/assets/{use-task-metadata-D0bSFwSd.js → use-task-metadata-B2z2taUm.js} +1 -1
  386. package/dist/client/assets/{use-thread-outputs-B2AnAxLo.js → use-thread-outputs-Bk_M_0CQ.js} +1 -1
  387. package/dist/client/assets/{use-view-draft-kind-CKTonQj1.js → use-view-draft-kind-CJIOo5Xm.js} +1 -1
  388. package/dist/client/assets/{use-voice-input-D-1WcVro.js → use-voice-input-CFTfX25b.js} +1 -1
  389. package/dist/client/assets/useInfiniteQuery-BRexMxca.js +1 -0
  390. package/dist/client/assets/{useQueries-Db37XagA.js → useQueries-DDQVd688.js} +1 -1
  391. package/dist/client/assets/useSuspenseInfiniteQuery-DM12jCFI.js +1 -0
  392. package/dist/client/assets/{users-DjzA4BSj.js → users-BLg85oUh.js} +1 -1
  393. package/dist/client/assets/{utils-5mOrGYVp.js → utils-Bb7MZu12.js} +1 -1
  394. package/dist/client/assets/{variant-calendar-zSXnc03T.js → variant-calendar-CJdjEOV3.js} +1 -1
  395. package/dist/client/assets/{variant-matcher-override-DpzHN4pv.js → variant-matcher-override-DXon6gCQ.js} +1 -1
  396. package/dist/client/assets/{view-header-CCxmcQji.js → view-header-DOoJu_73.js} +1 -1
  397. package/dist/client/assets/{virtual-mcp-C5-KsrWo.js → virtual-mcp-YeTBM8yt.js} +1 -1
  398. package/dist/client/assets/{watch-sse-pool-CpjkZIRh.js → watch-sse-pool-D23qxy7t.js} +1 -1
  399. package/dist/client/index.html +1 -1
  400. package/dist/server/server.js +1 -1
  401. package/package.json +1 -1
  402. package/dist/client/assets/agent-app-y6nPzOyd.js +0 -1
  403. package/dist/client/assets/agent-deck-De45xQT6.js +0 -1
  404. package/dist/client/assets/agent-experiments-Bz9i1hfG.js +0 -1
  405. package/dist/client/assets/agent-file-D63ifCyj.js +0 -1
  406. package/dist/client/assets/agent-library-BsYTaEIs.js +0 -1
  407. package/dist/client/assets/agent-library-file-DSGrviXQ.js +0 -1
  408. package/dist/client/assets/agent-overview-CwvS9rcc.js +0 -1
  409. package/dist/client/assets/agent-settings-BlSp_Bw6.js +0 -1
  410. package/dist/client/assets/agent-site-editor-code-DCW_N3rm.js +0 -2
  411. package/dist/client/assets/agent-site-editor-content-C-wLd_lU.js +0 -1
  412. package/dist/client/assets/agent-site-editor-preview-DeclZwvE.js +0 -1
  413. package/dist/client/assets/agent-view-Ci5Ypl2H.js +0 -1
  414. package/dist/client/assets/api-keys-CuYYHvNH.js +0 -1
  415. package/dist/client/assets/library-BqIorDUw.js +0 -1
  416. package/dist/client/assets/project-reports-BnRDjopW.js +0 -1
  417. package/dist/client/assets/project-tasks-6s1dJ-O5.js +0 -1
  418. package/dist/client/assets/record-editor-DzuiA2LH.js +0 -1
  419. package/dist/client/assets/reports-B-wP8iKZ.js +0 -1
  420. package/dist/client/assets/repositories-BgTfHskX.js +0 -1
  421. package/dist/client/assets/route-CGSI1b2D.js +0 -1
  422. package/dist/client/assets/settings-tab-DxPwBJba.js +0 -1
  423. package/dist/client/assets/site-editor-EkmqP_Ex.js +0 -1
  424. package/dist/client/assets/tasks-1ATgXDuL.js +0 -1
  425. package/dist/client/assets/use-ask-in-chat-ODlnmCYc.js +0 -1
  426. package/dist/client/assets/use-blocks-v8-project-DNeSW27r.js +0 -1
  427. package/dist/client/assets/use-blog-view-NFjZbcnE.js +0 -1
  428. package/dist/client/assets/useInfiniteQuery-B_sn43uT.js +0 -1
  429. package/dist/client/assets/useSuspenseInfiniteQuery-DElaBmpm.js +0 -1
@@ -1,4 +1,4 @@
1
- import{dO as Qt,c as Z,b as ee,r as w,j as t,B,aY as Zt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aU as at,y as nt,t as X,e0 as es,_ as ts,X as ss,Z as os,ar as as,ap as ns,aq as is,Y as ze,b6 as rs,h as Le,aJ as pt,aK as xt,aL as gt,aM as ht,b9 as jt,aN as yt,aO as bt,aP as vt,E as Ke,aG as ls,e8 as Ct,I as Nt,hq as cs,al as ds,b7 as Qe,n as Xe,f as ms}from"./index-D0GeB565.js";import{ChatLayout as us}from"./index-CSJO2yev.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ax as gs,aa as hs,g as js,a_ as Ot,e as Ye}from"./agent-icon-BOlYSKaH.js";import{n as kt}from"./BookOpen01-IKZ1bU3J.js";import{t as rt}from"./ChevronDown-Dfi32xkE.js";import{e as ys}from"./UserSquare-CKotvVGa.js";import{s as Tt}from"./File02-CIRvfyNR.js";import{f as lt,b as Et,t as zt}from"./Tool01-QwUIWOHx.js";import{a as bs}from"./Image01-iZnpkSRO.js";import{i as vs}from"./SearchMd-Bdv01_Qr.js";import{B as Kt}from"./badge-DESkUuDj.js";import{C as Ft}from"./checkbox-DOoztQkP.js";import{S as ct}from"./switch-BdTWJIKp.js";import{a as Mt,b as Rt,P as Lt}from"./popover-By3JKa_e.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-gpEmThj0.js";import{g as ws,a as _s}from"./gateway-client-B9YCX672.js";import{b as dt}from"./use-connection-DgTiiad4.js";import{u as Ds}from"./use-mcp-client-DcK8Rg4C.js";import{u as Is}from"./use-mcp-tools-N7GhzMA3.js";import{I as Ps}from"./integration-icon-BkB-kGBE.js";import{M as As}from"./select-model-DGf4V9hp.js";import{u as $s}from"./use-ai-providers-uG4gafxz.js";import{U as Os,b as Es}from"./build-improve-prompt-doc-CjdW-8YA.js";import{a as ve,c as zs,d as Ks}from"./use-automations-XPyJSn5i.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-DMSbRtvz.js";import{b as Us,C as Vs,a as Ws}from"./collapsible-cugvhfSU.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-C7G4UfJI.js";import{u as Js}from"./shell-layout-Bayq9a0Q.js";import{i as Ut}from"./ArrowLeft-BYy4HE5O.js";import{i as Xs}from"./ArrowUp-D7c5FfG5.js";import{s as Me}from"./UserCheck01-q7ulPlqF.js";import{s as Ys}from"./Trash01--3zpoQ8b.js";import{s as mt}from"./XClose-kKpsb0VH.js";import{u as _t}from"./use-debounced-autosave-ByD2Pgdj.js";import{T as qs,a as Qs}from"./input-BUHB_rvt.js";import{u as Zs,a as eo,J as Vt}from"./jira-icon-DMG0-uSD.js";import{s as to}from"./Plus-Cd_Fqc7w.js";import{i as ut}from"./Zap-2IsMX7ff.js";import{l as We,H as so}from"./config-DrmqoBxA.js";import{C as oo}from"./task-board-DZkCWK57.js";import{M as Wt}from"./multi-select-DLFBYfWy.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-DzZo69Bj.js";import{b as ao,a as no,T as Dt}from"./tabs-Biepa-0w.js";import{MonacoCodeEditor as io}from"./monaco-editor-km4ZZ6Ns.js";import{A as ro}from"./automation-runs-dnZundrC.js";import{C as lo}from"./collection-tabs-DbmQO_sc.js";import{a as co}from"./use-panel-navigate-NIjceqGa.js";import"./use-mobile-CaiJHLz_.js";import"./MessageCircle01-BeRCqRNK.js";import"./thread-button-DUys9zit.js";import"./use-sidebar-collapsed-o4Py6pIV.js";import"./sheet-C6r3lw_r.js";import"./use-chat-layout-state-Dk5bkORO.js";import"./toolbar-icon-button-BNYS9FHi.js";import"./use-in-settings-CoKa2UN1.js";import"./resizable-BUgDd76Z.js";import"./route-page-header-Ck79CNi5.js";import"./LayoutLeft-CqL2QU9u.js";import"./use-project-scope-Dydoyc7j.js";import"./repository-binding-DU6dgTMT.js";import"./use-current-view-BMmxo0aT.js";import"./thread-route-DzKX6liX.js";import"./index-CUQ1BswV.js";import"./auth-Dd6nwDaa.js";import"./AlertCircle-DNLZLHo2.js";import"./ArrowRight-nl42uWN9.js";import"./Globe04-Bk3xc77M.js";import"./CheckCircle-B0s2c8RQ.js";import"./TrendUp01-BvBI14pN.js";import"./ChevronSelectorVertical-C9hJFm1V.js";import"./ChevronUp-e2lZn6eP.js";import"./LinkBroken01-DWDlVNIY.js";import"./CreditCard01-DkTCpzky.js";import"./SwitchHorizontal01-DD94Yq3O.js";import"./Eye-s8k6ZpFd.js";import"./Fingerprint04-CAyq7Ns9.js";import"./Key01-2bzDLRA-.js";import"./Minus-DbxKzySK.js";import"./Monitor01-CZJ-m8AM.js";import"./Sun-B0Lq9-BK.js";import"./Play-B7iY71_g.js";import"./ShoppingBag01-C0jxZbeK.js";import"./Upload01-CZv9e6Tj.js";import"./Users01-Bk6C0ZLv.js";import"./index-C4NSe7Qj.js";import"./drawer-BKonTqr_.js";import"./index-BN0QoJby.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-CQAaswTi.js";import"./use-view-draft-kind-CKTonQj1.js";import"./use-blog-view-NFjZbcnE.js";import"./use-organization-settings-Zs-0HDOz.js";import"./schema-38oQj0vb.js";import"./thread-intent-Dn_I9q5Q.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CpjkZIRh.js";import"./session-runtime-BTzXkfZD.js";import"./use-decopilot-events-Dn5SVp08.js";import"./use-deployment-admin-BaMvvnFU.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-C_AIAJu5.js";import"./project-icon-BEYuDUOM.js";import"./use-navigate-to-agent-BGM5WtD5.js";import"./use-debounced-value-DhSyfF-z.js";import"./new-project-dialog-Dls8crnt.js";import"./label-BLzM6AtD.js";import"./repository-picker-DoxwL7AV.js";import"./github-icon-BLUj5Utn.js";import"./useInfiniteQuery-B_sn43uT.js";import"./infiniteQueryObserver-hHqnlqQ1.js";import"./collection-search-D_CW05AO.js";import"./new-project-store-Bxh71GBu.js";import"./legacy-admin-welcome-dialog-CPZIfWlp.js";import"./required-auth-layout-Bq4XBTg_.js";import"./use-org-sso-CozAYMGc.js";import"./suggestion-AfnnjI9w.js";import"./usage-stats-CVy63u8A.js";import"./utils-CVEq3hMx.js";import"./markdown-BV_s4Mt8.js";import"./use-copy-C0RvTw-H.js";import"./form-7596BaOo.js";import"./use-mcp-prompts-BBr4tWPB.js";import"./use-org-fs-Dtby7PZD.js";import"./task-key-Cw3Q9yew.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-01f9wJNF.js";import"./table-CNfhbK6q.js";import"./empty-state-BcShFY0G.js";import"./use-id-selection-DFbcsEj8.js";import"./use-infinite-scroll-43Fpjl-2.js";import"./task-status-DyM15eNX.js";import"./thread-sheet-body-D7eInHgy.js";import"./useSuspenseInfiniteQuery-DElaBmpm.js";import"./pair-BaHqE7sK.js";import"./use-task-board-items-DFbx09Hb.js";import"./task-route-B_nVJy5Z.js";import"./project-index-DfmWJtff.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CQLZ6oJM.js";import"./types-_Mc3dgb4.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-B2AnAxLo.js";import"./file-type-icon--afDNYpi.js";const qe={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=Z.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=qe[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=qe[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=qe[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(Zt,{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=Z.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=Z.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:Qt},{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:Et},{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=Z.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=Z.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=Z.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=Z.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 Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const E=ws(I._meta)??"__other__",Q=_s(I.name,E==="__other__"?void 0:E),A=I.title,xe=A&&A!==I.name?A:go(Q);H.has(E)||H.set(E,{clientId:E,conn:Y.get(E),tools:[]}),H.get(E).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],U=n===null?new Set(J):new Set(n),V=J.every(I=>U.has(I)),O=I=>a(J.every(E=>I.has(E))?null:[...I]),ae=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),O(E)},ne=(I,E)=>{const Q=new Set(U);for(const A of I)E?Q.add(A):Q.delete(A);O(Q)};y=Lt,P=o,v=j;let q;e[26]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=q):q=e[26];let ie;e[27]!==V||e[28]!==i?(ie=i(V?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=V,e[28]=i,e[29]=ie):ie=e[29];const ue=!V&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[U.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:[q,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=V?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.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]!==V||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:V,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=V,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=U.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 E=I.tools.map(bo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:U.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 E=I.tools.map(yo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:U.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"}],Ze=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>Ze.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=Ze.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:Ze.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=Zs(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 Oo({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(Ot,{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(Vt,{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=Z.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{dO as Qt,c as Z,b as ee,r as w,j as t,B,aY as Zt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aU as at,y as nt,t as X,e0 as es,_ as ts,X as ss,Z as os,ar as as,ap as ns,aq as is,Y as ze,b6 as rs,h as Le,aJ as pt,aK as xt,aL as gt,aM as ht,b9 as jt,aN as yt,aO as bt,aP as vt,E as Ke,aG as ls,e8 as Ct,I as Nt,hq as cs,al as ds,b7 as Qe,n as Xe,f as ms}from"./index-CTMcJAph.js";import{ChatLayout as us}from"./index-CArf-8X7.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ax as gs,aa as hs,g as js,a_ as Ot,e as Ye}from"./agent-icon-BDoJ39oK.js";import{n as kt}from"./BookOpen01-BHs6bUbD.js";import{t as rt}from"./ChevronDown-fzLgfNMN.js";import{e as ys}from"./UserSquare-ByLgJRcg.js";import{s as Tt}from"./File02-DVaBtYaE.js";import{f as lt,b as Et,t as zt}from"./Tool01-C3uo6Lgt.js";import{a as bs}from"./Image01-8jmgxAd8.js";import{i as vs}from"./SearchMd-BvUkn3rx.js";import{B as Kt}from"./badge-CA_zRurx.js";import{C as Ft}from"./checkbox-CXlqSbPC.js";import{S as ct}from"./switch-md0gRiEr.js";import{a as Mt,b as Rt,P as Lt}from"./popover-C8zi00Ue.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-CTDIy4l6.js";import{g as ws,a as _s}from"./gateway-client-23IpJZq4.js";import{b as dt}from"./use-connection-BNMimkPL.js";import{u as Ds}from"./use-mcp-client-I3y8cfsJ.js";import{u as Is}from"./use-mcp-tools-D4mbfBv6.js";import{I as Ps}from"./integration-icon-_XZmtsUQ.js";import{M as As}from"./select-model-C_3sJmJn.js";import{u as $s}from"./use-ai-providers-DZEaT-ul.js";import{U as Os,b as Es}from"./build-improve-prompt-doc-B2KHjCtV.js";import{a as ve,c as zs,d as Ks}from"./use-automations-D0ZND8n5.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-Bv66eHof.js";import{b as Us,C as Vs,a as Ws}from"./collapsible-DzLPWd70.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-BwiBQZRg.js";import{u as Js}from"./shell-layout-BuI483D3.js";import{i as Ut}from"./ArrowLeft-Cp5wBgN1.js";import{i as Xs}from"./ArrowUp-COdTIRs6.js";import{s as Me}from"./UserCheck01-DZjyuuBK.js";import{s as Ys}from"./Trash01-hjBWefQQ.js";import{s as mt}from"./XClose-CsOm5OF2.js";import{u as _t}from"./use-debounced-autosave-BcqPkjFV.js";import{T as qs,a as Qs}from"./input-eXowApKu.js";import{u as Zs,a as eo,J as Vt}from"./jira-icon-Bot-p4Py.js";import{s as to}from"./Plus-RCDHml3m.js";import{i as ut}from"./Zap-DJuxbhuP.js";import{l as We,H as so}from"./config-CCcwWB8c.js";import{C as oo}from"./task-board-PS4uTaEc.js";import{M as Wt}from"./multi-select-CgSYI-SO.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-DPgeUwK8.js";import{b as ao,a as no,T as Dt}from"./tabs-2mcRw6CQ.js";import{MonacoCodeEditor as io}from"./monaco-editor-Cop8b3Iq.js";import{A as ro}from"./automation-runs-CtevjOto.js";import{C as lo}from"./collection-tabs-D03BVHFN.js";import{a as co}from"./use-panel-navigate-D-3r_Fkm.js";import"./use-mobile-BmDu9lai.js";import"./MessageCircle01-BpGqYTnP.js";import"./thread-button-BBpIpfN4.js";import"./use-sidebar-collapsed-Du6f3z_j.js";import"./sheet-BK-tSef6.js";import"./use-chat-layout-state-B1ybe4ap.js";import"./toolbar-icon-button-w0w5tyY2.js";import"./use-in-settings-Bm865pUH.js";import"./resizable-DxAoPV5h.js";import"./route-page-header-Bpm0W1nW.js";import"./LayoutLeft-Vc1HAa0M.js";import"./use-project-scope-uv2IbJz0.js";import"./repository-binding--vh_BYpc.js";import"./use-current-view-D44ayMhH.js";import"./thread-route-DR-mysJ4.js";import"./index-CeH1uymC.js";import"./auth-PzOm_zFv.js";import"./AlertCircle-CzISmSv-.js";import"./ArrowRight-CeB6x55t.js";import"./Globe04-BGV551sq.js";import"./CheckCircle-ChJcEZnJ.js";import"./TrendUp01-iFr5GCuv.js";import"./ChevronSelectorVertical-BTk3FRkw.js";import"./ChevronUp-b-VOSMPT.js";import"./LinkBroken01-D4pDcB76.js";import"./CreditCard01-B0Yfe9hH.js";import"./SwitchHorizontal01-CxL0NygI.js";import"./Eye-DArYaInn.js";import"./Fingerprint04-CALESuKW.js";import"./Key01-DGjA9S6x.js";import"./Minus-Dw6Nli5H.js";import"./Monitor01-Br8acw8G.js";import"./Sun-GOAVarv9.js";import"./Play-C4UbfvzT.js";import"./ShoppingBag01-CAJ64xat.js";import"./Upload01-qGyzp9T6.js";import"./Users01-CqdtHmSR.js";import"./index-C8hJzRYZ.js";import"./drawer-BEcXc_-E.js";import"./index-CL5AbR0i.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-DNwniW7G.js";import"./use-view-draft-kind-CJIOo5Xm.js";import"./use-blog-view-CNoSAPL8.js";import"./use-organization-settings-CwuyWnwZ.js";import"./schema-BhHglPtg.js";import"./thread-intent-1ccDEEyI.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D23qxy7t.js";import"./session-runtime-i5m3WIi5.js";import"./use-decopilot-events-_mLqRiEF.js";import"./use-deployment-admin-DlPnuM4S.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BcxmaTvi.js";import"./project-icon-BWLuHtAC.js";import"./use-navigate-to-agent-DGvRNQ_A.js";import"./use-debounced-value-DT9lKq9i.js";import"./new-project-dialog-C9TjL-bf.js";import"./label-trmpdZLi.js";import"./repository-picker-Brbv4xAW.js";import"./github-icon-CBNn-o18.js";import"./useInfiniteQuery-BRexMxca.js";import"./infiniteQueryObserver-D9m6eB2O.js";import"./collection-search-CdjAgPSP.js";import"./new-project-store-DziLBvLE.js";import"./legacy-admin-welcome-dialog-CUKFHE53.js";import"./required-auth-layout-DS3Ymu6e.js";import"./use-org-sso-QOAhbUXz.js";import"./suggestion-C-xAkFMh.js";import"./usage-stats-DTtlBjNo.js";import"./utils-CVEq3hMx.js";import"./markdown-Dc3CvpIQ.js";import"./use-copy-CE9nrbOr.js";import"./form-BZRFxWry.js";import"./use-mcp-prompts-BvVRtZ43.js";import"./use-org-fs-DhWc9O8e.js";import"./task-key-CN2bdn8Q.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-BFAj_1BW.js";import"./table-D0iRcy-V.js";import"./empty-state-obejKp5A.js";import"./use-id-selection-B4X3PiKb.js";import"./use-infinite-scroll-COH_kc3E.js";import"./task-status-Dtw0yYYt.js";import"./thread-sheet-body-BeI89SCu.js";import"./useSuspenseInfiniteQuery-DM12jCFI.js";import"./pair-Ds0-e3lZ.js";import"./use-task-board-items-hngRazfo.js";import"./task-route-CeP9N75K.js";import"./project-index-BuGJUH1H.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D4M3J8xI.js";import"./types-CQPseOG9.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-Bk_M_0CQ.js";import"./file-type-icon-DVl3LYgB.js";const qe={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=Z.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=qe[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=qe[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=qe[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(Zt,{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=Z.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=Z.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:Qt},{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:Et},{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=Z.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=Z.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=Z.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=Z.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 Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const E=ws(I._meta)??"__other__",Q=_s(I.name,E==="__other__"?void 0:E),A=I.title,xe=A&&A!==I.name?A:go(Q);H.has(E)||H.set(E,{clientId:E,conn:Y.get(E),tools:[]}),H.get(E).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],U=n===null?new Set(J):new Set(n),V=J.every(I=>U.has(I)),O=I=>a(J.every(E=>I.has(E))?null:[...I]),ae=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),O(E)},ne=(I,E)=>{const Q=new Set(U);for(const A of I)E?Q.add(A):Q.delete(A);O(Q)};y=Lt,P=o,v=j;let q;e[26]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=q):q=e[26];let ie;e[27]!==V||e[28]!==i?(ie=i(V?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=V,e[28]=i,e[29]=ie):ie=e[29];const ue=!V&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[U.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:[q,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=V?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.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]!==V||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:V,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=V,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=U.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 E=I.tools.map(bo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:U.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 E=I.tools.map(yo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:U.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"}],Ze=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>Ze.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=Ze.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:Ze.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=Zs(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 Oo({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(Ot,{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(Vt,{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=Z.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,b7 as U}from"./index-D0GeB565.js";import{ChatLayout as W}from"./index-CSJO2yev.js";import{s as X}from"./Plus-Cd_Fqc7w.js";import{a as Y}from"./UserCheck01-q7ulPlqF.js";import{i as F}from"./Zap-2IsMX7ff.js";import{S as Z}from"./search-input-CygnSPSy.js";import{E as $}from"./empty-state-BcShFY0G.js";import{u as tt,a as et,b as it}from"./use-automations-XPyJSn5i.js";import{a as ot}from"./use-panel-navigate-NIjceqGa.js";import{A as st}from"./automation-list-row-B_4Wbm-T.js";import{c as nt}from"./thread-route-DzKX6liX.js";import"./use-mobile-CaiJHLz_.js";import"./tooltip-C7G4UfJI.js";import"./index-CUQ1BswV.js";import"./MessageCircle01-BeRCqRNK.js";import"./XClose-kKpsb0VH.js";import"./thread-button-DUys9zit.js";import"./use-sidebar-collapsed-o4Py6pIV.js";import"./sheet-C6r3lw_r.js";import"./use-chat-layout-state-Dk5bkORO.js";import"./toolbar-icon-button-BNYS9FHi.js";import"./use-in-settings-CoKa2UN1.js";import"./resizable-BUgDd76Z.js";import"./route-page-header-Ck79CNi5.js";import"./LayoutLeft-CqL2QU9u.js";import"./use-project-scope-Dydoyc7j.js";import"./repository-binding-DU6dgTMT.js";import"./use-mcp-client-DcK8Rg4C.js";import"./auth-Dd6nwDaa.js";import"./use-current-view-BMmxo0aT.js";import"./SearchMd-Bdv01_Qr.js";import"./badge-DESkUuDj.js";import"./SwitchHorizontal01-DD94Yq3O.js";import"./Trash01--3zpoQ8b.js";import"./agent-icon-BOlYSKaH.js";import"./AlertCircle-DNLZLHo2.js";import"./Tool01-QwUIWOHx.js";import"./ArrowUp-D7c5FfG5.js";import"./ArrowLeft-BYy4HE5O.js";import"./ArrowRight-nl42uWN9.js";import"./BookOpen01-IKZ1bU3J.js";import"./Globe04-Bk3xc77M.js";import"./CheckCircle-B0s2c8RQ.js";import"./TrendUp01-BvBI14pN.js";import"./ChevronDown-Dfi32xkE.js";import"./ChevronSelectorVertical-C9hJFm1V.js";import"./ChevronUp-e2lZn6eP.js";import"./UserSquare-CKotvVGa.js";import"./LinkBroken01-DWDlVNIY.js";import"./CreditCard01-DkTCpzky.js";import"./File02-CIRvfyNR.js";import"./Eye-s8k6ZpFd.js";import"./Fingerprint04-CAyq7Ns9.js";import"./Image01-iZnpkSRO.js";import"./Key01-2bzDLRA-.js";import"./Minus-DbxKzySK.js";import"./Monitor01-CZJ-m8AM.js";import"./Sun-B0Lq9-BK.js";import"./Play-B7iY71_g.js";import"./ShoppingBag01-C0jxZbeK.js";import"./Upload01-CZv9e6Tj.js";import"./Users01-Bk6C0ZLv.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 ge(){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{ge 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,b7 as U}from"./index-CTMcJAph.js";import{ChatLayout as W}from"./index-CArf-8X7.js";import{s as X}from"./Plus-RCDHml3m.js";import{a as Y}from"./UserCheck01-DZjyuuBK.js";import{i as F}from"./Zap-DJuxbhuP.js";import{S as Z}from"./search-input-OHQ7aB3a.js";import{E as $}from"./empty-state-obejKp5A.js";import{u as tt,a as et,b as it}from"./use-automations-D0ZND8n5.js";import{a as ot}from"./use-panel-navigate-D-3r_Fkm.js";import{A as st}from"./automation-list-row-oa6t_8-9.js";import{c as nt}from"./thread-route-DR-mysJ4.js";import"./use-mobile-BmDu9lai.js";import"./tooltip-BwiBQZRg.js";import"./index-CeH1uymC.js";import"./MessageCircle01-BpGqYTnP.js";import"./XClose-CsOm5OF2.js";import"./thread-button-BBpIpfN4.js";import"./use-sidebar-collapsed-Du6f3z_j.js";import"./sheet-BK-tSef6.js";import"./use-chat-layout-state-B1ybe4ap.js";import"./toolbar-icon-button-w0w5tyY2.js";import"./use-in-settings-Bm865pUH.js";import"./resizable-DxAoPV5h.js";import"./route-page-header-Bpm0W1nW.js";import"./LayoutLeft-Vc1HAa0M.js";import"./use-project-scope-uv2IbJz0.js";import"./repository-binding--vh_BYpc.js";import"./use-mcp-client-I3y8cfsJ.js";import"./auth-PzOm_zFv.js";import"./use-current-view-D44ayMhH.js";import"./SearchMd-BvUkn3rx.js";import"./badge-CA_zRurx.js";import"./SwitchHorizontal01-CxL0NygI.js";import"./Trash01-hjBWefQQ.js";import"./agent-icon-BDoJ39oK.js";import"./AlertCircle-CzISmSv-.js";import"./Tool01-C3uo6Lgt.js";import"./ArrowUp-COdTIRs6.js";import"./ArrowLeft-Cp5wBgN1.js";import"./ArrowRight-CeB6x55t.js";import"./BookOpen01-BHs6bUbD.js";import"./Globe04-BGV551sq.js";import"./CheckCircle-ChJcEZnJ.js";import"./TrendUp01-iFr5GCuv.js";import"./ChevronDown-fzLgfNMN.js";import"./ChevronSelectorVertical-BTk3FRkw.js";import"./ChevronUp-b-VOSMPT.js";import"./UserSquare-ByLgJRcg.js";import"./LinkBroken01-D4pDcB76.js";import"./CreditCard01-B0Yfe9hH.js";import"./File02-DVaBtYaE.js";import"./Eye-DArYaInn.js";import"./Fingerprint04-CALESuKW.js";import"./Image01-8jmgxAd8.js";import"./Key01-DGjA9S6x.js";import"./Minus-Dw6Nli5H.js";import"./Monitor01-Br8acw8G.js";import"./Sun-GOAVarv9.js";import"./Play-C4UbfvzT.js";import"./ShoppingBag01-CAJ64xat.js";import"./Upload01-qGyzp9T6.js";import"./Users01-CqdtHmSR.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 ge(){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{ge as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-calendar-2-zFyr6a.js","assets/index-D0GeB565.js","assets/index-DbknIezs.css","assets/agent-icon-BOlYSKaH.js","assets/AlertCircle-DNLZLHo2.js","assets/UserCheck01-q7ulPlqF.js","assets/Tool01-QwUIWOHx.js","assets/ArrowUp-D7c5FfG5.js","assets/ArrowLeft-BYy4HE5O.js","assets/ArrowRight-nl42uWN9.js","assets/BookOpen01-IKZ1bU3J.js","assets/Globe04-Bk3xc77M.js","assets/CheckCircle-B0s2c8RQ.js","assets/TrendUp01-BvBI14pN.js","assets/ChevronDown-Dfi32xkE.js","assets/ChevronSelectorVertical-C9hJFm1V.js","assets/ChevronUp-e2lZn6eP.js","assets/UserSquare-CKotvVGa.js","assets/LinkBroken01-DWDlVNIY.js","assets/CreditCard01-DkTCpzky.js","assets/File02-CIRvfyNR.js","assets/MessageCircle01-BeRCqRNK.js","assets/SwitchHorizontal01-DD94Yq3O.js","assets/Eye-s8k6ZpFd.js","assets/Fingerprint04-CAyq7Ns9.js","assets/Image01-iZnpkSRO.js","assets/Key01-2bzDLRA-.js","assets/LayoutLeft-CqL2QU9u.js","assets/Minus-DbxKzySK.js","assets/Monitor01-CZJ-m8AM.js","assets/Sun-B0Lq9-BK.js","assets/Play-B7iY71_g.js","assets/Plus-Cd_Fqc7w.js","assets/SearchMd-Bdv01_Qr.js","assets/ShoppingBag01-C0jxZbeK.js","assets/Trash01--3zpoQ8b.js","assets/Upload01-CZv9e6Tj.js","assets/Users01-Bk6C0ZLv.js","assets/XClose-kKpsb0VH.js","assets/Zap-2IsMX7ff.js","assets/scroll-area-ClXdH976.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-C5kOgk1O.js","assets/empty-message-B9zXvnhW.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BaHqE7sK.js","assets/collapsible-cugvhfSU.js","assets/use-copy-C0RvTw-H.js","assets/usage-stats-CVy63u8A.js","assets/utils-CVEq3hMx.js","assets/markdown-BV_s4Mt8.js","assets/chat-context-DMSbRtvz.js","assets/use-panel-navigate-NIjceqGa.js","assets/thread-route-DzKX6liX.js","assets/use-project-scope-Dydoyc7j.js","assets/repository-binding-DU6dgTMT.js","assets/use-mcp-client-DcK8Rg4C.js","assets/auth-Dd6nwDaa.js","assets/use-view-draft-kind-CKTonQj1.js","assets/use-blog-view-NFjZbcnE.js","assets/use-organization-settings-Zs-0HDOz.js","assets/schema-38oQj0vb.js","assets/task-board-DZkCWK57.js","assets/thread-intent-Dn_I9q5Q.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-CpjkZIRh.js","assets/session-runtime-BTzXkfZD.js","assets/use-entitlements-CQAaswTi.js","assets/use-ai-providers-uG4gafxz.js","assets/use-current-view-BMmxo0aT.js","assets/use-in-settings-CoKa2UN1.js","assets/use-decopilot-events-Dn5SVp08.js","assets/use-mobile-CaiJHLz_.js","assets/tooltip-C7G4UfJI.js","assets/index-CUQ1BswV.js","assets/gateway-client-B9YCX672.js","assets/form-7596BaOo.js","assets/label-BLzM6AtD.js","assets/task-key-Cw3Q9yew.js","assets/use-task-board-items-DFbx09Hb.js","assets/config-DrmqoBxA.js","assets/task-route-B_nVJy5Z.js","assets/project-index-DfmWJtff.js","assets/shell-layout-Bayq9a0Q.js","assets/use-deployment-admin-BaMvvnFU.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-C_AIAJu5.js","assets/command-gpEmThj0.js","assets/index-C4NSe7Qj.js","assets/integration-icon-BkB-kGBE.js","assets/project-icon-BEYuDUOM.js","assets/use-navigate-to-agent-BGM5WtD5.js","assets/use-debounced-value-DhSyfF-z.js","assets/new-project-dialog-Dls8crnt.js","assets/repository-picker-DoxwL7AV.js","assets/github-icon-BLUj5Utn.js","assets/useInfiniteQuery-B_sn43uT.js","assets/infiniteQueryObserver-hHqnlqQ1.js","assets/collection-search-D_CW05AO.js","assets/new-project-store-Bxh71GBu.js","assets/legacy-admin-welcome-dialog-CPZIfWlp.js","assets/drawer-BKonTqr_.js","assets/required-auth-layout-Bq4XBTg_.js","assets/use-org-sso-CozAYMGc.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-CQLZ6oJM.js","assets/types-_Mc3dgb4.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-C6r3lw_r.js","assets/use-connection-DgTiiad4.js","assets/use-mcp-prompts-BBr4tWPB.js","assets/use-thread-outputs-B2AnAxLo.js","assets/file-type-icon--afDNYpi.js","assets/section-array-field-CPNuVUAP.js","assets/blocks-tab-states-2WKhheZD.js","assets/site-editor-toast-D_EDSc8S.js","assets/use-sandbox-events-BT3ZCsDp.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-DNeSW27r.js","assets/use-voice-input-D-1WcVro.js","assets/popover-By3JKa_e.js","assets/index-BN0QoJby.js","assets/checkbox-DOoztQkP.js","assets/select-DzZo69Bj.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-5mOrGYVp.js","assets/sandbox-git-api-C_L9X4wx.js","assets/empty-state-BcShFY0G.js","assets/use-move-blocks-DAmL1Heq.js","assets/hosted-reconcile-D41Tlmkh.js","assets/item-actions-DpmgpUO4.js","assets/badge-DESkUuDj.js","assets/empty-state-BYd9I_7t.js","assets/delete-copy-CbzinzJ0.js","assets/use-never-published-BYxG3YAd.js","assets/search-input-CygnSPSy.js","assets/tabs-Biepa-0w.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-DIdjpCrR.js","assets/asset-utils-BVIkMmcx.js","assets/index-C9yheUoG.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-7QouZXlU.js","assets/monaco-editor-km4ZZ6Ns.js","assets/editor-01f9wJNF.js","assets/record-editor-DzuiA2LH.js","assets/save-status-BgBSGkrf.js","assets/switch-BdTWJIKp.js","assets/toggle-group-C88GzCgF.js","assets/blog-schema-MT2kK_O9.js","assets/held-block-view-BjOvRj0_.js","assets/calendar-BuuRBO7G.js","assets/editor-classes-g6v2wpmT.js","assets/sortable.esm-6WZidv3Q.js","assets/named-rule-step-DA0QKfw_.js","assets/slider-DBR4l_U5.js","assets/index-BVmDOIOP.js","assets/tooltipContext-D9QOuNjA.js","assets/CategoricalChart-DFzU-S2b.js","assets/index-CvFFHqJF.js","assets/combobox-BQeWlUrV.js","assets/use-autosave-CQWWEeHn.js","assets/category-editor-BNi6Eyn8.js","assets/blog-preview-url-5VwX4cc2.js","assets/use-fast-preview-draft-url-DZJKuoMT.js","assets/block-document-BUTr6VAJ.js","assets/suggestion-AfnnjI9w.js","assets/product-picker-dialog-DEo-VOVl.js","assets/index-Blu8s1uS.js","assets/context-B-_BqCcu.js","assets/index-BD_DIDaa.js","assets/use-org-fs-Dtby7PZD.js","assets/icon-button-BHXRNgNb.js","assets/use-delete-block-Wy_ricMb.js"])))=>i.map(i=>d[i]);
2
- import{c as X,b as ie,j as t,r as M,b8 as oe,h as ae,aP as xe,aO as be,aL as ye,aJ as ve,aK as ke,aN as Ce,aM as je,b9 as _e,m as we,ba as Se,bb as Pe,t as T,B as Be,d as De,f as Ae,u as Ee,$ as le,bc as Ne}from"./index-D0GeB565.js";import{ChatLayout as Re}from"./index-CSJO2yev.js";import{S as Te}from"./site-draft-actions-DEUrBnoc.js";import{F as $e}from"./feature-gate-CBoQS_gt.js";import{i as ne}from"./File02-CIRvfyNR.js";import{s as Ie}from"./Plus-Cd_Fqc7w.js";import{s as Le,i as Ke}from"./UserSquare-CKotvVGa.js";import{c as ce}from"./UserCheck01-q7ulPlqF.js";import{t as me}from"./Users01-Bk6C0ZLv.js";import{S as Ve}from"./scroll-area-ClXdH976.js";import{T as Me,a as Oe,c as ze}from"./tooltip-C7G4UfJI.js";import{u as Fe,a as Ge,d as Ue}from"./delete-copy-CbzinzJ0.js";import{u as We,a as Qe,k as Z}from"./use-never-published-BYxG3YAd.js";import{u as qe}from"./use-delete-block-Wy_ricMb.js";import{d as He,f as Je}from"./site-editor-toast-D_EDSc8S.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-DpmgpUO4.js";import{E as rt}from"./empty-message-B9zXvnhW.js";import{i as it,B as te,u as at,s as lt,o as nt,c as ct,m as mt,b as ee,g as se,e as pt,a as re,l as dt,r as ut,d as ft,f as gt,h as ht}from"./category-tree-C5kOgk1O.js";import{E as xt}from"./agent-icon-BOlYSKaH.js";import{B as bt,a as yt}from"./blog-source-gate-N5r2xTwN.js";import{r as vt}from"./use-panel-navigate-NIjceqGa.js";import{c as kt}from"./thread-route-DzKX6liX.js";import{A as Ct}from"./agent-view-guard-BRdNQ8qK.js";import{a as jt}from"./blog-view-gate-DJoWGjbF.js";import"./use-mobile-CaiJHLz_.js";import"./MessageCircle01-BeRCqRNK.js";import"./XClose-kKpsb0VH.js";import"./thread-button-DUys9zit.js";import"./use-sidebar-collapsed-o4Py6pIV.js";import"./sheet-C6r3lw_r.js";import"./use-chat-layout-state-Dk5bkORO.js";import"./toolbar-icon-button-BNYS9FHi.js";import"./use-in-settings-CoKa2UN1.js";import"./resizable-BUgDd76Z.js";import"./route-page-header-Ck79CNi5.js";import"./LayoutLeft-CqL2QU9u.js";import"./use-project-scope-Dydoyc7j.js";import"./repository-binding-DU6dgTMT.js";import"./use-mcp-client-DcK8Rg4C.js";import"./auth-Dd6nwDaa.js";import"./use-current-view-BMmxo0aT.js";import"./separator-B1Ke3oud.js";import"./chat-context-DMSbRtvz.js";import"./use-view-draft-kind-CKTonQj1.js";import"./use-blog-view-NFjZbcnE.js";import"./use-organization-settings-Zs-0HDOz.js";import"./schema-38oQj0vb.js";import"./task-board-DZkCWK57.js";import"./thread-intent-Dn_I9q5Q.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CpjkZIRh.js";import"./session-runtime-BTzXkfZD.js";import"./use-entitlements-CQAaswTi.js";import"./use-ai-providers-uG4gafxz.js";import"./use-decopilot-events-Dn5SVp08.js";import"./use-org-notice-C_AIAJu5.js";import"./popover-By3JKa_e.js";import"./command-gpEmThj0.js";import"./index-C4NSe7Qj.js";import"./SearchMd-Bdv01_Qr.js";import"./tabs-Biepa-0w.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-Dfi32xkE.js";import"./SwitchHorizontal01-DD94Yq3O.js";import"./Tool01-QwUIWOHx.js";import"./Trash01--3zpoQ8b.js";import"./use-voice-input-D-1WcVro.js";import"./drawer-BKonTqr_.js";import"./index-BN0QoJby.js";import"./checkbox-DOoztQkP.js";import"./Minus-DbxKzySK.js";import"./select-DzZo69Bj.js";import"./index-BdQq_4o_.js";import"./index-CUQ1BswV.js";import"./ChevronUp-e2lZn6eP.js";import"./ArrowLeft-BYy4HE5O.js";import"./ChevronSelectorVertical-C9hJFm1V.js";import"./Key01-2bzDLRA-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-CZJ-m8AM.js";import"./AlertCircle-DNLZLHo2.js";import"./Eye-s8k6ZpFd.js";import"./Image01-iZnpkSRO.js";import"./use-debounced-value-DhSyfF-z.js";import"./shell-layout-Bayq9a0Q.js";import"./Globe04-Bk3xc77M.js";import"./use-deployment-admin-BaMvvnFU.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-B0s2c8RQ.js";import"./Zap-2IsMX7ff.js";import"./integration-icon-BkB-kGBE.js";import"./LinkBroken01-DWDlVNIY.js";import"./project-icon-BEYuDUOM.js";import"./use-navigate-to-agent-BGM5WtD5.js";import"./new-project-dialog-Dls8crnt.js";import"./label-BLzM6AtD.js";import"./repository-picker-DoxwL7AV.js";import"./github-icon-BLUj5Utn.js";import"./useInfiniteQuery-B_sn43uT.js";import"./infiniteQueryObserver-hHqnlqQ1.js";import"./collection-search-D_CW05AO.js";import"./BookOpen01-IKZ1bU3J.js";import"./ShoppingBag01-C0jxZbeK.js";import"./new-project-store-Bxh71GBu.js";import"./legacy-admin-welcome-dialog-CPZIfWlp.js";import"./required-auth-layout-Bq4XBTg_.js";import"./use-org-sso-CozAYMGc.js";import"./cms-store-drafts-BOdMkvBn.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-C5-KsrWo.js";import"./url-slug-BGTpsOPw.js";import"./use-blocks-v8-project-DNeSW27r.js";import"./use-sandbox-events-BT3ZCsDp.js";import"./sandbox-url-D3mC8qhT.js";import"./use-fast-preview-draft-url-DZJKuoMT.js";import"./blocks-tab-states-2WKhheZD.js";import"./empty-state-BcShFY0G.js";import"./index-DSjH9rb-.js";import"./ArrowUp-D7c5FfG5.js";import"./input-C2lGNPjf.js";import"./usage-stats-CVy63u8A.js";import"./utils-CVEq3hMx.js";import"./markdown-BV_s4Mt8.js";import"./use-copy-C0RvTw-H.js";import"./gateway-client-B9YCX672.js";import"./form-7596BaOo.js";import"./icon-button-BHXRNgNb.js";import"./file-type-icon--afDNYpi.js";import"./chat-draft-D0onyqDp.js";import"./ArrowRight-nl42uWN9.js";import"./Upload01-CZv9e6Tj.js";import"./use-deco-credits-DWZtWChN.js";import"./toggle-group-C88GzCgF.js";import"./input-BUHB_rvt.js";import"./suggestion-AfnnjI9w.js";import"./use-mcp-prompts-BBr4tWPB.js";import"./use-org-fs-Dtby7PZD.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-Cx-Lcnrh.js";import"./plan-ladder-CNDrxas8.js";import"./add-connection-dialog-BqKVQOpT.js";import"./extract-connection-data-CJI1R136.js";import"./metadata-D72DunRR.js";import"./connection-ClKw8_td.js";import"./connection-card-C0Rw3A1o.js";import"./connection-slug-BiqlqYek.js";import"./textarea-7QouZXlU.js";import"./use-connection-DgTiiad4.js";import"./schema-CwDUMrSI.js";import"./connection-form-helpers-CovVYy8L.js";import"./authenticate-and-persist-oauth-4YZOrw25.js";import"./mcp-oauth-CQDWFiaF.js";import"./mcp-oauth-C_rhXZPj.js";import"./collection-tabs-DbmQO_sc.js";import"./badge-DESkUuDj.js";import"./use-infinite-scroll-43Fpjl-2.js";import"./useSuspenseInfiniteQuery-DElaBmpm.js";import"./use-task-board-items-DFbx09Hb.js";import"./pair-BaHqE7sK.js";import"./collapsible-cugvhfSU.js";import"./task-key-Cw3Q9yew.js";import"./config-DrmqoBxA.js";import"./task-route-B_nVJy5Z.js";import"./project-index-DfmWJtff.js";import"./TrendUp01-BvBI14pN.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CQLZ6oJM.js";import"./types-_Mc3dgb4.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-B2AnAxLo.js";import"./agent-capabilities-D90My_uJ.js";import"./use-cms-publish-actions-DBQ6Q3f-.js";import"./use-content-sync-BsgwPn0U.js";import"./sandbox-git-api-C_L9X4wx.js";import"./utils-5mOrGYVp.js";import"./device-hint-DGeaIC_m.js";import"./alert-B2cQRalI.js";import"./section-array-field-CPNuVUAP.js";import"./editor-01f9wJNF.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-Cn4eIj_W.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-C9yheUoG.js";import"./hosted-reconcile-D41Tlmkh.js";import"./search-input-CygnSPSy.js";import"./use-file-configs-DIdjpCrR.js";import"./asset-utils-BVIkMmcx.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-BYd9I_7t.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-km4ZZ6Ns.js";import"./Play-B7iY71_g.js";import"./use-move-blocks-DAmL1Heq.js";import"./CreditCard01-DkTCpzky.js";import"./Fingerprint04-CAyq7Ns9.js";import"./Sun-B0Lq9-BK.js";import"./blog-preview-url-5VwX4cc2.js";import"./use-main-panel-tabs-DRLNeh3r.js";import"./use-mcp-tools-N7GhzMA3.js";import"./resolve-tab-icon-BhH6Q4u7.js";import"./use-task-metadata-D0bSFwSd.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-CatCNaTt.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 E;e[36]!==o?(E=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=E):E=e[37];const U=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]!==E||e[41]!==U||e[42]!==D?(B=t.jsx(J,{icon:xt,label:E,active:U,onClick:D}),e[40]=E,e[41]=U,e[42]=D,e[43]=B):B=e[43];let N;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(N=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]=N):N=e[49];let C;return e[50]!==c||e[51]!==N?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,N]}),e[50]=c,e[51]=N,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-2-zFyr6a.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])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-DzuiA2LH.js"),__vite__mapDeps([149,1,2,79,126,41,76,14,16,146,150,25,35,36,138,122,68,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,69,70,71,72,73,123,103,75,74,3,4,5,6,7,8,9,10,11,12,13,15,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,151,152,145,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,153,154,155,156,157,158,159,160,161,162,163,164,40,165])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-BNi6Eyn8.js"),__vite__mapDeps([166,1,2,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,4,9,20,17,79,126,41,76,14,16,153,5,154,138,122,123,103,75,74,3,6,7,8,10,11,12,13,15,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,150,151,152,145,155,146,156,80,157,44,45,46,47,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,158,159,160,161,162,163,164,40,43,132,167,168,165,169,137,144,170,171,172])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-B-_BqCcu.js"),__vite__mapDeps([173,1,2,133,118,119,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,120,121,122,123,103,75,76,74,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,124,125,126,41,127,128,129,130,117,131,135,79,151,146,137,49,50,51,48,77,78,138,139,140,141,94,142,143,98,99,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,144,165,150,152,145,174,156,170,172,175,176,177,155,171])).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=Fe(),k=Ge(c),l=Pe(e,y),m=We({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,it),E=Qe({orgSlug:d,virtualMcpId:c,branch:u}),[U,D]=M.useState(""),[B,N]=M.useState("list"),[C,$]=M.useState(null),W=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Ue("block",b,{neverPublished:E(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:W,description:K},b),[O,z]=M.useState(l);O!==l&&(z(l),D(""));const P=at({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),F=lt(s),pe={posts:F.posts.length,authors:F.authors.length,categories:F.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,pt(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=F.categories.map(Q=>Q.slug??"").filter(Boolean);L.slug=ht(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 Q=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of Q)H?q[G]=H:delete q[G]}for(const{key:Q,payload:G}of dt(q)){const H=ut(G,L);H!==G&&await m.mutateAsync({blockKey:Q,data:ft(Q,gt(H)),...f?{base:{value:q[Q],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(Et,{kind:l,entries:F[l],searchQuery:U,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:N,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(rt,{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??W}),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 Et(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(),E=g.filter(z=>!A||z.label.toLowerCase().includes(A)||z.subtitle.toLowerCase().includes(A)),U=a==="categories"&&!A?nt(E):E.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=N):N=e[16];let C;e[17]!==n?(C=z=>n(z.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:[N,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 W;e[23]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(Ie,{size:16}),e[23]=W):W=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:W})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Oe,{children:B}),e[27]=B,e[28]=V):V=e[28];let O;e[29]!==K||e[30]!==V?(O=t.jsxs(ze,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=O):O=e[31],e[32]!==O||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,O]}),e[32]=O,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=E.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):U.map(z=>{const{entry:P,depth:F}=z;return t.jsx("div",{style:{paddingLeft:F*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:mt(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:F>0?ct(P.slug??"",E).map(Nt).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 Nt(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=Ee(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:Ne(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-0qVUtDwn.js","assets/index-CTMcJAph.js","assets/index-DbknIezs.css","assets/agent-icon-BDoJ39oK.js","assets/AlertCircle-CzISmSv-.js","assets/UserCheck01-DZjyuuBK.js","assets/Tool01-C3uo6Lgt.js","assets/ArrowUp-COdTIRs6.js","assets/ArrowLeft-Cp5wBgN1.js","assets/ArrowRight-CeB6x55t.js","assets/BookOpen01-BHs6bUbD.js","assets/Globe04-BGV551sq.js","assets/CheckCircle-ChJcEZnJ.js","assets/TrendUp01-iFr5GCuv.js","assets/ChevronDown-fzLgfNMN.js","assets/ChevronSelectorVertical-BTk3FRkw.js","assets/ChevronUp-b-VOSMPT.js","assets/UserSquare-ByLgJRcg.js","assets/LinkBroken01-D4pDcB76.js","assets/CreditCard01-B0Yfe9hH.js","assets/File02-DVaBtYaE.js","assets/MessageCircle01-BpGqYTnP.js","assets/SwitchHorizontal01-CxL0NygI.js","assets/Eye-DArYaInn.js","assets/Fingerprint04-CALESuKW.js","assets/Image01-8jmgxAd8.js","assets/Key01-DGjA9S6x.js","assets/LayoutLeft-Vc1HAa0M.js","assets/Minus-Dw6Nli5H.js","assets/Monitor01-Br8acw8G.js","assets/Sun-GOAVarv9.js","assets/Play-C4UbfvzT.js","assets/Plus-RCDHml3m.js","assets/SearchMd-BvUkn3rx.js","assets/ShoppingBag01-CAJ64xat.js","assets/Trash01-hjBWefQQ.js","assets/Upload01-qGyzp9T6.js","assets/Users01-CqdtHmSR.js","assets/XClose-CsOm5OF2.js","assets/Zap-DJuxbhuP.js","assets/scroll-area-86kp0Juo.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-CDQb6hKD.js","assets/empty-message-C0f5_LY5.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-Ds0-e3lZ.js","assets/collapsible-DzLPWd70.js","assets/use-copy-CE9nrbOr.js","assets/usage-stats-DTtlBjNo.js","assets/utils-CVEq3hMx.js","assets/markdown-Dc3CvpIQ.js","assets/chat-context-Bv66eHof.js","assets/use-panel-navigate-D-3r_Fkm.js","assets/thread-route-DR-mysJ4.js","assets/use-project-scope-uv2IbJz0.js","assets/repository-binding--vh_BYpc.js","assets/use-mcp-client-I3y8cfsJ.js","assets/auth-PzOm_zFv.js","assets/use-view-draft-kind-CJIOo5Xm.js","assets/use-blog-view-CNoSAPL8.js","assets/use-organization-settings-CwuyWnwZ.js","assets/schema-BhHglPtg.js","assets/task-board-PS4uTaEc.js","assets/thread-intent-1ccDEEyI.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-D23qxy7t.js","assets/session-runtime-i5m3WIi5.js","assets/use-entitlements-DNwniW7G.js","assets/use-ai-providers-DZEaT-ul.js","assets/use-current-view-D44ayMhH.js","assets/use-in-settings-Bm865pUH.js","assets/use-decopilot-events-_mLqRiEF.js","assets/use-mobile-BmDu9lai.js","assets/tooltip-BwiBQZRg.js","assets/index-CeH1uymC.js","assets/gateway-client-23IpJZq4.js","assets/form-BZRFxWry.js","assets/label-trmpdZLi.js","assets/task-key-CN2bdn8Q.js","assets/use-task-board-items-hngRazfo.js","assets/config-CCcwWB8c.js","assets/task-route-CeP9N75K.js","assets/project-index-BuGJUH1H.js","assets/shell-layout-BuI483D3.js","assets/use-deployment-admin-DlPnuM4S.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-BcxmaTvi.js","assets/command-CTDIy4l6.js","assets/index-C8hJzRYZ.js","assets/integration-icon-_XZmtsUQ.js","assets/project-icon-BWLuHtAC.js","assets/use-navigate-to-agent-DGvRNQ_A.js","assets/use-debounced-value-DT9lKq9i.js","assets/new-project-dialog-C9TjL-bf.js","assets/repository-picker-Brbv4xAW.js","assets/github-icon-CBNn-o18.js","assets/useInfiniteQuery-BRexMxca.js","assets/infiniteQueryObserver-D9m6eB2O.js","assets/collection-search-CdjAgPSP.js","assets/new-project-store-DziLBvLE.js","assets/legacy-admin-welcome-dialog-CUKFHE53.js","assets/drawer-BEcXc_-E.js","assets/required-auth-layout-DS3Ymu6e.js","assets/use-org-sso-QOAhbUXz.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-D4M3J8xI.js","assets/types-CQPseOG9.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-BK-tSef6.js","assets/use-connection-BNMimkPL.js","assets/use-mcp-prompts-BvVRtZ43.js","assets/use-thread-outputs-Bk_M_0CQ.js","assets/file-type-icon-DVl3LYgB.js","assets/section-array-field-BYNGi1SJ.js","assets/blocks-tab-states-B8JNI9rP.js","assets/site-editor-toast-tb2AMckD.js","assets/use-sandbox-events-Dw0utopN.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-D5fKsCGm.js","assets/use-voice-input-CFTfX25b.js","assets/popover-C8zi00Ue.js","assets/index-CL5AbR0i.js","assets/checkbox-CXlqSbPC.js","assets/select-DPgeUwK8.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-Bb7MZu12.js","assets/sandbox-git-api-DOzEUsKW.js","assets/empty-state-obejKp5A.js","assets/use-move-blocks-D9FoxaY3.js","assets/hosted-reconcile-CpaX3Kk9.js","assets/item-actions-BTbo4VGv.js","assets/badge-CA_zRurx.js","assets/empty-state-BkUMxsIo.js","assets/delete-copy-Cv0ifUJG.js","assets/use-never-published-tdlolbih.js","assets/search-input-OHQ7aB3a.js","assets/tabs-2mcRw6CQ.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-DNyK94-h.js","assets/asset-utils-D3oLKwAE.js","assets/index-DVnJxoIV.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-CpsIhOMc.js","assets/monaco-editor-Cop8b3Iq.js","assets/editor-BFAj_1BW.js","assets/record-editor-DpFDePV5.js","assets/save-status-BtdtqD2M.js","assets/switch-md0gRiEr.js","assets/toggle-group-Ls4QOte6.js","assets/blog-schema-CilAbDlC.js","assets/held-block-view-YbSpr4rH.js","assets/calendar-BROMdOEm.js","assets/editor-classes-BxMZYBKM.js","assets/sortable.esm-BjAYLhGV.js","assets/named-rule-step-MGqpbfvr.js","assets/slider-Ls5eTZcT.js","assets/index-Cbm5nFnf.js","assets/tooltipContext-CAee1FwO.js","assets/CategoricalChart-BqZTua92.js","assets/index-DLxdCPEu.js","assets/combobox-Cfg_BsiZ.js","assets/use-autosave-DCpw1AWV.js","assets/category-editor-CkOr_tBK.js","assets/blog-preview-url-pZbpXnSV.js","assets/use-fast-preview-draft-url-BDGYAn85.js","assets/block-document-_79-V04H.js","assets/suggestion-C-xAkFMh.js","assets/product-picker-dialog-CxMIxnVH.js","assets/index-lloVSdjU.js","assets/context-CWkIELvN.js","assets/index-DiuIOj3H.js","assets/use-org-fs-DhWc9O8e.js","assets/icon-button-SEPOUIsz.js","assets/use-delete-block-DQun19Xn.js"])))=>i.map(i=>d[i]);
2
+ import{c as X,b as ie,j as t,r as M,b8 as oe,h as ae,aP as xe,aO as be,aL as ye,aJ as ve,aK as ke,aN as Ce,aM as je,b9 as _e,m as we,ba as Se,bb as Pe,t as T,B as Be,d as De,f as Ae,u as Ee,$ as le,bc as Ne}from"./index-CTMcJAph.js";import{ChatLayout as Re}from"./index-CArf-8X7.js";import{S as Te}from"./site-draft-actions-DoX_UDfb.js";import{F as $e}from"./feature-gate-Bw3bXdA4.js";import{i as ne}from"./File02-DVaBtYaE.js";import{s as Ie}from"./Plus-RCDHml3m.js";import{s as Le,i as Ke}from"./UserSquare-ByLgJRcg.js";import{c as ce}from"./UserCheck01-DZjyuuBK.js";import{t as me}from"./Users01-CqdtHmSR.js";import{S as Ve}from"./scroll-area-86kp0Juo.js";import{T as Me,a as Oe,c as ze}from"./tooltip-BwiBQZRg.js";import{u as Fe,a as Ge,d as Ue}from"./delete-copy-Cv0ifUJG.js";import{u as We,a as Qe,k as Z}from"./use-never-published-tdlolbih.js";import{u as qe}from"./use-delete-block-DQun19Xn.js";import{d as He,f as Je}from"./site-editor-toast-tb2AMckD.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-BTbo4VGv.js";import{E as rt}from"./empty-message-C0f5_LY5.js";import{i as it,B as te,u as at,s as lt,o as nt,c as ct,m as mt,b as ee,g as se,e as pt,a as re,l as dt,r as ut,d as ft,f as gt,h as ht}from"./category-tree-CDQb6hKD.js";import{E as xt}from"./agent-icon-BDoJ39oK.js";import{B as bt,a as yt}from"./blog-source-gate-CuhbPoPW.js";import{r as vt}from"./use-panel-navigate-D-3r_Fkm.js";import{c as kt}from"./thread-route-DR-mysJ4.js";import{A as Ct}from"./agent-view-guard-BGcDWcPU.js";import{a as jt}from"./blog-view-gate-DkmdG0vt.js";import"./use-mobile-BmDu9lai.js";import"./MessageCircle01-BpGqYTnP.js";import"./XClose-CsOm5OF2.js";import"./thread-button-BBpIpfN4.js";import"./use-sidebar-collapsed-Du6f3z_j.js";import"./sheet-BK-tSef6.js";import"./use-chat-layout-state-B1ybe4ap.js";import"./toolbar-icon-button-w0w5tyY2.js";import"./use-in-settings-Bm865pUH.js";import"./resizable-DxAoPV5h.js";import"./route-page-header-Bpm0W1nW.js";import"./LayoutLeft-Vc1HAa0M.js";import"./use-project-scope-uv2IbJz0.js";import"./repository-binding--vh_BYpc.js";import"./use-mcp-client-I3y8cfsJ.js";import"./auth-PzOm_zFv.js";import"./use-current-view-D44ayMhH.js";import"./separator-DhjB_iu5.js";import"./chat-context-Bv66eHof.js";import"./use-view-draft-kind-CJIOo5Xm.js";import"./use-blog-view-CNoSAPL8.js";import"./use-organization-settings-CwuyWnwZ.js";import"./schema-BhHglPtg.js";import"./task-board-PS4uTaEc.js";import"./thread-intent-1ccDEEyI.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D23qxy7t.js";import"./session-runtime-i5m3WIi5.js";import"./use-entitlements-DNwniW7G.js";import"./use-ai-providers-DZEaT-ul.js";import"./use-decopilot-events-_mLqRiEF.js";import"./use-org-notice-BcxmaTvi.js";import"./popover-C8zi00Ue.js";import"./command-CTDIy4l6.js";import"./index-C8hJzRYZ.js";import"./SearchMd-BvUkn3rx.js";import"./tabs-2mcRw6CQ.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-fzLgfNMN.js";import"./SwitchHorizontal01-CxL0NygI.js";import"./Tool01-C3uo6Lgt.js";import"./Trash01-hjBWefQQ.js";import"./use-voice-input-CFTfX25b.js";import"./drawer-BEcXc_-E.js";import"./index-CL5AbR0i.js";import"./checkbox-CXlqSbPC.js";import"./Minus-Dw6Nli5H.js";import"./select-DPgeUwK8.js";import"./index-BdQq_4o_.js";import"./index-CeH1uymC.js";import"./ChevronUp-b-VOSMPT.js";import"./ArrowLeft-Cp5wBgN1.js";import"./ChevronSelectorVertical-BTk3FRkw.js";import"./Key01-DGjA9S6x.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-Br8acw8G.js";import"./AlertCircle-CzISmSv-.js";import"./Eye-DArYaInn.js";import"./Image01-8jmgxAd8.js";import"./use-debounced-value-DT9lKq9i.js";import"./shell-layout-BuI483D3.js";import"./Globe04-BGV551sq.js";import"./use-deployment-admin-DlPnuM4S.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-ChJcEZnJ.js";import"./Zap-DJuxbhuP.js";import"./integration-icon-_XZmtsUQ.js";import"./LinkBroken01-D4pDcB76.js";import"./project-icon-BWLuHtAC.js";import"./use-navigate-to-agent-DGvRNQ_A.js";import"./new-project-dialog-C9TjL-bf.js";import"./label-trmpdZLi.js";import"./repository-picker-Brbv4xAW.js";import"./github-icon-CBNn-o18.js";import"./useInfiniteQuery-BRexMxca.js";import"./infiniteQueryObserver-D9m6eB2O.js";import"./collection-search-CdjAgPSP.js";import"./BookOpen01-BHs6bUbD.js";import"./ShoppingBag01-CAJ64xat.js";import"./new-project-store-DziLBvLE.js";import"./legacy-admin-welcome-dialog-CUKFHE53.js";import"./required-auth-layout-DS3Ymu6e.js";import"./use-org-sso-QOAhbUXz.js";import"./cms-store-drafts-DCNFP7LB.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-YeTBM8yt.js";import"./url-slug-_KiIaSc5.js";import"./use-blocks-v8-project-D5fKsCGm.js";import"./use-sandbox-events-Dw0utopN.js";import"./sandbox-url-D3mC8qhT.js";import"./use-fast-preview-draft-url-BDGYAn85.js";import"./blocks-tab-states-B8JNI9rP.js";import"./empty-state-obejKp5A.js";import"./index-rnYUd4dS.js";import"./ArrowUp-COdTIRs6.js";import"./input-h0wz_TXZ.js";import"./usage-stats-DTtlBjNo.js";import"./utils-CVEq3hMx.js";import"./markdown-Dc3CvpIQ.js";import"./use-copy-CE9nrbOr.js";import"./gateway-client-23IpJZq4.js";import"./form-BZRFxWry.js";import"./icon-button-SEPOUIsz.js";import"./file-type-icon-DVl3LYgB.js";import"./chat-draft-B-z19fpg.js";import"./ArrowRight-CeB6x55t.js";import"./Upload01-qGyzp9T6.js";import"./use-deco-credits-D66VTWCl.js";import"./toggle-group-Ls4QOte6.js";import"./input-eXowApKu.js";import"./suggestion-C-xAkFMh.js";import"./use-mcp-prompts-BvVRtZ43.js";import"./use-org-fs-DhWc9O8e.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DeRLsq8M.js";import"./plan-ladder-BhsGSh5u.js";import"./add-connection-dialog-C_sfKhNP.js";import"./extract-connection-data-CuocrlN0.js";import"./metadata-D72DunRR.js";import"./connection-B3DAaQoc.js";import"./connection-card-CM3dQtaR.js";import"./connection-slug-CnFKm4nL.js";import"./textarea-CpsIhOMc.js";import"./use-connection-BNMimkPL.js";import"./schema-Hu_PAkfm.js";import"./connection-form-helpers-CvBBFmRQ.js";import"./authenticate-and-persist-oauth-BDW-ZPLh.js";import"./mcp-oauth-B4J7uUwj.js";import"./mcp-oauth-v1wlsxnr.js";import"./collection-tabs-D03BVHFN.js";import"./badge-CA_zRurx.js";import"./use-infinite-scroll-COH_kc3E.js";import"./useSuspenseInfiniteQuery-DM12jCFI.js";import"./use-task-board-items-hngRazfo.js";import"./pair-Ds0-e3lZ.js";import"./collapsible-DzLPWd70.js";import"./task-key-CN2bdn8Q.js";import"./config-CCcwWB8c.js";import"./task-route-CeP9N75K.js";import"./project-index-BuGJUH1H.js";import"./TrendUp01-iFr5GCuv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D4M3J8xI.js";import"./types-CQPseOG9.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-Bk_M_0CQ.js";import"./agent-capabilities-Dl5qDebF.js";import"./use-cms-publish-actions-CZ7OOlql.js";import"./use-content-sync-ClbM0XA1.js";import"./sandbox-git-api-DOzEUsKW.js";import"./utils-Bb7MZu12.js";import"./device-hint-nPYgqbIG.js";import"./alert-CeUAN2Gm.js";import"./section-array-field-BYNGi1SJ.js";import"./editor-BFAj_1BW.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-Dp0s3TpP.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-DVnJxoIV.js";import"./hosted-reconcile-CpaX3Kk9.js";import"./search-input-OHQ7aB3a.js";import"./use-file-configs-DNyK94-h.js";import"./asset-utils-D3oLKwAE.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-BkUMxsIo.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-Cop8b3Iq.js";import"./Play-C4UbfvzT.js";import"./use-move-blocks-D9FoxaY3.js";import"./CreditCard01-B0Yfe9hH.js";import"./Fingerprint04-CALESuKW.js";import"./Sun-GOAVarv9.js";import"./blog-preview-url-pZbpXnSV.js";import"./use-main-panel-tabs-CKNAH4y7.js";import"./use-mcp-tools-D4mbfBv6.js";import"./resolve-tab-icon-e4_ZG2lV.js";import"./use-task-metadata-B2z2taUm.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-DNdTgIQV.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 E;e[36]!==o?(E=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=E):E=e[37];const U=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]!==E||e[41]!==U||e[42]!==D?(B=t.jsx(J,{icon:xt,label:E,active:U,onClick:D}),e[40]=E,e[41]=U,e[42]=D,e[43]=B):B=e[43];let N;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(N=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]=N):N=e[49];let C;return e[50]!==c||e[51]!==N?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,N]}),e[50]=c,e[51]=N,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-0qVUtDwn.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])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-DpFDePV5.js"),__vite__mapDeps([149,1,2,79,126,41,76,14,16,146,150,25,35,36,138,122,68,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,69,70,71,72,73,123,103,75,74,3,4,5,6,7,8,9,10,11,12,13,15,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,151,152,145,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,153,154,155,156,157,158,159,160,161,162,163,164,40,165])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-CkOr_tBK.js"),__vite__mapDeps([166,1,2,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,4,9,20,17,79,126,41,76,14,16,153,5,154,138,122,123,103,75,74,3,6,7,8,10,11,12,13,15,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,150,151,152,145,155,146,156,80,157,44,45,46,47,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,158,159,160,161,162,163,164,40,43,132,167,168,165,169,137,144,170,171,172])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-CWkIELvN.js"),__vite__mapDeps([173,1,2,133,118,119,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,120,121,122,123,103,75,76,74,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,124,125,126,41,127,128,129,130,117,131,135,79,151,146,137,49,50,51,48,77,78,138,139,140,141,94,142,143,98,99,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,144,165,150,152,145,174,156,170,172,175,176,177,155,171])).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=Fe(),k=Ge(c),l=Pe(e,y),m=We({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,it),E=Qe({orgSlug:d,virtualMcpId:c,branch:u}),[U,D]=M.useState(""),[B,N]=M.useState("list"),[C,$]=M.useState(null),W=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Ue("block",b,{neverPublished:E(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:W,description:K},b),[O,z]=M.useState(l);O!==l&&(z(l),D(""));const P=at({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),F=lt(s),pe={posts:F.posts.length,authors:F.authors.length,categories:F.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,pt(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=F.categories.map(Q=>Q.slug??"").filter(Boolean);L.slug=ht(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 Q=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of Q)H?q[G]=H:delete q[G]}for(const{key:Q,payload:G}of dt(q)){const H=ut(G,L);H!==G&&await m.mutateAsync({blockKey:Q,data:ft(Q,gt(H)),...f?{base:{value:q[Q],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(Et,{kind:l,entries:F[l],searchQuery:U,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:N,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(rt,{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??W}),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 Et(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(),E=g.filter(z=>!A||z.label.toLowerCase().includes(A)||z.subtitle.toLowerCase().includes(A)),U=a==="categories"&&!A?nt(E):E.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=N):N=e[16];let C;e[17]!==n?(C=z=>n(z.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:[N,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 W;e[23]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(Ie,{size:16}),e[23]=W):W=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:W})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Oe,{children:B}),e[27]=B,e[28]=V):V=e[28];let O;e[29]!==K||e[30]!==V?(O=t.jsxs(ze,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=O):O=e[31],e[32]!==O||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,O]}),e[32]=O,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=E.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):U.map(z=>{const{entry:P,depth:F}=z;return t.jsx("div",{style:{paddingLeft:F*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:mt(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:F>0?ct(P.slug??"",E).map(Nt).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 Nt(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=Ee(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:Ne(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-D61Lc2td.js","assets/index-D0GeB565.js","assets/index-DbknIezs.css","assets/chat-context-DMSbRtvz.js","assets/use-panel-navigate-NIjceqGa.js","assets/thread-route-DzKX6liX.js","assets/use-project-scope-Dydoyc7j.js","assets/repository-binding-DU6dgTMT.js","assets/use-mcp-client-DcK8Rg4C.js","assets/auth-Dd6nwDaa.js","assets/use-view-draft-kind-CKTonQj1.js","assets/use-blog-view-NFjZbcnE.js","assets/use-organization-settings-Zs-0HDOz.js","assets/schema-38oQj0vb.js","assets/task-board-DZkCWK57.js","assets/thread-intent-Dn_I9q5Q.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-CpjkZIRh.js","assets/session-runtime-BTzXkfZD.js","assets/use-entitlements-CQAaswTi.js","assets/use-ai-providers-uG4gafxz.js","assets/use-current-view-BMmxo0aT.js","assets/use-in-settings-CoKa2UN1.js","assets/use-decopilot-events-Dn5SVp08.js","assets/AlertCircle-DNLZLHo2.js","assets/agent-icon-BOlYSKaH.js","assets/UserCheck01-q7ulPlqF.js","assets/Tool01-QwUIWOHx.js","assets/ArrowUp-D7c5FfG5.js","assets/ArrowLeft-BYy4HE5O.js","assets/ArrowRight-nl42uWN9.js","assets/BookOpen01-IKZ1bU3J.js","assets/Globe04-Bk3xc77M.js","assets/CheckCircle-B0s2c8RQ.js","assets/TrendUp01-BvBI14pN.js","assets/ChevronDown-Dfi32xkE.js","assets/ChevronSelectorVertical-C9hJFm1V.js","assets/ChevronUp-e2lZn6eP.js","assets/UserSquare-CKotvVGa.js","assets/LinkBroken01-DWDlVNIY.js","assets/CreditCard01-DkTCpzky.js","assets/File02-CIRvfyNR.js","assets/MessageCircle01-BeRCqRNK.js","assets/SwitchHorizontal01-DD94Yq3O.js","assets/Eye-s8k6ZpFd.js","assets/Fingerprint04-CAyq7Ns9.js","assets/Image01-iZnpkSRO.js","assets/Key01-2bzDLRA-.js","assets/LayoutLeft-CqL2QU9u.js","assets/Minus-DbxKzySK.js","assets/Monitor01-CZJ-m8AM.js","assets/Sun-B0Lq9-BK.js","assets/Play-B7iY71_g.js","assets/Plus-Cd_Fqc7w.js","assets/SearchMd-Bdv01_Qr.js","assets/ShoppingBag01-C0jxZbeK.js","assets/Trash01--3zpoQ8b.js","assets/Upload01-CZv9e6Tj.js","assets/Users01-Bk6C0ZLv.js","assets/XClose-kKpsb0VH.js","assets/Zap-2IsMX7ff.js","assets/label-BLzM6AtD.js","assets/multi-select-DLFBYfWy.js","assets/badge-DESkUuDj.js","assets/checkbox-DOoztQkP.js","assets/command-gpEmThj0.js","assets/index-C4NSe7Qj.js","assets/popover-By3JKa_e.js","assets/tabs-Biepa-0w.js","assets/active-indicator-CCMhAsc_.js","assets/switch-BdTWJIKp.js","assets/textarea-7QouZXlU.js","assets/save-status-BgBSGkrf.js","assets/use-never-published-BYxG3YAd.js","assets/use-voice-input-D-1WcVro.js","assets/drawer-BKonTqr_.js","assets/tooltip-C7G4UfJI.js","assets/index-CUQ1BswV.js","assets/use-mobile-CaiJHLz_.js","assets/index-BN0QoJby.js","assets/select-DzZo69Bj.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-D_EDSc8S.js","assets/use-sandbox-events-BT3ZCsDp.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-DNeSW27r.js","assets/utils-5mOrGYVp.js","assets/sandbox-git-api-C_L9X4wx.js","assets/hosted-reconcile-D41Tlmkh.js","assets/blocks-tab-states-2WKhheZD.js","assets/empty-state-BcShFY0G.js","assets/search-input-CygnSPSy.js","assets/use-debounced-value-DhSyfF-z.js","assets/use-file-configs-DIdjpCrR.js","assets/asset-utils-BVIkMmcx.js","assets/useInfiniteQuery-B_sn43uT.js","assets/infiniteQueryObserver-hHqnlqQ1.js","assets/usage-stats-CVy63u8A.js","assets/utils-CVEq3hMx.js","assets/markdown-BV_s4Mt8.js","assets/use-copy-C0RvTw-H.js","assets/gateway-client-B9YCX672.js","assets/form-7596BaOo.js","assets/toggle-group-C88GzCgF.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-BUTr6VAJ.js","assets/task-key-Cw3Q9yew.js","assets/sortable.esm-6WZidv3Q.js","assets/delete-copy-CbzinzJ0.js","assets/category-tree-C5kOgk1O.js","assets/empty-message-B9zXvnhW.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BaHqE7sK.js","assets/collapsible-cugvhfSU.js","assets/use-task-board-items-DFbx09Hb.js","assets/config-DrmqoBxA.js","assets/task-route-B_nVJy5Z.js","assets/project-index-DfmWJtff.js","assets/shell-layout-Bayq9a0Q.js","assets/use-deployment-admin-BaMvvnFU.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-C_AIAJu5.js","assets/integration-icon-BkB-kGBE.js","assets/project-icon-BEYuDUOM.js","assets/use-navigate-to-agent-BGM5WtD5.js","assets/new-project-dialog-Dls8crnt.js","assets/repository-picker-DoxwL7AV.js","assets/github-icon-BLUj5Utn.js","assets/collection-search-D_CW05AO.js","assets/new-project-store-Bxh71GBu.js","assets/legacy-admin-welcome-dialog-CPZIfWlp.js","assets/required-auth-layout-Bq4XBTg_.js","assets/use-org-sso-CozAYMGc.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-CQLZ6oJM.js","assets/types-_Mc3dgb4.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-C6r3lw_r.js","assets/use-connection-DgTiiad4.js","assets/use-mcp-prompts-BBr4tWPB.js","assets/use-thread-outputs-B2AnAxLo.js","assets/file-type-icon--afDNYpi.js","assets/section-array-field-CPNuVUAP.js","assets/use-move-blocks-DAmL1Heq.js","assets/index-C9yheUoG.js","assets/suggestion-AfnnjI9w.js","assets/editor-classes-g6v2wpmT.js","assets/blog-preview-url-5VwX4cc2.js","assets/product-picker-dialog-DEo-VOVl.js","assets/index-Blu8s1uS.js","assets/held-block-view-BjOvRj0_.js","assets/calendar-BuuRBO7G.js","assets/named-rule-step-DA0QKfw_.js","assets/slider-DBR4l_U5.js","assets/index-BVmDOIOP.js","assets/tooltipContext-D9QOuNjA.js","assets/CategoricalChart-DFzU-S2b.js","assets/index-CvFFHqJF.js","assets/combobox-BQeWlUrV.js","assets/scroll-area-ClXdH976.js","assets/blog-schema-MT2kK_O9.js","assets/use-delete-block-Wy_ricMb.js","assets/use-fast-preview-draft-url-DZJKuoMT.js","assets/use-autosave-CQWWEeHn.js"])))=>i.map(i=>d[i]);
2
- import{c as T,r as B,m as re,j as n,b as se,bd as xe,b6 as we,B as ce,a9 as Pe,at as ye,b8 as Se,be as je,n as Ee,bc as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bf as Be,bg as De}from"./index-D0GeB565.js";import{ChatLayout as Le}from"./index-CSJO2yev.js";import{b as Ie,S as $e}from"./site-draft-actions-DEUrBnoc.js";import{F as Te}from"./feature-gate-CBoQS_gt.js";import{E as be}from"./empty-state-BYd9I_7t.js";import{F as ze,n as Ae}from"./agent-icon-BOlYSKaH.js";import{d as Ce}from"./UserSquare-CKotvVGa.js";import{u as Oe}from"./use-fast-preview-draft-url-DZJKuoMT.js";import{u as Fe,a as He,j as Ke}from"./category-tree-C5kOgk1O.js";import{i as Me}from"./Monitor01-CZJ-m8AM.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe}from"./frame-navigation-albuGlCo.js";import{g as Ye}from"./site-editor-toast-D_EDSc8S.js";import{b as qe}from"./use-sandbox-events-BT3ZCsDp.js";import{b as Je,f as Qe}from"./blog-preview-url-5VwX4cc2.js";import{B as Ze,a as et}from"./blog-source-gate-N5r2xTwN.js";import{r as tt}from"./use-panel-navigate-NIjceqGa.js";import{c as ot}from"./thread-route-DzKX6liX.js";import{a as it}from"./blog-view-gate-DJoWGjbF.js";import"./use-mobile-CaiJHLz_.js";import"./tooltip-C7G4UfJI.js";import"./index-CUQ1BswV.js";import"./MessageCircle01-BeRCqRNK.js";import"./XClose-kKpsb0VH.js";import"./thread-button-DUys9zit.js";import"./use-sidebar-collapsed-o4Py6pIV.js";import"./sheet-C6r3lw_r.js";import"./use-chat-layout-state-Dk5bkORO.js";import"./toolbar-icon-button-BNYS9FHi.js";import"./use-in-settings-CoKa2UN1.js";import"./resizable-BUgDd76Z.js";import"./route-page-header-Ck79CNi5.js";import"./LayoutLeft-CqL2QU9u.js";import"./use-project-scope-Dydoyc7j.js";import"./repository-binding-DU6dgTMT.js";import"./use-mcp-client-DcK8Rg4C.js";import"./auth-Dd6nwDaa.js";import"./use-current-view-BMmxo0aT.js";import"./separator-B1Ke3oud.js";import"./chat-context-DMSbRtvz.js";import"./use-view-draft-kind-CKTonQj1.js";import"./use-blog-view-NFjZbcnE.js";import"./use-organization-settings-Zs-0HDOz.js";import"./schema-38oQj0vb.js";import"./task-board-DZkCWK57.js";import"./thread-intent-Dn_I9q5Q.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CpjkZIRh.js";import"./session-runtime-BTzXkfZD.js";import"./use-entitlements-CQAaswTi.js";import"./use-ai-providers-uG4gafxz.js";import"./use-decopilot-events-Dn5SVp08.js";import"./use-org-notice-C_AIAJu5.js";import"./popover-By3JKa_e.js";import"./command-gpEmThj0.js";import"./index-C4NSe7Qj.js";import"./SearchMd-Bdv01_Qr.js";import"./tabs-Biepa-0w.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-Dfi32xkE.js";import"./UserCheck01-q7ulPlqF.js";import"./SwitchHorizontal01-DD94Yq3O.js";import"./Tool01-QwUIWOHx.js";import"./Plus-Cd_Fqc7w.js";import"./Trash01--3zpoQ8b.js";import"./use-voice-input-D-1WcVro.js";import"./drawer-BKonTqr_.js";import"./index-BN0QoJby.js";import"./checkbox-DOoztQkP.js";import"./Minus-DbxKzySK.js";import"./select-DzZo69Bj.js";import"./index-BdQq_4o_.js";import"./ChevronUp-e2lZn6eP.js";import"./ArrowLeft-BYy4HE5O.js";import"./ChevronSelectorVertical-C9hJFm1V.js";import"./Key01-2bzDLRA-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-DNLZLHo2.js";import"./Eye-s8k6ZpFd.js";import"./Image01-iZnpkSRO.js";import"./use-debounced-value-DhSyfF-z.js";import"./shell-layout-Bayq9a0Q.js";import"./Globe04-Bk3xc77M.js";import"./use-deployment-admin-BaMvvnFU.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-B0s2c8RQ.js";import"./Zap-2IsMX7ff.js";import"./integration-icon-BkB-kGBE.js";import"./LinkBroken01-DWDlVNIY.js";import"./project-icon-BEYuDUOM.js";import"./use-navigate-to-agent-BGM5WtD5.js";import"./new-project-dialog-Dls8crnt.js";import"./label-BLzM6AtD.js";import"./repository-picker-DoxwL7AV.js";import"./github-icon-BLUj5Utn.js";import"./useInfiniteQuery-B_sn43uT.js";import"./infiniteQueryObserver-hHqnlqQ1.js";import"./collection-search-D_CW05AO.js";import"./BookOpen01-IKZ1bU3J.js";import"./ShoppingBag01-C0jxZbeK.js";import"./new-project-store-Bxh71GBu.js";import"./legacy-admin-welcome-dialog-CPZIfWlp.js";import"./required-auth-layout-Bq4XBTg_.js";import"./use-org-sso-CozAYMGc.js";import"./cms-store-drafts-BOdMkvBn.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-C5-KsrWo.js";import"./url-slug-BGTpsOPw.js";import"./use-blocks-v8-project-DNeSW27r.js";import"./blocks-tab-states-2WKhheZD.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-BcShFY0G.js";import"./index-DSjH9rb-.js";import"./ArrowUp-D7c5FfG5.js";import"./input-C2lGNPjf.js";import"./usage-stats-CVy63u8A.js";import"./utils-CVEq3hMx.js";import"./markdown-BV_s4Mt8.js";import"./use-copy-C0RvTw-H.js";import"./File02-CIRvfyNR.js";import"./gateway-client-B9YCX672.js";import"./form-7596BaOo.js";import"./icon-button-BHXRNgNb.js";import"./file-type-icon--afDNYpi.js";import"./chat-draft-D0onyqDp.js";import"./ArrowRight-nl42uWN9.js";import"./Upload01-CZv9e6Tj.js";import"./use-deco-credits-DWZtWChN.js";import"./toggle-group-C88GzCgF.js";import"./input-BUHB_rvt.js";import"./suggestion-AfnnjI9w.js";import"./use-mcp-prompts-BBr4tWPB.js";import"./use-org-fs-Dtby7PZD.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-Cx-Lcnrh.js";import"./plan-ladder-CNDrxas8.js";import"./add-connection-dialog-BqKVQOpT.js";import"./extract-connection-data-CJI1R136.js";import"./metadata-D72DunRR.js";import"./connection-ClKw8_td.js";import"./connection-card-C0Rw3A1o.js";import"./connection-slug-BiqlqYek.js";import"./textarea-7QouZXlU.js";import"./use-connection-DgTiiad4.js";import"./schema-CwDUMrSI.js";import"./connection-form-helpers-CovVYy8L.js";import"./authenticate-and-persist-oauth-4YZOrw25.js";import"./mcp-oauth-CQDWFiaF.js";import"./mcp-oauth-C_rhXZPj.js";import"./collection-tabs-DbmQO_sc.js";import"./badge-DESkUuDj.js";import"./use-infinite-scroll-43Fpjl-2.js";import"./useSuspenseInfiniteQuery-DElaBmpm.js";import"./use-task-board-items-DFbx09Hb.js";import"./pair-BaHqE7sK.js";import"./collapsible-cugvhfSU.js";import"./task-key-Cw3Q9yew.js";import"./config-DrmqoBxA.js";import"./task-route-B_nVJy5Z.js";import"./project-index-DfmWJtff.js";import"./TrendUp01-BvBI14pN.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CQLZ6oJM.js";import"./types-_Mc3dgb4.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-B2AnAxLo.js";import"./agent-capabilities-D90My_uJ.js";import"./use-cms-publish-actions-DBQ6Q3f-.js";import"./use-content-sync-BsgwPn0U.js";import"./sandbox-git-api-C_L9X4wx.js";import"./utils-5mOrGYVp.js";import"./device-hint-DGeaIC_m.js";import"./alert-B2cQRalI.js";import"./section-array-field-CPNuVUAP.js";import"./editor-01f9wJNF.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-Cn4eIj_W.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-DkTCpzky.js";import"./Fingerprint04-CAyq7Ns9.js";import"./Sun-B0Lq9-BK.js";import"./Play-B7iY71_g.js";import"./Users01-Bk6C0ZLv.js";import"./empty-message-B9zXvnhW.js";import"./use-move-blocks-DAmL1Heq.js";import"./hosted-reconcile-D41Tlmkh.js";const rt={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},st=1;function nt(t){const e=rt[t.device],o=e.width+2*st,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 at(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function lt(t){const e=T.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=nt({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]=B.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]=B.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[D,W]=B.useState(K);if(D.frameSrc!==P||D.changePending!==h||D.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const $=h&&!D.changePending;(D.frameSrc!==P||D.expectLoad!==b||$)&&A(!0)}const q=B.useRef(null);let L;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(L=()=>{const $=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{$&&clearTimeout($)};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]=L):L=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],B.useEffect(L,M);let I;e[29]!==k||e[30]!==h||e[31]!==E?(I=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=I):I=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=()=>{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]!==I||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[I,N]}),e[48]=I,e[49]=N,e[50]=V):V=e[50],V}function ct(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const mt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},pt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function dt(t){const e=T.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]=B.useState("desktop"),b=B.useRef(null),[w,S]=Ie(),[v,j]=B.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=Je({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Qe(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=ct({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=Ye(o,i),[z,Y]=B.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(at(X,u),Y(ft))},e[12]=u,e[13]=P):P=e[13];const E=P;qe(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,D;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),D=n.jsx(Me,{size:16}),e[16]=K,e[17]=D):(K=e[16],D=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:D}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let L;e[21]!==s?(L=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=L):L=e[22];let M,I;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),I=n.jsx(ze,{size:16}),e[23]=M,e[24]=I):(M=e[23],I=e[24]);let C;e[25]!==q||e[26]!==L?(C=n.jsx(ue,{active:q,label:L,onClick:M,children:I}),e[25]=q,e[26]=L,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 $;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?($=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]=$):$=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]!==$||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[$,Z]}),e[54]=$,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(mt[y??"missing-params"]),description:s(pt[y??"missing-params"])}):v?n.jsx(lt,{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 ft(t){return t+1}function ue(t){const e=T.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 ut=1366;function ht(t){return t.width<0?{kind:"pending"}:t.width<ut?{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 vt(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 gt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function bt(){const t=T.c(13),[e,o]=ye(gt,xt),i=le(e),r=B.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 xt(t){return typeof t=="number"?le(t):U.default}const wt=B.lazy(()=>Se(()=>import("./post-editor-D61Lc2td.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])).then(t=>({default:t.PostEditor})));function Pt({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=Fe({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=He(w,"posts"),v=ht({width:s,view:l}),j=bt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(jt,{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(yt,{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(St,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(dt,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function yt(t){const e=T.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=vt(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=T.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 St(t){const e=T.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 jt(t){const e=T.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(B.Suspense,{fallback:d,children:n.jsx(wt,{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 Et(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function kt(t){const e=T.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:_t})},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(Ze,{children:v=>{const j=Et(v.decofile,m);return j?n.jsx(Pt,{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(et,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function _t(t){return tt({previous:t,destination:"agent"})}function Rt(){const t=T.c(2),e=ot();let o;return t[0]!==e?(o=n.jsx(it,{children:n.jsx(Te,{feature:"cms",children:n.jsx(kt,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function ts(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx($e,{}),children:n.jsx(Rt,{})}),t[0]=e):e=t[0],e}export{ts as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-1NMNs92L.js","assets/index-CTMcJAph.js","assets/index-DbknIezs.css","assets/chat-context-Bv66eHof.js","assets/use-panel-navigate-D-3r_Fkm.js","assets/thread-route-DR-mysJ4.js","assets/use-project-scope-uv2IbJz0.js","assets/repository-binding--vh_BYpc.js","assets/use-mcp-client-I3y8cfsJ.js","assets/auth-PzOm_zFv.js","assets/use-view-draft-kind-CJIOo5Xm.js","assets/use-blog-view-CNoSAPL8.js","assets/use-organization-settings-CwuyWnwZ.js","assets/schema-BhHglPtg.js","assets/task-board-PS4uTaEc.js","assets/thread-intent-1ccDEEyI.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-D23qxy7t.js","assets/session-runtime-i5m3WIi5.js","assets/use-entitlements-DNwniW7G.js","assets/use-ai-providers-DZEaT-ul.js","assets/use-current-view-D44ayMhH.js","assets/use-in-settings-Bm865pUH.js","assets/use-decopilot-events-_mLqRiEF.js","assets/AlertCircle-CzISmSv-.js","assets/agent-icon-BDoJ39oK.js","assets/UserCheck01-DZjyuuBK.js","assets/Tool01-C3uo6Lgt.js","assets/ArrowUp-COdTIRs6.js","assets/ArrowLeft-Cp5wBgN1.js","assets/ArrowRight-CeB6x55t.js","assets/BookOpen01-BHs6bUbD.js","assets/Globe04-BGV551sq.js","assets/CheckCircle-ChJcEZnJ.js","assets/TrendUp01-iFr5GCuv.js","assets/ChevronDown-fzLgfNMN.js","assets/ChevronSelectorVertical-BTk3FRkw.js","assets/ChevronUp-b-VOSMPT.js","assets/UserSquare-ByLgJRcg.js","assets/LinkBroken01-D4pDcB76.js","assets/CreditCard01-B0Yfe9hH.js","assets/File02-DVaBtYaE.js","assets/MessageCircle01-BpGqYTnP.js","assets/SwitchHorizontal01-CxL0NygI.js","assets/Eye-DArYaInn.js","assets/Fingerprint04-CALESuKW.js","assets/Image01-8jmgxAd8.js","assets/Key01-DGjA9S6x.js","assets/LayoutLeft-Vc1HAa0M.js","assets/Minus-Dw6Nli5H.js","assets/Monitor01-Br8acw8G.js","assets/Sun-GOAVarv9.js","assets/Play-C4UbfvzT.js","assets/Plus-RCDHml3m.js","assets/SearchMd-BvUkn3rx.js","assets/ShoppingBag01-CAJ64xat.js","assets/Trash01-hjBWefQQ.js","assets/Upload01-qGyzp9T6.js","assets/Users01-CqdtHmSR.js","assets/XClose-CsOm5OF2.js","assets/Zap-DJuxbhuP.js","assets/label-trmpdZLi.js","assets/multi-select-CgSYI-SO.js","assets/badge-CA_zRurx.js","assets/checkbox-CXlqSbPC.js","assets/command-CTDIy4l6.js","assets/index-C8hJzRYZ.js","assets/popover-C8zi00Ue.js","assets/tabs-2mcRw6CQ.js","assets/active-indicator-CCMhAsc_.js","assets/switch-md0gRiEr.js","assets/textarea-CpsIhOMc.js","assets/save-status-BtdtqD2M.js","assets/use-never-published-tdlolbih.js","assets/use-voice-input-CFTfX25b.js","assets/drawer-BEcXc_-E.js","assets/tooltip-BwiBQZRg.js","assets/index-CeH1uymC.js","assets/use-mobile-BmDu9lai.js","assets/index-CL5AbR0i.js","assets/select-DPgeUwK8.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-tb2AMckD.js","assets/use-sandbox-events-Dw0utopN.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-D5fKsCGm.js","assets/utils-Bb7MZu12.js","assets/sandbox-git-api-DOzEUsKW.js","assets/hosted-reconcile-CpaX3Kk9.js","assets/blocks-tab-states-B8JNI9rP.js","assets/empty-state-obejKp5A.js","assets/search-input-OHQ7aB3a.js","assets/use-debounced-value-DT9lKq9i.js","assets/use-file-configs-DNyK94-h.js","assets/asset-utils-D3oLKwAE.js","assets/useInfiniteQuery-BRexMxca.js","assets/infiniteQueryObserver-D9m6eB2O.js","assets/usage-stats-DTtlBjNo.js","assets/utils-CVEq3hMx.js","assets/markdown-Dc3CvpIQ.js","assets/use-copy-CE9nrbOr.js","assets/gateway-client-23IpJZq4.js","assets/form-BZRFxWry.js","assets/toggle-group-Ls4QOte6.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-_79-V04H.js","assets/task-key-CN2bdn8Q.js","assets/sortable.esm-BjAYLhGV.js","assets/delete-copy-Cv0ifUJG.js","assets/category-tree-CDQb6hKD.js","assets/empty-message-C0f5_LY5.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-Ds0-e3lZ.js","assets/collapsible-DzLPWd70.js","assets/use-task-board-items-hngRazfo.js","assets/config-CCcwWB8c.js","assets/task-route-CeP9N75K.js","assets/project-index-BuGJUH1H.js","assets/shell-layout-BuI483D3.js","assets/use-deployment-admin-DlPnuM4S.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-BcxmaTvi.js","assets/integration-icon-_XZmtsUQ.js","assets/project-icon-BWLuHtAC.js","assets/use-navigate-to-agent-DGvRNQ_A.js","assets/new-project-dialog-C9TjL-bf.js","assets/repository-picker-Brbv4xAW.js","assets/github-icon-CBNn-o18.js","assets/collection-search-CdjAgPSP.js","assets/new-project-store-DziLBvLE.js","assets/legacy-admin-welcome-dialog-CUKFHE53.js","assets/required-auth-layout-DS3Ymu6e.js","assets/use-org-sso-QOAhbUXz.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-D4M3J8xI.js","assets/types-CQPseOG9.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-BK-tSef6.js","assets/use-connection-BNMimkPL.js","assets/use-mcp-prompts-BvVRtZ43.js","assets/use-thread-outputs-Bk_M_0CQ.js","assets/file-type-icon-DVl3LYgB.js","assets/section-array-field-BYNGi1SJ.js","assets/use-move-blocks-D9FoxaY3.js","assets/index-DVnJxoIV.js","assets/suggestion-C-xAkFMh.js","assets/editor-classes-BxMZYBKM.js","assets/blog-preview-url-pZbpXnSV.js","assets/product-picker-dialog-CxMIxnVH.js","assets/index-lloVSdjU.js","assets/held-block-view-YbSpr4rH.js","assets/calendar-BROMdOEm.js","assets/named-rule-step-MGqpbfvr.js","assets/slider-Ls5eTZcT.js","assets/index-Cbm5nFnf.js","assets/tooltipContext-CAee1FwO.js","assets/CategoricalChart-BqZTua92.js","assets/index-DLxdCPEu.js","assets/combobox-Cfg_BsiZ.js","assets/scroll-area-86kp0Juo.js","assets/blog-schema-CilAbDlC.js","assets/use-delete-block-DQun19Xn.js","assets/use-fast-preview-draft-url-BDGYAn85.js","assets/use-autosave-DCpw1AWV.js"])))=>i.map(i=>d[i]);
2
+ import{c as T,r as B,m as re,j as n,b as se,bd as xe,b6 as we,B as ce,a9 as Pe,at as ye,b8 as Se,be as je,n as Ee,bc as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bf as Be,bg as De}from"./index-CTMcJAph.js";import{ChatLayout as Le}from"./index-CArf-8X7.js";import{b as Ie,S as $e}from"./site-draft-actions-DoX_UDfb.js";import{F as Te}from"./feature-gate-Bw3bXdA4.js";import{E as be}from"./empty-state-BkUMxsIo.js";import{F as ze,n as Ae}from"./agent-icon-BDoJ39oK.js";import{d as Ce}from"./UserSquare-ByLgJRcg.js";import{u as Oe}from"./use-fast-preview-draft-url-BDGYAn85.js";import{u as Fe,a as He,j as Ke}from"./category-tree-CDQb6hKD.js";import{i as Me}from"./Monitor01-Br8acw8G.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe}from"./frame-navigation-CQQpWfbX.js";import{g as Ye}from"./site-editor-toast-tb2AMckD.js";import{b as qe}from"./use-sandbox-events-Dw0utopN.js";import{b as Je,f as Qe}from"./blog-preview-url-pZbpXnSV.js";import{B as Ze,a as et}from"./blog-source-gate-CuhbPoPW.js";import{r as tt}from"./use-panel-navigate-D-3r_Fkm.js";import{c as ot}from"./thread-route-DR-mysJ4.js";import{a as it}from"./blog-view-gate-DkmdG0vt.js";import"./use-mobile-BmDu9lai.js";import"./tooltip-BwiBQZRg.js";import"./index-CeH1uymC.js";import"./MessageCircle01-BpGqYTnP.js";import"./XClose-CsOm5OF2.js";import"./thread-button-BBpIpfN4.js";import"./use-sidebar-collapsed-Du6f3z_j.js";import"./sheet-BK-tSef6.js";import"./use-chat-layout-state-B1ybe4ap.js";import"./toolbar-icon-button-w0w5tyY2.js";import"./use-in-settings-Bm865pUH.js";import"./resizable-DxAoPV5h.js";import"./route-page-header-Bpm0W1nW.js";import"./LayoutLeft-Vc1HAa0M.js";import"./use-project-scope-uv2IbJz0.js";import"./repository-binding--vh_BYpc.js";import"./use-mcp-client-I3y8cfsJ.js";import"./auth-PzOm_zFv.js";import"./use-current-view-D44ayMhH.js";import"./separator-DhjB_iu5.js";import"./chat-context-Bv66eHof.js";import"./use-view-draft-kind-CJIOo5Xm.js";import"./use-blog-view-CNoSAPL8.js";import"./use-organization-settings-CwuyWnwZ.js";import"./schema-BhHglPtg.js";import"./task-board-PS4uTaEc.js";import"./thread-intent-1ccDEEyI.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D23qxy7t.js";import"./session-runtime-i5m3WIi5.js";import"./use-entitlements-DNwniW7G.js";import"./use-ai-providers-DZEaT-ul.js";import"./use-decopilot-events-_mLqRiEF.js";import"./use-org-notice-BcxmaTvi.js";import"./popover-C8zi00Ue.js";import"./command-CTDIy4l6.js";import"./index-C8hJzRYZ.js";import"./SearchMd-BvUkn3rx.js";import"./tabs-2mcRw6CQ.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-fzLgfNMN.js";import"./UserCheck01-DZjyuuBK.js";import"./SwitchHorizontal01-CxL0NygI.js";import"./Tool01-C3uo6Lgt.js";import"./Plus-RCDHml3m.js";import"./Trash01-hjBWefQQ.js";import"./use-voice-input-CFTfX25b.js";import"./drawer-BEcXc_-E.js";import"./index-CL5AbR0i.js";import"./checkbox-CXlqSbPC.js";import"./Minus-Dw6Nli5H.js";import"./select-DPgeUwK8.js";import"./index-BdQq_4o_.js";import"./ChevronUp-b-VOSMPT.js";import"./ArrowLeft-Cp5wBgN1.js";import"./ChevronSelectorVertical-BTk3FRkw.js";import"./Key01-DGjA9S6x.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-CzISmSv-.js";import"./Eye-DArYaInn.js";import"./Image01-8jmgxAd8.js";import"./use-debounced-value-DT9lKq9i.js";import"./shell-layout-BuI483D3.js";import"./Globe04-BGV551sq.js";import"./use-deployment-admin-DlPnuM4S.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-ChJcEZnJ.js";import"./Zap-DJuxbhuP.js";import"./integration-icon-_XZmtsUQ.js";import"./LinkBroken01-D4pDcB76.js";import"./project-icon-BWLuHtAC.js";import"./use-navigate-to-agent-DGvRNQ_A.js";import"./new-project-dialog-C9TjL-bf.js";import"./label-trmpdZLi.js";import"./repository-picker-Brbv4xAW.js";import"./github-icon-CBNn-o18.js";import"./useInfiniteQuery-BRexMxca.js";import"./infiniteQueryObserver-D9m6eB2O.js";import"./collection-search-CdjAgPSP.js";import"./BookOpen01-BHs6bUbD.js";import"./ShoppingBag01-CAJ64xat.js";import"./new-project-store-DziLBvLE.js";import"./legacy-admin-welcome-dialog-CUKFHE53.js";import"./required-auth-layout-DS3Ymu6e.js";import"./use-org-sso-QOAhbUXz.js";import"./cms-store-drafts-DCNFP7LB.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-YeTBM8yt.js";import"./url-slug-_KiIaSc5.js";import"./use-blocks-v8-project-D5fKsCGm.js";import"./blocks-tab-states-B8JNI9rP.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-obejKp5A.js";import"./index-rnYUd4dS.js";import"./ArrowUp-COdTIRs6.js";import"./input-h0wz_TXZ.js";import"./usage-stats-DTtlBjNo.js";import"./utils-CVEq3hMx.js";import"./markdown-Dc3CvpIQ.js";import"./use-copy-CE9nrbOr.js";import"./File02-DVaBtYaE.js";import"./gateway-client-23IpJZq4.js";import"./form-BZRFxWry.js";import"./icon-button-SEPOUIsz.js";import"./file-type-icon-DVl3LYgB.js";import"./chat-draft-B-z19fpg.js";import"./ArrowRight-CeB6x55t.js";import"./Upload01-qGyzp9T6.js";import"./use-deco-credits-D66VTWCl.js";import"./toggle-group-Ls4QOte6.js";import"./input-eXowApKu.js";import"./suggestion-C-xAkFMh.js";import"./use-mcp-prompts-BvVRtZ43.js";import"./use-org-fs-DhWc9O8e.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DeRLsq8M.js";import"./plan-ladder-BhsGSh5u.js";import"./add-connection-dialog-C_sfKhNP.js";import"./extract-connection-data-CuocrlN0.js";import"./metadata-D72DunRR.js";import"./connection-B3DAaQoc.js";import"./connection-card-CM3dQtaR.js";import"./connection-slug-CnFKm4nL.js";import"./textarea-CpsIhOMc.js";import"./use-connection-BNMimkPL.js";import"./schema-Hu_PAkfm.js";import"./connection-form-helpers-CvBBFmRQ.js";import"./authenticate-and-persist-oauth-BDW-ZPLh.js";import"./mcp-oauth-B4J7uUwj.js";import"./mcp-oauth-v1wlsxnr.js";import"./collection-tabs-D03BVHFN.js";import"./badge-CA_zRurx.js";import"./use-infinite-scroll-COH_kc3E.js";import"./useSuspenseInfiniteQuery-DM12jCFI.js";import"./use-task-board-items-hngRazfo.js";import"./pair-Ds0-e3lZ.js";import"./collapsible-DzLPWd70.js";import"./task-key-CN2bdn8Q.js";import"./config-CCcwWB8c.js";import"./task-route-CeP9N75K.js";import"./project-index-BuGJUH1H.js";import"./TrendUp01-iFr5GCuv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D4M3J8xI.js";import"./types-CQPseOG9.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-Bk_M_0CQ.js";import"./agent-capabilities-Dl5qDebF.js";import"./use-cms-publish-actions-CZ7OOlql.js";import"./use-content-sync-ClbM0XA1.js";import"./sandbox-git-api-DOzEUsKW.js";import"./utils-Bb7MZu12.js";import"./device-hint-nPYgqbIG.js";import"./alert-CeUAN2Gm.js";import"./section-array-field-BYNGi1SJ.js";import"./editor-BFAj_1BW.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-Dp0s3TpP.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-B0Yfe9hH.js";import"./Fingerprint04-CALESuKW.js";import"./Sun-GOAVarv9.js";import"./Play-C4UbfvzT.js";import"./Users01-CqdtHmSR.js";import"./empty-message-C0f5_LY5.js";import"./use-move-blocks-D9FoxaY3.js";import"./hosted-reconcile-CpaX3Kk9.js";const rt={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},st=1;function nt(t){const e=rt[t.device],o=e.width+2*st,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 at(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function lt(t){const e=T.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=nt({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]=B.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]=B.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[D,W]=B.useState(K);if(D.frameSrc!==P||D.changePending!==h||D.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const $=h&&!D.changePending;(D.frameSrc!==P||D.expectLoad!==b||$)&&A(!0)}const q=B.useRef(null);let L;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(L=()=>{const $=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{$&&clearTimeout($)};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]=L):L=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],B.useEffect(L,M);let I;e[29]!==k||e[30]!==h||e[31]!==E?(I=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=I):I=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=()=>{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]!==I||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[I,N]}),e[48]=I,e[49]=N,e[50]=V):V=e[50],V}function ct(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const mt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},pt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function dt(t){const e=T.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]=B.useState("desktop"),b=B.useRef(null),[w,S]=Ie(),[v,j]=B.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=Je({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Qe(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=ct({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=Ye(o,i),[z,Y]=B.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(at(X,u),Y(ft))},e[12]=u,e[13]=P):P=e[13];const E=P;qe(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,D;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),D=n.jsx(Me,{size:16}),e[16]=K,e[17]=D):(K=e[16],D=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:D}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let L;e[21]!==s?(L=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=L):L=e[22];let M,I;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),I=n.jsx(ze,{size:16}),e[23]=M,e[24]=I):(M=e[23],I=e[24]);let C;e[25]!==q||e[26]!==L?(C=n.jsx(ue,{active:q,label:L,onClick:M,children:I}),e[25]=q,e[26]=L,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 $;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?($=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]=$):$=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]!==$||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[$,Z]}),e[54]=$,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(mt[y??"missing-params"]),description:s(pt[y??"missing-params"])}):v?n.jsx(lt,{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 ft(t){return t+1}function ue(t){const e=T.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 ut=1366;function ht(t){return t.width<0?{kind:"pending"}:t.width<ut?{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 vt(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 gt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function bt(){const t=T.c(13),[e,o]=ye(gt,xt),i=le(e),r=B.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 xt(t){return typeof t=="number"?le(t):U.default}const wt=B.lazy(()=>Se(()=>import("./post-editor-1NMNs92L.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])).then(t=>({default:t.PostEditor})));function Pt({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=Fe({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=He(w,"posts"),v=ht({width:s,view:l}),j=bt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(jt,{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(yt,{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(St,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(dt,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function yt(t){const e=T.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=vt(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=T.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 St(t){const e=T.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 jt(t){const e=T.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(B.Suspense,{fallback:d,children:n.jsx(wt,{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 Et(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function kt(t){const e=T.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:_t})},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(Ze,{children:v=>{const j=Et(v.decofile,m);return j?n.jsx(Pt,{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(et,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function _t(t){return tt({previous:t,destination:"agent"})}function Rt(){const t=T.c(2),e=ot();let o;return t[0]!==e?(o=n.jsx(it,{children:n.jsx(Te,{feature:"cms",children:n.jsx(kt,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function ts(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx($e,{}),children:n.jsx(Rt,{})}),t[0]=e):e=t[0],e}export{ts as default};