decocms 4.59.0 → 4.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/client/assets/{AlertCircle-CAhfY1-I.js → AlertCircle-By5V_OAI.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CMkV5kTR.js → AreaChart-DYFue3AB.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-CJqXPjUf.js → ArrowUp-CPmpTxqA.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-CNxNg8gQ.js → ArrowUpRight-DTva-CtK.js} +1 -1
  5. package/dist/client/assets/{Check-DanyiEnL.js → Check-BbBVbCml.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-QUfhm4t_.js → CheckCircle-CjRjq78H.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-BApPtVmh.js → ChevronDown-DujWjiEx.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DWn63Qut.js → ChevronRight-4FTF4WqI.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-DHN-jwxT.js → ChevronUp-LzTIy1Gg.js} +1 -1
  10. package/dist/client/assets/{Circle-BQyPp8-D.js → Circle-Ba61O7v3.js} +1 -1
  11. package/dist/client/assets/{Copy01-BF37UFdB.js → Copy01-B0978reE.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-LI2dCOUo.js → DotsVertical-BWXuIIeo.js} +1 -1
  13. package/dist/client/assets/{Eye-CuhoU23S.js → Eye-CLyPbWNp.js} +1 -1
  14. package/dist/client/assets/{FilterLines-NLpPVI-d.js → FilterLines-CZvywTHD.js} +1 -1
  15. package/dist/client/assets/{Globe01-DuV6QcZy.js → Globe01-c9kQJ0J1.js} +1 -1
  16. package/dist/client/assets/{Globe04-CbE6CX79.js → Globe04-EfBNVCza.js} +1 -1
  17. package/dist/client/assets/{HardDrive-B1IIWkTs.js → HardDrive-3x4L_urK.js} +1 -1
  18. package/dist/client/assets/{Key01-_q-La8CZ.js → Key01-D0e_huT5.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-Dw2hmIVd.js → LayoutLeft-CBWI-N6A.js} +1 -1
  20. package/dist/client/assets/{LinkExternal01-DzbL04rr.js → LinkExternal01-CbZ5Q1kR.js} +1 -1
  21. package/dist/client/assets/{List-BzPiI9b3.js → List-CKuVIidV.js} +1 -1
  22. package/dist/client/assets/{Loading02-BD0siFDt.js → Loading02-OOljSfhT.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CbNIOnyB.js → Monitor01-CIDTmDYS.js} +1 -1
  24. package/dist/client/assets/{Package-C23vLxNv.js → Package-BT2pZEKs.js} +1 -1
  25. package/dist/client/assets/{Palette-BIL7c4-L.js → Palette-B4t53EuZ.js} +1 -1
  26. package/dist/client/assets/{Play-GDXaUCH4.js → Play-YTvPwfKb.js} +1 -1
  27. package/dist/client/assets/{Plus-Bu9bwB8j.js → Plus-BQc-qQk7.js} +1 -1
  28. package/dist/client/assets/{SearchLg-D7xA7zpm.js → SearchLg-Cm7KW90l.js} +1 -1
  29. package/dist/client/assets/{SearchMd-kTkW79UX.js → SearchMd-C7y5LJQw.js} +1 -1
  30. package/dist/client/assets/{Settings02-C5v-emPS.js → Settings02-Cr0VpQbw.js} +1 -1
  31. package/dist/client/assets/{Shield01-t3-_-OY2.js → Shield01-D2bvXHJr.js} +1 -1
  32. package/dist/client/assets/{Star01-DsSI6JW7.js → Star01-BPwcVgMJ.js} +1 -1
  33. package/dist/client/assets/{Stars01-8mxVtFbj.js → Stars01-z2NZeFbA.js} +1 -1
  34. package/dist/client/assets/{Stars02-DxxHV0k7.js → Stars02-A9_Qn88t.js} +1 -1
  35. package/dist/client/assets/{Sun-D-S9S2ej.js → Sun-DBwGI45B.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-t1IT2jBx.js → SwitchHorizontal01-CyHxNN_R.js} +1 -1
  37. package/dist/client/assets/{Tool01-Dv8zTOAK.js → Tool01-DTcOZbnu.js} +1 -1
  38. package/dist/client/assets/{Tool02-ClipZ7bo.js → Tool02-DN7RIFuA.js} +1 -1
  39. package/dist/client/assets/{Trash01-3_WDaYuV.js → Trash01-CRdtidTM.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-znQWqXKh.js → TrendUp01-CFBaEMFF.js} +1 -1
  41. package/dist/client/assets/{Upload01-CSq1162V.js → Upload01-Cwtb67Lw.js} +1 -1
  42. package/dist/client/assets/{User01-ClCsZZP9.js → User01-dV6U41aQ.js} +1 -1
  43. package/dist/client/assets/{Users01-DxmBQruN.js → Users01-DfR0NZI2.js} +1 -1
  44. package/dist/client/assets/{Users03-D6h5pXVq.js → Users03-D26TNI6S.js} +1 -1
  45. package/dist/client/assets/{X-B8cdBzJ0.js → X-9ap9xtG7.js} +1 -1
  46. package/dist/client/assets/{XCircle--KFzS8uf.js → XCircle-DTf-SPGi.js} +1 -1
  47. package/dist/client/assets/{XClose-BIcQUxWe.js → XClose-Bx_SHZf9.js} +1 -1
  48. package/dist/client/assets/{Zap-5x6E8SYA.js → Zap-DTYY_yG6.js} +1 -1
  49. package/dist/client/assets/{ZapSquare-CEGEJhAq.js → ZapSquare-CSYmmZIg.js} +1 -1
  50. package/dist/client/assets/{ZoomOut-CPyQR9cf.js → ZoomOut-BfjzuKIF.js} +1 -1
  51. package/dist/client/assets/{access-gate-ybDqt62Q.js → access-gate-5OdRTd9-.js} +1 -1
  52. package/dist/client/assets/{add-section-modal-BEdX2PIy.js → add-section-modal-Bh2DSNN9.js} +1 -1
  53. package/dist/client/assets/{agent-icon-BVYuA7Oa.js → agent-icon-DdKclnWr.js} +1 -1
  54. package/dist/client/assets/{agents-list-BI7OVFSz.js → agents-list-DlTu2Um8.js} +1 -1
  55. package/dist/client/assets/{ai-providers-AUfUnQL3.js → ai-providers-uAoTUNGY.js} +1 -1
  56. package/dist/client/assets/{alert-CB1BcySG.js → alert-BTdHvxv9.js} +1 -1
  57. package/dist/client/assets/{alert-dialog-bGcaxIEN.js → alert-dialog-CySfFhdC.js} +1 -1
  58. package/dist/client/assets/{app-editor-De3qb1xS.js → app-editor-CeiK6G7B.js} +1 -1
  59. package/dist/client/assets/{auth-CwljyZPh.js → auth-BiABWEcr.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-CZ9cU40-.js → auth-catchall-CIaQOvQ2.js} +1 -1
  61. package/dist/client/assets/{auth-entry-C6RuvS5q.js → auth-entry-DuUkflLb.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-BUfPVFko.js → auth-split-layout-DuFVX_V2.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-B2DnQbSw.js → authenticate-and-persist-oauth-BnB-i5Hx.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-BoM-GHgO.js → automation-list-row-fGuDXKMz.js} +1 -1
  65. package/dist/client/assets/{automation-runs-BFZIrw9m.js → automation-runs-Dk0QSvXf.js} +1 -1
  66. package/dist/client/assets/{automations-BmmmF_u2.js → automations-BfAuQT3p.js} +1 -1
  67. package/dist/client/assets/{autosend-Cgw0LO6f.js → autosend-OBVQJIwA.js} +1 -1
  68. package/dist/client/assets/{avatar-D1BbV9dp.js → avatar-D6tfDvwN.js} +1 -1
  69. package/dist/client/assets/{badge-3OH2cdJk.js → badge-BeBCWRwF.js} +1 -1
  70. package/dist/client/assets/{block-document-BDYEic9n.js → block-document-ohDylXKj.js} +1 -1
  71. package/dist/client/assets/{brand-context-mT5kKhNh.js → brand-context-feu1Zzai.js} +1 -1
  72. package/dist/client/assets/{buckets-riSvZz6H.js → buckets-BIShXHgT.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-D6gjFCwQ.js → bulk-category-panel-DOc5PpcE.js} +1 -1
  74. package/dist/client/assets/{calendar-6Go5xXYA.js → calendar-B8LPJQzI.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-NkKSnlKi.js → capability-load-error-CWu6wHWg.js} +1 -1
  76. package/dist/client/assets/{card-ywNPelP4.js → card-DQteBSZy.js} +1 -1
  77. package/dist/client/assets/{category-editor-V7Yj0KHT.js → category-editor-DYMd2s4M.js} +1 -1
  78. package/dist/client/assets/{chat-context-CvjQMyke.js → chat-context-BFU9KNJs.js} +1 -1
  79. package/dist/client/assets/{checkbox-Bj_DwN9o.js → checkbox-DyFXnv_N.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-BTxpgVS3.js → cli-auth-success-D86WoQgn.js} +1 -1
  81. package/dist/client/assets/{collection-detail-D21kPj2q.js → collection-detail-CnvXlo2s.js} +1 -1
  82. package/dist/client/assets/{collection-display-button-BJfPUKE4.js → collection-display-button-BkU2D40S.js} +1 -1
  83. package/dist/client/assets/{collection-search-DitylQVA.js → collection-search-DUDcpj0N.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-D_6Mi7wH.js → collection-table-wrapper-4ppIv-p9.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-KzsrqC8l.js → collection-tabs-BoJeinsY.js} +1 -1
  86. package/dist/client/assets/{command-BIP4vaGE.js → command-N6cziNOU.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding-DJe165NY.js → commerce-onboarding-CftlY9zF.js} +1 -1
  88. package/dist/client/assets/{connect-desktop-dialog-DWFQpS_H.js → connect-desktop-dialog-D5uIE_v3.js} +1 -1
  89. package/dist/client/assets/{connection-card-BzPHXusj.js → connection-card-CjpTLTCF.js} +1 -1
  90. package/dist/client/assets/{connection-detail-3GdLb4fJ.js → connection-detail-CZqw9SA-.js} +1 -1
  91. package/dist/client/assets/{connection-form-helpers-BG0cOPY5.js → connection-form-helpers-B9LwF6od.js} +1 -1
  92. package/dist/client/assets/{connections-UmN7B2Ql.js → connections-DhGBcx8p.js} +1 -1
  93. package/dist/client/assets/{decopilot-sse-pool-BOoUc205.js → decopilot-sse-pool-DlhjUAGk.js} +1 -1
  94. package/dist/client/assets/{dialog-CS6EDVA4.js → dialog-Hnvvuwtr.js} +1 -1
  95. package/dist/client/assets/{domain-settings-BbnLGqPe.js → domain-settings-LhdwESEP.js} +1 -1
  96. package/dist/client/assets/{drawer-CTZJ2rAS.js → drawer-BN7xa-Kn.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-C2eFZtvw.js → dropdown-menu-C1oaxvGA.js} +1 -1
  98. package/dist/client/assets/{empty-state-CqYJWNTB.js → empty-state-2f1dk8dl.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-CqVJ9mYj.js → extract-connection-data-C9LhPqdN.js} +1 -1
  100. package/dist/client/assets/{file-explorer-Dg1dLblo.js → file-explorer-CT0ZNlod.js} +1 -1
  101. package/dist/client/assets/{file-type-icon-5cBucj4Z.js → file-type-icon-DCAOo88S.js} +1 -1
  102. package/dist/client/assets/{files-CgfJa6LA.js → files-C3TUsfg2.js} +1 -1
  103. package/dist/client/assets/{form-DChJt1IJ.js → form-44AoMqLt.js} +1 -1
  104. package/dist/client/assets/{general-DwZLxCS6.js → general-DWjuvMyc.js} +1 -1
  105. package/dist/client/assets/{github-repo-picker-DxX-MN6R.js → github-repo-picker-CW5PRm8S.js} +1 -1
  106. package/dist/client/assets/{hooks-D4O7gEHf.js → hooks-DxKHI4Sv.js} +1 -1
  107. package/dist/client/assets/{index-C0jM0g4Y.js → index-5UHEAMsR.js} +1 -1
  108. package/dist/client/assets/{index-Chh9RHFe.js → index-B4UIYyWJ.js} +1 -1
  109. package/dist/client/assets/{index-D7lkrNY4.js → index-BhNEoGT9.js} +1 -1
  110. package/dist/client/assets/{index-Cb2Ylen2.js → index-BvOxfdXi.js} +1 -1
  111. package/dist/client/assets/{index-NzZzUEr9.js → index-Bz0Py2rP.js} +1 -1
  112. package/dist/client/assets/{index-D9UEbl2s.js → index-CRhm_2EO.js} +1 -1
  113. package/dist/client/assets/{index-CyKS18Fo.js → index-Cw63Whs6.js} +20 -20
  114. package/dist/client/assets/{index-CpZPszPD.js → index-DLUt_tIW.js} +1 -1
  115. package/dist/client/assets/{index-wL3MlfNU.js → index-DPS1o7Hz.js} +1 -1
  116. package/dist/client/assets/{index-DJnB8JtD.js → index-DXQi4Q1O.js} +1 -1
  117. package/dist/client/assets/{index-Zph9A7yf.js → index-DcIBnpEi.js} +3 -3
  118. package/dist/client/assets/{index-C5AgWvQk.js → index-DqAJeepK.js} +1 -1
  119. package/dist/client/assets/{index-8MqyY2FH.js → index-Dyecjn9n.js} +1 -1
  120. package/dist/client/assets/{index-H2smweq-.js → index-hwaeRRf3.js} +1 -1
  121. package/dist/client/assets/{index-redirect-CQNCPzHE.js → index-redirect-BZ5Y2gfs.js} +1 -1
  122. package/dist/client/assets/{input-CUUe2IQe.js → input-CzqITCIW.js} +1 -1
  123. package/dist/client/assets/{integration-icon-CSLpssyE.js → integration-icon-ZhMn59o3.js} +1 -1
  124. package/dist/client/assets/{invite-member-dialog-fMYShoJ-.js → invite-member-dialog-sUSWgiSG.js} +1 -1
  125. package/dist/client/assets/{label-BGyB36M1.js → label-XzNlba7M.js} +1 -1
  126. package/dist/client/assets/{layout-t74mRWaE.js → layout-B74lGCBQ.js} +1 -1
  127. package/dist/client/assets/{login-B6OBiRjq.js → login-CYG6CxNP.js} +1 -1
  128. package/dist/client/assets/{mcp-oauth-oOtKvLXg.js → mcp-oauth-CpkgHFkt.js} +1 -1
  129. package/dist/client/assets/{members-DrYtPaUZ.js → members-CwzXHe9g.js} +1 -1
  130. package/dist/client/assets/{monaco-editor-rZmsrnl3.js → monaco-editor-oYFtE1AD.js} +1 -1
  131. package/dist/client/assets/{monitoring-stats-row-DIVfa2WI.js → monitoring-stats-row-Gf4MDwb4.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-DLJO0SZu.js → oauth-callback-DUYwo8XA.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-ai-provider-CfWkt8o9.js → oauth-callback-ai-provider-CH7ngq6_.js} +1 -1
  134. package/dist/client/assets/{onboarding-8eWMYwyA.js → onboarding-EKsWcCLU.js} +1 -1
  135. package/dist/client/assets/{org-install-DjzI551t.js → org-install-VWhntSAF.js} +1 -1
  136. package/dist/client/assets/{org-layout-BuNdKPV_.js → org-layout-B0YkVceJ.js} +1 -1
  137. package/dist/client/assets/{organization-choice-CgkZtwbY.js → organization-choice-CmuJBrOp.js} +1 -1
  138. package/dist/client/assets/{orgs-CnEtKOua.js → orgs-hY3hGpI2.js} +1 -1
  139. package/dist/client/assets/{page-seo-form-DYH-zjCO.js → page-seo-form-C5auzZh8.js} +1 -1
  140. package/dist/client/assets/page-seo-sheet-D-IbLfTT.js +1 -0
  141. package/dist/client/assets/{popover-D-tVO42q.js → popover-CH5b_fiQ.js} +1 -1
  142. package/dist/client/assets/{post-editor-B-25ZlfI.js → post-editor-DOvyL6wS.js} +1 -1
  143. package/dist/client/assets/{primitives-C8z1ctK9.js → primitives-DFbg_AMZ.js} +1 -1
  144. package/dist/client/assets/{profile-gyw2jnYz.js → profile-CO8Giz28.js} +1 -1
  145. package/dist/client/assets/project-app-view-CQ6rdSU6.js +1 -0
  146. package/dist/client/assets/record-editor-BmdfGrm9.js +1 -0
  147. package/dist/client/assets/{registry-layout-CNAsuCnF.js → registry-layout-DRXLNW97.js} +1 -1
  148. package/dist/client/assets/registry-wey5deW7.js +2 -0
  149. package/dist/client/assets/{reports-Uv1n5J03.js → reports-DzupeaKs.js} +1 -1
  150. package/dist/client/assets/{require-capability-CmUTiDqU.js → require-capability-CuikEqkA.js} +1 -1
  151. package/dist/client/assets/{required-auth-layout-Dd3Zjc0e.js → required-auth-layout-B-X0Ygcy.js} +1 -1
  152. package/dist/client/assets/{reset-password-CufXY7i_.js → reset-password-CDNvgX42.js} +1 -1
  153. package/dist/client/assets/{roles-CeowhO7J.js → roles-BV1-93aA.js} +1 -1
  154. package/dist/client/assets/{search-input-Co8buizV.js → search-input-CWI66WZh.js} +1 -1
  155. package/dist/client/assets/{secrets-D_LZKxNT.js → secrets-MwGQLxY8.js} +1 -1
  156. package/dist/client/assets/{sections-editor-BZ4dK03B.js → sections-editor-BK1kttfD.js} +1 -1
  157. package/dist/client/assets/{select-CLnM5xZY.js → select-B769KgqG.js} +1 -1
  158. package/dist/client/assets/{select-model-DHvKHtQ9.js → select-model-DBtqvDeJ.js} +1 -1
  159. package/dist/client/assets/{seo-editor-C21X4Q2z.js → seo-editor-DIU-XPL5.js} +1 -1
  160. package/dist/client/assets/{settings-layout-Dfl-lUfC.js → settings-layout-BeiWdJrF.js} +1 -1
  161. package/dist/client/assets/{settings-section-DgeqehPc.js → settings-section-DlrJmzQQ.js} +1 -1
  162. package/dist/client/assets/{shell-controls-CT9oavT5.js → shell-controls-Dr0tjvY3.js} +1 -1
  163. package/dist/client/assets/{shell-layout-BRwC1gio.js → shell-layout-CvmkWYxb.js} +1 -1
  164. package/dist/client/assets/{sidebar-nisndB4B.js → sidebar-CnVq7sh3.js} +1 -1
  165. package/dist/client/assets/{skeleton-D0D1c07b.js → skeleton-DDgvHM8p.js} +1 -1
  166. package/dist/client/assets/{sso-BSDd9tq8.js → sso-DiC6sEo0.js} +1 -1
  167. package/dist/client/assets/{store-BV1X0Xqt.js → store-BBj31B5C.js} +1 -1
  168. package/dist/client/assets/store-registry-mqrT12io.js +2 -0
  169. package/dist/client/assets/{studio-tools-BSLnTfFC.js → studio-tools-Bdai-xGF.js} +1 -1
  170. package/dist/client/assets/{switch-CAPrI9f4.js → switch-josi6Uyt.js} +1 -1
  171. package/dist/client/assets/{table-BV77eO9f.js → table-Cpz7KTQ5.js} +1 -1
  172. package/dist/client/assets/{tabs-Dnhjr_ni.js → tabs-Bd4tTw7M.js} +1 -1
  173. package/dist/client/assets/{textarea-DAEAkdQ_.js → textarea-CN1NcM6-.js} +1 -1
  174. package/dist/client/assets/{toggle-group-z06LwOXU.js → toggle-group-CCVpVQJx.js} +1 -1
  175. package/dist/client/assets/{toolbar-KDAy2LOV.js → toolbar-4tiJk0vY.js} +1 -1
  176. package/dist/client/assets/{toolbar-icon-button-CVVU6wPU.js → toolbar-icon-button-B4ns4onG.js} +1 -1
  177. package/dist/client/assets/{tools-list-AydqEwPG.js → tools-list-OlvXGJpp.js} +1 -1
  178. package/dist/client/assets/{tooltip-CT63cZcY.js → tooltip-FbSqyAkw.js} +1 -1
  179. package/dist/client/assets/{use-ai-providers-CNn-G0WG.js → use-ai-providers-rBuyV02F.js} +1 -1
  180. package/dist/client/assets/{use-automations-Dl6TdHzo.js → use-automations-eRXq8hNu.js} +1 -1
  181. package/dist/client/assets/{use-capability-B6eGKNoH.js → use-capability-DG3TMrBr.js} +1 -1
  182. package/dist/client/assets/{use-clock-tick-BPem6EqS.js → use-clock-tick-Dx2kBV_T.js} +1 -1
  183. package/dist/client/assets/{use-collections-C3OPKdUJ.js → use-collections-B6JlYHnr.js} +1 -1
  184. package/dist/client/assets/{use-connection-CWojo_D3.js → use-connection-BQbRdj4A.js} +1 -1
  185. package/dist/client/assets/{use-copy-CxtHgMoF.js → use-copy-DxP-67RS.js} +1 -1
  186. package/dist/client/assets/{use-create-virtual-mcp-BwWtNGwR.js → use-create-virtual-mcp-Bst5H_XV.js} +1 -1
  187. package/dist/client/assets/{use-debounced-autosave-drPWJZkH.js → use-debounced-autosave-DUw5dpg0.js} +1 -1
  188. package/dist/client/assets/{use-debounced-value-COlFFg1d.js → use-debounced-value-CEU4XuDq.js} +1 -1
  189. package/dist/client/assets/{use-deco-credits-BOpkUCFX.js → use-deco-credits-BIY8ss-U.js} +1 -1
  190. package/dist/client/assets/{use-decopilot-events-Bf9nxorT.js → use-decopilot-events-BrhYZT96.js} +1 -1
  191. package/dist/client/assets/{use-delete-connection-B9DLwSDQ.js → use-delete-connection-BITyrKJU.js} +1 -1
  192. package/dist/client/assets/{use-deployment-admin-B5jnygPZ.js → use-deployment-admin-Bvs3xtBP.js} +1 -1
  193. package/dist/client/assets/{use-file-configs-DT0jLQzS.js → use-file-configs-DL6xLLlG.js} +1 -1
  194. package/dist/client/assets/{use-infinite-scroll-0Zcm9XAP.js → use-infinite-scroll-Y5a7xah6.js} +1 -1
  195. package/dist/client/assets/{use-join-requests-BYCTGU4E.js → use-join-requests-BIz68DvI.js} +1 -1
  196. package/dist/client/assets/{use-mcp-client-DA4l7NMh.js → use-mcp-client-CP4c9F3u.js} +1 -1
  197. package/dist/client/assets/{use-mcp-tools-DFM0siR4.js → use-mcp-tools-Bt4ZQFfJ.js} +1 -1
  198. package/dist/client/assets/{use-members-BOUewexP.js → use-members-BrCJmQZK.js} +1 -1
  199. package/dist/client/assets/{use-mobile-_5IIYeUG.js → use-mobile-CNvoxL11.js} +1 -1
  200. package/dist/client/assets/{use-navigate-to-agent-CCdr2MAT.js → use-navigate-to-agent-S62tKbn_.js} +1 -1
  201. package/dist/client/assets/{use-org-auth-client-DjqRzh-D.js → use-org-auth-client-D2oZvH8p.js} +1 -1
  202. package/dist/client/assets/{use-org-sso-DBUVZzYp.js → use-org-sso-CuQ1DX-B.js} +1 -1
  203. package/dist/client/assets/{use-organization-roles-Co8EUVEp.js → use-organization-roles-Ck6IZDBi.js} +1 -1
  204. package/dist/client/assets/{use-organization-settings-Czmh3IHJ.js → use-organization-settings-DPWTEzqv.js} +1 -1
  205. package/dist/client/assets/{use-registry-connections-BaiK5dhC.js → use-registry-connections-Qwuyc_tK.js} +1 -1
  206. package/dist/client/assets/{use-secrets-Fpj5hs9J.js → use-secrets-Bog2G1S_.js} +1 -1
  207. package/dist/client/assets/{use-status-sounds-BsTQkWMh.js → use-status-sounds-Qyl_ERMg.js} +1 -1
  208. package/dist/client/assets/{use-view-mode-DJIg85oh.js → use-view-mode-B8GphToI.js} +1 -1
  209. package/dist/client/assets/{use-virtual-mcp-CCbgOxsv.js → use-virtual-mcp-BYkuAhYP.js} +1 -1
  210. package/dist/client/assets/useInfiniteQuery-CgoqkRWJ.js +1 -0
  211. package/dist/client/assets/{useRouterState-CRUjsuyq.js → useRouterState-5lGDnVdP.js} +1 -1
  212. package/dist/client/assets/useSuspenseInfiniteQuery-BW3gCCYi.js +1 -0
  213. package/dist/client/assets/{users-DMWmGBAn.js → users-CGznhyCC.js} +1 -1
  214. package/dist/client/assets/{variant-calendar-gZNap7OW.js → variant-calendar-BPf-15R_.js} +1 -1
  215. package/dist/client/assets/{view-mode-toggle-C6z_jqZe.js → view-mode-toggle-CZo99tNV.js} +1 -1
  216. package/dist/client/index.html +1 -1
  217. package/dist/server/cli.js +1 -1
  218. package/dist/server/server.js +1 -1
  219. package/package.json +1 -1
  220. package/dist/client/assets/page-seo-sheet-4ecioc_U.js +0 -1
  221. package/dist/client/assets/project-app-view-BT8Kq9Tv.js +0 -1
  222. package/dist/client/assets/record-editor-DIFzf9nj.js +0 -1
  223. package/dist/client/assets/registry-rgyxXC6C.js +0 -2
  224. package/dist/client/assets/store-registry-ZVDNYEZt.js +0 -2
  225. package/dist/client/assets/useInfiniteQuery-DUk6rN9-.js +0 -1
  226. package/dist/client/assets/useSuspenseInfiniteQuery-BH7eDxqd.js +0 -1
