decocms 4.47.0 → 4.48.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 (226) hide show
  1. package/dist/client/assets/{AlertCircle-jHngK_2k.js → AlertCircle-BU14bQiZ.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-D8w3nQB-.js → ArrowUpRight-v2vghZgm.js} +1 -1
  3. package/dist/client/assets/{Check-DPt6MpHI.js → Check-LPaPEL9T.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-DWhaEeJj.js → CheckCircle-Do5A4bXQ.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-ChZbMzFq.js → ChevronDown-CQ4gU8z2.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-BARsItD4.js → ChevronRight-CnRZV29t.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-CaaMgtLs.js → ChevronUp-BG8Bf7p5.js} +1 -1
  8. package/dist/client/assets/{Circle-J28YrSDb.js → Circle-DpQfqGNp.js} +1 -1
  9. package/dist/client/assets/{Copy01-By_6Yiba.js → Copy01-a2D-JB5w.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-Ce-7y1LG.js → DotsVertical-D3ZNtEH2.js} +1 -1
  11. package/dist/client/assets/{Eye-CDPYZ_F7.js → Eye-BtY-LtDA.js} +1 -1
  12. package/dist/client/assets/{FilterLines-Dtmu01B2.js → FilterLines-SGzOlpxQ.js} +1 -1
  13. package/dist/client/assets/{Globe01-C_HbvILS.js → Globe01-BY6peDuZ.js} +1 -1
  14. package/dist/client/assets/{Globe04-B_i3srOA.js → Globe04-CDcU3Rla.js} +1 -1
  15. package/dist/client/assets/{HardDrive-BH4myWQz.js → HardDrive-KCGj9ORV.js} +1 -1
  16. package/dist/client/assets/{Key01-B4mFbb__.js → Key01-CYaFueTS.js} +1 -1
  17. package/dist/client/assets/{LayoutLeft-Cqfx37Ut.js → LayoutLeft-D-MMxE-M.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-BkF4Fznm.js → LinkExternal01-BC0gNEKt.js} +1 -1
  19. package/dist/client/assets/{List-_D9YTeJT.js → List-CgukfXbz.js} +1 -1
  20. package/dist/client/assets/{Loading02-Co1axo4f.js → Loading02-DiTs_Ka0.js} +1 -1
  21. package/dist/client/assets/{Monitor01-DCvw2Cwy.js → Monitor01-BwY7wiIv.js} +1 -1
  22. package/dist/client/assets/{Palette-nue3lCgC.js → Palette--eupxDrC.js} +1 -1
  23. package/dist/client/assets/{Play-B7eI58VD.js → Play-DFTwtpgp.js} +1 -1
  24. package/dist/client/assets/{Plus-GR-bv8hJ.js → Plus-DwiR3Oel.js} +1 -1
  25. package/dist/client/assets/{SearchLg-Bqu8EKAP.js → SearchLg-AGW59IHr.js} +1 -1
  26. package/dist/client/assets/{SearchMd-FoSdKAhE.js → SearchMd--hdVzTWj.js} +1 -1
  27. package/dist/client/assets/{Settings02-BCI3mRem.js → Settings02-Oy0H9TJU.js} +1 -1
  28. package/dist/client/assets/{Shield01-CswNXcXi.js → Shield01-Dey8R0Wt.js} +1 -1
  29. package/dist/client/assets/{Star01-DGTOweBk.js → Star01-DqcYLdUP.js} +1 -1
  30. package/dist/client/assets/{Stars01-CF9aShjn.js → Stars01-B0ITotZ-.js} +1 -1
  31. package/dist/client/assets/{Stars02-rWYWTPbT.js → Stars02-BlSWe2aV.js} +1 -1
  32. package/dist/client/assets/{Sun-BqeFoqsp.js → Sun-Do6OumKk.js} +1 -1
  33. package/dist/client/assets/{SwitchHorizontal01-D_Lg8Pdw.js → SwitchHorizontal01-DgM-zlmP.js} +1 -1
  34. package/dist/client/assets/{Tool01-BoMW-74O.js → Tool01-DGCgIeuK.js} +1 -1
  35. package/dist/client/assets/{Trash01-CJBGMFUr.js → Trash01-D8-5OV_e.js} +1 -1
  36. package/dist/client/assets/{Upload01-D4_hGmHb.js → Upload01-C7AAyyjR.js} +1 -1
  37. package/dist/client/assets/{User01-DU_uGH_W.js → User01-urWS5dkH.js} +1 -1
  38. package/dist/client/assets/{Users01-DOVfCuli.js → Users01-BqhN-P8L.js} +1 -1
  39. package/dist/client/assets/{Users03-D_lI60oH.js → Users03-BcVoCg35.js} +1 -1
  40. package/dist/client/assets/{X-BRdI6jdZ.js → X-CUDnp4kZ.js} +1 -1
  41. package/dist/client/assets/{XCircle-oP3gBlv9.js → XCircle-ByhSsmxa.js} +1 -1
  42. package/dist/client/assets/{XClose-BJqR4GN_.js → XClose-92KTkAwb.js} +1 -1
  43. package/dist/client/assets/{Zap-Do67by1P.js → Zap-CMyUhB1o.js} +1 -1
  44. package/dist/client/assets/{ZapSquare-Cf2t6ReV.js → ZapSquare-BRty9AYq.js} +1 -1
  45. package/dist/client/assets/{ZoomOut-CU9l5B_e.js → ZoomOut-C5AyvbVI.js} +1 -1
  46. package/dist/client/assets/{access-gate-DvCXTiDI.js → access-gate-Bq9SHYIN.js} +1 -1
  47. package/dist/client/assets/{add-section-modal-D3CsTUlX.js → add-section-modal-gExEkBw0.js} +1 -1
  48. package/dist/client/assets/{agent-capabilities-D7H27yjt.js → agent-capabilities-IENdHeWA.js} +1 -1
  49. package/dist/client/assets/{agent-icon-CRmAHV-N.js → agent-icon-BRhNodUp.js} +1 -1
  50. package/dist/client/assets/{agents-list-kp-RmYIr.js → agents-list-B5aZbRnn.js} +1 -1
  51. package/dist/client/assets/{ai-providers-CqQcgkeY.js → ai-providers-CEd0zcVP.js} +1 -1
  52. package/dist/client/assets/{alert-XdEAROR-.js → alert-BwO9tTP6.js} +1 -1
  53. package/dist/client/assets/{alert-dialog-Dsk4YPlr.js → alert-dialog-BaxqLdqZ.js} +3 -3
  54. package/dist/client/assets/{app-editor-CoSaXuEY.js → app-editor-BzLD65KJ.js} +1 -1
  55. package/dist/client/assets/{auth-IU-LL4Cm.js → auth-BYd3Adar.js} +1 -1
  56. package/dist/client/assets/{auth-catchall-B44VNBAy.js → auth-catchall-9eibLEi_.js} +1 -1
  57. package/dist/client/assets/{auth-entry-DS337RS9.js → auth-entry-Ck2obNK6.js} +1 -1
  58. package/dist/client/assets/{auth-split-layout-BVmR5SX1.js → auth-split-layout-kOHLhMBc.js} +1 -1
  59. package/dist/client/assets/{authenticate-and-persist-oauth-C5XFvSjk.js → authenticate-and-persist-oauth-D24b13QS.js} +1 -1
  60. package/dist/client/assets/{automation-list-row-DRa2zTvp.js → automation-list-row-CwNfc4BJ.js} +1 -1
  61. package/dist/client/assets/{automation-runs-DWNTI2Fo.js → automation-runs-Bz_unH7M.js} +2 -2
  62. package/dist/client/assets/{automations-hcL6kM4n.js → automations-BT9Tl2IT.js} +1 -1
  63. package/dist/client/assets/{autosend-RLWgVx-o.js → autosend-B57nQVt9.js} +1 -1
  64. package/dist/client/assets/{avatar-Dwi1UBBW.js → avatar-CWM4obRf.js} +1 -1
  65. package/dist/client/assets/{badge-c_-6up7u.js → badge-3HoWdSCw.js} +1 -1
  66. package/dist/client/assets/{block-document-D-rZDRFs.js → block-document-B3G3VFxe.js} +1 -1
  67. package/dist/client/assets/{brand-context-e2rjq22-.js → brand-context-DjT56GiN.js} +1 -1
  68. package/dist/client/assets/{breadcrumb-Dmcr3rK4.js → breadcrumb-CDMzapNU.js} +1 -1
  69. package/dist/client/assets/{buckets-D0-Un0Wv.js → buckets-DusM3XEM.js} +1 -1
  70. package/dist/client/assets/{bulk-category-panel-CYsZefmP.js → bulk-category-panel-Dpr_4nVy.js} +1 -1
  71. package/dist/client/assets/{calendar-BaijU_6w.js → calendar-BoKJIhDn.js} +1 -1
  72. package/dist/client/assets/{capability-load-error-xP7oIUBl.js → capability-load-error-B6IlBcXy.js} +1 -1
  73. package/dist/client/assets/{card-DcntvNbs.js → card-Dn-X5_qZ.js} +1 -1
  74. package/dist/client/assets/{category-editor-DZbD6GhJ.js → category-editor-MKqT5L0M.js} +1 -1
  75. package/dist/client/assets/{chat-context-DBR7DMwi.js → chat-context-CuUtzUxN.js} +6 -6
  76. package/dist/client/assets/{checkbox-BtCJ_dYC.js → checkbox-OoxHRAIC.js} +1 -1
  77. package/dist/client/assets/{cli-auth-success-BMSUTp1b.js → cli-auth-success-BlGRBXan.js} +1 -1
  78. package/dist/client/assets/collection-detail-Ey316Bjl.js +1 -0
  79. package/dist/client/assets/{collection-display-button-PtPJp4ay.js → collection-display-button-1NwE7h2v.js} +1 -1
  80. package/dist/client/assets/{collection-search-H-6ueJuB.js → collection-search-CYvfVN5j.js} +1 -1
  81. package/dist/client/assets/{collection-table-wrapper-DbV-efXa.js → collection-table-wrapper-DqftunrZ.js} +1 -1
  82. package/dist/client/assets/{collection-tabs-DL3wGG4Q.js → collection-tabs-CmzqLC7G.js} +1 -1
  83. package/dist/client/assets/{command-eCAI6FTM.js → command-Cs_FT5uh.js} +1 -1
  84. package/dist/client/assets/{commerce-onboarding-m8TfQpn2.js → commerce-onboarding-BJJQ3wrh.js} +1 -1
  85. package/dist/client/assets/{connect-desktop-dialog-DU0BhMYM.js → connect-desktop-dialog-D4-OAuGK.js} +1 -1
  86. package/dist/client/assets/{connection-card-4lCkKCGC.js → connection-card-D_mm_HDA.js} +1 -1
  87. package/dist/client/assets/{connection-detail-BQM46tHx.js → connection-detail-Cis22PYd.js} +1 -1
  88. package/dist/client/assets/{connection-form-helpers-CekFWaLd.js → connection-form-helpers-CNLvao3W.js} +1 -1
  89. package/dist/client/assets/{connections-BOYTybCl.js → connections-kuE1BHW5.js} +1 -1
  90. package/dist/client/assets/{decopilot-sse-pool-B3U3z3yw.js → decopilot-sse-pool-CyzHYifl.js} +1 -1
  91. package/dist/client/assets/{dialog-Dj1Kb9Q8.js → dialog-CMpHcaDT.js} +1 -1
  92. package/dist/client/assets/{domain-settings-IIhf92sY.js → domain-settings-ly69Lfwu.js} +1 -1
  93. package/dist/client/assets/{drawer-DM5tr-Zo.js → drawer-CWJ_7maH.js} +1 -1
  94. package/dist/client/assets/{dropdown-menu-XsnNulK0.js → dropdown-menu-BRWSOCnY.js} +1 -1
  95. package/dist/client/assets/{empty-state-4VLxUdrM.js → empty-state-BFLgyxqT.js} +1 -1
  96. package/dist/client/assets/{extract-connection-data-ByK-FKTi.js → extract-connection-data-MusN6Gn3.js} +1 -1
  97. package/dist/client/assets/{file-explorer-WXkqje1c.js → file-explorer-Dzb8LxOl.js} +2 -2
  98. package/dist/client/assets/{file-type-icon--BCo4RiN.js → file-type-icon-B9HBQ2xz.js} +1 -1
  99. package/dist/client/assets/{files-d4TsygfJ.js → files-B6veiy4q.js} +1 -1
  100. package/dist/client/assets/{form-1YnYoqnu.js → form-DBwlnkBF.js} +1 -1
  101. package/dist/client/assets/{general-DoDuNERn.js → general-DbRKmq2g.js} +1 -1
  102. package/dist/client/assets/{github-repo-picker-CPMy60PD.js → github-repo-picker-CtJVZFVj.js} +1 -1
  103. package/dist/client/assets/{hooks-NK9DOKJY.js → hooks-Daw6wCvk.js} +1 -1
  104. package/dist/client/assets/{index-0S4oS7H7.js → index-BB4hosnn.js} +1 -1
  105. package/dist/client/assets/index-BIKmJ3Nr.js +217 -0
  106. package/dist/client/assets/{index-B0oIEqul.js → index-BOK6FIrS.js} +3 -3
  107. package/dist/client/assets/{index-DtqkPm7S.js → index-BdxG9zIa.js} +1 -1
  108. package/dist/client/assets/{index-Bn4Xt5vi.js → index-BzyqQfFe.js} +1 -1
  109. package/dist/client/assets/{index-DgnS6DAZ.js → index-C3N62ppi.js} +1 -1
  110. package/dist/client/assets/{index-BN34SGve.js → index-CH9EZ8Nx.js} +14 -14
  111. package/dist/client/assets/index-CJ8_7qzi.css +1 -0
  112. package/dist/client/assets/{index-BvuSTeuG.js → index-CJwuGivG.js} +1 -1
  113. package/dist/client/assets/{index-6Ak425w5.js → index-D2AF1vUU.js} +1 -1
  114. package/dist/client/assets/{index-BEoC5Y8_.js → index-DKhV9HVo.js} +1 -1
  115. package/dist/client/assets/{index-CMtQwKwf.js → index-Dk_RC5v2.js} +1 -1
  116. package/dist/client/assets/{index-qeOHbNip.js → index-DmSu0uR-.js} +1 -1
  117. package/dist/client/assets/{index-VDMNCr7e.js → index-UkWY3CB2.js} +1 -1
  118. package/dist/client/assets/{index-CNbN_Slw.js → index-YwKi7Flg.js} +6 -6
  119. package/dist/client/assets/{index-redirect-ClTEvW53.js → index-redirect-B0RPY5V2.js} +1 -1
  120. package/dist/client/assets/{input-ThAiLSAs.js → input-DtVvcTPe.js} +1 -1
  121. package/dist/client/assets/{integration-icon-B-jH-rp4.js → integration-icon-Bv-jmTZs.js} +1 -1
  122. package/dist/client/assets/{invite-member-dialog-DZArcaNA.js → invite-member-dialog-DUIj1UlP.js} +1 -1
  123. package/dist/client/assets/{label-C8NNmRdQ.js → label-Bu3AIS2R.js} +1 -1
  124. package/dist/client/assets/{login-DogmiYW5.js → login-D_XVUbVX.js} +1 -1
  125. package/dist/client/assets/{mcp-oauth-DRXaSqrf.js → mcp-oauth-BjdG12-c.js} +1 -1
  126. package/dist/client/assets/{members-BROaCY-a.js → members-B9Pu22BD.js} +1 -1
  127. package/dist/client/assets/{monaco-editor-BeduV2k8.js → monaco-editor-9bGTjzkm.js} +2 -2
  128. package/dist/client/assets/{monitoring-stats-row-DNmIZfAL.js → monitoring-stats-row-Djc43OSZ.js} +1 -1
  129. package/dist/client/assets/{oauth-callback-DM5RaIha.js → oauth-callback-DIW2_i1T.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-ai-provider-B_tXtwGz.js → oauth-callback-ai-provider-B1n9DDCe.js} +1 -1
  131. package/dist/client/assets/{onboarding-BFYhKh1i.js → onboarding-jkQERxvZ.js} +1 -1
  132. package/dist/client/assets/{org-install-B4ry5Izx.js → org-install-waqi2Knv.js} +1 -1
  133. package/dist/client/assets/{org-layout-DoOl0hgp.js → org-layout-DJ1GrDL7.js} +1 -1
  134. package/dist/client/assets/{organization-choice-lAjJ8VFV.js → organization-choice-B6UMju8r.js} +1 -1
  135. package/dist/client/assets/page-seo-sheet-BrSWoIbu.js +1 -0
  136. package/dist/client/assets/{popover-R4QxfxyC.js → popover-BU7pjRBm.js} +1 -1
  137. package/dist/client/assets/{post-editor-DRELQ25T.js → post-editor-DQVCXlSi.js} +1 -1
  138. package/dist/client/assets/{primitives-CsdaSRIF.js → primitives-CUkZpQa4.js} +1 -1
  139. package/dist/client/assets/{profile-BHtL4157.js → profile-BKp6VgpU.js} +1 -1
  140. package/dist/client/assets/project-app-view-Bbg6gcHA.js +1 -0
  141. package/dist/client/assets/record-editor-CIK23g9Y.js +1 -0
  142. package/dist/client/assets/registry-jgarpliy.js +2 -0
  143. package/dist/client/assets/{registry-layout-CXxScbwG.js → registry-layout-c83vGU7n.js} +1 -1
  144. package/dist/client/assets/{require-capability-DbiFhSbt.js → require-capability-vKvQ1Zur.js} +1 -1
  145. package/dist/client/assets/{required-auth-layout-BZeDDaEI.js → required-auth-layout-7cZ5cfUT.js} +1 -1
  146. package/dist/client/assets/{reset-password-t3JR_1lw.js → reset-password-iMPMC_Vf.js} +1 -1
  147. package/dist/client/assets/{roles-D_mUyZQP.js → roles-D5rfuOhe.js} +1 -1
  148. package/dist/client/assets/{search-input-DVzPXclI.js → search-input-BVZJ7x1G.js} +1 -1
  149. package/dist/client/assets/{secrets-B8PGjVTV.js → secrets-DfoRUReE.js} +1 -1
  150. package/dist/client/assets/{sections-editor-DlG-QmjK.js → sections-editor-fNpzrCO9.js} +2 -2
  151. package/dist/client/assets/{select-C1hgApzR.js → select-DzLNnT6O.js} +1 -1
  152. package/dist/client/assets/{select-model-u3wkjGSC.js → select-model-Dky0hK-_.js} +1 -1
  153. package/dist/client/assets/seo-editor-6yvKKD56.js +1 -0
  154. package/dist/client/assets/seo-save-VonRqAwI.js +1 -0
  155. package/dist/client/assets/{settings-layout-D7tgO0MB.js → settings-layout-CggR46xX.js} +1 -1
  156. package/dist/client/assets/{settings-section-CxfBH_vJ.js → settings-section-CBqjvdGu.js} +1 -1
  157. package/dist/client/assets/{shell-controls-C8oNIpcn.js → shell-controls-D1Zj4TDx.js} +1 -1
  158. package/dist/client/assets/{shell-layout-Nsyo_6T6.js → shell-layout-DJKTlJdJ.js} +1 -1
  159. package/dist/client/assets/{sidebar-OLIv3b_I.js → sidebar-FGH25wo8.js} +1 -1
  160. package/dist/client/assets/{skeleton-BTBpfanm.js → skeleton-Cug1_sp1.js} +1 -1
  161. package/dist/client/assets/{sso-BY25BlGc.js → sso-CswyYIc4.js} +1 -1
  162. package/dist/client/assets/{store-BpvuVYyx.js → store-BAdH7Xgb.js} +1 -1
  163. package/dist/client/assets/store-registry-BrOdndgf.js +2 -0
  164. package/dist/client/assets/{studio-tools-gTyvcgm4.js → studio-tools-D3YWcmj3.js} +1 -1
  165. package/dist/client/assets/{switch-B1HbMeyP.js → switch-DpTcz2DZ.js} +1 -1
  166. package/dist/client/assets/tab-id-bb-jjgGv.js +1 -0
  167. package/dist/client/assets/{table-DQUTn-bu.js → table-CN_uvHcv.js} +1 -1
  168. package/dist/client/assets/{tabs-MjdOZLa3.js → tabs-DTL4ZTIk.js} +1 -1
  169. package/dist/client/assets/{textarea-CM65RqNU.js → textarea-CfkvU0G9.js} +1 -1
  170. package/dist/client/assets/{toggle-group-DGRj3JAt.js → toggle-group-C6twzI1Z.js} +1 -1
  171. package/dist/client/assets/{toolbar-DJAA-E0J.js → toolbar-CyMY3ln_.js} +1 -1
  172. package/dist/client/assets/{toolbar-icon-button-DCtMlybo.js → toolbar-icon-button-D5HhZjT8.js} +1 -1
  173. package/dist/client/assets/{tools-list-DMGNEzZx.js → tools-list-joMTrI0C.js} +1 -1
  174. package/dist/client/assets/{tooltip-Czrpj8yv.js → tooltip-stVZuZna.js} +1 -1
  175. package/dist/client/assets/{types-BICwIYnk.js → types-BrihpTAy.js} +3 -3
  176. package/dist/client/assets/{use-ai-providers-B8zLKeF6.js → use-ai-providers-CVkRovF1.js} +1 -1
  177. package/dist/client/assets/{use-automations-CFBtavxS.js → use-automations-2Glp9-j7.js} +1 -1
  178. package/dist/client/assets/{use-capability-84CnT0k6.js → use-capability-EQTheMSX.js} +1 -1
  179. package/dist/client/assets/{use-clock-tick-DV8wCVZX.js → use-clock-tick-D9CWlgud.js} +1 -1
  180. package/dist/client/assets/{use-collections-CusyOsdO.js → use-collections-CUeK8mw_.js} +1 -1
  181. package/dist/client/assets/{use-connection-DtSJ9mTd.js → use-connection-BZYZrML5.js} +1 -1
  182. package/dist/client/assets/{use-copy-Bbgt8pmD.js → use-copy-D9INHQEi.js} +1 -1
  183. package/dist/client/assets/{use-create-virtual-mcp-llNMH19T.js → use-create-virtual-mcp-Cew_mu7V.js} +1 -1
  184. package/dist/client/assets/{use-debounced-autosave-5jhgoJ4-.js → use-debounced-autosave-5jb2X7qO.js} +1 -1
  185. package/dist/client/assets/{use-debounced-value-BCO2x0Vy.js → use-debounced-value-Cz-X-J1K.js} +1 -1
  186. package/dist/client/assets/{use-decopilot-events-BQsTvjkq.js → use-decopilot-events-DA0RDyGZ.js} +1 -1
  187. package/dist/client/assets/{use-delete-connection-CPIbk6aN.js → use-delete-connection-D5XweDLz.js} +1 -1
  188. package/dist/client/assets/{use-file-configs-DtJ2WTQK.js → use-file-configs-C7EivhVD.js} +1 -1
  189. package/dist/client/assets/{use-infinite-scroll-BB_MQ65c.js → use-infinite-scroll-DntDy4sL.js} +1 -1
  190. package/dist/client/assets/{use-join-requests-2i70TO3O.js → use-join-requests-BcMGsxog.js} +1 -1
  191. package/dist/client/assets/{use-mcp-client-DtLTcXNV.js → use-mcp-client-BOUowLdo.js} +1 -1
  192. package/dist/client/assets/{use-mcp-prompts-HFF2x-r-.js → use-mcp-prompts-Bl_b_Hx-.js} +1 -1
  193. package/dist/client/assets/{use-mcp-tools-Dlm_EhPS.js → use-mcp-tools-B1lso4A_.js} +1 -1
  194. package/dist/client/assets/{use-members-BuVoZflZ.js → use-members-Be5QWWLt.js} +1 -1
  195. package/dist/client/assets/{use-mobile-BVVcmFCB.js → use-mobile-hfgWeQEp.js} +1 -1
  196. package/dist/client/assets/{use-navigate-to-agent-Cngk2F9W.js → use-navigate-to-agent-B-S3APd4.js} +1 -1
  197. package/dist/client/assets/{use-org-auth-client-Do9HlKkb.js → use-org-auth-client-DpLcQRPx.js} +1 -1
  198. package/dist/client/assets/{use-org-sso-Du3QlfIy.js → use-org-sso-C28MSl96.js} +1 -1
  199. package/dist/client/assets/{use-organization-roles-DqnUYIn6.js → use-organization-roles-DTrpgxNw.js} +1 -1
  200. package/dist/client/assets/{use-organization-settings-uG0RsbfN.js → use-organization-settings-BwPQ6hVt.js} +1 -1
  201. package/dist/client/assets/{use-registry-connections-BH3L7f2H.js → use-registry-connections-CDmALAOb.js} +1 -1
  202. package/dist/client/assets/{use-secrets-DXnvfOWh.js → use-secrets-BmOvjKW7.js} +1 -1
  203. package/dist/client/assets/{use-status-sounds-B5e-6jp_.js → use-status-sounds-cBS0pfDF.js} +1 -1
  204. package/dist/client/assets/{use-view-mode-BKb17Hp6.js → use-view-mode-W_Rx6Pqo.js} +1 -1
  205. package/dist/client/assets/{use-virtual-mcp-DJGCUI5r.js → use-virtual-mcp-DWzUT40s.js} +1 -1
  206. package/dist/client/assets/useInfiniteQuery-_ypuPi-w.js +1 -0
  207. package/dist/client/assets/useSuspenseInfiniteQuery-B-qWrUhY.js +1 -0
  208. package/dist/client/assets/{variant-calendar-Hae2D7H9.js → variant-calendar-CCTJPAL5.js} +1 -1
  209. package/dist/client/assets/{view-mode-toggle-BA3koDUE.js → view-mode-toggle-b6Z7dUlP.js} +1 -1
  210. package/dist/client/index.html +2 -2
  211. package/dist/server/cli.js +1 -1
  212. package/dist/server/server.js +1 -1
  213. package/package.json +1 -1
  214. package/dist/client/assets/collection-detail-BE4Sh4xR.js +0 -1
  215. package/dist/client/assets/index-C4AM99kK.js +0 -217
  216. package/dist/client/assets/index-DhHJ9QL9.css +0 -1
  217. package/dist/client/assets/page-seo-form-kZ8CBfCH.js +0 -1
  218. package/dist/client/assets/page-seo-sheet-D9vyktBh.js +0 -1
  219. package/dist/client/assets/project-app-view-DRV-aqQ_.js +0 -1
  220. package/dist/client/assets/record-editor-Dl6WqvGN.js +0 -1
  221. package/dist/client/assets/registry-DWsUD6Eq.js +0 -2
  222. package/dist/client/assets/seo-editor-L6fH8tCE.js +0 -1
  223. package/dist/client/assets/store-registry-Dg4Q3pQR.js +0 -2
  224. package/dist/client/assets/tab-id-DAJ8K7VA.js +0 -1
  225. package/dist/client/assets/useInfiniteQuery-DHHxh8eV.js +0 -1
  226. package/dist/client/assets/useSuspenseInfiniteQuery-D9c8waFp.js +0 -1
@@ -1 +1 @@
1
- import{c as J,j as t,B as Z}from"./index-BN34SGve.js";import{n as ee}from"./LinkExternal01-BkF4Fznm.js";import{aH as te,a as oe}from"./agent-icon-CRmAHV-N.js";import{I as q}from"./input-ThAiLSAs.js";import{L as G}from"./label-C8NNmRdQ.js";import{a1 as ie}from"./automation-runs-DWNTI2Fo.js";import{b as Q,c as se,T as W,a as le}from"./tabs-MjdOZLa3.js";import{T as re}from"./textarea-CM65RqNU.js";import{aH as ae,aI as me,aG as pe,aJ as ne,aK as ce,aL as de,aM as fe}from"./index-C4AM99kK.js";import{b as ue,a as xe,B as he}from"./block-document-D-rZDRFs.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-CsdaSRIF.js";import"./AlertCircle-jHngK_2k.js";import"./Tool01-BoMW-74O.js";import"./SwitchHorizontal01-D_Lg8Pdw.js";import"./Settings02-BCI3mRem.js";import"./XCircle-oP3gBlv9.js";import"./ArrowUpRight-D8w3nQB-.js";import"./ZapSquare-Cf2t6ReV.js";import"./Users03-D_lI60oH.js";import"./Loading02-Co1axo4f.js";import"./CheckCircle-DWhaEeJj.js";import"./Check-DPt6MpHI.js";import"./ChevronDown-ChZbMzFq.js";import"./ChevronRight-BARsItD4.js";import"./ChevronUp-CaaMgtLs.js";import"./Circle-J28YrSDb.js";import"./Stars02-rWYWTPbT.js";import"./Copy01-By_6Yiba.js";import"./ZoomOut-CU9l5B_e.js";import"./DotsVertical-Ce-7y1LG.js";import"./Globe01-C_HbvILS.js";import"./Eye-CDPYZ_F7.js";import"./FilterLines-Dtmu01B2.js";import"./Star01-DGTOweBk.js";import"./Globe04-B_i3srOA.js";import"./HardDrive-BH4myWQz.js";import"./Key01-B4mFbb__.js";import"./LayoutLeft-Cqfx37Ut.js";import"./List-_D9YTeJT.js";import"./Monitor01-DCvw2Cwy.js";import"./Sun-BqeFoqsp.js";import"./Palette-nue3lCgC.js";import"./Play-B7eI58VD.js";import"./Plus-GR-bv8hJ.js";import"./SearchLg-Bqu8EKAP.js";import"./SearchMd-FoSdKAhE.js";import"./Shield01-CswNXcXi.js";import"./Stars01-CF9aShjn.js";import"./Trash01-CJBGMFUr.js";import"./Upload01-D4_hGmHb.js";import"./User01-DU_uGH_W.js";import"./Users01-DOVfCuli.js";import"./XClose-BJqR4GN_.js";import"./X-BRdI6jdZ.js";import"./Zap-Do67by1P.js";import"./select-C1hgApzR.js";import"./tooltip-Czrpj8yv.js";import"./useInfiniteQuery-DHHxh8eV.js";import"./use-infinite-scroll-BB_MQ65c.js";import"./use-connection-DtSJ9mTd.js";import"./use-collections-CusyOsdO.js";import"./use-mcp-client-DtLTcXNV.js";import"./constants-B72Xmt_K.js";import"./auth-IU-LL4Cm.js";import"./use-virtual-mcp-DJGCUI5r.js";import"./card-DcntvNbs.js";import"./sidebar-OLIv3b_I.js";import"./use-mobile-BVVcmFCB.js";import"./table-DQUTn-bu.js";import"./empty-state-4VLxUdrM.js";import"./use-members-BuVoZflZ.js";import"./use-org-auth-client-Do9HlKkb.js";import"./use-clock-tick-DV8wCVZX.js";import"./use-automations-CFBtavxS.js";import"./studio-tools-gTyvcgm4.js";import"./useSuspenseInfiniteQuery-D9c8waFp.js";import"./badge-c_-6up7u.js";import"./checkbox-BtCJ_dYC.js";import"./command-eCAI6FTM.js";import"./index-BEoC5Y8_.js";import"./dialog-Dj1Kb9Q8.js";import"./popover-R4QxfxyC.js";import"./avatar-Dwi1UBBW.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Bbgt8pmD.js";import"./file-type-icon--BCo4RiN.js";import"./tab-id-DAJ8K7VA.js";import"./monaco-editor-BeduV2k8.js";import"./index-B0oIEqul.js";import"./chat-context-DBR7DMwi.js";import"./autosend-RLWgVx-o.js";import"./hooks-NK9DOKJY.js";import"./decopilot-sse-pool-B3U3z3yw.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-B8zLKeF6.js";import"./use-decopilot-events-BQsTvjkq.js";import"./use-organization-settings-uG0RsbfN.js";import"./types-BICwIYnk.js";import"./shell-layout-Nsyo_6T6.js";import"./alert-dialog-Dsk4YPlr.js";import"./required-auth-layout-BZeDDaEI.js";import"./use-org-sso-Du3QlfIy.js";import"./integration-icon-B-jH-rp4.js";import"./use-navigate-to-agent-Cngk2F9W.js";import"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-prompts-HFF2x-r-.js";import"./form-1YnYoqnu.js";import"./drawer-DM5tr-Zo.js";import"./collection-search-H-6ueJuB.js";import"./toggle-group-DGRj3JAt.js";import"./agent-capabilities-D7H27yjt.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-4lCkKCGC.js";import"./use-registry-connections-BH3L7f2H.js";import"./extract-connection-data-ByK-FKTi.js";import"./collection-tabs-DL3wGG4Q.js";import"./connection-form-helpers-CekFWaLd.js";import"./authenticate-and-persist-oauth-C5XFvSjk.js";import"./mcp-oauth-DRXaSqrf.js";import"./connect-desktop-dialog-DU0BhMYM.js";import"./select-model-u3wkjGSC.js";import"./skeleton-BTBpfanm.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CxfBH_vJ.js";import"./dropdown-menu-XsnNulK0.js";import"./index-CNbN_Slw.js";import"./toolbar-DJAA-E0J.js";import"./use-debounced-value-BCO2x0Vy.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-B5e-6jp_.js";import"./use-mcp-tools-Dlm_EhPS.js";import"./use-capability-84CnT0k6.js";import"./tools-list-DMGNEzZx.js";import"./switch-B1HbMeyP.js";import"./use-debounced-autosave-5jhgoJ4-.js";import"./index-Bn4Xt5vi.js";import"./search-input-DVzPXclI.js";import"./github-repo-picker-CPMy60PD.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-DXnvfOWh.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-0S4oS7H7.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BaijU_6w.js";import"./toolbar-icon-button-DCtMlybo.js";import"./use-file-configs-DtJ2WTQK.js";import"./automation-list-row-DRa2zTvp.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function di(A){const e=J.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:ne(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=ge(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,Y)=>_({...r,[T]:Y}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=ue({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(pe,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let I;e[40]!==L||e[41]!==R?(I=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=I):I=e[42];let H;e[43]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=H):H=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[H,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let U;e[45]!==r.sections?(U=xe(r.sections),e[45]=r.sections,e[46]=U):U=e[46];let $;e[47]!==h?($=T=>h("sections",T),e[47]=h,e[48]=$):$=e[48];let M;e[49]!==u||e[50]!==U||e[51]!==$?(M=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:U,onChange:$,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=U,e[51]=$,e[52]=M):M=e[52];let D;e[53]!==m||e[54]!==r||e[55]!==h?(D=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=D):D=e[56];let V;e[57]!==M||e[58]!==D?(V=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,D]}),e[57]=M,e[58]=D,e[59]=V):V=e[59];let z;e[60]!==I||e[61]!==V?(z=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:[I,V]})}),e[60]=I,e[61]=V,e[62]=z):z=e[62];let O;return e[63]!==v||e[64]!==z?(O=t.jsxs("div",{className:"flex h-full flex-col",children:[v,z]}),e[63]=v,e[64]=z,e[65]=O):O=e[65],O}function Ce(A){const e=J.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(q,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(fe,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ce,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(X,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(X,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=J.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(G,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(q,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(q,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(je,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=J.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=de(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(G,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{di as PostEditor};
1
+ import{c as J,j as t,B as Z}from"./index-CH9EZ8Nx.js";import{n as ee}from"./LinkExternal01-BC0gNEKt.js";import{aH as te,a as oe}from"./agent-icon-BRhNodUp.js";import{I as q}from"./input-DtVvcTPe.js";import{L as G}from"./label-Bu3AIS2R.js";import{a1 as ie}from"./automation-runs-Bz_unH7M.js";import{b as Q,c as se,T as W,a as le}from"./tabs-DTL4ZTIk.js";import{T as re}from"./textarea-CfkvU0G9.js";import{aH as ae,aI as me,aG as pe,aJ as ne,aK as ce,aL as de,aM as fe}from"./index-BIKmJ3Nr.js";import{b as ue,a as xe,B as he}from"./block-document-B3G3VFxe.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-CUkZpQa4.js";import"./AlertCircle-BU14bQiZ.js";import"./Tool01-DGCgIeuK.js";import"./SwitchHorizontal01-DgM-zlmP.js";import"./Settings02-Oy0H9TJU.js";import"./XCircle-ByhSsmxa.js";import"./ArrowUpRight-v2vghZgm.js";import"./ZapSquare-BRty9AYq.js";import"./Users03-BcVoCg35.js";import"./Loading02-DiTs_Ka0.js";import"./CheckCircle-Do5A4bXQ.js";import"./Check-LPaPEL9T.js";import"./ChevronDown-CQ4gU8z2.js";import"./ChevronRight-CnRZV29t.js";import"./ChevronUp-BG8Bf7p5.js";import"./Circle-DpQfqGNp.js";import"./Stars02-BlSWe2aV.js";import"./Copy01-a2D-JB5w.js";import"./ZoomOut-C5AyvbVI.js";import"./DotsVertical-D3ZNtEH2.js";import"./Globe01-BY6peDuZ.js";import"./Eye-BtY-LtDA.js";import"./FilterLines-SGzOlpxQ.js";import"./Star01-DqcYLdUP.js";import"./Globe04-CDcU3Rla.js";import"./HardDrive-KCGj9ORV.js";import"./Key01-CYaFueTS.js";import"./LayoutLeft-D-MMxE-M.js";import"./List-CgukfXbz.js";import"./Monitor01-BwY7wiIv.js";import"./Sun-Do6OumKk.js";import"./Palette--eupxDrC.js";import"./Play-DFTwtpgp.js";import"./Plus-DwiR3Oel.js";import"./SearchLg-AGW59IHr.js";import"./SearchMd--hdVzTWj.js";import"./Shield01-Dey8R0Wt.js";import"./Stars01-B0ITotZ-.js";import"./Trash01-D8-5OV_e.js";import"./Upload01-C7AAyyjR.js";import"./User01-urWS5dkH.js";import"./Users01-BqhN-P8L.js";import"./XClose-92KTkAwb.js";import"./X-CUDnp4kZ.js";import"./Zap-CMyUhB1o.js";import"./select-DzLNnT6O.js";import"./tooltip-stVZuZna.js";import"./useInfiniteQuery-_ypuPi-w.js";import"./use-infinite-scroll-DntDy4sL.js";import"./use-connection-BZYZrML5.js";import"./use-collections-CUeK8mw_.js";import"./use-mcp-client-BOUowLdo.js";import"./constants-B72Xmt_K.js";import"./auth-BYd3Adar.js";import"./use-virtual-mcp-DWzUT40s.js";import"./card-Dn-X5_qZ.js";import"./sidebar-FGH25wo8.js";import"./use-mobile-hfgWeQEp.js";import"./table-CN_uvHcv.js";import"./empty-state-BFLgyxqT.js";import"./use-members-Be5QWWLt.js";import"./use-org-auth-client-DpLcQRPx.js";import"./use-clock-tick-D9CWlgud.js";import"./use-automations-2Glp9-j7.js";import"./studio-tools-D3YWcmj3.js";import"./useSuspenseInfiniteQuery-B-qWrUhY.js";import"./badge-3HoWdSCw.js";import"./checkbox-OoxHRAIC.js";import"./command-Cs_FT5uh.js";import"./index-DKhV9HVo.js";import"./dialog-CMpHcaDT.js";import"./popover-BU7pjRBm.js";import"./avatar-CWM4obRf.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D9INHQEi.js";import"./file-type-icon-B9HBQ2xz.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-9bGTjzkm.js";import"./index-BOK6FIrS.js";import"./chat-context-CuUtzUxN.js";import"./autosend-B57nQVt9.js";import"./hooks-Daw6wCvk.js";import"./decopilot-sse-pool-CyzHYifl.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-CVkRovF1.js";import"./use-decopilot-events-DA0RDyGZ.js";import"./use-organization-settings-BwPQ6hVt.js";import"./types-BrihpTAy.js";import"./shell-layout-DJKTlJdJ.js";import"./alert-dialog-BaxqLdqZ.js";import"./required-auth-layout-7cZ5cfUT.js";import"./use-org-sso-C28MSl96.js";import"./integration-icon-Bv-jmTZs.js";import"./use-navigate-to-agent-B-S3APd4.js";import"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-prompts-Bl_b_Hx-.js";import"./form-DBwlnkBF.js";import"./drawer-CWJ_7maH.js";import"./collection-search-CYvfVN5j.js";import"./toggle-group-C6twzI1Z.js";import"./agent-capabilities-IENdHeWA.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D_mm_HDA.js";import"./use-registry-connections-CDmALAOb.js";import"./extract-connection-data-MusN6Gn3.js";import"./collection-tabs-CmzqLC7G.js";import"./connection-form-helpers-CNLvao3W.js";import"./authenticate-and-persist-oauth-D24b13QS.js";import"./mcp-oauth-BjdG12-c.js";import"./connect-desktop-dialog-D4-OAuGK.js";import"./select-model-Dky0hK-_.js";import"./skeleton-Cug1_sp1.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CBqjvdGu.js";import"./dropdown-menu-BRWSOCnY.js";import"./index-YwKi7Flg.js";import"./toolbar-CyMY3ln_.js";import"./use-debounced-value-Cz-X-J1K.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-cBS0pfDF.js";import"./use-mcp-tools-B1lso4A_.js";import"./use-capability-EQTheMSX.js";import"./tools-list-joMTrI0C.js";import"./switch-DpTcz2DZ.js";import"./use-debounced-autosave-5jb2X7qO.js";import"./index-BzyqQfFe.js";import"./search-input-BVZJ7x1G.js";import"./github-repo-picker-CtJVZFVj.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-BmOvjKW7.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BB4hosnn.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BoKJIhDn.js";import"./toolbar-icon-button-D5HhZjT8.js";import"./use-file-configs-C7EivhVD.js";import"./automation-list-row-CwNfc4BJ.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function di(A){const e=J.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:ne(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=ge(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,Y)=>_({...r,[T]:Y}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=ue({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(pe,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let I;e[40]!==L||e[41]!==R?(I=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=I):I=e[42];let H;e[43]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=H):H=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[H,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let U;e[45]!==r.sections?(U=xe(r.sections),e[45]=r.sections,e[46]=U):U=e[46];let $;e[47]!==h?($=T=>h("sections",T),e[47]=h,e[48]=$):$=e[48];let M;e[49]!==u||e[50]!==U||e[51]!==$?(M=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:U,onChange:$,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=U,e[51]=$,e[52]=M):M=e[52];let D;e[53]!==m||e[54]!==r||e[55]!==h?(D=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=D):D=e[56];let V;e[57]!==M||e[58]!==D?(V=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,D]}),e[57]=M,e[58]=D,e[59]=V):V=e[59];let z;e[60]!==I||e[61]!==V?(z=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:[I,V]})}),e[60]=I,e[61]=V,e[62]=z):z=e[62];let O;return e[63]!==v||e[64]!==z?(O=t.jsxs("div",{className:"flex h-full flex-col",children:[v,z]}),e[63]=v,e[64]=z,e[65]=O):O=e[65],O}function Ce(A){const e=J.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(q,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(fe,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ce,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(X,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(X,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=J.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(G,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(q,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(q,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(je,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=J.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=de(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(G,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{di as PostEditor};
@@ -1 +1 @@
1
- import{c as h,r as y,l as j,j as f}from"./index-BN34SGve.js";import{k as A}from"./agent-icon-CRmAHV-N.js";import{s as N}from"./Plus-GR-bv8hJ.js";import{s as _}from"./Trash01-CJBGMFUr.js";const S=700;function R(r,e,o){const t=h.c(7),s=S,[n,c]=y.useState(r),[l,u]=y.useState(r),[x,p]=y.useState(!1),i=y.useRef(null);r!==l&&(u(r),x||c(r));let a;t[0]!==s||t[1]!==e?(a=g=>{c(g),p(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,p(!1),e(g)},s)},t[0]=s,t[1]=e,t[2]=a):a=t[2];const d=a;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{c(g),i.current&&clearTimeout(i.current),i.current=null,p(!1)},t[3]=m):m=t[3];const v=m;let b;return t[4]!==n||t[5]!==d?(b=[n,d,v],t[4]=n,t[5]=d,t[6]=b):b=t[6],b}function T(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:l,onKeyDown:u,spellCheck:x,inputRef:p}=r,i=x===void 0?!0:x;let a;e[0]!==t?(a=v=>t(v.target.value),e[0]=t,e[1]=a):a=e[1];let d;e[2]!==n?(d=j("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]!==c||e[7]!==u||e[8]!==s||e[9]!==i||e[10]!==a||e[11]!==d||e[12]!==o?(m=f.jsx("textarea",{ref:p,value:o,onChange:a,onInput:w,onFocus:c,onBlur:l,onKeyDown:u,placeholder:s,spellCheck:i,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=c,e[7]=u,e[8]=s,e[9]=i,e[10]=a,e[11]=d,e[12]=o,e[13]=m):m=e[13],m}function w(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function D(r){return typeof r=="string"?r:""}function B(r){const e=h.c(11);let o,t;e[0]!==r?({className:o,...t}=r,e[0]=r,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=j(o,"pr-9"),e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t||e[6]!==s?(n=f.jsx(T,{...t,className:s}),e[5]=t,e[6]=s,e[7]=n):n=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(A,{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]=c):c=e[8];let l;return e[9]!==n?(l=f.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,c]}),e[9]=n,e[10]=l):l=e[10],l}function F(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(N,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=f.jsxs("button",{type:"button",onClick:t,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,o]}),e[1]=s,e[2]=o,e[3]=t,e[4]=c):c=e[4],c}function I(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(_,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=f.jsx("button",{type:"button","aria-label":o,onClick:t,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]=o,e[2]=t,e[3]=n):n=e[3],n}function J(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=f.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:o}),e[0]=o,e[1]=t):t=e[1],t}function O(r){const e=h.c(8),{active:o,label:t,onClick:s,children:n}=r,c=o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==c?(l=j("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",c),e[0]=c,e[1]=l):l=e[1];let u;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==l?(u=f.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:l,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=l,e[7]=u):u=e[7],u}function $(r){return r.preventDefault()}function H(r){if(Array.isArray(r))return r;if(typeof r!="string"||r.trim()==="")return[];try{const e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}export{F as A,B as E,J as F,T as I,I as R,O as T,H as p,D as s,R as u};
1
+ import{c as h,r as y,l as j,j as f}from"./index-CH9EZ8Nx.js";import{k as A}from"./agent-icon-BRhNodUp.js";import{s as N}from"./Plus-DwiR3Oel.js";import{s as _}from"./Trash01-D8-5OV_e.js";const S=700;function R(r,e,o){const t=h.c(7),s=S,[n,c]=y.useState(r),[l,u]=y.useState(r),[x,p]=y.useState(!1),i=y.useRef(null);r!==l&&(u(r),x||c(r));let a;t[0]!==s||t[1]!==e?(a=g=>{c(g),p(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,p(!1),e(g)},s)},t[0]=s,t[1]=e,t[2]=a):a=t[2];const d=a;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{c(g),i.current&&clearTimeout(i.current),i.current=null,p(!1)},t[3]=m):m=t[3];const v=m;let b;return t[4]!==n||t[5]!==d?(b=[n,d,v],t[4]=n,t[5]=d,t[6]=b):b=t[6],b}function T(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:l,onKeyDown:u,spellCheck:x,inputRef:p}=r,i=x===void 0?!0:x;let a;e[0]!==t?(a=v=>t(v.target.value),e[0]=t,e[1]=a):a=e[1];let d;e[2]!==n?(d=j("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]!==c||e[7]!==u||e[8]!==s||e[9]!==i||e[10]!==a||e[11]!==d||e[12]!==o?(m=f.jsx("textarea",{ref:p,value:o,onChange:a,onInput:w,onFocus:c,onBlur:l,onKeyDown:u,placeholder:s,spellCheck:i,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=c,e[7]=u,e[8]=s,e[9]=i,e[10]=a,e[11]=d,e[12]=o,e[13]=m):m=e[13],m}function w(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function D(r){return typeof r=="string"?r:""}function B(r){const e=h.c(11);let o,t;e[0]!==r?({className:o,...t}=r,e[0]=r,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=j(o,"pr-9"),e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t||e[6]!==s?(n=f.jsx(T,{...t,className:s}),e[5]=t,e[6]=s,e[7]=n):n=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(A,{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]=c):c=e[8];let l;return e[9]!==n?(l=f.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,c]}),e[9]=n,e[10]=l):l=e[10],l}function F(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(N,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=f.jsxs("button",{type:"button",onClick:t,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,o]}),e[1]=s,e[2]=o,e[3]=t,e[4]=c):c=e[4],c}function I(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(_,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=f.jsx("button",{type:"button","aria-label":o,onClick:t,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]=o,e[2]=t,e[3]=n):n=e[3],n}function J(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=f.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:o}),e[0]=o,e[1]=t):t=e[1],t}function O(r){const e=h.c(8),{active:o,label:t,onClick:s,children:n}=r,c=o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==c?(l=j("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",c),e[0]=c,e[1]=l):l=e[1];let u;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==l?(u=f.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:l,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=l,e[7]=u):u=e[7],u}function $(r){return r.preventDefault()}function H(r){if(Array.isArray(r))return r;if(typeof r!="string"||r.trim()==="")return[];try{const e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}export{F as A,B as E,J as F,T as I,I as R,O as T,H as p,D as s,R as u};
@@ -1 +1 @@
1
- import{c as V,j as t,a as D,J as R,ac as q,a1 as B,M as N,t as T}from"./index-BN34SGve.js";import{P as L}from"./index-Bn4Xt5vi.js";import{A as U}from"./avatar-Dwi1UBBW.js";import{S as I}from"./switch-B1HbMeyP.js";import{a as G,c as Y,b as $,S as J}from"./select-C1hgApzR.js";import{a as K,T as z}from"./toggle-group-DGRj3JAt.js";import{I as M}from"./input-ThAiLSAs.js";import{i as O}from"./Monitor01-DCvw2Cwy.js";import{n as H,a as Q}from"./Sun-BqeFoqsp.js";import{i as W}from"./Play-B7eI58VD.js";import{u as X}from"./use-debounced-autosave-5jhgoJ4-.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-DgnS6DAZ.js";import{c as te,b as A,S as E,a as F}from"./settings-section-CxfBH_vJ.js";import"./sidebar-OLIv3b_I.js";import"./LayoutLeft-Cqfx37Ut.js";import"./use-mobile-BVVcmFCB.js";import"./X-BRdI6jdZ.js";import"./tooltip-Czrpj8yv.js";import"./User01-DU_uGH_W.js";import"./Check-DPt6MpHI.js";import"./ChevronDown-ChZbMzFq.js";import"./ChevronUp-CaaMgtLs.js";import"./card-DcntvNbs.js";import"./ArrowUpRight-D8w3nQB-.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const r=n.getValues(),f=n.control._defaultValues;n.reset(r,{keepValues:!0});try{await D.updateUser({name:r.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:r}=g;return t.jsx(M,{id:"display-name",...r,onChange:f=>{r.onChange(f),x()},onBlur:()=>{r.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const b=v?.email;let a;e[13]!==b?(a=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=a):a=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==a?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,a]})}),e[15]=i,e[16]=d,e[17]=a,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(ae);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(H,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(O,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(K,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let a;e[25]!==s.enableSounds||e[26]!==b?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=a):a=e[27];let u;e[28]!==a||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:a}),e[28]=a,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let r;e[33]!==s.toolApprovalLevel?(r={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=r):r=e[34];let f;e[35]!==r?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:r})}),e[35]=r,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(J,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function ae(e){return{...e,enableNotifications:!1}}function re(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{}),e[0]=s):s=e[0],s}export{De as default};
1
+ import{c as V,j as t,a as D,J as R,ac as q,a1 as B,M as N,t as T}from"./index-CH9EZ8Nx.js";import{P as L}from"./index-BzyqQfFe.js";import{A as U}from"./avatar-CWM4obRf.js";import{S as I}from"./switch-DpTcz2DZ.js";import{a as G,c as Y,b as $,S as J}from"./select-DzLNnT6O.js";import{a as K,T as z}from"./toggle-group-C6twzI1Z.js";import{I as M}from"./input-DtVvcTPe.js";import{i as O}from"./Monitor01-BwY7wiIv.js";import{n as H,a as Q}from"./Sun-Do6OumKk.js";import{i as W}from"./Play-DFTwtpgp.js";import{u as X}from"./use-debounced-autosave-5jb2X7qO.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-C3N62ppi.js";import{c as te,b as A,S as E,a as F}from"./settings-section-CBqjvdGu.js";import"./sidebar-FGH25wo8.js";import"./LayoutLeft-D-MMxE-M.js";import"./use-mobile-hfgWeQEp.js";import"./X-CUDnp4kZ.js";import"./tooltip-stVZuZna.js";import"./User01-urWS5dkH.js";import"./Check-LPaPEL9T.js";import"./ChevronDown-CQ4gU8z2.js";import"./ChevronUp-BG8Bf7p5.js";import"./card-Dn-X5_qZ.js";import"./ArrowUpRight-v2vghZgm.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const r=n.getValues(),f=n.control._defaultValues;n.reset(r,{keepValues:!0});try{await D.updateUser({name:r.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:r}=g;return t.jsx(M,{id:"display-name",...r,onChange:f=>{r.onChange(f),x()},onBlur:()=>{r.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const b=v?.email;let a;e[13]!==b?(a=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=a):a=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==a?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,a]})}),e[15]=i,e[16]=d,e[17]=a,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(ae);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(H,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(O,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(K,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let a;e[25]!==s.enableSounds||e[26]!==b?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=a):a=e[27];let u;e[28]!==a||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:a}),e[28]=a,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let r;e[33]!==s.toolApprovalLevel?(r={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=r):r=e[34];let f;e[35]!==r?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:r})}),e[35]=r,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(J,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function ae(e){return{...e,enableNotifications:!1}}function re(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{}),e[0]=s):s=e[0],s}export{De as default};
@@ -0,0 +1 @@
1
+ import{c as w,$ as H,j as v}from"./index-CH9EZ8Nx.js";import{a as L,g as E,s as b}from"./automation-runs-Bz_unH7M.js";import{u as O}from"./use-mcp-client-BOUowLdo.js";import{p as k}from"./constants-B72Xmt_K.js";import{b as q,c as B}from"./use-mcp-tools-B1lso4A_.js";import{u as Y}from"./index-BIKmJ3Nr.js";import{c as G}from"./monaco-editor-9bGTjzkm.js";import{g as K,M as V,a as $}from"./types-BrihpTAy.js";import{a as z,u as F}from"./chat-context-CuUtzUxN.js";import{u as J}from"./shell-layout-DJKTlJdJ.js";import"./select-DzLNnT6O.js";import"./tooltip-stVZuZna.js";import"./Check-LPaPEL9T.js";import"./ChevronDown-CQ4gU8z2.js";import"./ChevronUp-BG8Bf7p5.js";import"./useInfiniteQuery-_ypuPi-w.js";import"./use-infinite-scroll-DntDy4sL.js";import"./use-connection-BZYZrML5.js";import"./use-collections-CUeK8mw_.js";import"./use-virtual-mcp-DWzUT40s.js";import"./card-Dn-X5_qZ.js";import"./sidebar-FGH25wo8.js";import"./LayoutLeft-D-MMxE-M.js";import"./use-mobile-hfgWeQEp.js";import"./X-CUDnp4kZ.js";import"./table-CN_uvHcv.js";import"./empty-state-BFLgyxqT.js";import"./use-members-Be5QWWLt.js";import"./use-org-auth-client-DpLcQRPx.js";import"./use-clock-tick-D9CWlgud.js";import"./AlertCircle-BU14bQiZ.js";import"./CheckCircle-Do5A4bXQ.js";import"./Circle-DpQfqGNp.js";import"./agent-icon-BRhNodUp.js";import"./Tool01-DGCgIeuK.js";import"./SwitchHorizontal01-DgM-zlmP.js";import"./Settings02-Oy0H9TJU.js";import"./XCircle-ByhSsmxa.js";import"./ArrowUpRight-v2vghZgm.js";import"./ZapSquare-BRty9AYq.js";import"./Users03-BcVoCg35.js";import"./Loading02-DiTs_Ka0.js";import"./ChevronRight-CnRZV29t.js";import"./Stars02-BlSWe2aV.js";import"./Copy01-a2D-JB5w.js";import"./ZoomOut-C5AyvbVI.js";import"./DotsVertical-D3ZNtEH2.js";import"./Globe01-BY6peDuZ.js";import"./Eye-BtY-LtDA.js";import"./FilterLines-SGzOlpxQ.js";import"./Star01-DqcYLdUP.js";import"./Globe04-CDcU3Rla.js";import"./HardDrive-KCGj9ORV.js";import"./Key01-CYaFueTS.js";import"./LinkExternal01-BC0gNEKt.js";import"./List-CgukfXbz.js";import"./Monitor01-BwY7wiIv.js";import"./Sun-Do6OumKk.js";import"./Palette--eupxDrC.js";import"./Play-DFTwtpgp.js";import"./Plus-DwiR3Oel.js";import"./SearchLg-AGW59IHr.js";import"./SearchMd--hdVzTWj.js";import"./Shield01-Dey8R0Wt.js";import"./Stars01-B0ITotZ-.js";import"./Trash01-D8-5OV_e.js";import"./Upload01-C7AAyyjR.js";import"./User01-urWS5dkH.js";import"./Users01-BqhN-P8L.js";import"./XClose-92KTkAwb.js";import"./Zap-CMyUhB1o.js";import"./use-automations-2Glp9-j7.js";import"./studio-tools-D3YWcmj3.js";import"./useSuspenseInfiniteQuery-B-qWrUhY.js";import"./badge-3HoWdSCw.js";import"./checkbox-OoxHRAIC.js";import"./command-Cs_FT5uh.js";import"./index-DKhV9HVo.js";import"./dialog-CMpHcaDT.js";import"./popover-BU7pjRBm.js";import"./avatar-CWM4obRf.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D9INHQEi.js";import"./file-type-icon-B9HBQ2xz.js";import"./tab-id-bb-jjgGv.js";import"./hooks-Daw6wCvk.js";import"./decopilot-sse-pool-CyzHYifl.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-Bv-jmTZs.js";import"./use-navigate-to-agent-B-S3APd4.js";import"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-prompts-Bl_b_Hx-.js";import"./form-DBwlnkBF.js";import"./label-Bu3AIS2R.js";import"./input-DtVvcTPe.js";import"./auth-BYd3Adar.js";import"./drawer-CWJ_7maH.js";import"./collection-search-CYvfVN5j.js";import"./autosend-B57nQVt9.js";import"./tabs-DTL4ZTIk.js";import"./toggle-group-C6twzI1Z.js";import"./agent-capabilities-IENdHeWA.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D_mm_HDA.js";import"./use-registry-connections-CDmALAOb.js";import"./use-organization-settings-BwPQ6hVt.js";import"./extract-connection-data-MusN6Gn3.js";import"./collection-tabs-CmzqLC7G.js";import"./textarea-CfkvU0G9.js";import"./connection-form-helpers-CNLvao3W.js";import"./authenticate-and-persist-oauth-D24b13QS.js";import"./mcp-oauth-BjdG12-c.js";import"./use-ai-providers-CVkRovF1.js";import"./connect-desktop-dialog-D4-OAuGK.js";import"./select-model-Dky0hK-_.js";import"./skeleton-Cug1_sp1.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CBqjvdGu.js";import"./dropdown-menu-BRWSOCnY.js";import"./index-YwKi7Flg.js";import"./alert-dialog-BaxqLdqZ.js";import"./toolbar-CyMY3ln_.js";import"./use-debounced-value-Cz-X-J1K.js";import"./index-BOK6FIrS.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-cBS0pfDF.js";import"./use-decopilot-events-DA0RDyGZ.js";import"./use-capability-EQTheMSX.js";import"./tools-list-joMTrI0C.js";import"./switch-DpTcz2DZ.js";import"./use-debounced-autosave-5jb2X7qO.js";import"./index-BzyqQfFe.js";import"./search-input-BVZJ7x1G.js";import"./github-repo-picker-CtJVZFVj.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-BmOvjKW7.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BB4hosnn.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BoKJIhDn.js";import"./toolbar-icon-button-D5HhZjT8.js";import"./use-file-configs-C7EivhVD.js";import"./automation-list-row-CwNfc4BJ.js";import"./required-auth-layout-7cZ5cfUT.js";import"./use-org-sso-C28MSl96.js";const Q={};function W(A){const t=w.c(37),{client:i,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=A,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{openSidePanel:f,openTab:g}=J(),r=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==i||t[3]!==o.name||t[4]!==s?(c={client:i,toolName:o.name,toolArguments:s},t[2]=i,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:e}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=b(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const j=N;let S;t[15]!==f||t[16]!==I?(S=C=>{const D=G(C.content);D.content.length>0&&(f("chat"),I({tiptapDoc:D}))},t[15]=f,t[16]=I,t[17]=S):S=t[17];const y=S;let P;t[18]!==j?(P={tool:j},t[18]=j,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==r?(T=C=>u(r,C),t[20]=u,t[21]=r,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==r?(R=()=>n(r),t[23]=n,t[24]=r,t[25]=R):R=t[25];let _;return t[26]!==i||t[27]!==y||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==e?(_=v.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:e,displayMode:"fullscreen",minHeight:$.fullscreen.minHeight,maxHeight:$.fullscreen.maxHeight,client:i,onMessage:y,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=i,t[27]=y,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=e,t[36]=_):_=t[36],_}function Lr(A){const t=w.c(24),{connectionId:i,toolName:h,args:o}=A,{org:p}=H(),l=Y();let M;t[0]!==i||t[1]!==l?(M=k(i)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=i,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==i||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:i,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=i,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=O(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let r,a,m;t[10]!==h||t[11]!==g.tools?(r=L(decodeURIComponent(h)),m=g.tools.find(e=>e.name===r)??g.tools.find(e=>{const x=E(e._meta);if(!x)return!1;if(b(e.name,x)===r)return!0;const d=b(r,x);return d!==r&&e.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=r,t[13]=a,t[14]=m):(r=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let e;return t[15]!==r?(e=v.jsx("div",{className:"flex items-center justify-center h-full w-full",children:v.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let c;return t[17]!==o||t[18]!==n||t[19]!==i||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=v.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:i,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=i,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{Lr as AppViewContent};
@@ -0,0 +1 @@
1
+ import{c as S,j as r}from"./index-CH9EZ8Nx.js";import{I as T}from"./input-DtVvcTPe.js";import{L as C}from"./label-Bu3AIS2R.js";import{T as L}from"./textarea-CfkvU0G9.js";import{aH as A,aI as R,aG as J,aJ as K,aK as D}from"./index-BIKmJ3Nr.js";import{u as G,s as P}from"./primitives-CUkZpQa4.js";import"./SwitchHorizontal01-DgM-zlmP.js";import"./chat-context-CuUtzUxN.js";import"./autosend-B57nQVt9.js";import"./hooks-Daw6wCvk.js";import"./use-mcp-client-BOUowLdo.js";import"./constants-B72Xmt_K.js";import"./auth-BYd3Adar.js";import"./decopilot-sse-pool-CyzHYifl.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DWzUT40s.js";import"./use-collections-CUeK8mw_.js";import"./use-ai-providers-CVkRovF1.js";import"./studio-tools-D3YWcmj3.js";import"./use-decopilot-events-DA0RDyGZ.js";import"./tab-id-bb-jjgGv.js";import"./use-organization-settings-BwPQ6hVt.js";import"./automation-runs-Bz_unH7M.js";import"./select-DzLNnT6O.js";import"./tooltip-stVZuZna.js";import"./Check-LPaPEL9T.js";import"./ChevronDown-CQ4gU8z2.js";import"./ChevronUp-BG8Bf7p5.js";import"./useInfiniteQuery-_ypuPi-w.js";import"./use-infinite-scroll-DntDy4sL.js";import"./use-connection-BZYZrML5.js";import"./card-Dn-X5_qZ.js";import"./sidebar-FGH25wo8.js";import"./LayoutLeft-D-MMxE-M.js";import"./use-mobile-hfgWeQEp.js";import"./X-CUDnp4kZ.js";import"./table-CN_uvHcv.js";import"./empty-state-BFLgyxqT.js";import"./use-members-Be5QWWLt.js";import"./use-org-auth-client-DpLcQRPx.js";import"./use-clock-tick-D9CWlgud.js";import"./AlertCircle-BU14bQiZ.js";import"./CheckCircle-Do5A4bXQ.js";import"./Circle-DpQfqGNp.js";import"./agent-icon-BRhNodUp.js";import"./Tool01-DGCgIeuK.js";import"./Settings02-Oy0H9TJU.js";import"./XCircle-ByhSsmxa.js";import"./ArrowUpRight-v2vghZgm.js";import"./ZapSquare-BRty9AYq.js";import"./Users03-BcVoCg35.js";import"./Loading02-DiTs_Ka0.js";import"./ChevronRight-CnRZV29t.js";import"./Stars02-BlSWe2aV.js";import"./Copy01-a2D-JB5w.js";import"./ZoomOut-C5AyvbVI.js";import"./DotsVertical-D3ZNtEH2.js";import"./Globe01-BY6peDuZ.js";import"./Eye-BtY-LtDA.js";import"./FilterLines-SGzOlpxQ.js";import"./Star01-DqcYLdUP.js";import"./Globe04-CDcU3Rla.js";import"./HardDrive-KCGj9ORV.js";import"./Key01-CYaFueTS.js";import"./LinkExternal01-BC0gNEKt.js";import"./List-CgukfXbz.js";import"./Monitor01-BwY7wiIv.js";import"./Sun-Do6OumKk.js";import"./Palette--eupxDrC.js";import"./Play-DFTwtpgp.js";import"./Plus-DwiR3Oel.js";import"./SearchLg-AGW59IHr.js";import"./SearchMd--hdVzTWj.js";import"./Shield01-Dey8R0Wt.js";import"./Stars01-B0ITotZ-.js";import"./Trash01-D8-5OV_e.js";import"./Upload01-C7AAyyjR.js";import"./User01-urWS5dkH.js";import"./Users01-BqhN-P8L.js";import"./XClose-92KTkAwb.js";import"./Zap-CMyUhB1o.js";import"./use-automations-2Glp9-j7.js";import"./useSuspenseInfiniteQuery-B-qWrUhY.js";import"./badge-3HoWdSCw.js";import"./checkbox-OoxHRAIC.js";import"./command-Cs_FT5uh.js";import"./index-DKhV9HVo.js";import"./dialog-CMpHcaDT.js";import"./popover-BU7pjRBm.js";import"./avatar-CWM4obRf.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D9INHQEi.js";import"./file-type-icon-B9HBQ2xz.js";import"./monaco-editor-9bGTjzkm.js";import"./index-BOK6FIrS.js";import"./types-BrihpTAy.js";import"./shell-layout-DJKTlJdJ.js";import"./alert-dialog-BaxqLdqZ.js";import"./required-auth-layout-7cZ5cfUT.js";import"./use-org-sso-C28MSl96.js";import"./integration-icon-Bv-jmTZs.js";import"./use-navigate-to-agent-B-S3APd4.js";import"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-prompts-Bl_b_Hx-.js";import"./form-DBwlnkBF.js";import"./drawer-CWJ_7maH.js";import"./collection-search-CYvfVN5j.js";import"./tabs-DTL4ZTIk.js";import"./toggle-group-C6twzI1Z.js";import"./agent-capabilities-IENdHeWA.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D_mm_HDA.js";import"./use-registry-connections-CDmALAOb.js";import"./extract-connection-data-MusN6Gn3.js";import"./collection-tabs-CmzqLC7G.js";import"./connection-form-helpers-CNLvao3W.js";import"./authenticate-and-persist-oauth-D24b13QS.js";import"./mcp-oauth-BjdG12-c.js";import"./connect-desktop-dialog-D4-OAuGK.js";import"./select-model-Dky0hK-_.js";import"./skeleton-Cug1_sp1.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CBqjvdGu.js";import"./dropdown-menu-BRWSOCnY.js";import"./index-YwKi7Flg.js";import"./toolbar-CyMY3ln_.js";import"./use-debounced-value-Cz-X-J1K.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-cBS0pfDF.js";import"./use-mcp-tools-B1lso4A_.js";import"./use-capability-EQTheMSX.js";import"./tools-list-joMTrI0C.js";import"./switch-DpTcz2DZ.js";import"./use-debounced-autosave-5jb2X7qO.js";import"./index-BzyqQfFe.js";import"./search-input-BVZJ7x1G.js";import"./github-repo-picker-CtJVZFVj.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-BmOvjKW7.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BB4hosnn.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BoKJIhDn.js";import"./toolbar-icon-button-D5HhZjT8.js";import"./use-file-configs-C7EivhVD.js";import"./automation-list-row-CwNfc4BJ.js";const H={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},M={authors:"Author"};function Fr(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:K(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=G(F,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=M[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(J,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=H[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(D,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=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:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Fr as RecordEditor};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-c83vGU7n.js","assets/index-CH9EZ8Nx.js","assets/index-CJ8_7qzi.css","assets/XCircle-ByhSsmxa.js","assets/CheckCircle-Do5A4bXQ.js","assets/Settings02-Oy0H9TJU.js","assets/use-mcp-client-BOUowLdo.js","assets/constants-B72Xmt_K.js","assets/auth-BYd3Adar.js","assets/useInfiniteQuery-_ypuPi-w.js","assets/use-infinite-scroll-DntDy4sL.js","assets/studio-tools-D3YWcmj3.js","assets/badge-3HoWdSCw.js","assets/input-DtVvcTPe.js","assets/dropdown-menu-BRWSOCnY.js","assets/Check-LPaPEL9T.js","assets/ChevronRight-CnRZV29t.js","assets/Circle-DpQfqGNp.js","assets/table-CN_uvHcv.js","assets/toggle-group-C6twzI1Z.js","assets/use-view-mode-W_Rx6Pqo.js","assets/use-mobile-hfgWeQEp.js","assets/DotsVertical-D3ZNtEH2.js","assets/FilterLines-SGzOlpxQ.js","assets/Globe01-BY6peDuZ.js","assets/SearchMd--hdVzTWj.js","assets/dialog-CMpHcaDT.js","assets/X-CUDnp4kZ.js","assets/AlertCircle-BU14bQiZ.js","assets/Upload01-C7AAyyjR.js","assets/alert-dialog-BaxqLdqZ.js","assets/card-Dn-X5_qZ.js","assets/Trash01-D8-5OV_e.js","assets/label-Bu3AIS2R.js","assets/select-DzLNnT6O.js","assets/tooltip-stVZuZna.js","assets/ChevronDown-CQ4gU8z2.js","assets/ChevronUp-BG8Bf7p5.js","assets/switch-DpTcz2DZ.js","assets/textarea-CfkvU0G9.js","assets/checkbox-OoxHRAIC.js","assets/Eye-BtY-LtDA.js","assets/LinkExternal01-BC0gNEKt.js","assets/use-copy-D9INHQEi.js","assets/Copy01-a2D-JB5w.js","assets/Key01-CYaFueTS.js","assets/Plus-DwiR3Oel.js","assets/mcp-oauth-BjdG12-c.js","assets/Play-DFTwtpgp.js"])))=>i.map(i=>d[i]);
2
+ import{c as s,j as e,r as i,i as a,aU as o}from"./index-CH9EZ8Nx.js";import{R as m}from"./require-capability-vKvQ1Zur.js";import"./use-capability-EQTheMSX.js";import"./access-gate-Bq9SHYIN.js";import"./capability-load-error-B6IlBcXy.js";const n=i.lazy(()=>o(()=>import("./registry-layout-c83vGU7n.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.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(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
@@ -1,4 +1,4 @@
1
- import{c as W,$ as fe,k as Re,p as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,b7 as qs,b8 as Bs}from"./index-BN34SGve.js";import{c as Jt,a as Qs,d as ds,i as Vs,b as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-oP3gBlv9.js";import{i as qe}from"./CheckCircle-DWhaEeJj.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-BCI3mRem.js";import{u as Ie}from"./use-mcp-client-DtLTcXNV.js";import{S as Me,W as tr}from"./constants-B72Xmt_K.js";import{u as us}from"./useInfiniteQuery-DHHxh8eV.js";import{u as _e}from"./studio-tools-gTyvcgm4.js";import{B as F}from"./badge-c_-6up7u.js";import{I as ue}from"./input-ThAiLSAs.js";import{a as dt,d as Ne,D as ut,c as mt,b as Zt,k as Xt,j as sr}from"./dropdown-menu-XsnNulK0.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-DQUTn-bu.js";import{a as rr,T as es}from"./toggle-group-DGRj3JAt.js";import{u as nr}from"./use-view-mode-BKb17Hp6.js";import{i as $t}from"./DotsVertical-Ce-7y1LG.js";import{i as ir}from"./FilterLines-Dtmu01B2.js";import{n as lr,i as ms}from"./Globe01-C_HbvILS.js";import{i as ar}from"./SearchMd-FoSdKAhE.js";import{c as xt,a as pt,b as ht,D as ft,d as gt,e as jt}from"./dialog-Dj1Kb9Q8.js";import{i as Ye}from"./AlertCircle-jHngK_2k.js";import{i as ts}from"./Upload01-D4_hGmHb.js";import{c as He,b as We,d as Je,A as Ze,g as Xe,e as et,a as tt,f as st}from"./alert-dialog-Dsk4YPlr.js";import{C as ne}from"./card-DcntvNbs.js";import{s as rt}from"./Trash01-CJBGMFUr.js";import{L as te}from"./label-C8NNmRdQ.js";import{a as or,c as cr,d as dr,S as ur,b as St}from"./select-C1hgApzR.js";import{S as ze}from"./switch-B1HbMeyP.js";import{T as vt}from"./textarea-CM65RqNU.js";import{i as mr}from"./X-BRdI6jdZ.js";import{t as xr}from"./ChevronDown-ChZbMzFq.js";import{n as pr}from"./ChevronUp-CaaMgtLs.js";import{C as ss}from"./checkbox-BtCJ_dYC.js";import{s as xs}from"./Eye-CDPYZ_F7.js";import{n as hr}from"./LinkExternal01-BkF4Fznm.js";import{u as fr}from"./use-infinite-scroll-BB_MQ65c.js";import{u as Rt}from"./use-copy-Bbgt8pmD.js";import{i as Tt}from"./Check-DPt6MpHI.js";import{a as It}from"./Copy01-By_6Yiba.js";import{i as gr}from"./Key01-B4mFbb__.js";import{s as jr}from"./Plus-GR-bv8hJ.js";import{a as vr,b as br,T as yr}from"./tooltip-Czrpj8yv.js";import{i as Nr,a as wr}from"./mcp-oauth-DRXaSqrf.js";import{i as _r}from"./Play-B7eI58VD.js";import"./auth-IU-LL4Cm.js";import"./ChevronRight-BARsItD4.js";import"./Circle-J28YrSDb.js";import"./use-mobile-BVVcmFCB.js";const Ue="private-registry",Cr=`
1
+ import{c as W,$ as fe,k as Re,p as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,b7 as qs,b8 as Bs}from"./index-CH9EZ8Nx.js";import{c as Jt,a as Qs,d as ds,i as Vs,b as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-ByhSsmxa.js";import{i as qe}from"./CheckCircle-Do5A4bXQ.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-Oy0H9TJU.js";import{u as Ie}from"./use-mcp-client-BOUowLdo.js";import{S as Me,W as tr}from"./constants-B72Xmt_K.js";import{u as us}from"./useInfiniteQuery-_ypuPi-w.js";import{u as _e}from"./studio-tools-D3YWcmj3.js";import{B as F}from"./badge-3HoWdSCw.js";import{I as ue}from"./input-DtVvcTPe.js";import{a as dt,d as Ne,D as ut,c as mt,b as Zt,k as Xt,j as sr}from"./dropdown-menu-BRWSOCnY.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-CN_uvHcv.js";import{a as rr,T as es}from"./toggle-group-C6twzI1Z.js";import{u as nr}from"./use-view-mode-W_Rx6Pqo.js";import{i as $t}from"./DotsVertical-D3ZNtEH2.js";import{i as ir}from"./FilterLines-SGzOlpxQ.js";import{n as lr,i as ms}from"./Globe01-BY6peDuZ.js";import{i as ar}from"./SearchMd--hdVzTWj.js";import{c as xt,a as pt,b as ht,D as ft,d as gt,e as jt}from"./dialog-CMpHcaDT.js";import{i as Ye}from"./AlertCircle-BU14bQiZ.js";import{i as ts}from"./Upload01-C7AAyyjR.js";import{c as He,b as We,d as Je,A as Ze,g as Xe,e as et,a as tt,f as st}from"./alert-dialog-BaxqLdqZ.js";import{C as ne}from"./card-Dn-X5_qZ.js";import{s as rt}from"./Trash01-D8-5OV_e.js";import{L as te}from"./label-Bu3AIS2R.js";import{a as or,c as cr,d as dr,S as ur,b as St}from"./select-DzLNnT6O.js";import{S as ze}from"./switch-DpTcz2DZ.js";import{T as vt}from"./textarea-CfkvU0G9.js";import{i as mr}from"./X-CUDnp4kZ.js";import{t as xr}from"./ChevronDown-CQ4gU8z2.js";import{n as pr}from"./ChevronUp-BG8Bf7p5.js";import{C as ss}from"./checkbox-OoxHRAIC.js";import{s as xs}from"./Eye-BtY-LtDA.js";import{n as hr}from"./LinkExternal01-BC0gNEKt.js";import{u as fr}from"./use-infinite-scroll-DntDy4sL.js";import{u as Rt}from"./use-copy-D9INHQEi.js";import{i as Tt}from"./Check-LPaPEL9T.js";import{a as It}from"./Copy01-a2D-JB5w.js";import{i as gr}from"./Key01-CYaFueTS.js";import{s as jr}from"./Plus-DwiR3Oel.js";import{a as vr,b as br,T as yr}from"./tooltip-stVZuZna.js";import{i as Nr,a as wr}from"./mcp-oauth-BjdG12-c.js";import{i as _r}from"./Play-DFTwtpgp.js";import"./auth-BYd3Adar.js";import"./ChevronRight-CnRZV29t.js";import"./Circle-DpQfqGNp.js";import"./use-mobile-hfgWeQEp.js";const Ue="private-registry",Cr=`
2
2
  You are an MCP tool tester running automated integration checks.
3
3
 
4
4
  Goal:
@@ -1 +1 @@
1
- import{c as p,j as m}from"./index-BN34SGve.js";import{u as l}from"./use-capability-84CnT0k6.js";import{A as u}from"./access-gate-DvCXTiDI.js";function b(c){const t=p.c(6),{capability:n,area:e,children:i}=c,{granted:a,loading:o,error:s}=l(n);let r;return t[0]!==e||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==o?(r=m.jsx(u,{granted:a,loading:o,error:s,area:e,children:i}),t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=r):r=t[5],r}export{b as R};
1
+ import{c as p,j as m}from"./index-CH9EZ8Nx.js";import{u as l}from"./use-capability-EQTheMSX.js";import{A as u}from"./access-gate-Bq9SHYIN.js";function b(c){const t=p.c(6),{capability:n,area:e,children:i}=c,{granted:a,loading:o,error:s}=l(n);let r;return t[0]!==e||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==o?(r=m.jsx(u,{granted:a,loading:o,error:s,area:e,children:i}),t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=r):r=t[5],r}export{b as R};
@@ -1 +1 @@
1
- import{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-BN34SGve.js";function x(){const o=l.c(1),e=window.location.pathname+window.location.search;let t;if(o[0]===Symbol.for("react.memo_cache_sentinel")){const n=e==="/login"||e.startsWith("/login?")?{}:{next:e};t=s.jsx(f,{to:"/login",search:n,replace:!0}),o[0]=t}else t=o[0];return t}function g(o){const e=l.c(6),{children:t}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(a,{children:s.jsx(m,{})}),e[0]=i):i=e[0];let n;e[1]!==t?(n=s.jsx(h,{children:t}),e[1]=t,e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(u,{children:s.jsx(x,{})}),e[3]=r):r=e[3];let c;return e[4]!==n?(c=s.jsxs(s.Fragment,{children:[i,n,r]}),e[4]=n,e[5]=c):c=e[5],c}export{g as R};
1
+ import{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-CH9EZ8Nx.js";function x(){const o=l.c(1),e=window.location.pathname+window.location.search;let t;if(o[0]===Symbol.for("react.memo_cache_sentinel")){const n=e==="/login"||e.startsWith("/login?")?{}:{next:e};t=s.jsx(f,{to:"/login",search:n,replace:!0}),o[0]=t}else t=o[0];return t}function g(o){const e=l.c(6),{children:t}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(a,{children:s.jsx(m,{})}),e[0]=i):i=e[0];let n;e[1]!==t?(n=s.jsx(h,{children:t}),e[1]=t,e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(u,{children:s.jsx(x,{})}),e[3]=r):r=e[3];let c;return e[4]!==n?(c=s.jsxs(s.Fragment,{children:[i,n,r]}),e[4]=n,e[5]=c):c=e[5],c}export{g as R};
@@ -1 +1 @@
1
- import{c as q,u as Y,b as A,r as B,d as G,j as s,B as z,a as K}from"./index-BN34SGve.js";import{I as L}from"./input-ThAiLSAs.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let g;e[22]!==a||e[23]!==t?(g=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=g):g=e[24];let f;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(f=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=f):f=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==g||e[42]!==f||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,g,f,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=g,e[42]=f,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};
1
+ import{c as q,u as Y,b as A,r as B,d as G,j as s,B as z,a as K}from"./index-CH9EZ8Nx.js";import{I as L}from"./input-DtVvcTPe.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let g;e[22]!==a||e[23]!==t?(g=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=g):g=e[24];let f;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(f=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=f):f=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==g||e[42]!==f||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,g,f,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=g,e[42]=f,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};