decocms 4.294.4 → 4.295.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 (229) hide show
  1. package/dist/client/assets/{AlertCircle-COfoHlYo.js → AlertCircle-AuVMh5dI.js} +1 -1
  2. package/dist/client/assets/{AreaChart-k1GdGLk3.js → AreaChart-32Qtz-eE.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DvfIRo1L.js → ArrowLeft-qguukyWS.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-CukalgWz.js → ArrowUp-D8KdFxp3.js} +1 -1
  5. package/dist/client/assets/{Check-CQfGOUkn.js → Check-De5xbMZ_.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-B5B8UVD6.js → CheckCircle-EPKsKkCI.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-DJW5HhkM.js → ChevronDown-D6sMb7w8.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CdylS1le.js → ChevronRight-eCyOlX7q.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-DjiLaY0h.js → ChevronSelectorVertical-DXXBw1x3.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DOnt1lNa.js → ChevronUp-CU8wkfB6.js} +1 -1
  11. package/dist/client/assets/{Copy01-DT_VNucR.js → Copy01-CprinEfn.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-Bi19p04V.js → CreditCard01-D1pg-ChJ.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-veJCsKg6.js → DotsVertical-K-45hvkg.js} +1 -1
  14. package/dist/client/assets/{Download01-BC66vxkd.js → Download01-BKILAf-9.js} +1 -1
  15. package/dist/client/assets/{Eye-DhvNNTcF.js → Eye-BIEDLA51.js} +1 -1
  16. package/dist/client/assets/{FilterLines-DCFzTCRB.js → FilterLines-BRzgKNAI.js} +1 -1
  17. package/dist/client/assets/{Globe01-CnIzUI9D.js → Globe01-CpKIMjw2.js} +1 -1
  18. package/dist/client/assets/{Globe04-DtNi2ZyL.js → Globe04-HRnTxSxk.js} +1 -1
  19. package/dist/client/assets/{HardDrive-CLNcCFxS.js → HardDrive-CPFqpUNk.js} +1 -1
  20. package/dist/client/assets/{Key01-28MkH09O.js → Key01-CGwhy3oU.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-BmdVn0um.js → LinkExternal01-PqQ-7e5z.js} +1 -1
  22. package/dist/client/assets/{LockUnlocked01-xbaMcbOK.js → LockUnlocked01-CrE32oee.js} +1 -1
  23. package/dist/client/assets/{LogOut01-CUumDUY-.js → LogOut01-DeUaCLqa.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DnWcZI3D.js → Monitor01-2y5hMZ1w.js} +1 -1
  25. package/dist/client/assets/{Palette-BbL1PNN-.js → Palette-0eaeXKN1.js} +1 -1
  26. package/dist/client/assets/{Play-DWeLA7lK.js → Play-CwsbwXLV.js} +1 -1
  27. package/dist/client/assets/{Plus-DEP38EYY.js → Plus-BVETRe-R.js} +1 -1
  28. package/dist/client/assets/{SearchLg-BO_-rqE7.js → SearchLg-C3NeQGSM.js} +1 -1
  29. package/dist/client/assets/{SearchMd-B7xHuJq4.js → SearchMd-BmF-Y8C_.js} +1 -1
  30. package/dist/client/assets/{Settings02-DE8fnfTk.js → Settings02-BGe12x-0.js} +1 -1
  31. package/dist/client/assets/{Share07-Bk8835lK.js → Share07-CIcrbYTY.js} +1 -1
  32. package/dist/client/assets/{Shield01-BUK8VCxJ.js → Shield01-BdVpW4u3.js} +1 -1
  33. package/dist/client/assets/{Stars01-C5onyQkg.js → Stars01-DtpzfCLb.js} +1 -1
  34. package/dist/client/assets/{Stars02-b1P1T_48.js → Stars02-Dkvt8wI3.js} +1 -1
  35. package/dist/client/assets/{Sun-B_-yVQ2_.js → Sun--6iEcFDH.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-rtsYQduN.js → SwitchHorizontal01-4ZxiW7Cz.js} +1 -1
  37. package/dist/client/assets/{Tool01-BMVX3tOF.js → Tool01-Us4du1HU.js} +1 -1
  38. package/dist/client/assets/{Tool02-WBvKkURX.js → Tool02-D26qiRWa.js} +1 -1
  39. package/dist/client/assets/{Trash01-CiqyPob_.js → Trash01-C7w4wgyv.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-CahTnQ2p.js → TrendUp01-qULdDtxY.js} +1 -1
  41. package/dist/client/assets/{Upload01-CWR5PH57.js → Upload01-BwQI0tkZ.js} +1 -1
  42. package/dist/client/assets/{User01-S_RGxi2I.js → User01-DXZUb8k_.js} +1 -1
  43. package/dist/client/assets/{UserSquare-nHDcwF_u.js → UserSquare-BVlsJI1B.js} +1 -1
  44. package/dist/client/assets/{Users01-OC7kfFvk.js → Users01-DHYvjTlW.js} +1 -1
  45. package/dist/client/assets/{Users03-CasZyOXJ.js → Users03-Ba7Zs6Ag.js} +1 -1
  46. package/dist/client/assets/{XCircle-BrD26F_t.js → XCircle-Cx-N-IGe.js} +1 -1
  47. package/dist/client/assets/{XClose-DbkY8wiR.js → XClose-CG2kLlHe.js} +1 -1
  48. package/dist/client/assets/{YAxis-DrMnrLGw.js → YAxis-Bz3HO6wz.js} +1 -1
  49. package/dist/client/assets/{Zap-uo4AxzhY.js → Zap-CLl4PoNB.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-BXyJZB2H.js → ZapSquare-DN3LNwBv.js} +1 -1
  51. package/dist/client/assets/{access-gate-Doy8MTWW.js → access-gate-tvnhE7IN.js} +1 -1
  52. package/dist/client/assets/{agent-icon-BK-LdAbb.js → agent-icon-BxrQJCRL.js} +1 -1
  53. package/dist/client/assets/agents-list-CUlruSt3.js +1 -0
  54. package/dist/client/assets/{ai-providers-ByfOx-iG.js → ai-providers-B7gambd9.js} +1 -1
  55. package/dist/client/assets/{alert-DHk1Duu5.js → alert-BA7rXuZe.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-EuQzy5n4.js → alert-dialog-BL9CUnhQ.js} +1 -1
  57. package/dist/client/assets/{api-keys-CkO4l_xX.js → api-keys-DMYVCfM5.js} +1 -1
  58. package/dist/client/assets/{app-editor-BqXRQEpA.js → app-editor-CcPNrxRK.js} +1 -1
  59. package/dist/client/assets/{auth-Ck-CYI0s.js → auth-BBrRxGil.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-Bwnt6nAM.js → auth-catchall-Dz-qm03v.js} +1 -1
  61. package/dist/client/assets/{auth-entry-xKtC3zLP.js → auth-entry-DZuT_vzL.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-BQ1bEHAM.js → auth-split-layout-CpEasvie.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-Bnxs7yjQ.js → authenticate-and-persist-oauth-CRn8vZ5a.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-CbU006h8.js → automation-list-row-BkOEm1ne.js} +1 -1
  65. package/dist/client/assets/{automation-runs-DJXgmGit.js → automation-runs-CZzDwgHo.js} +1 -1
  66. package/dist/client/assets/{automations-4WtbAMRr.js → automations-BUAOHwWe.js} +1 -1
  67. package/dist/client/assets/{avatar-BGhjOwGM.js → avatar-B8TVDNq4.js} +1 -1
  68. package/dist/client/assets/{badge-Db5xIffE.js → badge-XOWpXFsB.js} +1 -1
  69. package/dist/client/assets/{block-document-BreIOxf_.js → block-document-BUTPAgn8.js} +1 -1
  70. package/dist/client/assets/{breadcrumb-yuTxiBYX.js → breadcrumb-BFwQxBQP.js} +1 -1
  71. package/dist/client/assets/{buckets-DpGmU5zM.js → buckets-Bm5VdjWG.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel--UILFV7T.js → bulk-category-panel-aYkHZTyU.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-D0M3HC9t.js → capability-load-error-CiczIgA9.js} +1 -1
  74. package/dist/client/assets/{cards-DjdS8mnO.js → cards-BZwhu1wh.js} +1 -1
  75. package/dist/client/assets/{category-editor-BVw0za2r.js → category-editor-BiRvoBFc.js} +1 -1
  76. package/dist/client/assets/{chart-CsLoGKFV.js → chart-BWotToPV.js} +1 -1
  77. package/dist/client/assets/{chat-context-BaV72O1g.js → chat-context-QcgP5Hid.js} +1 -1
  78. package/dist/client/assets/{checkbox-YMTFrO1r.js → checkbox-B9NW4zF5.js} +1 -1
  79. package/dist/client/assets/{choose-editor-BlU5Wexq.js → choose-editor-k-RXEoUp.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-z65wjSmk.js → cli-auth-success-B5d7GL_P.js} +1 -1
  81. package/dist/client/assets/{collection-detail-Bqyrlcae.js → collection-detail-DwWj_PUl.js} +1 -1
  82. package/dist/client/assets/{collection-display-button-CUsSTflP.js → collection-display-button-BPhWjKi-.js} +1 -1
  83. package/dist/client/assets/{collection-search-CiPLUXMb.js → collection-search-CKF4vh-a.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-ClqU84Kc.js → collection-table-wrapper-Bqh6CfyS.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-B32iAo6N.js → collection-tabs-Bl35q2wY.js} +1 -1
  86. package/dist/client/assets/{command-DOfXQ3iQ.js → command-DIiqDY8s.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding-BhfT16ic.js → commerce-onboarding-C902xetT.js} +1 -1
  88. package/dist/client/assets/{config-sObTbFZQ.js → config-D_UdMhgt.js} +1 -1
  89. package/dist/client/assets/{connect-C5xAKAEp.js → connect-CwT7z02m.js} +1 -1
  90. package/dist/client/assets/{connection-RGa3bMYb.js → connection-D6JctQZ6.js} +1 -1
  91. package/dist/client/assets/{connection-card-CaXPkEtx.js → connection-card-D0KOfMfB.js} +1 -1
  92. package/dist/client/assets/{connection-detail-j6Hg2C9_.js → connection-detail-CUmE_Big.js} +1 -1
  93. package/dist/client/assets/{connection-form-helpers-CAJu7GAu.js → connection-form-helpers-DCsDAtJ5.js} +1 -1
  94. package/dist/client/assets/{connections-BFlBx3eR.js → connections-CLY70siF.js} +1 -1
  95. package/dist/client/assets/{decopilot-sse-pool-RJKXQFNl.js → decopilot-sse-pool-TjgW7ckc.js} +1 -1
  96. package/dist/client/assets/{dialog-v9lm8kV3.js → dialog-Bwbh5XkT.js} +1 -1
  97. package/dist/client/assets/{domain-settings-DtzQhB08.js → domain-settings-nviyrCM7.js} +1 -1
  98. package/dist/client/assets/{drawer-DBmJy2OH.js → drawer-gZY69Evm.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-kAhQsmIq.js → dropdown-menu-BBOt5jRY.js} +1 -1
  100. package/dist/client/assets/{empty-state-DGfgLPT9.js → empty-state-ZMMx_ggR.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-BPW_Djea.js → extract-connection-data-MtRIVNnL.js} +1 -1
  102. package/dist/client/assets/{file-explorer-D9vNN4Ai.js → file-explorer-By2eB_Ur.js} +1 -1
  103. package/dist/client/assets/{file-type-icon-Cp2yVzTz.js → file-type-icon-BZq9FOyv.js} +1 -1
  104. package/dist/client/assets/{form-KfWVSNEC.js → form-Ci6fEfbw.js} +1 -1
  105. package/dist/client/assets/{general-Cq15YFKz.js → general-C4Q4Tkky.js} +1 -1
  106. package/dist/client/assets/{github-repo-picker-BgSzUzWL.js → github-repo-picker-C9sTEKuY.js} +1 -1
  107. package/dist/client/assets/{hooks-ndMd0rOE.js → hooks-BKhOAw1A.js} +1 -1
  108. package/dist/client/assets/{index-Cvq1ebr1.js → index--WXQrPpq.js} +1 -1
  109. package/dist/client/assets/{index-BMtomEba.js → index-BZL6xWss.js} +1 -1
  110. package/dist/client/assets/{index-AYOlfrqu.js → index-C5KZk-u7.js} +1 -1
  111. package/dist/client/assets/{index-DkH2JDxv.js → index-CnAJ5chy.js} +1 -1
  112. package/dist/client/assets/{index-BUlvC5Z0.js → index-Csqzx8_V.js} +6 -6
  113. package/dist/client/assets/{index-BAkM-bvY.js → index-D38NIFCR.js} +1 -1
  114. package/dist/client/assets/{index-BLOTG8F6.js → index-Q_1byZfT.js} +1 -1
  115. package/dist/client/assets/{index-kc-p0Tho.js → index-hm31ugsP.js} +3 -3
  116. package/dist/client/assets/{index-Gwx_pD8S.js → index-jyxlFwyy.js} +1 -1
  117. package/dist/client/assets/{index-redirect-Dtrld574.js → index-redirect-B-ynrwSi.js} +1 -1
  118. package/dist/client/assets/{infra-billing-CiXyqP0z.js → infra-billing-CaKIYyvJ.js} +1 -1
  119. package/dist/client/assets/{input-CoA1YEYW.js → input-g7He7HnU.js} +1 -1
  120. package/dist/client/assets/{integration-icon-Db_3_1Xt.js → integration-icon-1PiPsdgu.js} +1 -1
  121. package/dist/client/assets/{invite-member-dialog--rStSant.js → invite-member-dialog-CPU1Cja2.js} +1 -1
  122. package/dist/client/assets/{label-COrU7OvG.js → label-wbLj9z7D.js} +1 -1
  123. package/dist/client/assets/{layout-Dw5HsV5p.js → layout-DuotoeXM.js} +1 -1
  124. package/dist/client/assets/{login-zSNYYLrC.js → login-CT_9yG2h.js} +1 -1
  125. package/dist/client/assets/{mcp-oauth-KDpSMvkd.js → mcp-oauth-6VKK9YCj.js} +1 -1
  126. package/dist/client/assets/{members-DBUg3WK3.js → members-SGggZaGX.js} +1 -1
  127. package/dist/client/assets/{monaco-editor-C37CkGWQ.js → monaco-editor-BQZURj6U.js} +1 -1
  128. package/dist/client/assets/{monitoring-stats-row-4aj-ddP2.js → monitoring-stats-row-Cp8fFm_E.js} +1 -1
  129. package/dist/client/assets/{multi-select-CNe6aWif.js → multi-select-sghdJAwh.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-ai-provider-xi9UFQxQ.js → oauth-callback-ai-provider-CZtBSe-e.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-CplvzY-h.js → oauth-callback-mYgEnKxB.js} +1 -1
  132. package/dist/client/assets/{onboarding-D0Phxs-H.js → onboarding-DoDvT2c2.js} +1 -1
  133. package/dist/client/assets/{org-layout-BMiLJodT.js → org-layout-YOrQJWsx.js} +1 -1
  134. package/dist/client/assets/{organization-choice-BM0bUwZh.js → organization-choice-vhXN-oKW.js} +1 -1
  135. package/dist/client/assets/{orgs-B3KfLtXg.js → orgs-BVLQBLF0.js} +1 -1
  136. package/dist/client/assets/{page-seo-form-B-kTujwr.js → page-seo-form-BLK9eD-y.js} +1 -1
  137. package/dist/client/assets/{popover-B0YbN5z6.js → popover-BOChxGM-.js} +1 -1
  138. package/dist/client/assets/{post-calendar-Dtrz1ddb.js → post-calendar-DiRm177w.js} +1 -1
  139. package/dist/client/assets/{post-editor-DsQuK9Oa.js → post-editor-Cn3KDqzu.js} +1 -1
  140. package/dist/client/assets/{primitives-Xx0pIitg.js → primitives-BzOkwFQR.js} +1 -1
  141. package/dist/client/assets/{profile-DytMpCX8.js → profile-CpSt2XRC.js} +1 -1
  142. package/dist/client/assets/{project-app-view-CgtJDq_r.js → project-app-view-DGNzI-4j.js} +1 -1
  143. package/dist/client/assets/{prompts-DGB_aYxK.js → prompts-C5dDeipG.js} +1 -1
  144. package/dist/client/assets/record-editor-DFt8Y1fi.js +1 -0
  145. package/dist/client/assets/{redirect-editor-5tWecuOB.js → redirect-editor-BnemkfuU.js} +1 -1
  146. package/dist/client/assets/registry-B0F5KeDV.js +2 -0
  147. package/dist/client/assets/{registry-layout-BObW66Mi.js → registry-layout-BLZVzCAN.js} +1 -1
  148. package/dist/client/assets/{reports-BKQhqTCw.js → reports-Cc-Yt9-4.js} +1 -1
  149. package/dist/client/assets/{require-capability-B-toWf1T.js → require-capability-vw_BGTby.js} +1 -1
  150. package/dist/client/assets/{required-auth-layout-CPEZLxXW.js → required-auth-layout-DOQ5Yy6_.js} +1 -1
  151. package/dist/client/assets/{reset-password-B2xsPOz7.js → reset-password-C8O3fWvq.js} +1 -1
  152. package/dist/client/assets/{review-settings-CQcW0UJP.js → review-settings-D1ap0gua.js} +1 -1
  153. package/dist/client/assets/{roles-BahMe3Yj.js → roles-BIPJ_l4f.js} +1 -1
  154. package/dist/client/assets/{scroll-area-Dy82C7p_.js → scroll-area-CBXFYBFg.js} +1 -1
  155. package/dist/client/assets/{search-input-BupwGxLP.js → search-input-DIjZdQF_.js} +1 -1
  156. package/dist/client/assets/{secrets-CMSdKJ02.js → secrets-Z9iNmDBV.js} +1 -1
  157. package/dist/client/assets/{sections-editor-K0jU5DNu.js → sections-editor-b7lkQ0RY.js} +1 -1
  158. package/dist/client/assets/{select-DwECBvqm.js → select-CenhiY0i.js} +1 -1
  159. package/dist/client/assets/{select-model-D3_B27r5.js → select-model-dMVafewK.js} +1 -1
  160. package/dist/client/assets/{self-tool-result-BWeTClq7.js → self-tool-result-Cj0S2miF.js} +1 -1
  161. package/dist/client/assets/{seo-editor-Bv2R8igF.js → seo-editor-rcklFjZy.js} +1 -1
  162. package/dist/client/assets/{settings-layout-BdmXRuID.js → settings-layout-8ki3RYOg.js} +1 -1
  163. package/dist/client/assets/{shell-controls-Be5eyBnD.js → shell-controls-OeEy88V1.js} +1 -1
  164. package/dist/client/assets/{shell-layout-Btlvd1G3.js → shell-layout-DM_yg8NE.js} +1 -1
  165. package/dist/client/assets/{spinner-Ba0CkhBN.js → spinner-BqZHGuGn.js} +1 -1
  166. package/dist/client/assets/{sso-zfNVjVfI.js → sso-B10fI_fV.js} +1 -1
  167. package/dist/client/assets/{store-CgKz3-lQ.js → store-f5wCwn1L.js} +1 -1
  168. package/dist/client/assets/store-registry-Bw63JaJ6.js +2 -0
  169. package/dist/client/assets/{super-agent-icon-f5MMUEZI.js → super-agent-icon-D0imePiM.js} +1 -1
  170. package/dist/client/assets/{switch-CvaUzcu8.js → switch-BYKDkfxp.js} +1 -1
  171. package/dist/client/assets/{synced-repos-VI3iwOU2.js → synced-repos-BoGPB1MQ.js} +1 -1
  172. package/dist/client/assets/{table-CNWQQ1ny.js → table-Bbb6DGd2.js} +1 -1
  173. package/dist/client/assets/{tabs---ylShNh.js → tabs-BYw-M7nu.js} +1 -1
  174. package/dist/client/assets/{task-board-d9aI3xON.js → task-board-BZOysUuk.js} +1 -1
  175. package/dist/client/assets/{tasks-CqsZedy1.js → tasks-DcKWdx_X.js} +1 -1
  176. package/dist/client/assets/{textarea-CvXIGUrZ.js → textarea-CmBeOMvY.js} +1 -1
  177. package/dist/client/assets/{toggle-group-9H7MENld.js → toggle-group-BQGtS4X4.js} +1 -1
  178. package/dist/client/assets/{toolbar-CFGjTZKp.js → toolbar-vRaL8WnF.js} +1 -1
  179. package/dist/client/assets/{track-rDKtvIJ6.js → track-Ce1UGjEO.js} +1 -1
  180. package/dist/client/assets/{types-BR-rJmTQ.js → types-CvTzc_Qh.js} +1 -1
  181. package/dist/client/assets/{use-ai-providers-D-DLX2r-.js → use-ai-providers-BvSmTglu.js} +1 -1
  182. package/dist/client/assets/{use-api-keys-Ba1kau-j.js → use-api-keys-C47D1Nbh.js} +1 -1
  183. package/dist/client/assets/{use-automations-DCQErfJY.js → use-automations-DzhoYYdI.js} +1 -1
  184. package/dist/client/assets/{use-autosave-COQ2KNxK.js → use-autosave-4nUOlTfl.js} +1 -1
  185. package/dist/client/assets/{use-connection-DN4iufew.js → use-connection-DKzIht9f.js} +1 -1
  186. package/dist/client/assets/{use-copy-BrNQw893.js → use-copy-ZowOp1LZ.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-mTrVU1Cr.js → use-create-virtual-mcp-DUns7W-9.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-C96mZ7FL.js → use-debounced-autosave-L8JjKxdU.js} +1 -1
  189. package/dist/client/assets/{use-debounced-value-w4-tTzSs.js → use-debounced-value-BNdqCz-8.js} +1 -1
  190. package/dist/client/assets/{use-decopilot-events-DQphD5G3.js → use-decopilot-events-Bdt4fjgZ.js} +1 -1
  191. package/dist/client/assets/{use-delete-connection-B2YaAVmg.js → use-delete-connection-DFzNmzm2.js} +1 -1
  192. package/dist/client/assets/{use-deployment-admin-ChQMmdpu.js → use-deployment-admin-Bv0YpbSk.js} +1 -1
  193. package/dist/client/assets/{use-destination-route-DwR5EZdM.js → use-destination-route-BpT878sj.js} +1 -1
  194. package/dist/client/assets/{use-file-configs-BQA5pT_r.js → use-file-configs-CIlcx97w.js} +1 -1
  195. package/dist/client/assets/{use-infinite-scroll-xFY_A5TW.js → use-infinite-scroll-BpnF4fSC.js} +1 -1
  196. package/dist/client/assets/{use-join-requests-BVeSRkzW.js → use-join-requests-Dqyr7T9a.js} +1 -1
  197. package/dist/client/assets/{use-mcp-auth-status-g4f-5p6M.js → use-mcp-auth-status-iQxqyXeQ.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-C2WpJqGp.js → use-mcp-client-CX-OBmZf.js} +1 -1
  199. package/dist/client/assets/{use-mcp-tools-D2jDyaSa.js → use-mcp-tools-Dmty5VQY.js} +1 -1
  200. package/dist/client/assets/{use-members-D3qbSIYx.js → use-members-Ce4XWWMv.js} +1 -1
  201. package/dist/client/assets/{use-navigate-to-agent-BnGGkvww.js → use-navigate-to-agent-BWv7kruU.js} +1 -1
  202. package/dist/client/assets/{use-org-auth-client-6ydcGnsW.js → use-org-auth-client-DRVc-InE.js} +1 -1
  203. package/dist/client/assets/{use-org-repo-syncs-ioAfxmUp.js → use-org-repo-syncs-DPTbdSkw.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-DMKUn11x.js → use-org-sso-C66hqVjQ.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-JJdzyzc2.js → use-organization-roles-B-uGTjt3.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-BqyTxtql.js → use-organization-settings-C1HlNm4K.js} +1 -1
  207. package/dist/client/assets/{use-panel-navigate-DSXuFDWh.js → use-panel-navigate-FYASNw8E.js} +1 -1
  208. package/dist/client/assets/{use-registry-connections-owrgLOps.js → use-registry-connections-DtF-hSyP.js} +1 -1
  209. package/dist/client/assets/{use-secrets-D8LOTarp.js → use-secrets-CSyh1qfb.js} +1 -1
  210. package/dist/client/assets/{use-section-preview-base-BWjBzoZV.js → use-section-preview-base-BzdiZy8o.js} +1 -1
  211. package/dist/client/assets/{use-status-sounds-BxmwD3Ts.js → use-status-sounds-DV_bQ2MC.js} +1 -1
  212. package/dist/client/assets/{use-tags-CsnYBdZ3.js → use-tags-DfKtJhjC.js} +1 -1
  213. package/dist/client/assets/{use-view-mode-Ce8VSwQi.js → use-view-mode-C2M92OlF.js} +1 -1
  214. package/dist/client/assets/{use-virtual-mcp-C1lgXcOb.js → use-virtual-mcp-CbZuO3e_.js} +1 -1
  215. package/dist/client/assets/useInfiniteQuery-B2jR9hyr.js +1 -0
  216. package/dist/client/assets/useSuspenseInfiniteQuery-DsL0Dkz6.js +1 -0
  217. package/dist/client/assets/{users-WlHHd84i.js → users-CsqBvp9s.js} +1 -1
  218. package/dist/client/assets/{variant-calendar-BbU1vB51.js → variant-calendar-BmqfEHag.js} +1 -1
  219. package/dist/client/assets/{view-mode-toggle-SNjppYRr.js → view-mode-toggle-D8HpUEqb.js} +1 -1
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +1 -1
  222. package/dist/server/server.js +1 -1
  223. package/package.json +1 -1
  224. package/dist/client/assets/agents-list-BExPOUFd.js +0 -1
  225. package/dist/client/assets/record-editor-BKnPZeAl.js +0 -1
  226. package/dist/client/assets/registry-BH-InggM.js +0 -2
  227. package/dist/client/assets/store-registry-CXJ_5Ae5.js +0 -2
  228. package/dist/client/assets/useInfiniteQuery-PqMaSXlJ.js +0 -1
  229. package/dist/client/assets/useSuspenseInfiniteQuery-BO55lV73.js +0 -1
