decocms 4.584.16 → 4.585.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/dist/client/assets/{AlertCircle-ee1sjQGr.js → AlertCircle-rt5NTcOt.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CNSKfZ8O.js → AreaChart-CX9a7r2e.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BhV4BHrM.js → ArrowLeft-BtflI84P.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-3kziivNC.js → ArrowRight-DckDNEPN.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DgFMMMBQ.js → ArrowUp-BX9rle-Z.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-C9X5S-cQ.js → BookOpen01-Cdt9znE-.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-DuA35Ksh.js → CartesianChart-BjWXwRV3.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-cy5wvzih.js → CategoricalChart-DAGT6hYP.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-CGqAjggj.js → CheckCircle-DQ8gl2jA.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CGJhfuSb.js → ChevronDown-88QbtNjw.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-5-TBPpUz.js → ChevronSelectorVertical-BfhN49CO.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BO9DemUb.js → ChevronUp-BwBBvXr-.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-BLkqiDJW.js → CreditCard01-CHpJYShR.js} +1 -1
  14. package/dist/client/assets/{Eye-CO_nPZKQ.js → Eye-C8bzWtOv.js} +1 -1
  15. package/dist/client/assets/{File02-DclovfNb.js → File02-CpMe0sR1.js} +1 -1
  16. package/dist/client/assets/{Globe04-Cx-w92u5.js → Globe04-BGaPJwRM.js} +1 -1
  17. package/dist/client/assets/{Image01-CeQMNu9o.js → Image01-CyjafdfK.js} +1 -1
  18. package/dist/client/assets/{Key01-DMjKHzPy.js → Key01-NBdT0O9W.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-BPF5UUkD.js → LayoutLeft-BI23EoSs.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-BN3icH6a.js → LinkBroken01-DWWxoD2s.js} +1 -1
  21. package/dist/client/assets/{MessageCircle01-jm5EAYEs.js → MessageCircle01-pdZ3c0Ei.js} +1 -1
  22. package/dist/client/assets/{Minus-DoUm1n95.js → Minus-ToHFKPwl.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CM0DIJ9E.js → Monitor01-DQ2oaJ_f.js} +1 -1
  24. package/dist/client/assets/{Play-I05hjYId.js → Play-Dgyu5PiH.js} +1 -1
  25. package/dist/client/assets/{Plus-B_KK3A4P.js → Plus-NIlBePVH.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-DxKvZdt8.js → ReferenceLine-SNMItkZP.js} +1 -1
  27. package/dist/client/assets/{SearchMd-BlPJmXQo.js → SearchMd-BZFf7uAm.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-XH61oInk.js → ShoppingBag01-CA3tpOzv.js} +1 -1
  29. package/dist/client/assets/{Sun-CYr05wwt.js → Sun-CGayzxv4.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-CGFn_psg.js → SwitchHorizontal01-BCndh-XX.js} +1 -1
  31. package/dist/client/assets/{Tool01-Cnkd4pP7.js → Tool01-CRE8Zr1E.js} +1 -1
  32. package/dist/client/assets/{Tooltip-CwwzGu8p.js → Tooltip-DB98MWaY.js} +1 -1
  33. package/dist/client/assets/{Trash01-CnPGIwZe.js → Trash01-C1sTtIQd.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-BlwMDcra.js → TrendUp01-CkF2n8Hn.js} +1 -1
  35. package/dist/client/assets/{Upload01-Bfre-QV-.js → Upload01-DF54M6Ph.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-CcIH7s2N.js → UserCheck01-D14kK5BQ.js} +1 -1
  37. package/dist/client/assets/{UserSquare-CUb4s2-c.js → UserSquare-DAFK733H.js} +1 -1
  38. package/dist/client/assets/{Users01-BaPkNO1v.js → Users01-8BTVWXNl.js} +1 -1
  39. package/dist/client/assets/{XClose-CtxnajtG.js → XClose-igHVZF4W.js} +1 -1
  40. package/dist/client/assets/{Zap-D4dSEKpa.js → Zap-CZUa6DWb.js} +1 -1
  41. package/dist/client/assets/{access-gate-BcSivdgh.js → access-gate-DT-H-Dma.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-BqEJyMSP.js → add-connection-dialog-CmjWx4NO.js} +1 -1
  43. package/dist/client/assets/agent-app-mFu4qfV_.js +1 -0
  44. package/dist/client/assets/agent-assets-CJbN5bjE.js +1 -0
  45. package/dist/client/assets/{agent-automation-CJwwEuNT.js → agent-automation-DQLWalf1.js} +1 -1
  46. package/dist/client/assets/{agent-automations-CQfQpku1.js → agent-automations-DyupYjyf.js} +1 -1
  47. package/dist/client/assets/{agent-blog-BdGPQ8_2.js → agent-blog-oFjylmup.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-B9pgUtDH.js → agent-blog-post-DN9dxO82.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-JLP2GBTa.js → agent-calendar-CbXz7NvX.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-CYFGwKOQ.js → agent-capabilities-B2Kb_ijp.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-DDUrjmJD.js → agent-connect-sources-rfNCNIVh.js} +1 -1
  52. package/dist/client/assets/agent-deck-Bw2cZE6R.js +1 -0
  53. package/dist/client/assets/{agent-e2e-R2Brb1AY.js → agent-e2e-DintiVYM.js} +1 -1
  54. package/dist/client/assets/agent-experiments-DxbZHSvE.js +1 -0
  55. package/dist/client/assets/agent-file-B4IdGvOa.js +1 -0
  56. package/dist/client/assets/{agent-hosting-ZtddB8HN.js → agent-hosting-BW8Utp_Y.js} +1 -1
  57. package/dist/client/assets/{agent-icon-DFyNTmmD.js → agent-icon-BJ2Wx2fE.js} +1 -1
  58. package/dist/client/assets/agent-library-1XqTmW3J.js +1 -0
  59. package/dist/client/assets/agent-library-file-BQTvQaVH.js +1 -0
  60. package/dist/client/assets/agent-overview-nv0B1Vtn.js +1 -0
  61. package/dist/client/assets/{agent-releases-CSV4AdrC.js → agent-releases-D-COO9bm.js} +1 -1
  62. package/dist/client/assets/agent-settings-DmrVI6B5.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-Du4ljJT4.js → agent-site-editor-CRztMY23.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-CNRH9GQU.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-BB_PWv5l.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-CN6P394O.js +1 -0
  67. package/dist/client/assets/agent-view-C_kbJ6jO.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-BkW43e8G.js → agent-view-guard-X-bc2zlR.js} +1 -1
  69. package/dist/client/assets/{ai-providers-B2F4VTfq.js → ai-providers-D8Mc6Vyc.js} +1 -1
  70. package/dist/client/assets/{alert-DaQbIayT.js → alert-_oqAOD6X.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-CDIiyHbJ.js → analytics-sections-DQPy3uP4.js} +1 -1
  72. package/dist/client/assets/{api-keys-DV2qjs1c.js → api-keys-D9ZKdCDY.js} +1 -1
  73. package/dist/client/assets/api-keys-D_uSLlKH.js +1 -0
  74. package/dist/client/assets/{app-editor-CsjRVENv.js → app-editor-CC7vXN9x.js} +1 -1
  75. package/dist/client/assets/asset-utils-DDL7Zhst.js +1 -0
  76. package/dist/client/assets/{auth-sBxX13D1.js → auth-DdGqjHXO.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-C4NbHq82.js → auth-catchall-CmxNn2GB.js} +1 -1
  78. package/dist/client/assets/{auth-entry-CeA6avaA.js → auth-entry-C_97myXT.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-DFVyplfm.js → auth-split-layout-BiPDNEOk.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-Cd-20mVj.js → authenticate-and-persist-oauth-ZxRhWemt.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-DIz_7uV6.js → automation-list-row-mqAbrUKE.js} +1 -1
  82. package/dist/client/assets/{automation-runs-U9DXMN_I.js → automation-runs-D2e4MXIM.js} +1 -1
  83. package/dist/client/assets/{automations-DLrTFxh8.js → automations-B4kujL15.js} +1 -1
  84. package/dist/client/assets/{badge-Ba_DCLD5.js → badge-C-0ziPev.js} +1 -1
  85. package/dist/client/assets/{block-document-Aq3OAP33.js → block-document-DWg9Jn1G.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-1Hmusp23.js → blocks-preview-workspace-context-DhEK2mBx.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-0NdQhV1f.js → blocks-tab-states-pUzFXPTK.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-Dih-dMCw.js → blog-preview-url-BOmxSryn.js} +1 -1
  89. package/dist/client/assets/{blog-schema-CYnX2CMq.js → blog-schema-CE1tBnsD.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-CWWyUoRi.js → blog-source-gate-V0t8xMYW.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-oE1gHZMz.js → blog-view-gate-BO7XupIe.js} +1 -1
  92. package/dist/client/assets/{buckets-Bh4QpekX.js → buckets-D_a3q7Rp.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-CPww4N3Z.js → build-improve-prompt-doc-BGzcibxZ.js} +1 -1
  94. package/dist/client/assets/{calendar-i6vH9oRA.js → calendar-DXtndUQf.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-LShIU80A.js → capability-load-error-BYOGvrqt.js} +1 -1
  96. package/dist/client/assets/{category-editor-BLagxgQw.js → category-editor-j7sSG9YT.js} +1 -1
  97. package/dist/client/assets/{category-tree-CO_9m-hw.js → category-tree-CqfxuXDr.js} +1 -1
  98. package/dist/client/assets/{chart-C99PxQ8i.js → chart-CzbHqflS.js} +1 -1
  99. package/dist/client/assets/{chat-context-ZeSpVj2j.js → chat-context-CzmbAHe8.js} +1 -1
  100. package/dist/client/assets/{chat-draft-DixXhuAl.js → chat-draft-CMZymjc1.js} +1 -1
  101. package/dist/client/assets/{checkbox-yHZpOTt9.js → checkbox-CnO5GKzb.js} +1 -1
  102. package/dist/client/assets/{choose-editor-Ow8vFSp1.js → choose-editor-DSLflE6y.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-DRGrIbSu.js → cli-auth-success-DW_MXZoK.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-D6qGypvL.js → cms-settings-editor-VV8k-MFF.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-CLXsr0b9.js → cms-store-drafts-D_kzaiOk.js} +1 -1
  106. package/dist/client/assets/{collapsible-Dc4ca33I.js → collapsible-Czfx-LAp.js} +1 -1
  107. package/dist/client/assets/{collection-detail-D2do5Te9.js → collection-detail-2JRT-w_Q.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-R9esRwsq.js → collection-display-button-DkpROg50.js} +1 -1
  109. package/dist/client/assets/{collection-search-CWJ6AHHK.js → collection-search-fi8Jpdhv.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-D1qYH_Vr.js → collection-table-wrapper-B8CD5YXs.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-CCJoVQ-t.js → collection-tabs-C_tkgeK_.js} +1 -1
  112. package/dist/client/assets/{combobox-Cc5RijV8.js → combobox-Q8ZHlgvG.js} +1 -1
  113. package/dist/client/assets/{command-Dg1M4JCf.js → command-Bq8LzPoY.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-DWH_OPav.js → companion-mcps-section-ATwmtkbj.js} +1 -1
  115. package/dist/client/assets/{config-CMcG5aXE.js → config-CpgY06XK.js} +1 -1
  116. package/dist/client/assets/{connect-DTJ8Lb0Z.js → connect-BEtqH7dw.js} +1 -1
  117. package/dist/client/assets/{connect-key-DwcLwXDe.js → connect-key-BIkvDwd3.js} +1 -1
  118. package/dist/client/assets/{connect-layout-B9Ri51_N.js → connect-layout-B_lgJ90N.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-DFoGY0c6.js → connect-source-dialog-GkRu49Gr.js} +1 -1
  120. package/dist/client/assets/{connection-D2P4B1Vm.js → connection-BGRWc-KI.js} +1 -1
  121. package/dist/client/assets/{connection-card-CTimlD0g.js → connection-card-BuyifKDO.js} +1 -1
  122. package/dist/client/assets/{connection-detail-CLq96SZi.js → connection-detail-DWfh1vBP.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-C0MTL33k.js → connection-form-helpers-DVl_sDCj.js} +1 -1
  124. package/dist/client/assets/{connection-slug-CGQkx9BD.js → connection-slug-BU-gcFLx.js} +1 -1
  125. package/dist/client/assets/{connections-Blix3sTM.js → connections-CYCgeS9i.js} +1 -1
  126. package/dist/client/assets/{content-tab-DksWOtkz.js → content-tab-anxUFFKF.js} +3 -3
  127. package/dist/client/assets/{context-UEmVvZBl.js → context-DMfn82WA.js} +1 -1
  128. package/dist/client/assets/{context-menu-77Z4mScR.js → context-menu-lKQYrmaS.js} +1 -1
  129. package/dist/client/assets/{context-shell-n2LQX250.js → context-shell-DxJ2zBIa.js} +3 -3
  130. package/dist/client/assets/{create-organization-dialog-5XUNCI8z.js → create-organization-dialog-CovUQJjl.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-B11Ng0jZ.js → daily-pulse-eYYXeJUB.js} +1 -1
  132. package/dist/client/assets/{delete-copy-B5PbKStF.js → delete-copy-bwY-nICG.js} +1 -1
  133. package/dist/client/assets/{device-hint-BlkEtJOD.js → device-hint-Eqj86kPk.js} +1 -1
  134. package/dist/client/assets/{discover-76bH9Npb.js → discover-fbAn9icf.js} +1 -1
  135. package/dist/client/assets/{domain-settings-DMjKDVZw.js → domain-settings-BFmlLB0B.js} +1 -1
  136. package/dist/client/assets/{drawer-DVCuatiz.js → drawer-cS0px3h4.js} +1 -1
  137. package/dist/client/assets/{editor-DKlObXWN.js → editor-DOCwgCVw.js} +1 -1
  138. package/dist/client/assets/{editor-classes-DlTZqfff.js → editor-classes-ByZrgCwF.js} +1 -1
  139. package/dist/client/assets/{empty-message-BydjGtkz.js → empty-message-BnLHUiLW.js} +1 -1
  140. package/dist/client/assets/{empty-state-B87jIRUF.js → empty-state-BNznQ4un.js} +1 -1
  141. package/dist/client/assets/{empty-state-DrDY2Uvy.js → empty-state-haYeO0--.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-B92_kGiq.js → experiments-tab-choice-gTPA_Mh1.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-BBZ3NAYt.js → extract-connection-data-DR98xre0.js} +1 -1
  144. package/dist/client/assets/{feature-gate-BldXfjSV.js → feature-gate-v3Hw92O6.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-CYTrb2Hp.js → feature-paywall-_CmjErfx.js} +1 -1
  146. package/dist/client/assets/{file-explorer-BMmUp2yA.js → file-explorer-Dg2yjMkc.js} +1 -1
  147. package/dist/client/assets/{file-preview-DGOqiP3N.js → file-preview-DQmRHFMz.js} +1 -1
  148. package/dist/client/assets/{file-share-button-BAKT8NFv.js → file-share-button-5oty69zd.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-sj_ejObJ.js → file-type-icon-5ukaLDeF.js} +1 -1
  150. package/dist/client/assets/{folder-icon-B9awY_eB.js → folder-icon-CKc3CbqF.js} +1 -1
  151. package/dist/client/assets/{form-FAPXIq7O.js → form-vgZJ8ykR.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-CoYMhBUE.js → frame-navigation-uIOzC0fQ.js} +1 -1
  153. package/dist/client/assets/{gateway-client-BVWghiMF.js → gateway-client-CEz2o7p6.js} +1 -1
  154. package/dist/client/assets/{general-DMcbEh6R.js → general-CcVyD7wz.js} +1 -1
  155. package/dist/client/assets/{github-icon-KEAtk4MX.js → github-icon-CNkm_QOq.js} +1 -1
  156. package/dist/client/assets/{held-block-view-DDQtd2bN.js → held-block-view-DLTLVbz1.js} +1 -1
  157. package/dist/client/assets/{home-BemwUTPY.js → home-DEyrMuE0.js} +1 -1
  158. package/dist/client/assets/{home-overview-DJ3gY2Dz.js → home-overview-BJHC8k_H.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-DVbA9MCD.js → hosted-reconcile-B7PmB0kg.js} +1 -1
  160. package/dist/client/assets/{icon-button-DmJB3HO5.js → icon-button-DAAwLc_Y.js} +1 -1
  161. package/dist/client/assets/index--QRH4qmO.css +1 -0
  162. package/dist/client/assets/{index-779PVYGV.js → index-AJsDmYGI.js} +1 -1
  163. package/dist/client/assets/{index-3k_nlNc7.js → index-BDs-2B47.js} +1 -1
  164. package/dist/client/assets/{index-BRgWMc-5.js → index-BMPeWdJw.js} +6 -6
  165. package/dist/client/assets/{index-CER3O-Er.js → index-BMmbX0gD.js} +1 -1
  166. package/dist/client/assets/{index-CEBVkeBV.js → index-BXSfOUsr.js} +1 -1
  167. package/dist/client/assets/{index-YHYnj2N1.js → index-Behj8iY8.js} +1 -1
  168. package/dist/client/assets/{index-CsHIpbTc.js → index-BuFUNk86.js} +1 -1
  169. package/dist/client/assets/{index-EBRxzWbP.js → index-CCPTG3M6.js} +1 -1
  170. package/dist/client/assets/{index-CSZLbM2Z.js → index-CKEvWalC.js} +1 -1
  171. package/dist/client/assets/{index-BiVCuU3V.js → index-CSLJLC25.js} +1 -1
  172. package/dist/client/assets/{index-g6kNIQoA.js → index-Cl6eQZzh.js} +1 -1
  173. package/dist/client/assets/{index-CH8HRuHa.js → index-Cm1vOK0e.js} +1 -1
  174. package/dist/client/assets/{index-DBsxQlkE.js → index-DASViI_L.js} +1 -1
  175. package/dist/client/assets/{index-0S6WDYoC.js → index-DGJ99-Gb.js} +1 -1
  176. package/dist/client/assets/{index-Bjhw4G6x.js → index-G68rd1Q1.js} +1 -1
  177. package/dist/client/assets/{index-DAQFQP6X.js → index-iNQuijBz.js} +1 -1
  178. package/dist/client/assets/{index-redirect-DLAKhZQB.js → index-redirect-CO9DsboT.js} +1 -1
  179. package/dist/client/assets/{index-CV9lAciS.js → index-uc8MAfE7.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-DXDiLGwX.js → infiniteQueryObserver-BmYMm5wr.js} +1 -1
  181. package/dist/client/assets/{infra-billing-Ch38HLtg.js → infra-billing-BWqkgHts.js} +1 -1
  182. package/dist/client/assets/{input-Do8NvE59.js → input-BmsdW_BQ.js} +3 -3
  183. package/dist/client/assets/{input-CCPCHy_J.js → input-Bp705GAE.js} +1 -1
  184. package/dist/client/assets/{integration-icon-Cu3N1muw.js → integration-icon-xMpRZNbX.js} +1 -1
  185. package/dist/client/assets/{item-actions-C0r-FbzQ.js → item-actions-Bf8HZ-5j.js} +1 -1
  186. package/dist/client/assets/{jira-icon-D0RV1z5x.js → jira-icon-BMvTcIMX.js} +1 -1
  187. package/dist/client/assets/{label-DJG2lJG2.js → label-CRK3U7ZP.js} +1 -1
  188. package/dist/client/assets/{layout-ChdcSvGo.js → layout-CHGNZWxg.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-BY_2I8tZ.js → legacy-admin-welcome-dialog-DpejN_Uy.js} +1 -1
  190. package/dist/client/assets/legacy-agents-deep-D1euSyKS.js +1 -0
  191. package/dist/client/assets/{legacy-main-redirect-D850qNA8.js → legacy-main-redirect-B3en36R6.js} +1 -1
  192. package/dist/client/assets/{library-tab-D8k_wDzC.js → library-tab-DC3m8XDz.js} +1 -1
  193. package/dist/client/assets/library-z4pMyMvK.js +1 -0
  194. package/dist/client/assets/{login-C5GNgjpJ.js → login-SeftNnF0.js} +1 -1
  195. package/dist/client/assets/{markdown-DPpPArEp.js → markdown-BWT_4WJH.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-D-1Hpjx-.js → mcp-app-renderer-YjPzFqL6.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-DAw9xmxO.js → mcp-oauth-DIu8HkzC.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-DMi3oCsH.js → mcp-oauth-DUQJVV6B.js} +1 -1
  199. package/dist/client/assets/{members-laM8OLrZ.js → members-CJTZpTtw.js} +1 -1
  200. package/dist/client/assets/{memory-DAAWauU_.js → memory-CLaxe2x0.js} +1 -1
  201. package/dist/client/assets/{mock-board-DVLeWzDj.js → mock-board-BaGiiwoI.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-BHpOPihN.js → monaco-editor-BxMnwfXM.js} +1 -1
  203. package/dist/client/assets/{monitoring-D3l_Jm2m.js → monitoring-GRSBuzQc.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-Ri6ispwa.js → monitoring-stats-row-BBOPc2qP.js} +1 -1
  205. package/dist/client/assets/{multi-select-8e4MeokI.js → multi-select-DVZ3FnG7.js} +1 -1
  206. package/dist/client/assets/{mustache-DnvmVEAI.js → mustache-E-ICl6wm.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-WtjJX5Mv.js → named-rule-step-ip9CKl8c.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-DZ8Gl6w8.js → named-rule-view-BHX0uLb-.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-DEBFbTK4.js → new-project-dialog-IDVZ0s2M.js} +1 -1
  210. package/dist/client/assets/{new-project-store-CgLzwcjn.js → new-project-store-DBh8m9Ki.js} +1 -1
  211. package/dist/client/assets/{oauth-callback--6BD_yzu.js → oauth-callback-DjYIh0u9.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-CcAwHHuH.js → oauth-callback-ai-provider-C3RLK51c.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-DU2TXlly.js → oauth-consent-CECFMIBt.js} +1 -1
  214. package/dist/client/assets/{onboarding-CA0lTQst.js → onboarding-DRz0hsnB.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-kPp7_oUZ.js → openai-conversation-Brbpa4hN.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-C9pyPAzF.js → optimistic-project-sidebar-views-Bc7ykqLS.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-xeVDnHLL.js → order-monitor-day-Bf9NXaQ2.js} +1 -1
  218. package/dist/client/assets/{organization-choice-CKU82eUy.js → organization-choice-a8tN-5b7.js} +1 -1
  219. package/dist/client/assets/{orgs-a8ldZbiZ.js → orgs-BH47tVjw.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-DhFCn8gz.js → own-accounts-section-_AetYnrA.js} +1 -1
  221. package/dist/client/assets/{pair-C-KXBar9.js → pair-Bonyggei.js} +1 -1
  222. package/dist/client/assets/{parse-sections-DPGRvqbM.js → parse-sections-B5CRYtt9.js} +2 -2
  223. package/dist/client/assets/{plan-D6JDzYbv.js → plan-Cb1ij9Nx.js} +1 -1
  224. package/dist/client/assets/{plan-ladder-DuXPk4c4.js → plan-ladder-B-wAiO1o.js} +1 -1
  225. package/dist/client/assets/{plan-usage-card-BdC1KTye.js → plan-usage-card-BhaN2UzC.js} +1 -1
  226. package/dist/client/assets/{popover-DGvrj6fy.js → popover-zwWAAqUd.js} +1 -1
  227. package/dist/client/assets/{post-calendar-DKGqFmih.js → post-calendar-B7jwyYDv.js} +1 -1
  228. package/dist/client/assets/{post-editor-7oUWGzCY.js → post-editor-DaufIzXa.js} +1 -1
  229. package/dist/client/assets/{preview-content-abo2ryKK.js → preview-content-AWMAtXmK.js} +1 -1
  230. package/dist/client/assets/{preview-dialog-CQi5mIZh.js → preview-dialog-BazGoe9K.js} +1 -1
  231. package/dist/client/assets/{preview-panel-CjmJmEqS.js → preview-panel-BUZpP8s8.js} +1 -1
  232. package/dist/client/assets/{preview-tab-DA1SyRp5.js → preview-tab-BiDrtTyp.js} +3 -3
  233. package/dist/client/assets/{product-picker-dialog-BXRcAQat.js → product-picker-dialog-Wj5snGI8.js} +1 -1
  234. package/dist/client/assets/{profile-DUghMPNx.js → profile-D-82qdYz.js} +1 -1
  235. package/dist/client/assets/project-app-view-BZ0asFCv.js +1 -0
  236. package/dist/client/assets/{project-apps-DiSx-TBF.js → project-apps-Ci9IlHkX.js} +1 -1
  237. package/dist/client/assets/{project-icon-D6jtLreJ.js → project-icon-DqFpEPg-.js} +1 -1
  238. package/dist/client/assets/{project-index-pgEW44Q9.js → project-index-Dn3n52T-.js} +1 -1
  239. package/dist/client/assets/project-reports-CHFD_5_U.js +1 -0
  240. package/dist/client/assets/project-tasks-Dcp7unw7.js +1 -0
  241. package/dist/client/assets/{projects-CoL2Czss.js → projects-C-pel4ez.js} +1 -1
  242. package/dist/client/assets/{projects-empty-state-dMAfSAvA.js → projects-empty-state-Bsnv3dFv.js} +1 -1
  243. package/dist/client/assets/{prompts-C1nJJ4vm.js → prompts-CWt1t3VZ.js} +1 -1
  244. package/dist/client/assets/record-editor-Ch7j2D2R.js +1 -0
  245. package/dist/client/assets/{redirect-editor-v_Pws7YC.js → redirect-editor-B6HxpNko.js} +1 -1
  246. package/dist/client/assets/{reports-DeRFKvgR.js → reports-B66FRaYV.js} +1 -1
  247. package/dist/client/assets/reports-XbkN5y4U.js +1 -0
  248. package/dist/client/assets/{reports-onboarding-ByH6wjdu.js → reports-onboarding-C_u0txdS.js} +1 -1
  249. package/dist/client/assets/{reports-tab-DNq4qxR5.js → reports-tab-C7wVFguJ.js} +2 -2
  250. package/dist/client/assets/repositories-D6nxNt_H.js +1 -0
  251. package/dist/client/assets/{repositories-CshiRVJO.js → repositories-DvCEb4S4.js} +1 -1
  252. package/dist/client/assets/{repository-binding-Drae9jEJ.js → repository-binding-BCK2I6Mo.js} +1 -1
  253. package/dist/client/assets/{repository-picker-DcoNDHNX.js → repository-picker-DWJeQ4Uz.js} +1 -1
  254. package/dist/client/assets/{require-capability-58lj_sLx.js → require-capability-CeoHCJST.js} +1 -1
  255. package/dist/client/assets/{required-auth-layout-coJLhqjq.js → required-auth-layout-Bqqrer2s.js} +1 -1
  256. package/dist/client/assets/{reset-password-DmNJhZP_.js → reset-password-DRVc-MEN.js} +1 -1
  257. package/dist/client/assets/{resizable-a5ed0aFn.js → resizable-D7hc5wCS.js} +1 -1
  258. package/dist/client/assets/{resolve-tab-icon-aSYnYRbW.js → resolve-tab-icon-B4dWqPe0.js} +1 -1
  259. package/dist/client/assets/{review-settings-M_0Lgvos.js → review-settings-B6B7lZ4t.js} +1 -1
  260. package/dist/client/assets/{role-color-B1bQbhLW.js → role-color-kB6wk2oV.js} +1 -1
  261. package/dist/client/assets/{roles-Cfs4KbFC.js → roles-zAYKO93B.js} +1 -1
  262. package/dist/client/assets/{route-ln57uUdJ.js → route-B1_dDOSw.js} +1 -1
  263. package/dist/client/assets/route-DdMqAKeK.js +1 -0
  264. package/dist/client/assets/route-Kd6aOvVB.js +1 -0
  265. package/dist/client/assets/{route-page-header-Dm04mhuj.js → route-page-header-DOKA0lPe.js} +1 -1
  266. package/dist/client/assets/{sandbox-git-api-CPqBqV0G.js → sandbox-git-api-MxAem5iH.js} +1 -1
  267. package/dist/client/assets/{sandbox-lifecycle-context-PaxLnfD4.js → sandbox-lifecycle-context-DoYhWfFO.js} +1 -1
  268. package/dist/client/assets/{save-status-BXFvRkAL.js → save-status-Bwv32UwA.js} +1 -1
  269. package/dist/client/assets/{schema-DgI3qSqy.js → schema-CFHsTaYR.js} +1 -1
  270. package/dist/client/assets/{schema-BSbCYY9y.js → schema-Cg4pyiCI.js} +1 -1
  271. package/dist/client/assets/{scroll-area-B2d6jFzS.js → scroll-area-DAamBeOm.js} +1 -1
  272. package/dist/client/assets/{search-input-XDrQYhil.js → search-input-_TDPMfaj.js} +1 -1
  273. package/dist/client/assets/{search-toggle-CBe-B-W_.js → search-toggle-BNJazxMF.js} +1 -1
  274. package/dist/client/assets/{secret-picker-6lDKLE0I.js → secret-picker-45PWWThH.js} +1 -1
  275. package/dist/client/assets/{secrets-mRfQ2zYn.js → secrets-BEHcZkxk.js} +1 -1
  276. package/dist/client/assets/{section-array-field-DRYut2dk.js → section-array-field-DR10vlg7.js} +1 -1
  277. package/dist/client/assets/{sections-2LOxZNGC.js → sections-QNIIZ4TO.js} +1 -1
  278. package/dist/client/assets/{sections-editor-DSw0gf5K.js → sections-editor-OhHN-8Oi.js} +1 -1
  279. package/dist/client/assets/{select-B282Slsg.js → select-Cl-2whSq.js} +1 -1
  280. package/dist/client/assets/{select-model-YSEeD0Az.js → select-model-D19LJE98.js} +1 -1
  281. package/dist/client/assets/{seo-editor-SlMH3Ndc.js → seo-editor-C-sP3Z1-.js} +1 -1
  282. package/dist/client/assets/{separator-C2ELigwU.js → separator-DsDHvFvA.js} +1 -1
  283. package/dist/client/assets/{session-runtime-BH3ADRqu.js → session-runtime-B3tpmEdV.js} +1 -1
  284. package/dist/client/assets/settings-tab-D2eW6VhQ.js +1 -0
  285. package/dist/client/assets/sheet-3DsSjpPg.js +1 -0
  286. package/dist/client/assets/{shell-layout-2a3HocEU.js → shell-layout-Cy4x2w2C.js} +1 -1
  287. package/dist/client/assets/{site-draft-actions-BNgtZ_kM.js → site-draft-actions-ak2wuSnr.js} +1 -1
  288. package/dist/client/assets/{site-draft-view-59J3TeYY.js → site-draft-view-BQq0EpKh.js} +1 -1
  289. package/dist/client/assets/site-editor-BIurhts7.js +1 -0
  290. package/dist/client/assets/{site-editor-toast-CkAw1Cwp.js → site-editor-toast-DyAj-yh9.js} +1 -1
  291. package/dist/client/assets/{skills-BzPEtrNZ.js → skills-CT_xGAxG.js} +1 -1
  292. package/dist/client/assets/{slider-wN_aQalr.js → slider-_egWZNfX.js} +1 -1
  293. package/dist/client/assets/{sortable.esm-DPJjIjEU.js → sortable.esm-DpTBwHPu.js} +1 -1
  294. package/dist/client/assets/{sso-Bs5CI3h8.js → sso-B8Ml5ONn.js} +1 -1
  295. package/dist/client/assets/{suggestion-DWkqugbN.js → suggestion-BUUDUW90.js} +1 -1
  296. package/dist/client/assets/{super-agent-icon-D0WeAH15.js → super-agent-icon-B_bgucC_.js} +1 -1
  297. package/dist/client/assets/{switch-CfemO1do.js → switch-pc6As7Lj.js} +1 -1
  298. package/dist/client/assets/{synced-repos-BKKcIPbN.js → synced-repos-BCR2U4BU.js} +1 -1
  299. package/dist/client/assets/{tab-icon-glyph-CNySjp_I.js → tab-icon-glyph-D-aUvxBU.js} +1 -1
  300. package/dist/client/assets/{table-C9du40XO.js → table-Dy0rd4qk.js} +1 -1
  301. package/dist/client/assets/{tabs-D6Pnw7es.js → tabs-LNTPmT4H.js} +1 -1
  302. package/dist/client/assets/{task-board-CZErK_3f.js → task-board-CgkLyySX.js} +1 -1
  303. package/dist/client/assets/{task-key-BWUT6sLU.js → task-key-PeB83qoV.js} +1 -1
  304. package/dist/client/assets/{task-route-CGCjMBBZ.js → task-route-D-8EO_RF.js} +1 -1
  305. package/dist/client/assets/{task-status-DdY5hqAG.js → task-status-KvQJFF87.js} +1 -1
  306. package/dist/client/assets/{taskboard-analytics-BUGSR3Oh.js → taskboard-analytics-BcLhNaje.js} +1 -1
  307. package/dist/client/assets/tasks-BQIgrwi3.js +1 -0
  308. package/dist/client/assets/{tasks-Cn9XhG4H.js → tasks-CeETZIFY.js} +1 -1
  309. package/dist/client/assets/{textarea-shjcg83Q.js → textarea-i65d3zD6.js} +1 -1
  310. package/dist/client/assets/{thread-analytics-nP1khI2z.js → thread-analytics-Cdiuqyfy.js} +1 -1
  311. package/dist/client/assets/{thread-button-BT5IYGed.js → thread-button-Cv7guHMn.js} +1 -1
  312. package/dist/client/assets/{thread-intent-MQDkwS2K.js → thread-intent-LmIsiguS.js} +1 -1
  313. package/dist/client/assets/{thread-route-CwpmRNHh.js → thread-route-98-Pj7EV.js} +1 -1
  314. package/dist/client/assets/{thread-route-C18glt36.js → thread-route-CSj65J5K.js} +1 -1
  315. package/dist/client/assets/{thread-sheet-body-BY8zn-2X.js → thread-sheet-body-D3GUkLPi.js} +1 -1
  316. package/dist/client/assets/{time-range-picker-BcBC6ty0.js → time-range-picker-Css1Ovl_.js} +1 -1
  317. package/dist/client/assets/{toggle-group-BnrXGKKY.js → toggle-group-B5Qv0TZp.js} +1 -1
  318. package/dist/client/assets/{tool-set-selector-DUOMDF3r.js → tool-set-selector-DoHlrDig.js} +1 -1
  319. package/dist/client/assets/{toolbar-icon-button-2ueMvkvI.js → toolbar-icon-button-vtvpzCZ_.js} +1 -1
  320. package/dist/client/assets/{tooltip-DgFM5mQB.js → tooltip-BBk4QO9B.js} +1 -1
  321. package/dist/client/assets/{tooltipContext-BvjdDC28.js → tooltipContext-DuBQjN-C.js} +1 -1
  322. package/dist/client/assets/{track-CDbXIh-t.js → track-ttGR8dxm.js} +1 -1
  323. package/dist/client/assets/{types-Bca8rqtc.js → types-BRAj2PE2.js} +1 -1
  324. package/dist/client/assets/{url-slug-0nYVauKi.js → url-slug-DrOjUMxX.js} +1 -1
  325. package/dist/client/assets/{usage-stats-DyR6Kq74.js → usage-stats-xir5IhsZ.js} +1 -1
  326. package/dist/client/assets/{use-ai-providers-BM99Jk3f.js → use-ai-providers-B1MpfOF5.js} +1 -1
  327. package/dist/client/assets/{use-api-keys-CwsBcAgd.js → use-api-keys-CiN7H9ts.js} +1 -1
  328. package/dist/client/assets/{use-apply-named-rule-D90SDfPC.js → use-apply-named-rule-Bzqut0Gd.js} +1 -1
  329. package/dist/client/assets/use-ask-in-chat-CKHbH0UO.js +1 -0
  330. package/dist/client/assets/{use-automations-Co69mrXt.js → use-automations-DSG-bEnt.js} +1 -1
  331. package/dist/client/assets/{use-autosave-BoR4WbwP.js → use-autosave-Cm2WfCL_.js} +1 -1
  332. package/dist/client/assets/use-blocks-v8-project-B8tSOiQV.js +1 -0
  333. package/dist/client/assets/use-blog-view-CLaoWWXx.js +1 -0
  334. package/dist/client/assets/{use-chat-layout-state-v3ZvRKOT.js → use-chat-layout-state-Cobo43Bl.js} +1 -1
  335. package/dist/client/assets/{use-cms-publish-actions-tt3YVYFN.js → use-cms-publish-actions-ChEzMzUL.js} +1 -1
  336. package/dist/client/assets/{use-connect-companion-isIbV5OV.js → use-connect-companion-CJdSUXna.js} +1 -1
  337. package/dist/client/assets/{use-connection-wSXmVdCY.js → use-connection-VTUSBGTe.js} +1 -1
  338. package/dist/client/assets/{use-content-sync-BDeJ_Jgu.js → use-content-sync-BXrJzR11.js} +1 -1
  339. package/dist/client/assets/{use-copy-CQS-1CPQ.js → use-copy-Dc7Mx1fC.js} +1 -1
  340. package/dist/client/assets/{use-current-view-C8Qn7lu6.js → use-current-view-AGi0k_-I.js} +1 -1
  341. package/dist/client/assets/{use-date-fns-locale-rXGxQCgx.js → use-date-fns-locale-Bxj0YL2L.js} +1 -1
  342. package/dist/client/assets/{use-debounced-autosave-C2p5-3yn.js → use-debounced-autosave-BDRqjNGS.js} +1 -1
  343. package/dist/client/assets/{use-debounced-value-sPPLBdJe.js → use-debounced-value-CTxCZD5A.js} +1 -1
  344. package/dist/client/assets/{use-deco-credits-Cd6Vxe2k.js → use-deco-credits-B34VYEQw.js} +1 -1
  345. package/dist/client/assets/{use-decopilot-events-Dn0Dm68W.js → use-decopilot-events-DFiNdpMv.js} +1 -1
  346. package/dist/client/assets/{use-delete-block-MPbaqrna.js → use-delete-block-CTKK2Eq4.js} +1 -1
  347. package/dist/client/assets/{use-delete-connection-EcnpG53Z.js → use-delete-connection-C1dHTb1J.js} +1 -1
  348. package/dist/client/assets/{use-deployment-admin-CTEsKWeV.js → use-deployment-admin-BA_JLmwW.js} +1 -1
  349. package/dist/client/assets/{use-entitlements-BXMPYOBS.js → use-entitlements-RVjfgn4l.js} +1 -1
  350. package/dist/client/assets/{use-fast-preview-draft-url-BpA0y2aq.js → use-fast-preview-draft-url-kaqCW9_t.js} +1 -1
  351. package/dist/client/assets/{use-file-configs-Df-dqKVI.js → use-file-configs-DJQqKxP9.js} +1 -1
  352. package/dist/client/assets/{use-id-selection-3iTAqvRR.js → use-id-selection-BzvH47dC.js} +1 -1
  353. package/dist/client/assets/{use-in-settings-D_BySurP.js → use-in-settings-CavkWvLD.js} +1 -1
  354. package/dist/client/assets/{use-inbox-feed-B-8Gmjeu.js → use-inbox-feed-CJ80ZK7C.js} +1 -1
  355. package/dist/client/assets/{use-infinite-scroll-C-t0_BGl.js → use-infinite-scroll-CBxCb09-.js} +1 -1
  356. package/dist/client/assets/{use-join-requests-B0limBIJ.js → use-join-requests-uMBvUkrQ.js} +1 -1
  357. package/dist/client/assets/{use-main-panel-tabs-N1__ahB3.js → use-main-panel-tabs-CAwxHjj4.js} +1 -1
  358. package/dist/client/assets/{use-mcp-auth-status-Buwa7u45.js → use-mcp-auth-status-COkXOT5q.js} +1 -1
  359. package/dist/client/assets/{use-mcp-client-OYKYr7Zc.js → use-mcp-client-D6hvNNod.js} +1 -1
  360. package/dist/client/assets/{use-mcp-prompts-XeLNsblN.js → use-mcp-prompts-Dzcv5Qm_.js} +1 -1
  361. package/dist/client/assets/{use-mcp-tools-Ben5ajiJ.js → use-mcp-tools-CaA0WW-E.js} +1 -1
  362. package/dist/client/assets/{use-mobile-MVZR2Lhp.js → use-mobile-DPeImGih.js} +1 -1
  363. package/dist/client/assets/{use-move-blocks-DNt_Qh-7.js → use-move-blocks-B58hF-QF.js} +1 -1
  364. package/dist/client/assets/{use-navigate-to-agent-0LtKWlxa.js → use-navigate-to-agent-D-LXOG-h.js} +1 -1
  365. package/dist/client/assets/{use-never-published-DCVDrsUC.js → use-never-published-AUwhcJk8.js} +1 -1
  366. package/dist/client/assets/{use-org-fs-Dj5ea7Pp.js → use-org-fs-DMG6vhv9.js} +1 -1
  367. package/dist/client/assets/{use-org-notice-Csddyapx.js → use-org-notice-l577omxO.js} +1 -1
  368. package/dist/client/assets/{use-org-repo-syncs-8CH2dV_u.js → use-org-repo-syncs-anMhrjcF.js} +1 -1
  369. package/dist/client/assets/{use-org-sso-DXCHIqdV.js → use-org-sso-QDNvT__Q.js} +1 -1
  370. package/dist/client/assets/{use-organization-settings-BTioDTeC.js → use-organization-settings-HyX5IrJ4.js} +1 -1
  371. package/dist/client/assets/{use-panel-navigate-B_099k7i.js → use-panel-navigate-yNzK1oeQ.js} +1 -1
  372. package/dist/client/assets/{use-project-native-view-presence-BCWndDk0.js → use-project-native-view-presence-BkAnKN4Z.js} +1 -1
  373. package/dist/client/assets/{use-project-scope-BaNhjjkU.js → use-project-scope-BYK0JAGP.js} +1 -1
  374. package/dist/client/assets/{use-recent-apps-DKTzlYg2.js → use-recent-apps-DbC0yZx7.js} +1 -1
  375. package/dist/client/assets/{use-reports-diagnostic-tqk6GkvN.js → use-reports-diagnostic-BxX26Yaf.js} +1 -1
  376. package/dist/client/assets/{use-sandbox-events-DkGz3U_g.js → use-sandbox-events-DFE5xC3q.js} +1 -1
  377. package/dist/client/assets/{use-secrets-DsTJ_f5f.js → use-secrets-C-F6GU50.js} +1 -1
  378. package/dist/client/assets/{use-section-preview-base-BFP7PpkG.js → use-section-preview-base-DcUNPfko.js} +1 -1
  379. package/dist/client/assets/{use-sidebar-collapsed-Cyq98Qgp.js → use-sidebar-collapsed-Ciu2x6KY.js} +1 -1
  380. package/dist/client/assets/{use-tags-D58r0dtz.js → use-tags-CLlJFBlp.js} +1 -1
  381. package/dist/client/assets/{use-task-board-analytics-Q05GDgAf.js → use-task-board-analytics-CaZfe94R.js} +1 -1
  382. package/dist/client/assets/{use-task-board-item-prs-Y4mOP7Qi.js → use-task-board-item-prs-C_eZiXGh.js} +1 -1
  383. package/dist/client/assets/{use-task-board-items-DHvwjetN.js → use-task-board-items--v3zNW-2.js} +1 -1
  384. package/dist/client/assets/{use-task-board-prompts-Ds3v5gjb.js → use-task-board-prompts-BCHk1uCf.js} +1 -1
  385. package/dist/client/assets/{use-task-metadata-bPw-hNrv.js → use-task-metadata-puiqvF0z.js} +1 -1
  386. package/dist/client/assets/{use-thread-outputs-I2kuvS72.js → use-thread-outputs-vfKngax2.js} +1 -1
  387. package/dist/client/assets/{use-view-draft-kind-DcHRrUPD.js → use-view-draft-kind-CK2Ws293.js} +1 -1
  388. package/dist/client/assets/{use-voice-input-ClQF7v9Y.js → use-voice-input-Bag2UQ5s.js} +1 -1
  389. package/dist/client/assets/useInfiniteQuery-CkG5v2bH.js +1 -0
  390. package/dist/client/assets/{useQueries-Q6q16yJQ.js → useQueries-ClESU-gL.js} +1 -1
  391. package/dist/client/assets/useSuspenseInfiniteQuery-D4hQd0qx.js +1 -0
  392. package/dist/client/assets/{users-BBdssw6s.js → users--4MnD2Ni.js} +1 -1
  393. package/dist/client/assets/{utils-BaccrSLZ.js → utils-GIRCtww_.js} +1 -1
  394. package/dist/client/assets/{variant-calendar-DLupNn-U.js → variant-calendar-DDAccAAH.js} +1 -1
  395. package/dist/client/assets/{variant-matcher-override-3ayykvcg.js → variant-matcher-override-B4viDDF4.js} +1 -1
  396. package/dist/client/assets/{view-header-BIqV3RdZ.js → view-header-BMcVMjG5.js} +1 -1
  397. package/dist/client/assets/{virtual-mcp-DyF6IEhr.js → virtual-mcp-D70Jm3Cf.js} +1 -1
  398. package/dist/client/assets/{watch-sse-pool-DTFf-OSe.js → watch-sse-pool-C79C_cUh.js} +1 -1
  399. package/dist/client/index.html +2 -2
  400. package/dist/server/server.js +705 -705
  401. package/package.json +1 -1
  402. package/dist/client/assets/agent-app--sGlyuqH.js +0 -1
  403. package/dist/client/assets/agent-assets-D9OfQf2S.js +0 -1
  404. package/dist/client/assets/agent-deck-BFHNNp62.js +0 -1
  405. package/dist/client/assets/agent-experiments-Bv_v3TAO.js +0 -1
  406. package/dist/client/assets/agent-file-BXKcmB2N.js +0 -1
  407. package/dist/client/assets/agent-library-Czsy6k8l.js +0 -1
  408. package/dist/client/assets/agent-library-file-BbS3HgpC.js +0 -1
  409. package/dist/client/assets/agent-overview-DM_uEEtA.js +0 -1
  410. package/dist/client/assets/agent-settings-BnZZ1J30.js +0 -1
  411. package/dist/client/assets/agent-site-editor-code-DalNbqMF.js +0 -2
  412. package/dist/client/assets/agent-site-editor-content-C86oatUw.js +0 -1
  413. package/dist/client/assets/agent-site-editor-preview-CNy-hy9W.js +0 -1
  414. package/dist/client/assets/agent-view-BnzkhKY4.js +0 -1
  415. package/dist/client/assets/api-keys-BWtdycqJ.js +0 -1
  416. package/dist/client/assets/asset-utils-545UDhWA.js +0 -1
  417. package/dist/client/assets/index-pbgcO64n.css +0 -1
  418. package/dist/client/assets/legacy-agents-deep-DDm5GBaQ.js +0 -1
  419. package/dist/client/assets/library-UhxMQ0oL.js +0 -1
  420. package/dist/client/assets/project-app-view-DVY_pI8M.js +0 -1
  421. package/dist/client/assets/project-reports-CvZYitaI.js +0 -1
  422. package/dist/client/assets/project-tasks-Cm1BxQuv.js +0 -1
  423. package/dist/client/assets/record-editor-DUtpG1M4.js +0 -1
  424. package/dist/client/assets/reports-CRpT9Jvs.js +0 -1
  425. package/dist/client/assets/repositories-BimQNbUT.js +0 -1
  426. package/dist/client/assets/route-BIUN__VF.js +0 -1
  427. package/dist/client/assets/route-CKUHS8mK.js +0 -1
  428. package/dist/client/assets/settings-tab-CtAuHkvY.js +0 -1
  429. package/dist/client/assets/sheet-BqPaRS1I.js +0 -1
  430. package/dist/client/assets/site-editor-DwanunsO.js +0 -1
  431. package/dist/client/assets/tasks-qN1qstWv.js +0 -1
  432. package/dist/client/assets/use-ask-in-chat-B4aJKUoO.js +0 -1
  433. package/dist/client/assets/use-blocks-v8-project-Dq4zh0zX.js +0 -1
  434. package/dist/client/assets/use-blog-view-DuKgZxsq.js +0 -1
  435. package/dist/client/assets/useInfiniteQuery-CoeKNdsU.js +0 -1
  436. package/dist/client/assets/useSuspenseInfiniteQuery-hY0KLY7U.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as d,j as a,a2 as g}from"./index-BMPeWdJw.js";import{ChatLayout as x}from"./index-G68rd1Q1.js";import{a as h}from"./thread-route-CSj65J5K.js";import{u as $}from"./use-task-metadata-puiqvF0z.js";import{AppViewContent as A}from"./project-app-view-BZ0asFCv.js";import"./use-mobile-DPeImGih.js";import"./tooltip-BBk4QO9B.js";import"./index-BDs-2B47.js";import"./MessageCircle01-pdZ3c0Ei.js";import"./XClose-igHVZF4W.js";import"./thread-button-Cv7guHMn.js";import"./use-sidebar-collapsed-Ciu2x6KY.js";import"./sheet-3DsSjpPg.js";import"./use-chat-layout-state-Cobo43Bl.js";import"./use-panel-navigate-yNzK1oeQ.js";import"./use-project-scope-BYK0JAGP.js";import"./repository-binding-BCK2I6Mo.js";import"./use-mcp-client-D6hvNNod.js";import"./auth-DdGqjHXO.js";import"./toolbar-icon-button-vtvpzCZ_.js";import"./use-in-settings-CavkWvLD.js";import"./resizable-D7hc5wCS.js";import"./route-page-header-DOKA0lPe.js";import"./LayoutLeft-BI23EoSs.js";import"./use-current-view-AGi0k_-I.js";import"./thread-intent-LmIsiguS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C79C_cUh.js";import"./task-board-CgkLyySX.js";import"./schema-Cg4pyiCI.js";import"./session-runtime-B3tpmEdV.js";import"./gateway-client-CEz2o7p6.js";import"./use-mcp-tools-CaA0WW-E.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-YjPzFqL6.js";import"./types-BRAj2PE2.js";import"./chat-context-CzmbAHe8.js";import"./use-view-draft-kind-CK2Ws293.js";import"./use-blog-view-CLaoWWXx.js";import"./use-organization-settings-HyX5IrJ4.js";import"./use-entitlements-RVjfgn4l.js";import"./use-ai-providers-B1MpfOF5.js";import"./use-decopilot-events-DFiNdpMv.js";import"./shell-layout-Cy4x2w2C.js";import"./Globe04-BGaPJwRM.js";import"./UserSquare-DAFK733H.js";import"./use-deployment-admin-BA_JLmwW.js";import"./admin-fetch-BhTJlAsX.js";import"./agent-icon-BJ2Wx2fE.js";import"./AlertCircle-rt5NTcOt.js";import"./UserCheck01-D14kK5BQ.js";import"./Tool01-CRE8Zr1E.js";import"./ArrowUp-BX9rle-Z.js";import"./ArrowLeft-BtflI84P.js";import"./ArrowRight-DckDNEPN.js";import"./BookOpen01-Cdt9znE-.js";import"./CheckCircle-DQ8gl2jA.js";import"./TrendUp01-CkF2n8Hn.js";import"./ChevronDown-88QbtNjw.js";import"./ChevronSelectorVertical-BfhN49CO.js";import"./ChevronUp-BwBBvXr-.js";import"./LinkBroken01-DWWxoD2s.js";import"./CreditCard01-CHpJYShR.js";import"./File02-CpMe0sR1.js";import"./SwitchHorizontal01-BCndh-XX.js";import"./Eye-C8bzWtOv.js";import"./Image01-CyjafdfK.js";import"./Key01-NBdT0O9W.js";import"./Minus-ToHFKPwl.js";import"./Monitor01-DQ2oaJ_f.js";import"./Sun-CGayzxv4.js";import"./Play-Dgyu5PiH.js";import"./Plus-NIlBePVH.js";import"./SearchMd-BZFf7uAm.js";import"./ShoppingBag01-CA3tpOzv.js";import"./Trash01-C1sTtIQd.js";import"./Upload01-DF54M6Ph.js";import"./Users01-8BTVWXNl.js";import"./Zap-CZUa6DWb.js";import"./use-org-notice-l577omxO.js";import"./command-Bq8LzPoY.js";import"./index-CSLJLC25.js";import"./integration-icon-xMpRZNbX.js";import"./project-icon-DqFpEPg-.js";import"./use-navigate-to-agent-D-LXOG-h.js";import"./use-debounced-value-CTxCZD5A.js";import"./new-project-dialog-IDVZ0s2M.js";import"./label-CRK3U7ZP.js";import"./repository-picker-DWJeQ4Uz.js";import"./github-icon-CNkm_QOq.js";import"./useInfiniteQuery-CkG5v2bH.js";import"./infiniteQueryObserver-BmYMm5wr.js";import"./collection-search-fi8Jpdhv.js";import"./new-project-store-DBh8m9Ki.js";import"./legacy-admin-welcome-dialog-DpejN_Uy.js";import"./drawer-cS0px3h4.js";import"./required-auth-layout-Bqqrer2s.js";import"./use-org-sso-QDNvT__Q.js";import"./task-route-D-8EO_RF.js";import"./task-key-PeB83qoV.js";import"./project-index-Dn3n52T-.js";import"./connect-source-dialog-GkRu49Gr.js";import"./site-url-en5df9c-.js";import"./use-connect-companion-CJdSUXna.js";import"./companions-core-DhUD88pR.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C58hYmYC.js";import"./form-vgZJ8ykR.js";import"./icon-button-DAAwLc_Y.js";import"./useQueries-ClESU-gL.js";import"./authenticate-and-persist-oauth-ZxRhWemt.js";import"./mcp-oauth-DIu8HkzC.js";import"./mcp-oauth-DUQJVV6B.js";import"./track-ttGR8dxm.js";import"./extract-connection-data-DR98xre0.js";import"./connection-BGRWc-KI.js";import"./url-slug-DrOjUMxX.js";const l=g("/shell/$org/org-shell/agent-shell/projects/$agentId/apps/$connectionId/$toolName");function j(){const t=d.c(10),{connectionId:o,toolName:r}=l.useParams(),{args:i}=l.useSearch(),u=h(),e=$(u);let p;t[0]!==o||t[1]!==e?.expanded_tools||t[2]!==r?(p=e?.expanded_tools?.find(c=>c.appId===o&&c.toolName===r),t[0]=o,t[1]=e?.expanded_tools,t[2]=r,t[3]=p):p=t[3];const f=p,s=`${o}:${r}`,n=f?.args;let m;return t[4]!==i||t[5]!==o||t[6]!==s||t[7]!==n||t[8]!==r?(m=a.jsx(A,{connectionId:o,toolName:r,args:n,searchArgs:i},s),t[4]=i,t[5]=o,t[6]=s,t[7]=n,t[8]=r,t[9]=m):m=t[9],m}function wo(){const t=d.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(x.Content,{children:a.jsx(j,{})}),t[0]=o):o=t[0],o}export{wo as default};
@@ -0,0 +1 @@
1
+ import{c as de,b as Ge,r as se,bc as dt,j as t,B as be,h as Ke,m as lt,J as At,hD as Tt,a5 as ot,t as Ee,I as It,aW as mt,a7 as pt,as as Mt,aH as ut,aI as xt,aJ as gt,aK as ht,b7 as jt,aL as bt,aM as yt,aN as kt,bs as Rt,X as Lt,Y as tt,Z as Ot,_ as Et}from"./index-BMPeWdJw.js";import{ChatLayout as Ht}from"./index-G68rd1Q1.js";import{A as Bt}from"./agent-view-guard-X-bc2zlR.js";import{e as vt,D as Wt}from"./agent-icon-BJ2Wx2fE.js";import{a as Gt}from"./SwitchHorizontal01-BCndh-XX.js";import{i as rt}from"./File02-CpMe0sR1.js";import{a as Pt}from"./Image01-CyjafdfK.js";import{s as Nt}from"./Trash01-C1sTtIQd.js";import{i as Ze}from"./Upload01-DF54M6Ph.js";import{S as wt}from"./search-input-_TDPMfaj.js";import{b as Kt}from"./repository-binding-BCK2I6Mo.js";import{u as Dt}from"./use-debounced-value-CTxCZD5A.js";import{a as Vt}from"./use-file-configs-DJQqKxP9.js";import{a as _t,u as nt,c as qe,d as Je,f as Ye,e as et,s as qt,g as Yt,p as it,h as St,B as Jt,i as Qt,b as Ct}from"./asset-utils-DDL7Zhst.js";import{m as Xt}from"./match-site-slug-config-B47_xZCi.js";import{b as Zt}from"./use-blocks-v8-project-B8tSOiQV.js";import{i as es}from"./Play-Dgyu5PiH.js";import{s as ts}from"./Plus-NIlBePVH.js";import{s as ss}from"./Tool01-CRE8Zr1E.js";import{s as is}from"./XClose-igHVZF4W.js";import{b as ls,a as rs,S as ns,d as os,c as as,e as cs}from"./sheet-3DsSjpPg.js";import{a as Qe,T as fs}from"./toggle-group-B5Qv0TZp.js";import{c as ds}from"./thread-route-CSj65J5K.js";import"./use-mobile-DPeImGih.js";import"./tooltip-BBk4QO9B.js";import"./index-BDs-2B47.js";import"./MessageCircle01-pdZ3c0Ei.js";import"./thread-button-Cv7guHMn.js";import"./use-sidebar-collapsed-Ciu2x6KY.js";import"./use-chat-layout-state-Cobo43Bl.js";import"./use-panel-navigate-yNzK1oeQ.js";import"./use-project-scope-BYK0JAGP.js";import"./toolbar-icon-button-vtvpzCZ_.js";import"./use-in-settings-CavkWvLD.js";import"./resizable-D7hc5wCS.js";import"./route-page-header-DOKA0lPe.js";import"./LayoutLeft-BI23EoSs.js";import"./use-current-view-AGi0k_-I.js";import"./use-mcp-client-D6hvNNod.js";import"./auth-DdGqjHXO.js";import"./use-main-panel-tabs-CAwxHjj4.js";import"./Monitor01-DQ2oaJ_f.js";import"./use-connection-VTUSBGTe.js";import"./use-mcp-tools-CaA0WW-E.js";import"./types-BRAj2PE2.js";import"./utils-CVEq3hMx.js";import"./agent-capabilities-B2Kb_ijp.js";import"./index-BMmbX0gD.js";import"./ArrowUp-BX9rle-Z.js";import"./chat-context-CzmbAHe8.js";import"./use-view-draft-kind-CK2Ws293.js";import"./use-blog-view-CLaoWWXx.js";import"./use-organization-settings-HyX5IrJ4.js";import"./schema-Cg4pyiCI.js";import"./task-board-CgkLyySX.js";import"./thread-intent-LmIsiguS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C79C_cUh.js";import"./session-runtime-B3tpmEdV.js";import"./use-entitlements-RVjfgn4l.js";import"./use-ai-providers-B1MpfOF5.js";import"./use-decopilot-events-DFiNdpMv.js";import"./input-BmsdW_BQ.js";import"./usage-stats-xir5IhsZ.js";import"./markdown-BWT_4WJH.js";import"./use-copy-Dc7Mx1fC.js";import"./gateway-client-CEz2o7p6.js";import"./form-vgZJ8ykR.js";import"./label-CRK3U7ZP.js";import"./icon-button-DAAwLc_Y.js";import"./file-type-icon-5ukaLDeF.js";import"./chat-draft-CMZymjc1.js";import"./use-voice-input-Bag2UQ5s.js";import"./popover-zwWAAqUd.js";import"./drawer-cS0px3h4.js";import"./ChevronDown-88QbtNjw.js";import"./UserCheck01-D14kK5BQ.js";import"./index-DGJ99-Gb.js";import"./checkbox-CnO5GKzb.js";import"./Minus-ToHFKPwl.js";import"./select-Cl-2whSq.js";import"./index-BdQq_4o_.js";import"./ChevronUp-BwBBvXr-.js";import"./ArrowLeft-BtflI84P.js";import"./ChevronSelectorVertical-BfhN49CO.js";import"./Key01-NBdT0O9W.js";import"./SearchMd-BZFf7uAm.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-rt5NTcOt.js";import"./Eye-C8bzWtOv.js";import"./ArrowRight-DckDNEPN.js";import"./BookOpen01-Cdt9znE-.js";import"./UserSquare-DAFK733H.js";import"./tabs-LNTPmT4H.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-B34VYEQw.js";import"./input-Bp705GAE.js";import"./suggestion-BUUDUW90.js";import"./use-mcp-prompts-Dzcv5Qm_.js";import"./use-org-fs-DMG6vhv9.js";import"./useInfiniteQuery-CkG5v2bH.js";import"./infiniteQueryObserver-BmYMm5wr.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-_CmjErfx.js";import"./plan-ladder-B-wAiO1o.js";import"./add-connection-dialog-CmjWx4NO.js";import"./collection-search-fi8Jpdhv.js";import"./extract-connection-data-DR98xre0.js";import"./metadata-D72DunRR.js";import"./connection-BGRWc-KI.js";import"./url-slug-DrOjUMxX.js";import"./connection-card-BuyifKDO.js";import"./connection-slug-BU-gcFLx.js";import"./integration-icon-xMpRZNbX.js";import"./LinkBroken01-DWWxoD2s.js";import"./textarea-i65d3zD6.js";import"./schema-CFHsTaYR.js";import"./connection-form-helpers-DVl_sDCj.js";import"./authenticate-and-persist-oauth-ZxRhWemt.js";import"./mcp-oauth-DIu8HkzC.js";import"./mcp-oauth-DUQJVV6B.js";import"./collection-tabs-C_tkgeK_.js";import"./badge-C-0ziPev.js";import"./use-infinite-scroll-CBxCb09-.js";import"./useSuspenseInfiniteQuery-D4hQd0qx.js";import"./use-task-board-items--v3zNW-2.js";import"./pair-Bonyggei.js";import"./collapsible-Czfx-LAp.js";import"./task-key-PeB83qoV.js";import"./config-CpgY06XK.js";import"./CheckCircle-DQ8gl2jA.js";import"./task-route-D-8EO_RF.js";import"./project-index-Dn3n52T-.js";import"./TrendUp01-CkF2n8Hn.js";import"./shell-layout-Cy4x2w2C.js";import"./Globe04-BGaPJwRM.js";import"./use-deployment-admin-BA_JLmwW.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-l577omxO.js";import"./Zap-CZUa6DWb.js";import"./command-Bq8LzPoY.js";import"./index-CSLJLC25.js";import"./project-icon-DqFpEPg-.js";import"./use-navigate-to-agent-D-LXOG-h.js";import"./new-project-dialog-IDVZ0s2M.js";import"./repository-picker-DWJeQ4Uz.js";import"./github-icon-CNkm_QOq.js";import"./ShoppingBag01-CA3tpOzv.js";import"./new-project-store-DBh8m9Ki.js";import"./legacy-admin-welcome-dialog-DpejN_Uy.js";import"./required-auth-layout-Bqqrer2s.js";import"./use-org-sso-QDNvT__Q.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-YjPzFqL6.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-vfKngax2.js";import"./use-sandbox-events-DFE5xC3q.js";import"./sandbox-url-D3mC8qhT.js";import"./resolve-tab-icon-B4dWqPe0.js";import"./use-task-metadata-puiqvF0z.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-BkAnKN4Z.js";import"./virtual-mcp-D70Jm3Cf.js";import"./CreditCard01-CHpJYShR.js";import"./Sun-CGayzxv4.js";import"./Users01-8BTVWXNl.js";function zt(c){return c<0||c<640?2:c<768?3:c<1024?4:5}function Ut(c,e){const i=Array.from({length:e},()=>[]);return c.forEach((s,a)=>i[a%e].push(s)),i}function ms(c){const e=de.c(156),{config:i}=c,s=Ge(),[a,f]=se.useState(""),l=Dt(a,300);let r;e[0]!==i.id||e[1]!==l?(r={configId:i.id,search:l},e[0]=i.id,e[1]=l,e[2]=r):r=e[2];const n=_t(r),o=nt(),[p,m]=se.useState("all"),[u,d]=se.useState(null),[h,g]=se.useState(!1),[j,b]=se.useState(null),[x,w]=se.useState(null),[C,P]=se.useState(null),y=se.useRef(null);let v;e[3]!==i.id||e[4]!==n||e[5]!==s||e[6]!==o?(v=async function(X){if(!X)return;const he=Array.from(X);if(he.length===0)return;const je=[];for(const Ue of he)try{await o.mutateAsync({configId:i.id,file:Ue})}catch(Fe){const ue=Fe;je.push(`${Ue.name} (${ue instanceof Error?ue.message:"upload failed"})`)}await n.refetch(),je.length>0&&Ee.error(je.length===he.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:je.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:je.join("; ")}))},e[3]=i.id,e[4]=n,e[5]=s,e[6]=o,e[7]=v):v=e[7];const N=v;let k;e[8]===Symbol.for("react.memo_cache_sentinel")?(k=function(X){X.preventDefault(),g(!0)},e[8]=k):k=e[8];const _=k;let D;e[9]===Symbol.for("react.memo_cache_sentinel")?(D=function(X){X.currentTarget.contains(X.relatedTarget)||g(!1)},e[9]=D):D=e[9];const M=D;let K;e[10]!==N?(K=function(X){X.preventDefault(),X.stopPropagation(),g(!1),N(X.dataTransfer.files)},e[10]=N,e[11]=K):K=e[11];const J=K,[W,G]=dt();let z,R,L,ie,F,S,$,A,T,I,U;if(e[12]!==i.name||e[13]!==l||e[14]!==G||e[15]!==W||e[16]!==p||e[17]!==n.data?.pages||e[18]!==n.isFetching||e[19]!==n.isFetchingNextPage||e[20]!==J||e[21]!==a||e[22]!==u||e[23]!==s){const X=(n.data?.pages??[]).flatMap(ps),he=p==="all"?X:X.filter(Re=>qe(Re.key)===p),je=Ut(he,zt(W));z=he.find(Re=>Re.key===u)??null;const Ue=l.trim(),Fe=a!==l||n.isFetching&&!n.isFetchingNextPage;S=P,$="relative flex h-full min-h-0 overflow-hidden",ie="flex min-w-0 flex-1 flex-col";let ue;e[35]!==s?(ue=s("assets.browser.title"),e[35]=s,e[36]=ue):ue=e[36];let ke;e[37]!==ue?(ke=t.jsx("h2",{className:"text-sm font-semibold",children:ue}),e[37]=ue,e[38]=ke):ke=e[38];let ve;e[39]!==i.name||e[40]!==s?(ve=s("assets.browser.bucketLabel",{name:i.name}),e[39]=i.name,e[40]=s,e[41]=ve):ve=e[41];let Pe;e[42]!==ve?(Pe=t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:ve}),e[42]=ve,e[43]=Pe):Pe=e[43];let Ne;e[44]!==ke||e[45]!==Pe?(Ne=t.jsxs("div",{className:"min-w-0 flex-1",children:[ke,Pe]}),e[44]=ke,e[45]=Pe,e[46]=Ne):Ne=e[46];let we;e[47]!==s?(we=s("assets.browser.filterLabel"),e[47]=s,e[48]=we):we=e[48];let We;e[49]===Symbol.for("react.memo_cache_sentinel")?(We=Re=>{(Re==="all"||Re==="image"||Re==="video"||Re==="document")&&m(Re)},e[49]=We):We=e[49];let Le;e[50]!==s?(Le=s("assets.browser.filterAll"),e[50]=s,e[51]=Le):Le=e[51];let De;e[52]!==Le?(De=t.jsx(Qe,{value:"all",children:Le}),e[52]=Le,e[53]=De):De=e[53];let _e;e[54]!==s?(_e=s("assets.browser.filterImages"),e[54]=s,e[55]=_e):_e=e[55];let Se;e[56]!==_e?(Se=t.jsx(Qe,{value:"image",children:_e}),e[56]=_e,e[57]=Se):Se=e[57];let Ie;e[58]!==s?(Ie=s("assets.browser.filterVideos"),e[58]=s,e[59]=Ie):Ie=e[59];let Me;e[60]!==Ie?(Me=t.jsx(Qe,{value:"video",children:Ie}),e[60]=Ie,e[61]=Me):Me=e[61];let Ce;e[62]!==s?(Ce=s("assets.browser.filterDocuments"),e[62]=s,e[63]=Ce):Ce=e[63];let ze;e[64]!==Ce?(ze=t.jsx(Qe,{value:"document",children:Ce}),e[64]=Ce,e[65]=ze):ze=e[65];let pe;e[66]!==p||e[67]!==we||e[68]!==De||e[69]!==Se||e[70]!==Me||e[71]!==ze?(pe=t.jsxs(fs,{type:"single",variant:"segmented",size:"sm",value:p,"aria-label":we,onValueChange:We,children:[De,Se,Me,ze]}),e[66]=p,e[67]=we,e[68]=De,e[69]=Se,e[70]=Me,e[71]=ze,e[72]=pe):pe=e[72];let $e;e[73]!==s?($e=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[73]=s,e[74]=$e):$e=e[74];let Oe;e[75]!==Fe||e[76]!==a||e[77]!==$e?(Oe=t.jsx(wt,{value:a,onChange:f,isSearching:Fe,placeholder:$e,className:"w-56 shrink-0"}),e[75]=Fe,e[76]=a,e[77]=$e,e[78]=Oe):Oe=e[78],e[79]!==Ne||e[80]!==pe||e[81]!==Oe?(F=t.jsxs("div",{className:"flex shrink-0 flex-wrap items-center gap-3 px-4 pb-3 pt-4",children:[Ne,pe,Oe]}),e[79]=Ne,e[80]=pe,e[81]=Oe,e[82]=F):F=e[82],I="relative min-h-0 flex-1",U=_,R=M,L=J,A="absolute inset-0 overflow-y-auto px-4 pb-24",T=X.length===0?Ue?t.jsx(st,{title:s("filePicker.filePickerDialog.noMatches",{query:Ue}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):t.jsx(st,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):he.length===0?t.jsx(st,{title:s("assets.browser.emptyFilterTitle"),description:s("assets.browser.emptyFilterDescription")}):t.jsx("div",{ref:G,className:"flex items-start gap-2.5",children:je.map((Re,$t)=>t.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-2.5",children:Re.map(Ve=>t.jsx(xs,{item:Ve,selected:Ve.key===u,onSelect:()=>d(Ve.key===u?null:Ve.key)},Ve.key))},$t))}),e[12]=i.name,e[13]=l,e[14]=G,e[15]=W,e[16]=p,e[17]=n.data?.pages,e[18]=n.isFetching,e[19]=n.isFetchingNextPage,e[20]=J,e[21]=a,e[22]=u,e[23]=s,e[24]=z,e[25]=R,e[26]=L,e[27]=ie,e[28]=F,e[29]=S,e[30]=$,e[31]=A,e[32]=T,e[33]=I,e[34]=U}else z=e[24],R=e[25],L=e[26],ie=e[27],F=e[28],S=e[29],$=e[30],A=e[31],T=e[32],I=e[33],U=e[34];let V;e[83]!==n||e[84]!==s?(V=n.hasNextPage&&t.jsx("div",{className:"flex justify-center py-4",children:t.jsx(be,{type:"button",variant:"outline",size:"sm",disabled:n.isFetchingNextPage,onClick:()=>n.fetchNextPage(),children:n.isFetchingNextPage?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[83]=n,e[84]=s,e[85]=V):V=e[85];let O;e[86]!==V||e[87]!==A||e[88]!==T?(O=t.jsxs("div",{className:A,children:[T,V]}),e[86]=V,e[87]=A,e[88]=T,e[89]=O):O=e[89];let E;e[90]!==h||e[91]!==s?(E=h&&t.jsx("div",{className:"pointer-events-none absolute inset-2 flex items-center justify-center rounded-xl border-2 border-dashed border-primary bg-primary/5 text-sm font-medium text-primary",children:s("assets.browser.dropToUpload")}),e[90]=h,e[91]=s,e[92]=E):E=e[92];const me=o.isPending;let te;e[93]===Symbol.for("react.memo_cache_sentinel")?(te=()=>y.current?.click(),e[93]=te):te=e[93];let le;e[94]===Symbol.for("react.memo_cache_sentinel")?(le=t.jsx("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-white/70 text-foreground dark:bg-black/25",children:t.jsx(ts,{size:16})}),e[94]=le):le=e[94];let H;e[95]!==s?(H=s("assets.browser.uploadBarHint"),e[95]=s,e[96]=H):H=e[96];let q;e[97]!==s?(q=s("filePicker.filePickerDialog.uploadSizeLimit"),e[97]=s,e[98]=q):q=e[98];let Q;e[99]!==q?(Q=t.jsxs("span",{className:"text-foreground/50 dark:text-foreground/70",children:[" · ",q]}),e[99]=q,e[100]=Q):Q=e[100];let B;e[101]!==H||e[102]!==Q?(B=t.jsxs("span",{className:"truncate",children:[H,Q]}),e[101]=H,e[102]=Q,e[103]=B):B=e[103];let Y;e[104]!==B||e[105]!==o.isPending?(Y=t.jsxs("button",{type:"button",disabled:me,onClick:te,className:"flex min-w-0 flex-1 items-center gap-2.5 rounded-full text-left text-sm text-foreground/75 disabled:opacity-60 dark:text-foreground dark:[text-shadow:0_1px_3px_rgb(0_0_0/0.5)]",children:[le,B]}),e[104]=B,e[105]=o.isPending,e[106]=Y):Y=e[106];let re;e[107]===Symbol.for("react.memo_cache_sentinel")?(re=()=>y.current?.click(),e[107]=re):re=e[107];let ne;e[108]!==o.isPending?(ne=o.isPending?t.jsx(Ke,{className:"size-3.5"}):t.jsx(Ze,{size:14}),e[108]=o.isPending,e[109]=ne):ne=e[109];let Z;e[110]!==s||e[111]!==o.isPending?(Z=o.isPending?s("filePicker.filePickerDialog.uploading"):s("assets.browser.upload"),e[110]=s,e[111]=o.isPending,e[112]=Z):Z=e[112];let ce;e[113]!==ne||e[114]!==Z||e[115]!==o.isPending?(ce=t.jsxs(be,{type:"button",size:"sm",disabled:o.isPending,onClick:re,children:[ne,Z]}),e[113]=ne,e[114]=Z,e[115]=o.isPending,e[116]=ce):ce=e[116];let oe;e[117]!==Y||e[118]!==ce?(oe=t.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-4 flex justify-center px-4",children:t.jsxs("div",{className:"pointer-events-auto flex w-full max-w-xl items-center gap-2 rounded-full bg-white/45 p-1.5 shadow-[inset_0_1px_0_rgb(255_255_255/0.6),inset_0_0_0_1px_rgb(255_255_255/0.3),0_12px_40px_rgb(0_0_0/0.18)] backdrop-blur-2xl backdrop-saturate-180 dark:bg-white/12 dark:shadow-[inset_0_1px_0_rgb(255_255_255/0.25),inset_0_0_0_1px_rgb(255_255_255/0.12),0_12px_40px_rgb(0_0_0/0.4)]",children:[Y,ce]})}),e[117]=Y,e[118]=ce,e[119]=oe):oe=e[119];let ae;e[120]!==R||e[121]!==L||e[122]!==O||e[123]!==E||e[124]!==oe||e[125]!==I||e[126]!==U?(ae=t.jsxs("div",{className:I,onDragOver:U,onDragLeave:R,onDrop:L,children:[O,E,oe]}),e[120]=R,e[121]=L,e[122]=O,e[123]=E,e[124]=oe,e[125]=I,e[126]=U,e[127]=ae):ae=e[127];let fe;e[128]!==N?(fe=t.jsx("input",{ref:y,type:"file",multiple:!0,className:"hidden",onChange:ye=>{const X=Array.from(ye.target.files??[]);ye.target.value="",N(X)}}),e[128]=N,e[129]=fe):fe=e[129];let ee;e[130]!==ie||e[131]!==F||e[132]!==ae||e[133]!==fe?(ee=t.jsxs("div",{className:ie,children:[F,ae,fe]}),e[130]=ie,e[131]=F,e[132]=ae,e[133]=fe,e[134]=ee):ee=e[134];let xe;e[135]!==z?(xe=z&&t.jsx(gs,{item:z,onClose:()=>d(null),onReplace:()=>{w(z),d(null)},onDelete:()=>b(z)},z.key),e[135]=z,e[136]=xe):xe=e[136];let ge;e[137]!==i.id||e[138]!==n||e[139]!==C||e[140]!==x?(ge=x&&t.jsx(ks,{configId:i.id,item:x,container:C,onClose:()=>{d(x.key),w(null)},onReplaced:()=>n.refetch()},x.key),e[137]=i.id,e[138]=n,e[139]=C,e[140]=x,e[141]=ge):ge=e[141];let He;e[142]===Symbol.for("react.memo_cache_sentinel")?(He=()=>b(null),e[142]=He):He=e[142];let Ae;e[143]!==u?(Ae=ye=>{ye===u&&d(null)},e[143]=u,e[144]=Ae):Ae=e[144];let Te;e[145]!==i.id||e[146]!==j||e[147]!==Ae?(Te=t.jsx(vs,{configId:i.id,item:j,onClose:He,onDeleted:Ae}),e[145]=i.id,e[146]=j,e[147]=Ae,e[148]=Te):Te=e[148];let Be;return e[149]!==S||e[150]!==$||e[151]!==ee||e[152]!==xe||e[153]!==ge||e[154]!==Te?(Be=t.jsxs("div",{ref:S,className:$,children:[ee,xe,ge,Te]}),e[149]=S,e[150]=$,e[151]=ee,e[152]=xe,e[153]=ge,e[154]=Te,e[155]=Be):Be=e[155],Be}function ps(c){return c.items}function st(c){const e=de.c(8),{title:i,description:s}=c;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:t.jsx(Pt,{size:18,className:"text-muted-foreground"})}),e[0]=a):a=e[0];let f;e[1]!==i?(f=t.jsx("p",{className:"text-sm font-medium",children:i}),e[1]=i,e[2]=f):f=e[2];let l;e[3]!==s?(l=t.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==f||e[6]!==l?(r=t.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[a,f,l]}),e[5]=f,e[6]=l,e[7]=r):r=e[7],r}function Ft(c){const e=de.c(21),{item:i,controls:s,onDimensions:a}=c,f=qe(i.key);if(f==="image"){let r;e[0]!==i.lastModified||e[1]!==i.publicUrl?(r=it(i.publicUrl,i.lastModified),e[0]=i.lastModified,e[1]=i.publicUrl,e[2]=r):r=e[2];let n;e[3]!==i.key?(n=Je(i.key),e[3]=i.key,e[4]=n):n=e[4];let o;e[5]!==a?(o=m=>a?.(m.currentTarget.naturalWidth,m.currentTarget.naturalHeight),e[5]=a,e[6]=o):o=e[6];let p;return e[7]!==r||e[8]!==n||e[9]!==o?(p=t.jsx("img",{src:r,alt:n,loading:"lazy",className:"block h-auto w-full",onLoad:o,onError:us}),e[7]=r,e[8]=n,e[9]=o,e[10]=p):p=e[10],p}if(f==="video"){let r;e[11]!==i.lastModified||e[12]!==i.publicUrl?(r=it(i.publicUrl,i.lastModified),e[11]=i.lastModified,e[12]=i.publicUrl,e[13]=r):r=e[13];const n=`${r}#t=0.1`;let o;e[14]!==a?(o=m=>a?.(m.currentTarget.videoWidth,m.currentTarget.videoHeight),e[14]=a,e[15]=o):o=e[15];let p;return e[16]!==s||e[17]!==n||e[18]!==o?(p=t.jsx("video",{src:n,preload:"metadata",muted:!0,playsInline:!0,controls:s,className:"block h-auto w-full",onLoadedMetadata:o}),e[16]=s,e[17]=n,e[18]=o,e[19]=p):p=e[19],p}let l;return e[20]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"flex aspect-[4/3] items-center justify-center",children:t.jsx(rt,{size:32,className:"text-muted-foreground"})}),e[20]=l):l=e[20],l}function us(c){c.currentTarget.style.display="none"}function xs(c){const e=de.c(34),{item:i,selected:s,onSelect:a}=c,f=Ge();let l,r,n,o,p;e[0]!==i.key||e[1]!==a||e[2]!==s||e[3]!==f?(l=Je(i.key),r="button",n=a,o=s,p=f("assets.browser.selectAsset",{name:l}),e[0]=i.key,e[1]=a,e[2]=s,e[3]=f,e[4]=l,e[5]=r,e[6]=n,e[7]=o,e[8]=p):(l=e[4],r=e[5],n=e[6],o=e[7],p=e[8]);const m=s?"ring-2 ring-foreground":"shadow-edge hover:ring-2 hover:ring-border";let u;e[9]!==m?(u=lt("group relative block w-full overflow-hidden rounded-xl bg-muted text-left outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring",m),e[9]=m,e[10]=u):u=e[10];let d;e[11]!==i?(d=t.jsx(Ft,{item:i}),e[11]=i,e[12]=d):d=e[12];let h;e[13]!==i.key?(h=qe(i.key)==="video"&&t.jsx("span",{className:"absolute left-2 top-2 flex size-7 items-center justify-center rounded-full bg-black/45 text-white",children:t.jsx(es,{size:12})}),e[13]=i.key,e[14]=h):h=e[14];let g;e[15]!==l?(g=t.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:l}),e[15]=l,e[16]=g):g=e[16];let j;e[17]!==i.size?(j=Ye(i.size),e[17]=i.size,e[18]=j):j=e[18];let b;e[19]!==j?(b=t.jsx("span",{className:"shrink-0 opacity-80",children:j}),e[19]=j,e[20]=b):b=e[20];let x;e[21]!==b||e[22]!==g?(x=t.jsxs("span",{className:"absolute inset-x-0 bottom-0 flex items-end gap-2 bg-gradient-to-t from-black/60 to-transparent px-2.5 pb-2 pt-8 text-xs text-white",children:[g,b]}),e[21]=b,e[22]=g,e[23]=x):x=e[23];let w;return e[24]!==l||e[25]!==r||e[26]!==x||e[27]!==n||e[28]!==o||e[29]!==p||e[30]!==u||e[31]!==d||e[32]!==h?(w=t.jsxs("button",{type:r,onClick:n,"aria-pressed":o,"aria-label":p,title:l,className:u,children:[d,h,x]}),e[24]=l,e[25]=r,e[26]=x,e[27]=n,e[28]=o,e[29]=p,e[30]=u,e[31]=d,e[32]=h,e[33]=w):w=e[33],w}function gs(c){const e=de.c(99),{item:i,onClose:s,onReplace:a,onDelete:f}=c,l=Ge(),[r]=At(),[n,o]=se.useState(null),[p,m]=se.useState(!1);let u;e[0]!==i.key?(u=Je(i.key),e[0]=i.key,e[1]=u):u=e[1];const d=u;let h;e[2]!==i.lastModified||e[3]!==r?(h=i.lastModified?new Intl.DateTimeFormat(Tt[r.language],{dateStyle:"medium"}).format(new Date(i.lastModified)):null,e[2]=i.lastModified,e[3]=r,e[4]=h):h=e[4];const g=h;let j;e[5]!==i.publicUrl||e[6]!==l?(j=async function(){try{await navigator.clipboard.writeText(i.publicUrl),m(!0),window.setTimeout(()=>m(!1),1500)}catch{Ee.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[5]=i.publicUrl,e[6]=l,e[7]=j):j=e[7];const b=j;let x;e[8]!==d?(x=t.jsx("p",{className:"min-w-0 flex-1 truncate text-sm font-semibold",title:d,children:d}),e[8]=d,e[9]=x):x=e[9];let w;e[10]!==l?(w=l("assets.details.close"),e[10]=l,e[11]=w):w=e[11];let C;e[12]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(is,{size:16}),e[12]=C):C=e[12];let P;e[13]!==s||e[14]!==w?(P=t.jsx(be,{type:"button",variant:"ghost",size:"icon-sm","aria-label":w,onClick:s,children:C}),e[13]=s,e[14]=w,e[15]=P):P=e[15];let y;e[16]!==x||e[17]!==P?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[x,P]}),e[16]=x,e[17]=P,e[18]=y):y=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=(ne,Z)=>o(`${ne} × ${Z}`),e[19]=v):v=e[19];let N;e[20]!==i?(N=t.jsx("div",{className:"overflow-hidden rounded-xl bg-muted shadow-edge",children:t.jsx(Ft,{item:i,controls:!0,onDimensions:v})}),e[20]=i,e[21]=N):N=e[21];let k;e[22]!==l?(k=l("assets.details.type"),e[22]=l,e[23]=k):k=e[23];let _;e[24]!==i.key?(_=et(i.key).toUpperCase(),e[24]=i.key,e[25]=_):_=e[25];let D;e[26]!==k||e[27]!==_?(D=t.jsx(Xe,{label:k,children:_}),e[26]=k,e[27]=_,e[28]=D):D=e[28];let M;e[29]!==l?(M=l("assets.details.size"),e[29]=l,e[30]=M):M=e[30];let K;e[31]!==i.size?(K=Ye(i.size),e[31]=i.size,e[32]=K):K=e[32];let J;e[33]!==M||e[34]!==K?(J=t.jsx(Xe,{label:M,children:K}),e[33]=M,e[34]=K,e[35]=J):J=e[35];let W;e[36]!==n||e[37]!==l?(W=n&&t.jsx(Xe,{label:l("assets.details.dimensions"),children:n}),e[36]=n,e[37]=l,e[38]=W):W=e[38];let G;e[39]!==l||e[40]!==g?(G=g&&t.jsx(Xe,{label:l("assets.details.uploaded"),children:g}),e[39]=l,e[40]=g,e[41]=G):G=e[41];let z;e[42]!==D||e[43]!==J||e[44]!==W||e[45]!==G?(z=t.jsxs("dl",{className:"grid grid-cols-2 gap-x-4 gap-y-3 text-sm",children:[D,J,W,G]}),e[42]=D,e[43]=J,e[44]=W,e[45]=G,e[46]=z):z=e[46];let R;e[47]!==l?(R=l("assets.details.url"),e[47]=l,e[48]=R):R=e[48];let L;e[49]!==R?(L=t.jsx("p",{className:"text-xs text-muted-foreground",children:R}),e[49]=R,e[50]=L):L=e[50];const ie=i.publicUrl;let F;e[51]!==l?(F=l("assets.details.url"),e[51]=l,e[52]=F):F=e[52];let S;e[53]!==i.publicUrl||e[54]!==F?(S=t.jsx(It,{readOnly:!0,value:ie,"aria-label":F,className:"min-w-0 flex-1 font-mono text-xs",onFocus:hs}),e[53]=i.publicUrl,e[54]=F,e[55]=S):S=e[55];let $;e[56]!==p?($=p?t.jsx(mt,{size:14}):t.jsx(vt,{size:14}),e[56]=p,e[57]=$):$=e[57];let A;e[58]!==p||e[59]!==l?(A=l(p?"assets.details.copied":"assets.details.copy"),e[58]=p,e[59]=l,e[60]=A):A=e[60];let T;e[61]!==b||e[62]!==$||e[63]!==A?(T=t.jsxs(be,{type:"button",variant:"outline",size:"sm",onClick:b,children:[$,A]}),e[61]=b,e[62]=$,e[63]=A,e[64]=T):T=e[64];let I;e[65]!==S||e[66]!==T?(I=t.jsxs("div",{className:"flex items-center gap-2",children:[S,T]}),e[65]=S,e[66]=T,e[67]=I):I=e[67];let U;e[68]!==L||e[69]!==I?(U=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[L,I]}),e[68]=L,e[69]=I,e[70]=U):U=e[70];let V;e[71]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ss,{size:14}),e[71]=V):V=e[71];let O;e[72]!==l?(O=l("assets.details.replace"),e[72]=l,e[73]=O):O=e[73];let E;e[74]!==a||e[75]!==O?(E=t.jsxs(be,{type:"button",variant:"outline",size:"sm",onClick:a,children:[V,O]}),e[74]=a,e[75]=O,e[76]=E):E=e[76];const me=i.publicUrl;let te;e[77]===Symbol.for("react.memo_cache_sentinel")?(te=t.jsx(pt,{size:14}),e[77]=te):te=e[77];let le;e[78]!==l?(le=l("assets.details.open"),e[78]=l,e[79]=le):le=e[79];let H;e[80]!==i.publicUrl||e[81]!==le?(H=t.jsx(be,{type:"button",variant:"outline",size:"sm",asChild:!0,children:t.jsxs("a",{href:me,target:"_blank",rel:"noreferrer",children:[te,le]})}),e[80]=i.publicUrl,e[81]=le,e[82]=H):H=e[82];let q;e[83]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(Nt,{size:14}),e[83]=q):q=e[83];let Q;e[84]!==l?(Q=l("assets.browser.deleteAction"),e[84]=l,e[85]=Q):Q=e[85];let B;e[86]!==f||e[87]!==Q?(B=t.jsxs(be,{type:"button",variant:"ghost",size:"sm",className:"ml-auto text-destructive hover:text-destructive",onClick:f,children:[q,Q]}),e[86]=f,e[87]=Q,e[88]=B):B=e[88];let Y;e[89]!==E||e[90]!==H||e[91]!==B?(Y=t.jsxs("div",{className:"mt-auto flex items-center gap-2 pt-2",children:[E,H,B]}),e[89]=E,e[90]=H,e[91]=B,e[92]=Y):Y=e[92];let re;return e[93]!==N||e[94]!==z||e[95]!==U||e[96]!==Y||e[97]!==y?(re=t.jsxs("aside",{className:"flex w-80 shrink-0 flex-col gap-4 overflow-y-auto border-l border-border/60 p-4",children:[y,N,z,U,Y]}),e[93]=N,e[94]=z,e[95]=U,e[96]=Y,e[97]=y,e[98]=re):re=e[98],re}function hs(c){return c.currentTarget.select()}function Xe(c){const e=de.c(7),{label:i,children:s}=c;let a;e[0]!==i?(a=t.jsx("dt",{className:"text-xs text-muted-foreground",children:i}),e[0]=i,e[1]=a):a=e[1];let f;e[2]!==s?(f=t.jsx("dd",{className:"truncate",children:s}),e[2]=s,e[3]=f):f=e[3];let l;return e[4]!==a||e[5]!==f?(l=t.jsxs("div",{className:"min-w-0",children:[a,f]}),e[4]=a,e[5]=f,e[6]=l):l=e[6],l}function js(c){const e=et(c);if(e!=="file")return e==="jpg"||e==="jpeg"?".jpg,.jpeg":`.${e}`}function at(c){return c?`${c.width} × ${c.height}`:null}const bs="min(45vh, 28rem)";function ys(c){const e=c.width/c.height;return`min(100%, calc(${bs} * ${e}), ${c.width}px)`}function ct(c){const e=de.c(12),{src:i,kind:s,alt:a,onDimensions:f}=c;if(s==="image"){let r;e[0]!==f?(r=o=>f({width:o.currentTarget.naturalWidth,height:o.currentTarget.naturalHeight}),e[0]=f,e[1]=r):r=e[1];let n;return e[2]!==a||e[3]!==i||e[4]!==r?(n=t.jsx("img",{src:i,alt:a,className:"max-h-full max-w-full rounded-xl shadow-edge",onLoad:r}),e[2]=a,e[3]=i,e[4]=r,e[5]=n):n=e[5],n}if(s==="video"){const r=`${i}#t=0.1`;let n;e[6]!==f?(n=p=>f({width:p.currentTarget.videoWidth,height:p.currentTarget.videoHeight}),e[6]=f,e[7]=n):n=e[7];let o;return e[8]!==r||e[9]!==n?(o=t.jsx("video",{src:r,preload:"metadata",muted:!0,playsInline:!0,controls:!0,className:"max-h-full max-w-full rounded-xl shadow-edge",onLoadedMetadata:n}),e[8]=r,e[9]=n,e[10]=o):o=e[10],o}let l;return e[11]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"flex aspect-[4/3] max-h-full w-full max-w-xs items-center justify-center rounded-xl bg-muted shadow-edge",children:t.jsx(rt,{size:32,className:"text-muted-foreground"})}),e[11]=l):l=e[11],l}function ks(c){const e=de.c(186),{configId:i,item:s,container:a,onClose:f,onReplaced:l}=c,r=Ge(),n=nt(),[o,p]=se.useState(null),[m,u]=se.useState(null),[d,h]=se.useState(null),[g,j]=se.useState(null),[b,x]=se.useState(!1),w=se.useRef(null);let C,P,y,v,N,k,_,D,M,K,J,W,G,z,R,L,ie,F,S,$,A,T,I;if(e[0]!==g||e[1]!==d||e[2]!==i||e[3]!==a||e[4]!==o||e[5]!==m||e[6]!==b||e[7]!==s.key||e[8]!==s.lastModified||e[9]!==s.publicUrl||e[10]!==s.size||e[11]!==f||e[12]!==l||e[13]!==r||e[14]!==n){const ee=Je(s.key),xe=et(s.key).toUpperCase();let ge;e[38]!==o||e[39]!==s.key?(ge=!o||qt(s.key,o.name),e[38]=o,e[39]=s.key,e[40]=ge):ge=e[40],k=ge;let He;e[41]!==g||e[42]!==d||e[43]!==k?(He=k&&!!d&&!!g&&Yt(g,d),e[41]=g,e[42]=d,e[43]=k,e[44]=He):He=e[44],_=He;let Ae;e[45]!==m?(Ae=function($e){$e&&(m&&URL.revokeObjectURL(m),p($e),u(encodeURI(URL.createObjectURL($e))),j(null))},e[45]=m,e[46]=Ae):Ae=e[46],y=Ae;let Te;e[47]!==m||e[48]!==f||e[49]!==n.isPending?(Te=function(){n.isPending||(m&&URL.revokeObjectURL(m),f())},e[47]=m,e[48]=f,e[49]=n.isPending,e[50]=Te):Te=e[50],v=Te;let Be;e[51]!==v||e[52]!==i||e[53]!==o||e[54]!==k||e[55]!==s.key||e[56]!==l||e[57]!==r||e[58]!==n?(Be=async function(){if(!(!o||!k))try{await n.mutateAsync({configId:i,file:o,replaceKey:s.key}),Ee.success(r("assets.replace.done")),l(),v()}catch($e){const Oe=$e;Ee.error(r("assets.replace.failed",{error:Oe instanceof Error?Oe.message:String(Oe)}))}},e[51]=v,e[52]=i,e[53]=o,e[54]=k,e[55]=s.key,e[56]=l,e[57]=r,e[58]=n,e[59]=Be):Be=e[59],N=Be,P=ls,z=!0,e[60]!==v?(R=pe=>!pe&&v(),e[60]=v,e[61]=R):R=e[61],C=rs,M="bottom",K=a,J="gap-0 rounded-t-2xl border-0",e[62]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx("div",{className:"mx-auto mt-2 h-1 w-10 rounded-full bg-border"}),e[62]=W):W=e[62];const ye=r("assets.replace.title",{name:ee});let X;e[63]!==ye?(X=t.jsx(ns,{children:ye}),e[63]=ye,e[64]=X):X=e[64];let he;e[65]!==r?(he=r("assets.replace.description"),e[65]=r,e[66]=he):he=e[66];let je;e[67]!==he?(je=t.jsx(os,{children:he}),e[67]=he,e[68]=je):je=e[68],e[69]!==X||e[70]!==je?(G=t.jsxs(as,{className:"px-6 pb-2 pt-3",children:[X,je]}),e[69]=X,e[70]=je,e[71]=G):G=e[71],A="grid grid-cols-[1fr_auto_1fr] items-start gap-4 px-6 py-4";let Ue;e[72]!==r?(Ue=r("assets.replace.before"),e[72]=r,e[73]=Ue):Ue=e[73];let Fe;e[74]!==Ue?(Fe=t.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:Ue}),e[74]=Ue,e[75]=Fe):Fe=e[75];let ue;e[76]!==s.lastModified||e[77]!==s.publicUrl?(ue=it(s.publicUrl,s.lastModified),e[76]=s.lastModified,e[77]=s.publicUrl,e[78]=ue):ue=e[78];let ke;e[79]!==s.key?(ke=qe(s.key),e[79]=s.key,e[80]=ke):ke=e[80];let ve;e[81]!==ee||e[82]!==ue||e[83]!==ke?(ve=t.jsx("div",{className:"flex h-[min(45vh,28rem)] items-center justify-center",children:t.jsx(ct,{src:ue,kind:ke,alt:ee,onDimensions:h})}),e[81]=ee,e[82]=ue,e[83]=ke,e[84]=ve):ve=e[84];let Pe;e[85]!==ee?(Pe=t.jsx("p",{className:"truncate font-medium",children:ee}),e[85]=ee,e[86]=Pe):Pe=e[86];let Ne;e[87]!==s.size?(Ne=Ye(s.size),e[87]=s.size,e[88]=Ne):Ne=e[88];let we;e[89]!==d?(we=at(d),e[89]=d,e[90]=we):we=e[90];let We;e[91]!==Ne||e[92]!==we?(We=[Ne,we].filter(Boolean),e[91]=Ne,e[92]=we,e[93]=We):We=e[93];const Le=We.join(" · ");let De;e[94]!==Le?(De=t.jsx("p",{className:"text-muted-foreground",children:Le}),e[94]=Le,e[95]=De):De=e[95];let _e;e[96]!==Pe||e[97]!==De?(_e=t.jsxs("div",{className:"min-w-0 text-xs",children:[Pe,De]}),e[96]=Pe,e[97]=De,e[98]=_e):_e=e[98],e[99]!==Fe||e[100]!==ve||e[101]!==_e?(T=t.jsxs("div",{className:"flex min-w-0 flex-col gap-2",children:[Fe,ve,_e]}),e[99]=Fe,e[100]=ve,e[101]=_e,e[102]=T):T=e[102],e[103]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(Mt,{size:18,className:"self-center text-muted-foreground","aria-hidden":!0}),e[103]=I):I=e[103],F="flex min-w-0 flex-col gap-2";let Se;e[104]!==r?(Se=r("assets.replace.after"),e[104]=r,e[105]=Se):Se=e[105],e[106]!==Se?(S=t.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:Se}),e[106]=Se,e[107]=S):S=e[107];let Ie,Me;e[108]===Symbol.for("react.memo_cache_sentinel")?(Ie=pe=>{pe.preventDefault(),x(!0)},Me=()=>x(!1),e[108]=Ie,e[109]=Me):(Ie=e[108],Me=e[109]);let Ce;e[110]!==y?(Ce=pe=>{pe.preventDefault(),pe.stopPropagation(),x(!1),y(pe.dataTransfer.files[0])},e[110]=y,e[111]=Ce):Ce=e[111];let ze;e[112]!==d||e[113]!==o||e[114]!==m||e[115]!==b||e[116]!==r?(ze=o&&m?t.jsx(ct,{src:m,kind:qe(o.name),alt:o.name,onDimensions:j}):t.jsxs("div",{className:lt("flex max-h-full flex-col items-center justify-center gap-3 rounded-xl bg-muted p-4 text-center text-sm text-muted-foreground",b&&"bg-primary/5 ring-2 ring-primary"),style:{width:d?ys(d):"100%",aspectRatio:d?`${d.width} / ${d.height}`:"16 / 9"},children:[t.jsx(Ze,{size:20}),r("assets.replace.dropHint"),t.jsx(be,{type:"button",variant:"outline",size:"sm",onClick:()=>w.current?.click(),children:r("assets.replace.choose")})]}),e[112]=d,e[113]=o,e[114]=m,e[115]=b,e[116]=r,e[117]=ze):ze=e[117],e[118]!==Ce||e[119]!==ze?($=t.jsx("div",{className:"flex h-[min(45vh,28rem)] items-center justify-center",onDragOver:Ie,onDragLeave:Me,onDrop:Ce,children:ze}),e[118]=Ce,e[119]=ze,e[120]=$):$=e[120],D="min-w-0 text-xs",L=o?t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"truncate font-medium",children:o.name}),t.jsx("p",{className:"text-muted-foreground",children:[Ye(o.size),at(g)].filter(Boolean).join(" · ")})]}),t.jsx(be,{type:"button",variant:"outline",size:"sm",disabled:n.isPending,onClick:()=>w.current?.click(),children:r("assets.replace.chooseAnother")})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"font-medium text-muted-foreground",children:r("assets.replace.noFile")}),t.jsx("p",{className:"text-muted-foreground",children:r("assets.replace.sameFormatHint",{format:xe})})]}),ie=!k&&t.jsxs("p",{className:"mt-1 flex items-center gap-1 text-destructive",children:[t.jsx(ot,{size:12,className:"shrink-0"}),r("assets.replace.wrongFormat",{format:xe})]}),e[0]=g,e[1]=d,e[2]=i,e[3]=a,e[4]=o,e[5]=m,e[6]=b,e[7]=s.key,e[8]=s.lastModified,e[9]=s.publicUrl,e[10]=s.size,e[11]=f,e[12]=l,e[13]=r,e[14]=n,e[15]=C,e[16]=P,e[17]=y,e[18]=v,e[19]=N,e[20]=k,e[21]=_,e[22]=D,e[23]=M,e[24]=K,e[25]=J,e[26]=W,e[27]=G,e[28]=z,e[29]=R,e[30]=L,e[31]=ie,e[32]=F,e[33]=S,e[34]=$,e[35]=A,e[36]=T,e[37]=I}else C=e[15],P=e[16],y=e[17],v=e[18],N=e[19],k=e[20],_=e[21],D=e[22],M=e[23],K=e[24],J=e[25],W=e[26],G=e[27],z=e[28],R=e[29],L=e[30],ie=e[31],F=e[32],S=e[33],$=e[34],A=e[35],T=e[36],I=e[37];let U;e[121]!==_||e[122]!==r?(U=_&&t.jsxs("p",{className:"mt-1 flex items-center gap-1 text-warning",children:[t.jsx(ot,{size:12,className:"shrink-0"}),r("assets.replace.ratioWarning")]}),e[121]=_,e[122]=r,e[123]=U):U=e[123];let V;e[124]!==D||e[125]!==U||e[126]!==L||e[127]!==ie?(V=t.jsxs("div",{className:D,children:[L,ie,U]}),e[124]=D,e[125]=U,e[126]=L,e[127]=ie,e[128]=V):V=e[128];let O;e[129]!==V||e[130]!==F||e[131]!==S||e[132]!==$?(O=t.jsxs("div",{className:F,children:[S,$,V]}),e[129]=V,e[130]=F,e[131]=S,e[132]=$,e[133]=O):O=e[133];let E;e[134]!==O||e[135]!==A||e[136]!==T||e[137]!==I?(E=t.jsxs("div",{className:A,children:[T,I,O]}),e[134]=O,e[135]=A,e[136]=T,e[137]=I,e[138]=E):E=e[138];let me;e[139]!==o||e[140]!==r?(me=r(o?"assets.replace.cacheNote":"assets.replace.compareHint"),e[139]=o,e[140]=r,e[141]=me):me=e[141];let te;e[142]!==me?(te=t.jsx("p",{className:"min-w-0 flex-1 text-xs text-muted-foreground",children:me}),e[142]=me,e[143]=te):te=e[143];const le=n.isPending;let H;e[144]!==r?(H=r("assets.replace.cancel"),e[144]=r,e[145]=H):H=e[145];let q;e[146]!==v||e[147]!==H||e[148]!==n.isPending?(q=t.jsx(be,{type:"button",variant:"ghost",size:"sm",disabled:le,onClick:v,children:H}),e[146]=v,e[147]=H,e[148]=n.isPending,e[149]=q):q=e[149];const Q=!o||!k||n.isPending;let B;e[150]!==n.isPending?(B=n.isPending?t.jsx(Ke,{className:"size-3.5"}):null,e[150]=n.isPending,e[151]=B):B=e[151];let Y;e[152]!==r||e[153]!==n.isPending?(Y=n.isPending?r("assets.replace.replacing"):r("assets.replace.confirm"),e[152]=r,e[153]=n.isPending,e[154]=Y):Y=e[154];let re;e[155]!==N||e[156]!==Q||e[157]!==B||e[158]!==Y?(re=t.jsxs(be,{type:"button",size:"sm",disabled:Q,onClick:N,children:[B,Y]}),e[155]=N,e[156]=Q,e[157]=B,e[158]=Y,e[159]=re):re=e[159];let ne;e[160]!==te||e[161]!==q||e[162]!==re?(ne=t.jsxs(cs,{className:"flex-row items-center gap-2 px-6 pb-5 pt-1",children:[te,q,re]}),e[160]=te,e[161]=q,e[162]=re,e[163]=ne):ne=e[163];let Z;e[164]!==s.key?(Z=js(s.key),e[164]=s.key,e[165]=Z):Z=e[165];let ce;e[166]!==y?(ce=ee=>{const xe=ee.target.files?.[0];ee.target.value="",y(xe)},e[166]=y,e[167]=ce):ce=e[167];let oe;e[168]!==Z||e[169]!==ce?(oe=t.jsx("input",{ref:w,type:"file",className:"hidden",accept:Z,onChange:ce}),e[168]=Z,e[169]=ce,e[170]=oe):oe=e[170];let ae;e[171]!==C||e[172]!==M||e[173]!==K||e[174]!==J||e[175]!==W||e[176]!==G||e[177]!==E||e[178]!==ne||e[179]!==oe?(ae=t.jsxs(C,{side:M,container:K,className:J,children:[W,G,E,ne,oe]}),e[171]=C,e[172]=M,e[173]=K,e[174]=J,e[175]=W,e[176]=G,e[177]=E,e[178]=ne,e[179]=oe,e[180]=ae):ae=e[180];let fe;return e[181]!==P||e[182]!==z||e[183]!==R||e[184]!==ae?(fe=t.jsx(P,{open:z,onOpenChange:R,children:ae}),e[181]=P,e[182]=z,e[183]=R,e[184]=ae,e[185]=fe):fe=e[185],fe}function vs(c){const e=de.c(47),{configId:i,item:s,onClose:a,onDeleted:f}=c,l=Ge(),r=St();let n;e[0]!==i||e[1]!==r||e[2]!==s||e[3]!==a||e[4]!==f||e[5]!==l?(n=async function(){if(s)try{await r.mutateAsync({configId:i,key:s.key}),Ee.success(l("assets.browser.deleted")),f(s.key),a()}catch{Ee.error(l("assets.browser.deleteFailed"))}},e[0]=i,e[1]=r,e[2]=s,e[3]=a,e[4]=f,e[5]=l,e[6]=n):n=e[6];const o=n,p=!!s;let m;e[7]!==a?(m=M=>!M&&a(),e[7]=a,e[8]=m):m=e[8];let u;e[9]!==l?(u=l("assets.browser.deleteConfirmTitle"),e[9]=l,e[10]=u):u=e[10];let d;e[11]!==u?(d=t.jsx(ut,{children:u}),e[11]=u,e[12]=d):d=e[12];let h;e[13]!==s||e[14]!==l?(h=l("assets.browser.deleteConfirmDescription",{name:s?Je(s.key):""}),e[13]=s,e[14]=l,e[15]=h):h=e[15];let g;e[16]!==h?(g=t.jsx(xt,{children:h}),e[16]=h,e[17]=g):g=e[17];let j;e[18]!==d||e[19]!==g?(j=t.jsxs(gt,{children:[d,g]}),e[18]=d,e[19]=g,e[20]=j):j=e[20];const b=r.isPending;let x;e[21]!==l?(x=l("assets.browser.deleteCancel"),e[21]=l,e[22]=x):x=e[22];let w;e[23]!==r.isPending||e[24]!==x?(w=t.jsx(ht,{disabled:b,children:x}),e[23]=r.isPending,e[24]=x,e[25]=w):w=e[25];const C=r.isPending;let P;e[26]!==o?(P=M=>{M.preventDefault(),o()},e[26]=o,e[27]=P):P=e[27];let y;e[28]!==r.isPending?(y=r.isPending?t.jsx(Ke,{className:"size-3.5"}):null,e[28]=r.isPending,e[29]=y):y=e[29];let v;e[30]!==l?(v=l("assets.browser.deleteConfirm"),e[30]=l,e[31]=v):v=e[31];let N;e[32]!==r.isPending||e[33]!==P||e[34]!==y||e[35]!==v?(N=t.jsxs(jt,{variant:"destructive",disabled:C,onClick:P,children:[y,v]}),e[32]=r.isPending,e[33]=P,e[34]=y,e[35]=v,e[36]=N):N=e[36];let k;e[37]!==w||e[38]!==N?(k=t.jsxs(bt,{children:[w,N]}),e[37]=w,e[38]=N,e[39]=k):k=e[39];let _;e[40]!==k||e[41]!==j?(_=t.jsxs(yt,{children:[j,k]}),e[40]=k,e[41]=j,e[42]=_):_=e[42];let D;return e[43]!==_||e[44]!==p||e[45]!==m?(D=t.jsx(kt,{open:p,onOpenChange:m,children:_}),e[43]=_,e[44]=p,e[45]=m,e[46]=D):D=e[46],D}function Ps(c){const e=de.c(8),{virtualMcpId:i}=c,s=Kt(i),a=Vt();let f;e[0]!==a||e[1]!==s?(f=Xt(a,Rt(s),s?.metadata?.assetStorageConfigId),e[0]=a,e[1]=s,e[2]=f):f=e[2];const l=f;if(!l){let n;return e[3]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Ns,{}),e[3]=n):n=e[3],n}if(Zt(s)){let n;return e[4]!==l?(n=t.jsx(ms,{config:l}),e[4]=l,e[5]=n):n=e[5],n}let r;return e[6]!==l?(r=t.jsx(ws,{config:l}),e[6]=l,e[7]=r):r=e[7],r}function Ns(){const c=de.c(12),e=Ge();let i;c[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:t.jsx(Wt,{size:20,className:"text-muted-foreground"})}),c[0]=i):i=c[0];let s;c[1]!==e?(s=e("assets.browser.noBucketTitle"),c[1]=e,c[2]=s):s=c[2];let a;c[3]!==s?(a=t.jsx("p",{className:"text-sm font-medium",children:s}),c[3]=s,c[4]=a):a=c[4];let f;c[5]!==e?(f=e("assets.browser.noBucketDescription"),c[5]=e,c[6]=f):f=c[6];let l;c[7]!==f?(l=t.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:f}),c[7]=f,c[8]=l):l=c[8];let r;return c[9]!==a||c[10]!==l?(r=t.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[i,t.jsxs("div",{children:[a,l]})]}),c[9]=a,c[10]=l,c[11]=r):r=c[11],r}function ws(c){const e=de.c(99),{config:i}=c,s=Ge(),[a,f]=se.useState(""),l=Dt(a,300);let r;e[0]!==i.id||e[1]!==l?(r={configId:i.id,search:l},e[0]=i.id,e[1]=l,e[2]=r):r=e[2];const n=_t(r),o=nt(),[p,m]=se.useState(!1),[u,d]=se.useState(null),h=se.useRef(null);let g;e[3]!==i.id||e[4]!==n||e[5]!==s||e[6]!==o?(g=async function(S){if(!S)return;const $=Array.from(S);if($.length===0)return;const A=[];for(const T of $)try{await o.mutateAsync({configId:i.id,file:T})}catch(I){const U=I;A.push(`${T.name} (${U instanceof Error?U.message:"upload failed"})`)}await n.refetch(),A.length>0&&Ee.error(A.length===$.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:A.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:A.join("; ")}))},e[3]=i.id,e[4]=n,e[5]=s,e[6]=o,e[7]=g):g=e[7];const j=g;let b;e[8]===Symbol.for("react.memo_cache_sentinel")?(b=function(S){S.preventDefault(),m(!0)},e[8]=b):b=e[8];const x=b;let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=function(){m(!1)},e[9]=w):w=e[9];const C=w;let P;e[10]!==j?(P=function(S){S.preventDefault(),S.stopPropagation(),m(!1),j(S.dataTransfer.files)},e[10]=j,e[11]=P):P=e[11];const y=P,[v,N]=dt();let k,_,D,M,K,J,W;if(e[12]!==i.name||e[13]!==l||e[14]!==N||e[15]!==v||e[16]!==j||e[17]!==p||e[18]!==n||e[19]!==y||e[20]!==a||e[21]!==s||e[22]!==o.isPending){const F=n.data?.pages??[],S=F.some(_s),$=F.flatMap(Ds),A=Ut($,zt(v)),T=l.trim(),I=a!==l||n.isFetching&&!n.isFetchingNextPage;W="flex h-full min-h-0 flex-col gap-3 p-4";let U;e[30]!==s?(U=s("assets.browser.title"),e[30]=s,e[31]=U):U=e[31];let V;e[32]!==U?(V=t.jsx("h2",{className:"text-sm font-semibold",children:U}),e[32]=U,e[33]=V):V=e[33];let O;e[34]!==i.name||e[35]!==s?(O=s("assets.browser.bucketLabel",{name:i.name}),e[34]=i.name,e[35]=s,e[36]=O):O=e[36];let E;e[37]!==O?(E=t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:O}),e[37]=O,e[38]=E):E=e[38];let me;e[39]!==V||e[40]!==E?(me=t.jsxs("div",{className:"min-w-0",children:[V,E]}),e[39]=V,e[40]=E,e[41]=me):me=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te=()=>h.current?.click(),e[42]=te):te=e[42];let le;e[43]!==o.isPending?(le=o.isPending?t.jsx(Ke,{className:"size-3.5"}):t.jsx(Ze,{size:14}),e[43]=o.isPending,e[44]=le):le=e[44];let H;e[45]!==s||e[46]!==o.isPending?(H=o.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[45]=s,e[46]=o.isPending,e[47]=H):H=e[47];let q;e[48]!==le||e[49]!==H||e[50]!==o.isPending?(q=t.jsxs(be,{type:"button",size:"sm",disabled:o.isPending,onClick:te,children:[le,H]}),e[48]=le,e[49]=H,e[50]=o.isPending,e[51]=q):q=e[51];let Q;e[52]!==j?(Q=t.jsx("input",{ref:h,type:"file",multiple:!0,className:"hidden",onChange:ee=>{const xe=Array.from(ee.target.files??[]);ee.target.value="",j(xe)}}),e[52]=j,e[53]=Q):Q=e[53],e[54]!==me||e[55]!==q||e[56]!==Q?(k=t.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[me,q,Q]}),e[54]=me,e[55]=q,e[56]=Q,e[57]=k):k=e[57];let B;e[58]!==s?(B=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[58]=s,e[59]=B):B=e[59],e[60]!==I||e[61]!==a||e[62]!==B?(_=t.jsx(wt,{value:a,onChange:f,isSearching:I,placeholder:B,className:"shrink-0"}),e[60]=I,e[61]=a,e[62]=B,e[63]=_):_=e[63];let Y;e[64]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>h.current?.click(),e[64]=Y):Y=e[64];const re=p&&"border-primary bg-primary/5",ne=o.isPending&&"pointer-events-none opacity-60";let Z;e[65]!==re||e[66]!==ne?(Z=lt("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",re,ne),e[65]=re,e[66]=ne,e[67]=Z):Z=e[67];let ce;e[68]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsx(Ze,{size:16,className:"text-muted-foreground"}),e[68]=ce):ce=e[68];let oe;e[69]!==s?(oe=s("filePicker.filePickerDialog.dropFilesOrClick"),e[69]=s,e[70]=oe):oe=e[70];let ae;e[71]!==s?(ae=s("filePicker.filePickerDialog.uploadSizeLimit"),e[71]=s,e[72]=ae):ae=e[72];let fe;e[73]!==oe||e[74]!==ae?(fe=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[oe," ",ae]}),e[73]=oe,e[74]=ae,e[75]=fe):fe=e[75],e[76]!==y||e[77]!==Z||e[78]!==fe?(D=t.jsxs("button",{type:"button",onClick:Y,onDragOver:x,onDragLeave:C,onDrop:y,className:Z,children:[ce,fe]}),e[76]=y,e[77]=Z,e[78]=fe,e[79]=D):D=e[79],M="min-h-0 flex-1 overflow-y-auto pr-1",K=S||n.isError?t.jsx(Jt,{denied:S,retrying:n.isFetching,onRetry:()=>{n.refetch()}}):null,J=$.length===0?n.isPending||n.isError||S?null:T?t.jsx(ft,{title:s("filePicker.filePickerDialog.noMatches",{query:T}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):t.jsx(ft,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):t.jsx("div",{ref:N,className:"flex items-start gap-3",children:A.map((ee,xe)=>t.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ee.map(ge=>t.jsx(Ss,{item:ge,onDelete:()=>d(ge)},ge.key))},xe))}),e[12]=i.name,e[13]=l,e[14]=N,e[15]=v,e[16]=j,e[17]=p,e[18]=n,e[19]=y,e[20]=a,e[21]=s,e[22]=o.isPending,e[23]=k,e[24]=_,e[25]=D,e[26]=M,e[27]=K,e[28]=J,e[29]=W}else k=e[23],_=e[24],D=e[25],M=e[26],K=e[27],J=e[28],W=e[29];let G;e[80]!==n||e[81]!==s?(G=n.hasNextPage&&t.jsx("div",{className:"flex justify-center py-4",children:t.jsx(be,{type:"button",variant:"outline",size:"sm",disabled:n.isFetchingNextPage,onClick:()=>n.fetchNextPage(),children:n.isFetchingNextPage?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[80]=n,e[81]=s,e[82]=G):G=e[82];let z;e[83]!==G||e[84]!==M||e[85]!==K||e[86]!==J?(z=t.jsxs("div",{className:M,children:[K,J,G]}),e[83]=G,e[84]=M,e[85]=K,e[86]=J,e[87]=z):z=e[87];let R;e[88]===Symbol.for("react.memo_cache_sentinel")?(R=()=>d(null),e[88]=R):R=e[88];let L;e[89]!==i.id||e[90]!==u?(L=t.jsx(Us,{configId:i.id,item:u,onClose:R}),e[89]=i.id,e[90]=u,e[91]=L):L=e[91];let ie;return e[92]!==k||e[93]!==_||e[94]!==D||e[95]!==z||e[96]!==L||e[97]!==W?(ie=t.jsxs("div",{className:W,children:[k,_,D,z,L]}),e[92]=k,e[93]=_,e[94]=D,e[95]=z,e[96]=L,e[97]=W,e[98]=ie):ie=e[98],ie}function Ds(c){return c.items}function _s(c){return c.listingError==="access_denied"}function ft(c){const e=de.c(8),{title:i,description:s}=c;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:t.jsx(Pt,{size:18,className:"text-muted-foreground"})}),e[0]=a):a=e[0];let f;e[1]!==i?(f=t.jsx("p",{className:"text-sm font-medium",children:i}),e[1]=i,e[2]=f):f=e[2];let l;e[3]!==s?(l=t.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==f||e[6]!==l?(r=t.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[a,f,l]}),e[5]=f,e[6]=l,e[7]=r):r=e[7],r}function Ss(c){const e=de.c(34),{item:i,onDelete:s}=c;let a;e[0]!==i.key?(a=et(i.key),e[0]=i.key,e[1]=a):a=e[1];const f=a;let l;e[2]!==i.key?(l=Qt(i.key),e[2]=i.key,e[3]=l):l=e[3];const r=l;let n;e[4]!==r||e[5]!==i.key||e[6]!==i.publicUrl?(n=r?t.jsx("img",{src:i.publicUrl,alt:i.key,loading:"lazy",className:"block h-auto w-full",onError:Cs}):t.jsx("div",{className:"flex aspect-square items-center justify-center",children:t.jsx(rt,{size:28,className:"text-muted-foreground"})}),e[4]=r,e[5]=i.key,e[6]=i.publicUrl,e[7]=n):n=e[7];let o;e[8]!==i.key||e[9]!==i.publicUrl||e[10]!==n?(o=t.jsx("a",{href:i.publicUrl,target:"_blank",rel:"noreferrer",title:i.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:n}),e[8]=i.key,e[9]=i.publicUrl,e[10]=n,e[11]=o):o=e[11];const p=i.key;let m;e[12]!==i.key?(m=Ct(i.key),e[12]=i.key,e[13]=m):m=e[13];let u;e[14]!==i.key||e[15]!==m?(u=t.jsx("p",{className:"truncate text-xs font-medium",title:p,children:m}),e[14]=i.key,e[15]=m,e[16]=u):u=e[16];let d;e[17]!==i.size?(d=Ye(i.size),e[17]=i.size,e[18]=d):d=e[18];let h;e[19]!==f||e[20]!==d?(h=t.jsxs("p",{className:"text-2xs uppercase text-muted-foreground",children:[f," · ",d]}),e[19]=f,e[20]=d,e[21]=h):h=e[21];let g;e[22]!==u||e[23]!==h?(g=t.jsxs("div",{className:"min-w-0 flex-1",children:[u,h]}),e[22]=u,e[23]=h,e[24]=g):g=e[24];let j;e[25]!==i||e[26]!==s?(j=t.jsx(zs,{item:i,onDelete:s}),e[25]=i,e[26]=s,e[27]=j):j=e[27];let b;e[28]!==g||e[29]!==j?(b=t.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[g,j]}),e[28]=g,e[29]=j,e[30]=b):b=e[30];let x;return e[31]!==b||e[32]!==o?(x=t.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[o,b]}),e[31]=b,e[32]=o,e[33]=x):x=e[33],x}function Cs(c){c.target.style.display="none"}function zs(c){const e=de.c(36),{item:i,onDelete:s}=c,a=Ge(),[f,l]=se.useState(!1);let r;e[0]!==i.publicUrl||e[1]!==a?(r=async function(){try{await navigator.clipboard.writeText(i.publicUrl),l(!0),window.setTimeout(()=>l(!1),1500)}catch{Ee.error(a("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=i.publicUrl,e[1]=a,e[2]=r):r=e[2];const n=r;let o;e[3]!==a?(o=a("filePicker.filePickerDialog.assetActions"),e[3]=a,e[4]=o):o=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Gt,{size:14}),e[5]=p):p=e[5];let m;e[6]!==o?(m=t.jsx(Lt,{asChild:!0,children:t.jsx(be,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0","aria-label":o,children:p})}),e[6]=o,e[7]=m):m=e[7];let u;e[8]!==f?(u=f?t.jsx(mt,{size:14}):t.jsx(vt,{size:14}),e[8]=f,e[9]=u):u=e[9];let d;e[10]!==f||e[11]!==a?(d=a(f?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=f,e[11]=a,e[12]=d):d=e[12];let h;e[13]!==n||e[14]!==u||e[15]!==d?(h=t.jsxs(tt,{onClick:n,children:[u,d]}),e[13]=n,e[14]=u,e[15]=d,e[16]=h):h=e[16];const g=i.publicUrl;let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(pt,{size:14}),e[17]=j):j=e[17];let b;e[18]!==a?(b=a("filePicker.filePickerDialog.openInNewTab"),e[18]=a,e[19]=b):b=e[19];let x;e[20]!==i.publicUrl||e[21]!==b?(x=t.jsx(tt,{asChild:!0,children:t.jsxs("a",{href:g,target:"_blank",rel:"noreferrer",children:[j,b]})}),e[20]=i.publicUrl,e[21]=b,e[22]=x):x=e[22];let w;e[23]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(Nt,{size:14}),e[23]=w):w=e[23];let C;e[24]!==a?(C=a("assets.browser.deleteAction"),e[24]=a,e[25]=C):C=e[25];let P;e[26]!==s||e[27]!==C?(P=t.jsxs(tt,{variant:"destructive",onClick:s,children:[w,C]}),e[26]=s,e[27]=C,e[28]=P):P=e[28];let y;e[29]!==x||e[30]!==P||e[31]!==h?(y=t.jsxs(Ot,{align:"end",children:[h,x,P]}),e[29]=x,e[30]=P,e[31]=h,e[32]=y):y=e[32];let v;return e[33]!==y||e[34]!==m?(v=t.jsxs(Et,{children:[m,y]}),e[33]=y,e[34]=m,e[35]=v):v=e[35],v}function Us(c){const e=de.c(46),{configId:i,item:s,onClose:a}=c,f=Ge(),l=St();let r;e[0]!==i||e[1]!==l||e[2]!==s||e[3]!==a||e[4]!==f?(r=async function(){if(s)try{await l.mutateAsync({configId:i,key:s.key}),Ee.success(f("assets.browser.deleted")),a()}catch{Ee.error(f("assets.browser.deleteFailed"))}},e[0]=i,e[1]=l,e[2]=s,e[3]=a,e[4]=f,e[5]=r):r=e[5];const n=r,o=!!s;let p;e[6]!==a?(p=D=>!D&&a(),e[6]=a,e[7]=p):p=e[7];let m;e[8]!==f?(m=f("assets.browser.deleteConfirmTitle"),e[8]=f,e[9]=m):m=e[9];let u;e[10]!==m?(u=t.jsx(ut,{children:m}),e[10]=m,e[11]=u):u=e[11];let d;e[12]!==s||e[13]!==f?(d=f("assets.browser.deleteConfirmDescription",{name:s?Ct(s.key):""}),e[12]=s,e[13]=f,e[14]=d):d=e[14];let h;e[15]!==d?(h=t.jsx(xt,{children:d}),e[15]=d,e[16]=h):h=e[16];let g;e[17]!==u||e[18]!==h?(g=t.jsxs(gt,{children:[u,h]}),e[17]=u,e[18]=h,e[19]=g):g=e[19];const j=l.isPending;let b;e[20]!==f?(b=f("assets.browser.deleteCancel"),e[20]=f,e[21]=b):b=e[21];let x;e[22]!==l.isPending||e[23]!==b?(x=t.jsx(ht,{disabled:j,children:b}),e[22]=l.isPending,e[23]=b,e[24]=x):x=e[24];const w=l.isPending;let C;e[25]!==n?(C=D=>{D.preventDefault(),n()},e[25]=n,e[26]=C):C=e[26];let P;e[27]!==l.isPending?(P=l.isPending?t.jsx(Ke,{className:"size-3.5"}):null,e[27]=l.isPending,e[28]=P):P=e[28];let y;e[29]!==f?(y=f("assets.browser.deleteConfirm"),e[29]=f,e[30]=y):y=e[30];let v;e[31]!==l.isPending||e[32]!==C||e[33]!==P||e[34]!==y?(v=t.jsxs(jt,{variant:"destructive",disabled:w,onClick:C,children:[P,y]}),e[31]=l.isPending,e[32]=C,e[33]=P,e[34]=y,e[35]=v):v=e[35];let N;e[36]!==x||e[37]!==v?(N=t.jsxs(bt,{children:[x,v]}),e[36]=x,e[37]=v,e[38]=N):N=e[38];let k;e[39]!==N||e[40]!==g?(k=t.jsxs(yt,{children:[g,N]}),e[39]=N,e[40]=g,e[41]=k):k=e[41];let _;return e[42]!==k||e[43]!==o||e[44]!==p?(_=t.jsx(kt,{open:o,onOpenChange:p,children:k}),e[42]=k,e[43]=o,e[44]=p,e[45]=_):_=e[45],_}function Fs(){const c=de.c(2),e=ds();let i;return c[0]!==e?(i=t.jsx(Bt,{tabId:"assets",children:t.jsx(Ps,{virtualMcpId:e})}),c[0]=e,c[1]=i):i=c[1],i}function Lr(){const c=de.c(1);let e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ht.Content,{children:t.jsx(Fs,{})}),c[0]=e):e=c[0],e}export{Lr as default};
@@ -1,4 +1,4 @@
1
- import{dM as Zt,c as q,b as ee,r as w,j as t,B,aW as qt,m as At,a4 as $t,D as et,v as tt,w as st,x as ot,aS as at,y as nt,t as X,d_ as es,_ as ts,X as ss,Z as os,ap as as,an as ns,ao as is,Y as Oe,b4 as rs,h as Le,aH as pt,aI as xt,aJ as gt,aK as ht,b7 as jt,aL as yt,aM as bt,aN as vt,E as Ke,aE as ls,e6 as Ct,I as Nt,ho as cs,aj as ds,b5 as Ze,n as Xe,f as ms}from"./index-BRgWMc-5.js";import{ChatLayout as us}from"./index-Bjhw4G6x.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Ye}from"./agent-icon-DFyNTmmD.js";import{n as kt}from"./BookOpen01-C9X5S-cQ.js";import{t as rt}from"./ChevronDown-CGJhfuSb.js";import{e as ys}from"./UserSquare-CUb4s2-c.js";import{s as Tt}from"./File02-DclovfNb.js";import{e as lt,b as zt,t as Ot}from"./Tool01-Cnkd4pP7.js";import{a as bs}from"./Image01-CeQMNu9o.js";import{i as vs}from"./SearchMd-BlPJmXQo.js";import{B as Kt}from"./badge-Ba_DCLD5.js";import{C as Mt}from"./checkbox-yHZpOTt9.js";import{S as ct}from"./switch-CfemO1do.js";import{a as Ft,b as Rt,P as Lt}from"./popover-DGvrj6fy.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-Dg1M4JCf.js";import{g as ws,a as _s}from"./gateway-client-BVWghiMF.js";import{b as dt}from"./use-connection-wSXmVdCY.js";import{u as Ds}from"./use-mcp-client-OYKYr7Zc.js";import{u as Is}from"./use-mcp-tools-Ben5ajiJ.js";import{I as Ps}from"./integration-icon-Cu3N1muw.js";import{M as As}from"./select-model-YSEeD0Az.js";import{u as $s}from"./use-ai-providers-BM99Jk3f.js";import{U as Es,b as zs}from"./build-improve-prompt-doc-CPww4N3Z.js";import{a as ve,c as Os,d as Ks}from"./use-automations-Co69mrXt.js";import{c as Ms,b as Fs,P as Rs,Q as Ls}from"./chat-context-ZeSpVj2j.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-Dc4ca33I.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-DgFM5mQB.js";import{u as Js}from"./shell-layout-2a3HocEU.js";import{i as Vt}from"./ArrowLeft-BhV4BHrM.js";import{i as Xs}from"./ArrowUp-DgFMMMBQ.js";import{s as Fe}from"./UserCheck01-CcIH7s2N.js";import{s as Ys}from"./Trash01-CnPGIwZe.js";import{s as mt}from"./XClose-CtxnajtG.js";import{u as _t}from"./use-debounced-autosave-C2p5-3yn.js";import{T as Qs,a as Zs}from"./input-CCPCHy_J.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-D0RV1z5x.js";import{s as to}from"./Plus-B_KK3A4P.js";import{i as ut}from"./Zap-D4dSEKpa.js";import{l as We,H as so}from"./config-CMcG5aXE.js";import{C as oo}from"./task-board-CZErK_3f.js";import{M as Wt}from"./multi-select-8e4MeokI.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-B282Slsg.js";import{b as ao,a as no,T as Dt}from"./tabs-D6Pnw7es.js";import{MonacoCodeEditor as io}from"./monaco-editor-BHpOPihN.js";import{A as ro}from"./automation-runs-U9DXMN_I.js";import{C as lo}from"./collection-tabs-CCJoVQ-t.js";import{a as co}from"./use-panel-navigate-B_099k7i.js";import"./use-mobile-MVZR2Lhp.js";import"./MessageCircle01-jm5EAYEs.js";import"./thread-button-BT5IYGed.js";import"./use-sidebar-collapsed-Cyq98Qgp.js";import"./sheet-BqPaRS1I.js";import"./use-chat-layout-state-v3ZvRKOT.js";import"./toolbar-icon-button-2ueMvkvI.js";import"./use-in-settings-D_BySurP.js";import"./resizable-a5ed0aFn.js";import"./route-page-header-Dm04mhuj.js";import"./LayoutLeft-BPF5UUkD.js";import"./use-project-scope-BaNhjjkU.js";import"./repository-binding-Drae9jEJ.js";import"./use-current-view-C8Qn7lu6.js";import"./thread-route-C18glt36.js";import"./index-3k_nlNc7.js";import"./auth-sBxX13D1.js";import"./AlertCircle-ee1sjQGr.js";import"./ArrowRight-3kziivNC.js";import"./Globe04-Cx-w92u5.js";import"./CheckCircle-CGqAjggj.js";import"./TrendUp01-BlwMDcra.js";import"./ChevronSelectorVertical-5-TBPpUz.js";import"./ChevronUp-BO9DemUb.js";import"./LinkBroken01-BN3icH6a.js";import"./CreditCard01-BLkqiDJW.js";import"./SwitchHorizontal01-CGFn_psg.js";import"./Eye-CO_nPZKQ.js";import"./Key01-DMjKHzPy.js";import"./Minus-DoUm1n95.js";import"./Monitor01-CM0DIJ9E.js";import"./Sun-CYr05wwt.js";import"./Play-I05hjYId.js";import"./ShoppingBag01-XH61oInk.js";import"./Upload01-Bfre-QV-.js";import"./Users01-BaPkNO1v.js";import"./index-BiVCuU3V.js";import"./drawer-DVCuatiz.js";import"./index-0S6WDYoC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-BXMPYOBS.js";import"./use-view-draft-kind-DcHRrUPD.js";import"./use-blog-view-DuKgZxsq.js";import"./use-organization-settings-BTioDTeC.js";import"./schema-BSbCYY9y.js";import"./thread-intent-MQDkwS2K.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DTFf-OSe.js";import"./session-runtime-BH3ADRqu.js";import"./use-decopilot-events-Dn0Dm68W.js";import"./use-deployment-admin-CTEsKWeV.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Csddyapx.js";import"./project-icon-D6jtLreJ.js";import"./use-navigate-to-agent-0LtKWlxa.js";import"./use-debounced-value-sPPLBdJe.js";import"./new-project-dialog-DEBFbTK4.js";import"./label-DJG2lJG2.js";import"./repository-picker-DcoNDHNX.js";import"./github-icon-KEAtk4MX.js";import"./useInfiniteQuery-CoeKNdsU.js";import"./infiniteQueryObserver-DXDiLGwX.js";import"./collection-search-CWJ6AHHK.js";import"./new-project-store-CgLzwcjn.js";import"./legacy-admin-welcome-dialog-BY_2I8tZ.js";import"./required-auth-layout-coJLhqjq.js";import"./use-org-sso-DXCHIqdV.js";import"./suggestion-DWkqugbN.js";import"./usage-stats-DyR6Kq74.js";import"./utils-CVEq3hMx.js";import"./markdown-DPpPArEp.js";import"./use-copy-CQS-1CPQ.js";import"./form-FAPXIq7O.js";import"./use-mcp-prompts-XeLNsblN.js";import"./use-org-fs-Dj5ea7Pp.js";import"./task-key-BWUT6sLU.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-DKlObXWN.js";import"./table-C9du40XO.js";import"./empty-state-B87jIRUF.js";import"./use-id-selection-3iTAqvRR.js";import"./use-infinite-scroll-C-t0_BGl.js";import"./task-status-DdY5hqAG.js";import"./thread-sheet-body-BY8zn-2X.js";import"./useSuspenseInfiniteQuery-hY0KLY7U.js";import"./pair-C-KXBar9.js";import"./use-task-board-items-DHvwjetN.js";import"./task-route-CGCjMBBZ.js";import"./project-index-pgEW44Q9.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D-1Hpjx-.js";import"./types-Bca8rqtc.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-I2kuvS72.js";import"./file-type-icon-sj_ejObJ.js";const Qe={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Ot},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=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(Ft,{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(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:zt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Mt,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const z=ws(I._meta)??"__other__",Z=_s(I.name,z==="__other__"?void 0:z),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(z)||H.set(z,{clientId:z,conn:Y.get(z),tools:[]}),H.get(z).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(z=>I.has(z))?null:[...I]),ae=I=>{const z=new Set(V);z.has(I)?z.delete(I):z.add(I),E(z)},ne=(I,z)=>{const Z=new Set(V);for(const A of I)z?Z.add(A):Z.delete(A);E(Z)};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]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Ft,{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=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=F):F=e[48];let O;e[49]!==a?(O=()=>a([]),e[49]=a,e[50]=O):O=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==O||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:O,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]=O,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,F,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 z=I.tools.map(bo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const z=I.tools.map(yo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let M;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(M=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]=M):M=e[82],M}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Oe,{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(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
1
+ import{dM as Zt,c as q,b as ee,r as w,j as t,B,aW as qt,m as At,a4 as $t,D as et,v as tt,w as st,x as ot,aS as at,y as nt,t as X,d_ as es,_ as ts,X as ss,Z as os,ap as as,an as ns,ao as is,Y as Oe,b4 as rs,h as Le,aH as pt,aI as xt,aJ as gt,aK as ht,b7 as jt,aL as yt,aM as bt,aN as vt,E as Ke,aE as ls,e6 as Ct,I as Nt,ho as cs,aj as ds,b5 as Ze,n as Xe,f as ms}from"./index-BMPeWdJw.js";import{ChatLayout as us}from"./index-G68rd1Q1.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Ye}from"./agent-icon-BJ2Wx2fE.js";import{n as kt}from"./BookOpen01-Cdt9znE-.js";import{t as rt}from"./ChevronDown-88QbtNjw.js";import{e as ys}from"./UserSquare-DAFK733H.js";import{s as Tt}from"./File02-CpMe0sR1.js";import{e as lt,b as zt,t as Ot}from"./Tool01-CRE8Zr1E.js";import{a as bs}from"./Image01-CyjafdfK.js";import{i as vs}from"./SearchMd-BZFf7uAm.js";import{B as Kt}from"./badge-C-0ziPev.js";import{C as Mt}from"./checkbox-CnO5GKzb.js";import{S as ct}from"./switch-pc6As7Lj.js";import{a as Ft,b as Rt,P as Lt}from"./popover-zwWAAqUd.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-Bq8LzPoY.js";import{g as ws,a as _s}from"./gateway-client-CEz2o7p6.js";import{b as dt}from"./use-connection-VTUSBGTe.js";import{u as Ds}from"./use-mcp-client-D6hvNNod.js";import{u as Is}from"./use-mcp-tools-CaA0WW-E.js";import{I as Ps}from"./integration-icon-xMpRZNbX.js";import{M as As}from"./select-model-D19LJE98.js";import{u as $s}from"./use-ai-providers-B1MpfOF5.js";import{U as Es,b as zs}from"./build-improve-prompt-doc-BGzcibxZ.js";import{a as ve,c as Os,d as Ks}from"./use-automations-DSG-bEnt.js";import{c as Ms,b as Fs,P as Rs,Q as Ls}from"./chat-context-CzmbAHe8.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-Czfx-LAp.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-BBk4QO9B.js";import{u as Js}from"./shell-layout-Cy4x2w2C.js";import{i as Vt}from"./ArrowLeft-BtflI84P.js";import{i as Xs}from"./ArrowUp-BX9rle-Z.js";import{s as Fe}from"./UserCheck01-D14kK5BQ.js";import{s as Ys}from"./Trash01-C1sTtIQd.js";import{s as mt}from"./XClose-igHVZF4W.js";import{u as _t}from"./use-debounced-autosave-BDRqjNGS.js";import{T as Qs,a as Zs}from"./input-Bp705GAE.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-BMvTcIMX.js";import{s as to}from"./Plus-NIlBePVH.js";import{i as ut}from"./Zap-CZUa6DWb.js";import{l as We,H as so}from"./config-CpgY06XK.js";import{C as oo}from"./task-board-CgkLyySX.js";import{M as Wt}from"./multi-select-DVZ3FnG7.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-Cl-2whSq.js";import{b as ao,a as no,T as Dt}from"./tabs-LNTPmT4H.js";import{MonacoCodeEditor as io}from"./monaco-editor-BxMnwfXM.js";import{A as ro}from"./automation-runs-D2e4MXIM.js";import{C as lo}from"./collection-tabs-C_tkgeK_.js";import{a as co}from"./use-panel-navigate-yNzK1oeQ.js";import"./use-mobile-DPeImGih.js";import"./MessageCircle01-pdZ3c0Ei.js";import"./thread-button-Cv7guHMn.js";import"./use-sidebar-collapsed-Ciu2x6KY.js";import"./sheet-3DsSjpPg.js";import"./use-chat-layout-state-Cobo43Bl.js";import"./toolbar-icon-button-vtvpzCZ_.js";import"./use-in-settings-CavkWvLD.js";import"./resizable-D7hc5wCS.js";import"./route-page-header-DOKA0lPe.js";import"./LayoutLeft-BI23EoSs.js";import"./use-project-scope-BYK0JAGP.js";import"./repository-binding-BCK2I6Mo.js";import"./use-current-view-AGi0k_-I.js";import"./thread-route-CSj65J5K.js";import"./index-BDs-2B47.js";import"./auth-DdGqjHXO.js";import"./AlertCircle-rt5NTcOt.js";import"./ArrowRight-DckDNEPN.js";import"./Globe04-BGaPJwRM.js";import"./CheckCircle-DQ8gl2jA.js";import"./TrendUp01-CkF2n8Hn.js";import"./ChevronSelectorVertical-BfhN49CO.js";import"./ChevronUp-BwBBvXr-.js";import"./LinkBroken01-DWWxoD2s.js";import"./CreditCard01-CHpJYShR.js";import"./SwitchHorizontal01-BCndh-XX.js";import"./Eye-C8bzWtOv.js";import"./Key01-NBdT0O9W.js";import"./Minus-ToHFKPwl.js";import"./Monitor01-DQ2oaJ_f.js";import"./Sun-CGayzxv4.js";import"./Play-Dgyu5PiH.js";import"./ShoppingBag01-CA3tpOzv.js";import"./Upload01-DF54M6Ph.js";import"./Users01-8BTVWXNl.js";import"./index-CSLJLC25.js";import"./drawer-cS0px3h4.js";import"./index-DGJ99-Gb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-RVjfgn4l.js";import"./use-view-draft-kind-CK2Ws293.js";import"./use-blog-view-CLaoWWXx.js";import"./use-organization-settings-HyX5IrJ4.js";import"./schema-Cg4pyiCI.js";import"./thread-intent-LmIsiguS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C79C_cUh.js";import"./session-runtime-B3tpmEdV.js";import"./use-decopilot-events-DFiNdpMv.js";import"./use-deployment-admin-BA_JLmwW.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-l577omxO.js";import"./project-icon-DqFpEPg-.js";import"./use-navigate-to-agent-D-LXOG-h.js";import"./use-debounced-value-CTxCZD5A.js";import"./new-project-dialog-IDVZ0s2M.js";import"./label-CRK3U7ZP.js";import"./repository-picker-DWJeQ4Uz.js";import"./github-icon-CNkm_QOq.js";import"./useInfiniteQuery-CkG5v2bH.js";import"./infiniteQueryObserver-BmYMm5wr.js";import"./collection-search-fi8Jpdhv.js";import"./new-project-store-DBh8m9Ki.js";import"./legacy-admin-welcome-dialog-DpejN_Uy.js";import"./required-auth-layout-Bqqrer2s.js";import"./use-org-sso-QDNvT__Q.js";import"./suggestion-BUUDUW90.js";import"./usage-stats-xir5IhsZ.js";import"./utils-CVEq3hMx.js";import"./markdown-BWT_4WJH.js";import"./use-copy-Dc7Mx1fC.js";import"./form-vgZJ8ykR.js";import"./use-mcp-prompts-Dzcv5Qm_.js";import"./use-org-fs-DMG6vhv9.js";import"./task-key-PeB83qoV.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-DOCwgCVw.js";import"./table-Dy0rd4qk.js";import"./empty-state-BNznQ4un.js";import"./use-id-selection-BzvH47dC.js";import"./use-infinite-scroll-CBxCb09-.js";import"./task-status-KvQJFF87.js";import"./thread-sheet-body-D3GUkLPi.js";import"./useSuspenseInfiniteQuery-D4hQd0qx.js";import"./pair-Bonyggei.js";import"./use-task-board-items--v3zNW-2.js";import"./task-route-D-8EO_RF.js";import"./project-index-Dn3n52T-.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-YjPzFqL6.js";import"./types-BRAj2PE2.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-vfKngax2.js";import"./file-type-icon-5ukaLDeF.js";const Qe={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Ot},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=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(Ft,{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(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:zt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Mt,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const z=ws(I._meta)??"__other__",Z=_s(I.name,z==="__other__"?void 0:z),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(z)||H.set(z,{clientId:z,conn:Y.get(z),tools:[]}),H.get(z).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(z=>I.has(z))?null:[...I]),ae=I=>{const z=new Set(V);z.has(I)?z.delete(I):z.add(I),E(z)},ne=(I,z)=>{const Z=new Set(V);for(const A of I)z?Z.add(A):Z.delete(A);E(Z)};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]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Ft,{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=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=F):F=e[48];let O;e[49]!==a?(O=()=>a([]),e[49]=a,e[50]=O):O=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==O||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:O,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]=O,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,F,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 z=I.tools.map(bo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const z=I.tools.map(yo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let M;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(M=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]=M):M=e[82],M}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Oe,{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(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
2
2
  -H "Authorization: Bearer ${i}" \\
3
3
  -H "Content-Type: application/json" \\
4
4
  -d '{"hello":"world"}'`:`curl -X POST "${S}" \\
@@ -1 +1 @@
1
- import{c as S,b as O,r as G,j as e,n as a,E as Q,B as V,b5 as U}from"./index-BRgWMc-5.js";import{ChatLayout as W}from"./index-Bjhw4G6x.js";import{s as X}from"./Plus-B_KK3A4P.js";import{a as Y}from"./UserCheck01-CcIH7s2N.js";import{i as F}from"./Zap-D4dSEKpa.js";import{S as Z}from"./search-input-XDrQYhil.js";import{E as $}from"./empty-state-B87jIRUF.js";import{u as tt,a as et,b as it}from"./use-automations-Co69mrXt.js";import{a as ot}from"./use-panel-navigate-B_099k7i.js";import{A as st}from"./automation-list-row-DIz_7uV6.js";import{c as nt}from"./thread-route-C18glt36.js";import"./use-mobile-MVZR2Lhp.js";import"./tooltip-DgFM5mQB.js";import"./index-3k_nlNc7.js";import"./MessageCircle01-jm5EAYEs.js";import"./XClose-CtxnajtG.js";import"./thread-button-BT5IYGed.js";import"./use-sidebar-collapsed-Cyq98Qgp.js";import"./sheet-BqPaRS1I.js";import"./use-chat-layout-state-v3ZvRKOT.js";import"./toolbar-icon-button-2ueMvkvI.js";import"./use-in-settings-D_BySurP.js";import"./resizable-a5ed0aFn.js";import"./route-page-header-Dm04mhuj.js";import"./LayoutLeft-BPF5UUkD.js";import"./use-project-scope-BaNhjjkU.js";import"./repository-binding-Drae9jEJ.js";import"./use-mcp-client-OYKYr7Zc.js";import"./auth-sBxX13D1.js";import"./use-current-view-C8Qn7lu6.js";import"./SearchMd-BlPJmXQo.js";import"./badge-Ba_DCLD5.js";import"./SwitchHorizontal01-CGFn_psg.js";import"./Trash01-CnPGIwZe.js";import"./agent-icon-DFyNTmmD.js";import"./AlertCircle-ee1sjQGr.js";import"./Tool01-Cnkd4pP7.js";import"./ArrowUp-DgFMMMBQ.js";import"./ArrowLeft-BhV4BHrM.js";import"./ArrowRight-3kziivNC.js";import"./BookOpen01-C9X5S-cQ.js";import"./Globe04-Cx-w92u5.js";import"./CheckCircle-CGqAjggj.js";import"./TrendUp01-BlwMDcra.js";import"./ChevronDown-CGJhfuSb.js";import"./ChevronSelectorVertical-5-TBPpUz.js";import"./ChevronUp-BO9DemUb.js";import"./UserSquare-CUb4s2-c.js";import"./LinkBroken01-BN3icH6a.js";import"./CreditCard01-BLkqiDJW.js";import"./File02-DclovfNb.js";import"./Eye-CO_nPZKQ.js";import"./Image01-CeQMNu9o.js";import"./Key01-DMjKHzPy.js";import"./Minus-DoUm1n95.js";import"./Monitor01-CM0DIJ9E.js";import"./Sun-CYr05wwt.js";import"./Play-I05hjYId.js";import"./ShoppingBag01-XH61oInk.js";import"./Upload01-Bfre-QV-.js";import"./Users01-BaPkNO1v.js";function rt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function at(o){const t=S.c(45),{virtualMcpId:n}=o,i=O(),{openPanel:r}=ot(),{data:D,error:M}=tt(n),v=D===void 0?[]:D,{create:y}=et(),[_,H]=G.useState("");if(M&&rt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==r?(j=()=>r("settings"),t[5]=r,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const J=_.toLowerCase(),q=v.filter(s=>s.name.toLowerCase().includes(J));let w;t[16]!==r?(w=s=>r(`automation:${s}`),t[16]=r,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:n,existing_count:v.length});const s=await y.mutateAsync(it(n));B(s.id)},K=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(X,{size:14}),t[18]=A):A=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==m?(L=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[A,m]}),t[21]=y.isPending,t[22]=R,t[23]=m,t[24]=L):L=t[24];const P=L,E=a,T=a,k=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(a.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=v.length>0&&e.jsx(Z,{value:_,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=v.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let b;return t[42]!==E||t[43]!==f?(b=e.jsx(E,{children:f}),t[42]=E,t[43]=f,t[44]=b):b=t[44],b}function mt(o){const t=S.c(3),{virtualMcpId:n}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let r;return t[1]!==n?(r=e.jsx(G.Suspense,{fallback:i,children:e.jsx(at,{virtualMcpId:n})}),t[1]=n,t[2]=r):r=t[2],r}function lt(){const o=S.c(2),t=nt();let n;return o[0]!==t?(n=e.jsx(mt,{virtualMcpId:t}),o[0]=t,o[1]=n):n=o[1],n}function je(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{je as default};
1
+ import{c as S,b as O,r as G,j as e,n as a,E as Q,B as V,b5 as U}from"./index-BMPeWdJw.js";import{ChatLayout as W}from"./index-G68rd1Q1.js";import{s as X}from"./Plus-NIlBePVH.js";import{a as Y}from"./UserCheck01-D14kK5BQ.js";import{i as F}from"./Zap-CZUa6DWb.js";import{S as Z}from"./search-input-_TDPMfaj.js";import{E as $}from"./empty-state-BNznQ4un.js";import{u as tt,a as et,b as it}from"./use-automations-DSG-bEnt.js";import{a as ot}from"./use-panel-navigate-yNzK1oeQ.js";import{A as st}from"./automation-list-row-mqAbrUKE.js";import{c as nt}from"./thread-route-CSj65J5K.js";import"./use-mobile-DPeImGih.js";import"./tooltip-BBk4QO9B.js";import"./index-BDs-2B47.js";import"./MessageCircle01-pdZ3c0Ei.js";import"./XClose-igHVZF4W.js";import"./thread-button-Cv7guHMn.js";import"./use-sidebar-collapsed-Ciu2x6KY.js";import"./sheet-3DsSjpPg.js";import"./use-chat-layout-state-Cobo43Bl.js";import"./toolbar-icon-button-vtvpzCZ_.js";import"./use-in-settings-CavkWvLD.js";import"./resizable-D7hc5wCS.js";import"./route-page-header-DOKA0lPe.js";import"./LayoutLeft-BI23EoSs.js";import"./use-project-scope-BYK0JAGP.js";import"./repository-binding-BCK2I6Mo.js";import"./use-mcp-client-D6hvNNod.js";import"./auth-DdGqjHXO.js";import"./use-current-view-AGi0k_-I.js";import"./SearchMd-BZFf7uAm.js";import"./badge-C-0ziPev.js";import"./SwitchHorizontal01-BCndh-XX.js";import"./Trash01-C1sTtIQd.js";import"./agent-icon-BJ2Wx2fE.js";import"./AlertCircle-rt5NTcOt.js";import"./Tool01-CRE8Zr1E.js";import"./ArrowUp-BX9rle-Z.js";import"./ArrowLeft-BtflI84P.js";import"./ArrowRight-DckDNEPN.js";import"./BookOpen01-Cdt9znE-.js";import"./Globe04-BGaPJwRM.js";import"./CheckCircle-DQ8gl2jA.js";import"./TrendUp01-CkF2n8Hn.js";import"./ChevronDown-88QbtNjw.js";import"./ChevronSelectorVertical-BfhN49CO.js";import"./ChevronUp-BwBBvXr-.js";import"./UserSquare-DAFK733H.js";import"./LinkBroken01-DWWxoD2s.js";import"./CreditCard01-CHpJYShR.js";import"./File02-CpMe0sR1.js";import"./Eye-C8bzWtOv.js";import"./Image01-CyjafdfK.js";import"./Key01-NBdT0O9W.js";import"./Minus-ToHFKPwl.js";import"./Monitor01-DQ2oaJ_f.js";import"./Sun-CGayzxv4.js";import"./Play-Dgyu5PiH.js";import"./ShoppingBag01-CA3tpOzv.js";import"./Upload01-DF54M6Ph.js";import"./Users01-8BTVWXNl.js";function rt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function at(o){const t=S.c(45),{virtualMcpId:n}=o,i=O(),{openPanel:r}=ot(),{data:D,error:M}=tt(n),v=D===void 0?[]:D,{create:y}=et(),[_,H]=G.useState("");if(M&&rt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==r?(j=()=>r("settings"),t[5]=r,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const J=_.toLowerCase(),q=v.filter(s=>s.name.toLowerCase().includes(J));let w;t[16]!==r?(w=s=>r(`automation:${s}`),t[16]=r,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:n,existing_count:v.length});const s=await y.mutateAsync(it(n));B(s.id)},K=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(X,{size:14}),t[18]=A):A=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==m?(L=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[A,m]}),t[21]=y.isPending,t[22]=R,t[23]=m,t[24]=L):L=t[24];const P=L,E=a,T=a,k=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(a.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=v.length>0&&e.jsx(Z,{value:_,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=v.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let b;return t[42]!==E||t[43]!==f?(b=e.jsx(E,{children:f}),t[42]=E,t[43]=f,t[44]=b):b=t[44],b}function mt(o){const t=S.c(3),{virtualMcpId:n}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let r;return t[1]!==n?(r=e.jsx(G.Suspense,{fallback:i,children:e.jsx(at,{virtualMcpId:n})}),t[1]=n,t[2]=r):r=t[2],r}function lt(){const o=S.c(2),t=nt();let n;return o[0]!==t?(n=e.jsx(mt,{virtualMcpId:t}),o[0]=t,o[1]=n):n=o[1],n}function je(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{je as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-calendar-DKGqFmih.js","assets/index-BRgWMc-5.js","assets/index-pbgcO64n.css","assets/agent-icon-DFyNTmmD.js","assets/AlertCircle-ee1sjQGr.js","assets/UserCheck01-CcIH7s2N.js","assets/Tool01-Cnkd4pP7.js","assets/ArrowUp-DgFMMMBQ.js","assets/ArrowLeft-BhV4BHrM.js","assets/ArrowRight-3kziivNC.js","assets/BookOpen01-C9X5S-cQ.js","assets/Globe04-Cx-w92u5.js","assets/CheckCircle-CGqAjggj.js","assets/TrendUp01-BlwMDcra.js","assets/ChevronDown-CGJhfuSb.js","assets/ChevronSelectorVertical-5-TBPpUz.js","assets/ChevronUp-BO9DemUb.js","assets/UserSquare-CUb4s2-c.js","assets/LinkBroken01-BN3icH6a.js","assets/CreditCard01-BLkqiDJW.js","assets/File02-DclovfNb.js","assets/MessageCircle01-jm5EAYEs.js","assets/SwitchHorizontal01-CGFn_psg.js","assets/Eye-CO_nPZKQ.js","assets/Image01-CeQMNu9o.js","assets/Key01-DMjKHzPy.js","assets/LayoutLeft-BPF5UUkD.js","assets/Minus-DoUm1n95.js","assets/Monitor01-CM0DIJ9E.js","assets/Sun-CYr05wwt.js","assets/Play-I05hjYId.js","assets/Plus-B_KK3A4P.js","assets/SearchMd-BlPJmXQo.js","assets/ShoppingBag01-XH61oInk.js","assets/Trash01-CnPGIwZe.js","assets/Upload01-Bfre-QV-.js","assets/Users01-BaPkNO1v.js","assets/XClose-CtxnajtG.js","assets/Zap-D4dSEKpa.js","assets/scroll-area-B2d6jFzS.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-CO_9m-hw.js","assets/empty-message-BydjGtkz.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-C-KXBar9.js","assets/collapsible-Dc4ca33I.js","assets/use-copy-CQS-1CPQ.js","assets/usage-stats-DyR6Kq74.js","assets/utils-CVEq3hMx.js","assets/markdown-DPpPArEp.js","assets/chat-context-ZeSpVj2j.js","assets/use-panel-navigate-B_099k7i.js","assets/thread-route-C18glt36.js","assets/use-project-scope-BaNhjjkU.js","assets/repository-binding-Drae9jEJ.js","assets/use-mcp-client-OYKYr7Zc.js","assets/auth-sBxX13D1.js","assets/use-view-draft-kind-DcHRrUPD.js","assets/use-blog-view-DuKgZxsq.js","assets/use-organization-settings-BTioDTeC.js","assets/schema-BSbCYY9y.js","assets/task-board-CZErK_3f.js","assets/thread-intent-MQDkwS2K.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-DTFf-OSe.js","assets/session-runtime-BH3ADRqu.js","assets/use-entitlements-BXMPYOBS.js","assets/use-ai-providers-BM99Jk3f.js","assets/use-current-view-C8Qn7lu6.js","assets/use-in-settings-D_BySurP.js","assets/use-decopilot-events-Dn0Dm68W.js","assets/use-mobile-MVZR2Lhp.js","assets/tooltip-DgFM5mQB.js","assets/index-3k_nlNc7.js","assets/gateway-client-BVWghiMF.js","assets/form-FAPXIq7O.js","assets/label-DJG2lJG2.js","assets/task-key-BWUT6sLU.js","assets/use-task-board-items-DHvwjetN.js","assets/config-CMcG5aXE.js","assets/task-route-CGCjMBBZ.js","assets/project-index-pgEW44Q9.js","assets/shell-layout-2a3HocEU.js","assets/use-deployment-admin-CTEsKWeV.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-Csddyapx.js","assets/command-Dg1M4JCf.js","assets/index-BiVCuU3V.js","assets/integration-icon-Cu3N1muw.js","assets/project-icon-D6jtLreJ.js","assets/use-navigate-to-agent-0LtKWlxa.js","assets/use-debounced-value-sPPLBdJe.js","assets/new-project-dialog-DEBFbTK4.js","assets/repository-picker-DcoNDHNX.js","assets/github-icon-KEAtk4MX.js","assets/useInfiniteQuery-CoeKNdsU.js","assets/infiniteQueryObserver-DXDiLGwX.js","assets/collection-search-CWJ6AHHK.js","assets/new-project-store-CgLzwcjn.js","assets/legacy-admin-welcome-dialog-BY_2I8tZ.js","assets/drawer-DVCuatiz.js","assets/required-auth-layout-coJLhqjq.js","assets/use-org-sso-DXCHIqdV.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-D-1Hpjx-.js","assets/types-Bca8rqtc.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-BqPaRS1I.js","assets/use-connection-wSXmVdCY.js","assets/use-mcp-prompts-XeLNsblN.js","assets/use-thread-outputs-I2kuvS72.js","assets/file-type-icon-sj_ejObJ.js","assets/section-array-field-DRYut2dk.js","assets/blocks-tab-states-0NdQhV1f.js","assets/site-editor-toast-CkAw1Cwp.js","assets/use-sandbox-events-DkGz3U_g.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-Dq4zh0zX.js","assets/use-voice-input-ClQF7v9Y.js","assets/popover-DGvrj6fy.js","assets/index-0S6WDYoC.js","assets/checkbox-yHZpOTt9.js","assets/select-B282Slsg.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-BaccrSLZ.js","assets/sandbox-git-api-CPqBqV0G.js","assets/empty-state-B87jIRUF.js","assets/use-move-blocks-DNt_Qh-7.js","assets/hosted-reconcile-DVbA9MCD.js","assets/item-actions-C0r-FbzQ.js","assets/badge-Ba_DCLD5.js","assets/empty-state-DrDY2Uvy.js","assets/delete-copy-B5PbKStF.js","assets/use-never-published-DCVDrsUC.js","assets/search-input-XDrQYhil.js","assets/tabs-D6Pnw7es.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-Df-dqKVI.js","assets/asset-utils-545UDhWA.js","assets/index-DAQFQP6X.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-shjcg83Q.js","assets/monaco-editor-BHpOPihN.js","assets/editor-DKlObXWN.js","assets/record-editor-DUtpG1M4.js","assets/save-status-BXFvRkAL.js","assets/switch-CfemO1do.js","assets/toggle-group-BnrXGKKY.js","assets/blog-schema-CYnX2CMq.js","assets/held-block-view-DDQtd2bN.js","assets/calendar-i6vH9oRA.js","assets/editor-classes-DlTZqfff.js","assets/sortable.esm-DPJjIjEU.js","assets/named-rule-step-WtjJX5Mv.js","assets/slider-wN_aQalr.js","assets/index-CH8HRuHa.js","assets/tooltipContext-BvjdDC28.js","assets/CategoricalChart-cy5wvzih.js","assets/index-779PVYGV.js","assets/combobox-Cc5RijV8.js","assets/use-autosave-BoR4WbwP.js","assets/category-editor-BLagxgQw.js","assets/blog-preview-url-Dih-dMCw.js","assets/use-fast-preview-draft-url-BpA0y2aq.js","assets/block-document-Aq3OAP33.js","assets/suggestion-DWkqugbN.js","assets/product-picker-dialog-BXRcAQat.js","assets/index-EBRxzWbP.js","assets/context-UEmVvZBl.js","assets/index-CSZLbM2Z.js","assets/use-org-fs-Dj5ea7Pp.js","assets/icon-button-DmJB3HO5.js","assets/use-delete-block-MPbaqrna.js"])))=>i.map(i=>d[i]);
2
- import{c as X,b as ie,j as t,r as M,b6 as oe,h as ae,aN as xe,aM as be,aJ as ye,aH as ve,aI as ke,aL as Ce,aK as je,b7 as _e,m as we,b8 as Se,b9 as Pe,t as T,B as Be,d as De,f as Ae,u as Ee,$ as le,ba as Ne}from"./index-BRgWMc-5.js";import{ChatLayout as Re}from"./index-Bjhw4G6x.js";import{S as Te}from"./site-draft-actions-BNgtZ_kM.js";import{F as Ie}from"./feature-gate-BldXfjSV.js";import{i as ne}from"./File02-DclovfNb.js";import{s as $e}from"./Plus-B_KK3A4P.js";import{s as Le,i as Ke}from"./UserSquare-CUb4s2-c.js";import{c as ce}from"./UserCheck01-CcIH7s2N.js";import{t as me}from"./Users01-BaPkNO1v.js";import{S as Ve}from"./scroll-area-B2d6jFzS.js";import{T as Me,a as ze,c as Fe}from"./tooltip-DgFM5mQB.js";import{u as Oe,a as Ge,d as Ue}from"./delete-copy-B5PbKStF.js";import{u as We,a as He,k as Z}from"./use-never-published-DCVDrsUC.js";import{u as Qe}from"./use-delete-block-MPbaqrna.js";import{d as qe,f as Je}from"./site-editor-toast-CkAw1Cwp.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-C0r-FbzQ.js";import{E as rt}from"./empty-message-BydjGtkz.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-CO_9m-hw.js";import{E as xt}from"./agent-icon-DFyNTmmD.js";import{B as bt,a as yt}from"./blog-source-gate-CWWyUoRi.js";import{r as vt}from"./use-panel-navigate-B_099k7i.js";import{c as kt}from"./thread-route-C18glt36.js";import{A as Ct}from"./agent-view-guard-BkW43e8G.js";import{a as jt}from"./blog-view-gate-oE1gHZMz.js";import"./use-mobile-MVZR2Lhp.js";import"./MessageCircle01-jm5EAYEs.js";import"./XClose-CtxnajtG.js";import"./thread-button-BT5IYGed.js";import"./use-sidebar-collapsed-Cyq98Qgp.js";import"./sheet-BqPaRS1I.js";import"./use-chat-layout-state-v3ZvRKOT.js";import"./toolbar-icon-button-2ueMvkvI.js";import"./use-in-settings-D_BySurP.js";import"./resizable-a5ed0aFn.js";import"./route-page-header-Dm04mhuj.js";import"./LayoutLeft-BPF5UUkD.js";import"./use-project-scope-BaNhjjkU.js";import"./repository-binding-Drae9jEJ.js";import"./use-mcp-client-OYKYr7Zc.js";import"./auth-sBxX13D1.js";import"./use-current-view-C8Qn7lu6.js";import"./separator-C2ELigwU.js";import"./chat-context-ZeSpVj2j.js";import"./use-view-draft-kind-DcHRrUPD.js";import"./use-blog-view-DuKgZxsq.js";import"./use-organization-settings-BTioDTeC.js";import"./schema-BSbCYY9y.js";import"./task-board-CZErK_3f.js";import"./thread-intent-MQDkwS2K.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DTFf-OSe.js";import"./session-runtime-BH3ADRqu.js";import"./use-entitlements-BXMPYOBS.js";import"./use-ai-providers-BM99Jk3f.js";import"./use-decopilot-events-Dn0Dm68W.js";import"./use-org-notice-Csddyapx.js";import"./popover-DGvrj6fy.js";import"./command-Dg1M4JCf.js";import"./index-BiVCuU3V.js";import"./SearchMd-BlPJmXQo.js";import"./tabs-D6Pnw7es.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-CGJhfuSb.js";import"./SwitchHorizontal01-CGFn_psg.js";import"./Tool01-Cnkd4pP7.js";import"./Trash01-CnPGIwZe.js";import"./use-voice-input-ClQF7v9Y.js";import"./drawer-DVCuatiz.js";import"./index-0S6WDYoC.js";import"./checkbox-yHZpOTt9.js";import"./Minus-DoUm1n95.js";import"./select-B282Slsg.js";import"./index-BdQq_4o_.js";import"./index-3k_nlNc7.js";import"./ChevronUp-BO9DemUb.js";import"./ArrowLeft-BhV4BHrM.js";import"./ChevronSelectorVertical-5-TBPpUz.js";import"./Key01-DMjKHzPy.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-CM0DIJ9E.js";import"./AlertCircle-ee1sjQGr.js";import"./Eye-CO_nPZKQ.js";import"./Image01-CeQMNu9o.js";import"./use-debounced-value-sPPLBdJe.js";import"./shell-layout-2a3HocEU.js";import"./Globe04-Cx-w92u5.js";import"./use-deployment-admin-CTEsKWeV.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-CGqAjggj.js";import"./Zap-D4dSEKpa.js";import"./integration-icon-Cu3N1muw.js";import"./LinkBroken01-BN3icH6a.js";import"./project-icon-D6jtLreJ.js";import"./use-navigate-to-agent-0LtKWlxa.js";import"./new-project-dialog-DEBFbTK4.js";import"./label-DJG2lJG2.js";import"./repository-picker-DcoNDHNX.js";import"./github-icon-KEAtk4MX.js";import"./useInfiniteQuery-CoeKNdsU.js";import"./infiniteQueryObserver-DXDiLGwX.js";import"./collection-search-CWJ6AHHK.js";import"./BookOpen01-C9X5S-cQ.js";import"./ShoppingBag01-XH61oInk.js";import"./new-project-store-CgLzwcjn.js";import"./legacy-admin-welcome-dialog-BY_2I8tZ.js";import"./required-auth-layout-coJLhqjq.js";import"./use-org-sso-DXCHIqdV.js";import"./cms-store-drafts-CLXsr0b9.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-DyF6IEhr.js";import"./url-slug-0nYVauKi.js";import"./use-blocks-v8-project-Dq4zh0zX.js";import"./use-sandbox-events-DkGz3U_g.js";import"./sandbox-url-D3mC8qhT.js";import"./use-fast-preview-draft-url-BpA0y2aq.js";import"./blocks-tab-states-0NdQhV1f.js";import"./empty-state-B87jIRUF.js";import"./index-CER3O-Er.js";import"./ArrowUp-DgFMMMBQ.js";import"./input-Do8NvE59.js";import"./usage-stats-DyR6Kq74.js";import"./utils-CVEq3hMx.js";import"./markdown-DPpPArEp.js";import"./use-copy-CQS-1CPQ.js";import"./gateway-client-BVWghiMF.js";import"./form-FAPXIq7O.js";import"./icon-button-DmJB3HO5.js";import"./file-type-icon-sj_ejObJ.js";import"./chat-draft-DixXhuAl.js";import"./ArrowRight-3kziivNC.js";import"./Upload01-Bfre-QV-.js";import"./use-deco-credits-Cd6Vxe2k.js";import"./toggle-group-BnrXGKKY.js";import"./input-CCPCHy_J.js";import"./suggestion-DWkqugbN.js";import"./use-mcp-prompts-XeLNsblN.js";import"./use-org-fs-Dj5ea7Pp.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CYTrb2Hp.js";import"./plan-ladder-DuXPk4c4.js";import"./add-connection-dialog-BqEJyMSP.js";import"./extract-connection-data-BBZ3NAYt.js";import"./metadata-D72DunRR.js";import"./connection-D2P4B1Vm.js";import"./connection-card-CTimlD0g.js";import"./connection-slug-CGQkx9BD.js";import"./textarea-shjcg83Q.js";import"./use-connection-wSXmVdCY.js";import"./schema-DgI3qSqy.js";import"./connection-form-helpers-C0MTL33k.js";import"./authenticate-and-persist-oauth-Cd-20mVj.js";import"./mcp-oauth-DAw9xmxO.js";import"./mcp-oauth-DMi3oCsH.js";import"./collection-tabs-CCJoVQ-t.js";import"./badge-Ba_DCLD5.js";import"./use-infinite-scroll-C-t0_BGl.js";import"./useSuspenseInfiniteQuery-hY0KLY7U.js";import"./use-task-board-items-DHvwjetN.js";import"./pair-C-KXBar9.js";import"./collapsible-Dc4ca33I.js";import"./task-key-BWUT6sLU.js";import"./config-CMcG5aXE.js";import"./task-route-CGCjMBBZ.js";import"./project-index-pgEW44Q9.js";import"./TrendUp01-BlwMDcra.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D-1Hpjx-.js";import"./types-Bca8rqtc.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-I2kuvS72.js";import"./agent-capabilities-CYFGwKOQ.js";import"./use-cms-publish-actions-tt3YVYFN.js";import"./use-content-sync-BDeJ_Jgu.js";import"./sandbox-git-api-CPqBqV0G.js";import"./utils-BaccrSLZ.js";import"./device-hint-BlkEtJOD.js";import"./alert-DaQbIayT.js";import"./section-array-field-DRYut2dk.js";import"./editor-DKlObXWN.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-PaxLnfD4.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-DAQFQP6X.js";import"./hosted-reconcile-DVbA9MCD.js";import"./search-input-XDrQYhil.js";import"./use-file-configs-Df-dqKVI.js";import"./asset-utils-545UDhWA.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-DrDY2Uvy.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-BHpOPihN.js";import"./Play-I05hjYId.js";import"./use-move-blocks-DNt_Qh-7.js";import"./CreditCard01-BLkqiDJW.js";import"./Sun-CYr05wwt.js";import"./blog-preview-url-Dih-dMCw.js";import"./use-main-panel-tabs-N1__ahB3.js";import"./use-mcp-tools-Ben5ajiJ.js";import"./resolve-tab-icon-aSYnYRbW.js";import"./use-task-metadata-bPw-hNrv.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-BCWndDk0.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-DKGqFmih.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])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-DUtpG1M4.js"),__vite__mapDeps([148,1,2,78,125,40,75,14,16,145,149,24,34,35,137,121,67,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,69,70,71,72,122,102,74,73,3,4,5,6,7,8,9,10,11,12,13,15,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,36,37,38,123,124,126,127,117,118,119,120,128,129,132,116,130,138,139,140,93,141,142,97,98,48,49,50,47,76,77,150,151,144,42,43,44,45,46,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,131,152,153,154,155,156,157,158,159,160,161,162,163,39,164])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-BLagxgQw.js"),__vite__mapDeps([165,1,2,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,4,9,20,17,78,125,40,75,14,16,152,5,153,137,121,122,102,74,73,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,123,124,126,127,117,118,119,120,128,129,132,116,130,138,139,140,93,141,142,97,98,48,49,50,47,76,77,149,150,151,144,154,145,155,79,156,43,44,45,46,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,157,158,159,160,161,162,163,39,42,131,166,167,164,168,136,143,169,170,171])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-UEmVvZBl.js"),__vite__mapDeps([172,1,2,132,117,118,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,119,120,121,122,102,74,75,73,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,123,124,125,40,126,127,128,129,116,130,134,78,150,145,136,48,49,50,47,76,77,137,138,139,140,93,141,142,97,98,42,43,44,45,46,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,131,143,164,149,151,144,173,155,169,171,174,175,176,154,170])).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=Oe(),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=qe({orgSlug:d,virtualMcpId:c,branch:u}),A=Je(b?{orgSlug:d,virtualMcpId:c,branch:u}:null,it),E=He({orgSlug:d,virtualMcpId:c,branch:u}),[U,D]=M.useState(""),[B,N]=M.useState("list"),[C,I]=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),[z,F]=M.useState(l);z!==l&&(F(l),D(""));const P=at({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),O=lt(s),pe={posts:O.posts.length,authors:O.authors.length,categories:O.categories.length},de=async r=>{const _=se(s,r),$=ee(_,r,pt(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:$,...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=O.categories.map(H=>H.slug??"").filter(Boolean);L.slug=ht(String(L.slug??""),Q)}return{key:w,payload:L}},$=f?null:_(s[r.key]);try{const p=f?_(await S(s,r.key)):$;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"),$=ee(_,"posts",ot(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:$,...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 $=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:$(s[r]);try{const w=f?$(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:$}=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 H=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,q]of H)q?Q[G]=q:delete Q[G]}for(const{key:H,payload:G}of dt(Q)){const q=ut(G,L);q!==G&&await m.mutateAsync({blockKey:H,data:ft(H,gt(q)),...f?{base:{value:Q[H],fromCache:!0}}:{}})}}}const w=await h.mutateAsync({blockKey:_,...f?{base:{value:p}}:{}});if(I(null),Z(w))return;T.success(`Deleted "${$}"`),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:O[l],searchQuery:U,onSearchChange:D,selectedKey:a,onSelect:r=>v(r),onCreate:()=>{de(l)},onDuplicate:r=>{ue(r)},onDelete:I}),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&&I(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(F=>!A||F.label.toLowerCase().includes(A)||F.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=F=>n(F.target.value),e[17]=n,e[18]=C):C=e[18];let I;e[19]!==D||e[20]!==v||e[21]!==C?(I=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]=I):I=e[22];let W;e[23]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx($e,{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(ze,{children:B}),e[27]=B,e[28]=V):V=e[28];let z;e[29]!==K||e[30]!==V?(z=t.jsxs(Fe,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=z):z=e[31],e[32]!==z||e[33]!==I?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[I,z]}),e[32]=z,e[33]=I,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(F=>{const{entry:P,depth:O}=F;return t.jsx("div",{style:{paddingLeft:O*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:O>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:It})}})}),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 It(i){return vt({previous:i,destination:"agent"})}function $t(){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(Ie,{feature:"cms",children:t.jsx(Tt,{virtualMcpId:e})})})}),i[0]=e,i[1]=a):a=i[1],a}function Si(){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($t,{})}),i[0]=e):e=i[0],e}export{Si as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-calendar-B7jwyYDv.js","assets/index-BMPeWdJw.js","assets/index--QRH4qmO.css","assets/agent-icon-BJ2Wx2fE.js","assets/AlertCircle-rt5NTcOt.js","assets/UserCheck01-D14kK5BQ.js","assets/Tool01-CRE8Zr1E.js","assets/ArrowUp-BX9rle-Z.js","assets/ArrowLeft-BtflI84P.js","assets/ArrowRight-DckDNEPN.js","assets/BookOpen01-Cdt9znE-.js","assets/Globe04-BGaPJwRM.js","assets/CheckCircle-DQ8gl2jA.js","assets/TrendUp01-CkF2n8Hn.js","assets/ChevronDown-88QbtNjw.js","assets/ChevronSelectorVertical-BfhN49CO.js","assets/ChevronUp-BwBBvXr-.js","assets/UserSquare-DAFK733H.js","assets/LinkBroken01-DWWxoD2s.js","assets/CreditCard01-CHpJYShR.js","assets/File02-CpMe0sR1.js","assets/MessageCircle01-pdZ3c0Ei.js","assets/SwitchHorizontal01-BCndh-XX.js","assets/Eye-C8bzWtOv.js","assets/Image01-CyjafdfK.js","assets/Key01-NBdT0O9W.js","assets/LayoutLeft-BI23EoSs.js","assets/Minus-ToHFKPwl.js","assets/Monitor01-DQ2oaJ_f.js","assets/Sun-CGayzxv4.js","assets/Play-Dgyu5PiH.js","assets/Plus-NIlBePVH.js","assets/SearchMd-BZFf7uAm.js","assets/ShoppingBag01-CA3tpOzv.js","assets/Trash01-C1sTtIQd.js","assets/Upload01-DF54M6Ph.js","assets/Users01-8BTVWXNl.js","assets/XClose-igHVZF4W.js","assets/Zap-CZUa6DWb.js","assets/scroll-area-DAamBeOm.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-CqfxuXDr.js","assets/empty-message-BnLHUiLW.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-Bonyggei.js","assets/collapsible-Czfx-LAp.js","assets/use-copy-Dc7Mx1fC.js","assets/usage-stats-xir5IhsZ.js","assets/utils-CVEq3hMx.js","assets/markdown-BWT_4WJH.js","assets/chat-context-CzmbAHe8.js","assets/use-panel-navigate-yNzK1oeQ.js","assets/thread-route-CSj65J5K.js","assets/use-project-scope-BYK0JAGP.js","assets/repository-binding-BCK2I6Mo.js","assets/use-mcp-client-D6hvNNod.js","assets/auth-DdGqjHXO.js","assets/use-view-draft-kind-CK2Ws293.js","assets/use-blog-view-CLaoWWXx.js","assets/use-organization-settings-HyX5IrJ4.js","assets/schema-Cg4pyiCI.js","assets/task-board-CgkLyySX.js","assets/thread-intent-LmIsiguS.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-C79C_cUh.js","assets/session-runtime-B3tpmEdV.js","assets/use-entitlements-RVjfgn4l.js","assets/use-ai-providers-B1MpfOF5.js","assets/use-current-view-AGi0k_-I.js","assets/use-in-settings-CavkWvLD.js","assets/use-decopilot-events-DFiNdpMv.js","assets/use-mobile-DPeImGih.js","assets/tooltip-BBk4QO9B.js","assets/index-BDs-2B47.js","assets/gateway-client-CEz2o7p6.js","assets/form-vgZJ8ykR.js","assets/label-CRK3U7ZP.js","assets/task-key-PeB83qoV.js","assets/use-task-board-items--v3zNW-2.js","assets/config-CpgY06XK.js","assets/task-route-D-8EO_RF.js","assets/project-index-Dn3n52T-.js","assets/shell-layout-Cy4x2w2C.js","assets/use-deployment-admin-BA_JLmwW.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-l577omxO.js","assets/command-Bq8LzPoY.js","assets/index-CSLJLC25.js","assets/integration-icon-xMpRZNbX.js","assets/project-icon-DqFpEPg-.js","assets/use-navigate-to-agent-D-LXOG-h.js","assets/use-debounced-value-CTxCZD5A.js","assets/new-project-dialog-IDVZ0s2M.js","assets/repository-picker-DWJeQ4Uz.js","assets/github-icon-CNkm_QOq.js","assets/useInfiniteQuery-CkG5v2bH.js","assets/infiniteQueryObserver-BmYMm5wr.js","assets/collection-search-fi8Jpdhv.js","assets/new-project-store-DBh8m9Ki.js","assets/legacy-admin-welcome-dialog-DpejN_Uy.js","assets/drawer-cS0px3h4.js","assets/required-auth-layout-Bqqrer2s.js","assets/use-org-sso-QDNvT__Q.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-YjPzFqL6.js","assets/types-BRAj2PE2.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-3DsSjpPg.js","assets/use-connection-VTUSBGTe.js","assets/use-mcp-prompts-Dzcv5Qm_.js","assets/use-thread-outputs-vfKngax2.js","assets/file-type-icon-5ukaLDeF.js","assets/section-array-field-DR10vlg7.js","assets/blocks-tab-states-pUzFXPTK.js","assets/site-editor-toast-DyAj-yh9.js","assets/use-sandbox-events-DFE5xC3q.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-B8tSOiQV.js","assets/use-voice-input-Bag2UQ5s.js","assets/popover-zwWAAqUd.js","assets/index-DGJ99-Gb.js","assets/checkbox-CnO5GKzb.js","assets/select-Cl-2whSq.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-GIRCtww_.js","assets/sandbox-git-api-MxAem5iH.js","assets/empty-state-BNznQ4un.js","assets/use-move-blocks-B58hF-QF.js","assets/hosted-reconcile-B7PmB0kg.js","assets/item-actions-Bf8HZ-5j.js","assets/badge-C-0ziPev.js","assets/empty-state-haYeO0--.js","assets/delete-copy-bwY-nICG.js","assets/use-never-published-AUwhcJk8.js","assets/search-input-_TDPMfaj.js","assets/tabs-LNTPmT4H.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-DJQqKxP9.js","assets/asset-utils-DDL7Zhst.js","assets/index-iNQuijBz.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-i65d3zD6.js","assets/monaco-editor-BxMnwfXM.js","assets/editor-DOCwgCVw.js","assets/record-editor-Ch7j2D2R.js","assets/save-status-Bwv32UwA.js","assets/switch-pc6As7Lj.js","assets/toggle-group-B5Qv0TZp.js","assets/blog-schema-CE1tBnsD.js","assets/held-block-view-DLTLVbz1.js","assets/calendar-DXtndUQf.js","assets/editor-classes-ByZrgCwF.js","assets/sortable.esm-DpTBwHPu.js","assets/named-rule-step-ip9CKl8c.js","assets/slider-_egWZNfX.js","assets/index-Cm1vOK0e.js","assets/tooltipContext-DuBQjN-C.js","assets/CategoricalChart-DAGT6hYP.js","assets/index-AJsDmYGI.js","assets/combobox-Q8ZHlgvG.js","assets/use-autosave-Cm2WfCL_.js","assets/category-editor-j7sSG9YT.js","assets/blog-preview-url-BOmxSryn.js","assets/use-fast-preview-draft-url-kaqCW9_t.js","assets/block-document-DWg9Jn1G.js","assets/suggestion-BUUDUW90.js","assets/product-picker-dialog-Wj5snGI8.js","assets/index-CCPTG3M6.js","assets/context-DMfn82WA.js","assets/index-CKEvWalC.js","assets/use-org-fs-DMG6vhv9.js","assets/icon-button-DAAwLc_Y.js","assets/use-delete-block-CTKK2Eq4.js"])))=>i.map(i=>d[i]);
2
+ import{c as X,b as ie,j as t,r as M,b6 as oe,h as ae,aN as xe,aM as be,aJ as ye,aH as ve,aI as ke,aL as Ce,aK as je,b7 as _e,m as we,b8 as Se,b9 as Pe,t as T,B as Be,d as De,f as Ae,u as Ee,$ as le,ba as Ne}from"./index-BMPeWdJw.js";import{ChatLayout as Re}from"./index-G68rd1Q1.js";import{S as Te}from"./site-draft-actions-ak2wuSnr.js";import{F as Ie}from"./feature-gate-v3Hw92O6.js";import{i as ne}from"./File02-CpMe0sR1.js";import{s as $e}from"./Plus-NIlBePVH.js";import{s as Le,i as Ke}from"./UserSquare-DAFK733H.js";import{c as ce}from"./UserCheck01-D14kK5BQ.js";import{t as me}from"./Users01-8BTVWXNl.js";import{S as Ve}from"./scroll-area-DAamBeOm.js";import{T as Me,a as ze,c as Fe}from"./tooltip-BBk4QO9B.js";import{u as Oe,a as Ge,d as Ue}from"./delete-copy-bwY-nICG.js";import{u as We,a as He,k as Z}from"./use-never-published-AUwhcJk8.js";import{u as Qe}from"./use-delete-block-CTKK2Eq4.js";import{d as qe,f as Je}from"./site-editor-toast-DyAj-yh9.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-Bf8HZ-5j.js";import{E as rt}from"./empty-message-BnLHUiLW.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-CqfxuXDr.js";import{E as xt}from"./agent-icon-BJ2Wx2fE.js";import{B as bt,a as yt}from"./blog-source-gate-V0t8xMYW.js";import{r as vt}from"./use-panel-navigate-yNzK1oeQ.js";import{c as kt}from"./thread-route-CSj65J5K.js";import{A as Ct}from"./agent-view-guard-X-bc2zlR.js";import{a as jt}from"./blog-view-gate-BO7XupIe.js";import"./use-mobile-DPeImGih.js";import"./MessageCircle01-pdZ3c0Ei.js";import"./XClose-igHVZF4W.js";import"./thread-button-Cv7guHMn.js";import"./use-sidebar-collapsed-Ciu2x6KY.js";import"./sheet-3DsSjpPg.js";import"./use-chat-layout-state-Cobo43Bl.js";import"./toolbar-icon-button-vtvpzCZ_.js";import"./use-in-settings-CavkWvLD.js";import"./resizable-D7hc5wCS.js";import"./route-page-header-DOKA0lPe.js";import"./LayoutLeft-BI23EoSs.js";import"./use-project-scope-BYK0JAGP.js";import"./repository-binding-BCK2I6Mo.js";import"./use-mcp-client-D6hvNNod.js";import"./auth-DdGqjHXO.js";import"./use-current-view-AGi0k_-I.js";import"./separator-DsDHvFvA.js";import"./chat-context-CzmbAHe8.js";import"./use-view-draft-kind-CK2Ws293.js";import"./use-blog-view-CLaoWWXx.js";import"./use-organization-settings-HyX5IrJ4.js";import"./schema-Cg4pyiCI.js";import"./task-board-CgkLyySX.js";import"./thread-intent-LmIsiguS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C79C_cUh.js";import"./session-runtime-B3tpmEdV.js";import"./use-entitlements-RVjfgn4l.js";import"./use-ai-providers-B1MpfOF5.js";import"./use-decopilot-events-DFiNdpMv.js";import"./use-org-notice-l577omxO.js";import"./popover-zwWAAqUd.js";import"./command-Bq8LzPoY.js";import"./index-CSLJLC25.js";import"./SearchMd-BZFf7uAm.js";import"./tabs-LNTPmT4H.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-88QbtNjw.js";import"./SwitchHorizontal01-BCndh-XX.js";import"./Tool01-CRE8Zr1E.js";import"./Trash01-C1sTtIQd.js";import"./use-voice-input-Bag2UQ5s.js";import"./drawer-cS0px3h4.js";import"./index-DGJ99-Gb.js";import"./checkbox-CnO5GKzb.js";import"./Minus-ToHFKPwl.js";import"./select-Cl-2whSq.js";import"./index-BdQq_4o_.js";import"./index-BDs-2B47.js";import"./ChevronUp-BwBBvXr-.js";import"./ArrowLeft-BtflI84P.js";import"./ChevronSelectorVertical-BfhN49CO.js";import"./Key01-NBdT0O9W.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-DQ2oaJ_f.js";import"./AlertCircle-rt5NTcOt.js";import"./Eye-C8bzWtOv.js";import"./Image01-CyjafdfK.js";import"./use-debounced-value-CTxCZD5A.js";import"./shell-layout-Cy4x2w2C.js";import"./Globe04-BGaPJwRM.js";import"./use-deployment-admin-BA_JLmwW.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DQ8gl2jA.js";import"./Zap-CZUa6DWb.js";import"./integration-icon-xMpRZNbX.js";import"./LinkBroken01-DWWxoD2s.js";import"./project-icon-DqFpEPg-.js";import"./use-navigate-to-agent-D-LXOG-h.js";import"./new-project-dialog-IDVZ0s2M.js";import"./label-CRK3U7ZP.js";import"./repository-picker-DWJeQ4Uz.js";import"./github-icon-CNkm_QOq.js";import"./useInfiniteQuery-CkG5v2bH.js";import"./infiniteQueryObserver-BmYMm5wr.js";import"./collection-search-fi8Jpdhv.js";import"./BookOpen01-Cdt9znE-.js";import"./ShoppingBag01-CA3tpOzv.js";import"./new-project-store-DBh8m9Ki.js";import"./legacy-admin-welcome-dialog-DpejN_Uy.js";import"./required-auth-layout-Bqqrer2s.js";import"./use-org-sso-QDNvT__Q.js";import"./cms-store-drafts-D_kzaiOk.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-D70Jm3Cf.js";import"./url-slug-DrOjUMxX.js";import"./use-blocks-v8-project-B8tSOiQV.js";import"./use-sandbox-events-DFE5xC3q.js";import"./sandbox-url-D3mC8qhT.js";import"./use-fast-preview-draft-url-kaqCW9_t.js";import"./blocks-tab-states-pUzFXPTK.js";import"./empty-state-BNznQ4un.js";import"./index-BMmbX0gD.js";import"./ArrowUp-BX9rle-Z.js";import"./input-BmsdW_BQ.js";import"./usage-stats-xir5IhsZ.js";import"./utils-CVEq3hMx.js";import"./markdown-BWT_4WJH.js";import"./use-copy-Dc7Mx1fC.js";import"./gateway-client-CEz2o7p6.js";import"./form-vgZJ8ykR.js";import"./icon-button-DAAwLc_Y.js";import"./file-type-icon-5ukaLDeF.js";import"./chat-draft-CMZymjc1.js";import"./ArrowRight-DckDNEPN.js";import"./Upload01-DF54M6Ph.js";import"./use-deco-credits-B34VYEQw.js";import"./toggle-group-B5Qv0TZp.js";import"./input-Bp705GAE.js";import"./suggestion-BUUDUW90.js";import"./use-mcp-prompts-Dzcv5Qm_.js";import"./use-org-fs-DMG6vhv9.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-_CmjErfx.js";import"./plan-ladder-B-wAiO1o.js";import"./add-connection-dialog-CmjWx4NO.js";import"./extract-connection-data-DR98xre0.js";import"./metadata-D72DunRR.js";import"./connection-BGRWc-KI.js";import"./connection-card-BuyifKDO.js";import"./connection-slug-BU-gcFLx.js";import"./textarea-i65d3zD6.js";import"./use-connection-VTUSBGTe.js";import"./schema-CFHsTaYR.js";import"./connection-form-helpers-DVl_sDCj.js";import"./authenticate-and-persist-oauth-ZxRhWemt.js";import"./mcp-oauth-DIu8HkzC.js";import"./mcp-oauth-DUQJVV6B.js";import"./collection-tabs-C_tkgeK_.js";import"./badge-C-0ziPev.js";import"./use-infinite-scroll-CBxCb09-.js";import"./useSuspenseInfiniteQuery-D4hQd0qx.js";import"./use-task-board-items--v3zNW-2.js";import"./pair-Bonyggei.js";import"./collapsible-Czfx-LAp.js";import"./task-key-PeB83qoV.js";import"./config-CpgY06XK.js";import"./task-route-D-8EO_RF.js";import"./project-index-Dn3n52T-.js";import"./TrendUp01-CkF2n8Hn.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-YjPzFqL6.js";import"./types-BRAj2PE2.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-vfKngax2.js";import"./agent-capabilities-B2Kb_ijp.js";import"./use-cms-publish-actions-ChEzMzUL.js";import"./use-content-sync-BXrJzR11.js";import"./sandbox-git-api-MxAem5iH.js";import"./utils-GIRCtww_.js";import"./device-hint-Eqj86kPk.js";import"./alert-_oqAOD6X.js";import"./section-array-field-DR10vlg7.js";import"./editor-DOCwgCVw.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-DoYhWfFO.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-iNQuijBz.js";import"./hosted-reconcile-B7PmB0kg.js";import"./search-input-_TDPMfaj.js";import"./use-file-configs-DJQqKxP9.js";import"./asset-utils-DDL7Zhst.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-haYeO0--.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-BxMnwfXM.js";import"./Play-Dgyu5PiH.js";import"./use-move-blocks-B58hF-QF.js";import"./CreditCard01-CHpJYShR.js";import"./Sun-CGayzxv4.js";import"./blog-preview-url-BOmxSryn.js";import"./use-main-panel-tabs-CAwxHjj4.js";import"./use-mcp-tools-CaA0WW-E.js";import"./resolve-tab-icon-B4dWqPe0.js";import"./use-task-metadata-puiqvF0z.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-BkAnKN4Z.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-B7jwyYDv.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])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-Ch7j2D2R.js"),__vite__mapDeps([148,1,2,78,125,40,75,14,16,145,149,24,34,35,137,121,67,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,69,70,71,72,122,102,74,73,3,4,5,6,7,8,9,10,11,12,13,15,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,36,37,38,123,124,126,127,117,118,119,120,128,129,132,116,130,138,139,140,93,141,142,97,98,48,49,50,47,76,77,150,151,144,42,43,44,45,46,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,131,152,153,154,155,156,157,158,159,160,161,162,163,39,164])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-j7sSG9YT.js"),__vite__mapDeps([165,1,2,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,4,9,20,17,78,125,40,75,14,16,152,5,153,137,121,122,102,74,73,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,123,124,126,127,117,118,119,120,128,129,132,116,130,138,139,140,93,141,142,97,98,48,49,50,47,76,77,149,150,151,144,154,145,155,79,156,43,44,45,46,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,157,158,159,160,161,162,163,39,42,131,166,167,164,168,136,143,169,170,171])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-DMfn82WA.js"),__vite__mapDeps([172,1,2,132,117,118,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,119,120,121,122,102,74,75,73,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,123,124,125,40,126,127,128,129,116,130,134,78,150,145,136,48,49,50,47,76,77,137,138,139,140,93,141,142,97,98,42,43,44,45,46,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,131,143,164,149,151,144,173,155,169,171,174,175,176,154,170])).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=Oe(),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=qe({orgSlug:d,virtualMcpId:c,branch:u}),A=Je(b?{orgSlug:d,virtualMcpId:c,branch:u}:null,it),E=He({orgSlug:d,virtualMcpId:c,branch:u}),[U,D]=M.useState(""),[B,N]=M.useState("list"),[C,I]=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),[z,F]=M.useState(l);z!==l&&(F(l),D(""));const P=at({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),O=lt(s),pe={posts:O.posts.length,authors:O.authors.length,categories:O.categories.length},de=async r=>{const _=se(s,r),$=ee(_,r,pt(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:$,...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=O.categories.map(H=>H.slug??"").filter(Boolean);L.slug=ht(String(L.slug??""),Q)}return{key:w,payload:L}},$=f?null:_(s[r.key]);try{const p=f?_(await S(s,r.key)):$;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"),$=ee(_,"posts",ot(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:$,...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 $=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:$(s[r]);try{const w=f?$(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:$}=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 H=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,q]of H)q?Q[G]=q:delete Q[G]}for(const{key:H,payload:G}of dt(Q)){const q=ut(G,L);q!==G&&await m.mutateAsync({blockKey:H,data:ft(H,gt(q)),...f?{base:{value:Q[H],fromCache:!0}}:{}})}}}const w=await h.mutateAsync({blockKey:_,...f?{base:{value:p}}:{}});if(I(null),Z(w))return;T.success(`Deleted "${$}"`),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:O[l],searchQuery:U,onSearchChange:D,selectedKey:a,onSelect:r=>v(r),onCreate:()=>{de(l)},onDuplicate:r=>{ue(r)},onDelete:I}),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&&I(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(F=>!A||F.label.toLowerCase().includes(A)||F.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=F=>n(F.target.value),e[17]=n,e[18]=C):C=e[18];let I;e[19]!==D||e[20]!==v||e[21]!==C?(I=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]=I):I=e[22];let W;e[23]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx($e,{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(ze,{children:B}),e[27]=B,e[28]=V):V=e[28];let z;e[29]!==K||e[30]!==V?(z=t.jsxs(Fe,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=z):z=e[31],e[32]!==z||e[33]!==I?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[I,z]}),e[32]=z,e[33]=I,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(F=>{const{entry:P,depth:O}=F;return t.jsx("div",{style:{paddingLeft:O*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:O>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:It})}})}),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 It(i){return vt({previous:i,destination:"agent"})}function $t(){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(Ie,{feature:"cms",children:t.jsx(Tt,{virtualMcpId:e})})})}),i[0]=e,i[1]=a):a=i[1],a}function Si(){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($t,{})}),i[0]=e):e=i[0],e}export{Si as default};