@@ -1 +1 @@
1
- import{c as k,r as z,b0 as S,e as _,W as E,b1 as T,j as o,L as $}from"./index-Zph9A7yf.js";const L="#f6f4ed",P="#ffffff",H=[{src:"/icons/icon-192.png",sizes:"192x192",type:"image/png"},{src:"/icons/icon-512.png",sizes:"512x512",type:"image/png"}];function R(e,n){const t=`${n}/${e.slug}`,i=[...e.logo?[{src:e.logo,sizes:"192x192",purpose:"any"},{src:e.logo,sizes:"512x512",purpose:"any"},{src:e.logo,sizes:"any",purpose:"any"}]:[],...H],l={id:t,name:e.name,short_name:e.name,start_url:t,scope:t,display:"standalone",display_override:["window-controls-overlay"],background_color:P,theme_color:L,icons:i};return`data:application/manifest+json,${encodeURIComponent(JSON.stringify(l))}`}function O(e){const n=document.querySelector(`link[rel="${e}"]`);if(n)return n;const t=document.createElement("link");return t.rel=e,document.head.appendChild(t),t}function U(e){const n=document.querySelector(`meta[name="${e}"]`);if(n)return n;const t=document.createElement("meta");return t.name=e,document.head.appendChild(t),t}function M(e){const n=k.c(5),t=e?.name??"",i=e?.slug??"",l=e?.logo??"";let a,c;n[0]!==l||n[1]!==t||n[2]!==i?(a=()=>{if(!i||!t||typeof document>"u"||typeof window>"u")return;const d=O("manifest"),m=O("apple-touch-icon"),u=U("apple-mobile-web-app-title"),r={manifest:d.getAttribute("href"),appleIcon:m.getAttribute("href"),appleTitle:u.getAttribute("content"),title:document.title};return d.setAttribute("href",R({name:t,slug:i,logo:l||null},window.location.origin)),l&&m.setAttribute("href",l),u.setAttribute("content",t),document.title=t,S(),()=>{r.manifest!==null&&d.setAttribute("href",r.manifest),r.appleIcon!==null&&m.setAttribute("href",r.appleIcon),r.appleTitle!==null&&u.setAttribute("content",r.appleTitle),document.title=r.title,S()}},c=[t,i,l],n[0]=l,n[1]=t,n[2]=i,n[3]=a,n[4]=c):(a=n[3],c=n[4]),z.useLayoutEffect(a,c)}function q(){const e=k.c(31);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const{org:t}=_(n),{data:i}=E();let l;e[1]!==i||e[2]!==t?(l=i?.find(N=>N.slug===t),e[1]=i,e[2]=t,e[3]=l):l=e[3];const a=l;let c;e[4]!==a?(c=a?{name:a.name,slug:a.slug,logo:a.logo??null}:null,e[4]=a,e[5]=c):c=e[5],M(c);const{canPrompt:d,installed:m,ios:u,promptInstall:r}=T(),[y,w]=z.useState(null),s=a?.name??"this organization",C=a?.logo;let b;e[6]!==s||e[7]!==r?(b=async()=>{const N=await r();w(N==="accepted"?`Installing ${s}…`:N==="dismissed"?"Install dismissed.":null)},e[6]=s,e[7]=r,e[8]=b):b=e[8];const A=b,I=C||"/icons/icon-192.png";let p;e[9]!==s||e[10]!==I?(p=o.jsx("img",{src:I,alt:s,className:"size-20 rounded-2xl border border-border/50 object-cover"}),e[9]=s,e[10]=I,e[11]=p):p=e[11];let f;e[12]!==s?(f=o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("h1",{className:"text-xl font-semibold text-foreground",children:["Add ",s," to your Home Screen"]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Install ",s," as its own app — a standalone window that opens straight into this organization. To install the full deco Studio app instead, use your browser's “Add to Home Screen” from any other page."]})]}),e[12]=s,e[13]=f):f=e[13];let g;e[14]!==d||e[15]!==A||e[16]!==m||e[17]!==u||e[18]!==s||e[19]!==y?(g=m?o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[s," is already installed on this device."]}):u?o.jsxs("div",{className:"flex flex-col gap-2 rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[o.jsx("p",{className:"font-medium",children:"Install on iOS"}),o.jsxs("p",{className:"text-muted-foreground",children:["Tap the ",o.jsx("span",{className:"font-medium",children:"Share"})," button, then choose ",o.jsx("span",{className:"font-medium",children:"Add to Home Screen"}),"."]})]}):d?o.jsxs("div",{className:"flex flex-col items-center gap-3",children:[o.jsxs("button",{type:"button",onClick:A,className:"rounded-lg bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:["Add ",s," to Home Screen"]}),y&&o.jsx("p",{className:"text-sm text-muted-foreground",children:y})]}):o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground",children:["To install, open your browser's menu and choose"," ",o.jsxs("span",{className:"font-medium text-foreground",children:["Install ",s]})," ","(or “Add to Home Screen”). If you don't see it yet, interact with the app for a moment and try again."]}),e[14]=d,e[15]=A,e[16]=m,e[17]=u,e[18]=s,e[19]=y,e[20]=g):g=e[20];const v=t??"";let x;e[21]!==v?(x={org:v},e[21]=v,e[22]=x):x=e[22];let h;e[23]!==s||e[24]!==x?(h=o.jsxs($,{to:"/$org",params:x,className:"text-sm text-primary hover:underline",replace:!0,children:["Back to ",s]}),e[23]=s,e[24]=x,e[25]=h):h=e[25];let j;return e[26]!==h||e[27]!==p||e[28]!==f||e[29]!==g?(j=o.jsx("div",{className:"flex min-h-dvh items-center justify-center bg-background p-6",children:o.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-6 text-center",children:[p,f,g,h]})}),e[26]=h,e[27]=p,e[28]=f,e[29]=g,e[30]=j):j=e[30],j}export{q as default};
1
+ import{c as k,r as z,b0 as S,e as _,W as E,b1 as T,j as o,L as $}from"./index-DcIBnpEi.js";const L="#f6f4ed",P="#ffffff",H=[{src:"/icons/icon-192.png",sizes:"192x192",type:"image/png"},{src:"/icons/icon-512.png",sizes:"512x512",type:"image/png"}];function R(e,n){const t=`${n}/${e.slug}`,i=[...e.logo?[{src:e.logo,sizes:"192x192",purpose:"any"},{src:e.logo,sizes:"512x512",purpose:"any"},{src:e.logo,sizes:"any",purpose:"any"}]:[],...H],l={id:t,name:e.name,short_name:e.name,start_url:t,scope:t,display:"standalone",display_override:["window-controls-overlay"],background_color:P,theme_color:L,icons:i};return`data:application/manifest+json,${encodeURIComponent(JSON.stringify(l))}`}function O(e){const n=document.querySelector(`link[rel="${e}"]`);if(n)return n;const t=document.createElement("link");return t.rel=e,document.head.appendChild(t),t}function U(e){const n=document.querySelector(`meta[name="${e}"]`);if(n)return n;const t=document.createElement("meta");return t.name=e,document.head.appendChild(t),t}function M(e){const n=k.c(5),t=e?.name??"",i=e?.slug??"",l=e?.logo??"";let a,c;n[0]!==l||n[1]!==t||n[2]!==i?(a=()=>{if(!i||!t||typeof document>"u"||typeof window>"u")return;const d=O("manifest"),m=O("apple-touch-icon"),u=U("apple-mobile-web-app-title"),r={manifest:d.getAttribute("href"),appleIcon:m.getAttribute("href"),appleTitle:u.getAttribute("content"),title:document.title};return d.setAttribute("href",R({name:t,slug:i,logo:l||null},window.location.origin)),l&&m.setAttribute("href",l),u.setAttribute("content",t),document.title=t,S(),()=>{r.manifest!==null&&d.setAttribute("href",r.manifest),r.appleIcon!==null&&m.setAttribute("href",r.appleIcon),r.appleTitle!==null&&u.setAttribute("content",r.appleTitle),document.title=r.title,S()}},c=[t,i,l],n[0]=l,n[1]=t,n[2]=i,n[3]=a,n[4]=c):(a=n[3],c=n[4]),z.useLayoutEffect(a,c)}function q(){const e=k.c(31);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const{org:t}=_(n),{data:i}=E();let l;e[1]!==i||e[2]!==t?(l=i?.find(N=>N.slug===t),e[1]=i,e[2]=t,e[3]=l):l=e[3];const a=l;let c;e[4]!==a?(c=a?{name:a.name,slug:a.slug,logo:a.logo??null}:null,e[4]=a,e[5]=c):c=e[5],M(c);const{canPrompt:d,installed:m,ios:u,promptInstall:r}=T(),[y,w]=z.useState(null),s=a?.name??"this organization",C=a?.logo;let b;e[6]!==s||e[7]!==r?(b=async()=>{const N=await r();w(N==="accepted"?`Installing ${s}…`:N==="dismissed"?"Install dismissed.":null)},e[6]=s,e[7]=r,e[8]=b):b=e[8];const A=b,I=C||"/icons/icon-192.png";let p;e[9]!==s||e[10]!==I?(p=o.jsx("img",{src:I,alt:s,className:"size-20 rounded-2xl border border-border/50 object-cover"}),e[9]=s,e[10]=I,e[11]=p):p=e[11];let f;e[12]!==s?(f=o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("h1",{className:"text-xl font-semibold text-foreground",children:["Add ",s," to your Home Screen"]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Install ",s," as its own app — a standalone window that opens straight into this organization. To install the full deco Studio app instead, use your browser's “Add to Home Screen” from any other page."]})]}),e[12]=s,e[13]=f):f=e[13];let g;e[14]!==d||e[15]!==A||e[16]!==m||e[17]!==u||e[18]!==s||e[19]!==y?(g=m?o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[s," is already installed on this device."]}):u?o.jsxs("div",{className:"flex flex-col gap-2 rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[o.jsx("p",{className:"font-medium",children:"Install on iOS"}),o.jsxs("p",{className:"text-muted-foreground",children:["Tap the ",o.jsx("span",{className:"font-medium",children:"Share"})," button, then choose ",o.jsx("span",{className:"font-medium",children:"Add to Home Screen"}),"."]})]}):d?o.jsxs("div",{className:"flex flex-col items-center gap-3",children:[o.jsxs("button",{type:"button",onClick:A,className:"rounded-lg bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:["Add ",s," to Home Screen"]}),y&&o.jsx("p",{className:"text-sm text-muted-foreground",children:y})]}):o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground",children:["To install, open your browser's menu and choose"," ",o.jsxs("span",{className:"font-medium text-foreground",children:["Install ",s]})," ","(or “Add to Home Screen”). If you don't see it yet, interact with the app for a moment and try again."]}),e[14]=d,e[15]=A,e[16]=m,e[17]=u,e[18]=s,e[19]=y,e[20]=g):g=e[20];const v=t??"";let x;e[21]!==v?(x={org:v},e[21]=v,e[22]=x):x=e[22];let h;e[23]!==s||e[24]!==x?(h=o.jsxs($,{to:"/$org",params:x,className:"text-sm text-primary hover:underline",replace:!0,children:["Back to ",s]}),e[23]=s,e[24]=x,e[25]=h):h=e[25];let j;return e[26]!==h||e[27]!==p||e[28]!==f||e[29]!==g?(j=o.jsx("div",{className:"flex min-h-dvh items-center justify-center bg-background p-6",children:o.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-6 text-center",children:[p,f,g,h]})}),e[26]=h,e[27]=p,e[28]=f,e[29]=g,e[30]=j):j=e[30],j}export{q as default};
@@ -1 +1 @@
1
- import{c as o,j as r,O as s}from"./index-Zph9A7yf.js";function c(){const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(s,{}),e[0]=t):t=e[0],t}export{c as default};
1
+ import{c as o,j as r,O as s}from"./index-DcIBnpEi.js";function c(){const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(s,{}),e[0]=t):t=e[0],t}export{c as default};
@@ -1 +1 @@
1
- import{c as L,r as B,d as O,j as t,B as M,i as F}from"./index-Zph9A7yf.js";import{A as U}from"./avatar-D1BbV9dp.js";function I(r){const e=L.c(41),{organizations:i,domain:l,requestedSlugs:v,onRequestedSlug:y,onSelected:p,onJoined:c,onRequestCompleted:k,selectLabel:E}=r,x=E===void 0?"Select":E;let q;e[0]===Symbol.for("react.memo_cache_sentinel")?(q=new Set,e[0]=q):q=e[0];const[_,P]=B.useState(q);let b;e[1]!==y?(b=o=>{P(s=>new Set(s).add(o)),y?.(o)},e[1]=y,e[2]=b):b=e[2];const C=b;let w;e[3]!==c?(w={mutationFn:D,onSuccess:o=>{const{organization:s,slug:f}=o;c?.(s,f)}},e[3]=c,e[4]=w):w=e[4];const n=O(w);let z;e[5]!==C||e[6]!==c||e[7]!==k?(z={mutationFn:$,onSuccess:o=>{const{organization:s,slug:f,alreadyMember:J}=o;if(J&&f){c?.(s,f);return}C(s.slug),k?.(s)}},e[5]=C,e[6]=c,e[7]=k,e[8]=z):z=e[8];const a=O(z);let u;e[9]!==v?(u=v??[],e[9]=v,e[10]=u):u=e[10];let N;e[11]!==_||e[12]!==u?(N=new Set([...u,..._]),e[11]=_,e[12]=u,e[13]=N):N=e[13];const h=N,j=n.variables?.slug??null,S=a.variables?.slug??null;let d;if(e[14]!==l||e[15]!==h||e[16]!==n||e[17]!==p||e[18]!==i||e[19]!==j||e[20]!==S||e[21]!==a||e[22]!==x){let o;e[24]!==l||e[25]!==h||e[26]!==n||e[27]!==p||e[28]!==j||e[29]!==S||e[30]!==a||e[31]!==x?(o=s=>{const f=n.isPending&&j===s.slug,J=a.isPending&&S===s.slug,T=h.has(s.slug),A=s.logo??(l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null);return t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 p-4 flex items-center gap-4",children:[t.jsx(U,{url:A??void 0,fallback:s.name.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-10 w-10 shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:s.name}),l&&t.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:["@",l]})]}),s.joinMode==="auto"?t.jsx(M,{size:"default",onClick:()=>n.mutate(s),disabled:n.isPending,children:f?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(F,{size:14,className:"animate-spin"})," Joining..."]}):"Join"}):s.joinMode==="request"?T?t.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:"Request sent"}):t.jsx(M,{size:"default",variant:"outline",onClick:()=>a.mutate(s),disabled:a.isPending,children:J?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(F,{size:14,className:"animate-spin"})," ","Requesting..."]}):"Request to join"}):t.jsx(M,{size:"default",onClick:()=>p?.(s),children:x})]},s.id)},e[24]=l,e[25]=h,e[26]=n,e[27]=p,e[28]=j,e[29]=S,e[30]=a,e[31]=x,e[32]=o):o=e[32],d=i.map(o),e[14]=l,e[15]=h,e[16]=n,e[17]=p,e[18]=i,e[19]=j,e[20]=S,e[21]=a,e[22]=x,e[23]=d}else d=e[23];let m;e[33]!==n.error?(m=n.error&&t.jsx("p",{className:"text-xs text-destructive",role:"alert",children:n.error instanceof Error?n.error.message:"Failed to join organization"}),e[33]=n.error,e[34]=m):m=e[34];let g;e[35]!==a.error?(g=a.error&&t.jsx("p",{className:"text-xs text-destructive",role:"alert",children:a.error instanceof Error?a.error.message:"Failed to request access"}),e[35]=a.error,e[36]=g):g=e[36];let R;return e[37]!==g||e[38]!==d||e[39]!==m?(R=t.jsxs("div",{className:"grid grid-cols-1 gap-2",children:[d,m,g]}),e[37]=g,e[38]=d,e[39]=m,e[40]=R):R=e[40],R}async function $(r){const e=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r.slug})}),i=await e.json();if(!e.ok||!i.success)throw new Error(i.error||"Failed to request access");return{organization:r,slug:i.slug,alreadyMember:i.alreadyMember}}async function D(r){const e=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r.slug})}),i=await e.json();if(!e.ok||!i.success)throw new Error(i.error||"Failed to join organization");return{organization:r,slug:i.slug??r.slug}}export{I as O};
1
+ import{c as L,r as B,d as O,j as t,B as M,i as F}from"./index-DcIBnpEi.js";import{A as U}from"./avatar-D6tfDvwN.js";function I(r){const e=L.c(41),{organizations:i,domain:l,requestedSlugs:v,onRequestedSlug:y,onSelected:p,onJoined:c,onRequestCompleted:k,selectLabel:E}=r,x=E===void 0?"Select":E;let q;e[0]===Symbol.for("react.memo_cache_sentinel")?(q=new Set,e[0]=q):q=e[0];const[_,P]=B.useState(q);let b;e[1]!==y?(b=o=>{P(s=>new Set(s).add(o)),y?.(o)},e[1]=y,e[2]=b):b=e[2];const C=b;let w;e[3]!==c?(w={mutationFn:D,onSuccess:o=>{const{organization:s,slug:f}=o;c?.(s,f)}},e[3]=c,e[4]=w):w=e[4];const n=O(w);let z;e[5]!==C||e[6]!==c||e[7]!==k?(z={mutationFn:$,onSuccess:o=>{const{organization:s,slug:f,alreadyMember:J}=o;if(J&&f){c?.(s,f);return}C(s.slug),k?.(s)}},e[5]=C,e[6]=c,e[7]=k,e[8]=z):z=e[8];const a=O(z);let u;e[9]!==v?(u=v??[],e[9]=v,e[10]=u):u=e[10];let N;e[11]!==_||e[12]!==u?(N=new Set([...u,..._]),e[11]=_,e[12]=u,e[13]=N):N=e[13];const h=N,j=n.variables?.slug??null,S=a.variables?.slug??null;let d;if(e[14]!==l||e[15]!==h||e[16]!==n||e[17]!==p||e[18]!==i||e[19]!==j||e[20]!==S||e[21]!==a||e[22]!==x){let o;e[24]!==l||e[25]!==h||e[26]!==n||e[27]!==p||e[28]!==j||e[29]!==S||e[30]!==a||e[31]!==x?(o=s=>{const f=n.isPending&&j===s.slug,J=a.isPending&&S===s.slug,T=h.has(s.slug),A=s.logo??(l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null);return t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 p-4 flex items-center gap-4",children:[t.jsx(U,{url:A??void 0,fallback:s.name.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-10 w-10 shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:s.name}),l&&t.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:["@",l]})]}),s.joinMode==="auto"?t.jsx(M,{size:"default",onClick:()=>n.mutate(s),disabled:n.isPending,children:f?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(F,{size:14,className:"animate-spin"})," Joining..."]}):"Join"}):s.joinMode==="request"?T?t.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:"Request sent"}):t.jsx(M,{size:"default",variant:"outline",onClick:()=>a.mutate(s),disabled:a.isPending,children:J?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(F,{size:14,className:"animate-spin"})," ","Requesting..."]}):"Request to join"}):t.jsx(M,{size:"default",onClick:()=>p?.(s),children:x})]},s.id)},e[24]=l,e[25]=h,e[26]=n,e[27]=p,e[28]=j,e[29]=S,e[30]=a,e[31]=x,e[32]=o):o=e[32],d=i.map(o),e[14]=l,e[15]=h,e[16]=n,e[17]=p,e[18]=i,e[19]=j,e[20]=S,e[21]=a,e[22]=x,e[23]=d}else d=e[23];let m;e[33]!==n.error?(m=n.error&&t.jsx("p",{className:"text-xs text-destructive",role:"alert",children:n.error instanceof Error?n.error.message:"Failed to join organization"}),e[33]=n.error,e[34]=m):m=e[34];let g;e[35]!==a.error?(g=a.error&&t.jsx("p",{className:"text-xs text-destructive",role:"alert",children:a.error instanceof Error?a.error.message:"Failed to request access"}),e[35]=a.error,e[36]=g):g=e[36];let R;return e[37]!==g||e[38]!==d||e[39]!==m?(R=t.jsxs("div",{className:"grid grid-cols-1 gap-2",children:[d,m,g]}),e[37]=g,e[38]=d,e[39]=m,e[40]=R):R=e[40],R}async function $(r){const e=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r.slug})}),i=await e.json();if(!e.ok||!i.success)throw new Error(i.error||"Failed to request access");return{organization:r,slug:i.slug,alreadyMember:i.alreadyMember}}async function D(r){const e=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r.slug})}),i=await e.json();if(!e.ok||!i.success)throw new Error(i.error||"Failed to join organization");return{organization:r,slug:i.slug??r.slug}}export{I as O};
@@ -1 +1 @@
1
- import{c as I,r as O,m as K,j as s,K as R,n as M,d as Q,B as L,t as k}from"./index-Zph9A7yf.js";import{P as T}from"./index-Chh9RHFe.js";import{C as V}from"./collection-table-wrapper-D_6Mi7wH.js";import{E as $}from"./empty-state-CqYJWNTB.js";import{S as U}from"./search-input-Co8buizV.js";import{I as H}from"./input-CUUe2IQe.js";import{L as J}from"./label-BGyB36M1.js";import{u as W}from"./use-debounced-value-COlFFg1d.js";import{D as Y,a as G,b as X,c as Z,d as ee,e as te}from"./dialog-CS6EDVA4.js";import{S as se,a as ie,b as ae,c as ne,d as re}from"./select-CLnM5xZY.js";import{a as q}from"./admin-fetch-CCSvjTk1.js";import{f as le}from"./format-time-BnbuEtat.js";import"./sidebar-nisndB4B.js";import"./LayoutLeft-Dw2hmIVd.js";import"./use-mobile-_5IIYeUG.js";import"./X-B8cdBzJ0.js";import"./tooltip-CT63cZcY.js";import"./table-BV77eO9f.js";import"./ArrowUp-CJqXPjUf.js";import"./SearchMd-kTkW79UX.js";import"./Check-DanyiEnL.js";import"./ChevronDown-BApPtVmh.js";import"./ChevronUp-DHN-jwxT.js";import"./differenceInSeconds-NQ4PDo0z.js";const oe=["owner","admin","user"];function me(t){const e=I.c(49),{org:l}=t,[g,n]=O.useState(!1),[a,p]=O.useState(""),[o,S]=O.useState("user"),x=M();let u;e[0]!==a||e[1]!==l.id||e[2]!==o?(u=()=>q(`/api/_admin/orgs/${l.id}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a.trim(),role:o})}),e[0]=a,e[1]=l.id,e[2]=o,e[3]=u):u=e[3];let m;e[4]!==a||e[5]!==l.name||e[6]!==x?(m=()=>{k.success(`Added ${a.trim()} to ${l.name}`),x.invalidateQueries({queryKey:R.deploymentAdminOrgsList()}),n(!1),p(""),S("user")},e[4]=a,e[5]=l.name,e[6]=x,e[7]=m):m=e[7];let h;e[8]!==u||e[9]!==m?(h={mutationFn:u,onSuccess:m,onError:de},e[8]=u,e[9]=m,e[10]=h):h=e[10];const i=Q(h);let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(X,{asChild:!0,children:s.jsx(L,{variant:"outline",size:"sm",children:"Add member"})}),e[11]=b):b=e[11];let r;e[12]!==l.name?(r=s.jsx(Y,{children:s.jsxs(G,{children:["Add member to ",l.name]})}),e[12]=l.name,e[13]=r):r=e[13];let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(J,{htmlFor:"admin-add-member-email",children:"Email"}),e[14]=c):c=e[14];let d;e[15]===Symbol.for("react.memo_cache_sentinel")?(d=B=>p(B.target.value),e[15]=d):d=e[15];let f;e[16]!==a||e[17]!==i.isPending?(f=s.jsxs("div",{className:"space-y-2",children:[c,s.jsx(H,{id:"admin-add-member-email",type:"email",value:a,onChange:d,placeholder:"user@example.com",disabled:i.isPending})]}),e[16]=a,e[17]=i.isPending,e[18]=f):f=e[18];let j;e[19]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(ie,{className:"w-full",children:s.jsx(ae,{})}),e[19]=j):j=e[19];let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(ne,{children:oe.map(ce)}),e[20]=z):z=e[20];let y;e[21]!==i.isPending||e[22]!==o?(y=s.jsxs(se,{value:o,onValueChange:S,disabled:i.isPending,children:[j,z]}),e[21]=i.isPending,e[22]=o,e[23]=y):y=e[23];let _;e[24]!==y||e[25]!==f?(_=s.jsxs("div",{className:"space-y-4",children:[f,y]}),e[24]=y,e[25]=f,e[26]=_):_=e[26];let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=()=>n(!1),e[27]=A):A=e[27];let C;e[28]!==i.isPending?(C=s.jsx(L,{variant:"outline",onClick:A,disabled:i.isPending,children:"Cancel"}),e[28]=i.isPending,e[29]=C):C=e[29];let N;e[30]!==i?(N=()=>i.mutate(),e[30]=i,e[31]=N):N=e[31];let P;e[32]!==a||e[33]!==i.isPending?(P=!a.trim()||i.isPending,e[32]=a,e[33]=i.isPending,e[34]=P):P=e[34];const F=i.isPending?"Adding...":"Add member";let v;e[35]!==N||e[36]!==P||e[37]!==F?(v=s.jsx(L,{onClick:N,disabled:P,children:F}),e[35]=N,e[36]=P,e[37]=F,e[38]=v):v=e[38];let w;e[39]!==C||e[40]!==v?(w=s.jsxs(Z,{children:[C,v]}),e[39]=C,e[40]=v,e[41]=w):w=e[41];let E;e[42]!==_||e[43]!==w||e[44]!==r?(E=s.jsxs(ee,{className:"sm:max-w-md",children:[r,_,w]}),e[42]=_,e[43]=w,e[44]=r,e[45]=E):E=e[45];let D;return e[46]!==g||e[47]!==E?(D=s.jsxs(te,{open:g,onOpenChange:n,children:[b,E]}),e[46]=g,e[47]=E,e[48]=D):D=e[48],D}function ce(t){return s.jsx(re,{value:t,children:s.jsx("span",{className:"capitalize",children:t})},t)}function de(t){k.error(t instanceof Error?t.message:"Failed to add member")}function qe(){const t=I.c(24),[e,l]=O.useState("");let g;t[0]!==e?(g=e.trim(),t[0]=e,t[1]=g):g=t[1];const n=W(g,300);let a;t[2]!==n?(a=R.deploymentAdminOrgs(n),t[2]=n,t[3]=a):a=t[3];let p;t[4]!==n?(p=()=>{const j=new URLSearchParams({limit:"100"});return n&&j.set("search",n),q(`/api/_admin/orgs?${j}`)},t[4]=n,t[5]=p):p=t[5];let o;t[6]!==a||t[7]!==p?(o={queryKey:a,queryFn:p},t[6]=a,t[7]=p,t[8]=o):o=t[8];const{data:S,isLoading:x,isError:u}=K(o);let m;t[9]!==S?.organizations?(m=S?.organizations??[],t[9]=S?.organizations,t[10]=m):m=t[10];const h=m;let i;t[11]===Symbol.for("react.memo_cache_sentinel")?(i=[{id:"name",header:"Organization",render:ge,cellClassName:"flex-1 min-w-0"},{id:"members",header:"Members",render:pe,cellClassName:"w-24 shrink-0"},{id:"created",header:"Created",render:ue,cellClassName:"w-48 shrink-0"},{id:"actions",header:"",render:fe,cellClassName:"w-32 shrink-0"}],t[11]=i):i=t[11];const b=i;let r;t[12]!==e?(r=s.jsx(U,{value:e,onChange:l,placeholder:"Search organizations by name or slug...",className:"w-full md:w-[375px]"}),t[12]=e,t[13]=r):r=t[13];let c;t[14]!==n||t[15]!==u?(c=u?s.jsx($,{title:"Failed to load organizations",description:"Something went wrong. Refresh to try again."}):s.jsx($,{title:"No organizations found",description:n?`No organizations match "${n}"`:"No organizations exist yet."}),t[14]=n,t[15]=u,t[16]=c):c=t[16];let d;t[17]!==x||t[18]!==h||t[19]!==c?(d=s.jsx(V,{columns:b,data:h,isLoading:x,emptyState:c}),t[17]=x,t[18]=h,t[19]=c,t[20]=d):d=t[20];let f;return t[21]!==r||t[22]!==d?(f=s.jsx(T,{children:s.jsx(T.Content,{children:s.jsx(T.Body,{children:s.jsxs("div",{className:"flex flex-col gap-6",children:[r,d]})})})}),t[21]=r,t[22]=d,t[23]=f):f=t[23],f}function fe(t){return s.jsx(me,{org:t})}function ue(t){return s.jsx("span",{className:"text-sm text-foreground",children:le(t.createdAt)})}function pe(t){return s.jsx("span",{className:"text-sm text-foreground",children:t.memberCount})}function ge(t){return s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:t.name}),s.jsx("div",{className:"text-sm text-muted-foreground truncate",children:t.slug})]})}export{qe as default};
1
+ import{c as I,r as O,m as K,j as s,K as R,n as M,d as Q,B as L,t as k}from"./index-DcIBnpEi.js";import{P as T}from"./index-B4UIYyWJ.js";import{C as V}from"./collection-table-wrapper-4ppIv-p9.js";import{E as $}from"./empty-state-2f1dk8dl.js";import{S as U}from"./search-input-CWI66WZh.js";import{I as H}from"./input-CzqITCIW.js";import{L as J}from"./label-XzNlba7M.js";import{u as W}from"./use-debounced-value-CEU4XuDq.js";import{D as Y,a as G,b as X,c as Z,d as ee,e as te}from"./dialog-Hnvvuwtr.js";import{S as se,a as ie,b as ae,c as ne,d as re}from"./select-B769KgqG.js";import{a as q}from"./admin-fetch-CCSvjTk1.js";import{f as le}from"./format-time-BnbuEtat.js";import"./sidebar-CnVq7sh3.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./tooltip-FbSqyAkw.js";import"./table-Cpz7KTQ5.js";import"./ArrowUp-CPmpTxqA.js";import"./SearchMd-C7y5LJQw.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./differenceInSeconds-NQ4PDo0z.js";const oe=["owner","admin","user"];function me(t){const e=I.c(49),{org:l}=t,[g,n]=O.useState(!1),[a,p]=O.useState(""),[o,S]=O.useState("user"),x=M();let u;e[0]!==a||e[1]!==l.id||e[2]!==o?(u=()=>q(`/api/_admin/orgs/${l.id}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a.trim(),role:o})}),e[0]=a,e[1]=l.id,e[2]=o,e[3]=u):u=e[3];let m;e[4]!==a||e[5]!==l.name||e[6]!==x?(m=()=>{k.success(`Added ${a.trim()} to ${l.name}`),x.invalidateQueries({queryKey:R.deploymentAdminOrgsList()}),n(!1),p(""),S("user")},e[4]=a,e[5]=l.name,e[6]=x,e[7]=m):m=e[7];let h;e[8]!==u||e[9]!==m?(h={mutationFn:u,onSuccess:m,onError:de},e[8]=u,e[9]=m,e[10]=h):h=e[10];const i=Q(h);let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(X,{asChild:!0,children:s.jsx(L,{variant:"outline",size:"sm",children:"Add member"})}),e[11]=b):b=e[11];let r;e[12]!==l.name?(r=s.jsx(Y,{children:s.jsxs(G,{children:["Add member to ",l.name]})}),e[12]=l.name,e[13]=r):r=e[13];let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(J,{htmlFor:"admin-add-member-email",children:"Email"}),e[14]=c):c=e[14];let d;e[15]===Symbol.for("react.memo_cache_sentinel")?(d=B=>p(B.target.value),e[15]=d):d=e[15];let f;e[16]!==a||e[17]!==i.isPending?(f=s.jsxs("div",{className:"space-y-2",children:[c,s.jsx(H,{id:"admin-add-member-email",type:"email",value:a,onChange:d,placeholder:"user@example.com",disabled:i.isPending})]}),e[16]=a,e[17]=i.isPending,e[18]=f):f=e[18];let j;e[19]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(ie,{className:"w-full",children:s.jsx(ae,{})}),e[19]=j):j=e[19];let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(ne,{children:oe.map(ce)}),e[20]=z):z=e[20];let y;e[21]!==i.isPending||e[22]!==o?(y=s.jsxs(se,{value:o,onValueChange:S,disabled:i.isPending,children:[j,z]}),e[21]=i.isPending,e[22]=o,e[23]=y):y=e[23];let _;e[24]!==y||e[25]!==f?(_=s.jsxs("div",{className:"space-y-4",children:[f,y]}),e[24]=y,e[25]=f,e[26]=_):_=e[26];let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=()=>n(!1),e[27]=A):A=e[27];let C;e[28]!==i.isPending?(C=s.jsx(L,{variant:"outline",onClick:A,disabled:i.isPending,children:"Cancel"}),e[28]=i.isPending,e[29]=C):C=e[29];let N;e[30]!==i?(N=()=>i.mutate(),e[30]=i,e[31]=N):N=e[31];let P;e[32]!==a||e[33]!==i.isPending?(P=!a.trim()||i.isPending,e[32]=a,e[33]=i.isPending,e[34]=P):P=e[34];const F=i.isPending?"Adding...":"Add member";let v;e[35]!==N||e[36]!==P||e[37]!==F?(v=s.jsx(L,{onClick:N,disabled:P,children:F}),e[35]=N,e[36]=P,e[37]=F,e[38]=v):v=e[38];let w;e[39]!==C||e[40]!==v?(w=s.jsxs(Z,{children:[C,v]}),e[39]=C,e[40]=v,e[41]=w):w=e[41];let E;e[42]!==_||e[43]!==w||e[44]!==r?(E=s.jsxs(ee,{className:"sm:max-w-md",children:[r,_,w]}),e[42]=_,e[43]=w,e[44]=r,e[45]=E):E=e[45];let D;return e[46]!==g||e[47]!==E?(D=s.jsxs(te,{open:g,onOpenChange:n,children:[b,E]}),e[46]=g,e[47]=E,e[48]=D):D=e[48],D}function ce(t){return s.jsx(re,{value:t,children:s.jsx("span",{className:"capitalize",children:t})},t)}function de(t){k.error(t instanceof Error?t.message:"Failed to add member")}function qe(){const t=I.c(24),[e,l]=O.useState("");let g;t[0]!==e?(g=e.trim(),t[0]=e,t[1]=g):g=t[1];const n=W(g,300);let a;t[2]!==n?(a=R.deploymentAdminOrgs(n),t[2]=n,t[3]=a):a=t[3];let p;t[4]!==n?(p=()=>{const j=new URLSearchParams({limit:"100"});return n&&j.set("search",n),q(`/api/_admin/orgs?${j}`)},t[4]=n,t[5]=p):p=t[5];let o;t[6]!==a||t[7]!==p?(o={queryKey:a,queryFn:p},t[6]=a,t[7]=p,t[8]=o):o=t[8];const{data:S,isLoading:x,isError:u}=K(o);let m;t[9]!==S?.organizations?(m=S?.organizations??[],t[9]=S?.organizations,t[10]=m):m=t[10];const h=m;let i;t[11]===Symbol.for("react.memo_cache_sentinel")?(i=[{id:"name",header:"Organization",render:ge,cellClassName:"flex-1 min-w-0"},{id:"members",header:"Members",render:pe,cellClassName:"w-24 shrink-0"},{id:"created",header:"Created",render:ue,cellClassName:"w-48 shrink-0"},{id:"actions",header:"",render:fe,cellClassName:"w-32 shrink-0"}],t[11]=i):i=t[11];const b=i;let r;t[12]!==e?(r=s.jsx(U,{value:e,onChange:l,placeholder:"Search organizations by name or slug...",className:"w-full md:w-[375px]"}),t[12]=e,t[13]=r):r=t[13];let c;t[14]!==n||t[15]!==u?(c=u?s.jsx($,{title:"Failed to load organizations",description:"Something went wrong. Refresh to try again."}):s.jsx($,{title:"No organizations found",description:n?`No organizations match "${n}"`:"No organizations exist yet."}),t[14]=n,t[15]=u,t[16]=c):c=t[16];let d;t[17]!==x||t[18]!==h||t[19]!==c?(d=s.jsx(V,{columns:b,data:h,isLoading:x,emptyState:c}),t[17]=x,t[18]=h,t[19]=c,t[20]=d):d=t[20];let f;return t[21]!==r||t[22]!==d?(f=s.jsx(T,{children:s.jsx(T.Content,{children:s.jsx(T.Body,{children:s.jsxs("div",{className:"flex flex-col gap-6",children:[r,d]})})})}),t[21]=r,t[22]=d,t[23]=f):f=t[23],f}function fe(t){return s.jsx(me,{org:t})}function ue(t){return s.jsx("span",{className:"text-sm text-foreground",children:le(t.createdAt)})}function pe(t){return s.jsx("span",{className:"text-sm text-foreground",children:t.memberCount})}function ge(t){return s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:t.name}),s.jsx("div",{className:"text-sm text-muted-foreground truncate",children:t.slug})]})}export{qe as default};
@@ -1 +1 @@
1
- import{c as L,n as te,K as U,j as a,r as M,l as ne}from"./index-Zph9A7yf.js";import{i as oe,b as se,r as z,c as re,d as ie,e as le,g as ce,S as ae}from"./index-CyKS18Fo.js";import{L as Y}from"./label-BGyB36M1.js";import{S as $}from"./switch-CAPrI9f4.js";import{d as ue,a as fe,b as pe,c as de,S as ye}from"./select-CLnM5xZY.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=z(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=z(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ee(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function je(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(Ee(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function Ze(t,e,n){if(e.kind==="site"){const l=je(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:G(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:G(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function qe(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function He(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=le(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=E=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,E)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=E=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=M.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=M.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==o?(v=u=>m[u]!==void 0?m[u]:Ae(o,u),e[3]=m,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const j={...o};if(T)delete j[u];else{const D=r?.[u];j[u]=D??(u==="type"?"website":"")}s(j)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const j=p&&d.includes(u),D=j&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),j&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>E(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(h=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=h):h=e[17],h}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Je(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==s||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const j=me(s);p(j),S(),h();return}p(null),S(),h()},e[0]=s,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const j=Se(T,n);p(j)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==h||e[9]!==f?(E=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=E):E=e[10];const P=E;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Je as P,Ie as S,w as a,qe as b,Ce as c,Z as d,je as f,k as i,Ze as r,He as u};
1
+ import{c as L,n as te,K as U,j as a,r as M,l as ne}from"./index-DcIBnpEi.js";import{i as oe,b as se,r as z,c as re,d as ie,e as le,g as ce,S as ae}from"./index-Cw63Whs6.js";import{L as Y}from"./label-XzNlba7M.js";import{S as $}from"./switch-josi6Uyt.js";import{d as ue,a as fe,b as pe,c as de,S as ye}from"./select-B769KgqG.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=z(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=z(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ee(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function je(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(Ee(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function Ze(t,e,n){if(e.kind==="site"){const l=je(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:G(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:G(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function qe(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function He(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=le(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=E=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,E)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=E=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=M.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=M.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==o?(v=u=>m[u]!==void 0?m[u]:Ae(o,u),e[3]=m,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const j={...o};if(T)delete j[u];else{const D=r?.[u];j[u]=D??(u==="type"?"website":"")}s(j)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const j=p&&d.includes(u),D=j&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),j&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>E(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(h=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=h):h=e[17],h}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Je(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==s||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const j=me(s);p(j),S(),h();return}p(null),S(),h()},e[0]=s,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const j=Se(T,n);p(j)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==h||e[9]!==f?(E=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=E):E=e[10];const P=E;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Je as P,Ie as S,w as a,qe as b,Ce as c,Z as d,je as f,k as i,Ze as r,He as u};
@@ -0,0 +1 @@
1
+ import{c as it,r as E,j as e,i as rt}from"./index-DcIBnpEi.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-CnVq7sh3.js";import{A as nt}from"./automation-runs-Dk0QSvXf.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-C5auzZh8.js";import{r as xt}from"./index-Cw63Whs6.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./tooltip-FbSqyAkw.js";import"./select-B769KgqG.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./use-connection-BQbRdj4A.js";import"./use-collections-B6JlYHnr.js";import"./use-mcp-client-CP4c9F3u.js";import"./constants-CaIX_f5U.js";import"./auth-BiABWEcr.js";import"./use-virtual-mcp-BYkuAhYP.js";import"./card-DQteBSZy.js";import"./table-Cpz7KTQ5.js";import"./empty-state-2f1dk8dl.js";import"./use-members-BrCJmQZK.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-clock-tick-Dx2kBV_T.js";import"./AlertCircle-By5V_OAI.js";import"./CheckCircle-CjRjq78H.js";import"./Circle-Ba61O7v3.js";import"./agent-icon-DdKclnWr.js";import"./Tool01-DTcOZbnu.js";import"./ArrowUp-CPmpTxqA.js";import"./Settings02-Cr0VpQbw.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./ZapSquare-CSYmmZIg.js";import"./Users03-D26TNI6S.js";import"./Loading02-OOljSfhT.js";import"./ChevronRight-4FTF4WqI.js";import"./Stars02-A9_Qn88t.js";import"./Copy01-B0978reE.js";import"./ZoomOut-BfjzuKIF.js";import"./DotsVertical-BWXuIIeo.js";import"./Globe01-c9kQJ0J1.js";import"./Eye-CLyPbWNp.js";import"./FilterLines-CZvywTHD.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LinkExternal01-CbZ5Q1kR.js";import"./List-CKuVIidV.js";import"./Monitor01-CIDTmDYS.js";import"./Sun-DBwGI45B.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./Plus-BQc-qQk7.js";import"./SearchLg-Cm7KW90l.js";import"./SearchMd-C7y5LJQw.js";import"./Shield01-D2bvXHJr.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./XClose-Bx_SHZf9.js";import"./Zap-DTYY_yG6.js";import"./use-automations-eRXq8hNu.js";import"./studio-tools-Bdai-xGF.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./badge-BeBCWRwF.js";import"./checkbox-DyFXnv_N.js";import"./command-N6cziNOU.js";import"./index-Dyecjn9n.js";import"./dialog-Hnvvuwtr.js";import"./popover-CH5b_fiQ.js";import"./avatar-D6tfDvwN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DxP-67RS.js";import"./file-type-icon-DCAOo88S.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-oYFtE1AD.js";import"./index-hwaeRRf3.js";import"./chat-context-BFU9KNJs.js";import"./autosend-OBVQJIwA.js";import"./hooks-DxKHI4Sv.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-rBuyV02F.js";import"./use-decopilot-events-BrhYZT96.js";import"./use-organization-settings-DPWTEzqv.js";import"./index-CRhm_2EO.js";import"./shell-layout-CvmkWYxb.js";import"./alert-dialog-CySfFhdC.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";import"./integration-icon-ZhMn59o3.js";import"./use-navigate-to-agent-S62tKbn_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DYFue3AB.js";import"./form-44AoMqLt.js";import"./label-XzNlba7M.js";import"./input-CzqITCIW.js";import"./switch-josi6Uyt.js";import"./drawer-BN7xa-Kn.js";import"./collection-search-DUDcpj0N.js";import"./tabs-Bd4tTw7M.js";import"./toggle-group-CCVpVQJx.js";import"./use-deco-credits-BIY8ss-U.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./extract-connection-data-C9LhPqdN.js";import"./collection-tabs-BoJeinsY.js";import"./textarea-CN1NcM6-.js";import"./connection-form-helpers-B9LwF6od.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./connect-desktop-dialog-D5uIE_v3.js";import"./select-model-DBtqvDeJ.js";import"./skeleton-DDgvHM8p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DlrJmzQQ.js";import"./dropdown-menu-C1oaxvGA.js";import"./index-DLUt_tIW.js";import"./toolbar-4tiJk0vY.js";import"./use-debounced-value-CEU4XuDq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Qyl_ERMg.js";import"./use-mcp-tools-Bt4ZQFfJ.js";import"./use-capability-DG3TMrBr.js";import"./tools-list-OlvXGJpp.js";import"./use-debounced-autosave-DUw5dpg0.js";import"./index-B4UIYyWJ.js";import"./search-input-CWI66WZh.js";import"./github-repo-picker-CW5PRm8S.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Bog2G1S_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DXQi4Q1O.js";import"./get-initials-D-f_fDFw.js";import"./calendar-B8LPJQzI.js";import"./toolbar-icon-button-B4ns4onG.js";import"./use-file-configs-DL6xLLlG.js";import"./automation-list-row-fGuDXKMz.js";function Si(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const A=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const M=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==V||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{Si as SeoSheet};
@@ -1 +1 @@
1
- import{r as i,aQ as $,j as c,cR as L,aU as z,aR as A,aN as _,aT as P,cS as j,b9 as w,cT as G,cU as E,c_ as H,d0 as U,aP as K,d2 as V,c$ as W,d1 as Q,cV as Y,cW as Z,cY as q,c as R,l as B}from"./index-Zph9A7yf.js";var C="Popover",[b]=K(C,[E]),g=E(),[J,u]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=g(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",X=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=g(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(j,{...s,...r,ref:e})});X.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=g(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:P(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(j,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=b(O,{forceMount:void 0}),T=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(w,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};T.displayName=O;var v="PopoverContent",D=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(w,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});D.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(U,{as:te,allowPinchZoom:!0,children:c.jsx(M,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:P(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:P(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(M,{...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()}})}),M=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=g(o);return W(),c.jsx(Q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Y,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(Z,{"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:P(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=g(o);return c.jsx(q,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=T,de=D;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 Pe(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=B("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{ve as P,Pe as a,fe as b};
1
+ import{r as i,aQ as $,j as c,cR as L,aU as z,aR as A,aN as _,aT as P,cS as j,b9 as w,cT as G,cU as E,c_ as H,d0 as U,aP as K,d2 as V,c$ as W,d1 as Q,cV as Y,cW as Z,cY as q,c as R,l as B}from"./index-DcIBnpEi.js";var C="Popover",[b]=K(C,[E]),g=E(),[J,u]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=g(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",X=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=g(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(j,{...s,...r,ref:e})});X.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=g(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:P(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(j,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=b(O,{forceMount:void 0}),T=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(w,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};T.displayName=O;var v="PopoverContent",D=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(w,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});D.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(U,{as:te,allowPinchZoom:!0,children:c.jsx(M,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:P(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:P(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(M,{...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()}})}),M=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=g(o);return W(),c.jsx(Q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Y,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(Z,{"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:P(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=g(o);return c.jsx(q,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=T,de=D;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 Pe(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=B("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{ve as P,Pe as a,fe as b};
@@ -1 +1 @@
1
- import{c as G,j as t,B as Z}from"./index-Zph9A7yf.js";import{n as ee}from"./LinkExternal01-DzbL04rr.js";import{aH as te,a as oe}from"./agent-icon-BVYuA7Oa.js";import{I as J}from"./input-CUUe2IQe.js";import{L as q}from"./label-BGyB36M1.js";import{a1 as ie}from"./automation-runs-BFZIrw9m.js";import{b as Q,c as se,T as W,a as re}from"./tabs-Dnhjr_ni.js";import{T as le}from"./textarea-DAEAkdQ_.js";import{v as ae,w as me,o as pe,x as ne,I as ce,y as de,z as fe}from"./index-CyKS18Fo.js";import{b as ue,a as xe,B as he}from"./block-document-BDYEic9n.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-C8z1ctK9.js";import"./AlertCircle-CAhfY1-I.js";import"./Tool01-Dv8zTOAK.js";import"./ArrowUp-CJqXPjUf.js";import"./Settings02-C5v-emPS.js";import"./Tool02-ClipZ7bo.js";import"./XCircle--KFzS8uf.js";import"./ArrowUpRight-CNxNg8gQ.js";import"./TrendUp01-znQWqXKh.js";import"./ZapSquare-CEGEJhAq.js";import"./Users03-D6h5pXVq.js";import"./Loading02-BD0siFDt.js";import"./CheckCircle-QUfhm4t_.js";import"./Check-DanyiEnL.js";import"./ChevronDown-BApPtVmh.js";import"./ChevronRight-DWn63Qut.js";import"./ChevronUp-DHN-jwxT.js";import"./Circle-BQyPp8-D.js";import"./Stars02-DxxHV0k7.js";import"./Copy01-BF37UFdB.js";import"./ZoomOut-CPyQR9cf.js";import"./DotsVertical-LI2dCOUo.js";import"./Globe01-DuV6QcZy.js";import"./Eye-CuhoU23S.js";import"./FilterLines-NLpPVI-d.js";import"./Star01-DsSI6JW7.js";import"./Globe04-CbE6CX79.js";import"./SwitchHorizontal01-t1IT2jBx.js";import"./HardDrive-B1IIWkTs.js";import"./Key01-_q-La8CZ.js";import"./LayoutLeft-Dw2hmIVd.js";import"./List-BzPiI9b3.js";import"./Monitor01-CbNIOnyB.js";import"./Sun-D-S9S2ej.js";import"./Package-C23vLxNv.js";import"./Palette-BIL7c4-L.js";import"./Play-GDXaUCH4.js";import"./Plus-Bu9bwB8j.js";import"./SearchLg-D7xA7zpm.js";import"./SearchMd-kTkW79UX.js";import"./Shield01-t3-_-OY2.js";import"./Stars01-8mxVtFbj.js";import"./Trash01-3_WDaYuV.js";import"./Upload01-CSq1162V.js";import"./User01-ClCsZZP9.js";import"./Users01-DxmBQruN.js";import"./XClose-BIcQUxWe.js";import"./X-B8cdBzJ0.js";import"./Zap-5x6E8SYA.js";import"./select-CLnM5xZY.js";import"./tooltip-CT63cZcY.js";import"./useInfiniteQuery-DUk6rN9-.js";import"./use-infinite-scroll-0Zcm9XAP.js";import"./use-connection-CWojo_D3.js";import"./use-collections-C3OPKdUJ.js";import"./use-mcp-client-DA4l7NMh.js";import"./constants-CaIX_f5U.js";import"./auth-CwljyZPh.js";import"./use-virtual-mcp-CCbgOxsv.js";import"./card-ywNPelP4.js";import"./sidebar-nisndB4B.js";import"./use-mobile-_5IIYeUG.js";import"./table-BV77eO9f.js";import"./empty-state-CqYJWNTB.js";import"./use-members-BOUewexP.js";import"./use-org-auth-client-DjqRzh-D.js";import"./use-clock-tick-BPem6EqS.js";import"./use-automations-Dl6TdHzo.js";import"./studio-tools-BSLnTfFC.js";import"./useSuspenseInfiniteQuery-BH7eDxqd.js";import"./badge-3OH2cdJk.js";import"./checkbox-Bj_DwN9o.js";import"./command-BIP4vaGE.js";import"./index-8MqyY2FH.js";import"./dialog-CS6EDVA4.js";import"./popover-D-tVO42q.js";import"./avatar-D1BbV9dp.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CxtHgMoF.js";import"./file-type-icon-5cBucj4Z.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-rZmsrnl3.js";import"./index-H2smweq-.js";import"./chat-context-CvjQMyke.js";import"./autosend-Cgw0LO6f.js";import"./hooks-D4O7gEHf.js";import"./decopilot-sse-pool-BOoUc205.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-CNn-G0WG.js";import"./use-decopilot-events-Bf9nxorT.js";import"./use-organization-settings-Czmh3IHJ.js";import"./index-D9UEbl2s.js";import"./shell-layout-BRwC1gio.js";import"./alert-dialog-bGcaxIEN.js";import"./required-auth-layout-Dd3Zjc0e.js";import"./use-org-sso-DBUVZzYp.js";import"./integration-icon-CSLpssyE.js";import"./use-navigate-to-agent-CCdr2MAT.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CMkV5kTR.js";import"./form-DChJt1IJ.js";import"./drawer-CTZJ2rAS.js";import"./collection-search-DitylQVA.js";import"./toggle-group-z06LwOXU.js";import"./use-deco-credits-BOpkUCFX.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BzPHXusj.js";import"./use-registry-connections-BaiK5dhC.js";import"./extract-connection-data-CqVJ9mYj.js";import"./collection-tabs-KzsrqC8l.js";import"./connection-form-helpers-BG0cOPY5.js";import"./authenticate-and-persist-oauth-B2DnQbSw.js";import"./mcp-oauth-oOtKvLXg.js";import"./connect-desktop-dialog-DWFQpS_H.js";import"./select-model-DHvKHtQ9.js";import"./skeleton-D0D1c07b.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DgeqehPc.js";import"./dropdown-menu-C2eFZtvw.js";import"./index-CpZPszPD.js";import"./toolbar-KDAy2LOV.js";import"./use-debounced-value-COlFFg1d.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BsTQkWMh.js";import"./use-mcp-tools-DFM0siR4.js";import"./use-capability-B6eGKNoH.js";import"./tools-list-AydqEwPG.js";import"./switch-CAPrI9f4.js";import"./use-debounced-autosave-drPWJZkH.js";import"./index-Chh9RHFe.js";import"./search-input-Co8buizV.js";import"./github-repo-picker-DxX-MN6R.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Fpj5hs9J.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DJnB8JtD.js";import"./get-initials-D-f_fDFw.js";import"./calendar-6Go5xXYA.js";import"./toolbar-icon-button-CVVU6wPU.js";import"./use-file-configs-DT0jLQzS.js";import"./automation-list-row-BoM-GHgO.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function hi(A){const e=G.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:r,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]!==r||e[7]!==s?(b=T=>{s.mutate({blockKey:r,data:ne(r,"posts",T)})},e[6]=r,e[7]=s,e[8]=b):b=e[8];const[l,_]=ge(j,b);let C;e[9]!==l||e[10]!==_?(C=(T,Y)=>_({...l,[T]:Y}),e[9]=l,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==l||e[14]!==x?(S=ue({decofile:m,post:l,previewBaseUrl:x}),e[12]=m,e[13]=l,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==l.title?(a=F(l.title)||"Untitled post",e[16]=l.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]!==l.title?(L=F(l.title),e[36]=l.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let I;e[40]!==L||e[41]!==R?(I=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=I):I=e[42];let 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 H;e[44]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=H):H=e[44];let U;e[45]!==l.sections?(U=xe(l.sections),e[45]=l.sections,e[46]=U):U=e[46];let $;e[47]!==h?($=T=>h("sections",T),e[47]=h,e[48]=$):$=e[48];let z;e[49]!==u||e[50]!==U||e[51]!==$?(z=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:U,onChange:$,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=U,e[51]=$,e[52]=z):z=e[52];let D;e[53]!==m||e[54]!==l||e[55]!==h?(D=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:l,decofile:m,onChange:h})})}),e[53]=m,e[54]=l,e[55]=h,e[56]=D):D=e[56];let M;e[57]!==z||e[58]!==D?(M=t.jsxs(re,{defaultValue:"content",className:"mt-6 gap-4",children:[H,z,D]}),e[57]=z,e[58]=D,e[59]=M):M=e[59];let V;e[60]!==I||e[61]!==M?(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:[I,M]})}),e[60]=I,e[61]=M,e[62]=V):V=e[62];let K;return e[63]!==v||e[64]!==V?(K=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=K):K=e[65],K}function Ce(A){const e=G.c(59),{post:i,decofile:d,onChange:o}=A;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(q,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=r):r=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:[r,t.jsx(le,{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(q,{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 l;e[19]!==o?(l=v=>o("date",v),e[19]=o,e[20]=l):l=e[20];let _;e[21]!==b||e[22]!==l?(_=t.jsx(fe,{schema:j,value:b,onChange:l,path:"post-date",label:"Date"}),e[21]=b,e[22]=l,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=G.c(15),{value:i,onChange:d}=A;let o,r,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));r="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(q,{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]=r,e[4]=p,e[5]=m}else o=e[2],r=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]!==r||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:r,children:[p,m,u]}),e[10]=r,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=G.c(31),{label:i,decofile:d,kind:o,valueField:r,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==r){x=de(d,o);let f;e[6]!==r?(f=(c,g)=>F(c[r])||g,e[6]=r,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]=r,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]!==r){const f=Array.isArray(m)?m:[];let a;e[13]!==r?(a=c=>F(c[r]),e[13]=r,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=r,e[12]=j}else j=e[12];const b=j;let l;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==r||e[19]!==s?(l=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,[r]: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]=r,e[19]=s,e[20]=l):l=e[20];const _=l;let C;e[21]!==i?(C=t.jsx(q,{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{hi as PostEditor};
1
+ import{c as G,j as t,B as Z}from"./index-DcIBnpEi.js";import{n as ee}from"./LinkExternal01-CbZ5Q1kR.js";import{aH as te,a as oe}from"./agent-icon-DdKclnWr.js";import{I as J}from"./input-CzqITCIW.js";import{L as q}from"./label-XzNlba7M.js";import{a1 as ie}from"./automation-runs-Dk0QSvXf.js";import{b as Q,c as se,T as W,a as re}from"./tabs-Bd4tTw7M.js";import{T as le}from"./textarea-CN1NcM6-.js";import{v as ae,w as me,o as pe,x as ne,I as ce,y as de,z as fe}from"./index-Cw63Whs6.js";import{b as ue,a as xe,B as he}from"./block-document-ohDylXKj.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-DFbg_AMZ.js";import"./AlertCircle-By5V_OAI.js";import"./Tool01-DTcOZbnu.js";import"./ArrowUp-CPmpTxqA.js";import"./Settings02-Cr0VpQbw.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./ZapSquare-CSYmmZIg.js";import"./Users03-D26TNI6S.js";import"./Loading02-OOljSfhT.js";import"./CheckCircle-CjRjq78H.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronRight-4FTF4WqI.js";import"./ChevronUp-LzTIy1Gg.js";import"./Circle-Ba61O7v3.js";import"./Stars02-A9_Qn88t.js";import"./Copy01-B0978reE.js";import"./ZoomOut-BfjzuKIF.js";import"./DotsVertical-BWXuIIeo.js";import"./Globe01-c9kQJ0J1.js";import"./Eye-CLyPbWNp.js";import"./FilterLines-CZvywTHD.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LayoutLeft-CBWI-N6A.js";import"./List-CKuVIidV.js";import"./Monitor01-CIDTmDYS.js";import"./Sun-DBwGI45B.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./Plus-BQc-qQk7.js";import"./SearchLg-Cm7KW90l.js";import"./SearchMd-C7y5LJQw.js";import"./Shield01-D2bvXHJr.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./XClose-Bx_SHZf9.js";import"./X-9ap9xtG7.js";import"./Zap-DTYY_yG6.js";import"./select-B769KgqG.js";import"./tooltip-FbSqyAkw.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./use-connection-BQbRdj4A.js";import"./use-collections-B6JlYHnr.js";import"./use-mcp-client-CP4c9F3u.js";import"./constants-CaIX_f5U.js";import"./auth-BiABWEcr.js";import"./use-virtual-mcp-BYkuAhYP.js";import"./card-DQteBSZy.js";import"./sidebar-CnVq7sh3.js";import"./use-mobile-CNvoxL11.js";import"./table-Cpz7KTQ5.js";import"./empty-state-2f1dk8dl.js";import"./use-members-BrCJmQZK.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-clock-tick-Dx2kBV_T.js";import"./use-automations-eRXq8hNu.js";import"./studio-tools-Bdai-xGF.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./badge-BeBCWRwF.js";import"./checkbox-DyFXnv_N.js";import"./command-N6cziNOU.js";import"./index-Dyecjn9n.js";import"./dialog-Hnvvuwtr.js";import"./popover-CH5b_fiQ.js";import"./avatar-D6tfDvwN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DxP-67RS.js";import"./file-type-icon-DCAOo88S.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-oYFtE1AD.js";import"./index-hwaeRRf3.js";import"./chat-context-BFU9KNJs.js";import"./autosend-OBVQJIwA.js";import"./hooks-DxKHI4Sv.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-rBuyV02F.js";import"./use-decopilot-events-BrhYZT96.js";import"./use-organization-settings-DPWTEzqv.js";import"./index-CRhm_2EO.js";import"./shell-layout-CvmkWYxb.js";import"./alert-dialog-CySfFhdC.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";import"./integration-icon-ZhMn59o3.js";import"./use-navigate-to-agent-S62tKbn_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DYFue3AB.js";import"./form-44AoMqLt.js";import"./drawer-BN7xa-Kn.js";import"./collection-search-DUDcpj0N.js";import"./toggle-group-CCVpVQJx.js";import"./use-deco-credits-BIY8ss-U.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./extract-connection-data-C9LhPqdN.js";import"./collection-tabs-BoJeinsY.js";import"./connection-form-helpers-B9LwF6od.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./connect-desktop-dialog-D5uIE_v3.js";import"./select-model-DBtqvDeJ.js";import"./skeleton-DDgvHM8p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DlrJmzQQ.js";import"./dropdown-menu-C1oaxvGA.js";import"./index-DLUt_tIW.js";import"./toolbar-4tiJk0vY.js";import"./use-debounced-value-CEU4XuDq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Qyl_ERMg.js";import"./use-mcp-tools-Bt4ZQFfJ.js";import"./use-capability-DG3TMrBr.js";import"./tools-list-OlvXGJpp.js";import"./switch-josi6Uyt.js";import"./use-debounced-autosave-DUw5dpg0.js";import"./index-B4UIYyWJ.js";import"./search-input-CWI66WZh.js";import"./github-repo-picker-CW5PRm8S.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Bog2G1S_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DXQi4Q1O.js";import"./get-initials-D-f_fDFw.js";import"./calendar-B8LPJQzI.js";import"./toolbar-icon-button-B4ns4onG.js";import"./use-file-configs-DL6xLLlG.js";import"./automation-list-row-fGuDXKMz.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function hi(A){const e=G.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:r,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]!==r||e[7]!==s?(b=T=>{s.mutate({blockKey:r,data:ne(r,"posts",T)})},e[6]=r,e[7]=s,e[8]=b):b=e[8];const[l,_]=ge(j,b);let C;e[9]!==l||e[10]!==_?(C=(T,Y)=>_({...l,[T]:Y}),e[9]=l,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==l||e[14]!==x?(S=ue({decofile:m,post:l,previewBaseUrl:x}),e[12]=m,e[13]=l,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==l.title?(a=F(l.title)||"Untitled post",e[16]=l.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]!==l.title?(L=F(l.title),e[36]=l.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let I;e[40]!==L||e[41]!==R?(I=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=I):I=e[42];let 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 H;e[44]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=H):H=e[44];let U;e[45]!==l.sections?(U=xe(l.sections),e[45]=l.sections,e[46]=U):U=e[46];let $;e[47]!==h?($=T=>h("sections",T),e[47]=h,e[48]=$):$=e[48];let z;e[49]!==u||e[50]!==U||e[51]!==$?(z=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:U,onChange:$,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=U,e[51]=$,e[52]=z):z=e[52];let D;e[53]!==m||e[54]!==l||e[55]!==h?(D=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:l,decofile:m,onChange:h})})}),e[53]=m,e[54]=l,e[55]=h,e[56]=D):D=e[56];let M;e[57]!==z||e[58]!==D?(M=t.jsxs(re,{defaultValue:"content",className:"mt-6 gap-4",children:[H,z,D]}),e[57]=z,e[58]=D,e[59]=M):M=e[59];let V;e[60]!==I||e[61]!==M?(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:[I,M]})}),e[60]=I,e[61]=M,e[62]=V):V=e[62];let K;return e[63]!==v||e[64]!==V?(K=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=K):K=e[65],K}function Ce(A){const e=G.c(59),{post:i,decofile:d,onChange:o}=A;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(q,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=r):r=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:[r,t.jsx(le,{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(q,{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 l;e[19]!==o?(l=v=>o("date",v),e[19]=o,e[20]=l):l=e[20];let _;e[21]!==b||e[22]!==l?(_=t.jsx(fe,{schema:j,value:b,onChange:l,path:"post-date",label:"Date"}),e[21]=b,e[22]=l,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=G.c(15),{value:i,onChange:d}=A;let o,r,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));r="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(q,{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]=r,e[4]=p,e[5]=m}else o=e[2],r=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]!==r||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:r,children:[p,m,u]}),e[10]=r,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=G.c(31),{label:i,decofile:d,kind:o,valueField:r,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==r){x=de(d,o);let f;e[6]!==r?(f=(c,g)=>F(c[r])||g,e[6]=r,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]=r,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]!==r){const f=Array.isArray(m)?m:[];let a;e[13]!==r?(a=c=>F(c[r]),e[13]=r,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=r,e[12]=j}else j=e[12];const b=j;let l;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==r||e[19]!==s?(l=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,[r]: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]=r,e[19]=s,e[20]=l):l=e[20];const _=l;let C;e[21]!==i?(C=t.jsx(q,{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{hi as PostEditor};
@@ -1 +1 @@
1
- import{c as h,r as y,l as j,j as f}from"./index-Zph9A7yf.js";import{k as A}from"./agent-icon-BVYuA7Oa.js";import{s as N}from"./Plus-Bu9bwB8j.js";import{s as _}from"./Trash01-3_WDaYuV.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-DcIBnpEi.js";import{k as A}from"./agent-icon-DdKclnWr.js";import{s as N}from"./Plus-BQc-qQk7.js";import{s as _}from"./Trash01-CRdtidTM.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,M as F,af as q,a6 as B,R as N,t as T}from"./index-Zph9A7yf.js";import{P as L}from"./index-Chh9RHFe.js";import{A as U}from"./avatar-D1BbV9dp.js";import{S as I}from"./switch-CAPrI9f4.js";import{S as G,a as Y,d as $,c as K}from"./select-CLnM5xZY.js";import{a as M,T as z}from"./toggle-group-z06LwOXU.js";import{I as O}from"./input-CUUe2IQe.js";import{i as H}from"./Monitor01-CbNIOnyB.js";import{n as J,a as Q}from"./Sun-D-S9S2ej.js";import{i as W}from"./Play-GDXaUCH4.js";import{u as X}from"./use-debounced-autosave-drPWJZkH.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-C5AgWvQk.js";import{c as te,b as A,S as E,a as R}from"./settings-section-DgeqehPc.js";import"./sidebar-nisndB4B.js";import"./LayoutLeft-Dw2hmIVd.js";import"./use-mobile-_5IIYeUG.js";import"./X-B8cdBzJ0.js";import"./tooltip-CT63cZcY.js";import"./User01-ClCsZZP9.js";import"./Check-DanyiEnL.js";import"./ChevronDown-BApPtVmh.js";import"./ChevronUp-DHN-jwxT.js";import"./card-ywNPelP4.js";import"./ArrowUpRight-CNxNg8gQ.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=F(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const r=n.getValues(),f=n.control._defaultValues;n.reset(r,{keepValues:!0});try{await D.updateUser({name:r.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:r}=g;return t.jsx(O,{id:"display-name",...r,onChange:f=>{r.onChange(f),x()},onBlur:()=>{r.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const b=v?.email;let a;e[13]!==b?(a=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=a):a=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==a?(u=t.jsx(E,{children:t.jsxs(R,{children:[i,d,a]})}),e[15]=i,e[16]=d,e[17]=a,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(ae);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(J,{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(M,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let a;e[25]!==s.enableSounds||e[26]!==b?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=a):a=e[27];let u;e[28]!==a||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:a}),e[28]=a,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let r;e[33]!==s.toolApprovalLevel?(r={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=r):r=e[34];let f;e[35]!==r?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:r})}),e[35]=r,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(K,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(R,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function ae(e){return{...e,enableNotifications:!1}}function re(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{}),e[0]=s):s=e[0],s}export{De as default};
1
+ import{c as V,j as t,a as D,M as F,af as q,a6 as B,R as N,t as T}from"./index-DcIBnpEi.js";import{P as L}from"./index-B4UIYyWJ.js";import{A as U}from"./avatar-D6tfDvwN.js";import{S as I}from"./switch-josi6Uyt.js";import{S as G,a as Y,d as $,c as K}from"./select-B769KgqG.js";import{a as M,T as z}from"./toggle-group-CCVpVQJx.js";import{I as O}from"./input-CzqITCIW.js";import{i as H}from"./Monitor01-CIDTmDYS.js";import{n as J,a as Q}from"./Sun-DBwGI45B.js";import{i as W}from"./Play-YTvPwfKb.js";import{u as X}from"./use-debounced-autosave-DUw5dpg0.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-DqAJeepK.js";import{c as te,b as A,S as E,a as R}from"./settings-section-DlrJmzQQ.js";import"./sidebar-CnVq7sh3.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./tooltip-FbSqyAkw.js";import"./User01-dV6U41aQ.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./card-DQteBSZy.js";import"./ArrowUpRight-DTva-CtK.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=F(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const r=n.getValues(),f=n.control._defaultValues;n.reset(r,{keepValues:!0});try{await D.updateUser({name:r.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:r}=g;return t.jsx(O,{id:"display-name",...r,onChange:f=>{r.onChange(f),x()},onBlur:()=>{r.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const b=v?.email;let a;e[13]!==b?(a=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=a):a=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==a?(u=t.jsx(E,{children:t.jsxs(R,{children:[i,d,a]})}),e[15]=i,e[16]=d,e[17]=a,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(ae);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(J,{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(M,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let a;e[25]!==s.enableSounds||e[26]!==b?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=a):a=e[27];let u;e[28]!==a||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:a}),e[28]=a,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let r;e[33]!==s.toolApprovalLevel?(r={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=r):r=e[34];let f;e[35]!==r?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:r})}),e[35]=r,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(K,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(R,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function ae(e){return{...e,enableNotifications:!1}}function re(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{}),e[0]=s):s=e[0],s}export{De as default};
@@ -0,0 +1 @@
1
+ import{c as $,a4 as H,j as v}from"./index-DcIBnpEi.js";import{a as L,g as E,s as b}from"./automation-runs-Dk0QSvXf.js";import{u as O}from"./use-mcp-client-CP4c9F3u.js";import{p as k}from"./constants-CaIX_f5U.js";import{b as q,c as B}from"./use-mcp-tools-Bt4ZQFfJ.js";import{u as Y}from"./index-Cw63Whs6.js";import{c as G}from"./monaco-editor-oYFtE1AD.js";import{g as K,M as V,a as w}from"./index-CRhm_2EO.js";import{b as z,a as F}from"./chat-context-BFU9KNJs.js";import{u as J}from"./shell-layout-CvmkWYxb.js";import"./select-B769KgqG.js";import"./tooltip-FbSqyAkw.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./use-connection-BQbRdj4A.js";import"./use-collections-B6JlYHnr.js";import"./use-virtual-mcp-BYkuAhYP.js";import"./card-DQteBSZy.js";import"./sidebar-CnVq7sh3.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./table-Cpz7KTQ5.js";import"./empty-state-2f1dk8dl.js";import"./use-members-BrCJmQZK.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-clock-tick-Dx2kBV_T.js";import"./AlertCircle-By5V_OAI.js";import"./CheckCircle-CjRjq78H.js";import"./Circle-Ba61O7v3.js";import"./agent-icon-DdKclnWr.js";import"./Tool01-DTcOZbnu.js";import"./ArrowUp-CPmpTxqA.js";import"./Settings02-Cr0VpQbw.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./ZapSquare-CSYmmZIg.js";import"./Users03-D26TNI6S.js";import"./Loading02-OOljSfhT.js";import"./ChevronRight-4FTF4WqI.js";import"./Stars02-A9_Qn88t.js";import"./Copy01-B0978reE.js";import"./ZoomOut-BfjzuKIF.js";import"./DotsVertical-BWXuIIeo.js";import"./Globe01-c9kQJ0J1.js";import"./Eye-CLyPbWNp.js";import"./FilterLines-CZvywTHD.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LinkExternal01-CbZ5Q1kR.js";import"./List-CKuVIidV.js";import"./Monitor01-CIDTmDYS.js";import"./Sun-DBwGI45B.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./Plus-BQc-qQk7.js";import"./SearchLg-Cm7KW90l.js";import"./SearchMd-C7y5LJQw.js";import"./Shield01-D2bvXHJr.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./XClose-Bx_SHZf9.js";import"./Zap-DTYY_yG6.js";import"./use-automations-eRXq8hNu.js";import"./studio-tools-Bdai-xGF.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./badge-BeBCWRwF.js";import"./checkbox-DyFXnv_N.js";import"./command-N6cziNOU.js";import"./index-Dyecjn9n.js";import"./dialog-Hnvvuwtr.js";import"./popover-CH5b_fiQ.js";import"./avatar-D6tfDvwN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DxP-67RS.js";import"./file-type-icon-DCAOo88S.js";import"./tab-id-bb-jjgGv.js";import"./hooks-DxKHI4Sv.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-ZhMn59o3.js";import"./use-navigate-to-agent-S62tKbn_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DYFue3AB.js";import"./form-44AoMqLt.js";import"./label-XzNlba7M.js";import"./input-CzqITCIW.js";import"./auth-BiABWEcr.js";import"./drawer-BN7xa-Kn.js";import"./collection-search-DUDcpj0N.js";import"./autosend-OBVQJIwA.js";import"./tabs-Bd4tTw7M.js";import"./toggle-group-CCVpVQJx.js";import"./use-deco-credits-BIY8ss-U.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./use-organization-settings-DPWTEzqv.js";import"./extract-connection-data-C9LhPqdN.js";import"./collection-tabs-BoJeinsY.js";import"./textarea-CN1NcM6-.js";import"./connection-form-helpers-B9LwF6od.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./use-ai-providers-rBuyV02F.js";import"./connect-desktop-dialog-D5uIE_v3.js";import"./select-model-DBtqvDeJ.js";import"./skeleton-DDgvHM8p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DlrJmzQQ.js";import"./dropdown-menu-C1oaxvGA.js";import"./index-DLUt_tIW.js";import"./alert-dialog-CySfFhdC.js";import"./toolbar-4tiJk0vY.js";import"./use-debounced-value-CEU4XuDq.js";import"./index-hwaeRRf3.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Qyl_ERMg.js";import"./use-decopilot-events-BrhYZT96.js";import"./use-capability-DG3TMrBr.js";import"./tools-list-OlvXGJpp.js";import"./switch-josi6Uyt.js";import"./use-debounced-autosave-DUw5dpg0.js";import"./index-B4UIYyWJ.js";import"./search-input-CWI66WZh.js";import"./github-repo-picker-CW5PRm8S.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Bog2G1S_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DXQi4Q1O.js";import"./get-initials-D-f_fDFw.js";import"./calendar-B8LPJQzI.js";import"./toolbar-icon-button-B4ns4onG.js";import"./use-file-configs-DL6xLLlG.js";import"./automation-list-row-fGuDXKMz.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";const Q={};function W(A){const t=$.c(37),{client:i,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=A,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{openSidePanel:f,openTab:g}=J(),r=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==i||t[3]!==o.name||t[4]!==s?(c={client:i,toolName:o.name,toolArguments:s},t[2]=i,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:e}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=b(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const j=N;let S;t[15]!==f||t[16]!==I?(S=C=>{const D=G(C.content);D.content.length>0&&(f("chat"),I({tiptapDoc:D}))},t[15]=f,t[16]=I,t[17]=S):S=t[17];const y=S;let P;t[18]!==j?(P={tool:j},t[18]=j,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==r?(T=C=>u(r,C),t[20]=u,t[21]=r,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==r?(R=()=>n(r),t[23]=n,t[24]=r,t[25]=R):R=t[25];let _;return t[26]!==i||t[27]!==y||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==e?(_=v.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:e,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:i,onMessage:y,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=i,t[27]=y,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=e,t[36]=_):_=t[36],_}function Br(A){const t=$.c(24),{connectionId:i,toolName:h,args:o}=A,{org:p}=H(),l=Y();let M;t[0]!==i||t[1]!==l?(M=k(i)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=i,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==i||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:i,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=i,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=O(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let r,a,m;t[10]!==h||t[11]!==g.tools?(r=L(decodeURIComponent(h)),m=g.tools.find(e=>e.name===r)??g.tools.find(e=>{const x=E(e._meta);if(!x)return!1;if(b(e.name,x)===r)return!0;const d=b(r,x);return d!==r&&e.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=r,t[13]=a,t[14]=m):(r=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let e;return t[15]!==r?(e=v.jsx("div",{className:"flex items-center justify-center h-full w-full",children:v.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let c;return t[17]!==o||t[18]!==n||t[19]!==i||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=v.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:i,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=i,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{Br as AppViewContent};
@@ -0,0 +1 @@
1
+ import{c as S,j as r}from"./index-DcIBnpEi.js";import{I as T}from"./input-CzqITCIW.js";import{L as C}from"./label-XzNlba7M.js";import{T as L}from"./textarea-CN1NcM6-.js";import{v as A,w as R,o as D,x as J,I as K}from"./index-Cw63Whs6.js";import{u as M,s as P}from"./primitives-DFbg_AMZ.js";import"./ArrowUp-CPmpTxqA.js";import"./chat-context-BFU9KNJs.js";import"./autosend-OBVQJIwA.js";import"./hooks-DxKHI4Sv.js";import"./use-mcp-client-CP4c9F3u.js";import"./constants-CaIX_f5U.js";import"./auth-BiABWEcr.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Bdai-xGF.js";import"./use-virtual-mcp-BYkuAhYP.js";import"./use-collections-B6JlYHnr.js";import"./use-ai-providers-rBuyV02F.js";import"./use-decopilot-events-BrhYZT96.js";import"./tab-id-bb-jjgGv.js";import"./use-organization-settings-DPWTEzqv.js";import"./automation-runs-Dk0QSvXf.js";import"./select-B769KgqG.js";import"./tooltip-FbSqyAkw.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./use-connection-BQbRdj4A.js";import"./card-DQteBSZy.js";import"./sidebar-CnVq7sh3.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./table-Cpz7KTQ5.js";import"./empty-state-2f1dk8dl.js";import"./use-members-BrCJmQZK.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-clock-tick-Dx2kBV_T.js";import"./AlertCircle-By5V_OAI.js";import"./CheckCircle-CjRjq78H.js";import"./Circle-Ba61O7v3.js";import"./agent-icon-DdKclnWr.js";import"./Tool01-DTcOZbnu.js";import"./Settings02-Cr0VpQbw.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./ZapSquare-CSYmmZIg.js";import"./Users03-D26TNI6S.js";import"./Loading02-OOljSfhT.js";import"./ChevronRight-4FTF4WqI.js";import"./Stars02-A9_Qn88t.js";import"./Copy01-B0978reE.js";import"./ZoomOut-BfjzuKIF.js";import"./DotsVertical-BWXuIIeo.js";import"./Globe01-c9kQJ0J1.js";import"./Eye-CLyPbWNp.js";import"./FilterLines-CZvywTHD.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LinkExternal01-CbZ5Q1kR.js";import"./List-CKuVIidV.js";import"./Monitor01-CIDTmDYS.js";import"./Sun-DBwGI45B.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./Plus-BQc-qQk7.js";import"./SearchLg-Cm7KW90l.js";import"./SearchMd-C7y5LJQw.js";import"./Shield01-D2bvXHJr.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./XClose-Bx_SHZf9.js";import"./Zap-DTYY_yG6.js";import"./use-automations-eRXq8hNu.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./badge-BeBCWRwF.js";import"./checkbox-DyFXnv_N.js";import"./command-N6cziNOU.js";import"./index-Dyecjn9n.js";import"./dialog-Hnvvuwtr.js";import"./popover-CH5b_fiQ.js";import"./avatar-D6tfDvwN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DxP-67RS.js";import"./file-type-icon-DCAOo88S.js";import"./monaco-editor-oYFtE1AD.js";import"./index-hwaeRRf3.js";import"./index-CRhm_2EO.js";import"./shell-layout-CvmkWYxb.js";import"./alert-dialog-CySfFhdC.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";import"./integration-icon-ZhMn59o3.js";import"./use-navigate-to-agent-S62tKbn_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DYFue3AB.js";import"./form-44AoMqLt.js";import"./drawer-BN7xa-Kn.js";import"./collection-search-DUDcpj0N.js";import"./tabs-Bd4tTw7M.js";import"./toggle-group-CCVpVQJx.js";import"./use-deco-credits-BIY8ss-U.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./extract-connection-data-C9LhPqdN.js";import"./collection-tabs-BoJeinsY.js";import"./connection-form-helpers-B9LwF6od.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./connect-desktop-dialog-D5uIE_v3.js";import"./select-model-DBtqvDeJ.js";import"./skeleton-DDgvHM8p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DlrJmzQQ.js";import"./dropdown-menu-C1oaxvGA.js";import"./index-DLUt_tIW.js";import"./toolbar-4tiJk0vY.js";import"./use-debounced-value-CEU4XuDq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Qyl_ERMg.js";import"./use-mcp-tools-Bt4ZQFfJ.js";import"./use-capability-DG3TMrBr.js";import"./tools-list-OlvXGJpp.js";import"./switch-josi6Uyt.js";import"./use-debounced-autosave-DUw5dpg0.js";import"./index-B4UIYyWJ.js";import"./search-input-CWI66WZh.js";import"./github-repo-picker-CW5PRm8S.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Bog2G1S_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DXQi4Q1O.js";import"./get-initials-D-f_fDFw.js";import"./calendar-B8LPJQzI.js";import"./toolbar-icon-button-B4ns4onG.js";import"./use-file-configs-DL6xLLlG.js";import"./automation-list-row-fGuDXKMz.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 Lr(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{Lr as RecordEditor};
@@ -1,4 +1,4 @@
1
- import{c as W,a4 as fe,m as Re,n as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,ba as qs,bb as Bs}from"./index-Zph9A7yf.js";import{i as Jt,a as ds,t as Qs,c as Vs,n as Gs,b as Ks}from"./Tool02-ClipZ7bo.js";import{i as qe}from"./CheckCircle-QUfhm4t_.js";import{s as Mt,c as Ys,b as Hs,i as Ws,a as Js}from"./Settings02-C5v-emPS.js";import{u as Ie}from"./use-mcp-client-DA4l7NMh.js";import{S as Me,W as Zs}from"./constants-CaIX_f5U.js";import{u as us}from"./useInfiniteQuery-DUk6rN9-.js";import{u as _e}from"./studio-tools-BSLnTfFC.js";import{B as F}from"./badge-3OH2cdJk.js";import{I as ue}from"./input-CUUe2IQe.js";import{a as dt,d as Ne,D as ut,c as mt,b as Zt,k as Xt,j as Xs}from"./dropdown-menu-C2eFZtvw.js";import{c as Et,d as Dt,a as Be,e as le,b as At,T as oe}from"./table-BV77eO9f.js";import{a as er,T as es}from"./toggle-group-z06LwOXU.js";import{u as tr}from"./use-view-mode-DJIg85oh.js";import{i as $t}from"./DotsVertical-LI2dCOUo.js";import{i as sr}from"./FilterLines-NLpPVI-d.js";import{n as rr,i as ms}from"./Globe01-DuV6QcZy.js";import{i as nr}from"./SearchMd-kTkW79UX.js";import{D as xt,a as pt,f as ht,c as ft,d as gt,e as jt}from"./dialog-CS6EDVA4.js";import{i as Ye}from"./AlertCircle-CAhfY1-I.js";import{i as ts}from"./Upload01-CSq1162V.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-bGcaxIEN.js";import{C as ne}from"./card-ywNPelP4.js";import{s as rt}from"./Trash01-3_WDaYuV.js";import{L as te}from"./label-BGyB36M1.js";import{S as ir,a as ar,b as lr,c as or,d as St}from"./select-CLnM5xZY.js";import{S as ze}from"./switch-CAPrI9f4.js";import{T as vt}from"./textarea-DAEAkdQ_.js";import{b as cr,i as dr,a as ur}from"./XCircle--KFzS8uf.js";import{i as mr}from"./X-B8cdBzJ0.js";import{t as xr}from"./ChevronDown-BApPtVmh.js";import{n as pr}from"./ChevronUp-DHN-jwxT.js";import{C as ss}from"./checkbox-Bj_DwN9o.js";import{s as xs}from"./Eye-CuhoU23S.js";import{n as hr}from"./LinkExternal01-DzbL04rr.js";import{u as fr}from"./use-infinite-scroll-0Zcm9XAP.js";import{u as Rt}from"./use-copy-CxtHgMoF.js";import{i as Tt}from"./Check-DanyiEnL.js";import{a as It}from"./Copy01-BF37UFdB.js";import{i as gr}from"./Key01-_q-La8CZ.js";import{s as jr}from"./Plus-Bu9bwB8j.js";import{a as vr,b as br,T as yr}from"./tooltip-CT63cZcY.js";import{i as Nr,a as wr}from"./mcp-oauth-oOtKvLXg.js";import{i as _r}from"./Play-GDXaUCH4.js";import"./auth-CwljyZPh.js";import"./ChevronRight-DWn63Qut.js";import"./Circle-BQyPp8-D.js";import"./use-mobile-_5IIYeUG.js";const Ue="private-registry",Cr=`
1
+ import{c as W,a4 as fe,m as Re,n as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,ba as qs,bb as Bs}from"./index-DcIBnpEi.js";import{i as Jt,a as ds,t as Qs,c as Vs,n as Gs,b as Ks}from"./Tool02-DN7RIFuA.js";import{i as qe}from"./CheckCircle-CjRjq78H.js";import{s as Mt,c as Ys,b as Hs,i as Ws,a as Js}from"./Settings02-Cr0VpQbw.js";import{u as Ie}from"./use-mcp-client-CP4c9F3u.js";import{S as Me,W as Zs}from"./constants-CaIX_f5U.js";import{u as us}from"./useInfiniteQuery-CgoqkRWJ.js";import{u as _e}from"./studio-tools-Bdai-xGF.js";import{B as F}from"./badge-BeBCWRwF.js";import{I as ue}from"./input-CzqITCIW.js";import{a as dt,d as Ne,D as ut,c as mt,b as Zt,k as Xt,j as Xs}from"./dropdown-menu-C1oaxvGA.js";import{c as Et,d as Dt,a as Be,e as le,b as At,T as oe}from"./table-Cpz7KTQ5.js";import{a as er,T as es}from"./toggle-group-CCVpVQJx.js";import{u as tr}from"./use-view-mode-B8GphToI.js";import{i as $t}from"./DotsVertical-BWXuIIeo.js";import{i as sr}from"./FilterLines-CZvywTHD.js";import{n as rr,i as ms}from"./Globe01-c9kQJ0J1.js";import{i as nr}from"./SearchMd-C7y5LJQw.js";import{D as xt,a as pt,f as ht,c as ft,d as gt,e as jt}from"./dialog-Hnvvuwtr.js";import{i as Ye}from"./AlertCircle-By5V_OAI.js";import{i as ts}from"./Upload01-Cwtb67Lw.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-CySfFhdC.js";import{C as ne}from"./card-DQteBSZy.js";import{s as rt}from"./Trash01-CRdtidTM.js";import{L as te}from"./label-XzNlba7M.js";import{S as ir,a as ar,b as lr,c as or,d as St}from"./select-B769KgqG.js";import{S as ze}from"./switch-josi6Uyt.js";import{T as vt}from"./textarea-CN1NcM6-.js";import{b as cr,i as dr,a as ur}from"./XCircle-DTf-SPGi.js";import{i as mr}from"./X-9ap9xtG7.js";import{t as xr}from"./ChevronDown-DujWjiEx.js";import{n as pr}from"./ChevronUp-LzTIy1Gg.js";import{C as ss}from"./checkbox-DyFXnv_N.js";import{s as xs}from"./Eye-CLyPbWNp.js";import{n as hr}from"./LinkExternal01-CbZ5Q1kR.js";import{u as fr}from"./use-infinite-scroll-Y5a7xah6.js";import{u as Rt}from"./use-copy-DxP-67RS.js";import{i as Tt}from"./Check-BbBVbCml.js";import{a as It}from"./Copy01-B0978reE.js";import{i as gr}from"./Key01-D0e_huT5.js";import{s as jr}from"./Plus-BQc-qQk7.js";import{a as vr,b as br,T as yr}from"./tooltip-FbSqyAkw.js";import{i as Nr,a as wr}from"./mcp-oauth-CpkgHFkt.js";import{i as _r}from"./Play-YTvPwfKb.js";import"./auth-BiABWEcr.js";import"./ChevronRight-4FTF4WqI.js";import"./Circle-Ba61O7v3.js";import"./use-mobile-CNvoxL11.js";const Ue="private-registry",Cr=`
2
2
  You are an MCP tool tester running automated integration checks.
3
3
 
4
4
  Goal:
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DRXLNW97.js","assets/index-DcIBnpEi.js","assets/index-HuEHg6r8.css","assets/Tool02-DN7RIFuA.js","assets/CheckCircle-CjRjq78H.js","assets/Settings02-Cr0VpQbw.js","assets/use-mcp-client-CP4c9F3u.js","assets/constants-CaIX_f5U.js","assets/auth-BiABWEcr.js","assets/useInfiniteQuery-CgoqkRWJ.js","assets/use-infinite-scroll-Y5a7xah6.js","assets/studio-tools-Bdai-xGF.js","assets/badge-BeBCWRwF.js","assets/input-CzqITCIW.js","assets/dropdown-menu-C1oaxvGA.js","assets/Check-BbBVbCml.js","assets/ChevronRight-4FTF4WqI.js","assets/Circle-Ba61O7v3.js","assets/table-Cpz7KTQ5.js","assets/toggle-group-CCVpVQJx.js","assets/use-view-mode-B8GphToI.js","assets/use-mobile-CNvoxL11.js","assets/DotsVertical-BWXuIIeo.js","assets/FilterLines-CZvywTHD.js","assets/Globe01-c9kQJ0J1.js","assets/SearchMd-C7y5LJQw.js","assets/dialog-Hnvvuwtr.js","assets/X-9ap9xtG7.js","assets/AlertCircle-By5V_OAI.js","assets/Upload01-Cwtb67Lw.js","assets/alert-dialog-CySfFhdC.js","assets/card-DQteBSZy.js","assets/Trash01-CRdtidTM.js","assets/label-XzNlba7M.js","assets/select-B769KgqG.js","assets/tooltip-FbSqyAkw.js","assets/ChevronDown-DujWjiEx.js","assets/ChevronUp-LzTIy1Gg.js","assets/switch-josi6Uyt.js","assets/textarea-CN1NcM6-.js","assets/XCircle-DTf-SPGi.js","assets/checkbox-DyFXnv_N.js","assets/Eye-CLyPbWNp.js","assets/LinkExternal01-CbZ5Q1kR.js","assets/use-copy-DxP-67RS.js","assets/Copy01-B0978reE.js","assets/Key01-D0e_huT5.js","assets/Plus-BQc-qQk7.js","assets/mcp-oauth-CpkgHFkt.js","assets/Play-YTvPwfKb.js"])))=>i.map(i=>d[i]);
2
+ import{c as s,j as e,r as i,i as a,aW as o}from"./index-DcIBnpEi.js";import{R as m}from"./require-capability-CuikEqkA.js";import"./use-capability-DG3TMrBr.js";import"./access-gate-5OdRTd9-.js";import"./capability-load-error-CWu6wHWg.js";const n=i.lazy(()=>o(()=>import("./registry-layout-DRXLNW97.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));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};