@@ -1 +1 @@
1
- import{c as ne,b as ce,r as fe,x as we,n as J,j as t,B as ae}from"./index-kc-p0Tho.js";import{i as Te}from"./AlertCircle-COfoHlYo.js";import{au as ze,r as Ee}from"./agent-icon-BK-LdAbb.js";import{i as Pe}from"./ChevronRight-CdylS1le.js";import{s as Ae}from"./Plus-DEP38EYY.js";import{a as _e,b as Me,A as Ue}from"./alert-DHk1Duu5.js";import{S as Ie}from"./scroll-area-Dy82C7p_.js";import{_ as Le,bW as Oe,as as Re,bR as $e,bS as He,bX as Be,bQ as be,bU as he,bY as Fe,bZ as We}from"./index-BUlvC5Z0.js";import"./UserSquare-nHDcwF_u.js";import"./Tool01-BMVX3tOF.js";import"./ArrowUp-CukalgWz.js";import"./ArrowLeft-DvfIRo1L.js";import"./Tool02-WBvKkURX.js";import"./XCircle-BrD26F_t.js";import"./TrendUp01-CahTnQ2p.js";import"./ZapSquare-BXyJZB2H.js";import"./Users03-CasZyOXJ.js";import"./CheckCircle-B5B8UVD6.js";import"./Check-CQfGOUkn.js";import"./ChevronDown-DJW5HhkM.js";import"./ChevronSelectorVertical-DjiLaY0h.js";import"./ChevronUp-DOnt1lNa.js";import"./DotsVertical-veJCsKg6.js";import"./Stars02-b1P1T_48.js";import"./Copy01-DT_VNucR.js";import"./CreditCard01-Bi19p04V.js";import"./Download01-BC66vxkd.js";import"./Settings02-DE8fnfTk.js";import"./Eye-DhvNNTcF.js";import"./FilterLines-DCFzTCRB.js";import"./Share07-Bk8835lK.js";import"./Globe01-CnIzUI9D.js";import"./Globe04-DtNi2ZyL.js";import"./SwitchHorizontal01-rtsYQduN.js";import"./HardDrive-CLNcCFxS.js";import"./Key01-28MkH09O.js";import"./LinkExternal01-BmdVn0um.js";import"./LockUnlocked01-xbaMcbOK.js";import"./LogOut01-CUumDUY-.js";import"./Monitor01-DnWcZI3D.js";import"./Sun-B_-yVQ2_.js";import"./Palette-BbL1PNN-.js";import"./Play-DWeLA7lK.js";import"./SearchLg-BO_-rqE7.js";import"./SearchMd-B7xHuJq4.js";import"./Shield01-BUK8VCxJ.js";import"./Stars01-C5onyQkg.js";import"./Trash01-CiqyPob_.js";import"./Upload01-CWR5PH57.js";import"./User01-S_RGxi2I.js";import"./Users01-OC7kfFvk.js";import"./XClose-DbkY8wiR.js";import"./Zap-uo4AxzhY.js";import"./select-DwECBvqm.js";import"./chat-context-BaV72O1g.js";import"./use-panel-navigate-DSXuFDWh.js";import"./dialog-v9lm8kV3.js";import"./use-destination-route-DwR5EZdM.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-ndMd0rOE.js";import"./use-mcp-client-C2WpJqGp.js";import"./auth-Ck-CYI0s.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-RJKXQFNl.js";import"./task-board-d9aI3xON.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-C1lgXcOb.js";import"./use-ai-providers-D-DLX2r-.js";import"./use-decopilot-events-DQphD5G3.js";import"./use-organization-settings-BqyTxtql.js";import"./automation-runs-DJXgmGit.js";import"./useInfiniteQuery-PqMaSXlJ.js";import"./use-infinite-scroll-xFY_A5TW.js";import"./use-connection-DN4iufew.js";import"./table-CNWQQ1ny.js";import"./empty-state-DGfgLPT9.js";import"./use-members-D3qbSIYx.js";import"./use-org-auth-client-6ydcGnsW.js";import"./use-automations-DCQErfJY.js";import"./useSuspenseInfiniteQuery-BO55lV73.js";import"./avatar-BGhjOwGM.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BrNQw893.js";import"./monaco-editor-C37CkGWQ.js";import"./spinner-Ba0CkhBN.js";import"./types-BR-rJmTQ.js";import"./shell-layout-Btlvd1G3.js";import"./required-auth-layout-CPEZLxXW.js";import"./use-org-sso-DMKUn11x.js";import"./integration-icon-Db_3_1Xt.js";import"./use-navigate-to-agent-BnGGkvww.js";import"./chart-CsLoGKFV.js";import"./index-BMtomEba.js";import"./form-KfWVSNEC.js";import"./label-COrU7OvG.js";import"./input-CoA1YEYW.js";import"./file-type-icon-Cp2yVzTz.js";import"./drawer-DBmJy2OH.js";import"./collection-search-CiPLUXMb.js";import"./tabs---ylShNh.js";import"./toggle-group-9H7MENld.js";import"./super-agent-icon-f5MMUEZI.js";import"./self-tool-result-BWeTClq7.js";import"./alert-dialog-EuQzy5n4.js";import"./extract-connection-data-BPW_Djea.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-w4-tTzSs.js";import"./authenticate-and-persist-oauth-Bnxs7yjQ.js";import"./mcp-oauth-KDpSMvkd.js";import"./track-rDKtvIJ6.js";import"./popover-B0YbN5z6.js";import"./toolbar-CFGjTZKp.js";import"./github-repo-picker-BgSzUzWL.js";import"./use-mcp-tools-D2jDyaSa.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CaXPkEtx.js";import"./use-registry-connections-owrgLOps.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CvXIGUrZ.js";import"./connection-form-helpers-CAJu7GAu.js";import"./collection-tabs-B32iAo6N.js";import"./badge-Db5xIffE.js";import"./select-model-D3_B27r5.js";import"./checkbox-YMTFrO1r.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DjdS8mnO.js";import"./dropdown-menu-kAhQsmIq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BxmwD3Ts.js";import"./use-file-configs-BQA5pT_r.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-C96mZ7FL.js";import"./search-input-BupwGxLP.js";import"./use-mcp-auth-status-g4f-5p6M.js";import"./switch-CvaUzcu8.js";import"./use-secrets-D8LOTarp.js";import"./AreaChart-k1GdGLk3.js";import"./config-sObTbFZQ.js";import"./breadcrumb-yuTxiBYX.js";import"./command-DOfXQ3iQ.js";import"./index-Cvq1ebr1.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CsnYBdZ3.js";import"./automation-list-row-CbU006h8.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-ioAfxmUp.js";const je="border-success/30 bg-success/10 text-success hover:bg-success/20",ye="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function Ke(f){const e=ne.c(17),{support:x}=f,i=ce(),o=x.kind==="unsupported-runtime";let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Te,{}),e[0]=l):l=e[0];const a=o?"sandbox.postCalendar.unsupportedRuntimeTitle":"sandbox.postCalendar.outdatedAppsTitle";let c;e[1]!==i||e[2]!==a?(c=i(a),e[1]=i,e[2]=a,e[3]=c):c=e[3];let s;e[4]!==c?(s=t.jsx(_e,{children:c}),e[4]=c,e[5]=s):s=e[5];let d;e[6]!==o||e[7]!==i?(d=o?i("sandbox.postCalendar.unsupportedRuntimeDescription"):i("sandbox.postCalendar.outdatedAppsDescription",{required:Fe}),e[6]=o,e[7]=i,e[8]=d):d=e[8];let r;e[9]!==d?(r=t.jsx(Me,{children:d}),e[9]=d,e[10]=r):r=e[10];let n;e[11]!==o?(n=!o&&t.jsx("code",{className:"mt-2 block rounded-md bg-muted px-2 py-1 font-mono text-xs text-foreground",children:We}),e[11]=o,e[12]=n):n=e[12];let m;return e[13]!==s||e[14]!==r||e[15]!==n?(m=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/30 p-6",children:t.jsxs(Ue,{variant:"warning",className:"max-w-md bg-background/95 shadow-lg backdrop-blur",children:[l,t.jsxs("div",{children:[s,r,n]})]})}),e[13]=s,e[14]=r,e[15]=n,e[16]=m):m=e[16],m}function Ro(f){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=f,d=s===void 0?!1:s,r=ce();let n;e[0]!==i?(n=Le(i),e[0]=i,e[1]=n):n=e[1];const m=n,[g,y]=fe.useState(null),[C]=we(),[b,w]=fe.useState(Qe),h=C.language;let D;e[2]!==b||e[3]!==h?(D=new Intl.DateTimeFormat(h,{month:"long",year:"numeric"}).format(b),e[2]=b,e[3]=h,e[4]=D):D=e[4];const u=D;let j,N,T,z,k,E,P,A,_,M,S;if(e[5]!==m||e[6]!==b||e[7]!==x||e[8]!==g||e[9]!==d||e[10]!==h||e[11]!==u||e[12]!==a||e[13]!==c||e[14]!==l||e[15]!==o||e[16]!==r){const ve=new Intl.DateTimeFormat(h,{weekday:"short"}),Ne=new Intl.DateTimeFormat(h,{dateStyle:"long"}),{byDay:Ce,undated:me}=Oe(Re(x)),de=$e(b),De=He(new Date);z="flex h-full w-full flex-col";let te;e[28]===Symbol.for("react.memo_cache_sentinel")?(te=()=>w(be(new Date)),e[28]=te):te=e[28];let $;e[29]!==r?($=r("sandbox.postCalendar.today"),e[29]=r,e[30]=$):$=e[30];let H;e[31]!==$?(H=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:$}),e[31]=$,e[32]=H):H=e[32];let re;e[33]===Symbol.for("react.memo_cache_sentinel")?(re=()=>w(Ge),e[33]=re):re=e[33];let B;e[34]!==r?(B=r("sandbox.postCalendar.previous"),e[34]=r,e[35]=B):B=e[35];let oe;e[36]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(Ee,{size:16}),e[36]=oe):oe=e[36];let F;e[37]!==B?(F=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:re,"aria-label":B,children:oe}),e[37]=B,e[38]=F):F=e[38];let se;e[39]===Symbol.for("react.memo_cache_sentinel")?(se=()=>w(qe),e[39]=se):se=e[39];let W;e[40]!==r?(W=r("sandbox.postCalendar.next"),e[40]=r,e[41]=W):W=e[41];let ie;e[42]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Pe,{size:16}),e[42]=ie):ie=e[42];let K;e[43]!==W?(K=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:se,"aria-label":W,children:ie}),e[43]=W,e[44]=K):K=e[44];let q;e[45]!==u?(q=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:u}),e[45]=u,e[46]=q):q=e[46];let G;e[47]!==r?(G=r("sandbox.postCalendar.legendScheduled"),e[47]=r,e[48]=G):G=e[48];let Q;e[49]!==G?(Q=t.jsx(xe,{className:je,label:G}),e[49]=G,e[50]=Q):Q=e[50];let V;e[51]!==r?(V=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=V):V=e[52];let X;e[53]!==V?(X=t.jsx(xe,{className:ye,label:V}),e[53]=V,e[54]=X):X=e[54];let Y;e[55]!==Q||e[56]!==X?(Y=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[Q,X]}),e[55]=Q,e[56]=X,e[57]=Y):Y=e[57],e[58]!==H||e[59]!==F||e[60]!==K||e[61]!==q||e[62]!==Y?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,F,K,q,Y]}),e[58]=H,e[59]=F,e[60]=K,e[61]=q,e[62]=Y,e[63]=k):k=e[63],T="relative flex-1 min-h-0",j=Ie;const pe=!m&&"blur-[2px] select-none";e[64]!==pe?(S=J("h-full",pe),e[64]=pe,e[65]=S):S=e[65],N=!m,_="flex min-w-[880px] gap-4 p-4";let Z;e[66]!==r?(Z=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Z):Z=e[67];let le;e[68]!==Z?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Z}),e[68]=Z,e[69]=le):le=e[69],M=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:de[0]?.map(p=>t.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:ve.format(p)},p.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:de.flat().map(p=>{const ke=p.getMonth()===b.getMonth(),Se=Ce.get(Be(p))??[];return t.jsxs("div",{onDragOver:v=>{g&&(v.preventDefault(),v.dataTransfer.dropEffect="move")},onDrop:v=>{v.preventDefault();const ue=v.dataTransfer.getData("text/plain");y(null),ue&&c(ue,p)},className:J("group/day min-h-28 space-y-1 p-2 transition-colors",ke?"bg-background":"bg-muted/40",g&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:J("grid size-6 place-items-center rounded-full text-xs",p.getTime()===De.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:p.getDate()}),m&&t.jsx(ae,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:d,onClick:()=>a(p),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:Ne.format(p)}),children:t.jsx(Ae,{size:14})})]}),Se.map(v=>t.jsx(ge,{entry:v,active:v.post.key===o,draggable:m&&v.scheduled,onSelect:l,onDragStateChange:y},v.post.key))]},p.getTime())})}),le]}),E="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",P=t.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:me.length})}),A=me.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(ze,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):me.map(p=>t.jsx(ge,{entry:p,active:p.post.key===o,draggable:!1,onSelect:l,onDragStateChange:y},p.post.key)),e[5]=m,e[6]=b,e[7]=x,e[8]=g,e[9]=d,e[10]=h,e[11]=u,e[12]=a,e[13]=c,e[14]=l,e[15]=o,e[16]=r,e[17]=j,e[18]=N,e[19]=T,e[20]=z,e[21]=k,e[22]=E,e[23]=P,e[24]=A,e[25]=_,e[26]=M,e[27]=S}else j=e[17],N=e[18],T=e[19],z=e[20],k=e[21],E=e[22],P=e[23],A=e[24],_=e[25],M=e[26],S=e[27];let U;e[70]!==E||e[71]!==P||e[72]!==A?(U=t.jsxs("div",{className:E,children:[P,A]}),e[70]=E,e[71]=P,e[72]=A,e[73]=U):U=e[73];let I;e[74]!==U||e[75]!==_||e[76]!==M?(I=t.jsxs("div",{className:_,children:[M,U]}),e[74]=U,e[75]=_,e[76]=M,e[77]=I):I=e[77];let L;e[78]!==j||e[79]!==N||e[80]!==I||e[81]!==S?(L=t.jsx(j,{className:S,inert:N,children:I}),e[78]=j,e[79]=N,e[80]=I,e[81]=S,e[82]=L):L=e[82];let O;e[83]!==m||e[84]!==i?(O=!m&&t.jsx(Ke,{support:i}),e[83]=m,e[84]=i,e[85]=O):O=e[85];let R;e[86]!==T||e[87]!==L||e[88]!==O?(R=t.jsxs("div",{className:T,children:[L,O]}),e[86]=T,e[87]=L,e[88]=O,e[89]=R):R=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==R?(ee=t.jsxs("div",{className:z,children:[k,R]}),e[90]=z,e[91]=k,e[92]=R,e[93]=ee):ee=e[93],ee}function qe(f){return he(f,1)}function Ge(f){return he(f,-1)}function Qe(){return be(new Date)}function xe(f){const e=ne.c(7),{className:x,label:i}=f;let o;e[0]!==x?(o=J("size-3 rounded-sm border",x),e[0]=x,e[1]=o):o=e[1];let l;e[2]!==o?(l=t.jsx("span",{className:o}),e[2]=o,e[3]=l):l=e[3];let a;return e[4]!==i||e[5]!==l?(a=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,i]}),e[4]=i,e[5]=l,e[6]=a):a=e[6],a}function ge(f){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=f,c=ce(),{post:s,scheduled:d}=x,r=d?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let n;e[0]!==c||e[1]!==r?(n=c(r),e[0]=c,e[1]=r,e[2]=n):n=e[2];const m=n;let g;e[3]!==a||e[4]!==s.key?(g=N=>{N.dataTransfer.setData("text/plain",s.key),N.dataTransfer.effectAllowed="move",a(s.key)},e[3]=a,e[4]=s.key,e[5]=g):g=e[5];let y;e[6]!==a?(y=()=>a(null),e[6]=a,e[7]=y):y=e[7];let C;e[8]!==l||e[9]!==s.key?(C=()=>l(s.key),e[8]=l,e[9]=s.key,e[10]=C):C=e[10];const b=`${s.title} · ${m}`,w=d?je:ye,h=o&&"cursor-grab active:cursor-grabbing",D=i&&"ring-2 ring-primary";let u;e[11]!==w||e[12]!==h||e[13]!==D?(u=J("w-full truncate rounded-md border px-2 py-1 text-left text-xs font-medium transition-colors",w,h,D),e[11]=w,e[12]=h,e[13]=D,e[14]=u):u=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==u||e[18]!==g||e[19]!==y||e[20]!==C||e[21]!==b?(j=t.jsx("button",{type:"button",draggable:o,onDragStart:g,onDragEnd:y,onClick:C,title:b,className:u,children:s.title}),e[15]=o,e[16]=s.title,e[17]=u,e[18]=g,e[19]=y,e[20]=C,e[21]=b,e[22]=j):j=e[22],j}export{Ro as PostCalendar};
1
+ import{c as ne,b as ce,r as fe,x as we,n as J,j as t,B as ae}from"./index-hm31ugsP.js";import{i as Te}from"./AlertCircle-AuVMh5dI.js";import{au as ze,r as Ee}from"./agent-icon-BxrQJCRL.js";import{i as Pe}from"./ChevronRight-eCyOlX7q.js";import{s as Ae}from"./Plus-BVETRe-R.js";import{a as _e,b as Me,A as Ue}from"./alert-BA7rXuZe.js";import{S as Ie}from"./scroll-area-CBXFYBFg.js";import{_ as Le,bW as Oe,as as Re,bR as $e,bS as He,bX as Be,bQ as be,bU as he,bY as Fe,bZ as We}from"./index-Csqzx8_V.js";import"./UserSquare-BVlsJI1B.js";import"./Tool01-Us4du1HU.js";import"./ArrowUp-D8KdFxp3.js";import"./ArrowLeft-qguukyWS.js";import"./Tool02-D26qiRWa.js";import"./XCircle-Cx-N-IGe.js";import"./TrendUp01-qULdDtxY.js";import"./ZapSquare-DN3LNwBv.js";import"./Users03-Ba7Zs6Ag.js";import"./CheckCircle-EPKsKkCI.js";import"./Check-De5xbMZ_.js";import"./ChevronDown-D6sMb7w8.js";import"./ChevronSelectorVertical-DXXBw1x3.js";import"./ChevronUp-CU8wkfB6.js";import"./DotsVertical-K-45hvkg.js";import"./Stars02-Dkvt8wI3.js";import"./Copy01-CprinEfn.js";import"./CreditCard01-D1pg-ChJ.js";import"./Download01-BKILAf-9.js";import"./Settings02-BGe12x-0.js";import"./Eye-BIEDLA51.js";import"./FilterLines-BRzgKNAI.js";import"./Share07-CIcrbYTY.js";import"./Globe01-CpKIMjw2.js";import"./Globe04-HRnTxSxk.js";import"./SwitchHorizontal01-4ZxiW7Cz.js";import"./HardDrive-CPFqpUNk.js";import"./Key01-CGwhy3oU.js";import"./LinkExternal01-PqQ-7e5z.js";import"./LockUnlocked01-CrE32oee.js";import"./LogOut01-DeUaCLqa.js";import"./Monitor01-2y5hMZ1w.js";import"./Sun--6iEcFDH.js";import"./Palette-0eaeXKN1.js";import"./Play-CwsbwXLV.js";import"./SearchLg-C3NeQGSM.js";import"./SearchMd-BmF-Y8C_.js";import"./Shield01-BdVpW4u3.js";import"./Stars01-DtpzfCLb.js";import"./Trash01-C7w4wgyv.js";import"./Upload01-BwQI0tkZ.js";import"./User01-DXZUb8k_.js";import"./Users01-DHYvjTlW.js";import"./XClose-CG2kLlHe.js";import"./Zap-CLl4PoNB.js";import"./select-CenhiY0i.js";import"./chat-context-QcgP5Hid.js";import"./use-panel-navigate-FYASNw8E.js";import"./dialog-Bwbh5XkT.js";import"./use-destination-route-BpT878sj.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-BKhOAw1A.js";import"./use-mcp-client-CX-OBmZf.js";import"./auth-BBrRxGil.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-TjgW7ckc.js";import"./task-board-BZOysUuk.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-CbZuO3e_.js";import"./use-ai-providers-BvSmTglu.js";import"./use-decopilot-events-Bdt4fjgZ.js";import"./use-organization-settings-C1HlNm4K.js";import"./automation-runs-CZzDwgHo.js";import"./useInfiniteQuery-B2jR9hyr.js";import"./use-infinite-scroll-BpnF4fSC.js";import"./use-connection-DKzIht9f.js";import"./table-Bbb6DGd2.js";import"./empty-state-ZMMx_ggR.js";import"./use-members-Ce4XWWMv.js";import"./use-org-auth-client-DRVc-InE.js";import"./use-automations-DzhoYYdI.js";import"./useSuspenseInfiniteQuery-DsL0Dkz6.js";import"./avatar-B8TVDNq4.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-ZowOp1LZ.js";import"./monaco-editor-BQZURj6U.js";import"./spinner-BqZHGuGn.js";import"./types-CvTzc_Qh.js";import"./shell-layout-DM_yg8NE.js";import"./required-auth-layout-DOQ5Yy6_.js";import"./use-org-sso-C66hqVjQ.js";import"./integration-icon-1PiPsdgu.js";import"./use-navigate-to-agent-BWv7kruU.js";import"./chart-BWotToPV.js";import"./index-BZL6xWss.js";import"./form-Ci6fEfbw.js";import"./label-wbLj9z7D.js";import"./input-g7He7HnU.js";import"./file-type-icon-BZq9FOyv.js";import"./drawer-gZY69Evm.js";import"./collection-search-CKF4vh-a.js";import"./tabs-BYw-M7nu.js";import"./toggle-group-BQGtS4X4.js";import"./super-agent-icon-D0imePiM.js";import"./self-tool-result-Cj0S2miF.js";import"./alert-dialog-BL9CUnhQ.js";import"./extract-connection-data-MtRIVNnL.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BNdqCz-8.js";import"./authenticate-and-persist-oauth-CRn8vZ5a.js";import"./mcp-oauth-6VKK9YCj.js";import"./track-Ce1UGjEO.js";import"./popover-BOChxGM-.js";import"./toolbar-vRaL8WnF.js";import"./github-repo-picker-C9sTEKuY.js";import"./use-mcp-tools-Dmty5VQY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-D0KOfMfB.js";import"./use-registry-connections-DtF-hSyP.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CmBeOMvY.js";import"./connection-form-helpers-DCsDAtJ5.js";import"./collection-tabs-Bl35q2wY.js";import"./badge-XOWpXFsB.js";import"./select-model-dMVafewK.js";import"./checkbox-B9NW4zF5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BZwhu1wh.js";import"./dropdown-menu-BBOt5jRY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV_bQ2MC.js";import"./use-file-configs-CIlcx97w.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-L8JjKxdU.js";import"./search-input-DIjZdQF_.js";import"./use-mcp-auth-status-iQxqyXeQ.js";import"./switch-BYKDkfxp.js";import"./use-secrets-CSyh1qfb.js";import"./AreaChart-32Qtz-eE.js";import"./config-D_UdMhgt.js";import"./breadcrumb-BFwQxBQP.js";import"./command-DIiqDY8s.js";import"./index--WXQrPpq.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DfKtJhjC.js";import"./automation-list-row-BkOEm1ne.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DPTbdSkw.js";const je="border-success/30 bg-success/10 text-success hover:bg-success/20",ye="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function Ke(f){const e=ne.c(17),{support:x}=f,i=ce(),o=x.kind==="unsupported-runtime";let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Te,{}),e[0]=l):l=e[0];const a=o?"sandbox.postCalendar.unsupportedRuntimeTitle":"sandbox.postCalendar.outdatedAppsTitle";let c;e[1]!==i||e[2]!==a?(c=i(a),e[1]=i,e[2]=a,e[3]=c):c=e[3];let s;e[4]!==c?(s=t.jsx(_e,{children:c}),e[4]=c,e[5]=s):s=e[5];let d;e[6]!==o||e[7]!==i?(d=o?i("sandbox.postCalendar.unsupportedRuntimeDescription"):i("sandbox.postCalendar.outdatedAppsDescription",{required:Fe}),e[6]=o,e[7]=i,e[8]=d):d=e[8];let r;e[9]!==d?(r=t.jsx(Me,{children:d}),e[9]=d,e[10]=r):r=e[10];let n;e[11]!==o?(n=!o&&t.jsx("code",{className:"mt-2 block rounded-md bg-muted px-2 py-1 font-mono text-xs text-foreground",children:We}),e[11]=o,e[12]=n):n=e[12];let m;return e[13]!==s||e[14]!==r||e[15]!==n?(m=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/30 p-6",children:t.jsxs(Ue,{variant:"warning",className:"max-w-md bg-background/95 shadow-lg backdrop-blur",children:[l,t.jsxs("div",{children:[s,r,n]})]})}),e[13]=s,e[14]=r,e[15]=n,e[16]=m):m=e[16],m}function Ro(f){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=f,d=s===void 0?!1:s,r=ce();let n;e[0]!==i?(n=Le(i),e[0]=i,e[1]=n):n=e[1];const m=n,[g,y]=fe.useState(null),[C]=we(),[b,w]=fe.useState(Qe),h=C.language;let D;e[2]!==b||e[3]!==h?(D=new Intl.DateTimeFormat(h,{month:"long",year:"numeric"}).format(b),e[2]=b,e[3]=h,e[4]=D):D=e[4];const u=D;let j,N,T,z,k,E,P,A,_,M,S;if(e[5]!==m||e[6]!==b||e[7]!==x||e[8]!==g||e[9]!==d||e[10]!==h||e[11]!==u||e[12]!==a||e[13]!==c||e[14]!==l||e[15]!==o||e[16]!==r){const ve=new Intl.DateTimeFormat(h,{weekday:"short"}),Ne=new Intl.DateTimeFormat(h,{dateStyle:"long"}),{byDay:Ce,undated:me}=Oe(Re(x)),de=$e(b),De=He(new Date);z="flex h-full w-full flex-col";let te;e[28]===Symbol.for("react.memo_cache_sentinel")?(te=()=>w(be(new Date)),e[28]=te):te=e[28];let $;e[29]!==r?($=r("sandbox.postCalendar.today"),e[29]=r,e[30]=$):$=e[30];let H;e[31]!==$?(H=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:$}),e[31]=$,e[32]=H):H=e[32];let re;e[33]===Symbol.for("react.memo_cache_sentinel")?(re=()=>w(Ge),e[33]=re):re=e[33];let B;e[34]!==r?(B=r("sandbox.postCalendar.previous"),e[34]=r,e[35]=B):B=e[35];let oe;e[36]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(Ee,{size:16}),e[36]=oe):oe=e[36];let F;e[37]!==B?(F=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:re,"aria-label":B,children:oe}),e[37]=B,e[38]=F):F=e[38];let se;e[39]===Symbol.for("react.memo_cache_sentinel")?(se=()=>w(qe),e[39]=se):se=e[39];let W;e[40]!==r?(W=r("sandbox.postCalendar.next"),e[40]=r,e[41]=W):W=e[41];let ie;e[42]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Pe,{size:16}),e[42]=ie):ie=e[42];let K;e[43]!==W?(K=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:se,"aria-label":W,children:ie}),e[43]=W,e[44]=K):K=e[44];let q;e[45]!==u?(q=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:u}),e[45]=u,e[46]=q):q=e[46];let G;e[47]!==r?(G=r("sandbox.postCalendar.legendScheduled"),e[47]=r,e[48]=G):G=e[48];let Q;e[49]!==G?(Q=t.jsx(xe,{className:je,label:G}),e[49]=G,e[50]=Q):Q=e[50];let V;e[51]!==r?(V=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=V):V=e[52];let X;e[53]!==V?(X=t.jsx(xe,{className:ye,label:V}),e[53]=V,e[54]=X):X=e[54];let Y;e[55]!==Q||e[56]!==X?(Y=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[Q,X]}),e[55]=Q,e[56]=X,e[57]=Y):Y=e[57],e[58]!==H||e[59]!==F||e[60]!==K||e[61]!==q||e[62]!==Y?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,F,K,q,Y]}),e[58]=H,e[59]=F,e[60]=K,e[61]=q,e[62]=Y,e[63]=k):k=e[63],T="relative flex-1 min-h-0",j=Ie;const pe=!m&&"blur-[2px] select-none";e[64]!==pe?(S=J("h-full",pe),e[64]=pe,e[65]=S):S=e[65],N=!m,_="flex min-w-[880px] gap-4 p-4";let Z;e[66]!==r?(Z=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Z):Z=e[67];let le;e[68]!==Z?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Z}),e[68]=Z,e[69]=le):le=e[69],M=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:de[0]?.map(p=>t.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:ve.format(p)},p.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:de.flat().map(p=>{const ke=p.getMonth()===b.getMonth(),Se=Ce.get(Be(p))??[];return t.jsxs("div",{onDragOver:v=>{g&&(v.preventDefault(),v.dataTransfer.dropEffect="move")},onDrop:v=>{v.preventDefault();const ue=v.dataTransfer.getData("text/plain");y(null),ue&&c(ue,p)},className:J("group/day min-h-28 space-y-1 p-2 transition-colors",ke?"bg-background":"bg-muted/40",g&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:J("grid size-6 place-items-center rounded-full text-xs",p.getTime()===De.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:p.getDate()}),m&&t.jsx(ae,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:d,onClick:()=>a(p),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:Ne.format(p)}),children:t.jsx(Ae,{size:14})})]}),Se.map(v=>t.jsx(ge,{entry:v,active:v.post.key===o,draggable:m&&v.scheduled,onSelect:l,onDragStateChange:y},v.post.key))]},p.getTime())})}),le]}),E="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",P=t.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:me.length})}),A=me.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(ze,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):me.map(p=>t.jsx(ge,{entry:p,active:p.post.key===o,draggable:!1,onSelect:l,onDragStateChange:y},p.post.key)),e[5]=m,e[6]=b,e[7]=x,e[8]=g,e[9]=d,e[10]=h,e[11]=u,e[12]=a,e[13]=c,e[14]=l,e[15]=o,e[16]=r,e[17]=j,e[18]=N,e[19]=T,e[20]=z,e[21]=k,e[22]=E,e[23]=P,e[24]=A,e[25]=_,e[26]=M,e[27]=S}else j=e[17],N=e[18],T=e[19],z=e[20],k=e[21],E=e[22],P=e[23],A=e[24],_=e[25],M=e[26],S=e[27];let U;e[70]!==E||e[71]!==P||e[72]!==A?(U=t.jsxs("div",{className:E,children:[P,A]}),e[70]=E,e[71]=P,e[72]=A,e[73]=U):U=e[73];let I;e[74]!==U||e[75]!==_||e[76]!==M?(I=t.jsxs("div",{className:_,children:[M,U]}),e[74]=U,e[75]=_,e[76]=M,e[77]=I):I=e[77];let L;e[78]!==j||e[79]!==N||e[80]!==I||e[81]!==S?(L=t.jsx(j,{className:S,inert:N,children:I}),e[78]=j,e[79]=N,e[80]=I,e[81]=S,e[82]=L):L=e[82];let O;e[83]!==m||e[84]!==i?(O=!m&&t.jsx(Ke,{support:i}),e[83]=m,e[84]=i,e[85]=O):O=e[85];let R;e[86]!==T||e[87]!==L||e[88]!==O?(R=t.jsxs("div",{className:T,children:[L,O]}),e[86]=T,e[87]=L,e[88]=O,e[89]=R):R=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==R?(ee=t.jsxs("div",{className:z,children:[k,R]}),e[90]=z,e[91]=k,e[92]=R,e[93]=ee):ee=e[93],ee}function qe(f){return he(f,1)}function Ge(f){return he(f,-1)}function Qe(){return be(new Date)}function xe(f){const e=ne.c(7),{className:x,label:i}=f;let o;e[0]!==x?(o=J("size-3 rounded-sm border",x),e[0]=x,e[1]=o):o=e[1];let l;e[2]!==o?(l=t.jsx("span",{className:o}),e[2]=o,e[3]=l):l=e[3];let a;return e[4]!==i||e[5]!==l?(a=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,i]}),e[4]=i,e[5]=l,e[6]=a):a=e[6],a}function ge(f){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=f,c=ce(),{post:s,scheduled:d}=x,r=d?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let n;e[0]!==c||e[1]!==r?(n=c(r),e[0]=c,e[1]=r,e[2]=n):n=e[2];const m=n;let g;e[3]!==a||e[4]!==s.key?(g=N=>{N.dataTransfer.setData("text/plain",s.key),N.dataTransfer.effectAllowed="move",a(s.key)},e[3]=a,e[4]=s.key,e[5]=g):g=e[5];let y;e[6]!==a?(y=()=>a(null),e[6]=a,e[7]=y):y=e[7];let C;e[8]!==l||e[9]!==s.key?(C=()=>l(s.key),e[8]=l,e[9]=s.key,e[10]=C):C=e[10];const b=`${s.title} · ${m}`,w=d?je:ye,h=o&&"cursor-grab active:cursor-grabbing",D=i&&"ring-2 ring-primary";let u;e[11]!==w||e[12]!==h||e[13]!==D?(u=J("w-full truncate rounded-md border px-2 py-1 text-left text-xs font-medium transition-colors",w,h,D),e[11]=w,e[12]=h,e[13]=D,e[14]=u):u=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==u||e[18]!==g||e[19]!==y||e[20]!==C||e[21]!==b?(j=t.jsx("button",{type:"button",draggable:o,onDragStart:g,onDragEnd:y,onClick:C,title:b,className:u,children:s.title}),e[15]=o,e[16]=s.title,e[17]=u,e[18]=g,e[19]=y,e[20]=C,e[21]=b,e[22]=j):j=e[22],j}export{Ro as PostCalendar};
@@ -1 +1 @@
1
- import{c as he,b as be,j as t,ab as ye,a8 as ke,a9 as Ne,B as Fe}from"./index-kc-p0Tho.js";import{b as Be}from"./chat-context-BaV72O1g.js";import{i as Ie}from"./AlertCircle-COfoHlYo.js";import{n as Ae}from"./LinkExternal01-BmdVn0um.js";import{b3 as Re}from"./agent-icon-BK-LdAbb.js";import{a as De}from"./UserSquare-nHDcwF_u.js";import{I as ue}from"./input-CoA1YEYW.js";import{L as xe}from"./label-COrU7OvG.js";import{M as $e}from"./multi-select-CNe6aWif.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs---ylShNh.js";import{S as Se}from"./switch-CvaUzcu8.js";import{T as Le}from"./textarea-CvXIGUrZ.js";import{G as Ve,T as Ue,U as Ye,V as ze,W as Te,K as Ke,X as qe,Y as Ge,Z as He,_ as Oe,$ as We,a0 as Ee,a1 as ge,a2 as Xe,a3 as Ze,a4 as Je,a5 as we}from"./index-BUlvC5Z0.js";import{b as Qe,a as et,B as tt}from"./block-document-BreIOxf_.js";import{u as st}from"./use-autosave-COQ2KNxK.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-Xx0pIitg.js";import"./use-panel-navigate-DSXuFDWh.js";import"./dialog-v9lm8kV3.js";import"./Check-CQfGOUkn.js";import"./Copy01-DT_VNucR.js";import"./Download01-BC66vxkd.js";import"./use-destination-route-DwR5EZdM.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-ndMd0rOE.js";import"./use-mcp-client-C2WpJqGp.js";import"./auth-Ck-CYI0s.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-RJKXQFNl.js";import"./task-board-d9aI3xON.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-C1lgXcOb.js";import"./use-ai-providers-D-DLX2r-.js";import"./use-decopilot-events-DQphD5G3.js";import"./use-organization-settings-BqyTxtql.js";import"./Tool01-BMVX3tOF.js";import"./ArrowUp-CukalgWz.js";import"./ArrowLeft-DvfIRo1L.js";import"./Tool02-WBvKkURX.js";import"./XCircle-BrD26F_t.js";import"./TrendUp01-CahTnQ2p.js";import"./ZapSquare-BXyJZB2H.js";import"./Users03-CasZyOXJ.js";import"./CheckCircle-B5B8UVD6.js";import"./ChevronDown-DJW5HhkM.js";import"./ChevronRight-CdylS1le.js";import"./ChevronSelectorVertical-DjiLaY0h.js";import"./ChevronUp-DOnt1lNa.js";import"./DotsVertical-veJCsKg6.js";import"./Stars02-b1P1T_48.js";import"./CreditCard01-Bi19p04V.js";import"./Settings02-DE8fnfTk.js";import"./Eye-DhvNNTcF.js";import"./FilterLines-DCFzTCRB.js";import"./Share07-Bk8835lK.js";import"./Globe01-CnIzUI9D.js";import"./Globe04-DtNi2ZyL.js";import"./SwitchHorizontal01-rtsYQduN.js";import"./HardDrive-CLNcCFxS.js";import"./Key01-28MkH09O.js";import"./LockUnlocked01-xbaMcbOK.js";import"./LogOut01-CUumDUY-.js";import"./Monitor01-DnWcZI3D.js";import"./Sun-B_-yVQ2_.js";import"./Palette-BbL1PNN-.js";import"./Play-DWeLA7lK.js";import"./Plus-DEP38EYY.js";import"./SearchLg-BO_-rqE7.js";import"./SearchMd-B7xHuJq4.js";import"./Shield01-BUK8VCxJ.js";import"./Stars01-C5onyQkg.js";import"./Trash01-CiqyPob_.js";import"./Upload01-CWR5PH57.js";import"./User01-S_RGxi2I.js";import"./Users01-OC7kfFvk.js";import"./XClose-DbkY8wiR.js";import"./Zap-uo4AxzhY.js";import"./badge-Db5xIffE.js";import"./checkbox-YMTFrO1r.js";import"./command-DOfXQ3iQ.js";import"./index-Cvq1ebr1.js";import"./popover-B0YbN5z6.js";import"./automation-runs-DJXgmGit.js";import"./useInfiniteQuery-PqMaSXlJ.js";import"./use-infinite-scroll-xFY_A5TW.js";import"./use-connection-DN4iufew.js";import"./table-CNWQQ1ny.js";import"./empty-state-DGfgLPT9.js";import"./use-members-D3qbSIYx.js";import"./use-org-auth-client-6ydcGnsW.js";import"./use-automations-DCQErfJY.js";import"./useSuspenseInfiniteQuery-BO55lV73.js";import"./avatar-BGhjOwGM.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BrNQw893.js";import"./monaco-editor-C37CkGWQ.js";import"./spinner-Ba0CkhBN.js";import"./types-BR-rJmTQ.js";import"./shell-layout-Btlvd1G3.js";import"./required-auth-layout-CPEZLxXW.js";import"./use-org-sso-DMKUn11x.js";import"./integration-icon-Db_3_1Xt.js";import"./use-navigate-to-agent-BnGGkvww.js";import"./chart-CsLoGKFV.js";import"./index-BMtomEba.js";import"./form-KfWVSNEC.js";import"./file-type-icon-Cp2yVzTz.js";import"./drawer-DBmJy2OH.js";import"./collection-search-CiPLUXMb.js";import"./select-DwECBvqm.js";import"./toggle-group-9H7MENld.js";import"./super-agent-icon-f5MMUEZI.js";import"./self-tool-result-BWeTClq7.js";import"./alert-dialog-EuQzy5n4.js";import"./extract-connection-data-BPW_Djea.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-w4-tTzSs.js";import"./authenticate-and-persist-oauth-Bnxs7yjQ.js";import"./mcp-oauth-KDpSMvkd.js";import"./track-rDKtvIJ6.js";import"./toolbar-CFGjTZKp.js";import"./github-repo-picker-BgSzUzWL.js";import"./use-mcp-tools-D2jDyaSa.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CaXPkEtx.js";import"./use-registry-connections-owrgLOps.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-CAJu7GAu.js";import"./collection-tabs-B32iAo6N.js";import"./select-model-D3_B27r5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DjdS8mnO.js";import"./dropdown-menu-kAhQsmIq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BxmwD3Ts.js";import"./use-file-configs-BQA5pT_r.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-C96mZ7FL.js";import"./scroll-area-Dy82C7p_.js";import"./search-input-BupwGxLP.js";import"./use-mcp-auth-status-g4f-5p6M.js";import"./use-secrets-D8LOTarp.js";import"./AreaChart-k1GdGLk3.js";import"./config-sObTbFZQ.js";import"./breadcrumb-yuTxiBYX.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CsnYBdZ3.js";import"./automation-list-row-CbU006h8.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-ioAfxmUp.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function ii(V){const e=he.c(126),{orgSlug:s,virtualMcpId:d,branch:i,blockKey:o,block:p,decofile:l,meta:r,previewBaseUrl:c}=V,a=be(),m=Be()?.taskId??null;let x;e[0]!==i||e[1]!==s||e[2]!==d?(x={orgSlug:s,virtualMcpId:d,branch:i},e[0]=i,e[1]=s,e[2]=d,e[3]=x):x=e[3];const f=Ve(x);let u;e[4]!==i||e[5]!==r||e[6]!==s||e[7]!==d?(u={orgSlug:s,virtualMcpId:d,branch:i,meta:r},e[4]=i,e[5]=r,e[6]=s,e[7]=d,e[8]=u):u=e[8];const C=Ue(u);let b;e[9]!==i||e[10]!==s||e[11]!==d?(b={orgSlug:s,virtualMcpId:d,branch:i},e[9]=i,e[10]=s,e[11]=d,e[12]=b):b=e[12];const g=Ye(b);let j;e[13]!==p?(j=ze(p,"posts"),e[13]=p,e[14]=j):j=e[14];const k=j;let P;e[15]!==o||e[16]!==f?(P=W=>{f.mutate({blockKey:o,data:qe(o,"posts",Ge(W))})},e[15]=o,e[16]=f,e[17]=P):P=e[17];const[n,S]=st(k,P);let U;e[18]!==n||e[19]!==S?(U=(W,h)=>S({...n,[W]:h}),e[18]=n,e[19]=S,e[20]=U):U=e[20];const y=U;let Y;e[21]!==l||e[22]!==g||e[23]!==n||e[24]!==c?(Y=Qe({decofile:l,post:n,previewBaseUrl:c,draftPointer:g}),e[21]=l,e[22]=g,e[23]=n,e[24]=c,e[25]=Y):Y=e[25];const N=Y;let v,L,z;e[26]!==n||e[27]!==a?(L=Te(n),v=L.length>0,z=L.length===1?a("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):a("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")}),e[26]=n,e[27]=a,e[28]=v,e[29]=L,e[30]=z):(v=e[28],L=e[29],z=e[30]);const T=z;let w;e[31]!==n.title||e[32]!==a?(w=X(n.title)||a("sandbox.postEditor.untitledPost"),e[31]=n.title,e[32]=a,e[33]=w):w=e[33];let F;e[34]!==w?(F=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[34]=w,e[35]=F):F=e[35];let B;e[36]!==v||e[37]!==L||e[38]!==T||e[39]!==a?(B=v&&t.jsxs(ye,{children:[t.jsx(ke,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Ie,{size:14}),L.length," ",L.length===1?a("sandbox.postEditor.issueSingular"):a("sandbox.postEditor.issuePlural")]})}),t.jsx(Ne,{side:"bottom",children:T})]}),e[36]=v,e[37]=L,e[38]=T,e[39]=a,e[40]=B):B=e[40];let I;e[41]!==f.isError||e[42]!==f.isPending?(I=t.jsx(Ke,{isPending:f.isPending,isError:f.isError}),e[41]=f.isError,e[42]=f.isPending,e[43]=I):I=e[43];const G=!N||v;let A;e[44]!==v||e[45]!==T||e[46]!==N||e[47]!==a?(A=v?T:a(N?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[44]=v,e[45]=T,e[46]=N,e[47]=a,e[48]=A):A=e[48];let R;e[49]!==v||e[50]!==N?(R=()=>{N&&!v&&window.open(N,"_blank","noopener,noreferrer")},e[49]=v,e[50]=N,e[51]=R):R=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ae,{size:14}),e[52]=K):K=e[52];let D;e[53]!==a?(D=a("sandbox.postEditor.seePreview"),e[53]=a,e[54]=D):D=e[54];let $;e[55]!==G||e[56]!==A||e[57]!==R||e[58]!==D?($=t.jsxs(Fe,{type:"button",variant:"outline",size:"sm",disabled:G,title:A,onClick:R,children:[K,D]}),e[55]=G,e[56]=A,e[57]=R,e[58]=D,e[59]=$):$=e[59];let H;e[60]!==B||e[61]!==I||e[62]!==$?(H=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,I,$]}),e[60]=B,e[61]=I,e[62]=$,e[63]=H):H=e[63];let O;e[64]!==F||e[65]!==H?(O=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[F,H]}),e[64]=F,e[65]=H,e[66]=O):O=e[66];let _;e[67]!==n.title?(_=X(n.title),e[67]=n.title,e[68]=_):_=e[68];let M;e[69]!==y?(M=W=>y("title",W),e[69]=y,e[70]=M):M=e[70];let q;e[71]!==a?(q=a("sandbox.postEditor.postTitlePlaceholder"),e[71]=a,e[72]=q):q=e[72];let E;e[73]!==_||e[74]!==M||e[75]!==q?(E=t.jsx(lt,{value:_,onChange:M,placeholder:q,className:"py-1 text-4xl font-bold text-foreground"}),e[73]=_,e[74]=M,e[75]=q,e[76]=E):E=e[76];let Z;e[77]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Re,{}),e[77]=Z):Z=e[77];let J;e[78]!==a?(J=a("sandbox.postEditor.contentTab"),e[78]=a,e[79]=J):J=e[79];let Q;e[80]!==J?(Q=t.jsxs(je,{value:"content",children:[Z,J]}),e[80]=J,e[81]=Q):Q=e[81];let me;e[82]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(De,{}),e[82]=me):me=e[82];let ee;e[83]!==a?(ee=a("sandbox.postEditor.settingsTab"),e[83]=a,e[84]=ee):ee=e[84];let te;e[85]!==ee?(te=t.jsxs(je,{value:"settings",children:[me,ee]}),e[85]=ee,e[86]=te):te=e[86];let se;e[87]!==Q||e[88]!==te?(se=t.jsxs(_e,{children:[Q,te]}),e[87]=Q,e[88]=te,e[89]=se):se=e[89];let le;e[90]!==n.sections?(le=et(n.sections),e[90]=n.sections,e[91]=le):le=e[91];let ie;e[92]!==y?(ie=W=>y("sections",W),e[92]=y,e[93]=ie):ie=e[93];let oe;e[94]!==i||e[95]!==s||e[96]!==m||e[97]!==d?(oe={orgSlug:s,virtualMcpId:d,branch:i,threadId:m},e[94]=i,e[95]=s,e[96]=m,e[97]=d,e[98]=oe):oe=e[98];let ae;e[99]!==a?(ae=a("sandbox.postEditor.noContentYet"),e[99]=a,e[100]=ae):ae=e[100];let re;e[101]!==r||e[102]!==le||e[103]!==ie||e[104]!==oe||e[105]!==ae?(re=t.jsx(ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(tt,{value:le,onChange:ie,meta:r,sandboxRef:oe,emptyMessage:ae})})}),e[101]=r,e[102]=le,e[103]=ie,e[104]=oe,e[105]=ae,e[106]=re):re=e[106];let ne;e[107]!==n||e[108]!==S?(ne=W=>S({...n,...W}),e[107]=n,e[108]=S,e[109]=ne):ne=e[109];let de;e[110]!==l||e[111]!==n||e[112]!==y||e[113]!==C||e[114]!==ne?(de=t.jsx(ve,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(rt,{post:n,decofile:l,support:C,onChange:y,onPatch:ne})})}),e[110]=l,e[111]=n,e[112]=y,e[113]=C,e[114]=ne,e[115]=de):de=e[115];let pe;e[116]!==se||e[117]!==re||e[118]!==de?(pe=t.jsxs(Me,{defaultValue:"content",className:"mt-6 gap-4",children:[se,re,de]}),e[116]=se,e[117]=re,e[118]=de,e[119]=pe):pe=e[119];let ce;e[120]!==E||e[121]!==pe?(ce=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[E,pe]})}),e[120]=E,e[121]=pe,e[122]=ce):ce=e[122];let fe;return e[123]!==O||e[124]!==ce?(fe=t.jsxs("div",{className:"flex h-full flex-col",children:[O,ce]}),e[123]=O,e[124]=ce,e[125]=fe):fe=e[125],fe}function Ce(V){const e=he.c(18),{id:s,label:d,checked:i,blocked:o,blockedReason:p,className:l,onCheckedChange:r}=V;let c;e[0]!==s||e[1]!==d?(c=t.jsx(xe,{htmlFor:s,children:d}),e[0]=s,e[1]=d,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==i||e[5]!==l||e[6]!==s||e[7]!==r?(a=t.jsx(ke,{asChild:!0,children:t.jsx("span",{children:t.jsx(Se,{id:s,className:l,checked:i,disabled:o,onCheckedChange:r})})}),e[3]=o,e[4]=i,e[5]=l,e[6]=s,e[7]=r,e[8]=a):a=e[8];let m;e[9]!==o||e[10]!==p?(m=o&&t.jsx(Ne,{side:"bottom",children:p}),e[9]=o,e[10]=p,e[11]=m):m=e[11];let x;e[12]!==a||e[13]!==m?(x=t.jsxs(ye,{children:[a,m]}),e[12]=a,e[13]=m,e[14]=x):x=e[14];let f;return e[15]!==c||e[16]!==x?(f=t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c,x]}),e[15]=c,e[16]=x,e[17]=f):f=e[17],f}function rt(V){const e=he.c(142),{post:s,decofile:d,support:i,onChange:o,onPatch:p}=V,l=be();let r;e[0]!==i?(r=He(i),e[0]=i,e[1]=r):r=e[1];const c=r;let a;e[2]!==i?(a=Oe(i),e[2]=i,e[3]=a):a=e[3];const m=a;let x;e[4]!==s?(x=We(s),e[4]=s,e[5]=x):x=e[5];const f=x,u=m&&f==="scheduled";let C;if(e[6]!==s||e[7]!==l){const h=Te(s);C=h.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:h.join(", ")}):l("sandbox.postEditor.missingFieldPlural",{fields:h.join(", ")}),e[6]=s,e[7]=l,e[8]=C}else C=e[8];const b=C;let g;e[9]!==p||e[10]!==s?(g=h=>p(Je(s,h,new Date)),e[9]=p,e[10]=s,e[11]=g):g=e[11];const j=g;let k;e[12]!==c||e[13]!==m||e[14]!==u||e[15]!==b||e[16]!==o||e[17]!==s||e[18]!==j||e[19]!==f||e[20]!==l?(k=c&&t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[m&&t.jsx(Ce,{id:"post-scheduled",label:l("sandbox.postEditor.schedulingLabel"),checked:u,blocked:Ee(s,"scheduled"),blockedReason:b,onCheckedChange:h=>j(h?"scheduled":"draft")}),u?t.jsx(ge,{schema:{type:"string",format:"date-time",title:l("sandbox.postEditor.scheduledDatetimeLabel"),description:l("sandbox.postEditor.scheduledDatetimeDescription")},value:X(s.scheduledDatetime),onChange:h=>o("scheduledDatetime",h),path:"post-scheduled-datetime",label:l("sandbox.postEditor.scheduledDatetimeLabel")}):t.jsx(Ce,{id:"post-published",label:l("sandbox.postEditor.publishedLabel"),className:"data-[state=checked]:bg-success",checked:f==="published",blocked:Ee(s,"published"),blockedReason:b,onCheckedChange:h=>j(h?"published":"draft")})]}),e[12]=c,e[13]=m,e[14]=u,e[15]=b,e[16]=o,e[17]=s,e[18]=j,e[19]=f,e[20]=l,e[21]=k):k=e[21];let P;e[22]!==l?(P=l("sandbox.postEditor.excerptLabel"),e[22]=l,e[23]=P):P=e[23];let n;e[24]!==P?(n=t.jsx(xe,{htmlFor:"post-excerpt",children:P}),e[24]=P,e[25]=n):n=e[25];let S;e[26]!==s.excerpt?(S=X(s.excerpt),e[26]=s.excerpt,e[27]=S):S=e[27];let U;e[28]!==o?(U=h=>o("excerpt",h.target.value),e[28]=o,e[29]=U):U=e[29];let y;e[30]!==U||e[31]!==S?(y=t.jsx(Le,{id:"post-excerpt",value:S,onChange:U,rows:2}),e[30]=U,e[31]=S,e[32]=y):y=e[32];let Y;e[33]!==y||e[34]!==n?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[33]=y,e[34]=n,e[35]=Y):Y=e[35];let N;e[36]!==l?(N=l("sandbox.postEditor.slugLabel"),e[36]=l,e[37]=N):N=e[37];let v;e[38]!==N?(v=t.jsx(xe,{htmlFor:"post-slug",children:N}),e[38]=N,e[39]=v):v=e[39];let L;e[40]!==s.slug?(L=X(s.slug),e[40]=s.slug,e[41]=L):L=e[41];let z;e[42]!==o?(z=h=>o("slug",h.target.value),e[42]=o,e[43]=z):z=e[43];let T;e[44]!==l?(T=l("sandbox.postEditor.slugPlaceholder"),e[44]=l,e[45]=T):T=e[45];let w;e[46]!==L||e[47]!==z||e[48]!==T?(w=t.jsx(ue,{id:"post-slug",value:L,onChange:z,placeholder:T,className:"h-10"}),e[46]=L,e[47]=z,e[48]=T,e[49]=w):w=e[49];let F;e[50]!==v||e[51]!==w?(F=t.jsxs("div",{className:"space-y-2",children:[v,w]}),e[50]=v,e[51]=w,e[52]=F):F=e[52];let B;e[53]!==l?(B=l("sandbox.postEditor.dateLabel"),e[53]=l,e[54]=B):B=e[54];let I;e[55]!==B?(I={type:"string",format:"date",title:B},e[55]=B,e[56]=I):I=e[56];let G;e[57]!==s.date?(G=X(s.date),e[57]=s.date,e[58]=G):G=e[58];let A;e[59]!==o?(A=h=>o("date",h),e[59]=o,e[60]=A):A=e[60];let R;e[61]!==l?(R=l("sandbox.postEditor.dateLabel"),e[61]=l,e[62]=R):R=e[62];let K;e[63]!==I||e[64]!==G||e[65]!==A||e[66]!==R?(K=t.jsx(ge,{schema:I,value:G,onChange:A,path:"post-date",label:R}),e[63]=I,e[64]=G,e[65]=A,e[66]=R,e[67]=K):K=e[67];let D;e[68]!==F||e[69]!==K?(D=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[F,K]}),e[68]=F,e[69]=K,e[70]=D):D=e[70];let $;e[71]!==l?($=l("sandbox.postEditor.coverImageLabel"),e[71]=l,e[72]=$):$=e[72];let H;e[73]!==$?(H={type:"string",format:"image-uri",title:$},e[73]=$,e[74]=H):H=e[74];const O=s.image;let _;e[75]!==o?(_=h=>o("image",h),e[75]=o,e[76]=_):_=e[76];let M;e[77]!==l?(M=l("sandbox.postEditor.coverImageLabel"),e[77]=l,e[78]=M):M=e[78];let q;e[79]!==s.image||e[80]!==H||e[81]!==_||e[82]!==M?(q=t.jsx(we,{schema:H,value:O,onChange:_,path:"post-image",label:M}),e[79]=s.image,e[80]=H,e[81]=_,e[82]=M,e[83]=q):q=e[83];let E;e[84]!==l?(E=l("sandbox.postEditor.coverAltLabel"),e[84]=l,e[85]=E):E=e[85];let Z;e[86]!==l?(Z=l("sandbox.postEditor.coverAltDescription"),e[86]=l,e[87]=Z):Z=e[87];let J;e[88]!==E||e[89]!==Z?(J={type:"string",title:E,description:Z},e[88]=E,e[89]=Z,e[90]=J):J=e[90];let Q;e[91]!==s.alt?(Q=X(s.alt),e[91]=s.alt,e[92]=Q):Q=e[92];let me;e[93]!==o?(me=h=>o("alt",h),e[93]=o,e[94]=me):me=e[94];let ee;e[95]!==l?(ee=l("sandbox.postEditor.coverAltLabel"),e[95]=l,e[96]=ee):ee=e[96];let te;e[97]!==J||e[98]!==Q||e[99]!==me||e[100]!==ee?(te=t.jsx(ge,{schema:J,value:Q,onChange:me,path:"post-alt",label:ee}),e[97]=J,e[98]=Q,e[99]=me,e[100]=ee,e[101]=te):te=e[101];let se;e[102]!==q||e[103]!==te?(se=t.jsxs("div",{className:"space-y-2",children:[q,te]}),e[102]=q,e[103]=te,e[104]=se):se=e[104];let le;e[105]!==l?(le=l("sandbox.postEditor.authorsLabel"),e[105]=l,e[106]=le):le=e[106];let ie;e[107]!==o?(ie=h=>o("authors",h),e[107]=o,e[108]=ie):ie=e[108];let oe;e[109]!==d||e[110]!==s.authors||e[111]!==le||e[112]!==ie?(oe=t.jsx(Pe,{label:le,decofile:d,kind:"authors",valueField:"email",toRef:dt,selected:s.authors,onChange:ie}),e[109]=d,e[110]=s.authors,e[111]=le,e[112]=ie,e[113]=oe):oe=e[113];let ae;e[114]!==l?(ae=l("sandbox.postEditor.categoriesLabel"),e[114]=l,e[115]=ae):ae=e[115];let re;e[116]!==o?(re=h=>o("categories",h),e[116]=o,e[117]=re):re=e[117];let ne;e[118]!==d||e[119]!==s.categories||e[120]!==ae||e[121]!==re?(ne=t.jsx(Pe,{label:ae,decofile:d,kind:"categories",valueField:"slug",toRef:nt,selected:s.categories,onChange:re}),e[118]=d,e[119]=s.categories,e[120]=ae,e[121]=re,e[122]=ne):ne=e[122];let de;e[123]!==o?(de=h=>o("extraProps",h),e[123]=o,e[124]=de):de=e[124];let pe;e[125]!==s.extraProps||e[126]!==de?(pe=t.jsx(ct,{value:s.extraProps,onChange:de}),e[125]=s.extraProps,e[126]=de,e[127]=pe):pe=e[127];let ce;e[128]!==o?(ce=h=>o("seo",h),e[128]=o,e[129]=ce):ce=e[129];let fe;e[130]!==s.seo||e[131]!==ce?(fe=t.jsx(pt,{value:s.seo,onChange:ce}),e[130]=s.seo,e[131]=ce,e[132]=fe):fe=e[132];let W;return e[133]!==Y||e[134]!==D||e[135]!==se||e[136]!==oe||e[137]!==ne||e[138]!==pe||e[139]!==fe||e[140]!==k?(W=t.jsxs("div",{className:"space-y-5",children:[k,Y,D,se,oe,ne,pe,fe]}),e[133]=Y,e[134]=D,e[135]=se,e[136]=oe,e[137]=ne,e[138]=pe,e[139]=fe,e[140]=k,e[141]=W):W=e[141],W}function nt(V){return{name:X(V.name),slug:X(V.slug)}}function dt(V){return{...V}}function pt(V){const e=he.c(93),{value:s,onChange:d}=V,i=be();let o;e[0]!==s?(o=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=o):o=e[1];const p=o;let l;e[2]!==d||e[3]!==p?(l=(E,Z)=>d({...p,[E]:Z}),e[2]=d,e[3]=p,e[4]=l):l=e[4];const r=l;let c;e[5]!==i?(c=i("sandbox.postEditor.seoSectionLabel"),e[5]=i,e[6]=c):c=e[6];let a;e[7]!==c?(a=t.jsx("p",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=a):a=e[8];let m;e[9]!==i?(m=i("sandbox.postEditor.seoSectionHint"),e[9]=i,e[10]=m):m=e[10];let x;e[11]!==m?(x=t.jsx("p",{className:"text-xs text-muted-foreground",children:m}),e[11]=m,e[12]=x):x=e[12];let f;e[13]!==a||e[14]!==x?(f=t.jsxs("div",{className:"space-y-1",children:[a,x]}),e[13]=a,e[14]=x,e[15]=f):f=e[15];let u;e[16]!==i?(u=i("sandbox.postEditor.seoTitleLabel"),e[16]=i,e[17]=u):u=e[17];let C;e[18]!==u?(C=t.jsx(xe,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=C):C=e[19];let b;e[20]!==p.title?(b=X(p.title),e[20]=p.title,e[21]=b):b=e[21];let g;e[22]!==r?(g=E=>r("title",E.target.value),e[22]=r,e[23]=g):g=e[23];let j;e[24]!==b||e[25]!==g?(j=t.jsx(ue,{id:"post-seo-title",value:b,onChange:g,className:"h-10"}),e[24]=b,e[25]=g,e[26]=j):j=e[26];let k;e[27]!==j||e[28]!==C?(k=t.jsxs("div",{className:"space-y-2",children:[C,j]}),e[27]=j,e[28]=C,e[29]=k):k=e[29];let P;e[30]!==i?(P=i("sandbox.postEditor.seoDescriptionLabel"),e[30]=i,e[31]=P):P=e[31];let n;e[32]!==P?(n=t.jsx(xe,{htmlFor:"post-seo-description",children:P}),e[32]=P,e[33]=n):n=e[33];let S;e[34]!==p.description?(S=X(p.description),e[34]=p.description,e[35]=S):S=e[35];let U;e[36]!==r?(U=E=>r("description",E.target.value),e[36]=r,e[37]=U):U=e[37];let y;e[38]!==S||e[39]!==U?(y=t.jsx(Le,{id:"post-seo-description",value:S,onChange:U,rows:2}),e[38]=S,e[39]=U,e[40]=y):y=e[40];let Y;e[41]!==n||e[42]!==y?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[41]=n,e[42]=y,e[43]=Y):Y=e[43];let N;e[44]!==i?(N=i("sandbox.postEditor.seoImageLabel"),e[44]=i,e[45]=N):N=e[45];let v;e[46]!==N?(v={type:"string",format:"image-uri",title:N},e[46]=N,e[47]=v):v=e[47];const L=p.image;let z;e[48]!==r?(z=E=>r("image",E),e[48]=r,e[49]=z):z=e[49];let T;e[50]!==i?(T=i("sandbox.postEditor.seoImageLabel"),e[50]=i,e[51]=T):T=e[51];let w;e[52]!==p.image||e[53]!==v||e[54]!==z||e[55]!==T?(w=t.jsx(we,{schema:v,value:L,onChange:z,path:"post-seo-image",label:T}),e[52]=p.image,e[53]=v,e[54]=z,e[55]=T,e[56]=w):w=e[56];let F;e[57]!==i?(F=i("sandbox.postEditor.seoCanonicalLabel"),e[57]=i,e[58]=F):F=e[58];let B;e[59]!==F?(B=t.jsx(xe,{htmlFor:"post-seo-canonical",children:F}),e[59]=F,e[60]=B):B=e[60];let I;e[61]!==p.canonical?(I=X(p.canonical),e[61]=p.canonical,e[62]=I):I=e[62];let G;e[63]!==r?(G=E=>r("canonical",E.target.value),e[63]=r,e[64]=G):G=e[64];let A;e[65]!==i?(A=i("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=i,e[66]=A):A=e[66];let R;e[67]!==I||e[68]!==G||e[69]!==A?(R=t.jsx(ue,{id:"post-seo-canonical",value:I,onChange:G,placeholder:A,className:"h-10"}),e[67]=I,e[68]=G,e[69]=A,e[70]=R):R=e[70];let K;e[71]!==B||e[72]!==R?(K=t.jsxs("div",{className:"space-y-2",children:[B,R]}),e[71]=B,e[72]=R,e[73]=K):K=e[73];let D;e[74]!==i?(D=i("sandbox.postEditor.seoNoIndexingLabel"),e[74]=i,e[75]=D):D=e[75];let $;e[76]!==D?($=t.jsx(xe,{htmlFor:"post-seo-no-indexing",children:D}),e[76]=D,e[77]=$):$=e[77];const H=p.noIndexing===!0;let O;e[78]!==r?(O=E=>r("noIndexing",E),e[78]=r,e[79]=O):O=e[79];let _;e[80]!==H||e[81]!==O?(_=t.jsx(Se,{id:"post-seo-no-indexing",checked:H,onCheckedChange:O}),e[80]=H,e[81]=O,e[82]=_):_=e[82];let M;e[83]!==$||e[84]!==_?(M=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,_]}),e[83]=$,e[84]=_,e[85]=M):M=e[85];let q;return e[86]!==k||e[87]!==Y||e[88]!==w||e[89]!==K||e[90]!==M||e[91]!==f?(q=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[f,k,Y,w,K,M]}),e[86]=k,e[87]=Y,e[88]=w,e[89]=K,e[90]=M,e[91]=f,e[92]=q):q=e[92],q}function ct(V){const e=he.c(24),{value:s,onChange:d}=V,i=be();let o,p,l,r;if(e[0]!==d||e[1]!==i||e[2]!==s){o=at(s);const f=(C,b)=>d(o.map((g,j)=>j===C?{...g,...b}:g));p="space-y-2";let u;e[7]!==i?(u=i("sandbox.postEditor.extraPropsLabel"),e[7]=i,e[8]=u):u=e[8],e[9]!==u?(l=t.jsx(xe,{children:u}),e[9]=u,e[10]=l):l=e[10],r=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((C,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(ue,{value:C.key,onChange:g=>f(b,{key:g.target.value}),placeholder:i("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(ue,{value:C.value,onChange:g=>f(b,{value:g.target.value}),placeholder:i("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(it,{label:i("sandbox.postEditor.removePropLabel"),onClick:()=>d(o.filter((g,j)=>j!==b))})]},b))}),e[0]=d,e[1]=i,e[2]=s,e[3]=o,e[4]=p,e[5]=l,e[6]=r}else o=e[3],p=e[4],l=e[5],r=e[6];let c;e[11]!==i?(c=i("sandbox.postEditor.addPropLabel"),e[11]=i,e[12]=c):c=e[12];let a;e[13]!==o||e[14]!==d?(a=()=>d([...o,{key:"",value:""}]),e[13]=o,e[14]=d,e[15]=a):a=e[15];let m;e[16]!==c||e[17]!==a?(m=t.jsx(ot,{label:c,onClick:a}),e[16]=c,e[17]=a,e[18]=m):m=e[18];let x;return e[19]!==p||e[20]!==l||e[21]!==r||e[22]!==m?(x=t.jsxs("div",{className:p,children:[l,r,m]}),e[19]=p,e[20]=l,e[21]=r,e[22]=m,e[23]=x):x=e[23],x}function Pe(V){const e=he.c(24),{label:s,decofile:d,kind:i,valueField:o,toRef:p,selected:l,onChange:r}=V,c=be();let a;e[0]!==d||e[1]!==i||e[2]!==l||e[3]!==p||e[4]!==o?(a=Xe({records:Ze(d,i),selected:l,valueField:o,toRef:p}),e[0]=d,e[1]=i,e[2]=l,e[3]=p,e[4]=o,e[5]=a):a=e[5];const{options:m,selectedValues:x,refsForValues:f}=a;let u;e[6]!==i||e[7]!==c?(u=c(i==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=i,e[7]=c,e[8]=u):u=e[8];const C=u;let b;e[9]!==i||e[10]!==c?(b=c(i==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=i,e[10]=c,e[11]=b):b=e[11];const g=b;let j;e[12]!==s?(j=t.jsx(xe,{children:s}),e[12]=s,e[13]=j):j=e[13];let k;e[14]!==C||e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==g||e[19]!==x?(k=m.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:C}):t.jsx($e,{options:m,defaultValue:x,onValueChange:n=>r(f(n)),placeholder:g,maxCount:4}),e[14]=C,e[15]=r,e[16]=m,e[17]=f,e[18]=g,e[19]=x,e[20]=k):k=e[20];let P;return e[21]!==j||e[22]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[j,k]}),e[21]=j,e[22]=k,e[23]=P):P=e[23],P}export{ii as PostEditor};
1
+ import{c as he,b as be,j as t,ab as ye,a8 as ke,a9 as Ne,B as Fe}from"./index-hm31ugsP.js";import{b as Be}from"./chat-context-QcgP5Hid.js";import{i as Ie}from"./AlertCircle-AuVMh5dI.js";import{n as Ae}from"./LinkExternal01-PqQ-7e5z.js";import{b3 as Re}from"./agent-icon-BxrQJCRL.js";import{a as De}from"./UserSquare-BVlsJI1B.js";import{I as ue}from"./input-g7He7HnU.js";import{L as xe}from"./label-wbLj9z7D.js";import{M as $e}from"./multi-select-sghdJAwh.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-BYw-M7nu.js";import{S as Se}from"./switch-BYKDkfxp.js";import{T as Le}from"./textarea-CmBeOMvY.js";import{G as Ve,T as Ue,U as Ye,V as ze,W as Te,K as Ke,X as qe,Y as Ge,Z as He,_ as Oe,$ as We,a0 as Ee,a1 as ge,a2 as Xe,a3 as Ze,a4 as Je,a5 as we}from"./index-Csqzx8_V.js";import{b as Qe,a as et,B as tt}from"./block-document-BUTPAgn8.js";import{u as st}from"./use-autosave-4nUOlTfl.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-BzOkwFQR.js";import"./use-panel-navigate-FYASNw8E.js";import"./dialog-Bwbh5XkT.js";import"./Check-De5xbMZ_.js";import"./Copy01-CprinEfn.js";import"./Download01-BKILAf-9.js";import"./use-destination-route-BpT878sj.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-BKhOAw1A.js";import"./use-mcp-client-CX-OBmZf.js";import"./auth-BBrRxGil.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-TjgW7ckc.js";import"./task-board-BZOysUuk.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-CbZuO3e_.js";import"./use-ai-providers-BvSmTglu.js";import"./use-decopilot-events-Bdt4fjgZ.js";import"./use-organization-settings-C1HlNm4K.js";import"./Tool01-Us4du1HU.js";import"./ArrowUp-D8KdFxp3.js";import"./ArrowLeft-qguukyWS.js";import"./Tool02-D26qiRWa.js";import"./XCircle-Cx-N-IGe.js";import"./TrendUp01-qULdDtxY.js";import"./ZapSquare-DN3LNwBv.js";import"./Users03-Ba7Zs6Ag.js";import"./CheckCircle-EPKsKkCI.js";import"./ChevronDown-D6sMb7w8.js";import"./ChevronRight-eCyOlX7q.js";import"./ChevronSelectorVertical-DXXBw1x3.js";import"./ChevronUp-CU8wkfB6.js";import"./DotsVertical-K-45hvkg.js";import"./Stars02-Dkvt8wI3.js";import"./CreditCard01-D1pg-ChJ.js";import"./Settings02-BGe12x-0.js";import"./Eye-BIEDLA51.js";import"./FilterLines-BRzgKNAI.js";import"./Share07-CIcrbYTY.js";import"./Globe01-CpKIMjw2.js";import"./Globe04-HRnTxSxk.js";import"./SwitchHorizontal01-4ZxiW7Cz.js";import"./HardDrive-CPFqpUNk.js";import"./Key01-CGwhy3oU.js";import"./LockUnlocked01-CrE32oee.js";import"./LogOut01-DeUaCLqa.js";import"./Monitor01-2y5hMZ1w.js";import"./Sun--6iEcFDH.js";import"./Palette-0eaeXKN1.js";import"./Play-CwsbwXLV.js";import"./Plus-BVETRe-R.js";import"./SearchLg-C3NeQGSM.js";import"./SearchMd-BmF-Y8C_.js";import"./Shield01-BdVpW4u3.js";import"./Stars01-DtpzfCLb.js";import"./Trash01-C7w4wgyv.js";import"./Upload01-BwQI0tkZ.js";import"./User01-DXZUb8k_.js";import"./Users01-DHYvjTlW.js";import"./XClose-CG2kLlHe.js";import"./Zap-CLl4PoNB.js";import"./badge-XOWpXFsB.js";import"./checkbox-B9NW4zF5.js";import"./command-DIiqDY8s.js";import"./index--WXQrPpq.js";import"./popover-BOChxGM-.js";import"./automation-runs-CZzDwgHo.js";import"./useInfiniteQuery-B2jR9hyr.js";import"./use-infinite-scroll-BpnF4fSC.js";import"./use-connection-DKzIht9f.js";import"./table-Bbb6DGd2.js";import"./empty-state-ZMMx_ggR.js";import"./use-members-Ce4XWWMv.js";import"./use-org-auth-client-DRVc-InE.js";import"./use-automations-DzhoYYdI.js";import"./useSuspenseInfiniteQuery-DsL0Dkz6.js";import"./avatar-B8TVDNq4.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-ZowOp1LZ.js";import"./monaco-editor-BQZURj6U.js";import"./spinner-BqZHGuGn.js";import"./types-CvTzc_Qh.js";import"./shell-layout-DM_yg8NE.js";import"./required-auth-layout-DOQ5Yy6_.js";import"./use-org-sso-C66hqVjQ.js";import"./integration-icon-1PiPsdgu.js";import"./use-navigate-to-agent-BWv7kruU.js";import"./chart-BWotToPV.js";import"./index-BZL6xWss.js";import"./form-Ci6fEfbw.js";import"./file-type-icon-BZq9FOyv.js";import"./drawer-gZY69Evm.js";import"./collection-search-CKF4vh-a.js";import"./select-CenhiY0i.js";import"./toggle-group-BQGtS4X4.js";import"./super-agent-icon-D0imePiM.js";import"./self-tool-result-Cj0S2miF.js";import"./alert-dialog-BL9CUnhQ.js";import"./extract-connection-data-MtRIVNnL.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BNdqCz-8.js";import"./authenticate-and-persist-oauth-CRn8vZ5a.js";import"./mcp-oauth-6VKK9YCj.js";import"./track-Ce1UGjEO.js";import"./toolbar-vRaL8WnF.js";import"./github-repo-picker-C9sTEKuY.js";import"./use-mcp-tools-Dmty5VQY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-D0KOfMfB.js";import"./use-registry-connections-DtF-hSyP.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-DCsDAtJ5.js";import"./collection-tabs-Bl35q2wY.js";import"./select-model-dMVafewK.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BZwhu1wh.js";import"./dropdown-menu-BBOt5jRY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV_bQ2MC.js";import"./use-file-configs-CIlcx97w.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-L8JjKxdU.js";import"./scroll-area-CBXFYBFg.js";import"./search-input-DIjZdQF_.js";import"./use-mcp-auth-status-iQxqyXeQ.js";import"./use-secrets-CSyh1qfb.js";import"./AreaChart-32Qtz-eE.js";import"./config-D_UdMhgt.js";import"./breadcrumb-BFwQxBQP.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DfKtJhjC.js";import"./automation-list-row-BkOEm1ne.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DPTbdSkw.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function ii(V){const e=he.c(126),{orgSlug:s,virtualMcpId:d,branch:i,blockKey:o,block:p,decofile:l,meta:r,previewBaseUrl:c}=V,a=be(),m=Be()?.taskId??null;let x;e[0]!==i||e[1]!==s||e[2]!==d?(x={orgSlug:s,virtualMcpId:d,branch:i},e[0]=i,e[1]=s,e[2]=d,e[3]=x):x=e[3];const f=Ve(x);let u;e[4]!==i||e[5]!==r||e[6]!==s||e[7]!==d?(u={orgSlug:s,virtualMcpId:d,branch:i,meta:r},e[4]=i,e[5]=r,e[6]=s,e[7]=d,e[8]=u):u=e[8];const C=Ue(u);let b;e[9]!==i||e[10]!==s||e[11]!==d?(b={orgSlug:s,virtualMcpId:d,branch:i},e[9]=i,e[10]=s,e[11]=d,e[12]=b):b=e[12];const g=Ye(b);let j;e[13]!==p?(j=ze(p,"posts"),e[13]=p,e[14]=j):j=e[14];const k=j;let P;e[15]!==o||e[16]!==f?(P=W=>{f.mutate({blockKey:o,data:qe(o,"posts",Ge(W))})},e[15]=o,e[16]=f,e[17]=P):P=e[17];const[n,S]=st(k,P);let U;e[18]!==n||e[19]!==S?(U=(W,h)=>S({...n,[W]:h}),e[18]=n,e[19]=S,e[20]=U):U=e[20];const y=U;let Y;e[21]!==l||e[22]!==g||e[23]!==n||e[24]!==c?(Y=Qe({decofile:l,post:n,previewBaseUrl:c,draftPointer:g}),e[21]=l,e[22]=g,e[23]=n,e[24]=c,e[25]=Y):Y=e[25];const N=Y;let v,L,z;e[26]!==n||e[27]!==a?(L=Te(n),v=L.length>0,z=L.length===1?a("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):a("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")}),e[26]=n,e[27]=a,e[28]=v,e[29]=L,e[30]=z):(v=e[28],L=e[29],z=e[30]);const T=z;let w;e[31]!==n.title||e[32]!==a?(w=X(n.title)||a("sandbox.postEditor.untitledPost"),e[31]=n.title,e[32]=a,e[33]=w):w=e[33];let F;e[34]!==w?(F=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[34]=w,e[35]=F):F=e[35];let B;e[36]!==v||e[37]!==L||e[38]!==T||e[39]!==a?(B=v&&t.jsxs(ye,{children:[t.jsx(ke,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Ie,{size:14}),L.length," ",L.length===1?a("sandbox.postEditor.issueSingular"):a("sandbox.postEditor.issuePlural")]})}),t.jsx(Ne,{side:"bottom",children:T})]}),e[36]=v,e[37]=L,e[38]=T,e[39]=a,e[40]=B):B=e[40];let I;e[41]!==f.isError||e[42]!==f.isPending?(I=t.jsx(Ke,{isPending:f.isPending,isError:f.isError}),e[41]=f.isError,e[42]=f.isPending,e[43]=I):I=e[43];const G=!N||v;let A;e[44]!==v||e[45]!==T||e[46]!==N||e[47]!==a?(A=v?T:a(N?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[44]=v,e[45]=T,e[46]=N,e[47]=a,e[48]=A):A=e[48];let R;e[49]!==v||e[50]!==N?(R=()=>{N&&!v&&window.open(N,"_blank","noopener,noreferrer")},e[49]=v,e[50]=N,e[51]=R):R=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ae,{size:14}),e[52]=K):K=e[52];let D;e[53]!==a?(D=a("sandbox.postEditor.seePreview"),e[53]=a,e[54]=D):D=e[54];let $;e[55]!==G||e[56]!==A||e[57]!==R||e[58]!==D?($=t.jsxs(Fe,{type:"button",variant:"outline",size:"sm",disabled:G,title:A,onClick:R,children:[K,D]}),e[55]=G,e[56]=A,e[57]=R,e[58]=D,e[59]=$):$=e[59];let H;e[60]!==B||e[61]!==I||e[62]!==$?(H=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,I,$]}),e[60]=B,e[61]=I,e[62]=$,e[63]=H):H=e[63];let O;e[64]!==F||e[65]!==H?(O=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[F,H]}),e[64]=F,e[65]=H,e[66]=O):O=e[66];let _;e[67]!==n.title?(_=X(n.title),e[67]=n.title,e[68]=_):_=e[68];let M;e[69]!==y?(M=W=>y("title",W),e[69]=y,e[70]=M):M=e[70];let q;e[71]!==a?(q=a("sandbox.postEditor.postTitlePlaceholder"),e[71]=a,e[72]=q):q=e[72];let E;e[73]!==_||e[74]!==M||e[75]!==q?(E=t.jsx(lt,{value:_,onChange:M,placeholder:q,className:"py-1 text-4xl font-bold text-foreground"}),e[73]=_,e[74]=M,e[75]=q,e[76]=E):E=e[76];let Z;e[77]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Re,{}),e[77]=Z):Z=e[77];let J;e[78]!==a?(J=a("sandbox.postEditor.contentTab"),e[78]=a,e[79]=J):J=e[79];let Q;e[80]!==J?(Q=t.jsxs(je,{value:"content",children:[Z,J]}),e[80]=J,e[81]=Q):Q=e[81];let me;e[82]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(De,{}),e[82]=me):me=e[82];let ee;e[83]!==a?(ee=a("sandbox.postEditor.settingsTab"),e[83]=a,e[84]=ee):ee=e[84];let te;e[85]!==ee?(te=t.jsxs(je,{value:"settings",children:[me,ee]}),e[85]=ee,e[86]=te):te=e[86];let se;e[87]!==Q||e[88]!==te?(se=t.jsxs(_e,{children:[Q,te]}),e[87]=Q,e[88]=te,e[89]=se):se=e[89];let le;e[90]!==n.sections?(le=et(n.sections),e[90]=n.sections,e[91]=le):le=e[91];let ie;e[92]!==y?(ie=W=>y("sections",W),e[92]=y,e[93]=ie):ie=e[93];let oe;e[94]!==i||e[95]!==s||e[96]!==m||e[97]!==d?(oe={orgSlug:s,virtualMcpId:d,branch:i,threadId:m},e[94]=i,e[95]=s,e[96]=m,e[97]=d,e[98]=oe):oe=e[98];let ae;e[99]!==a?(ae=a("sandbox.postEditor.noContentYet"),e[99]=a,e[100]=ae):ae=e[100];let re;e[101]!==r||e[102]!==le||e[103]!==ie||e[104]!==oe||e[105]!==ae?(re=t.jsx(ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(tt,{value:le,onChange:ie,meta:r,sandboxRef:oe,emptyMessage:ae})})}),e[101]=r,e[102]=le,e[103]=ie,e[104]=oe,e[105]=ae,e[106]=re):re=e[106];let ne;e[107]!==n||e[108]!==S?(ne=W=>S({...n,...W}),e[107]=n,e[108]=S,e[109]=ne):ne=e[109];let de;e[110]!==l||e[111]!==n||e[112]!==y||e[113]!==C||e[114]!==ne?(de=t.jsx(ve,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(rt,{post:n,decofile:l,support:C,onChange:y,onPatch:ne})})}),e[110]=l,e[111]=n,e[112]=y,e[113]=C,e[114]=ne,e[115]=de):de=e[115];let pe;e[116]!==se||e[117]!==re||e[118]!==de?(pe=t.jsxs(Me,{defaultValue:"content",className:"mt-6 gap-4",children:[se,re,de]}),e[116]=se,e[117]=re,e[118]=de,e[119]=pe):pe=e[119];let ce;e[120]!==E||e[121]!==pe?(ce=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[E,pe]})}),e[120]=E,e[121]=pe,e[122]=ce):ce=e[122];let fe;return e[123]!==O||e[124]!==ce?(fe=t.jsxs("div",{className:"flex h-full flex-col",children:[O,ce]}),e[123]=O,e[124]=ce,e[125]=fe):fe=e[125],fe}function Ce(V){const e=he.c(18),{id:s,label:d,checked:i,blocked:o,blockedReason:p,className:l,onCheckedChange:r}=V;let c;e[0]!==s||e[1]!==d?(c=t.jsx(xe,{htmlFor:s,children:d}),e[0]=s,e[1]=d,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==i||e[5]!==l||e[6]!==s||e[7]!==r?(a=t.jsx(ke,{asChild:!0,children:t.jsx("span",{children:t.jsx(Se,{id:s,className:l,checked:i,disabled:o,onCheckedChange:r})})}),e[3]=o,e[4]=i,e[5]=l,e[6]=s,e[7]=r,e[8]=a):a=e[8];let m;e[9]!==o||e[10]!==p?(m=o&&t.jsx(Ne,{side:"bottom",children:p}),e[9]=o,e[10]=p,e[11]=m):m=e[11];let x;e[12]!==a||e[13]!==m?(x=t.jsxs(ye,{children:[a,m]}),e[12]=a,e[13]=m,e[14]=x):x=e[14];let f;return e[15]!==c||e[16]!==x?(f=t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c,x]}),e[15]=c,e[16]=x,e[17]=f):f=e[17],f}function rt(V){const e=he.c(142),{post:s,decofile:d,support:i,onChange:o,onPatch:p}=V,l=be();let r;e[0]!==i?(r=He(i),e[0]=i,e[1]=r):r=e[1];const c=r;let a;e[2]!==i?(a=Oe(i),e[2]=i,e[3]=a):a=e[3];const m=a;let x;e[4]!==s?(x=We(s),e[4]=s,e[5]=x):x=e[5];const f=x,u=m&&f==="scheduled";let C;if(e[6]!==s||e[7]!==l){const h=Te(s);C=h.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:h.join(", ")}):l("sandbox.postEditor.missingFieldPlural",{fields:h.join(", ")}),e[6]=s,e[7]=l,e[8]=C}else C=e[8];const b=C;let g;e[9]!==p||e[10]!==s?(g=h=>p(Je(s,h,new Date)),e[9]=p,e[10]=s,e[11]=g):g=e[11];const j=g;let k;e[12]!==c||e[13]!==m||e[14]!==u||e[15]!==b||e[16]!==o||e[17]!==s||e[18]!==j||e[19]!==f||e[20]!==l?(k=c&&t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[m&&t.jsx(Ce,{id:"post-scheduled",label:l("sandbox.postEditor.schedulingLabel"),checked:u,blocked:Ee(s,"scheduled"),blockedReason:b,onCheckedChange:h=>j(h?"scheduled":"draft")}),u?t.jsx(ge,{schema:{type:"string",format:"date-time",title:l("sandbox.postEditor.scheduledDatetimeLabel"),description:l("sandbox.postEditor.scheduledDatetimeDescription")},value:X(s.scheduledDatetime),onChange:h=>o("scheduledDatetime",h),path:"post-scheduled-datetime",label:l("sandbox.postEditor.scheduledDatetimeLabel")}):t.jsx(Ce,{id:"post-published",label:l("sandbox.postEditor.publishedLabel"),className:"data-[state=checked]:bg-success",checked:f==="published",blocked:Ee(s,"published"),blockedReason:b,onCheckedChange:h=>j(h?"published":"draft")})]}),e[12]=c,e[13]=m,e[14]=u,e[15]=b,e[16]=o,e[17]=s,e[18]=j,e[19]=f,e[20]=l,e[21]=k):k=e[21];let P;e[22]!==l?(P=l("sandbox.postEditor.excerptLabel"),e[22]=l,e[23]=P):P=e[23];let n;e[24]!==P?(n=t.jsx(xe,{htmlFor:"post-excerpt",children:P}),e[24]=P,e[25]=n):n=e[25];let S;e[26]!==s.excerpt?(S=X(s.excerpt),e[26]=s.excerpt,e[27]=S):S=e[27];let U;e[28]!==o?(U=h=>o("excerpt",h.target.value),e[28]=o,e[29]=U):U=e[29];let y;e[30]!==U||e[31]!==S?(y=t.jsx(Le,{id:"post-excerpt",value:S,onChange:U,rows:2}),e[30]=U,e[31]=S,e[32]=y):y=e[32];let Y;e[33]!==y||e[34]!==n?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[33]=y,e[34]=n,e[35]=Y):Y=e[35];let N;e[36]!==l?(N=l("sandbox.postEditor.slugLabel"),e[36]=l,e[37]=N):N=e[37];let v;e[38]!==N?(v=t.jsx(xe,{htmlFor:"post-slug",children:N}),e[38]=N,e[39]=v):v=e[39];let L;e[40]!==s.slug?(L=X(s.slug),e[40]=s.slug,e[41]=L):L=e[41];let z;e[42]!==o?(z=h=>o("slug",h.target.value),e[42]=o,e[43]=z):z=e[43];let T;e[44]!==l?(T=l("sandbox.postEditor.slugPlaceholder"),e[44]=l,e[45]=T):T=e[45];let w;e[46]!==L||e[47]!==z||e[48]!==T?(w=t.jsx(ue,{id:"post-slug",value:L,onChange:z,placeholder:T,className:"h-10"}),e[46]=L,e[47]=z,e[48]=T,e[49]=w):w=e[49];let F;e[50]!==v||e[51]!==w?(F=t.jsxs("div",{className:"space-y-2",children:[v,w]}),e[50]=v,e[51]=w,e[52]=F):F=e[52];let B;e[53]!==l?(B=l("sandbox.postEditor.dateLabel"),e[53]=l,e[54]=B):B=e[54];let I;e[55]!==B?(I={type:"string",format:"date",title:B},e[55]=B,e[56]=I):I=e[56];let G;e[57]!==s.date?(G=X(s.date),e[57]=s.date,e[58]=G):G=e[58];let A;e[59]!==o?(A=h=>o("date",h),e[59]=o,e[60]=A):A=e[60];let R;e[61]!==l?(R=l("sandbox.postEditor.dateLabel"),e[61]=l,e[62]=R):R=e[62];let K;e[63]!==I||e[64]!==G||e[65]!==A||e[66]!==R?(K=t.jsx(ge,{schema:I,value:G,onChange:A,path:"post-date",label:R}),e[63]=I,e[64]=G,e[65]=A,e[66]=R,e[67]=K):K=e[67];let D;e[68]!==F||e[69]!==K?(D=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[F,K]}),e[68]=F,e[69]=K,e[70]=D):D=e[70];let $;e[71]!==l?($=l("sandbox.postEditor.coverImageLabel"),e[71]=l,e[72]=$):$=e[72];let H;e[73]!==$?(H={type:"string",format:"image-uri",title:$},e[73]=$,e[74]=H):H=e[74];const O=s.image;let _;e[75]!==o?(_=h=>o("image",h),e[75]=o,e[76]=_):_=e[76];let M;e[77]!==l?(M=l("sandbox.postEditor.coverImageLabel"),e[77]=l,e[78]=M):M=e[78];let q;e[79]!==s.image||e[80]!==H||e[81]!==_||e[82]!==M?(q=t.jsx(we,{schema:H,value:O,onChange:_,path:"post-image",label:M}),e[79]=s.image,e[80]=H,e[81]=_,e[82]=M,e[83]=q):q=e[83];let E;e[84]!==l?(E=l("sandbox.postEditor.coverAltLabel"),e[84]=l,e[85]=E):E=e[85];let Z;e[86]!==l?(Z=l("sandbox.postEditor.coverAltDescription"),e[86]=l,e[87]=Z):Z=e[87];let J;e[88]!==E||e[89]!==Z?(J={type:"string",title:E,description:Z},e[88]=E,e[89]=Z,e[90]=J):J=e[90];let Q;e[91]!==s.alt?(Q=X(s.alt),e[91]=s.alt,e[92]=Q):Q=e[92];let me;e[93]!==o?(me=h=>o("alt",h),e[93]=o,e[94]=me):me=e[94];let ee;e[95]!==l?(ee=l("sandbox.postEditor.coverAltLabel"),e[95]=l,e[96]=ee):ee=e[96];let te;e[97]!==J||e[98]!==Q||e[99]!==me||e[100]!==ee?(te=t.jsx(ge,{schema:J,value:Q,onChange:me,path:"post-alt",label:ee}),e[97]=J,e[98]=Q,e[99]=me,e[100]=ee,e[101]=te):te=e[101];let se;e[102]!==q||e[103]!==te?(se=t.jsxs("div",{className:"space-y-2",children:[q,te]}),e[102]=q,e[103]=te,e[104]=se):se=e[104];let le;e[105]!==l?(le=l("sandbox.postEditor.authorsLabel"),e[105]=l,e[106]=le):le=e[106];let ie;e[107]!==o?(ie=h=>o("authors",h),e[107]=o,e[108]=ie):ie=e[108];let oe;e[109]!==d||e[110]!==s.authors||e[111]!==le||e[112]!==ie?(oe=t.jsx(Pe,{label:le,decofile:d,kind:"authors",valueField:"email",toRef:dt,selected:s.authors,onChange:ie}),e[109]=d,e[110]=s.authors,e[111]=le,e[112]=ie,e[113]=oe):oe=e[113];let ae;e[114]!==l?(ae=l("sandbox.postEditor.categoriesLabel"),e[114]=l,e[115]=ae):ae=e[115];let re;e[116]!==o?(re=h=>o("categories",h),e[116]=o,e[117]=re):re=e[117];let ne;e[118]!==d||e[119]!==s.categories||e[120]!==ae||e[121]!==re?(ne=t.jsx(Pe,{label:ae,decofile:d,kind:"categories",valueField:"slug",toRef:nt,selected:s.categories,onChange:re}),e[118]=d,e[119]=s.categories,e[120]=ae,e[121]=re,e[122]=ne):ne=e[122];let de;e[123]!==o?(de=h=>o("extraProps",h),e[123]=o,e[124]=de):de=e[124];let pe;e[125]!==s.extraProps||e[126]!==de?(pe=t.jsx(ct,{value:s.extraProps,onChange:de}),e[125]=s.extraProps,e[126]=de,e[127]=pe):pe=e[127];let ce;e[128]!==o?(ce=h=>o("seo",h),e[128]=o,e[129]=ce):ce=e[129];let fe;e[130]!==s.seo||e[131]!==ce?(fe=t.jsx(pt,{value:s.seo,onChange:ce}),e[130]=s.seo,e[131]=ce,e[132]=fe):fe=e[132];let W;return e[133]!==Y||e[134]!==D||e[135]!==se||e[136]!==oe||e[137]!==ne||e[138]!==pe||e[139]!==fe||e[140]!==k?(W=t.jsxs("div",{className:"space-y-5",children:[k,Y,D,se,oe,ne,pe,fe]}),e[133]=Y,e[134]=D,e[135]=se,e[136]=oe,e[137]=ne,e[138]=pe,e[139]=fe,e[140]=k,e[141]=W):W=e[141],W}function nt(V){return{name:X(V.name),slug:X(V.slug)}}function dt(V){return{...V}}function pt(V){const e=he.c(93),{value:s,onChange:d}=V,i=be();let o;e[0]!==s?(o=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=o):o=e[1];const p=o;let l;e[2]!==d||e[3]!==p?(l=(E,Z)=>d({...p,[E]:Z}),e[2]=d,e[3]=p,e[4]=l):l=e[4];const r=l;let c;e[5]!==i?(c=i("sandbox.postEditor.seoSectionLabel"),e[5]=i,e[6]=c):c=e[6];let a;e[7]!==c?(a=t.jsx("p",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=a):a=e[8];let m;e[9]!==i?(m=i("sandbox.postEditor.seoSectionHint"),e[9]=i,e[10]=m):m=e[10];let x;e[11]!==m?(x=t.jsx("p",{className:"text-xs text-muted-foreground",children:m}),e[11]=m,e[12]=x):x=e[12];let f;e[13]!==a||e[14]!==x?(f=t.jsxs("div",{className:"space-y-1",children:[a,x]}),e[13]=a,e[14]=x,e[15]=f):f=e[15];let u;e[16]!==i?(u=i("sandbox.postEditor.seoTitleLabel"),e[16]=i,e[17]=u):u=e[17];let C;e[18]!==u?(C=t.jsx(xe,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=C):C=e[19];let b;e[20]!==p.title?(b=X(p.title),e[20]=p.title,e[21]=b):b=e[21];let g;e[22]!==r?(g=E=>r("title",E.target.value),e[22]=r,e[23]=g):g=e[23];let j;e[24]!==b||e[25]!==g?(j=t.jsx(ue,{id:"post-seo-title",value:b,onChange:g,className:"h-10"}),e[24]=b,e[25]=g,e[26]=j):j=e[26];let k;e[27]!==j||e[28]!==C?(k=t.jsxs("div",{className:"space-y-2",children:[C,j]}),e[27]=j,e[28]=C,e[29]=k):k=e[29];let P;e[30]!==i?(P=i("sandbox.postEditor.seoDescriptionLabel"),e[30]=i,e[31]=P):P=e[31];let n;e[32]!==P?(n=t.jsx(xe,{htmlFor:"post-seo-description",children:P}),e[32]=P,e[33]=n):n=e[33];let S;e[34]!==p.description?(S=X(p.description),e[34]=p.description,e[35]=S):S=e[35];let U;e[36]!==r?(U=E=>r("description",E.target.value),e[36]=r,e[37]=U):U=e[37];let y;e[38]!==S||e[39]!==U?(y=t.jsx(Le,{id:"post-seo-description",value:S,onChange:U,rows:2}),e[38]=S,e[39]=U,e[40]=y):y=e[40];let Y;e[41]!==n||e[42]!==y?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[41]=n,e[42]=y,e[43]=Y):Y=e[43];let N;e[44]!==i?(N=i("sandbox.postEditor.seoImageLabel"),e[44]=i,e[45]=N):N=e[45];let v;e[46]!==N?(v={type:"string",format:"image-uri",title:N},e[46]=N,e[47]=v):v=e[47];const L=p.image;let z;e[48]!==r?(z=E=>r("image",E),e[48]=r,e[49]=z):z=e[49];let T;e[50]!==i?(T=i("sandbox.postEditor.seoImageLabel"),e[50]=i,e[51]=T):T=e[51];let w;e[52]!==p.image||e[53]!==v||e[54]!==z||e[55]!==T?(w=t.jsx(we,{schema:v,value:L,onChange:z,path:"post-seo-image",label:T}),e[52]=p.image,e[53]=v,e[54]=z,e[55]=T,e[56]=w):w=e[56];let F;e[57]!==i?(F=i("sandbox.postEditor.seoCanonicalLabel"),e[57]=i,e[58]=F):F=e[58];let B;e[59]!==F?(B=t.jsx(xe,{htmlFor:"post-seo-canonical",children:F}),e[59]=F,e[60]=B):B=e[60];let I;e[61]!==p.canonical?(I=X(p.canonical),e[61]=p.canonical,e[62]=I):I=e[62];let G;e[63]!==r?(G=E=>r("canonical",E.target.value),e[63]=r,e[64]=G):G=e[64];let A;e[65]!==i?(A=i("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=i,e[66]=A):A=e[66];let R;e[67]!==I||e[68]!==G||e[69]!==A?(R=t.jsx(ue,{id:"post-seo-canonical",value:I,onChange:G,placeholder:A,className:"h-10"}),e[67]=I,e[68]=G,e[69]=A,e[70]=R):R=e[70];let K;e[71]!==B||e[72]!==R?(K=t.jsxs("div",{className:"space-y-2",children:[B,R]}),e[71]=B,e[72]=R,e[73]=K):K=e[73];let D;e[74]!==i?(D=i("sandbox.postEditor.seoNoIndexingLabel"),e[74]=i,e[75]=D):D=e[75];let $;e[76]!==D?($=t.jsx(xe,{htmlFor:"post-seo-no-indexing",children:D}),e[76]=D,e[77]=$):$=e[77];const H=p.noIndexing===!0;let O;e[78]!==r?(O=E=>r("noIndexing",E),e[78]=r,e[79]=O):O=e[79];let _;e[80]!==H||e[81]!==O?(_=t.jsx(Se,{id:"post-seo-no-indexing",checked:H,onCheckedChange:O}),e[80]=H,e[81]=O,e[82]=_):_=e[82];let M;e[83]!==$||e[84]!==_?(M=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,_]}),e[83]=$,e[84]=_,e[85]=M):M=e[85];let q;return e[86]!==k||e[87]!==Y||e[88]!==w||e[89]!==K||e[90]!==M||e[91]!==f?(q=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[f,k,Y,w,K,M]}),e[86]=k,e[87]=Y,e[88]=w,e[89]=K,e[90]=M,e[91]=f,e[92]=q):q=e[92],q}function ct(V){const e=he.c(24),{value:s,onChange:d}=V,i=be();let o,p,l,r;if(e[0]!==d||e[1]!==i||e[2]!==s){o=at(s);const f=(C,b)=>d(o.map((g,j)=>j===C?{...g,...b}:g));p="space-y-2";let u;e[7]!==i?(u=i("sandbox.postEditor.extraPropsLabel"),e[7]=i,e[8]=u):u=e[8],e[9]!==u?(l=t.jsx(xe,{children:u}),e[9]=u,e[10]=l):l=e[10],r=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((C,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(ue,{value:C.key,onChange:g=>f(b,{key:g.target.value}),placeholder:i("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(ue,{value:C.value,onChange:g=>f(b,{value:g.target.value}),placeholder:i("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(it,{label:i("sandbox.postEditor.removePropLabel"),onClick:()=>d(o.filter((g,j)=>j!==b))})]},b))}),e[0]=d,e[1]=i,e[2]=s,e[3]=o,e[4]=p,e[5]=l,e[6]=r}else o=e[3],p=e[4],l=e[5],r=e[6];let c;e[11]!==i?(c=i("sandbox.postEditor.addPropLabel"),e[11]=i,e[12]=c):c=e[12];let a;e[13]!==o||e[14]!==d?(a=()=>d([...o,{key:"",value:""}]),e[13]=o,e[14]=d,e[15]=a):a=e[15];let m;e[16]!==c||e[17]!==a?(m=t.jsx(ot,{label:c,onClick:a}),e[16]=c,e[17]=a,e[18]=m):m=e[18];let x;return e[19]!==p||e[20]!==l||e[21]!==r||e[22]!==m?(x=t.jsxs("div",{className:p,children:[l,r,m]}),e[19]=p,e[20]=l,e[21]=r,e[22]=m,e[23]=x):x=e[23],x}function Pe(V){const e=he.c(24),{label:s,decofile:d,kind:i,valueField:o,toRef:p,selected:l,onChange:r}=V,c=be();let a;e[0]!==d||e[1]!==i||e[2]!==l||e[3]!==p||e[4]!==o?(a=Xe({records:Ze(d,i),selected:l,valueField:o,toRef:p}),e[0]=d,e[1]=i,e[2]=l,e[3]=p,e[4]=o,e[5]=a):a=e[5];const{options:m,selectedValues:x,refsForValues:f}=a;let u;e[6]!==i||e[7]!==c?(u=c(i==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=i,e[7]=c,e[8]=u):u=e[8];const C=u;let b;e[9]!==i||e[10]!==c?(b=c(i==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=i,e[10]=c,e[11]=b):b=e[11];const g=b;let j;e[12]!==s?(j=t.jsx(xe,{children:s}),e[12]=s,e[13]=j):j=e[13];let k;e[14]!==C||e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==g||e[19]!==x?(k=m.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:C}):t.jsx($e,{options:m,defaultValue:x,onValueChange:n=>r(f(n)),placeholder:g,maxCount:4}),e[14]=C,e[15]=r,e[16]=m,e[17]=f,e[18]=g,e[19]=x,e[20]=k):k=e[20];let P;return e[21]!==j||e[22]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[j,k]}),e[21]=j,e[22]=k,e[23]=P):P=e[23],P}export{ii as PostEditor};
@@ -1 +1 @@
1
- import{c as f,n as h,j as a}from"./index-kc-p0Tho.js";import{g as y}from"./agent-icon-BK-LdAbb.js";import{s as v}from"./Plus-DEP38EYY.js";import{s as j}from"./Trash01-CiqyPob_.js";function N(o){const e=f.c(14),{value:t,onChange:r,placeholder:s,className:n,onFocus:i,onBlur:l,onKeyDown:c,spellCheck:b,inputRef:p}=o,x=b===void 0?!0:b;let u;e[0]!==r?(u=g=>r(g.target.value),e[0]=r,e[1]=u):u=e[1];let d;e[2]!==n?(d=h("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==i||e[7]!==c||e[8]!==s||e[9]!==x||e[10]!==u||e[11]!==d||e[12]!==t?(m=a.jsx("textarea",{ref:p,value:t,onChange:u,onInput:w,onFocus:i,onBlur:l,onKeyDown:c,placeholder:s,spellCheck:x,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=i,e[7]=c,e[8]=s,e[9]=x,e[10]=u,e[11]=d,e[12]=t,e[13]=m):m=e[13],m}function w(o){const e=o.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function z(o){return typeof o=="string"?o:""}function T(o){const e=f.c(11);let t,r;e[0]!==o?({className:t,...r}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=h(t,"pr-9"),e[3]=t,e[4]=s):s=e[4];let n;e[5]!==r||e[6]!==s?(n=a.jsx(N,{...r,className:s}),e[5]=r,e[6]=s,e[7]=n):n=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(y,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=i):i=e[8];let l;return e[9]!==n?(l=a.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,i]}),e[9]=n,e[10]=l):l=e[10],l}function R(o){const e=f.c(5),{label:t,onClick:r,disabled:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(v,{size:13}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==t||e[3]!==r?(i=a.jsxs("button",{type:"button",onClick:r,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,t]}),e[1]=s,e[2]=t,e[3]=r,e[4]=i):i=e[4],i}function B(o){const e=f.c(4),{label:t,onClick:r}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(j,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==t||e[2]!==r?(n=a.jsx("button",{type:"button","aria-label":t,onClick:r,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=t,e[2]=r,e[3]=n):n=e[3],n}function E(o){const e=f.c(2),{children:t}=o;let r;return e[0]!==t?(r=a.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:t}),e[0]=t,e[1]=r):r=e[1],r}function S(o){const e=f.c(8),{active:t,label:r,onClick:s,children:n}=o,i=t?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==i?(l=h("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",i),e[0]=i,e[1]=l):l=e[1];let c;return e[2]!==t||e[3]!==n||e[4]!==r||e[5]!==s||e[6]!==l?(c=a.jsx("button",{type:"button","aria-label":r,"aria-pressed":t,onMouseDown:_,onClick:s,className:l,children:n}),e[2]=t,e[3]=n,e[4]=r,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function _(o){return o.preventDefault()}function D(o){if(Array.isArray(o))return o;if(typeof o!="string"||o.trim()==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}}export{R as A,T as E,E as F,N as I,B as R,S as T,D as p,z as s};
1
+ import{c as f,n as h,j as a}from"./index-hm31ugsP.js";import{g as y}from"./agent-icon-BxrQJCRL.js";import{s as v}from"./Plus-BVETRe-R.js";import{s as j}from"./Trash01-C7w4wgyv.js";function N(o){const e=f.c(14),{value:t,onChange:r,placeholder:s,className:n,onFocus:i,onBlur:l,onKeyDown:c,spellCheck:b,inputRef:p}=o,x=b===void 0?!0:b;let u;e[0]!==r?(u=g=>r(g.target.value),e[0]=r,e[1]=u):u=e[1];let d;e[2]!==n?(d=h("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==i||e[7]!==c||e[8]!==s||e[9]!==x||e[10]!==u||e[11]!==d||e[12]!==t?(m=a.jsx("textarea",{ref:p,value:t,onChange:u,onInput:w,onFocus:i,onBlur:l,onKeyDown:c,placeholder:s,spellCheck:x,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=i,e[7]=c,e[8]=s,e[9]=x,e[10]=u,e[11]=d,e[12]=t,e[13]=m):m=e[13],m}function w(o){const e=o.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function z(o){return typeof o=="string"?o:""}function T(o){const e=f.c(11);let t,r;e[0]!==o?({className:t,...r}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=h(t,"pr-9"),e[3]=t,e[4]=s):s=e[4];let n;e[5]!==r||e[6]!==s?(n=a.jsx(N,{...r,className:s}),e[5]=r,e[6]=s,e[7]=n):n=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(y,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=i):i=e[8];let l;return e[9]!==n?(l=a.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,i]}),e[9]=n,e[10]=l):l=e[10],l}function R(o){const e=f.c(5),{label:t,onClick:r,disabled:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(v,{size:13}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==t||e[3]!==r?(i=a.jsxs("button",{type:"button",onClick:r,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,t]}),e[1]=s,e[2]=t,e[3]=r,e[4]=i):i=e[4],i}function B(o){const e=f.c(4),{label:t,onClick:r}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(j,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==t||e[2]!==r?(n=a.jsx("button",{type:"button","aria-label":t,onClick:r,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=t,e[2]=r,e[3]=n):n=e[3],n}function E(o){const e=f.c(2),{children:t}=o;let r;return e[0]!==t?(r=a.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:t}),e[0]=t,e[1]=r):r=e[1],r}function S(o){const e=f.c(8),{active:t,label:r,onClick:s,children:n}=o,i=t?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==i?(l=h("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",i),e[0]=i,e[1]=l):l=e[1];let c;return e[2]!==t||e[3]!==n||e[4]!==r||e[5]!==s||e[6]!==l?(c=a.jsx("button",{type:"button","aria-label":r,"aria-pressed":t,onMouseDown:_,onClick:s,className:l,children:n}),e[2]=t,e[3]=n,e[4]=r,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function _(o){return o.preventDefault()}function D(o){if(Array.isArray(o))return o;if(typeof o!="string"||o.trim()==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}}export{R as A,T as E,E as F,N as I,B as R,S as T,D as p,z as s};
@@ -1 +1 @@
1
- import{c as we,b as Le,j as s,P as Ce,dx as Ue,a as ze,aw as Fe,ay as Oe,x as Ke,q as N,t as De,dw as D,du as Be,dv as qe}from"./index-kc-p0Tho.js";import{A as He}from"./avatar-BGhjOwGM.js";import{S as ke}from"./switch-CvaUzcu8.js";import{c as Ie,S as Te,d as Ve,a as Ee}from"./select-DwECBvqm.js";import{a as Ge,T as Je}from"./toggle-group-9H7MENld.js";import{I as Me}from"./input-CoA1YEYW.js";import{i as Qe}from"./Monitor01-DnWcZI3D.js";import{n as We,a as Xe}from"./Sun-B_-yVQ2_.js";import{i as Ye}from"./Play-DWeLA7lK.js";import{u as Ze}from"./use-debounced-autosave-C96mZ7FL.js";import{p as et,q as tt}from"./question-004-sINsf4GQ.js";import"./User01-S_RGxi2I.js";import"./Check-CQfGOUkn.js";import"./ChevronDown-DJW5HhkM.js";import"./ChevronUp-DOnt1lNa.js";const $e=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function st(){const e=we.c(36),t=Le(),{data:l,isPending:i}=ze.useSession(),c=l?.user,o=c?.image,a=c?.name??"";let v;e[0]!==a?(v={values:{name:a}},e[0]=a,e[1]=v):v=e[1];const r=Fe(v);let V;e[2]!==r||e[3]!==t?(V={save:async()=>{const k=r.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=r.getValues(),G=r.control._defaultValues;r.reset(x,{keepValues:!0});try{await ze.updateUser({name:x.name}),N("profile_updated",{fields:["name"]}),De.success(t("settings.profile.updateSuccess"))}catch{r.reset(G,{keepValues:!0}),De.error(t("settings.profile.updateError"))}}},e[2]=r,e[3]=t,e[4]=V):V=e[4];const{schedule:P,flush:S}=Ze(V);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const C=c?.name??"U";let f;e[7]!==C||e[8]!==o?(f=s.jsx(He,{url:o,fallback:C,shape:"circle",size:"base"}),e[7]=C,e[8]=o,e[9]=f):f=e[9];let _;e[10]!==b||e[11]!==f?(_=s.jsx(D,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=_):_=e[12];let p;e[13]!==t?(p=t("settings.profile.displayName"),e[13]=t,e[14]=p):p=e[14];let u;e[15]!==S||e[16]!==P||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Me,{id:"display-name",...x,onChange:G=>{x.onChange(G),P()},onBlur:()=>{x.onBlur(),S()},onKeyDown:G=>{G.key==="Enter"&&S()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=S,e[16]=P,e[17]=t,e[18]=u):u=e[18];let A;e[19]!==r.control||e[20]!==u?(A=s.jsx(Oe,{control:r.control,name:"name",render:u}),e[19]=r.control,e[20]=u,e[21]=A):A=e[21];let d;e[22]!==p||e[23]!==A?(d=s.jsx(D,{title:p,action:A}),e[22]=p,e[23]=A,e[24]=d):d=e[24];let g;e[25]!==t?(g=t("settings.profile.email"),e[25]=t,e[26]=g):g=e[26];const w=c?.email;let m;e[27]!==w?(m=s.jsx("span",{className:"text-sm text-muted-foreground",children:w}),e[27]=w,e[28]=m):m=e[28];let h;e[29]!==g||e[30]!==m?(h=s.jsx(D,{title:g,action:m}),e[29]=g,e[30]=m,e[31]=h):h=e[31];let y;return e[32]!==d||e[33]!==h||e[34]!==_?(y=s.jsx(Be,{children:s.jsxs(qe,{children:[_,d,h]})}),e[32]=d,e[33]=h,e[34]=_,e[35]=y):y=e[35],y}function lt(){const e=we.c(180),t=Le(),[l,i]=Ke();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),De.error(t("settings.preferences.notificationsDenied")),i(ct);return}N("preferences_notifications_toggled",{enabled:n}),i(j=>({...j,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const o=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let v;e[5]!==t?(v=t("settings.preferences.theme"),e[5]=t,e[6]=v):v=e[6];let r;e[7]!==t?(r=t("settings.preferences.themeDescription"),e[7]=t,e[8]=r):r=e[8];const V=l.theme;let P;e[9]!==i?(P=n=>{n&&(N("preferences_theme_changed",{to_value:n}),i(j=>({...j,theme:n})))},e[9]=i,e[10]=P):P=e[10];let S;e[11]!==t?(S=t("settings.preferences.themeLight"),e[11]=t,e[12]=S):S=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(We,{size:14}),e[13]=b):b=e[13];let C;e[14]!==S?(C=s.jsx(Ge,{value:"light","aria-label":S,children:b}),e[14]=S,e[15]=C):C=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let _;e[18]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Xe,{size:14}),e[18]=_):_=e[18];let p;e[19]!==f?(p=s.jsx(Ge,{value:"dark","aria-label":f,children:_}),e[19]=f,e[20]=p):p=e[20];let u;e[21]!==t?(u=t("settings.preferences.themeSystem"),e[21]=t,e[22]=u):u=e[22];let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Qe,{size:14}),e[23]=A):A=e[23];let d;e[24]!==u?(d=s.jsx(Ge,{value:"system","aria-label":u,children:A}),e[24]=u,e[25]=d):d=e[25];let g;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==P||e[30]!==C?(g=s.jsxs(Je,{type:"single",size:"sm",variant:"outline",value:V,onValueChange:P,children:[C,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=P,e[30]=C,e[31]=g):g=e[31];let w;e[32]!==g||e[33]!==v||e[34]!==r?(w=s.jsx(D,{title:v,description:r,action:g}),e[32]=g,e[33]=v,e[34]=r,e[35]=w):w=e[35];let m;e[36]!==t?(m=t("settings.preferences.language"),e[36]=t,e[37]=m):m=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let y;e[40]!==i?(y=n=>{N("preferences_language_changed",{to_value:n}),i(j=>({...j,language:n}))},e[40]=i,e[41]=y):y=e[41];let k;e[42]!==l.language?(k=$e.find(n=>n.value===l.language)?.label,e[42]=l.language,e[43]=k):k=e[43];let x;e[44]!==k?(x=s.jsx(Ee,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let G;e[46]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Ie,{children:$e.map(at)}),e[46]=G):G=e[46];let L;e[47]!==l.language||e[48]!==y||e[49]!==x?(L=s.jsxs(Te,{value:l.language,onValueChange:y,children:[x,G]}),e[47]=l.language,e[48]=y,e[49]=x,e[50]=L):L=e[50];let z;e[51]!==m||e[52]!==h||e[53]!==L?(z=s.jsx(D,{title:m,description:h,action:L}),e[51]=m,e[52]=h,e[53]=L,e[54]=z):z=e[54];let I;e[55]!==t?(I=t("settings.preferences.notifications"),e[55]=t,e[56]=I):I=e[56];let T;e[57]!==t?(T=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=T):T=e[58];let E;e[59]!==o||e[60]!==l.enableNotifications?(E=typeof Notification<"u"?()=>o(!l.enableNotifications):void 0,e[59]=o,e[60]=l.enableNotifications,e[61]=E):E=e[61];let $;e[62]!==o||e[63]!==l.enableNotifications?($=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:o}),e[62]=o,e[63]=l.enableNotifications,e[64]=$):$=e[64];let B;e[65]!==I||e[66]!==T||e[67]!==E||e[68]!==$?(B=s.jsx(D,{title:I,description:T,onClick:E,action:$}),e[65]=I,e[66]=T,e[67]=E,e[68]=$,e[69]=B):B=e[69];let q;e[70]!==t?(q=t("settings.preferences.sounds"),e[70]=t,e[71]=q):q=e[71];let R;e[72]!==t?(R=t("settings.preferences.soundsDescription"),e[72]=t,e[73]=R):R=e[73];let U;e[74]!==l.enableSounds||e[75]!==i?(U=()=>{N("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(ot)},e[74]=l.enableSounds,e[75]=i,e[76]=U):U=e[76];let F;e[77]!==t?(F=t("settings.preferences.soundsPreview"),e[77]=t,e[78]=F):F=e[78];let Ne;e[79]===Symbol.for("react.memo_cache_sentinel")?(Ne=s.jsx(Ye,{size:11}),e[79]=Ne):Ne=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:nt,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:Ne}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{N("preferences_sounds_toggled",{enabled:n}),i(j=>({...j,enableSounds:n}))},e[82]=i,e[83]=K):K=e[83];let H;e[84]!==l.enableSounds||e[85]!==K?(H=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=H):H=e[86];let J;e[87]!==O||e[88]!==H?(J=s.jsxs("div",{className:"flex items-center gap-2",children:[O,H]}),e[87]=O,e[88]=H,e[89]=J):J=e[89];let M;e[90]!==q||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(D,{title:q,description:R,onClick:U,action:J}),e[90]=q,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.projectSettingsGear"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.projectSettingsGearDescription"),e[97]=t,e[98]=W):W=e[98];let X;e[99]!==l.showProjectSettingsGear||e[100]!==i?(X=()=>{N("preferences_project_settings_gear_toggled",{enabled:!l.showProjectSettingsGear}),i(it)},e[99]=l.showProjectSettingsGear,e[100]=i,e[101]=X):X=e[101];let Y;e[102]!==t?(Y=t("settings.preferences.projectSettingsGear"),e[102]=t,e[103]=Y):Y=e[103];let Z;e[104]!==i?(Z=n=>{N("preferences_project_settings_gear_toggled",{enabled:n}),i(j=>({...j,showProjectSettingsGear:n}))},e[104]=i,e[105]=Z):Z=e[105];let ee;e[106]!==l.showProjectSettingsGear||e[107]!==Y||e[108]!==Z?(ee=s.jsx(ke,{"aria-label":Y,checked:l.showProjectSettingsGear,onCheckedChange:Z}),e[106]=l.showProjectSettingsGear,e[107]=Y,e[108]=Z,e[109]=ee):ee=e[109];let te;e[110]!==Q||e[111]!==W||e[112]!==X||e[113]!==ee?(te=s.jsx(D,{title:Q,description:W,onClick:X,action:ee}),e[110]=Q,e[111]=W,e[112]=X,e[113]=ee,e[114]=te):te=e[114];let se;e[115]!==t?(se=t("settings.preferences.toolApproval"),e[115]=t,e[116]=se):se=e[116];let le;e[117]!==t?(le=t("settings.preferences.toolApprovalDescription"),e[117]=t,e[118]=le):le=e[118];const Re=l.toolApprovalLevel;let ie;e[119]!==i?(ie=n=>{N("preferences_tool_approval_changed",{to_value:n}),i(j=>({...j,toolApprovalLevel:n}))},e[119]=i,e[120]=ie):ie=e[120];let ne;e[121]!==l.toolApprovalLevel||e[122]!==t?(ne={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[121]=l.toolApprovalLevel,e[122]=t,e[123]=ne):ne=e[123];let re;e[124]!==ne?(re=s.jsx(Ee,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:ne})}),e[124]=ne,e[125]=re):re=e[125];let oe;e[126]!==t?(oe=t("settings.preferences.toolApprovalAsk"),e[126]=t,e[127]=oe):oe=e[127];let ae;e[128]!==t?(ae=t("settings.preferences.toolApprovalAsk"),e[128]=t,e[129]=ae):ae=e[129];let ce;e[130]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[130]=ae,e[131]=ce):ce=e[131];let fe;e[132]!==t?(fe=t("settings.preferences.toolApprovalAskDescription"),e[132]=t,e[133]=fe):fe=e[133];let pe;e[134]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[134]=fe,e[135]=pe):pe=e[135];let ue;e[136]!==ce||e[137]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[136]=ce,e[137]=pe,e[138]=ue):ue=e[138];let de;e[139]!==oe||e[140]!==ue?(de=s.jsx(Ve,{value:"readonly",textValue:oe,children:ue}),e[139]=oe,e[140]=ue,e[141]=de):de=e[141];let ge;e[142]!==t?(ge=t("settings.preferences.toolApprovalAuto"),e[142]=t,e[143]=ge):ge=e[143];let me;e[144]!==t?(me=t("settings.preferences.toolApprovalAuto"),e[144]=t,e[145]=me):me=e[145];let he;e[146]!==me?(he=s.jsx("span",{className:"font-medium",children:me}),e[146]=me,e[147]=he):he=e[147];let xe;e[148]!==t?(xe=t("settings.preferences.toolApprovalAutoDescription"),e[148]=t,e[149]=xe):xe=e[149];let je;e[150]!==xe?(je=s.jsx("span",{className:"text-xs text-muted-foreground",children:xe}),e[150]=xe,e[151]=je):je=e[151];let ve;e[152]!==he||e[153]!==je?(ve=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[he,je]}),e[152]=he,e[153]=je,e[154]=ve):ve=e[154];let Se;e[155]!==ge||e[156]!==ve?(Se=s.jsx(Ve,{value:"auto",textValue:ge,children:ve}),e[155]=ge,e[156]=ve,e[157]=Se):Se=e[157];let be;e[158]!==de||e[159]!==Se?(be=s.jsxs(Ie,{children:[de,Se]}),e[158]=de,e[159]=Se,e[160]=be):be=e[160];let _e;e[161]!==l.toolApprovalLevel||e[162]!==ie||e[163]!==re||e[164]!==be?(_e=s.jsxs(Te,{value:Re,onValueChange:ie,children:[re,be]}),e[161]=l.toolApprovalLevel,e[162]=ie,e[163]=re,e[164]=be,e[165]=_e):_e=e[165];let Ae;e[166]!==se||e[167]!==le||e[168]!==_e?(Ae=s.jsx(D,{title:se,description:le,action:_e}),e[166]=se,e[167]=le,e[168]=_e,e[169]=Ae):Ae=e[169];let ye;e[170]!==w||e[171]!==z||e[172]!==B||e[173]!==M||e[174]!==te||e[175]!==Ae?(ye=s.jsxs(qe,{children:[w,z,B,M,te,Ae]}),e[170]=w,e[171]=z,e[172]=B,e[173]=M,e[174]=te,e[175]=Ae,e[176]=ye):ye=e[176];let Pe;return e[177]!==a||e[178]!==ye?(Pe=s.jsx(Be,{title:a,children:ye}),e[177]=a,e[178]=ye,e[179]=Pe):Pe=e[179],Pe}function it(e){return{...e,showProjectSettingsGear:!e.showProjectSettingsGear}}function nt(){N("preferences_sounds_previewed"),et(tt.dataUri).catch(rt)}function rt(){}function ot(e){return{...e,enableSounds:!e.enableSounds}}function at(e){return s.jsx(Ve,{value:e.value,textValue:e.label,children:e.label},e.value)}function ct(e){return{...e,enableNotifications:!1}}function ft(){const e=we.c(8),t=Le();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let i;e[2]!==l?(i=s.jsx(Ce.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(st,{}),o=s.jsx(lt,{}),e[4]=c,e[5]=o):(c=e[4],o=e[5]);let a;return e[6]!==i?(a=s.jsx(Ce,{children:s.jsx(Ce.Content,{children:s.jsx(Ce.Body,{children:s.jsxs(Ue,{children:[i,c,o]})})})}),e[6]=i,e[7]=a):a=e[7],a}function Pt(){const e=we.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ft,{}),e[0]=t):t=e[0],t}export{Pt as default};
1
+ import{c as we,b as Le,j as s,P as Ce,dx as Ue,a as ze,aw as Fe,ay as Oe,x as Ke,q as N,t as De,dw as D,du as Be,dv as qe}from"./index-hm31ugsP.js";import{A as He}from"./avatar-B8TVDNq4.js";import{S as ke}from"./switch-BYKDkfxp.js";import{c as Ie,S as Te,d as Ve,a as Ee}from"./select-CenhiY0i.js";import{a as Ge,T as Je}from"./toggle-group-BQGtS4X4.js";import{I as Me}from"./input-g7He7HnU.js";import{i as Qe}from"./Monitor01-2y5hMZ1w.js";import{n as We,a as Xe}from"./Sun--6iEcFDH.js";import{i as Ye}from"./Play-CwsbwXLV.js";import{u as Ze}from"./use-debounced-autosave-L8JjKxdU.js";import{p as et,q as tt}from"./question-004-sINsf4GQ.js";import"./User01-DXZUb8k_.js";import"./Check-De5xbMZ_.js";import"./ChevronDown-D6sMb7w8.js";import"./ChevronUp-CU8wkfB6.js";const $e=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function st(){const e=we.c(36),t=Le(),{data:l,isPending:i}=ze.useSession(),c=l?.user,o=c?.image,a=c?.name??"";let v;e[0]!==a?(v={values:{name:a}},e[0]=a,e[1]=v):v=e[1];const r=Fe(v);let V;e[2]!==r||e[3]!==t?(V={save:async()=>{const k=r.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=r.getValues(),G=r.control._defaultValues;r.reset(x,{keepValues:!0});try{await ze.updateUser({name:x.name}),N("profile_updated",{fields:["name"]}),De.success(t("settings.profile.updateSuccess"))}catch{r.reset(G,{keepValues:!0}),De.error(t("settings.profile.updateError"))}}},e[2]=r,e[3]=t,e[4]=V):V=e[4];const{schedule:P,flush:S}=Ze(V);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const C=c?.name??"U";let f;e[7]!==C||e[8]!==o?(f=s.jsx(He,{url:o,fallback:C,shape:"circle",size:"base"}),e[7]=C,e[8]=o,e[9]=f):f=e[9];let _;e[10]!==b||e[11]!==f?(_=s.jsx(D,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=_):_=e[12];let p;e[13]!==t?(p=t("settings.profile.displayName"),e[13]=t,e[14]=p):p=e[14];let u;e[15]!==S||e[16]!==P||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Me,{id:"display-name",...x,onChange:G=>{x.onChange(G),P()},onBlur:()=>{x.onBlur(),S()},onKeyDown:G=>{G.key==="Enter"&&S()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=S,e[16]=P,e[17]=t,e[18]=u):u=e[18];let A;e[19]!==r.control||e[20]!==u?(A=s.jsx(Oe,{control:r.control,name:"name",render:u}),e[19]=r.control,e[20]=u,e[21]=A):A=e[21];let d;e[22]!==p||e[23]!==A?(d=s.jsx(D,{title:p,action:A}),e[22]=p,e[23]=A,e[24]=d):d=e[24];let g;e[25]!==t?(g=t("settings.profile.email"),e[25]=t,e[26]=g):g=e[26];const w=c?.email;let m;e[27]!==w?(m=s.jsx("span",{className:"text-sm text-muted-foreground",children:w}),e[27]=w,e[28]=m):m=e[28];let h;e[29]!==g||e[30]!==m?(h=s.jsx(D,{title:g,action:m}),e[29]=g,e[30]=m,e[31]=h):h=e[31];let y;return e[32]!==d||e[33]!==h||e[34]!==_?(y=s.jsx(Be,{children:s.jsxs(qe,{children:[_,d,h]})}),e[32]=d,e[33]=h,e[34]=_,e[35]=y):y=e[35],y}function lt(){const e=we.c(180),t=Le(),[l,i]=Ke();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),De.error(t("settings.preferences.notificationsDenied")),i(ct);return}N("preferences_notifications_toggled",{enabled:n}),i(j=>({...j,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const o=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let v;e[5]!==t?(v=t("settings.preferences.theme"),e[5]=t,e[6]=v):v=e[6];let r;e[7]!==t?(r=t("settings.preferences.themeDescription"),e[7]=t,e[8]=r):r=e[8];const V=l.theme;let P;e[9]!==i?(P=n=>{n&&(N("preferences_theme_changed",{to_value:n}),i(j=>({...j,theme:n})))},e[9]=i,e[10]=P):P=e[10];let S;e[11]!==t?(S=t("settings.preferences.themeLight"),e[11]=t,e[12]=S):S=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(We,{size:14}),e[13]=b):b=e[13];let C;e[14]!==S?(C=s.jsx(Ge,{value:"light","aria-label":S,children:b}),e[14]=S,e[15]=C):C=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let _;e[18]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Xe,{size:14}),e[18]=_):_=e[18];let p;e[19]!==f?(p=s.jsx(Ge,{value:"dark","aria-label":f,children:_}),e[19]=f,e[20]=p):p=e[20];let u;e[21]!==t?(u=t("settings.preferences.themeSystem"),e[21]=t,e[22]=u):u=e[22];let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Qe,{size:14}),e[23]=A):A=e[23];let d;e[24]!==u?(d=s.jsx(Ge,{value:"system","aria-label":u,children:A}),e[24]=u,e[25]=d):d=e[25];let g;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==P||e[30]!==C?(g=s.jsxs(Je,{type:"single",size:"sm",variant:"outline",value:V,onValueChange:P,children:[C,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=P,e[30]=C,e[31]=g):g=e[31];let w;e[32]!==g||e[33]!==v||e[34]!==r?(w=s.jsx(D,{title:v,description:r,action:g}),e[32]=g,e[33]=v,e[34]=r,e[35]=w):w=e[35];let m;e[36]!==t?(m=t("settings.preferences.language"),e[36]=t,e[37]=m):m=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let y;e[40]!==i?(y=n=>{N("preferences_language_changed",{to_value:n}),i(j=>({...j,language:n}))},e[40]=i,e[41]=y):y=e[41];let k;e[42]!==l.language?(k=$e.find(n=>n.value===l.language)?.label,e[42]=l.language,e[43]=k):k=e[43];let x;e[44]!==k?(x=s.jsx(Ee,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let G;e[46]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Ie,{children:$e.map(at)}),e[46]=G):G=e[46];let L;e[47]!==l.language||e[48]!==y||e[49]!==x?(L=s.jsxs(Te,{value:l.language,onValueChange:y,children:[x,G]}),e[47]=l.language,e[48]=y,e[49]=x,e[50]=L):L=e[50];let z;e[51]!==m||e[52]!==h||e[53]!==L?(z=s.jsx(D,{title:m,description:h,action:L}),e[51]=m,e[52]=h,e[53]=L,e[54]=z):z=e[54];let I;e[55]!==t?(I=t("settings.preferences.notifications"),e[55]=t,e[56]=I):I=e[56];let T;e[57]!==t?(T=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=T):T=e[58];let E;e[59]!==o||e[60]!==l.enableNotifications?(E=typeof Notification<"u"?()=>o(!l.enableNotifications):void 0,e[59]=o,e[60]=l.enableNotifications,e[61]=E):E=e[61];let $;e[62]!==o||e[63]!==l.enableNotifications?($=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:o}),e[62]=o,e[63]=l.enableNotifications,e[64]=$):$=e[64];let B;e[65]!==I||e[66]!==T||e[67]!==E||e[68]!==$?(B=s.jsx(D,{title:I,description:T,onClick:E,action:$}),e[65]=I,e[66]=T,e[67]=E,e[68]=$,e[69]=B):B=e[69];let q;e[70]!==t?(q=t("settings.preferences.sounds"),e[70]=t,e[71]=q):q=e[71];let R;e[72]!==t?(R=t("settings.preferences.soundsDescription"),e[72]=t,e[73]=R):R=e[73];let U;e[74]!==l.enableSounds||e[75]!==i?(U=()=>{N("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(ot)},e[74]=l.enableSounds,e[75]=i,e[76]=U):U=e[76];let F;e[77]!==t?(F=t("settings.preferences.soundsPreview"),e[77]=t,e[78]=F):F=e[78];let Ne;e[79]===Symbol.for("react.memo_cache_sentinel")?(Ne=s.jsx(Ye,{size:11}),e[79]=Ne):Ne=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:nt,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:Ne}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{N("preferences_sounds_toggled",{enabled:n}),i(j=>({...j,enableSounds:n}))},e[82]=i,e[83]=K):K=e[83];let H;e[84]!==l.enableSounds||e[85]!==K?(H=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=H):H=e[86];let J;e[87]!==O||e[88]!==H?(J=s.jsxs("div",{className:"flex items-center gap-2",children:[O,H]}),e[87]=O,e[88]=H,e[89]=J):J=e[89];let M;e[90]!==q||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(D,{title:q,description:R,onClick:U,action:J}),e[90]=q,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.projectSettingsGear"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.projectSettingsGearDescription"),e[97]=t,e[98]=W):W=e[98];let X;e[99]!==l.showProjectSettingsGear||e[100]!==i?(X=()=>{N("preferences_project_settings_gear_toggled",{enabled:!l.showProjectSettingsGear}),i(it)},e[99]=l.showProjectSettingsGear,e[100]=i,e[101]=X):X=e[101];let Y;e[102]!==t?(Y=t("settings.preferences.projectSettingsGear"),e[102]=t,e[103]=Y):Y=e[103];let Z;e[104]!==i?(Z=n=>{N("preferences_project_settings_gear_toggled",{enabled:n}),i(j=>({...j,showProjectSettingsGear:n}))},e[104]=i,e[105]=Z):Z=e[105];let ee;e[106]!==l.showProjectSettingsGear||e[107]!==Y||e[108]!==Z?(ee=s.jsx(ke,{"aria-label":Y,checked:l.showProjectSettingsGear,onCheckedChange:Z}),e[106]=l.showProjectSettingsGear,e[107]=Y,e[108]=Z,e[109]=ee):ee=e[109];let te;e[110]!==Q||e[111]!==W||e[112]!==X||e[113]!==ee?(te=s.jsx(D,{title:Q,description:W,onClick:X,action:ee}),e[110]=Q,e[111]=W,e[112]=X,e[113]=ee,e[114]=te):te=e[114];let se;e[115]!==t?(se=t("settings.preferences.toolApproval"),e[115]=t,e[116]=se):se=e[116];let le;e[117]!==t?(le=t("settings.preferences.toolApprovalDescription"),e[117]=t,e[118]=le):le=e[118];const Re=l.toolApprovalLevel;let ie;e[119]!==i?(ie=n=>{N("preferences_tool_approval_changed",{to_value:n}),i(j=>({...j,toolApprovalLevel:n}))},e[119]=i,e[120]=ie):ie=e[120];let ne;e[121]!==l.toolApprovalLevel||e[122]!==t?(ne={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[121]=l.toolApprovalLevel,e[122]=t,e[123]=ne):ne=e[123];let re;e[124]!==ne?(re=s.jsx(Ee,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:ne})}),e[124]=ne,e[125]=re):re=e[125];let oe;e[126]!==t?(oe=t("settings.preferences.toolApprovalAsk"),e[126]=t,e[127]=oe):oe=e[127];let ae;e[128]!==t?(ae=t("settings.preferences.toolApprovalAsk"),e[128]=t,e[129]=ae):ae=e[129];let ce;e[130]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[130]=ae,e[131]=ce):ce=e[131];let fe;e[132]!==t?(fe=t("settings.preferences.toolApprovalAskDescription"),e[132]=t,e[133]=fe):fe=e[133];let pe;e[134]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[134]=fe,e[135]=pe):pe=e[135];let ue;e[136]!==ce||e[137]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[136]=ce,e[137]=pe,e[138]=ue):ue=e[138];let de;e[139]!==oe||e[140]!==ue?(de=s.jsx(Ve,{value:"readonly",textValue:oe,children:ue}),e[139]=oe,e[140]=ue,e[141]=de):de=e[141];let ge;e[142]!==t?(ge=t("settings.preferences.toolApprovalAuto"),e[142]=t,e[143]=ge):ge=e[143];let me;e[144]!==t?(me=t("settings.preferences.toolApprovalAuto"),e[144]=t,e[145]=me):me=e[145];let he;e[146]!==me?(he=s.jsx("span",{className:"font-medium",children:me}),e[146]=me,e[147]=he):he=e[147];let xe;e[148]!==t?(xe=t("settings.preferences.toolApprovalAutoDescription"),e[148]=t,e[149]=xe):xe=e[149];let je;e[150]!==xe?(je=s.jsx("span",{className:"text-xs text-muted-foreground",children:xe}),e[150]=xe,e[151]=je):je=e[151];let ve;e[152]!==he||e[153]!==je?(ve=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[he,je]}),e[152]=he,e[153]=je,e[154]=ve):ve=e[154];let Se;e[155]!==ge||e[156]!==ve?(Se=s.jsx(Ve,{value:"auto",textValue:ge,children:ve}),e[155]=ge,e[156]=ve,e[157]=Se):Se=e[157];let be;e[158]!==de||e[159]!==Se?(be=s.jsxs(Ie,{children:[de,Se]}),e[158]=de,e[159]=Se,e[160]=be):be=e[160];let _e;e[161]!==l.toolApprovalLevel||e[162]!==ie||e[163]!==re||e[164]!==be?(_e=s.jsxs(Te,{value:Re,onValueChange:ie,children:[re,be]}),e[161]=l.toolApprovalLevel,e[162]=ie,e[163]=re,e[164]=be,e[165]=_e):_e=e[165];let Ae;e[166]!==se||e[167]!==le||e[168]!==_e?(Ae=s.jsx(D,{title:se,description:le,action:_e}),e[166]=se,e[167]=le,e[168]=_e,e[169]=Ae):Ae=e[169];let ye;e[170]!==w||e[171]!==z||e[172]!==B||e[173]!==M||e[174]!==te||e[175]!==Ae?(ye=s.jsxs(qe,{children:[w,z,B,M,te,Ae]}),e[170]=w,e[171]=z,e[172]=B,e[173]=M,e[174]=te,e[175]=Ae,e[176]=ye):ye=e[176];let Pe;return e[177]!==a||e[178]!==ye?(Pe=s.jsx(Be,{title:a,children:ye}),e[177]=a,e[178]=ye,e[179]=Pe):Pe=e[179],Pe}function it(e){return{...e,showProjectSettingsGear:!e.showProjectSettingsGear}}function nt(){N("preferences_sounds_previewed"),et(tt.dataUri).catch(rt)}function rt(){}function ot(e){return{...e,enableSounds:!e.enableSounds}}function at(e){return s.jsx(Ve,{value:e.value,textValue:e.label,children:e.label},e.value)}function ct(e){return{...e,enableNotifications:!1}}function ft(){const e=we.c(8),t=Le();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let i;e[2]!==l?(i=s.jsx(Ce.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(st,{}),o=s.jsx(lt,{}),e[4]=c,e[5]=o):(c=e[4],o=e[5]);let a;return e[6]!==i?(a=s.jsx(Ce,{children:s.jsx(Ce.Content,{children:s.jsx(Ce.Body,{children:s.jsxs(Ue,{children:[i,c,o]})})})}),e[6]=i,e[7]=a):a=e[7],a}function Pt(){const e=we.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ft,{}),e[0]=t):t=e[0],t}export{Pt as default};
@@ -1 +1 @@
1
- import{bG as Z,c as k,b as L,j as r,r as H,E as ee,H as K,a as te,B as oe,k as ie}from"./index-kc-p0Tho.js";import{a as se,g as q,s as F}from"./automation-runs-DJXgmGit.js";import{u as z}from"./use-mcp-client-C2WpJqGp.js";import{W as re,S as ne,p as le}from"./constants-dLUUoWH7.js";import{b as me,c as ce}from"./use-mcp-tools-D2jDyaSa.js";import{u as ae}from"./index-BUlvC5Z0.js";import{c as pe}from"./monaco-editor-C37CkGWQ.js";import{g as de,M as fe,a as G}from"./types-BR-rJmTQ.js";import{a as ue,u as ge}from"./chat-context-BaV72O1g.js";import{u as xe}from"./shell-layout-Btlvd1G3.js";import{c as he,e as Ce,s as je,f as Se,P as Ie,g as be,h as Ne}from"./self-tool-result-BWeTClq7.js";import{b as W,a as J,d as Q,e as X}from"./dialog-v9lm8kV3.js";import{I as De}from"./integration-icon-Db_3_1Xt.js";import{u as ve}from"./use-is-desktop-app-BNujXJc_.js";import"./agent-icon-BK-LdAbb.js";import"./AlertCircle-COfoHlYo.js";import"./UserSquare-nHDcwF_u.js";import"./Tool01-BMVX3tOF.js";import"./ArrowUp-CukalgWz.js";import"./ArrowLeft-DvfIRo1L.js";import"./Tool02-WBvKkURX.js";import"./XCircle-BrD26F_t.js";import"./TrendUp01-CahTnQ2p.js";import"./ZapSquare-BXyJZB2H.js";import"./Users03-CasZyOXJ.js";import"./CheckCircle-B5B8UVD6.js";import"./Check-CQfGOUkn.js";import"./ChevronDown-DJW5HhkM.js";import"./ChevronRight-CdylS1le.js";import"./ChevronSelectorVertical-DjiLaY0h.js";import"./ChevronUp-DOnt1lNa.js";import"./DotsVertical-veJCsKg6.js";import"./Stars02-b1P1T_48.js";import"./Copy01-DT_VNucR.js";import"./CreditCard01-Bi19p04V.js";import"./Download01-BC66vxkd.js";import"./Settings02-DE8fnfTk.js";import"./Eye-DhvNNTcF.js";import"./FilterLines-DCFzTCRB.js";import"./Share07-Bk8835lK.js";import"./Globe01-CnIzUI9D.js";import"./Globe04-DtNi2ZyL.js";import"./SwitchHorizontal01-rtsYQduN.js";import"./HardDrive-CLNcCFxS.js";import"./Key01-28MkH09O.js";import"./LinkExternal01-BmdVn0um.js";import"./LockUnlocked01-xbaMcbOK.js";import"./LogOut01-CUumDUY-.js";import"./Monitor01-DnWcZI3D.js";import"./Sun-B_-yVQ2_.js";import"./Palette-BbL1PNN-.js";import"./Play-DWeLA7lK.js";import"./Plus-DEP38EYY.js";import"./SearchLg-BO_-rqE7.js";import"./SearchMd-B7xHuJq4.js";import"./Shield01-BUK8VCxJ.js";import"./Stars01-C5onyQkg.js";import"./Trash01-CiqyPob_.js";import"./Upload01-CWR5PH57.js";import"./User01-S_RGxi2I.js";import"./Users01-OC7kfFvk.js";import"./XClose-DbkY8wiR.js";import"./Zap-uo4AxzhY.js";import"./useInfiniteQuery-PqMaSXlJ.js";import"./use-infinite-scroll-xFY_A5TW.js";import"./use-connection-DN4iufew.js";import"./use-virtual-mcp-C1lgXcOb.js";import"./table-CNWQQ1ny.js";import"./empty-state-DGfgLPT9.js";import"./use-members-D3qbSIYx.js";import"./use-org-auth-client-6ydcGnsW.js";import"./use-automations-DCQErfJY.js";import"./useSuspenseInfiniteQuery-BO55lV73.js";import"./avatar-BGhjOwGM.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BrNQw893.js";import"./use-panel-navigate-DSXuFDWh.js";import"./use-destination-route-DwR5EZdM.js";import"./hooks-ndMd0rOE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-RJKXQFNl.js";import"./task-board-d9aI3xON.js";import"./use-navigate-to-agent-BnGGkvww.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-CsLoGKFV.js";import"./index-BMtomEba.js";import"./form-KfWVSNEC.js";import"./label-COrU7OvG.js";import"./input-CoA1YEYW.js";import"./spinner-Ba0CkhBN.js";import"./file-type-icon-Cp2yVzTz.js";import"./auth-Ck-CYI0s.js";import"./drawer-DBmJy2OH.js";import"./collection-search-CiPLUXMb.js";import"./select-DwECBvqm.js";import"./tabs---ylShNh.js";import"./toggle-group-9H7MENld.js";import"./super-agent-icon-f5MMUEZI.js";import"./popover-B0YbN5z6.js";import"./toolbar-CFGjTZKp.js";import"./github-repo-picker-BgSzUzWL.js";import"./use-debounced-value-w4-tTzSs.js";import"./authenticate-and-persist-oauth-Bnxs7yjQ.js";import"./mcp-oauth-KDpSMvkd.js";import"./extract-connection-data-BPW_Djea.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CaXPkEtx.js";import"./use-registry-connections-owrgLOps.js";import"./use-organization-settings-BqyTxtql.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CvXIGUrZ.js";import"./connection-form-helpers-CAJu7GAu.js";import"./collection-tabs-B32iAo6N.js";import"./badge-Db5xIffE.js";import"./use-ai-providers-D-DLX2r-.js";import"./select-model-D3_B27r5.js";import"./checkbox-YMTFrO1r.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DjdS8mnO.js";import"./dropdown-menu-kAhQsmIq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BxmwD3Ts.js";import"./use-decopilot-events-DQphD5G3.js";import"./use-file-configs-BQA5pT_r.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-EuQzy5n4.js";import"./use-debounced-autosave-C96mZ7FL.js";import"./scroll-area-Dy82C7p_.js";import"./search-input-BupwGxLP.js";import"./use-mcp-auth-status-g4f-5p6M.js";import"./switch-CvaUzcu8.js";import"./use-secrets-D8LOTarp.js";import"./AreaChart-k1GdGLk3.js";import"./config-sObTbFZQ.js";import"./breadcrumb-yuTxiBYX.js";import"./command-DOfXQ3iQ.js";import"./index-Cvq1ebr1.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CsnYBdZ3.js";import"./automation-list-row-CbU006h8.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-ioAfxmUp.js";import"./required-auth-layout-CPEZLxXW.js";import"./use-org-sso-DMKUn11x.js";import"./track-rDKtvIJ6.js";const Me="studio://navigate",_e=new Set(["vtex","ga4","gsc","github"]);function ye(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(Me))return{isNavigate:!1};let o=null,i=null;try{const s=new URL(e.uri).searchParams;o=s.get("main"),i=s.get("field")}catch{}return{isNavigate:!0,tab:o&&Z.has(o)?o:null,field:i&&_e.has(i)?i:null}}function B(N){const e=k.c(12),{onClose:o,children:i}=N,s=L();let t;e[0]!==o?(t=u=>!u&&o(),e[0]=o,e[1]=t):t=e[1];let a;e[2]!==s?(a=s("commerceOnboarding.connectSourceDialog.title"),e[2]=s,e[3]=a):a=e[3];let l;e[4]!==a?(l=r.jsx(J,{children:r.jsx(W,{children:a})}),e[4]=a,e[5]=l):l=e[5];let d;e[6]!==i||e[7]!==l?(d=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[l,i]}),e[6]=i,e[7]=l,e[8]=d):d=e[8];let n;return e[9]!==t||e[10]!==d?(n=r.jsx(X,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=n):n=e[11],n}function V(N){const e=k.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(ie,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let s;return e[1]!==o?(s=r.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,r.jsx("span",{children:o})]}),e[1]=o,e[2]=s):s=e[2],s}function Oe(N){const e=k.c(19),{field:o,onClose:i}=N,s=L();let t;e[0]!==i||e[1]!==s?(t=()=>r.jsx(B,{onClose:i,children:r.jsx("p",{className:"text-sm text-muted-foreground",children:s("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=s,e[2]=t):t=e[2];let a;e[3]!==s?(a=s("commerceOnboarding.connectSourceDialog.loading"),e[3]=s,e[4]=a):a=e[4];let l;e[5]!==a?(l=r.jsx(V,{label:a}),e[5]=a,e[6]=l):l=e[6];let d;e[7]!==i||e[8]!==l?(d=r.jsx(B,{onClose:i,children:l}),e[7]=i,e[8]=l,e[9]=d):d=e[9];let n;e[10]!==o||e[11]!==i?(n=r.jsx(Te,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let u;e[13]!==d||e[14]!==n?(u=r.jsx(H.Suspense,{fallback:d,children:n}),e[13]=d,e[14]=n,e[15]=u):u=e[15];let g;return e[16]!==t||e[17]!==u?(g=r.jsx(ee,{fallback:t,children:u}),e[16]=t,e[17]=u,e[18]=g):g=e[18],g}function Te(N){const e=k.c(75),{field:o,onClose:i}=N,s=L(),{org:t}=K();let a;e[0]!==t.id?(a=re.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=a):a=e[1];const l=a;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:ne,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=d):d=e[4];const n=z(d),{data:u}=te.useSession(),g=u?.user?.id??"";let j;e[5]!==l||e[6]!==t||e[7]!==n?(j={selfClient:n,org:t,cdConnectionId:l},e[5]=l,e[6]=t,e[7]=n,e[8]=j):j=e[8];const m=he(j);let f;e[9]!==l||e[10]!==t||e[11]!==n||e[12]!==m?(f={selfClient:n,org:t,cdConnectionId:l,siteUrl:m},e[9]=l,e[10]=t,e[11]=n,e[12]=m,e[13]=f):f=e[13];const{cards:S}=Ce(f);let h;e[14]!==m?(h=je(m)??void 0,e[14]=m,e[15]=h):h=e[15];let b;e[16]!==l||e[17]!==t||e[18]!==n||e[19]!==m||e[20]!==h||e[21]!==g?(b={selfClient:n,org:t,userId:g,cdConnectionId:l,domain:h,siteUrl:m},e[16]=l,e[17]=t,e[18]=n,e[19]=m,e[20]=h,e[21]=g,e[22]=b):b=e[22];const{connect:D,connectingFieldKey:I,error:_}=Se(b);let E;if(e[23]!==S||e[24]!==o){let p;e[26]!==o?(p=x=>x.fieldKey===o,e[26]=o,e[27]=p):p=e[27],E=S.find(p),e[23]=S,e[24]=o,e[25]=E}else E=e[25];const c=E;if(!c){let p;e[28]!==s?(p=s("routes.commerceOnboarding.connectModal.loadError"),e[28]=s,e[29]=p):p=e[29];let x;e[30]!==p?(x=r.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[30]=p,e[31]=x):x=e[31];let C;return e[32]!==i||e[33]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[32]=i,e[33]=x,e[34]=C):C=e[34],C}const P=Ie[c.bindingType];if(P&&c.boundVia!=="oauth"){let p;e[35]!==i?(p=v=>!v&&i(),e[35]=i,e[36]=p):p=e[36];let x;e[37]!==c||e[38]!==D?(x=c.satisfied?void 0:()=>{D(c)},e[37]=c,e[38]=D,e[39]=x):x=e[39];let C;return e[40]!==c||e[41]!==t||e[42]!==P||e[43]!==n||e[44]!==m||e[45]!==p||e[46]!==x?(C=r.jsx(Ne,{card:c,provider:P,org:t,selfClient:n,siteUrl:m,open:!0,onOpenChange:p,onOAuthInstead:x}),e[40]=c,e[41]=t,e[42]=P,e[43]=n,e[44]=m,e[45]=p,e[46]=x,e[47]=C):C=e[47],C}if(c.satisfied&&c.linkedConnectionId){let p;e[48]!==s?(p=s("commerceOnboarding.connectSourceDialog.loading"),e[48]=s,e[49]=p):p=e[49];let x;e[50]!==p?(x=r.jsx(V,{label:p}),e[50]=p,e[51]=x):x=e[51];let C;e[52]!==i||e[53]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[52]=i,e[53]=x,e[54]=C):C=e[54];let v;e[55]!==i?(v=A=>!A&&i(),e[55]=i,e[56]=v):v=e[56];let M;e[57]!==c||e[58]!==t||e[59]!==n||e[60]!==m||e[61]!==v?(M=r.jsx(be,{card:c,org:t,selfClient:n,connectionId:c.linkedConnectionId,contextSiteUrl:m,open:!0,onOpenChange:v}),e[57]=c,e[58]=t,e[59]=n,e[60]=m,e[61]=v,e[62]=M):M=e[62];let O;return e[63]!==C||e[64]!==M?(O=r.jsx(H.Suspense,{fallback:C,children:M}),e[63]=C,e[64]=M,e[65]=O):O=e[65],O}const T=I===c.fieldKey;let y;e[66]!==c||e[67]!==D?(y=()=>{D(c)},e[66]=c,e[67]=D,e[68]=y):y=e[68];let R;return e[69]!==c||e[70]!==_||e[71]!==i||e[72]!==T||e[73]!==y?(R=r.jsx(Ee,{card:c,connecting:T,error:_,onConnect:y,onClose:i}),e[69]=c,e[70]=_,e[71]=i,e[72]=T,e[73]=y,e[74]=R):R=e[74],R}function Ee(N){const e=k.c(22),{card:o,connecting:i,error:s,onConnect:t,onClose:a}=N,l=L(),[d,n]=H.useState(!1);d||(n(!0),queueMicrotask(t));let u;e[0]!==i||e[1]!==a?(u=b=>{!b&&i||b||a()},e[0]=i,e[1]=a,e[2]=u):u=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=r.jsx(De,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=g):g=e[5];let j;e[6]!==o.title?(j=r.jsx(W,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=j):j=e[7];let m;e[8]!==g||e[9]!==j?(m=r.jsxs(J,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,j]}),e[8]=g,e[9]=j,e[10]=m):m=e[10];let f;e[11]!==o.title||e[12]!==s||e[13]!==t||e[14]!==l?(f=s?r.jsxs("div",{className:"flex flex-col gap-3",children:[r.jsx("p",{role:"alert",className:"text-sm text-destructive",children:s}),r.jsx(oe,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:l("routes.commerceOnboarding.companionSection.retry")})]}):r.jsx(V,{label:l("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=s,e[13]=t,e[14]=l,e[15]=f):f=e[15];let S;e[16]!==m||e[17]!==f?(S=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,f]}),e[16]=m,e[17]=f,e[18]=S):S=e[18];let h;return e[19]!==u||e[20]!==S?(h=r.jsx(X,{open:!0,onOpenChange:u,children:S}),e[19]=u,e[20]=S,e[21]=h):h=e[21],h}const Pe={};function Re(N){const e=k.c(43),{client:o,resourceURI:i,tool:s,connectionId:t,orgId:a,args:l}=N,{sendMessage:d}=ue(),{setAppContext:n,clearAppContext:u}=ge(),{openSidePanel:g,openTab:j,closeTab:m}=xe(),f=`${t}:${s.name}`,[S,h]=H.useState(null);let b;e[0]!==m?(b=U=>U==="inline"?(m(),"inline"):"fullscreen",e[0]=m,e[1]=b):b=e[1];const D=b,I=l??Pe;let _;e[2]!==o||e[3]!==s.name||e[4]!==I?(_={client:o,toolName:s.name,toolArguments:I},e[2]=o,e[3]=s.name,e[4]=I,e[5]=_):_=e[5];const{data:E}=ce(_);let c;if(e[6]!==s._meta||e[7]!==s.name){const U=q(s._meta);c=F(s.name,U),e[6]=s._meta,e[7]=s.name,e[8]=c}else c=e[8];const P=c;let T;e[9]!==s.inputSchema?(T=s.inputSchema??{type:"object"},e[9]=s.inputSchema,e[10]=T):T=e[10];let y;e[11]!==P||e[12]!==T||e[13]!==s?(y={...s,name:P,inputSchema:T},e[11]=P,e[12]=T,e[13]=s,e[14]=y):y=e[14];const R=y;let p;e[15]!==g||e[16]!==j||e[17]!==d?(p=U=>{const w=ye(U.content);if(w.isNavigate){w.tab==="connect-sources"&&w.field?h(w.field):w.tab&&j(w.tab);return}const Y=pe(U.content);Y.content.length>0&&(g(),d({tiptapDoc:Y}))},e[15]=g,e[16]=j,e[17]=d,e[18]=p):p=e[18];const x=p;let C;e[19]!==R?(C={tool:R},e[19]=R,e[20]=C):C=e[20];let v;e[21]!==n||e[22]!==f?(v=U=>n(f,U),e[21]=n,e[22]=f,e[23]=v):v=e[23];let M;e[24]!==u||e[25]!==f?(M=()=>u(f),e[24]=u,e[25]=f,e[26]=M):M=e[26];let O;e[27]!==o||e[28]!==x||e[29]!==D||e[30]!==a||e[31]!==i||e[32]!==C||e[33]!==v||e[34]!==M||e[35]!==I||e[36]!==E?(O=r.jsx(fe,{resourceURI:i,orgId:a,toolInfo:C,toolInput:I,toolResult:E,displayMode:"fullscreen",minHeight:G.fullscreen.minHeight,maxHeight:G.fullscreen.maxHeight,client:o,onMessage:x,onUpdateModelContext:v,onTeardown:M,onRequestDisplayMode:D,className:"h-full"}),e[27]=o,e[28]=x,e[29]=D,e[30]=a,e[31]=i,e[32]=C,e[33]=v,e[34]=M,e[35]=I,e[36]=E,e[37]=O):O=e[37];let A;e[38]!==S?(A=S&&r.jsx(Oe,{field:S,onClose:()=>h(null)}),e[38]=S,e[39]=A):A=e[39];let $;return e[40]!==O||e[41]!==A?($=r.jsxs(r.Fragment,{children:[O,A]}),e[40]=O,e[41]=A,e[42]=$):$=e[42],$}function Ni(N){const e=k.c(25),{connectionId:o,toolName:i,args:s}=N,{org:t}=K(),a=ae(),l=ve();let d;e[0]!==o||e[1]!==l||e[2]!==a?(d=le(o)&&l?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=l,e[2]=a,e[3]=d):d=e[3];const n=d;let u;e[4]!==o||e[5]!==n||e[6]!==t.id||e[7]!==t.slug?(u={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:n},e[4]=o,e[5]=n,e[6]=t.id,e[7]=t.slug,e[8]=u):u=e[8];const g=z(u);let j;e[9]!==g?(j={client:g},e[9]=g,e[10]=j):j=e[10];const{data:m}=me(j);let f,S,h;e[11]!==i||e[12]!==m.tools?(f=se(decodeURIComponent(i)),h=m.tools.find(I=>I.name===f)??m.tools.find(I=>{const _=q(I._meta);if(!_)return!1;if(F(I.name,_)===f)return!0;const c=F(f,_);return c!==f&&I.name===c}),S=h?._meta?de(h._meta):void 0,e[11]=i,e[12]=m.tools,e[13]=f,e[14]=S,e[15]=h):(f=e[13],S=e[14],h=e[15]);const b=S;if(!h||!b){let I;return e[16]!==f?(I=r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',f,'" not found or has no UI']})}),e[16]=f,e[17]=I):I=e[17],I}let D;return e[18]!==s||e[19]!==g||e[20]!==o||e[21]!==t.id||e[22]!==b||e[23]!==h?(D=r.jsx(Re,{client:g,resourceURI:b,tool:h,connectionId:o,orgId:t.id,args:s}),e[18]=s,e[19]=g,e[20]=o,e[21]=t.id,e[22]=b,e[23]=h,e[24]=D):D=e[24],D}export{Ni as AppViewContent};
1
+ import{bG as Z,c as k,b as L,j as r,r as H,E as ee,H as K,a as te,B as oe,k as ie}from"./index-hm31ugsP.js";import{a as se,g as q,s as F}from"./automation-runs-CZzDwgHo.js";import{u as z}from"./use-mcp-client-CX-OBmZf.js";import{W as re,S as ne,p as le}from"./constants-dLUUoWH7.js";import{b as me,c as ce}from"./use-mcp-tools-Dmty5VQY.js";import{u as ae}from"./index-Csqzx8_V.js";import{c as pe}from"./monaco-editor-BQZURj6U.js";import{g as de,M as fe,a as G}from"./types-CvTzc_Qh.js";import{a as ue,u as ge}from"./chat-context-QcgP5Hid.js";import{u as xe}from"./shell-layout-DM_yg8NE.js";import{c as he,e as Ce,s as je,f as Se,P as Ie,g as be,h as Ne}from"./self-tool-result-Cj0S2miF.js";import{b as W,a as J,d as Q,e as X}from"./dialog-Bwbh5XkT.js";import{I as De}from"./integration-icon-1PiPsdgu.js";import{u as ve}from"./use-is-desktop-app-BNujXJc_.js";import"./agent-icon-BxrQJCRL.js";import"./AlertCircle-AuVMh5dI.js";import"./UserSquare-BVlsJI1B.js";import"./Tool01-Us4du1HU.js";import"./ArrowUp-D8KdFxp3.js";import"./ArrowLeft-qguukyWS.js";import"./Tool02-D26qiRWa.js";import"./XCircle-Cx-N-IGe.js";import"./TrendUp01-qULdDtxY.js";import"./ZapSquare-DN3LNwBv.js";import"./Users03-Ba7Zs6Ag.js";import"./CheckCircle-EPKsKkCI.js";import"./Check-De5xbMZ_.js";import"./ChevronDown-D6sMb7w8.js";import"./ChevronRight-eCyOlX7q.js";import"./ChevronSelectorVertical-DXXBw1x3.js";import"./ChevronUp-CU8wkfB6.js";import"./DotsVertical-K-45hvkg.js";import"./Stars02-Dkvt8wI3.js";import"./Copy01-CprinEfn.js";import"./CreditCard01-D1pg-ChJ.js";import"./Download01-BKILAf-9.js";import"./Settings02-BGe12x-0.js";import"./Eye-BIEDLA51.js";import"./FilterLines-BRzgKNAI.js";import"./Share07-CIcrbYTY.js";import"./Globe01-CpKIMjw2.js";import"./Globe04-HRnTxSxk.js";import"./SwitchHorizontal01-4ZxiW7Cz.js";import"./HardDrive-CPFqpUNk.js";import"./Key01-CGwhy3oU.js";import"./LinkExternal01-PqQ-7e5z.js";import"./LockUnlocked01-CrE32oee.js";import"./LogOut01-DeUaCLqa.js";import"./Monitor01-2y5hMZ1w.js";import"./Sun--6iEcFDH.js";import"./Palette-0eaeXKN1.js";import"./Play-CwsbwXLV.js";import"./Plus-BVETRe-R.js";import"./SearchLg-C3NeQGSM.js";import"./SearchMd-BmF-Y8C_.js";import"./Shield01-BdVpW4u3.js";import"./Stars01-DtpzfCLb.js";import"./Trash01-C7w4wgyv.js";import"./Upload01-BwQI0tkZ.js";import"./User01-DXZUb8k_.js";import"./Users01-DHYvjTlW.js";import"./XClose-CG2kLlHe.js";import"./Zap-CLl4PoNB.js";import"./useInfiniteQuery-B2jR9hyr.js";import"./use-infinite-scroll-BpnF4fSC.js";import"./use-connection-DKzIht9f.js";import"./use-virtual-mcp-CbZuO3e_.js";import"./table-Bbb6DGd2.js";import"./empty-state-ZMMx_ggR.js";import"./use-members-Ce4XWWMv.js";import"./use-org-auth-client-DRVc-InE.js";import"./use-automations-DzhoYYdI.js";import"./useSuspenseInfiniteQuery-DsL0Dkz6.js";import"./avatar-B8TVDNq4.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-ZowOp1LZ.js";import"./use-panel-navigate-FYASNw8E.js";import"./use-destination-route-BpT878sj.js";import"./hooks-BKhOAw1A.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-TjgW7ckc.js";import"./task-board-BZOysUuk.js";import"./use-navigate-to-agent-BWv7kruU.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-BWotToPV.js";import"./index-BZL6xWss.js";import"./form-Ci6fEfbw.js";import"./label-wbLj9z7D.js";import"./input-g7He7HnU.js";import"./spinner-BqZHGuGn.js";import"./file-type-icon-BZq9FOyv.js";import"./auth-BBrRxGil.js";import"./drawer-gZY69Evm.js";import"./collection-search-CKF4vh-a.js";import"./select-CenhiY0i.js";import"./tabs-BYw-M7nu.js";import"./toggle-group-BQGtS4X4.js";import"./super-agent-icon-D0imePiM.js";import"./popover-BOChxGM-.js";import"./toolbar-vRaL8WnF.js";import"./github-repo-picker-C9sTEKuY.js";import"./use-debounced-value-BNdqCz-8.js";import"./authenticate-and-persist-oauth-CRn8vZ5a.js";import"./mcp-oauth-6VKK9YCj.js";import"./extract-connection-data-MtRIVNnL.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-D0KOfMfB.js";import"./use-registry-connections-DtF-hSyP.js";import"./use-organization-settings-C1HlNm4K.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CmBeOMvY.js";import"./connection-form-helpers-DCsDAtJ5.js";import"./collection-tabs-Bl35q2wY.js";import"./badge-XOWpXFsB.js";import"./use-ai-providers-BvSmTglu.js";import"./select-model-dMVafewK.js";import"./checkbox-B9NW4zF5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BZwhu1wh.js";import"./dropdown-menu-BBOt5jRY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV_bQ2MC.js";import"./use-decopilot-events-Bdt4fjgZ.js";import"./use-file-configs-CIlcx97w.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-BL9CUnhQ.js";import"./use-debounced-autosave-L8JjKxdU.js";import"./scroll-area-CBXFYBFg.js";import"./search-input-DIjZdQF_.js";import"./use-mcp-auth-status-iQxqyXeQ.js";import"./switch-BYKDkfxp.js";import"./use-secrets-CSyh1qfb.js";import"./AreaChart-32Qtz-eE.js";import"./config-D_UdMhgt.js";import"./breadcrumb-BFwQxBQP.js";import"./command-DIiqDY8s.js";import"./index--WXQrPpq.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DfKtJhjC.js";import"./automation-list-row-BkOEm1ne.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DPTbdSkw.js";import"./required-auth-layout-DOQ5Yy6_.js";import"./use-org-sso-C66hqVjQ.js";import"./track-Ce1UGjEO.js";const Me="studio://navigate",_e=new Set(["vtex","ga4","gsc","github"]);function ye(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(Me))return{isNavigate:!1};let o=null,i=null;try{const s=new URL(e.uri).searchParams;o=s.get("main"),i=s.get("field")}catch{}return{isNavigate:!0,tab:o&&Z.has(o)?o:null,field:i&&_e.has(i)?i:null}}function B(N){const e=k.c(12),{onClose:o,children:i}=N,s=L();let t;e[0]!==o?(t=u=>!u&&o(),e[0]=o,e[1]=t):t=e[1];let a;e[2]!==s?(a=s("commerceOnboarding.connectSourceDialog.title"),e[2]=s,e[3]=a):a=e[3];let l;e[4]!==a?(l=r.jsx(J,{children:r.jsx(W,{children:a})}),e[4]=a,e[5]=l):l=e[5];let d;e[6]!==i||e[7]!==l?(d=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[l,i]}),e[6]=i,e[7]=l,e[8]=d):d=e[8];let n;return e[9]!==t||e[10]!==d?(n=r.jsx(X,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=n):n=e[11],n}function V(N){const e=k.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(ie,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let s;return e[1]!==o?(s=r.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,r.jsx("span",{children:o})]}),e[1]=o,e[2]=s):s=e[2],s}function Oe(N){const e=k.c(19),{field:o,onClose:i}=N,s=L();let t;e[0]!==i||e[1]!==s?(t=()=>r.jsx(B,{onClose:i,children:r.jsx("p",{className:"text-sm text-muted-foreground",children:s("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=s,e[2]=t):t=e[2];let a;e[3]!==s?(a=s("commerceOnboarding.connectSourceDialog.loading"),e[3]=s,e[4]=a):a=e[4];let l;e[5]!==a?(l=r.jsx(V,{label:a}),e[5]=a,e[6]=l):l=e[6];let d;e[7]!==i||e[8]!==l?(d=r.jsx(B,{onClose:i,children:l}),e[7]=i,e[8]=l,e[9]=d):d=e[9];let n;e[10]!==o||e[11]!==i?(n=r.jsx(Te,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let u;e[13]!==d||e[14]!==n?(u=r.jsx(H.Suspense,{fallback:d,children:n}),e[13]=d,e[14]=n,e[15]=u):u=e[15];let g;return e[16]!==t||e[17]!==u?(g=r.jsx(ee,{fallback:t,children:u}),e[16]=t,e[17]=u,e[18]=g):g=e[18],g}function Te(N){const e=k.c(75),{field:o,onClose:i}=N,s=L(),{org:t}=K();let a;e[0]!==t.id?(a=re.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=a):a=e[1];const l=a;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:ne,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=d):d=e[4];const n=z(d),{data:u}=te.useSession(),g=u?.user?.id??"";let j;e[5]!==l||e[6]!==t||e[7]!==n?(j={selfClient:n,org:t,cdConnectionId:l},e[5]=l,e[6]=t,e[7]=n,e[8]=j):j=e[8];const m=he(j);let f;e[9]!==l||e[10]!==t||e[11]!==n||e[12]!==m?(f={selfClient:n,org:t,cdConnectionId:l,siteUrl:m},e[9]=l,e[10]=t,e[11]=n,e[12]=m,e[13]=f):f=e[13];const{cards:S}=Ce(f);let h;e[14]!==m?(h=je(m)??void 0,e[14]=m,e[15]=h):h=e[15];let b;e[16]!==l||e[17]!==t||e[18]!==n||e[19]!==m||e[20]!==h||e[21]!==g?(b={selfClient:n,org:t,userId:g,cdConnectionId:l,domain:h,siteUrl:m},e[16]=l,e[17]=t,e[18]=n,e[19]=m,e[20]=h,e[21]=g,e[22]=b):b=e[22];const{connect:D,connectingFieldKey:I,error:_}=Se(b);let E;if(e[23]!==S||e[24]!==o){let p;e[26]!==o?(p=x=>x.fieldKey===o,e[26]=o,e[27]=p):p=e[27],E=S.find(p),e[23]=S,e[24]=o,e[25]=E}else E=e[25];const c=E;if(!c){let p;e[28]!==s?(p=s("routes.commerceOnboarding.connectModal.loadError"),e[28]=s,e[29]=p):p=e[29];let x;e[30]!==p?(x=r.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[30]=p,e[31]=x):x=e[31];let C;return e[32]!==i||e[33]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[32]=i,e[33]=x,e[34]=C):C=e[34],C}const P=Ie[c.bindingType];if(P&&c.boundVia!=="oauth"){let p;e[35]!==i?(p=v=>!v&&i(),e[35]=i,e[36]=p):p=e[36];let x;e[37]!==c||e[38]!==D?(x=c.satisfied?void 0:()=>{D(c)},e[37]=c,e[38]=D,e[39]=x):x=e[39];let C;return e[40]!==c||e[41]!==t||e[42]!==P||e[43]!==n||e[44]!==m||e[45]!==p||e[46]!==x?(C=r.jsx(Ne,{card:c,provider:P,org:t,selfClient:n,siteUrl:m,open:!0,onOpenChange:p,onOAuthInstead:x}),e[40]=c,e[41]=t,e[42]=P,e[43]=n,e[44]=m,e[45]=p,e[46]=x,e[47]=C):C=e[47],C}if(c.satisfied&&c.linkedConnectionId){let p;e[48]!==s?(p=s("commerceOnboarding.connectSourceDialog.loading"),e[48]=s,e[49]=p):p=e[49];let x;e[50]!==p?(x=r.jsx(V,{label:p}),e[50]=p,e[51]=x):x=e[51];let C;e[52]!==i||e[53]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[52]=i,e[53]=x,e[54]=C):C=e[54];let v;e[55]!==i?(v=A=>!A&&i(),e[55]=i,e[56]=v):v=e[56];let M;e[57]!==c||e[58]!==t||e[59]!==n||e[60]!==m||e[61]!==v?(M=r.jsx(be,{card:c,org:t,selfClient:n,connectionId:c.linkedConnectionId,contextSiteUrl:m,open:!0,onOpenChange:v}),e[57]=c,e[58]=t,e[59]=n,e[60]=m,e[61]=v,e[62]=M):M=e[62];let O;return e[63]!==C||e[64]!==M?(O=r.jsx(H.Suspense,{fallback:C,children:M}),e[63]=C,e[64]=M,e[65]=O):O=e[65],O}const T=I===c.fieldKey;let y;e[66]!==c||e[67]!==D?(y=()=>{D(c)},e[66]=c,e[67]=D,e[68]=y):y=e[68];let R;return e[69]!==c||e[70]!==_||e[71]!==i||e[72]!==T||e[73]!==y?(R=r.jsx(Ee,{card:c,connecting:T,error:_,onConnect:y,onClose:i}),e[69]=c,e[70]=_,e[71]=i,e[72]=T,e[73]=y,e[74]=R):R=e[74],R}function Ee(N){const e=k.c(22),{card:o,connecting:i,error:s,onConnect:t,onClose:a}=N,l=L(),[d,n]=H.useState(!1);d||(n(!0),queueMicrotask(t));let u;e[0]!==i||e[1]!==a?(u=b=>{!b&&i||b||a()},e[0]=i,e[1]=a,e[2]=u):u=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=r.jsx(De,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=g):g=e[5];let j;e[6]!==o.title?(j=r.jsx(W,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=j):j=e[7];let m;e[8]!==g||e[9]!==j?(m=r.jsxs(J,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,j]}),e[8]=g,e[9]=j,e[10]=m):m=e[10];let f;e[11]!==o.title||e[12]!==s||e[13]!==t||e[14]!==l?(f=s?r.jsxs("div",{className:"flex flex-col gap-3",children:[r.jsx("p",{role:"alert",className:"text-sm text-destructive",children:s}),r.jsx(oe,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:l("routes.commerceOnboarding.companionSection.retry")})]}):r.jsx(V,{label:l("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=s,e[13]=t,e[14]=l,e[15]=f):f=e[15];let S;e[16]!==m||e[17]!==f?(S=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,f]}),e[16]=m,e[17]=f,e[18]=S):S=e[18];let h;return e[19]!==u||e[20]!==S?(h=r.jsx(X,{open:!0,onOpenChange:u,children:S}),e[19]=u,e[20]=S,e[21]=h):h=e[21],h}const Pe={};function Re(N){const e=k.c(43),{client:o,resourceURI:i,tool:s,connectionId:t,orgId:a,args:l}=N,{sendMessage:d}=ue(),{setAppContext:n,clearAppContext:u}=ge(),{openSidePanel:g,openTab:j,closeTab:m}=xe(),f=`${t}:${s.name}`,[S,h]=H.useState(null);let b;e[0]!==m?(b=U=>U==="inline"?(m(),"inline"):"fullscreen",e[0]=m,e[1]=b):b=e[1];const D=b,I=l??Pe;let _;e[2]!==o||e[3]!==s.name||e[4]!==I?(_={client:o,toolName:s.name,toolArguments:I},e[2]=o,e[3]=s.name,e[4]=I,e[5]=_):_=e[5];const{data:E}=ce(_);let c;if(e[6]!==s._meta||e[7]!==s.name){const U=q(s._meta);c=F(s.name,U),e[6]=s._meta,e[7]=s.name,e[8]=c}else c=e[8];const P=c;let T;e[9]!==s.inputSchema?(T=s.inputSchema??{type:"object"},e[9]=s.inputSchema,e[10]=T):T=e[10];let y;e[11]!==P||e[12]!==T||e[13]!==s?(y={...s,name:P,inputSchema:T},e[11]=P,e[12]=T,e[13]=s,e[14]=y):y=e[14];const R=y;let p;e[15]!==g||e[16]!==j||e[17]!==d?(p=U=>{const w=ye(U.content);if(w.isNavigate){w.tab==="connect-sources"&&w.field?h(w.field):w.tab&&j(w.tab);return}const Y=pe(U.content);Y.content.length>0&&(g(),d({tiptapDoc:Y}))},e[15]=g,e[16]=j,e[17]=d,e[18]=p):p=e[18];const x=p;let C;e[19]!==R?(C={tool:R},e[19]=R,e[20]=C):C=e[20];let v;e[21]!==n||e[22]!==f?(v=U=>n(f,U),e[21]=n,e[22]=f,e[23]=v):v=e[23];let M;e[24]!==u||e[25]!==f?(M=()=>u(f),e[24]=u,e[25]=f,e[26]=M):M=e[26];let O;e[27]!==o||e[28]!==x||e[29]!==D||e[30]!==a||e[31]!==i||e[32]!==C||e[33]!==v||e[34]!==M||e[35]!==I||e[36]!==E?(O=r.jsx(fe,{resourceURI:i,orgId:a,toolInfo:C,toolInput:I,toolResult:E,displayMode:"fullscreen",minHeight:G.fullscreen.minHeight,maxHeight:G.fullscreen.maxHeight,client:o,onMessage:x,onUpdateModelContext:v,onTeardown:M,onRequestDisplayMode:D,className:"h-full"}),e[27]=o,e[28]=x,e[29]=D,e[30]=a,e[31]=i,e[32]=C,e[33]=v,e[34]=M,e[35]=I,e[36]=E,e[37]=O):O=e[37];let A;e[38]!==S?(A=S&&r.jsx(Oe,{field:S,onClose:()=>h(null)}),e[38]=S,e[39]=A):A=e[39];let $;return e[40]!==O||e[41]!==A?($=r.jsxs(r.Fragment,{children:[O,A]}),e[40]=O,e[41]=A,e[42]=$):$=e[42],$}function Ni(N){const e=k.c(25),{connectionId:o,toolName:i,args:s}=N,{org:t}=K(),a=ae(),l=ve();let d;e[0]!==o||e[1]!==l||e[2]!==a?(d=le(o)&&l?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=l,e[2]=a,e[3]=d):d=e[3];const n=d;let u;e[4]!==o||e[5]!==n||e[6]!==t.id||e[7]!==t.slug?(u={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:n},e[4]=o,e[5]=n,e[6]=t.id,e[7]=t.slug,e[8]=u):u=e[8];const g=z(u);let j;e[9]!==g?(j={client:g},e[9]=g,e[10]=j):j=e[10];const{data:m}=me(j);let f,S,h;e[11]!==i||e[12]!==m.tools?(f=se(decodeURIComponent(i)),h=m.tools.find(I=>I.name===f)??m.tools.find(I=>{const _=q(I._meta);if(!_)return!1;if(F(I.name,_)===f)return!0;const c=F(f,_);return c!==f&&I.name===c}),S=h?._meta?de(h._meta):void 0,e[11]=i,e[12]=m.tools,e[13]=f,e[14]=S,e[15]=h):(f=e[13],S=e[14],h=e[15]);const b=S;if(!h||!b){let I;return e[16]!==f?(I=r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',f,'" not found or has no UI']})}),e[16]=f,e[17]=I):I=e[17],I}let D;return e[18]!==s||e[19]!==g||e[20]!==o||e[21]!==t.id||e[22]!==b||e[23]!==h?(D=r.jsx(Re,{client:g,resourceURI:b,tool:h,connectionId:o,orgId:t.id,args:s}),e[18]=s,e[19]=g,e[20]=o,e[21]=t.id,e[22]=b,e[23]=h,e[24]=D):D=e[24],D}export{Ni as AppViewContent};
@@ -1 +1 @@
1
- import{c as Z,b as ee,r as A,o as te,e as se,j as i,P as M,n as ie,K as le,t as Q,k as ne,B as Y}from"./index-kc-p0Tho.js";import{E as oe}from"./empty-state-DGfgLPT9.js";import{I as re}from"./input-CoA1YEYW.js";import{L as $}from"./label-COrU7OvG.js";import{T as ae}from"./textarea-CvXIGUrZ.js";import{a as G}from"./admin-fetch-CCSvjTk1.js";function he(){const e=Z.c(66),s=ee();let k;e[0]===Symbol.for("react.memo_cache_sentinel")?(k={},e[0]=k):k=e[0];const[r,D]=A.useState(k),[H,U]=A.useState(null),[m,J]=A.useState("");let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C={queryKey:le.deploymentAdminPrompts(),queryFn:de},e[1]=C):C=e[1];const{data:a,isLoading:V,isError:W,error:_,refetch:c}=te(C),w=a?.prompts??[],l=w.find(t=>t.id===H)??w[0],n=Object.keys(r).filter(t=>r[t]!==w.find(o=>o.id===t)?.content);let p;e[2]!==a?.baseSha||e[3]!==n||e[4]!==r||e[5]!==m?(p=()=>G("/api/_admin/prompts/pull-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:m.trim()||void 0,baseSha:a?.baseSha,edits:n.map(t=>({id:t,content:r[t]}))})}),e[2]=a?.baseSha,e[3]=n,e[4]=r,e[5]=m,e[6]=p):p=e[6];let f;e[7]!==c||e[8]!==s?(f=t=>{Q.success(s("admin.prompts.prOpened",{number:String(t.number)}),{action:{label:s("admin.prompts.viewPr"),onClick:()=>window.open(t.url,"_blank")}}),D({}),J(""),c()},e[7]=c,e[8]=s,e[9]=f):f=e[9];let u;e[10]!==s?(u=t=>{Q.error(t instanceof Error?t.message:s("admin.prompts.prFailed"))},e[10]=s,e[11]=u):u=e[11];let F;e[12]!==p||e[13]!==f||e[14]!==u?(F={mutationFn:p,onSuccess:f,onError:u},e[12]=p,e[13]=f,e[14]=u,e[15]=F):F=e[15];const d=se(F);if(V){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(ne,{size:20,className:"animate-spin text-muted-foreground"})}),e[16]=t):t=e[16],t}if(W||!l){let t;e[17]!==s?(t=s("admin.prompts.failedToLoadTitle"),e[17]=s,e[18]=t):t=e[18];let o;e[19]!==_||e[20]!==s?(o=_ instanceof Error&&_.message?_.message:s("admin.prompts.failedToLoadDescription"),e[19]=_,e[20]=s,e[21]=o):o=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];let E;e[24]!==s?(E=s("admin.prompts.retry"),e[24]=s,e[25]=E):E=e[25];let T;e[26]!==N||e[27]!==E?(T=i.jsx(Y,{variant:"outline",size:"sm",onClick:N,children:E}),e[26]=N,e[27]=E,e[28]=T):T=e[28];let O;return e[29]!==T||e[30]!==t||e[31]!==o?(O=i.jsx(oe,{title:t,description:o,actions:T}),e[29]=T,e[30]=t,e[31]=o,e[32]=O):O=e[32],O}const X=r[l.id]??l.content??"",B=a?.repo??"",K=a?.branch??"",R=a?.org??"";let x;e[33]!==s||e[34]!==B||e[35]!==K||e[36]!==R?(x=s("admin.prompts.description",{repo:B,branch:K,org:R}),e[33]=s,e[34]=B,e[35]=K,e[36]=R,e[37]=x):x=e[37];let L;e[38]!==x?(L=i.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[38]=x,e[39]=L):L=e[39];let h;e[40]!==s?(h=s("admin.prompts.prTitleLabel"),e[40]=s,e[41]=h):h=e[41];let g;e[42]!==h?(g=i.jsx($,{htmlFor:"pr-title",children:h}),e[42]=h,e[43]=g):g=e[43];let I;e[44]===Symbol.for("react.memo_cache_sentinel")?(I=t=>J(t.target.value),e[44]=I):I=e[44];let b;e[45]!==s?(b=s("admin.prompts.prTitlePlaceholder"),e[45]=s,e[46]=b):b=e[46];let j;e[47]!==b||e[48]!==m?(j=i.jsx(re,{id:"pr-title",value:m,onChange:I,placeholder:b}),e[47]=b,e[48]=m,e[49]=j):j=e[49];let y;e[50]!==g||e[51]!==j?(y=i.jsxs("div",{className:"flex w-full flex-col gap-2 md:max-w-md",children:[g,j]}),e[50]=g,e[51]=j,e[52]=y):y=e[52];const z=n.length===0||d.isPending;let S;e[53]!==d?(S=()=>d.mutate(),e[53]=d,e[54]=S):S=e[54];let v;e[55]!==n.length||e[56]!==d.isPending||e[57]!==s?(v=d.isPending?s("admin.prompts.opening"):s("admin.prompts.openPr",{count:String(n.length)}),e[55]=n.length,e[56]=d.isPending,e[57]=s,e[58]=v):v=e[58];let P;e[59]!==z||e[60]!==S||e[61]!==v?(P=i.jsx(Y,{disabled:z,onClick:S,children:v}),e[59]=z,e[60]=S,e[61]=v,e[62]=P):P=e[62];let q;return e[63]!==y||e[64]!==P?(q=i.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[y,P]}),e[63]=y,e[64]=P,e[65]=q):q=e[65],i.jsx(M,{children:i.jsx(M.Content,{children:i.jsx(M.Body,{children:i.jsxs("div",{className:"flex flex-col gap-4",children:[L,i.jsx("div",{className:"flex flex-wrap gap-1",children:w.map(t=>i.jsxs("button",{type:"button",onClick:()=>U(t.id),className:ie("rounded-md px-3 py-1.5 text-sm font-medium transition-colors",t.id===l.id?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"),children:[t.label,n.includes(t.id)?" •":""]},t.id))}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx($,{htmlFor:"prompt-source",children:l.path}),i.jsx(ae,{id:"prompt-source",className:"min-h-[420px] font-mono text-xs",spellCheck:!1,value:X,disabled:l.content===null,onChange:t=>D({...r,[l.id]:t.target.value})}),l.content===null?i.jsx("p",{className:"text-sm text-destructive",children:s("admin.prompts.markerMissing",{id:l.id})}):null]}),q]})})})})}function de(){return G("/api/_admin/prompts")}export{he as default};
1
+ import{c as Z,b as ee,r as A,o as te,e as se,j as i,P as M,n as ie,K as le,t as Q,k as ne,B as Y}from"./index-hm31ugsP.js";import{E as oe}from"./empty-state-ZMMx_ggR.js";import{I as re}from"./input-g7He7HnU.js";import{L as $}from"./label-wbLj9z7D.js";import{T as ae}from"./textarea-CmBeOMvY.js";import{a as G}from"./admin-fetch-CCSvjTk1.js";function he(){const e=Z.c(66),s=ee();let k;e[0]===Symbol.for("react.memo_cache_sentinel")?(k={},e[0]=k):k=e[0];const[r,D]=A.useState(k),[H,U]=A.useState(null),[m,J]=A.useState("");let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C={queryKey:le.deploymentAdminPrompts(),queryFn:de},e[1]=C):C=e[1];const{data:a,isLoading:V,isError:W,error:_,refetch:c}=te(C),w=a?.prompts??[],l=w.find(t=>t.id===H)??w[0],n=Object.keys(r).filter(t=>r[t]!==w.find(o=>o.id===t)?.content);let p;e[2]!==a?.baseSha||e[3]!==n||e[4]!==r||e[5]!==m?(p=()=>G("/api/_admin/prompts/pull-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:m.trim()||void 0,baseSha:a?.baseSha,edits:n.map(t=>({id:t,content:r[t]}))})}),e[2]=a?.baseSha,e[3]=n,e[4]=r,e[5]=m,e[6]=p):p=e[6];let f;e[7]!==c||e[8]!==s?(f=t=>{Q.success(s("admin.prompts.prOpened",{number:String(t.number)}),{action:{label:s("admin.prompts.viewPr"),onClick:()=>window.open(t.url,"_blank")}}),D({}),J(""),c()},e[7]=c,e[8]=s,e[9]=f):f=e[9];let u;e[10]!==s?(u=t=>{Q.error(t instanceof Error?t.message:s("admin.prompts.prFailed"))},e[10]=s,e[11]=u):u=e[11];let F;e[12]!==p||e[13]!==f||e[14]!==u?(F={mutationFn:p,onSuccess:f,onError:u},e[12]=p,e[13]=f,e[14]=u,e[15]=F):F=e[15];const d=se(F);if(V){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(ne,{size:20,className:"animate-spin text-muted-foreground"})}),e[16]=t):t=e[16],t}if(W||!l){let t;e[17]!==s?(t=s("admin.prompts.failedToLoadTitle"),e[17]=s,e[18]=t):t=e[18];let o;e[19]!==_||e[20]!==s?(o=_ instanceof Error&&_.message?_.message:s("admin.prompts.failedToLoadDescription"),e[19]=_,e[20]=s,e[21]=o):o=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];let E;e[24]!==s?(E=s("admin.prompts.retry"),e[24]=s,e[25]=E):E=e[25];let T;e[26]!==N||e[27]!==E?(T=i.jsx(Y,{variant:"outline",size:"sm",onClick:N,children:E}),e[26]=N,e[27]=E,e[28]=T):T=e[28];let O;return e[29]!==T||e[30]!==t||e[31]!==o?(O=i.jsx(oe,{title:t,description:o,actions:T}),e[29]=T,e[30]=t,e[31]=o,e[32]=O):O=e[32],O}const X=r[l.id]??l.content??"",B=a?.repo??"",K=a?.branch??"",R=a?.org??"";let x;e[33]!==s||e[34]!==B||e[35]!==K||e[36]!==R?(x=s("admin.prompts.description",{repo:B,branch:K,org:R}),e[33]=s,e[34]=B,e[35]=K,e[36]=R,e[37]=x):x=e[37];let L;e[38]!==x?(L=i.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[38]=x,e[39]=L):L=e[39];let h;e[40]!==s?(h=s("admin.prompts.prTitleLabel"),e[40]=s,e[41]=h):h=e[41];let g;e[42]!==h?(g=i.jsx($,{htmlFor:"pr-title",children:h}),e[42]=h,e[43]=g):g=e[43];let I;e[44]===Symbol.for("react.memo_cache_sentinel")?(I=t=>J(t.target.value),e[44]=I):I=e[44];let b;e[45]!==s?(b=s("admin.prompts.prTitlePlaceholder"),e[45]=s,e[46]=b):b=e[46];let j;e[47]!==b||e[48]!==m?(j=i.jsx(re,{id:"pr-title",value:m,onChange:I,placeholder:b}),e[47]=b,e[48]=m,e[49]=j):j=e[49];let y;e[50]!==g||e[51]!==j?(y=i.jsxs("div",{className:"flex w-full flex-col gap-2 md:max-w-md",children:[g,j]}),e[50]=g,e[51]=j,e[52]=y):y=e[52];const z=n.length===0||d.isPending;let S;e[53]!==d?(S=()=>d.mutate(),e[53]=d,e[54]=S):S=e[54];let v;e[55]!==n.length||e[56]!==d.isPending||e[57]!==s?(v=d.isPending?s("admin.prompts.opening"):s("admin.prompts.openPr",{count:String(n.length)}),e[55]=n.length,e[56]=d.isPending,e[57]=s,e[58]=v):v=e[58];let P;e[59]!==z||e[60]!==S||e[61]!==v?(P=i.jsx(Y,{disabled:z,onClick:S,children:v}),e[59]=z,e[60]=S,e[61]=v,e[62]=P):P=e[62];let q;return e[63]!==y||e[64]!==P?(q=i.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[y,P]}),e[63]=y,e[64]=P,e[65]=q):q=e[65],i.jsx(M,{children:i.jsx(M.Content,{children:i.jsx(M.Body,{children:i.jsxs("div",{className:"flex flex-col gap-4",children:[L,i.jsx("div",{className:"flex flex-wrap gap-1",children:w.map(t=>i.jsxs("button",{type:"button",onClick:()=>U(t.id),className:ie("rounded-md px-3 py-1.5 text-sm font-medium transition-colors",t.id===l.id?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"),children:[t.label,n.includes(t.id)?" •":""]},t.id))}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx($,{htmlFor:"prompt-source",children:l.path}),i.jsx(ae,{id:"prompt-source",className:"min-h-[420px] font-mono text-xs",spellCheck:!1,value:X,disabled:l.content===null,onChange:t=>D({...r,[l.id]:t.target.value})}),l.content===null?i.jsx("p",{className:"text-sm text-destructive",children:s("admin.prompts.markerMissing",{id:l.id})}):null]}),q]})})})})}function de(){return G("/api/_admin/prompts")}export{he as default};
@@ -0,0 +1 @@
1
+ import{c as B,b as L,j as r}from"./index-hm31ugsP.js";import{I as A}from"./input-g7He7HnU.js";import{L as F}from"./label-wbLj9z7D.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-CenhiY0i.js";import{T as G}from"./textarea-CmBeOMvY.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-Csqzx8_V.js";import{s as P}from"./primitives-BzOkwFQR.js";import{u as H}from"./use-autosave-4nUOlTfl.js";import"./Check-De5xbMZ_.js";import"./ChevronDown-D6sMb7w8.js";import"./ChevronUp-CU8wkfB6.js";import"./ArrowUp-D8KdFxp3.js";import"./chat-context-QcgP5Hid.js";import"./use-panel-navigate-FYASNw8E.js";import"./dialog-Bwbh5XkT.js";import"./Copy01-CprinEfn.js";import"./Download01-BKILAf-9.js";import"./use-destination-route-BpT878sj.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-BKhOAw1A.js";import"./use-mcp-client-CX-OBmZf.js";import"./auth-BBrRxGil.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-TjgW7ckc.js";import"./task-board-BZOysUuk.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-CbZuO3e_.js";import"./use-ai-providers-BvSmTglu.js";import"./use-decopilot-events-Bdt4fjgZ.js";import"./use-organization-settings-C1HlNm4K.js";import"./automation-runs-CZzDwgHo.js";import"./agent-icon-BxrQJCRL.js";import"./AlertCircle-AuVMh5dI.js";import"./UserSquare-BVlsJI1B.js";import"./Tool01-Us4du1HU.js";import"./ArrowLeft-qguukyWS.js";import"./Tool02-D26qiRWa.js";import"./XCircle-Cx-N-IGe.js";import"./TrendUp01-qULdDtxY.js";import"./ZapSquare-DN3LNwBv.js";import"./Users03-Ba7Zs6Ag.js";import"./CheckCircle-EPKsKkCI.js";import"./ChevronRight-eCyOlX7q.js";import"./ChevronSelectorVertical-DXXBw1x3.js";import"./DotsVertical-K-45hvkg.js";import"./Stars02-Dkvt8wI3.js";import"./CreditCard01-D1pg-ChJ.js";import"./Settings02-BGe12x-0.js";import"./Eye-BIEDLA51.js";import"./FilterLines-BRzgKNAI.js";import"./Share07-CIcrbYTY.js";import"./Globe01-CpKIMjw2.js";import"./Globe04-HRnTxSxk.js";import"./SwitchHorizontal01-4ZxiW7Cz.js";import"./HardDrive-CPFqpUNk.js";import"./Key01-CGwhy3oU.js";import"./LinkExternal01-PqQ-7e5z.js";import"./LockUnlocked01-CrE32oee.js";import"./LogOut01-DeUaCLqa.js";import"./Monitor01-2y5hMZ1w.js";import"./Sun--6iEcFDH.js";import"./Palette-0eaeXKN1.js";import"./Play-CwsbwXLV.js";import"./Plus-BVETRe-R.js";import"./SearchLg-C3NeQGSM.js";import"./SearchMd-BmF-Y8C_.js";import"./Shield01-BdVpW4u3.js";import"./Stars01-DtpzfCLb.js";import"./Trash01-C7w4wgyv.js";import"./Upload01-BwQI0tkZ.js";import"./User01-DXZUb8k_.js";import"./Users01-DHYvjTlW.js";import"./XClose-CG2kLlHe.js";import"./Zap-CLl4PoNB.js";import"./useInfiniteQuery-B2jR9hyr.js";import"./use-infinite-scroll-BpnF4fSC.js";import"./use-connection-DKzIht9f.js";import"./table-Bbb6DGd2.js";import"./empty-state-ZMMx_ggR.js";import"./use-members-Ce4XWWMv.js";import"./use-org-auth-client-DRVc-InE.js";import"./use-automations-DzhoYYdI.js";import"./useSuspenseInfiniteQuery-DsL0Dkz6.js";import"./avatar-B8TVDNq4.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-ZowOp1LZ.js";import"./monaco-editor-BQZURj6U.js";import"./spinner-BqZHGuGn.js";import"./types-CvTzc_Qh.js";import"./shell-layout-DM_yg8NE.js";import"./required-auth-layout-DOQ5Yy6_.js";import"./use-org-sso-C66hqVjQ.js";import"./integration-icon-1PiPsdgu.js";import"./use-navigate-to-agent-BWv7kruU.js";import"./chart-BWotToPV.js";import"./index-BZL6xWss.js";import"./form-Ci6fEfbw.js";import"./file-type-icon-BZq9FOyv.js";import"./drawer-gZY69Evm.js";import"./collection-search-CKF4vh-a.js";import"./tabs-BYw-M7nu.js";import"./toggle-group-BQGtS4X4.js";import"./super-agent-icon-D0imePiM.js";import"./self-tool-result-Cj0S2miF.js";import"./alert-dialog-BL9CUnhQ.js";import"./extract-connection-data-MtRIVNnL.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BNdqCz-8.js";import"./authenticate-and-persist-oauth-CRn8vZ5a.js";import"./mcp-oauth-6VKK9YCj.js";import"./track-Ce1UGjEO.js";import"./popover-BOChxGM-.js";import"./toolbar-vRaL8WnF.js";import"./github-repo-picker-C9sTEKuY.js";import"./use-mcp-tools-Dmty5VQY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-D0KOfMfB.js";import"./use-registry-connections-DtF-hSyP.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-DCsDAtJ5.js";import"./collection-tabs-Bl35q2wY.js";import"./badge-XOWpXFsB.js";import"./select-model-dMVafewK.js";import"./checkbox-B9NW4zF5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BZwhu1wh.js";import"./dropdown-menu-BBOt5jRY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV_bQ2MC.js";import"./use-file-configs-CIlcx97w.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-L8JjKxdU.js";import"./scroll-area-CBXFYBFg.js";import"./search-input-DIjZdQF_.js";import"./use-mcp-auth-status-iQxqyXeQ.js";import"./switch-BYKDkfxp.js";import"./use-secrets-CSyh1qfb.js";import"./AreaChart-32Qtz-eE.js";import"./config-D_UdMhgt.js";import"./breadcrumb-BFwQxBQP.js";import"./command-DIiqDY8s.js";import"./index--WXQrPpq.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DfKtJhjC.js";import"./automation-list-row-BkOEm1ne.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DPTbdSkw.js";const Q={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},U={authors:"sandbox.recordEditor.titleAuthor"};function Gr(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=J(h);let g;t[4]!==f||t[5]!==a?(g=M(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:$(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=H(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=U[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(X,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=Q[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(q,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(V,{id:o.key,className:"h-10 w-full",children:r.jsx(z,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(D,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(G,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==x?(u=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{Gr as RecordEditor};
@@ -1 +1 @@
1
- import{c as pt,b as at,j as r}from"./index-kc-p0Tho.js";import{C as ct}from"./checkbox-YMTFrO1r.js";import{I as rt}from"./input-CoA1YEYW.js";import{L as et}from"./label-COrU7OvG.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-DwECBvqm.js";import{G as ut,b_ as bt,K as yt,b$ as jt,c0 as vt}from"./index-BUlvC5Z0.js";import{u as gt}from"./use-autosave-COQ2KNxK.js";import"./Check-CQfGOUkn.js";import"./ChevronDown-DJW5HhkM.js";import"./ChevronUp-DOnt1lNa.js";import"./ArrowUp-CukalgWz.js";import"./chat-context-BaV72O1g.js";import"./use-panel-navigate-DSXuFDWh.js";import"./dialog-v9lm8kV3.js";import"./Copy01-DT_VNucR.js";import"./Download01-BC66vxkd.js";import"./use-destination-route-DwR5EZdM.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-ndMd0rOE.js";import"./use-mcp-client-C2WpJqGp.js";import"./auth-Ck-CYI0s.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-RJKXQFNl.js";import"./task-board-d9aI3xON.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-C1lgXcOb.js";import"./use-ai-providers-D-DLX2r-.js";import"./use-decopilot-events-DQphD5G3.js";import"./use-organization-settings-BqyTxtql.js";import"./automation-runs-DJXgmGit.js";import"./agent-icon-BK-LdAbb.js";import"./AlertCircle-COfoHlYo.js";import"./UserSquare-nHDcwF_u.js";import"./Tool01-BMVX3tOF.js";import"./ArrowLeft-DvfIRo1L.js";import"./Tool02-WBvKkURX.js";import"./XCircle-BrD26F_t.js";import"./TrendUp01-CahTnQ2p.js";import"./ZapSquare-BXyJZB2H.js";import"./Users03-CasZyOXJ.js";import"./CheckCircle-B5B8UVD6.js";import"./ChevronRight-CdylS1le.js";import"./ChevronSelectorVertical-DjiLaY0h.js";import"./DotsVertical-veJCsKg6.js";import"./Stars02-b1P1T_48.js";import"./CreditCard01-Bi19p04V.js";import"./Settings02-DE8fnfTk.js";import"./Eye-DhvNNTcF.js";import"./FilterLines-DCFzTCRB.js";import"./Share07-Bk8835lK.js";import"./Globe01-CnIzUI9D.js";import"./Globe04-DtNi2ZyL.js";import"./SwitchHorizontal01-rtsYQduN.js";import"./HardDrive-CLNcCFxS.js";import"./Key01-28MkH09O.js";import"./LinkExternal01-BmdVn0um.js";import"./LockUnlocked01-xbaMcbOK.js";import"./LogOut01-CUumDUY-.js";import"./Monitor01-DnWcZI3D.js";import"./Sun-B_-yVQ2_.js";import"./Palette-BbL1PNN-.js";import"./Play-DWeLA7lK.js";import"./Plus-DEP38EYY.js";import"./SearchLg-BO_-rqE7.js";import"./SearchMd-B7xHuJq4.js";import"./Shield01-BUK8VCxJ.js";import"./Stars01-C5onyQkg.js";import"./Trash01-CiqyPob_.js";import"./Upload01-CWR5PH57.js";import"./User01-S_RGxi2I.js";import"./Users01-OC7kfFvk.js";import"./XClose-DbkY8wiR.js";import"./Zap-uo4AxzhY.js";import"./useInfiniteQuery-PqMaSXlJ.js";import"./use-infinite-scroll-xFY_A5TW.js";import"./use-connection-DN4iufew.js";import"./table-CNWQQ1ny.js";import"./empty-state-DGfgLPT9.js";import"./use-members-D3qbSIYx.js";import"./use-org-auth-client-6ydcGnsW.js";import"./use-automations-DCQErfJY.js";import"./useSuspenseInfiniteQuery-BO55lV73.js";import"./avatar-BGhjOwGM.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BrNQw893.js";import"./monaco-editor-C37CkGWQ.js";import"./spinner-Ba0CkhBN.js";import"./types-BR-rJmTQ.js";import"./shell-layout-Btlvd1G3.js";import"./required-auth-layout-CPEZLxXW.js";import"./use-org-sso-DMKUn11x.js";import"./integration-icon-Db_3_1Xt.js";import"./use-navigate-to-agent-BnGGkvww.js";import"./chart-CsLoGKFV.js";import"./index-BMtomEba.js";import"./form-KfWVSNEC.js";import"./file-type-icon-Cp2yVzTz.js";import"./drawer-DBmJy2OH.js";import"./collection-search-CiPLUXMb.js";import"./tabs---ylShNh.js";import"./toggle-group-9H7MENld.js";import"./super-agent-icon-f5MMUEZI.js";import"./self-tool-result-BWeTClq7.js";import"./alert-dialog-EuQzy5n4.js";import"./extract-connection-data-BPW_Djea.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-w4-tTzSs.js";import"./authenticate-and-persist-oauth-Bnxs7yjQ.js";import"./mcp-oauth-KDpSMvkd.js";import"./track-rDKtvIJ6.js";import"./popover-B0YbN5z6.js";import"./toolbar-CFGjTZKp.js";import"./github-repo-picker-BgSzUzWL.js";import"./use-mcp-tools-D2jDyaSa.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CaXPkEtx.js";import"./use-registry-connections-owrgLOps.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CvXIGUrZ.js";import"./connection-form-helpers-CAJu7GAu.js";import"./collection-tabs-B32iAo6N.js";import"./badge-Db5xIffE.js";import"./select-model-D3_B27r5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DjdS8mnO.js";import"./dropdown-menu-kAhQsmIq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BxmwD3Ts.js";import"./use-file-configs-BQA5pT_r.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-C96mZ7FL.js";import"./scroll-area-Dy82C7p_.js";import"./search-input-BupwGxLP.js";import"./use-mcp-auth-status-g4f-5p6M.js";import"./switch-CvaUzcu8.js";import"./use-secrets-D8LOTarp.js";import"./AreaChart-k1GdGLk3.js";import"./config-sObTbFZQ.js";import"./breadcrumb-yuTxiBYX.js";import"./command-DOfXQ3iQ.js";import"./index-Cvq1ebr1.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CsnYBdZ3.js";import"./automation-list-row-CbU006h8.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-ioAfxmUp.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function ni(it){const t=pt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let $;t[4]!==Z?($=bt(Z),t[4]=Z,t[5]=$):$=t[5];const ot=$;let G;t[6]!==X||t[7]!==s?(G=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=G):G=t[8];const[o,tt]=gt(ot,G);let M;t[9]!==o||t[10]!==tt?(M=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=M):M=t[11];const m=M;let l;t[12]!==e?(l=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=l):l=t[13];let p;t[14]!==l?(p=r.jsx("span",{className:"text-sm font-medium",children:l}),t[14]=l,t[15]=p):p=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(yt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==p||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[p,a]}),t[19]=p,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let b;t[36]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=b):b=t[37];let y;t[38]!==n||t[39]!==h||t[40]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[38]=n,t[39]=h,t[40]=b,t[41]=y):y=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let g;t[46]!==e?(g=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=g):g=t[47];let E;t[48]!==m?(E=i=>m({to:i.target.value}),t[48]=m,t[49]=E):E=t[49];let P;t[50]!==o.to||t[51]!==g||t[52]!==E?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:g,onChange:E,className:"h-10"}),t[50]=o.to,t[51]=g,t[52]=E,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const lt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let _;t[70]!==R?(_=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=_):_=t[71];let I;t[72]!==e?(I=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=I):I=t[73];let K;t[74]!==I?(K=r.jsx(xt,{children:I}),t[74]=I,t[75]=K):K=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==_||t[79]!==K?(L=r.jsxs(ht,{value:lt,onValueChange:w,children:[_,K]}),t[76]=o.type,t[77]=w,t[78]=_,t[79]=K,t[80]=L):L=t[80];let Y;t[81]===Symbol.for("react.memo_cache_sentinel")?(Y=r.jsx("strong",{children:"Temporary"}),t[81]=Y):Y=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",Y," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let F;t[86]!==m?(F=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=F):F=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==F?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:F}),t[88]=o.discardQueryParameters,t[89]=F,t[90]=D):D=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==D||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[95]=D,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==y||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[98]=y,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{ni as RedirectEditor};
1
+ import{c as pt,b as at,j as r}from"./index-hm31ugsP.js";import{C as ct}from"./checkbox-B9NW4zF5.js";import{I as rt}from"./input-g7He7HnU.js";import{L as et}from"./label-wbLj9z7D.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-CenhiY0i.js";import{G as ut,b_ as bt,K as yt,b$ as jt,c0 as vt}from"./index-Csqzx8_V.js";import{u as gt}from"./use-autosave-4nUOlTfl.js";import"./Check-De5xbMZ_.js";import"./ChevronDown-D6sMb7w8.js";import"./ChevronUp-CU8wkfB6.js";import"./ArrowUp-D8KdFxp3.js";import"./chat-context-QcgP5Hid.js";import"./use-panel-navigate-FYASNw8E.js";import"./dialog-Bwbh5XkT.js";import"./Copy01-CprinEfn.js";import"./Download01-BKILAf-9.js";import"./use-destination-route-BpT878sj.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-BKhOAw1A.js";import"./use-mcp-client-CX-OBmZf.js";import"./auth-BBrRxGil.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-TjgW7ckc.js";import"./task-board-BZOysUuk.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-CbZuO3e_.js";import"./use-ai-providers-BvSmTglu.js";import"./use-decopilot-events-Bdt4fjgZ.js";import"./use-organization-settings-C1HlNm4K.js";import"./automation-runs-CZzDwgHo.js";import"./agent-icon-BxrQJCRL.js";import"./AlertCircle-AuVMh5dI.js";import"./UserSquare-BVlsJI1B.js";import"./Tool01-Us4du1HU.js";import"./ArrowLeft-qguukyWS.js";import"./Tool02-D26qiRWa.js";import"./XCircle-Cx-N-IGe.js";import"./TrendUp01-qULdDtxY.js";import"./ZapSquare-DN3LNwBv.js";import"./Users03-Ba7Zs6Ag.js";import"./CheckCircle-EPKsKkCI.js";import"./ChevronRight-eCyOlX7q.js";import"./ChevronSelectorVertical-DXXBw1x3.js";import"./DotsVertical-K-45hvkg.js";import"./Stars02-Dkvt8wI3.js";import"./CreditCard01-D1pg-ChJ.js";import"./Settings02-BGe12x-0.js";import"./Eye-BIEDLA51.js";import"./FilterLines-BRzgKNAI.js";import"./Share07-CIcrbYTY.js";import"./Globe01-CpKIMjw2.js";import"./Globe04-HRnTxSxk.js";import"./SwitchHorizontal01-4ZxiW7Cz.js";import"./HardDrive-CPFqpUNk.js";import"./Key01-CGwhy3oU.js";import"./LinkExternal01-PqQ-7e5z.js";import"./LockUnlocked01-CrE32oee.js";import"./LogOut01-DeUaCLqa.js";import"./Monitor01-2y5hMZ1w.js";import"./Sun--6iEcFDH.js";import"./Palette-0eaeXKN1.js";import"./Play-CwsbwXLV.js";import"./Plus-BVETRe-R.js";import"./SearchLg-C3NeQGSM.js";import"./SearchMd-BmF-Y8C_.js";import"./Shield01-BdVpW4u3.js";import"./Stars01-DtpzfCLb.js";import"./Trash01-C7w4wgyv.js";import"./Upload01-BwQI0tkZ.js";import"./User01-DXZUb8k_.js";import"./Users01-DHYvjTlW.js";import"./XClose-CG2kLlHe.js";import"./Zap-CLl4PoNB.js";import"./useInfiniteQuery-B2jR9hyr.js";import"./use-infinite-scroll-BpnF4fSC.js";import"./use-connection-DKzIht9f.js";import"./table-Bbb6DGd2.js";import"./empty-state-ZMMx_ggR.js";import"./use-members-Ce4XWWMv.js";import"./use-org-auth-client-DRVc-InE.js";import"./use-automations-DzhoYYdI.js";import"./useSuspenseInfiniteQuery-DsL0Dkz6.js";import"./avatar-B8TVDNq4.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-ZowOp1LZ.js";import"./monaco-editor-BQZURj6U.js";import"./spinner-BqZHGuGn.js";import"./types-CvTzc_Qh.js";import"./shell-layout-DM_yg8NE.js";import"./required-auth-layout-DOQ5Yy6_.js";import"./use-org-sso-C66hqVjQ.js";import"./integration-icon-1PiPsdgu.js";import"./use-navigate-to-agent-BWv7kruU.js";import"./chart-BWotToPV.js";import"./index-BZL6xWss.js";import"./form-Ci6fEfbw.js";import"./file-type-icon-BZq9FOyv.js";import"./drawer-gZY69Evm.js";import"./collection-search-CKF4vh-a.js";import"./tabs-BYw-M7nu.js";import"./toggle-group-BQGtS4X4.js";import"./super-agent-icon-D0imePiM.js";import"./self-tool-result-Cj0S2miF.js";import"./alert-dialog-BL9CUnhQ.js";import"./extract-connection-data-MtRIVNnL.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BNdqCz-8.js";import"./authenticate-and-persist-oauth-CRn8vZ5a.js";import"./mcp-oauth-6VKK9YCj.js";import"./track-Ce1UGjEO.js";import"./popover-BOChxGM-.js";import"./toolbar-vRaL8WnF.js";import"./github-repo-picker-C9sTEKuY.js";import"./use-mcp-tools-Dmty5VQY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-D0KOfMfB.js";import"./use-registry-connections-DtF-hSyP.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CmBeOMvY.js";import"./connection-form-helpers-DCsDAtJ5.js";import"./collection-tabs-Bl35q2wY.js";import"./badge-XOWpXFsB.js";import"./select-model-dMVafewK.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BZwhu1wh.js";import"./dropdown-menu-BBOt5jRY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV_bQ2MC.js";import"./use-file-configs-CIlcx97w.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-L8JjKxdU.js";import"./scroll-area-CBXFYBFg.js";import"./search-input-DIjZdQF_.js";import"./use-mcp-auth-status-iQxqyXeQ.js";import"./switch-BYKDkfxp.js";import"./use-secrets-CSyh1qfb.js";import"./AreaChart-32Qtz-eE.js";import"./config-D_UdMhgt.js";import"./breadcrumb-BFwQxBQP.js";import"./command-DIiqDY8s.js";import"./index--WXQrPpq.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DfKtJhjC.js";import"./automation-list-row-BkOEm1ne.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DPTbdSkw.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function ni(it){const t=pt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let $;t[4]!==Z?($=bt(Z),t[4]=Z,t[5]=$):$=t[5];const ot=$;let G;t[6]!==X||t[7]!==s?(G=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=G):G=t[8];const[o,tt]=gt(ot,G);let M;t[9]!==o||t[10]!==tt?(M=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=M):M=t[11];const m=M;let l;t[12]!==e?(l=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=l):l=t[13];let p;t[14]!==l?(p=r.jsx("span",{className:"text-sm font-medium",children:l}),t[14]=l,t[15]=p):p=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(yt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==p||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[p,a]}),t[19]=p,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let b;t[36]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=b):b=t[37];let y;t[38]!==n||t[39]!==h||t[40]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[38]=n,t[39]=h,t[40]=b,t[41]=y):y=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let g;t[46]!==e?(g=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=g):g=t[47];let E;t[48]!==m?(E=i=>m({to:i.target.value}),t[48]=m,t[49]=E):E=t[49];let P;t[50]!==o.to||t[51]!==g||t[52]!==E?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:g,onChange:E,className:"h-10"}),t[50]=o.to,t[51]=g,t[52]=E,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const lt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let _;t[70]!==R?(_=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=_):_=t[71];let I;t[72]!==e?(I=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=I):I=t[73];let K;t[74]!==I?(K=r.jsx(xt,{children:I}),t[74]=I,t[75]=K):K=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==_||t[79]!==K?(L=r.jsxs(ht,{value:lt,onValueChange:w,children:[_,K]}),t[76]=o.type,t[77]=w,t[78]=_,t[79]=K,t[80]=L):L=t[80];let Y;t[81]===Symbol.for("react.memo_cache_sentinel")?(Y=r.jsx("strong",{children:"Temporary"}),t[81]=Y):Y=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",Y," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let F;t[86]!==m?(F=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=F):F=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==F?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:F}),t[88]=o.discardQueryParameters,t[89]=F,t[90]=D):D=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==D||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[95]=D,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==y||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[98]=y,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{ni as RedirectEditor};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BLZVzCAN.js","assets/index-hm31ugsP.js","assets/index-DJSuP9VA.css","assets/Tool02-D26qiRWa.js","assets/CheckCircle-EPKsKkCI.js","assets/Settings02-BGe12x-0.js","assets/use-mcp-client-CX-OBmZf.js","assets/constants-dLUUoWH7.js","assets/auth-BBrRxGil.js","assets/useInfiniteQuery-B2jR9hyr.js","assets/use-infinite-scroll-BpnF4fSC.js","assets/badge-XOWpXFsB.js","assets/input-g7He7HnU.js","assets/dropdown-menu-BBOt5jRY.js","assets/Check-De5xbMZ_.js","assets/ChevronRight-eCyOlX7q.js","assets/DotsVertical-K-45hvkg.js","assets/table-Bbb6DGd2.js","assets/toggle-group-BQGtS4X4.js","assets/use-view-mode-C2M92OlF.js","assets/FilterLines-BRzgKNAI.js","assets/Globe01-CpKIMjw2.js","assets/SearchMd-BmF-Y8C_.js","assets/dialog-Bwbh5XkT.js","assets/AlertCircle-AuVMh5dI.js","assets/Download01-BKILAf-9.js","assets/Upload01-BwQI0tkZ.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BL9CUnhQ.js","assets/Trash01-C7w4wgyv.js","assets/label-wbLj9z7D.js","assets/select-CenhiY0i.js","assets/ChevronDown-D6sMb7w8.js","assets/ChevronUp-CU8wkfB6.js","assets/switch-BYKDkfxp.js","assets/textarea-CmBeOMvY.js","assets/ArrowLeft-qguukyWS.js","assets/XCircle-Cx-N-IGe.js","assets/checkbox-B9NW4zF5.js","assets/Eye-BIEDLA51.js","assets/LinkExternal01-PqQ-7e5z.js","assets/use-copy-ZowOp1LZ.js","assets/Copy01-CprinEfn.js","assets/Key01-CGwhy3oU.js","assets/Plus-BVETRe-R.js","assets/mcp-oauth-6VKK9YCj.js","assets/Play-CwsbwXLV.js"])))=>i.map(i=>d[i]);
2
+ import{c as i,j as e,r as s,k as a,bp as o}from"./index-hm31ugsP.js";import{R as n}from"./require-capability-vw_BGTby.js";import"./access-gate-tvnhE7IN.js";import"./capability-load-error-CiczIgA9.js";const c=s.lazy(()=>o(()=>import("./registry-layout-BLZVzCAN.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])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(n,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1,4 +1,4 @@
1
- import{c as Z,H as Ne,o as Ae,p as Ue,e as Pe,ac as Me,t as V,b as oe,r as q,j as t,B as Q,b7 as ge,k as Ye,n as te,av as Gs,a8 as Qs,a9 as Ys,ab as Ws,c9 as Js,ca as Zs}from"./index-kc-p0Tho.js";import{i as ss,a as ps,t as Xs,c as er,n as tr,b as sr}from"./Tool02-WBvKkURX.js";import{i as We}from"./CheckCircle-B5B8UVD6.js";import{s as Ft,b as rr,i as ir,a as nr}from"./Settings02-DE8fnfTk.js";import{u as Fe}from"./use-mcp-client-C2WpJqGp.js";import{S as Oe,W as or}from"./constants-dLUUoWH7.js";import{u as hs}from"./useInfiniteQuery-PqMaSXlJ.js";import{B as H}from"./badge-Db5xIffE.js";import{I as je}from"./input-CoA1YEYW.js";import{D as ft,a as Ie,b as yt,c as jt,j as rs,k as is,i as ar}from"./dropdown-menu-kAhQsmIq.js";import{c as $t,e as zt,a as Je,d as he,b as Ot,T as fe}from"./table-CNWQQ1ny.js";import{T as lr,a as ns}from"./toggle-group-9H7MENld.js";import{u as cr}from"./use-view-mode-Ce8VSwQi.js";import{i as Bt}from"./DotsVertical-veJCsKg6.js";import{i as dr}from"./FilterLines-DCFzTCRB.js";import{i as fs}from"./Globe01-CnIzUI9D.js";import{i as ur}from"./SearchMd-B7xHuJq4.js";import{e as vt,d as bt,b as Nt,h as Ct,a as wt,c as _t}from"./dialog-v9lm8kV3.js";import{i as st}from"./AlertCircle-COfoHlYo.js";import{n as mr}from"./Download01-BC66vxkd.js";import{i as os}from"./Upload01-CWR5PH57.js";import{g as ke,w as Pt}from"./metadata-dUsYcpuu.js";import{c as rt,d as it,b as nt,f as ot,g as at,e as lt,a as ct,A as dt}from"./alert-dialog-EuQzy5n4.js";import{s as ut}from"./Trash01-CiqyPob_.js";import{L as le}from"./label-COrU7OvG.js";import{S as gr,a as xr,b as pr,c as hr,d as qt}from"./select-DwECBvqm.js";import{S as Ge}from"./switch-CvaUzcu8.js";import{T as Rt}from"./textarea-CvXIGUrZ.js";import{i as fr}from"./ArrowLeft-DvfIRo1L.js";import{b as yr,i as jr,a as vr}from"./XCircle-BrD26F_t.js";import{t as br}from"./ChevronDown-DJW5HhkM.js";import{n as Nr}from"./ChevronUp-DOnt1lNa.js";import{C as as}from"./checkbox-YMTFrO1r.js";import{s as ys}from"./Eye-DhvNNTcF.js";import{n as Cr}from"./LinkExternal01-BmdVn0um.js";import{u as wr}from"./use-infinite-scroll-xFY_A5TW.js";import{u as Et}from"./use-copy-BrNQw893.js";import{i as Lt}from"./Check-CQfGOUkn.js";import{a as At}from"./Copy01-DT_VNucR.js";import{i as _r}from"./Key01-28MkH09O.js";import{s as Pr}from"./Plus-DEP38EYY.js";import{i as Rr,a as kr}from"./mcp-oauth-KDpSMvkd.js";import{i as Ir}from"./Play-DWeLA7lK.js";import"./auth-Ck-CYI0s.js";import"./ChevronRight-CdylS1le.js";const Ve="private-registry",Sr=`
1
+ import{c as Z,H as Ne,o as Ae,p as Ue,e as Pe,ac as Me,t as V,b as oe,r as q,j as t,B as Q,b7 as ge,k as Ye,n as te,av as Gs,a8 as Qs,a9 as Ys,ab as Ws,c9 as Js,ca as Zs}from"./index-hm31ugsP.js";import{i as ss,a as ps,t as Xs,c as er,n as tr,b as sr}from"./Tool02-D26qiRWa.js";import{i as We}from"./CheckCircle-EPKsKkCI.js";import{s as Ft,b as rr,i as ir,a as nr}from"./Settings02-BGe12x-0.js";import{u as Fe}from"./use-mcp-client-CX-OBmZf.js";import{S as Oe,W as or}from"./constants-dLUUoWH7.js";import{u as hs}from"./useInfiniteQuery-B2jR9hyr.js";import{B as H}from"./badge-XOWpXFsB.js";import{I as je}from"./input-g7He7HnU.js";import{D as ft,a as Ie,b as yt,c as jt,j as rs,k as is,i as ar}from"./dropdown-menu-BBOt5jRY.js";import{c as $t,e as zt,a as Je,d as he,b as Ot,T as fe}from"./table-Bbb6DGd2.js";import{T as lr,a as ns}from"./toggle-group-BQGtS4X4.js";import{u as cr}from"./use-view-mode-C2M92OlF.js";import{i as Bt}from"./DotsVertical-K-45hvkg.js";import{i as dr}from"./FilterLines-BRzgKNAI.js";import{i as fs}from"./Globe01-CpKIMjw2.js";import{i as ur}from"./SearchMd-BmF-Y8C_.js";import{e as vt,d as bt,b as Nt,h as Ct,a as wt,c as _t}from"./dialog-Bwbh5XkT.js";import{i as st}from"./AlertCircle-AuVMh5dI.js";import{n as mr}from"./Download01-BKILAf-9.js";import{i as os}from"./Upload01-BwQI0tkZ.js";import{g as ke,w as Pt}from"./metadata-dUsYcpuu.js";import{c as rt,d as it,b as nt,f as ot,g as at,e as lt,a as ct,A as dt}from"./alert-dialog-BL9CUnhQ.js";import{s as ut}from"./Trash01-C7w4wgyv.js";import{L as le}from"./label-wbLj9z7D.js";import{S as gr,a as xr,b as pr,c as hr,d as qt}from"./select-CenhiY0i.js";import{S as Ge}from"./switch-BYKDkfxp.js";import{T as Rt}from"./textarea-CmBeOMvY.js";import{i as fr}from"./ArrowLeft-qguukyWS.js";import{b as yr,i as jr,a as vr}from"./XCircle-Cx-N-IGe.js";import{t as br}from"./ChevronDown-D6sMb7w8.js";import{n as Nr}from"./ChevronUp-CU8wkfB6.js";import{C as as}from"./checkbox-B9NW4zF5.js";import{s as ys}from"./Eye-BIEDLA51.js";import{n as Cr}from"./LinkExternal01-PqQ-7e5z.js";import{u as wr}from"./use-infinite-scroll-BpnF4fSC.js";import{u as Et}from"./use-copy-ZowOp1LZ.js";import{i as Lt}from"./Check-De5xbMZ_.js";import{a as At}from"./Copy01-CprinEfn.js";import{i as _r}from"./Key01-CGwhy3oU.js";import{s as Pr}from"./Plus-BVETRe-R.js";import{i as Rr,a as kr}from"./mcp-oauth-6VKK9YCj.js";import{i as Ir}from"./Play-CwsbwXLV.js";import"./auth-BBrRxGil.js";import"./ChevronRight-eCyOlX7q.js";const Ve="private-registry",Sr=`
2
2
  You are an MCP tool tester running automated integration checks.
3
3
 
4
4
  Goal: