decocms 4.11.8 → 4.11.10

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 (222) hide show
  1. package/dist/client/assets/{AlertCircle-DhSahFA7.js → AlertCircle-N4QU3JGm.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-ChBOrH47.js → ArrowUpRight-B7OX2mHb.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-DQTTJHBu.js → CheckCircle-oUhECjBb.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-DxT6pZ2C.js → ChevronDown-Bfo_cMHG.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-Bauk0cfb.js → ChevronRight-C7QId3FI.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-CK13E_jJ.js → ChevronUp-CudmCGB7.js} +1 -1
  7. package/dist/client/assets/{DotsVertical-BsgRawWl.js → DotsVertical-BT5O7y9p.js} +1 -1
  8. package/dist/client/assets/{Eye-DjkPaBUX.js → Eye-sjJGKikh.js} +1 -1
  9. package/dist/client/assets/{FilterLines-kfNzCqDM.js → FilterLines-Cx7lcqg6.js} +1 -1
  10. package/dist/client/assets/{Globe01-BRoiYTbE.js → Globe01-Bt_hPJB2.js} +1 -1
  11. package/dist/client/assets/{Globe04-DFMHyvl3.js → Globe04-DlRKSZq_.js} +1 -1
  12. package/dist/client/assets/{HardDrive-Bye3shGH.js → HardDrive-De57N91Q.js} +1 -1
  13. package/dist/client/assets/{Key01-CirPlifS.js → Key01-5RxdZLN_.js} +1 -1
  14. package/dist/client/assets/{LayoutLeft-DZCV5NpH.js → LayoutLeft-S-cLPkor.js} +1 -1
  15. package/dist/client/assets/{LinkExternal01-XHHRaqVU.js → LinkExternal01-BhehD90L.js} +1 -1
  16. package/dist/client/assets/{Monitor01-BR4SgOfO.js → Monitor01-h_OXNwJC.js} +1 -1
  17. package/dist/client/assets/{Palette-DczmnQXa.js → Palette-ZsAzLVm5.js} +1 -1
  18. package/dist/client/assets/{Play-DxGheiPj.js → Play-nJBKuj02.js} +1 -1
  19. package/dist/client/assets/{Plus-0ussTZkP.js → Plus-CaiaKbj-.js} +1 -1
  20. package/dist/client/assets/{SearchLg-CoDI0-Fh.js → SearchLg-Bjhs_hWI.js} +1 -1
  21. package/dist/client/assets/{SearchMd-D7Ao4Agx.js → SearchMd--arowag5.js} +1 -1
  22. package/dist/client/assets/{Settings02-Bwlcx4ae.js → Settings02-CayZ-vfq.js} +1 -1
  23. package/dist/client/assets/{Shield01-NGNKztb0.js → Shield01-DCT0kvtu.js} +1 -1
  24. package/dist/client/assets/{Star01-cfRl4bzo.js → Star01-BKlHIYxR.js} +1 -1
  25. package/dist/client/assets/{Stars01-Cs1PoxBb.js → Stars01-BqoOpvUh.js} +1 -1
  26. package/dist/client/assets/{Stars02-j5g6YhHz.js → Stars02-C0DOKJ37.js} +1 -1
  27. package/dist/client/assets/{Sun-BGq4qDfv.js → Sun-BJMOu8SH.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-CvTg4XHf.js → SwitchHorizontal01-Cuq08_jF.js} +1 -1
  29. package/dist/client/assets/{Tool01-CKgSH_RX.js → Tool01-B6e_3cuP.js} +1 -1
  30. package/dist/client/assets/{Trash01-B1oakIvq.js → Trash01-D3v8nZh3.js} +1 -1
  31. package/dist/client/assets/{Upload01-CRm79xjW.js → Upload01-DgnOtYBn.js} +1 -1
  32. package/dist/client/assets/{User01-Cswwhbwn.js → User01-D-53IdoS.js} +1 -1
  33. package/dist/client/assets/{Users01-DqzkWM7v.js → Users01-CDrrfyEe.js} +1 -1
  34. package/dist/client/assets/{Users03-ZGaEz5gS.js → Users03-Bjz9rtfs.js} +1 -1
  35. package/dist/client/assets/{X-CIoaB40m.js → X-soKoehcA.js} +1 -1
  36. package/dist/client/assets/{XCircle-Cei7RckW.js → XCircle-Y6IaElGg.js} +1 -1
  37. package/dist/client/assets/{XClose-rw1GtCdb.js → XClose-DVeebKfG.js} +1 -1
  38. package/dist/client/assets/{Zap-DZQ97714.js → Zap-DK-1prk8.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-Dsh-9IsE.js → ZapSquare-Bra14uvF.js} +1 -1
  40. package/dist/client/assets/{ZoomOut-xRFFCk5D.js → ZoomOut-CprKUxfo.js} +1 -1
  41. package/dist/client/assets/{access-gate-rfvHv18r.js → access-gate-D13T7JfC.js} +1 -1
  42. package/dist/client/assets/{add-section-modal-CAsCcia6.js → add-section-modal-_u6zYLx3.js} +1 -1
  43. package/dist/client/assets/{agent-icon-BDbFaar4.js → agent-icon-DO86Vfgs.js} +1 -1
  44. package/dist/client/assets/{agents-list-BYAg9CsO.js → agents-list-Ctgh8UmC.js} +1 -1
  45. package/dist/client/assets/{ai-providers-BbtgSarq.js → ai-providers-CnWAodF3.js} +1 -1
  46. package/dist/client/assets/{alert-BRIlXKgJ.js → alert-D_nBXmry.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-CoogQAyI.js → alert-dialog-CctJudYL.js} +1 -1
  48. package/dist/client/assets/{app-editor-CYObcUtN.js → app-editor-D0hNZUCK.js} +1 -1
  49. package/dist/client/assets/{auth-FSNe-Qln.js → auth-D-kpOZmC.js} +1 -1
  50. package/dist/client/assets/{auth-catchall-4SOf-uhX.js → auth-catchall-B_6jT0Qp.js} +1 -1
  51. package/dist/client/assets/{auth-entry-DkTGsuU1.js → auth-entry-BNgpl_Vt.js} +1 -1
  52. package/dist/client/assets/{auth-split-layout-BZbt3T55.js → auth-split-layout-BCzn-b6a.js} +1 -1
  53. package/dist/client/assets/{authenticate-and-persist-oauth-AVLJoeLZ.js → authenticate-and-persist-oauth-Bb3XDpxE.js} +1 -1
  54. package/dist/client/assets/{automation-list-row-B74MP2AV.js → automation-list-row-Bg5XJPuD.js} +1 -1
  55. package/dist/client/assets/{automation-runs-DeL8mYxp.js → automation-runs-DkR2u4ie.js} +1 -1
  56. package/dist/client/assets/{automations-DZPqfWcp.js → automations-TzMkuskt.js} +1 -1
  57. package/dist/client/assets/{avatar-B1R5EJiC.js → avatar-BQ3Kyuf0.js} +1 -1
  58. package/dist/client/assets/{badge-l520yMia.js → badge-DxyXnOxA.js} +1 -1
  59. package/dist/client/assets/{block-document-4LlrkJPh.js → block-document-n3IHbaOH.js} +1 -1
  60. package/dist/client/assets/{brand-context-CsUUrPv7.js → brand-context-JHYUv288.js} +1 -1
  61. package/dist/client/assets/{buckets-yNYXpf5L.js → buckets-BDT-LjaE.js} +1 -1
  62. package/dist/client/assets/{bulk-category-panel-deAMpDxT.js → bulk-category-panel-CTIhqDKY.js} +1 -1
  63. package/dist/client/assets/{capability-load-error-DmqmmHuA.js → capability-load-error-DkZWpr3e.js} +1 -1
  64. package/dist/client/assets/{card-B4_1jP1v.js → card-CwSXrYfa.js} +1 -1
  65. package/dist/client/assets/{category-editor--yvsI6uz.js → category-editor-CuCcl1fu.js} +1 -1
  66. package/dist/client/assets/{chat-context-hP8UG2OC.js → chat-context-CWVCHtNh.js} +1 -1
  67. package/dist/client/assets/{checkbox-B10Gs49f.js → checkbox-CXzFbFov.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-SbhaUofz.js → cli-auth-success-C1t0xaZb.js} +1 -1
  69. package/dist/client/assets/{collection-detail-ANUkeBt9.js → collection-detail-D8wozi1M.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-DfL82LN1.js → collection-display-button-GlHHg-p8.js} +1 -1
  71. package/dist/client/assets/{collection-search-D6Si8bup.js → collection-search-CK7SbeLm.js} +1 -1
  72. package/dist/client/assets/{collection-tabs-DIHk1Rh9.js → collection-tabs-BYvDXE3u.js} +1 -1
  73. package/dist/client/assets/{command-BsyT2gF3.js → command-o6aOFjFn.js} +1 -1
  74. package/dist/client/assets/{commerce-onboarding-DFi9ERQx.js → commerce-onboarding-G_RNBBCU.js} +1 -1
  75. package/dist/client/assets/{connect-desktop-dialog-DuBtNT6P.js → connect-desktop-dialog-BXicCGdb.js} +1 -1
  76. package/dist/client/assets/{connection-card-CZf1KxTg.js → connection-card-DF5gCOyl.js} +1 -1
  77. package/dist/client/assets/{connection-detail-OU3dMPer.js → connection-detail-DNNPsEZB.js} +1 -1
  78. package/dist/client/assets/{connection-form-helpers-kpxuZuGa.js → connection-form-helpers-AZfcjpmZ.js} +1 -1
  79. package/dist/client/assets/{connections-DA6C4okM.js → connections-DoQbupWP.js} +1 -1
  80. package/dist/client/assets/{context-menu-BMF44Sv4.js → context-menu-BUDUcCuC.js} +1 -1
  81. package/dist/client/assets/{decopilot-zs7rAH1d.js → decopilot-cqHNL5HH.js} +1 -1
  82. package/dist/client/assets/{decopilot-sse-pool-BCSCcSnU.js → decopilot-sse-pool-tEDoE75L.js} +1 -1
  83. package/dist/client/assets/{dialog-B5KRdeHp.js → dialog-MUpzEZ_a.js} +1 -1
  84. package/dist/client/assets/{domain-settings-DawWh8NV.js → domain-settings-Cb8SwxHQ.js} +1 -1
  85. package/dist/client/assets/{drawer-BnVWv1g-.js → drawer-tY7OWUht.js} +1 -1
  86. package/dist/client/assets/{dropdown-menu-BSc3nucC.js → dropdown-menu-B0ilNHIm.js} +1 -1
  87. package/dist/client/assets/{empty-state-XFkdQqS5.js → empty-state-Czqa7iKv.js} +1 -1
  88. package/dist/client/assets/{extract-connection-data-CETmfJEn.js → extract-connection-data-Bzhs7mDA.js} +1 -1
  89. package/dist/client/assets/{file-explorer-B5A_LTtA.js → file-explorer-Bp4e7qrC.js} +1 -1
  90. package/dist/client/assets/{file-type-icon-DLC7K-FU.js → file-type-icon-Dbb-NLnc.js} +1 -1
  91. package/dist/client/assets/{files-CYSGX8Br.js → files-DYuNYsXE.js} +1 -1
  92. package/dist/client/assets/{form-D6-y3xss.js → form-xZP9zTzp.js} +1 -1
  93. package/dist/client/assets/{general-Cq-A4rZQ.js → general-CSdw8TEt.js} +1 -1
  94. package/dist/client/assets/{github-repo-picker-D14UA9mH.js → github-repo-picker-DM4_ebi-.js} +1 -1
  95. package/dist/client/assets/{hooks-ky7SgeZR.js → hooks-DWBAzIxe.js} +1 -1
  96. package/dist/client/assets/{import-from-deco-dialog-B2IQLh_M.js → import-from-deco-dialog-6wLT_33m.js} +1 -1
  97. package/dist/client/assets/{index-CvNM6gJ7.js → index-BKAsjsH-.js} +1 -1
  98. package/dist/client/assets/{index-ArVtRXCn.js → index-C4mYJpYp.js} +1 -1
  99. package/dist/client/assets/{index-pytxvi5D.js → index-CEomdbKi.js} +1 -1
  100. package/dist/client/assets/{index-CQk3zrWx.js → index-CFIsMGTd.js} +1 -1
  101. package/dist/client/assets/{index-DjVW2tN1.js → index-CIHAYdYF.js} +1 -1
  102. package/dist/client/assets/{index-DPBiPJ-C.js → index-CLpKvni_.js} +1 -1
  103. package/dist/client/assets/{index-DXIn2xs3.js → index-CdNVv5k9.js} +1 -1
  104. package/dist/client/assets/{index-soM4ULSh.js → index-D7Ea9UWT.js} +1 -1
  105. package/dist/client/assets/{index-CLHJTu4J.js → index-DAU3HrWf.js} +1 -1
  106. package/dist/client/assets/{index-BWRI35ts.js → index-DIehJbj4.js} +3 -3
  107. package/dist/client/assets/index-DJJXyTPC.js +513 -0
  108. package/dist/client/assets/{index-Du0XMm_v.js → index-Dg4qC0lZ.js} +1 -1
  109. package/dist/client/assets/index-DwE90cfR.css +1 -0
  110. package/dist/client/assets/index-DyRSlQ0Q.js +1 -0
  111. package/dist/client/assets/{index-CRBaXvw2.js → index-_d06kxJQ.js} +1 -1
  112. package/dist/client/assets/{index-redirect-B36SiLks.js → index-redirect-C5vcNjWJ.js} +1 -1
  113. package/dist/client/assets/{input-OjejmtvL.js → input-BtQ4qQaF.js} +1 -1
  114. package/dist/client/assets/{integration-icon-CMvrnvAU.js → integration-icon-C_IjLFmQ.js} +1 -1
  115. package/dist/client/assets/{label-B-6AJJfx.js → label-C0Rj8N2n.js} +1 -1
  116. package/dist/client/assets/{login-D0MZ4bm6.js → login-D8OdKyY4.js} +1 -1
  117. package/dist/client/assets/{mcp-oauth-Cs3225f5.js → mcp-oauth-BZ85ErVx.js} +1 -1
  118. package/dist/client/assets/{members-DHUFTISW.js → members-EydaXoPn.js} +1 -1
  119. package/dist/client/assets/{monaco-editor-hlR1V9Xg.js → monaco-editor-xgq0EyP0.js} +1 -1
  120. package/dist/client/assets/{monitoring-stats-row-D9ZBNILj.js → monitoring-stats-row-mZ1LPQWg.js} +1 -1
  121. package/dist/client/assets/{oauth-callback-BVtREjs9.js → oauth-callback-D68eH42F.js} +1 -1
  122. package/dist/client/assets/{oauth-callback-ai-provider-84Xsqgwp.js → oauth-callback-ai-provider-B96Bh_ou.js} +1 -1
  123. package/dist/client/assets/{onboarding-hGRdCnBQ.js → onboarding-BdkX_oTQ.js} +1 -1
  124. package/dist/client/assets/{org-install-C_uX-hTh.js → org-install-DyfFH3fX.js} +1 -1
  125. package/dist/client/assets/{org-layout-Du3Y8nyv.js → org-layout-Tv5aHsgy.js} +1 -1
  126. package/dist/client/assets/{organization-choice-BSV8PQcv.js → organization-choice-BzcTHXEG.js} +1 -1
  127. package/dist/client/assets/{page-seo-form-UeIPCFfo.js → page-seo-form-DYsoH7Qw.js} +1 -1
  128. package/dist/client/assets/page-seo-sheet-J7VsxVhT.js +1 -0
  129. package/dist/client/assets/{popover-CjieJQI6.js → popover-BKgVDht9.js} +1 -1
  130. package/dist/client/assets/{post-editor-C0DQeTru.js → post-editor-D4XbtjV7.js} +1 -1
  131. package/dist/client/assets/{primitives-BWcpQxcu.js → primitives-CJR4-VSW.js} +1 -1
  132. package/dist/client/assets/{profile-WnNLbLdr.js → profile-BGkSd3IZ.js} +1 -1
  133. package/dist/client/assets/project-app-view-DlXNjN0b.js +1 -0
  134. package/dist/client/assets/record-editor-C-s2H6nU.js +1 -0
  135. package/dist/client/assets/registry-BpTdA9O9.js +2 -0
  136. package/dist/client/assets/{registry-layout-feIpWX_T.js → registry-layout-C8S2iNnx.js} +1 -1
  137. package/dist/client/assets/{require-capability-B3i1KWeL.js → require-capability-BYXyNe0q.js} +1 -1
  138. package/dist/client/assets/{required-auth-layout-BU0-L7uc.js → required-auth-layout-B_SZvHLy.js} +1 -1
  139. package/dist/client/assets/{reset-password-BI5NiuYT.js → reset-password-BkGVKyFF.js} +1 -1
  140. package/dist/client/assets/{roles-Bcdx6q63.js → roles-BjjH6MXq.js} +1 -1
  141. package/dist/client/assets/{scroll-area-CAJVczIM.js → scroll-area-1yl7oM_v.js} +1 -1
  142. package/dist/client/assets/{search-input-B39kuCOP.js → search-input-Dov4_Oox.js} +1 -1
  143. package/dist/client/assets/{secrets-BKLWSwBL.js → secrets-D-oovV5y.js} +1 -1
  144. package/dist/client/assets/{sections-editor-BW6V7Xen.js → sections-editor-DcMVTX8q.js} +1 -1
  145. package/dist/client/assets/{select-Cypqvp6X.js → select-DJjBVjeI.js} +1 -1
  146. package/dist/client/assets/{select-model-AmMdshAE.js → select-model-DnOsW4Qq.js} +1 -1
  147. package/dist/client/assets/{seo-editor-Db4XeUxK.js → seo-editor-CxR1DMl2.js} +1 -1
  148. package/dist/client/assets/settings-layout-Bxpj_h5J.js +1 -0
  149. package/dist/client/assets/{settings-section-Bhh3I4Gt.js → settings-section-D_ESkd8I.js} +1 -1
  150. package/dist/client/assets/{sheet-BJ_elYzc.js → sheet-_3F0SUS1.js} +1 -1
  151. package/dist/client/assets/{shell-controls-Dlmds7KZ.js → shell-controls-vYVcT1km.js} +1 -1
  152. package/dist/client/assets/{shell-layout-B3qTGXeU.js → shell-layout-BGt57yZc.js} +1 -1
  153. package/dist/client/assets/{shell-route-loading-BxyCYh2x.js → shell-route-loading-BQ43Xm1p.js} +1 -1
  154. package/dist/client/assets/{sidebar-BS1OseJ5.js → sidebar-BtwqZ1Ae.js} +1 -1
  155. package/dist/client/assets/{skeleton-B8YuaLcc.js → skeleton-C6xqfHPJ.js} +1 -1
  156. package/dist/client/assets/{sortable.esm-C40HPQw_.js → sortable.esm-D0IJH1Zn.js} +1 -1
  157. package/dist/client/assets/{sso-C1PYZqUx.js → sso-P3PY4geF.js} +1 -1
  158. package/dist/client/assets/store-registry-DY5kbqm9.js +2 -0
  159. package/dist/client/assets/{store-D8aMhKLt.js → store-w1YKRDns.js} +1 -1
  160. package/dist/client/assets/{studio-tools-BxPnmW0p.js → studio-tools-ClDzJuXU.js} +1 -1
  161. package/dist/client/assets/{switch-Cn0_shwO.js → switch-CK-xh24J.js} +1 -1
  162. package/dist/client/assets/{table-My_iggcp.js → table-GFiGHmpa.js} +1 -1
  163. package/dist/client/assets/{tabs-B6bHWhh_.js → tabs-BDFq9wBJ.js} +1 -1
  164. package/dist/client/assets/{task-status-YNP19PnQ.js → task-status-CJRCzIeG.js} +1 -1
  165. package/dist/client/assets/{textarea-DwTINjZV.js → textarea-BQJuMWsV.js} +1 -1
  166. package/dist/client/assets/{toggle-group-INIHP9Y1.js → toggle-group-BqL3w6iD.js} +1 -1
  167. package/dist/client/assets/{toolbar-Dd1guDSx.js → toolbar-Cr6yEG96.js} +1 -1
  168. package/dist/client/assets/{toolbar-icon-button-CnQ27T1z.js → toolbar-icon-button-Cn0IiatP.js} +1 -1
  169. package/dist/client/assets/{tools-list-DndTqH9V.js → tools-list-Bf3VzfJd.js} +1 -1
  170. package/dist/client/assets/{tooltip-DFgw2Odz.js → tooltip-CzYhvjec.js} +1 -1
  171. package/dist/client/assets/{types-gkms12ld.js → types-C9M-P1n7.js} +1 -1
  172. package/dist/client/assets/{use-ai-providers-nm553jaE.js → use-ai-providers-CAotIp_P.js} +1 -1
  173. package/dist/client/assets/{use-automations-DbJlpFJW.js → use-automations-CU_DcByB.js} +1 -1
  174. package/dist/client/assets/{use-capability-BnCpT6VQ.js → use-capability-C0CY6poH.js} +1 -1
  175. package/dist/client/assets/{use-clock-tick-Bkvb2Fln.js → use-clock-tick-MhUNg3Bz.js} +1 -1
  176. package/dist/client/assets/{use-collections-By4E7tDh.js → use-collections-CL8OToEZ.js} +1 -1
  177. package/dist/client/assets/{use-connection-Co5AeqQD.js → use-connection-BONSjbwq.js} +1 -1
  178. package/dist/client/assets/{use-copy-BfEyJ6D3.js → use-copy-BWTN-j0p.js} +1 -1
  179. package/dist/client/assets/{use-create-virtual-mcp-Du3j2Ayl.js → use-create-virtual-mcp-BPhm3wNq.js} +1 -1
  180. package/dist/client/assets/{use-debounced-autosave-CjdBfLHf.js → use-debounced-autosave-F_JeB01r.js} +1 -1
  181. package/dist/client/assets/{use-debounced-value-K05F8FWI.js → use-debounced-value-Dx2JV2J0.js} +1 -1
  182. package/dist/client/assets/{use-decopilot-events-ClafssYF.js → use-decopilot-events-Cr5N14UD.js} +1 -1
  183. package/dist/client/assets/{use-delete-connection-CXfTC0If.js → use-delete-connection-BJHa7cu_.js} +1 -1
  184. package/dist/client/assets/{use-file-configs-BBBnO3NM.js → use-file-configs-BwZUWgWQ.js} +1 -1
  185. package/dist/client/assets/{use-infinite-scroll-BPz2ABtS.js → use-infinite-scroll-DAbGnuPM.js} +1 -1
  186. package/dist/client/assets/{use-join-requests-D38KLm8q.js → use-join-requests-F15d0AOf.js} +1 -1
  187. package/dist/client/assets/{use-mcp-client-Du51QIUB.js → use-mcp-client-Cd-J6mzY.js} +1 -1
  188. package/dist/client/assets/{use-mcp-prompts-CgoDjbzH.js → use-mcp-prompts-ork1lcEN.js} +1 -1
  189. package/dist/client/assets/{use-mcp-tools-waOU6wZO.js → use-mcp-tools-CFJMomzY.js} +1 -1
  190. package/dist/client/assets/{use-members-h7ZgYc1l.js → use-members-Bq75WRin.js} +1 -1
  191. package/dist/client/assets/{use-mobile-yax9ikQF.js → use-mobile-Cp_PcOJZ.js} +1 -1
  192. package/dist/client/assets/{use-navigate-to-agent-D3tzvQE6.js → use-navigate-to-agent-DKtpfqos.js} +1 -1
  193. package/dist/client/assets/{use-org-auth-client-Bs50Q0eI.js → use-org-auth-client-TSlwZDik.js} +1 -1
  194. package/dist/client/assets/{use-org-fs-6GouTiOd.js → use-org-fs-CmfwPlsR.js} +1 -1
  195. package/dist/client/assets/{use-org-sso-CmwlJ6ZB.js → use-org-sso-W2Hpxaj_.js} +1 -1
  196. package/dist/client/assets/{use-organization-roles-BAwcxtno.js → use-organization-roles-DTVUcFTP.js} +1 -1
  197. package/dist/client/assets/{use-organization-settings-iJJATWNg.js → use-organization-settings-HSSAnkVi.js} +1 -1
  198. package/dist/client/assets/{use-registry-connections-BOF5MATS.js → use-registry-connections-CgNrgbf5.js} +1 -1
  199. package/dist/client/assets/{use-secrets-SoDZH7H6.js → use-secrets-CmQBlboZ.js} +1 -1
  200. package/dist/client/assets/{use-status-sounds-WlTr_KDB.js → use-status-sounds-BBSm7CCL.js} +1 -1
  201. package/dist/client/assets/{use-view-mode-QzLOZ0a4.js → use-view-mode-drmRjuzs.js} +1 -1
  202. package/dist/client/assets/{use-virtual-mcp-WwLP6t6l.js → use-virtual-mcp-CH60-f0g.js} +1 -1
  203. package/dist/client/assets/useInfiniteQuery-B-PVubj4.js +1 -0
  204. package/dist/client/assets/useSuspenseInfiniteQuery-B_mlL2mf.js +1 -0
  205. package/dist/client/assets/{useSuspenseQueries-ghApEOA5.js → useSuspenseQueries-DXDpzJ0A.js} +1 -1
  206. package/dist/client/assets/{variant-calendar-jFWWAwf5.js → variant-calendar-BeAk-2Sn.js} +1 -1
  207. package/dist/client/assets/{view-mode-toggle-FT5cWNJN.js → view-mode-toggle-DQaLAjML.js} +1 -1
  208. package/dist/client/index.html +2 -2
  209. package/dist/server/cli.js +1 -1
  210. package/dist/server/server.js +1 -1
  211. package/package.json +1 -1
  212. package/dist/client/assets/index-C1FJSmcm.css +0 -1
  213. package/dist/client/assets/index-CLiLvLhI.js +0 -1
  214. package/dist/client/assets/index-ejOd0bla.js +0 -513
  215. package/dist/client/assets/page-seo-sheet-CnIcjNOG.js +0 -1
  216. package/dist/client/assets/project-app-view-BnDNBewJ.js +0 -1
  217. package/dist/client/assets/record-editor-BDYPlqlc.js +0 -1
  218. package/dist/client/assets/registry-DEGguUOy.js +0 -2
  219. package/dist/client/assets/settings-layout-fUx_psyQ.js +0 -1
  220. package/dist/client/assets/store-registry-BqL1HjNb.js +0 -2
  221. package/dist/client/assets/useInfiniteQuery-D5jp5EHX.js +0 -1
  222. package/dist/client/assets/useSuspenseInfiniteQuery-BB8YcBix.js +0 -1
@@ -1 +1 @@
1
- import{r as i,a2 as $,j as c,a3 as L,ai as z,Z as A,U as _,V as g,T as E,Y as j,a1 as G,W as w,dB as H,dC as K,X as U,dD as V,dE as W,dF as Z,_ as B,$ as X,a0 as Y,c as R,l as q}from"./index-BWRI35ts.js";var C="Popover",[b]=U(C,[w]),P=w(),[J,u]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(J,{scope:e,contentId:z(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(E,{...s,...r,ref:e})});Q.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(E,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=b(O,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=O;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return W(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(X,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(k,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(Y,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{fe as P,ve as a,ge as b};
1
+ import{r as i,a2 as $,j as c,a3 as L,ai as z,Z as A,U as _,V as g,T as E,Y as j,a1 as G,W as w,dB as H,dC as K,X as U,dD as V,dE as W,dF as Z,_ as B,$ as X,a0 as Y,c as R,l as q}from"./index-DIehJbj4.js";var C="Popover",[b]=U(C,[w]),P=w(),[J,u]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(J,{scope:e,contentId:z(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(E,{...s,...r,ref:e})});Q.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(E,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=b(O,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=O;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return W(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(X,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(k,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(Y,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{fe as P,ve as a,ge as b};
@@ -1 +1 @@
1
- import{c as H,j as t,B as Z}from"./index-BWRI35ts.js";import{n as ee}from"./LinkExternal01-XHHRaqVU.js";import{aE as te,t as oe}from"./agent-icon-BDbFaar4.js";import{I as J}from"./input-OjejmtvL.js";import{L as G}from"./label-B-6AJJfx.js";import{M as ie}from"./automation-runs-DeL8mYxp.js";import{b as Q,a as se,c as W,T as le}from"./tabs-B6bHWhh_.js";import{T as re}from"./textarea-DwTINjZV.js";import{au as ae,av as me,at as pe,aw as ne,ax as ce,ay as de,az as fe}from"./index-ejOd0bla.js";import{b as ue,a as xe,B as he}from"./block-document-4LlrkJPh.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-BWcpQxcu.js";import"./AlertCircle-DhSahFA7.js";import"./Tool01-CKgSH_RX.js";import"./SwitchHorizontal01-CvTg4XHf.js";import"./Settings02-Bwlcx4ae.js";import"./XCircle-Cei7RckW.js";import"./ArrowUpRight-ChBOrH47.js";import"./ZapSquare-Dsh-9IsE.js";import"./Users03-ZGaEz5gS.js";import"./CheckCircle-DQTTJHBu.js";import"./ChevronUp-CK13E_jJ.js";import"./ChevronDown-DxT6pZ2C.js";import"./ChevronRight-Bauk0cfb.js";import"./DotsVertical-BsgRawWl.js";import"./Stars02-j5g6YhHz.js";import"./Eye-DjkPaBUX.js";import"./ZoomOut-xRFFCk5D.js";import"./Globe01-BRoiYTbE.js";import"./FilterLines-kfNzCqDM.js";import"./Star01-cfRl4bzo.js";import"./Globe04-DFMHyvl3.js";import"./HardDrive-Bye3shGH.js";import"./Key01-CirPlifS.js";import"./LayoutLeft-DZCV5NpH.js";import"./Monitor01-BR4SgOfO.js";import"./Sun-BGq4qDfv.js";import"./Palette-DczmnQXa.js";import"./Play-DxGheiPj.js";import"./Plus-0ussTZkP.js";import"./SearchLg-CoDI0-Fh.js";import"./SearchMd-D7Ao4Agx.js";import"./Shield01-NGNKztb0.js";import"./Stars01-Cs1PoxBb.js";import"./Trash01-B1oakIvq.js";import"./Upload01-CRm79xjW.js";import"./User01-Cswwhbwn.js";import"./Users01-DqzkWM7v.js";import"./XClose-rw1GtCdb.js";import"./X-CIoaB40m.js";import"./Zap-DZQ97714.js";import"./useInfiniteQuery-D5jp5EHX.js";import"./use-infinite-scroll-BPz2ABtS.js";import"./use-connection-Co5AeqQD.js";import"./use-collections-By4E7tDh.js";import"./use-mcp-client-Du51QIUB.js";import"./auth-FSNe-Qln.js";import"./use-virtual-mcp-WwLP6t6l.js";import"./card-B4_1jP1v.js";import"./sheet-BJ_elYzc.js";import"./table-My_iggcp.js";import"./empty-state-XFkdQqS5.js";import"./use-members-h7ZgYc1l.js";import"./use-org-auth-client-Bs50Q0eI.js";import"./task-status-YNP19PnQ.js";import"./use-automations-DbJlpFJW.js";import"./studio-tools-BxPnmW0p.js";import"./useSuspenseInfiniteQuery-BB8YcBix.js";import"./badge-l520yMia.js";import"./select-Cypqvp6X.js";import"./tooltip-DFgw2Odz.js";import"./checkbox-B10Gs49f.js";import"./command-BsyT2gF3.js";import"./index-CRBaXvw2.js";import"./dialog-B5KRdeHp.js";import"./popover-CjieJQI6.js";import"./avatar-B1R5EJiC.js";import"./scroll-area-CAJVczIM.js";import"./use-clock-tick-Bkvb2Fln.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BfEyJ6D3.js";import"./file-type-icon-DLC7K-FU.js";import"./use-mobile-yax9ikQF.js";import"./tab-id-AX1D_RMI.js";import"./content-blocks-o63cs2vh.js";import"./types-gkms12ld.js";import"./chat-context-hP8UG2OC.js";import"./hooks-ky7SgeZR.js";import"./decopilot-sse-pool-BCSCcSnU.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-nm553jaE.js";import"./use-decopilot-events-ClafssYF.js";import"./use-organization-settings-iJJATWNg.js";import"./shell-layout-B3qTGXeU.js";import"./alert-dialog-CoogQAyI.js";import"./required-auth-layout-BU0-L7uc.js";import"./use-org-sso-CmwlJ6ZB.js";import"./integration-icon-CMvrnvAU.js";import"./use-navigate-to-agent-D3tzvQE6.js";import"./use-mcp-prompts-CgoDjbzH.js";import"./form-D6-y3xss.js";import"./index-soM4ULSh.js";import"./drawer-BnVWv1g-.js";import"./collection-search-D6Si8bup.js";import"./toggle-group-INIHP9Y1.js";import"./sortable.esm-C40HPQw_.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CZf1KxTg.js";import"./use-registry-connections-BOF5MATS.js";import"./extract-connection-data-CETmfJEn.js";import"./collection-tabs-DIHk1Rh9.js";import"./connection-form-helpers-kpxuZuGa.js";import"./authenticate-and-persist-oauth-AVLJoeLZ.js";import"./mcp-oauth-Cs3225f5.js";import"./connect-desktop-dialog-DuBtNT6P.js";import"./decopilot-zs7rAH1d.js";import"./skeleton-B8YuaLcc.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Bhh3I4Gt.js";import"./use-org-fs-6GouTiOd.js";import"./dropdown-menu-BSc3nucC.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BxyCYh2x.js";import"./use-status-sounds-WlTr_KDB.js";import"./toolbar-Dd1guDSx.js";import"./index-CvNM6gJ7.js";import"./use-debounced-value-K05F8FWI.js";import"./index-CLHJTu4J.js";import"./toolbar-icon-button-CnQ27T1z.js";import"./use-mcp-tools-waOU6wZO.js";import"./use-capability-BnCpT6VQ.js";import"./tools-list-DndTqH9V.js";import"./switch-Cn0_shwO.js";import"./use-debounced-autosave-CjdBfLHf.js";import"./index-ArVtRXCn.js";import"./sidebar-BS1OseJ5.js";import"./search-input-B39kuCOP.js";import"./github-repo-picker-D14UA9mH.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-SoDZH7H6.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-BBBnO3NM.js";import"./monaco-editor-hlR1V9Xg.js";import"./select-model-AmMdshAE.js";import"./automation-list-row-B74MP2AV.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function mi(A){const e=H.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 U;e[40]!==L||e[41]!==R?(U=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]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=xe(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(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:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let z;e[53]!==m||e[54]!==r||e[55]!==h?(z=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]=z):z=e[56];let D;e[57]!==M||e[58]!==z?(D=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,z]}),e[57]=M,e[58]=z,e[59]=D):D=e[59];let V;e[60]!==U||e[61]!==D?(V=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:[U,D]})}),e[60]=U,e[61]=D,e[62]=V):V=e[62];let q;return e[63]!==v||e[64]!==V?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=q):q=e[65],q}function Ce(A){const e=H.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(J,{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=H.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(J,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{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=H.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{mi as PostEditor};
1
+ import{c as H,j as t,B as Z}from"./index-DIehJbj4.js";import{n as ee}from"./LinkExternal01-BhehD90L.js";import{aE as te,t as oe}from"./agent-icon-DO86Vfgs.js";import{I as J}from"./input-BtQ4qQaF.js";import{L as G}from"./label-C0Rj8N2n.js";import{M as ie}from"./automation-runs-DkR2u4ie.js";import{b as Q,a as se,c as W,T as le}from"./tabs-BDFq9wBJ.js";import{T as re}from"./textarea-BQJuMWsV.js";import{au as ae,av as me,at as pe,aw as ne,ax as ce,ay as de,az as fe}from"./index-DJJXyTPC.js";import{b as ue,a as xe,B as he}from"./block-document-n3IHbaOH.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-CJR4-VSW.js";import"./AlertCircle-N4QU3JGm.js";import"./Tool01-B6e_3cuP.js";import"./SwitchHorizontal01-Cuq08_jF.js";import"./Settings02-CayZ-vfq.js";import"./XCircle-Y6IaElGg.js";import"./ArrowUpRight-B7OX2mHb.js";import"./ZapSquare-Bra14uvF.js";import"./Users03-Bjz9rtfs.js";import"./CheckCircle-oUhECjBb.js";import"./ChevronUp-CudmCGB7.js";import"./ChevronDown-Bfo_cMHG.js";import"./ChevronRight-C7QId3FI.js";import"./DotsVertical-BT5O7y9p.js";import"./Stars02-C0DOKJ37.js";import"./Eye-sjJGKikh.js";import"./ZoomOut-CprKUxfo.js";import"./Globe01-Bt_hPJB2.js";import"./FilterLines-Cx7lcqg6.js";import"./Star01-BKlHIYxR.js";import"./Globe04-DlRKSZq_.js";import"./HardDrive-De57N91Q.js";import"./Key01-5RxdZLN_.js";import"./LayoutLeft-S-cLPkor.js";import"./Monitor01-h_OXNwJC.js";import"./Sun-BJMOu8SH.js";import"./Palette-ZsAzLVm5.js";import"./Play-nJBKuj02.js";import"./Plus-CaiaKbj-.js";import"./SearchLg-Bjhs_hWI.js";import"./SearchMd--arowag5.js";import"./Shield01-DCT0kvtu.js";import"./Stars01-BqoOpvUh.js";import"./Trash01-D3v8nZh3.js";import"./Upload01-DgnOtYBn.js";import"./User01-D-53IdoS.js";import"./Users01-CDrrfyEe.js";import"./XClose-DVeebKfG.js";import"./X-soKoehcA.js";import"./Zap-DK-1prk8.js";import"./useInfiniteQuery-B-PVubj4.js";import"./use-infinite-scroll-DAbGnuPM.js";import"./use-connection-BONSjbwq.js";import"./use-collections-CL8OToEZ.js";import"./use-mcp-client-Cd-J6mzY.js";import"./auth-D-kpOZmC.js";import"./use-virtual-mcp-CH60-f0g.js";import"./card-CwSXrYfa.js";import"./sheet-_3F0SUS1.js";import"./table-GFiGHmpa.js";import"./empty-state-Czqa7iKv.js";import"./use-members-Bq75WRin.js";import"./use-org-auth-client-TSlwZDik.js";import"./task-status-CJRCzIeG.js";import"./use-automations-CU_DcByB.js";import"./studio-tools-ClDzJuXU.js";import"./useSuspenseInfiniteQuery-B_mlL2mf.js";import"./badge-DxyXnOxA.js";import"./select-DJjBVjeI.js";import"./tooltip-CzYhvjec.js";import"./checkbox-CXzFbFov.js";import"./command-o6aOFjFn.js";import"./index-_d06kxJQ.js";import"./dialog-MUpzEZ_a.js";import"./popover-BKgVDht9.js";import"./avatar-BQ3Kyuf0.js";import"./scroll-area-1yl7oM_v.js";import"./use-clock-tick-MhUNg3Bz.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BWTN-j0p.js";import"./file-type-icon-Dbb-NLnc.js";import"./use-mobile-Cp_PcOJZ.js";import"./tab-id-AX1D_RMI.js";import"./content-blocks-o63cs2vh.js";import"./types-C9M-P1n7.js";import"./chat-context-CWVCHtNh.js";import"./hooks-DWBAzIxe.js";import"./decopilot-sse-pool-tEDoE75L.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-CAotIp_P.js";import"./use-decopilot-events-Cr5N14UD.js";import"./use-organization-settings-HSSAnkVi.js";import"./shell-layout-BGt57yZc.js";import"./alert-dialog-CctJudYL.js";import"./required-auth-layout-B_SZvHLy.js";import"./use-org-sso-W2Hpxaj_.js";import"./integration-icon-C_IjLFmQ.js";import"./use-navigate-to-agent-DKtpfqos.js";import"./use-mcp-prompts-ork1lcEN.js";import"./form-xZP9zTzp.js";import"./index-D7Ea9UWT.js";import"./drawer-tY7OWUht.js";import"./collection-search-CK7SbeLm.js";import"./toggle-group-BqL3w6iD.js";import"./sortable.esm-D0IJH1Zn.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DF5gCOyl.js";import"./use-registry-connections-CgNrgbf5.js";import"./extract-connection-data-Bzhs7mDA.js";import"./collection-tabs-BYvDXE3u.js";import"./connection-form-helpers-AZfcjpmZ.js";import"./authenticate-and-persist-oauth-Bb3XDpxE.js";import"./mcp-oauth-BZ85ErVx.js";import"./connect-desktop-dialog-BXicCGdb.js";import"./decopilot-cqHNL5HH.js";import"./skeleton-C6xqfHPJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-D_ESkd8I.js";import"./use-org-fs-CmfwPlsR.js";import"./dropdown-menu-B0ilNHIm.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BQ43Xm1p.js";import"./use-status-sounds-BBSm7CCL.js";import"./toolbar-Cr6yEG96.js";import"./index-BKAsjsH-.js";import"./use-debounced-value-Dx2JV2J0.js";import"./index-DAU3HrWf.js";import"./toolbar-icon-button-Cn0IiatP.js";import"./use-mcp-tools-CFJMomzY.js";import"./use-capability-C0CY6poH.js";import"./tools-list-Bf3VzfJd.js";import"./switch-CK-xh24J.js";import"./use-debounced-autosave-F_JeB01r.js";import"./index-C4mYJpYp.js";import"./sidebar-BtwqZ1Ae.js";import"./search-input-Dov4_Oox.js";import"./github-repo-picker-DM4_ebi-.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CmQBlboZ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-BwZUWgWQ.js";import"./monaco-editor-xgq0EyP0.js";import"./select-model-DnOsW4Qq.js";import"./automation-list-row-Bg5XJPuD.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function mi(A){const e=H.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 U;e[40]!==L||e[41]!==R?(U=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]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=xe(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(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:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let z;e[53]!==m||e[54]!==r||e[55]!==h?(z=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]=z):z=e[56];let D;e[57]!==M||e[58]!==z?(D=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,z]}),e[57]=M,e[58]=z,e[59]=D):D=e[59];let V;e[60]!==U||e[61]!==D?(V=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:[U,D]})}),e[60]=U,e[61]=D,e[62]=V):V=e[62];let q;return e[63]!==v||e[64]!==V?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=q):q=e[65],q}function Ce(A){const e=H.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(J,{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=H.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(J,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{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=H.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{mi as PostEditor};
@@ -1 +1 @@
1
- import{c as h,r as y,l as j,j as f}from"./index-BWRI35ts.js";import{a7 as A}from"./agent-icon-BDbFaar4.js";import{s as N}from"./Plus-0ussTZkP.js";import{s as _}from"./Trash01-B1oakIvq.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-DIehJbj4.js";import{a7 as A}from"./agent-icon-DO86Vfgs.js";import{s as N}from"./Plus-CaiaKbj-.js";import{s as _}from"./Trash01-D3v8nZh3.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,p as R,ad as q,J as B,v as N,t as T}from"./index-BWRI35ts.js";import{P as L}from"./index-ArVtRXCn.js";import{A as U}from"./avatar-B1R5EJiC.js";import{S as I}from"./switch-Cn0_shwO.js";import{S as G,a as Y,d as $,c as J}from"./select-Cypqvp6X.js";import{T as K,a as z}from"./toggle-group-INIHP9Y1.js";import{I as O}from"./input-OjejmtvL.js";import{i as H}from"./Monitor01-BR4SgOfO.js";import{n as M,a as Q}from"./Sun-BGq4qDfv.js";import{i as W}from"./Play-DxGheiPj.js";import{u as X}from"./use-debounced-autosave-CjdBfLHf.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-CQk3zrWx.js";import{c as te,b as A,S as E,a as F}from"./settings-section-Bhh3I4Gt.js";import"./sidebar-BS1OseJ5.js";import"./LayoutLeft-DZCV5NpH.js";import"./use-mobile-yax9ikQF.js";import"./sheet-BJ_elYzc.js";import"./X-CIoaB40m.js";import"./tooltip-DFgw2Odz.js";import"./User01-Cswwhbwn.js";import"./ChevronUp-CK13E_jJ.js";import"./ChevronDown-DxT6pZ2C.js";import"./card-B4_1jP1v.js";import"./ArrowUpRight-ChBOrH47.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),g=s?.user,p=g?.image,h=g?.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 v=n.control._formState.dirtyFields;if(Object.keys(v).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.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:d}=X(_);if(o)return null;const j=g?.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]!==d||e[8]!==x?(l=v=>{const{field:a}=v;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),d()},onKeyDown:f=>{f.key==="Enter"&&d()},placeholder:"Your name",className:"w-[280px]"})},e[7]=d,e[8]=x,e[9]=l):l=e[9];let m;e[10]!==n.control||e[11]!==l?(m=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]=m):m=e[12];const b=g?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==m||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,m,r]})}),e[15]=i,e[16]=m,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let g;e[0]!==o?(g=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(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=g):g=e[1];const p=g;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(M,{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(H,{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 d;e[10]!==p||e[11]!==s.enableNotifications?(d=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=d):d=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]!==d||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:d,action:j}),e[16]=d,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 m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=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]=m):m=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 r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[m,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let v;e[31]!==o?(v=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=v):v=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,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]!==v||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:v,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=v,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 re(e){return{...e,enableNotifications:!1}}function ae(){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(ae,{}),e[0]=s):s=e[0],s}export{De as default};
1
+ import{c as V,j as t,a as D,p as R,ad as q,J as B,v as N,t as T}from"./index-DIehJbj4.js";import{P as L}from"./index-C4mYJpYp.js";import{A as U}from"./avatar-BQ3Kyuf0.js";import{S as I}from"./switch-CK-xh24J.js";import{S as G,a as Y,d as $,c as J}from"./select-DJjBVjeI.js";import{T as K,a as z}from"./toggle-group-BqL3w6iD.js";import{I as O}from"./input-BtQ4qQaF.js";import{i as H}from"./Monitor01-h_OXNwJC.js";import{n as M,a as Q}from"./Sun-BJMOu8SH.js";import{i as W}from"./Play-nJBKuj02.js";import{u as X}from"./use-debounced-autosave-F_JeB01r.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-CFIsMGTd.js";import{c as te,b as A,S as E,a as F}from"./settings-section-D_ESkd8I.js";import"./sidebar-BtwqZ1Ae.js";import"./LayoutLeft-S-cLPkor.js";import"./use-mobile-Cp_PcOJZ.js";import"./sheet-_3F0SUS1.js";import"./X-soKoehcA.js";import"./tooltip-CzYhvjec.js";import"./User01-D-53IdoS.js";import"./ChevronUp-CudmCGB7.js";import"./ChevronDown-Bfo_cMHG.js";import"./card-CwSXrYfa.js";import"./ArrowUpRight-B7OX2mHb.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),g=s?.user,p=g?.image,h=g?.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 v=n.control._formState.dirtyFields;if(Object.keys(v).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.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:d}=X(_);if(o)return null;const j=g?.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]!==d||e[8]!==x?(l=v=>{const{field:a}=v;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),d()},onKeyDown:f=>{f.key==="Enter"&&d()},placeholder:"Your name",className:"w-[280px]"})},e[7]=d,e[8]=x,e[9]=l):l=e[9];let m;e[10]!==n.control||e[11]!==l?(m=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]=m):m=e[12];const b=g?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==m||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,m,r]})}),e[15]=i,e[16]=m,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let g;e[0]!==o?(g=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(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=g):g=e[1];const p=g;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(M,{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(H,{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 d;e[10]!==p||e[11]!==s.enableNotifications?(d=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=d):d=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]!==d||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:d,action:j}),e[16]=d,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 m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=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]=m):m=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 r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[m,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let v;e[31]!==o?(v=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=v):v=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,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]!==v||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:v,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=v,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 re(e){return{...e,enableNotifications:!1}}function ae(){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(ae,{}),e[0]=s):s=e[0],s}export{De as default};
@@ -0,0 +1 @@
1
+ import{c as $,D as H,j as A}from"./index-DIehJbj4.js";import{l as L,g as E,s as y}from"./scroll-area-1yl7oM_v.js";import{p as O,u as k}from"./use-mcp-client-Cd-J6mzY.js";import{b as q,c as B}from"./use-mcp-tools-CFJMomzY.js";import{u as Y}from"./index-DJJXyTPC.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-C9M-P1n7.js";import{u as z,b as F}from"./chat-context-CWVCHtNh.js";import{b as J}from"./shell-layout-BGt57yZc.js";import"./agent-icon-DO86Vfgs.js";import"./AlertCircle-N4QU3JGm.js";import"./Tool01-B6e_3cuP.js";import"./SwitchHorizontal01-Cuq08_jF.js";import"./Settings02-CayZ-vfq.js";import"./XCircle-Y6IaElGg.js";import"./ArrowUpRight-B7OX2mHb.js";import"./ZapSquare-Bra14uvF.js";import"./Users03-Bjz9rtfs.js";import"./CheckCircle-oUhECjBb.js";import"./ChevronUp-CudmCGB7.js";import"./ChevronDown-Bfo_cMHG.js";import"./ChevronRight-C7QId3FI.js";import"./DotsVertical-BT5O7y9p.js";import"./Stars02-C0DOKJ37.js";import"./Eye-sjJGKikh.js";import"./ZoomOut-CprKUxfo.js";import"./Globe01-Bt_hPJB2.js";import"./FilterLines-Cx7lcqg6.js";import"./Star01-BKlHIYxR.js";import"./Globe04-DlRKSZq_.js";import"./HardDrive-De57N91Q.js";import"./Key01-5RxdZLN_.js";import"./LayoutLeft-S-cLPkor.js";import"./LinkExternal01-BhehD90L.js";import"./Monitor01-h_OXNwJC.js";import"./Sun-BJMOu8SH.js";import"./Palette-ZsAzLVm5.js";import"./Play-nJBKuj02.js";import"./Plus-CaiaKbj-.js";import"./SearchLg-Bjhs_hWI.js";import"./SearchMd--arowag5.js";import"./Shield01-DCT0kvtu.js";import"./Stars01-BqoOpvUh.js";import"./Trash01-D3v8nZh3.js";import"./Upload01-DgnOtYBn.js";import"./User01-D-53IdoS.js";import"./Users01-CDrrfyEe.js";import"./XClose-DVeebKfG.js";import"./X-soKoehcA.js";import"./Zap-DK-1prk8.js";import"./use-clock-tick-MhUNg3Bz.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BWTN-j0p.js";import"./tooltip-CzYhvjec.js";import"./file-type-icon-Dbb-NLnc.js";import"./dialog-MUpzEZ_a.js";import"./use-mobile-Cp_PcOJZ.js";import"./tab-id-AX1D_RMI.js";import"./hooks-DWBAzIxe.js";import"./decopilot-sse-pool-tEDoE75L.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-ClDzJuXU.js";import"./sheet-_3F0SUS1.js";import"./integration-icon-C_IjLFmQ.js";import"./use-virtual-mcp-CH60-f0g.js";import"./use-collections-CL8OToEZ.js";import"./use-navigate-to-agent-DKtpfqos.js";import"./use-connection-BONSjbwq.js";import"./use-mcp-prompts-ork1lcEN.js";import"./form-xZP9zTzp.js";import"./label-C0Rj8N2n.js";import"./input-BtQ4qQaF.js";import"./select-DJjBVjeI.js";import"./auth-D-kpOZmC.js";import"./index-D7Ea9UWT.js";import"./drawer-tY7OWUht.js";import"./collection-search-CK7SbeLm.js";import"./tabs-BDFq9wBJ.js";import"./toggle-group-BqL3w6iD.js";import"./sortable.esm-D0IJH1Zn.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DF5gCOyl.js";import"./use-registry-connections-CgNrgbf5.js";import"./use-organization-settings-HSSAnkVi.js";import"./useInfiniteQuery-B-PVubj4.js";import"./use-infinite-scroll-DAbGnuPM.js";import"./extract-connection-data-Bzhs7mDA.js";import"./card-CwSXrYfa.js";import"./collection-tabs-BYvDXE3u.js";import"./badge-DxyXnOxA.js";import"./textarea-BQJuMWsV.js";import"./connection-form-helpers-AZfcjpmZ.js";import"./authenticate-and-persist-oauth-Bb3XDpxE.js";import"./mcp-oauth-BZ85ErVx.js";import"./useSuspenseInfiniteQuery-B_mlL2mf.js";import"./use-ai-providers-CAotIp_P.js";import"./connect-desktop-dialog-BXicCGdb.js";import"./decopilot-cqHNL5HH.js";import"./checkbox-CXzFbFov.js";import"./skeleton-C6xqfHPJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-BQ3Kyuf0.js";import"./settings-section-D_ESkd8I.js";import"./popover-BKgVDht9.js";import"./command-o6aOFjFn.js";import"./index-_d06kxJQ.js";import"./use-org-fs-CmfwPlsR.js";import"./dropdown-menu-B0ilNHIm.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BQ43Xm1p.js";import"./task-status-CJRCzIeG.js";import"./use-status-sounds-BBSm7CCL.js";import"./use-decopilot-events-Cr5N14UD.js";import"./empty-state-Czqa7iKv.js";import"./toolbar-Cr6yEG96.js";import"./index-BKAsjsH-.js";import"./alert-dialog-CctJudYL.js";import"./use-debounced-value-Dx2JV2J0.js";import"./index-DAU3HrWf.js";import"./toolbar-icon-button-Cn0IiatP.js";import"./use-capability-C0CY6poH.js";import"./tools-list-Bf3VzfJd.js";import"./switch-CK-xh24J.js";import"./use-debounced-autosave-F_JeB01r.js";import"./index-C4mYJpYp.js";import"./sidebar-BtwqZ1Ae.js";import"./search-input-Dov4_Oox.js";import"./github-repo-picker-DM4_ebi-.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CmQBlboZ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-DkR2u4ie.js";import"./table-GFiGHmpa.js";import"./use-members-Bq75WRin.js";import"./use-org-auth-client-TSlwZDik.js";import"./use-automations-CU_DcByB.js";import"./use-file-configs-BwZUWgWQ.js";import"./monaco-editor-xgq0EyP0.js";import"./select-model-DnOsW4Qq.js";import"./automation-list-row-Bg5XJPuD.js";import"./required-auth-layout-B_SZvHLy.js";import"./use-org-sso-W2Hpxaj_.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${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]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(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 b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function we(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{we as AppViewContent};
@@ -0,0 +1 @@
1
+ import{c as S,j as r}from"./index-DIehJbj4.js";import{I as T}from"./input-BtQ4qQaF.js";import{L as C}from"./label-C0Rj8N2n.js";import{T as L}from"./textarea-BQJuMWsV.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-DJJXyTPC.js";import{u as M,s as P}from"./primitives-CJR4-VSW.js";import"./index-D7Ea9UWT.js";import"./SwitchHorizontal01-Cuq08_jF.js";import"./chat-context-CWVCHtNh.js";import"./hooks-DWBAzIxe.js";import"./use-mcp-client-Cd-J6mzY.js";import"./auth-D-kpOZmC.js";import"./decopilot-sse-pool-tEDoE75L.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-CH60-f0g.js";import"./use-collections-CL8OToEZ.js";import"./use-ai-providers-CAotIp_P.js";import"./studio-tools-ClDzJuXU.js";import"./use-decopilot-events-Cr5N14UD.js";import"./tab-id-AX1D_RMI.js";import"./use-organization-settings-HSSAnkVi.js";import"./scroll-area-1yl7oM_v.js";import"./agent-icon-DO86Vfgs.js";import"./AlertCircle-N4QU3JGm.js";import"./Tool01-B6e_3cuP.js";import"./Settings02-CayZ-vfq.js";import"./XCircle-Y6IaElGg.js";import"./ArrowUpRight-B7OX2mHb.js";import"./ZapSquare-Bra14uvF.js";import"./Users03-Bjz9rtfs.js";import"./CheckCircle-oUhECjBb.js";import"./ChevronUp-CudmCGB7.js";import"./ChevronDown-Bfo_cMHG.js";import"./ChevronRight-C7QId3FI.js";import"./DotsVertical-BT5O7y9p.js";import"./Stars02-C0DOKJ37.js";import"./Eye-sjJGKikh.js";import"./ZoomOut-CprKUxfo.js";import"./Globe01-Bt_hPJB2.js";import"./FilterLines-Cx7lcqg6.js";import"./Star01-BKlHIYxR.js";import"./Globe04-DlRKSZq_.js";import"./HardDrive-De57N91Q.js";import"./Key01-5RxdZLN_.js";import"./LayoutLeft-S-cLPkor.js";import"./LinkExternal01-BhehD90L.js";import"./Monitor01-h_OXNwJC.js";import"./Sun-BJMOu8SH.js";import"./Palette-ZsAzLVm5.js";import"./Play-nJBKuj02.js";import"./Plus-CaiaKbj-.js";import"./SearchLg-Bjhs_hWI.js";import"./SearchMd--arowag5.js";import"./Shield01-DCT0kvtu.js";import"./Stars01-BqoOpvUh.js";import"./Trash01-D3v8nZh3.js";import"./Upload01-DgnOtYBn.js";import"./User01-D-53IdoS.js";import"./Users01-CDrrfyEe.js";import"./XClose-DVeebKfG.js";import"./X-soKoehcA.js";import"./Zap-DK-1prk8.js";import"./use-clock-tick-MhUNg3Bz.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BWTN-j0p.js";import"./tooltip-CzYhvjec.js";import"./file-type-icon-Dbb-NLnc.js";import"./dialog-MUpzEZ_a.js";import"./use-mobile-Cp_PcOJZ.js";import"./content-blocks-o63cs2vh.js";import"./types-C9M-P1n7.js";import"./shell-layout-BGt57yZc.js";import"./avatar-BQ3Kyuf0.js";import"./alert-dialog-CctJudYL.js";import"./required-auth-layout-B_SZvHLy.js";import"./use-org-sso-W2Hpxaj_.js";import"./sheet-_3F0SUS1.js";import"./integration-icon-C_IjLFmQ.js";import"./use-navigate-to-agent-DKtpfqos.js";import"./use-connection-BONSjbwq.js";import"./use-mcp-prompts-ork1lcEN.js";import"./form-xZP9zTzp.js";import"./select-DJjBVjeI.js";import"./drawer-tY7OWUht.js";import"./collection-search-CK7SbeLm.js";import"./tabs-BDFq9wBJ.js";import"./toggle-group-BqL3w6iD.js";import"./sortable.esm-D0IJH1Zn.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DF5gCOyl.js";import"./use-registry-connections-CgNrgbf5.js";import"./useInfiniteQuery-B-PVubj4.js";import"./use-infinite-scroll-DAbGnuPM.js";import"./extract-connection-data-Bzhs7mDA.js";import"./card-CwSXrYfa.js";import"./collection-tabs-BYvDXE3u.js";import"./badge-DxyXnOxA.js";import"./connection-form-helpers-AZfcjpmZ.js";import"./authenticate-and-persist-oauth-Bb3XDpxE.js";import"./mcp-oauth-BZ85ErVx.js";import"./useSuspenseInfiniteQuery-B_mlL2mf.js";import"./connect-desktop-dialog-BXicCGdb.js";import"./decopilot-cqHNL5HH.js";import"./checkbox-CXzFbFov.js";import"./skeleton-C6xqfHPJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-D_ESkd8I.js";import"./popover-BKgVDht9.js";import"./command-o6aOFjFn.js";import"./index-_d06kxJQ.js";import"./use-org-fs-CmfwPlsR.js";import"./dropdown-menu-B0ilNHIm.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BQ43Xm1p.js";import"./task-status-CJRCzIeG.js";import"./use-status-sounds-BBSm7CCL.js";import"./empty-state-Czqa7iKv.js";import"./toolbar-Cr6yEG96.js";import"./index-BKAsjsH-.js";import"./use-debounced-value-Dx2JV2J0.js";import"./index-DAU3HrWf.js";import"./toolbar-icon-button-Cn0IiatP.js";import"./use-mcp-tools-CFJMomzY.js";import"./use-capability-C0CY6poH.js";import"./tools-list-Bf3VzfJd.js";import"./switch-CK-xh24J.js";import"./use-debounced-autosave-F_JeB01r.js";import"./index-C4mYJpYp.js";import"./sidebar-BtwqZ1Ae.js";import"./search-input-Dov4_Oox.js";import"./github-repo-picker-DM4_ebi-.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CmQBlboZ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-DkR2u4ie.js";import"./table-GFiGHmpa.js";import"./use-members-Bq75WRin.js";import"./use-org-auth-client-TSlwZDik.js";import"./use-automations-CU_DcByB.js";import"./use-file-configs-BwZUWgWQ.js";import"./monaco-editor-xgq0EyP0.js";import"./select-model-DnOsW4Qq.js";import"./automation-list-row-Bg5XJPuD.js";const $={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"}]},q={authors:"Author"};function Nr(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:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=M(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=q[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(D,{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=$[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(K,{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{Nr as RecordEditor};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C8S2iNnx.js","assets/index-DIehJbj4.js","assets/index-DwE90cfR.css","assets/XCircle-Y6IaElGg.js","assets/CheckCircle-oUhECjBb.js","assets/Settings02-CayZ-vfq.js","assets/use-mcp-client-Cd-J6mzY.js","assets/auth-D-kpOZmC.js","assets/useInfiniteQuery-B-PVubj4.js","assets/use-infinite-scroll-DAbGnuPM.js","assets/studio-tools-ClDzJuXU.js","assets/badge-DxyXnOxA.js","assets/input-BtQ4qQaF.js","assets/dropdown-menu-B0ilNHIm.js","assets/ChevronUp-CudmCGB7.js","assets/ChevronRight-C7QId3FI.js","assets/DotsVertical-BT5O7y9p.js","assets/table-GFiGHmpa.js","assets/toggle-group-BqL3w6iD.js","assets/use-view-mode-drmRjuzs.js","assets/use-mobile-Cp_PcOJZ.js","assets/FilterLines-Cx7lcqg6.js","assets/Globe01-Bt_hPJB2.js","assets/SearchMd--arowag5.js","assets/dialog-MUpzEZ_a.js","assets/X-soKoehcA.js","assets/AlertCircle-N4QU3JGm.js","assets/Upload01-DgnOtYBn.js","assets/alert-dialog-CctJudYL.js","assets/card-CwSXrYfa.js","assets/Trash01-D3v8nZh3.js","assets/label-C0Rj8N2n.js","assets/select-DJjBVjeI.js","assets/tooltip-CzYhvjec.js","assets/ChevronDown-Bfo_cMHG.js","assets/switch-CK-xh24J.js","assets/textarea-BQJuMWsV.js","assets/checkbox-CXzFbFov.js","assets/Eye-sjJGKikh.js","assets/LinkExternal01-BhehD90L.js","assets/use-copy-BWTN-j0p.js","assets/Key01-5RxdZLN_.js","assets/Plus-CaiaKbj-.js","assets/mcp-oauth-BZ85ErVx.js","assets/Play-nJBKuj02.js"])))=>i.map(i=>d[i]);
2
+ import{c as s,j as e,r as i,i as a,ak as o}from"./index-DIehJbj4.js";import{R as m}from"./require-capability-BYXyNe0q.js";import"./use-capability-C0CY6poH.js";import"./access-gate-D13T7JfC.js";import"./capability-load-error-DkZWpr3e.js";const n=i.lazy(()=>o(()=>import("./registry-layout-C8S2iNnx.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])));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,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,bd as qs,be as Bs}from"./index-BWRI35ts.js";import{c as Jt,b as Qs,d as ds,i as Vs,a as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-Cei7RckW.js";import{i as qe}from"./CheckCircle-DQTTJHBu.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-Bwlcx4ae.js";import{S as Me,u as Ie,W as tr}from"./use-mcp-client-Du51QIUB.js";import{u as us}from"./useInfiniteQuery-D5jp5EHX.js";import{u as _e}from"./studio-tools-BxPnmW0p.js";import{B as F}from"./badge-l520yMia.js";import{I as ue}from"./input-OjejmtvL.js";import{a as dt,c as Ne,D as ut,b as mt,h as Zt,k as Xt,g as sr}from"./dropdown-menu-BSc3nucC.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-My_iggcp.js";import{T as rr,a as es}from"./toggle-group-INIHP9Y1.js";import{u as nr}from"./use-view-mode-QzLOZ0a4.js";import{i as $t}from"./DotsVertical-BsgRawWl.js";import{i as ir}from"./FilterLines-kfNzCqDM.js";import{n as lr,i as ms}from"./Globe01-BRoiYTbE.js";import{i as ar}from"./SearchMd-D7Ao4Agx.js";import{c as xt,a as pt,b as ht,D as ft,d as gt,e as jt}from"./dialog-B5KRdeHp.js";import{i as Ye}from"./AlertCircle-DhSahFA7.js";import{i as ts}from"./Upload01-CRm79xjW.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-CoogQAyI.js";import{C as ne}from"./card-B4_1jP1v.js";import{s as rt}from"./Trash01-B1oakIvq.js";import{L as te}from"./label-B-6AJJfx.js";import{S as or,a as cr,b as dr,c as ur,d as St}from"./select-Cypqvp6X.js";import{S as ze}from"./switch-Cn0_shwO.js";import{T as vt}from"./textarea-DwTINjZV.js";import{i as mr}from"./X-CIoaB40m.js";import{t as xr}from"./ChevronDown-DxT6pZ2C.js";import{n as pr,i as Rt}from"./ChevronUp-CK13E_jJ.js";import{C as ss}from"./checkbox-B10Gs49f.js";import{s as xs,a as Tt}from"./Eye-DjkPaBUX.js";import{n as hr}from"./LinkExternal01-XHHRaqVU.js";import{u as fr}from"./use-infinite-scroll-BPz2ABtS.js";import{u as It}from"./use-copy-BfEyJ6D3.js";import{i as gr}from"./Key01-CirPlifS.js";import{s as jr}from"./Plus-0ussTZkP.js";import{a as vr,b as br,T as yr}from"./tooltip-DFgw2Odz.js";import{i as Nr,a as wr}from"./mcp-oauth-Cs3225f5.js";import{i as _r}from"./Play-DxGheiPj.js";import"./auth-FSNe-Qln.js";import"./ChevronRight-Bauk0cfb.js";import"./use-mobile-yax9ikQF.js";const Ue="private-registry",Cr=`
1
+ import{c as W,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,bd as qs,be as Bs}from"./index-DIehJbj4.js";import{c as Jt,b as Qs,d as ds,i as Vs,a as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-Y6IaElGg.js";import{i as qe}from"./CheckCircle-oUhECjBb.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-CayZ-vfq.js";import{S as Me,u as Ie,W as tr}from"./use-mcp-client-Cd-J6mzY.js";import{u as us}from"./useInfiniteQuery-B-PVubj4.js";import{u as _e}from"./studio-tools-ClDzJuXU.js";import{B as F}from"./badge-DxyXnOxA.js";import{I as ue}from"./input-BtQ4qQaF.js";import{a as dt,c as Ne,D as ut,b as mt,h as Zt,k as Xt,g as sr}from"./dropdown-menu-B0ilNHIm.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-GFiGHmpa.js";import{T as rr,a as es}from"./toggle-group-BqL3w6iD.js";import{u as nr}from"./use-view-mode-drmRjuzs.js";import{i as $t}from"./DotsVertical-BT5O7y9p.js";import{i as ir}from"./FilterLines-Cx7lcqg6.js";import{n as lr,i as ms}from"./Globe01-Bt_hPJB2.js";import{i as ar}from"./SearchMd--arowag5.js";import{c as xt,a as pt,b as ht,D as ft,d as gt,e as jt}from"./dialog-MUpzEZ_a.js";import{i as Ye}from"./AlertCircle-N4QU3JGm.js";import{i as ts}from"./Upload01-DgnOtYBn.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-CctJudYL.js";import{C as ne}from"./card-CwSXrYfa.js";import{s as rt}from"./Trash01-D3v8nZh3.js";import{L as te}from"./label-C0Rj8N2n.js";import{S as or,a as cr,b as dr,c as ur,d as St}from"./select-DJjBVjeI.js";import{S as ze}from"./switch-CK-xh24J.js";import{T as vt}from"./textarea-BQJuMWsV.js";import{i as mr}from"./X-soKoehcA.js";import{t as xr}from"./ChevronDown-Bfo_cMHG.js";import{n as pr,i as Rt}from"./ChevronUp-CudmCGB7.js";import{C as ss}from"./checkbox-CXzFbFov.js";import{s as xs,a as Tt}from"./Eye-sjJGKikh.js";import{n as hr}from"./LinkExternal01-BhehD90L.js";import{u as fr}from"./use-infinite-scroll-DAbGnuPM.js";import{u as It}from"./use-copy-BWTN-j0p.js";import{i as gr}from"./Key01-5RxdZLN_.js";import{s as jr}from"./Plus-CaiaKbj-.js";import{a as vr,b as br,T as yr}from"./tooltip-CzYhvjec.js";import{i as Nr,a as wr}from"./mcp-oauth-BZ85ErVx.js";import{i as _r}from"./Play-nJBKuj02.js";import"./auth-D-kpOZmC.js";import"./ChevronRight-C7QId3FI.js";import"./use-mobile-Cp_PcOJZ.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-BWRI35ts.js";import{u as l}from"./use-capability-BnCpT6VQ.js";import{A as u}from"./access-gate-rfvHv18r.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-DIehJbj4.js";import{u as l}from"./use-capability-C0CY6poH.js";import{A as u}from"./access-gate-D13T7JfC.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-BWRI35ts.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-DIehJbj4.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-BWRI35ts.js";import{I as L}from"./input-OjejmtvL.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-DIehJbj4.js";import{I as L}from"./input-BtQ4qQaF.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};