decocms 3.106.0 → 3.107.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 (225) hide show
  1. package/dist/client/assets/{AlertCircle-BJGXp4ka.js → AlertCircle-CMPJVwbr.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-BBdsIfGH.js → ArrowUpRight-BZym3T1n.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-BiabCmdF.js → CheckCircle-QaRkyWTy.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-CejcQRgy.js → ChevronDown-MjAOnuHm.js} +1 -1
  5. package/dist/client/assets/{ChevronLeft-fHsU-TVg.js → ChevronLeft-CaEi0Ql6.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-Bajwpni4.js → ChevronRight-Bggdd2Qb.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-DQ-5P7bA.js → ChevronUp-BI8Q0KCd.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-eDubkUAQ.js → DotsVertical-h9OltsuW.js} +1 -1
  9. package/dist/client/assets/{Eye-CMlUam6_.js → Eye-CiHeAXBi.js} +1 -1
  10. package/dist/client/assets/{FilterLines-CwMZDhi2.js → FilterLines-B44v5Lx3.js} +1 -1
  11. package/dist/client/assets/{Globe01-DKKcLl4T.js → Globe01-D3B0ZpoQ.js} +1 -1
  12. package/dist/client/assets/{Globe04-D95JskSa.js → Globe04-CZGzaUeg.js} +1 -1
  13. package/dist/client/assets/{HardDrive-C2eOF8dK.js → HardDrive-DOlIuOW5.js} +1 -1
  14. package/dist/client/assets/{Key01-DZIUNEvu.js → Key01-7V_ke0M2.js} +1 -1
  15. package/dist/client/assets/{LayoutLeft-CASwb6NS.js → LayoutLeft-CJtrx6Ua.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-DEXnL1UU.js → LinkExternal01-BrCl9X8s.js} +1 -1
  17. package/dist/client/assets/{Monitor01-C1hxhUiJ.js → Monitor01-DmJn0Xdx.js} +1 -1
  18. package/dist/client/assets/{Palette-Dt-qaRPY.js → Palette-yYRvf-TN.js} +1 -1
  19. package/dist/client/assets/{Play-D4JYUILT.js → Play-Cu-3YV7r.js} +1 -1
  20. package/dist/client/assets/{Plus-TQEhHIaf.js → Plus-B-FGzVUP.js} +1 -1
  21. package/dist/client/assets/{SearchLg-D4TTfBZy.js → SearchLg-BFWxMS9X.js} +1 -1
  22. package/dist/client/assets/{SearchMd-D7Nisqin.js → SearchMd-Byi6dKBM.js} +1 -1
  23. package/dist/client/assets/{Settings02-NpgkR8L_.js → Settings02-BShYLaZd.js} +1 -1
  24. package/dist/client/assets/{Shield01-C1PqlQRA.js → Shield01-uufcEZDy.js} +1 -1
  25. package/dist/client/assets/{Star01-IvEBJsCV.js → Star01-zfVBP9ir.js} +1 -1
  26. package/dist/client/assets/{Stars01-Bg13RpyJ.js → Stars01-BPAFwodm.js} +1 -1
  27. package/dist/client/assets/{Stars02-Cqwr8Ws9.js → Stars02-BSNSGyod.js} +1 -1
  28. package/dist/client/assets/{Sun-DikA3hIV.js → Sun-1-Hvx1Ew.js} +1 -1
  29. package/dist/client/assets/{SwitchHorizontal01-BiabkfKZ.js → SwitchHorizontal01-B3GndgYh.js} +1 -1
  30. package/dist/client/assets/{Tool01-Bdi-BBKJ.js → Tool01-CtsjPgQT.js} +1 -1
  31. package/dist/client/assets/{Trash01-CdGzaXWc.js → Trash01-BOlMGjjk.js} +1 -1
  32. package/dist/client/assets/{Upload01-BLuoqDyn.js → Upload01-DT20S4kC.js} +1 -1
  33. package/dist/client/assets/{User01-CXAxBhFG.js → User01-MlOAkWV2.js} +1 -1
  34. package/dist/client/assets/{Users01-DCjMjVCn.js → Users01-xtXb7Nfj.js} +1 -1
  35. package/dist/client/assets/{Users03-B2-Dpsqz.js → Users03-BW0GYkX3.js} +1 -1
  36. package/dist/client/assets/{X-C2rVRme5.js → X-B8sLr84E.js} +1 -1
  37. package/dist/client/assets/{XCircle-CBjK62zF.js → XCircle-brEJ5T3F.js} +1 -1
  38. package/dist/client/assets/{XClose-DOorWLJQ.js → XClose-C7BFv2WT.js} +1 -1
  39. package/dist/client/assets/{Zap-BjNrPOTp.js → Zap-JwJYg7mG.js} +1 -1
  40. package/dist/client/assets/{ZapSquare-BLlgXs9L.js → ZapSquare-DZRGZSZa.js} +1 -1
  41. package/dist/client/assets/{ZoomOut-NGATVClW.js → ZoomOut-BTdqGEzT.js} +1 -1
  42. package/dist/client/assets/{access-gate-CEYZDlvH.js → access-gate-D-ENz8ic.js} +1 -1
  43. package/dist/client/assets/{add-section-modal-CCRNugwW.js → add-section-modal-DWwTmyTY.js} +1 -1
  44. package/dist/client/assets/{agent-icon-CPn767vi.js → agent-icon-B_o3wufy.js} +1 -1
  45. package/dist/client/assets/{agents-list-Cl_EsGPj.js → agents-list-BmacdMx-.js} +1 -1
  46. package/dist/client/assets/{ai-providers-HhkRLdHl.js → ai-providers-1J-5ov2d.js} +1 -1
  47. package/dist/client/assets/{alert-K1aHkZrD.js → alert-4WTxROsk.js} +1 -1
  48. package/dist/client/assets/{alert-dialog-Dz8imfBX.js → alert-dialog-P0HjjxBt.js} +1 -1
  49. package/dist/client/assets/app-editor-CVQWSZwr.js +1 -0
  50. package/dist/client/assets/{auth-DCR9ETmd.js → auth-B4aNCnK1.js} +1 -1
  51. package/dist/client/assets/{auth-catchall-9nkYIsIV.js → auth-catchall-DA62NHq9.js} +1 -1
  52. package/dist/client/assets/{auth-entry-CaGUpf5G.js → auth-entry-DOnzMaqv.js} +1 -1
  53. package/dist/client/assets/{auth-split-layout-C9tdNO6I.js → auth-split-layout-Dzsy7Wh-.js} +1 -1
  54. package/dist/client/assets/{authenticate-and-persist-oauth-s0rsdpEF.js → authenticate-and-persist-oauth-Cf_RluiA.js} +1 -1
  55. package/dist/client/assets/{automation-list-row-B2xN_dPF.js → automation-list-row-BGfOIH5A.js} +1 -1
  56. package/dist/client/assets/{automation-runs-Bkpk06w6.js → automation-runs-BpjM5lgm.js} +1 -1
  57. package/dist/client/assets/{automations-A0sOYZmC.js → automations-Cr5_dGMq.js} +1 -1
  58. package/dist/client/assets/{avatar-C8rHGBAI.js → avatar-DVWIK2_g.js} +1 -1
  59. package/dist/client/assets/{badge-CyH98isx.js → badge-DjgeHK0H.js} +1 -1
  60. package/dist/client/assets/{block-document-BaSGgwbA.js → block-document-Cazj3EmL.js} +1 -1
  61. package/dist/client/assets/{brand-context-C9-Fue2A.js → brand-context-CavCacnS.js} +1 -1
  62. package/dist/client/assets/{buckets-BtrNVl3M.js → buckets-D7ind9F_.js} +1 -1
  63. package/dist/client/assets/{capability-load-error-CiAu-JyH.js → capability-load-error-BM4sOhb_.js} +1 -1
  64. package/dist/client/assets/{card-DOpZHkJr.js → card-BoMxvMNj.js} +1 -1
  65. package/dist/client/assets/category-editor-BZfTM8Jr.js +1 -0
  66. package/dist/client/assets/chat-context-BNm8gbce.js +28 -0
  67. package/dist/client/assets/{checkbox-C7qfaduP.js → checkbox-C0jia2rg.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-RVqv2vB6.js → cli-auth-success-dXy3stat.js} +1 -1
  69. package/dist/client/assets/{collection-detail-Dh8aT7dW.js → collection-detail-BI_jJDe8.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-C1hErbyw.js → collection-display-button-CXTwGitF.js} +1 -1
  71. package/dist/client/assets/{collection-search-DaeCK9xr.js → collection-search-CTWT2tOk.js} +1 -1
  72. package/dist/client/assets/{collection-tabs-DNE8Urvp.js → collection-tabs-QOIvDftU.js} +1 -1
  73. package/dist/client/assets/{command-J9Wy9n_1.js → command-BF5cH0fj.js} +1 -1
  74. package/dist/client/assets/{commerce-onboarding-ay94EDvY.js → commerce-onboarding-B2t05Fby.js} +1 -1
  75. package/dist/client/assets/{connect-desktop-dialog-Bx-n41ou.js → connect-desktop-dialog-B06-h5Nw.js} +1 -1
  76. package/dist/client/assets/{connection-card-DgYNR14j.js → connection-card-C1lQp9ha.js} +1 -1
  77. package/dist/client/assets/{connection-detail-NDadBpY7.js → connection-detail-D6FqPYcQ.js} +1 -1
  78. package/dist/client/assets/{connection-form-helpers-DW2qQjX-.js → connection-form-helpers-CZdUpiQP.js} +1 -1
  79. package/dist/client/assets/{connections-dTN5hfGr.js → connections-D54uxQNk.js} +1 -1
  80. package/dist/client/assets/{context-menu-BpE4NlKX.js → context-menu-DjpSQHDd.js} +1 -1
  81. package/dist/client/assets/{decopilot-Ds8Sp1JG.js → decopilot-B1xAdfGk.js} +1 -1
  82. package/dist/client/assets/{decopilot-sse-pool-DVGFq1Bs.js → decopilot-sse-pool-CHxQ_LL4.js} +1 -1
  83. package/dist/client/assets/{dialog-w2u9ahjo.js → dialog-D5pyPA9N.js} +1 -1
  84. package/dist/client/assets/{domain-settings-DQwVxg0e.js → domain-settings-DxSkbwuB.js} +1 -1
  85. package/dist/client/assets/{drawer-M1tJGuIB.js → drawer-CL-lpG-j.js} +1 -1
  86. package/dist/client/assets/{dropdown-menu-Bw00TpsM.js → dropdown-menu-4WYZIGjr.js} +1 -1
  87. package/dist/client/assets/{empty-state-C_fk-KEj.js → empty-state-CXRWIWhf.js} +1 -1
  88. package/dist/client/assets/{extract-connection-data-Wwim23p3.js → extract-connection-data-T901gsUX.js} +1 -1
  89. package/dist/client/assets/file-explorer-gfciE6Oz.js +2 -0
  90. package/dist/client/assets/{file-type-icon-D_3mz8is.js → file-type-icon-B2x2Y-0k.js} +1 -1
  91. package/dist/client/assets/{files-DEtwnxTG.js → files-DFAdeLGv.js} +1 -1
  92. package/dist/client/assets/{form-Cbgir1KX.js → form-BF9w4WAV.js} +1 -1
  93. package/dist/client/assets/{general-BHfBapWI.js → general-C7NRKQTh.js} +1 -1
  94. package/dist/client/assets/{github-repo-picker-7ankcqDv.js → github-repo-picker-BSRE_ZP0.js} +1 -1
  95. package/dist/client/assets/{hooks-DODv-wVV.js → hooks-CaH8V-Zq.js} +1 -1
  96. package/dist/client/assets/{import-from-deco-dialog-C2qQnsFK.js → import-from-deco-dialog-1mHtJ6UG.js} +1 -1
  97. package/dist/client/assets/{index-CC2delq7.js → index-Blp6eom1.js} +1 -1
  98. package/dist/client/assets/{index-CfDDnM0w.js → index-BmfLcGiW.js} +1 -1
  99. package/dist/client/assets/{index-BskdskYZ.js → index-C875GEAf.js} +1 -1
  100. package/dist/client/assets/{index-D2LhxKOJ.js → index-CWOvdf1E.js} +1 -1
  101. package/dist/client/assets/{index-BkUdQUyL.js → index-CXvlCk1u.js} +5 -5
  102. package/dist/client/assets/{index-C7P-sIHE.js → index-CpAR8E3g.js} +1 -1
  103. package/dist/client/assets/index-Cudx1rWQ.js +1 -0
  104. package/dist/client/assets/index-D2Fo5pUK.js +3 -0
  105. package/dist/client/assets/{index-CWb9Wsg4.js → index-D5EcXFQR.js} +4 -4
  106. package/dist/client/assets/{index-DQSbAZfL.js → index-D9iADi6F.js} +1 -1
  107. package/dist/client/assets/{index-DHLGskzl.js → index-DDhGpRHB.js} +12 -12
  108. package/dist/client/assets/{index-CHOLxMH7.js → index-DUu26rMc.js} +1 -1
  109. package/dist/client/assets/{index-CeQQD9lF.js → index-DlbygLez.js} +1 -1
  110. package/dist/client/assets/{index-BnDi5HAq.js → index-NjnKq7aT.js} +1 -1
  111. package/dist/client/assets/{index-redirect-C1i6X1BQ.js → index-redirect-PGR2Z-TP.js} +1 -1
  112. package/dist/client/assets/{input-DeTgNphX.js → input-DexDCoKo.js} +1 -1
  113. package/dist/client/assets/{integration-icon-DMSKHFp1.js → integration-icon-BdO2TGzi.js} +1 -1
  114. package/dist/client/assets/{label-C5upVuqQ.js → label-B7b8_W98.js} +1 -1
  115. package/dist/client/assets/{login-CgdoANZA.js → login-DRQ6ivKI.js} +1 -1
  116. package/dist/client/assets/{mcp-oauth-a3FzewVg.js → mcp-oauth-75_G3vbg.js} +1 -1
  117. package/dist/client/assets/{members-DpZ9A5f0.js → members-iTiwktiS.js} +1 -1
  118. package/dist/client/assets/{monaco-editor-CUY1wKmW.js → monaco-editor-wofwNzGP.js} +1 -1
  119. package/dist/client/assets/{monitoring-stats-row-CBjQbEuF.js → monitoring-stats-row-DZOpV8wR.js} +1 -1
  120. package/dist/client/assets/{oauth-callback-DlNHjcXi.js → oauth-callback-DBGVioja.js} +1 -1
  121. package/dist/client/assets/{oauth-callback-ai-provider-DijOsYgL.js → oauth-callback-ai-provider-C8hnh5JQ.js} +1 -1
  122. package/dist/client/assets/{onboarding-BsVL9OWm.js → onboarding-BTkLuvSt.js} +1 -1
  123. package/dist/client/assets/{org-install-LgrIXD0Y.js → org-install-DsqI-XSV.js} +1 -1
  124. package/dist/client/assets/{org-layout-vDUTh50X.js → org-layout-CT-wybPj.js} +1 -1
  125. package/dist/client/assets/{organization-choice-XuATQzah.js → organization-choice-DA6cRlb9.js} +1 -1
  126. package/dist/client/assets/{page-seo-form-Xun3Gb-0.js → page-seo-form-f48UrvLZ.js} +1 -1
  127. package/dist/client/assets/page-seo-sheet-x1Ndtspw.js +1 -0
  128. package/dist/client/assets/{popover-Sng9qlGZ.js → popover-C4g-9bIR.js} +1 -1
  129. package/dist/client/assets/post-editor-BjFZW5Xv.js +1 -0
  130. package/dist/client/assets/preview-dialog-BkD-jMTL.js +5 -0
  131. package/dist/client/assets/{primitives-BX1TQnm6.js → primitives-HnexUalB.js} +1 -1
  132. package/dist/client/assets/{profile-2qqK3Ndl.js → profile-OgZpsKBH.js} +1 -1
  133. package/dist/client/assets/project-app-view-C_tJkaVI.js +1 -0
  134. package/dist/client/assets/record-editor-DzUsMR47.js +1 -0
  135. package/dist/client/assets/registry-DGqifiQi.js +2 -0
  136. package/dist/client/assets/{registry-layout-Dh1yj8yr.js → registry-layout-DR6jY145.js} +1 -1
  137. package/dist/client/assets/{require-capability-DQCVcrTE.js → require-capability-ByP8JmqW.js} +1 -1
  138. package/dist/client/assets/{required-auth-layout-BYjSLRKw.js → required-auth-layout-BZ3khNc4.js} +1 -1
  139. package/dist/client/assets/{reset-password-CGTbeNnn.js → reset-password-ByXWgQFi.js} +1 -1
  140. package/dist/client/assets/{roles-DHBhA_58.js → roles-C6FLJAxG.js} +1 -1
  141. package/dist/client/assets/{scroll-area-D5K2cFR-.js → scroll-area-mIEylF_b.js} +2 -2
  142. package/dist/client/assets/{search-input-Dcdjp99e.js → search-input-B5RoY0Jt.js} +1 -1
  143. package/dist/client/assets/{secrets-CZTBZ18F.js → secrets-Cx_0x5Jk.js} +1 -1
  144. package/dist/client/assets/{sections-editor-DR11Z6Ds.js → sections-editor-kz5N2Ax7.js} +2 -2
  145. package/dist/client/assets/{select-Cc21tKCb.js → select-DsHZ_cKM.js} +1 -1
  146. package/dist/client/assets/{select-model-C3sVs6BI.js → select-model-CXSEoijG.js} +1 -1
  147. package/dist/client/assets/seo-editor-42whDzUC.js +1 -0
  148. package/dist/client/assets/{settings-layout-B6-JV7a0.js → settings-layout-B6rSZndR.js} +1 -1
  149. package/dist/client/assets/{settings-section-BI5jS2Dt.js → settings-section-DpPoYwII.js} +1 -1
  150. package/dist/client/assets/{sheet-DOvMDZuR.js → sheet-BdP-CT3V.js} +1 -1
  151. package/dist/client/assets/{shell-controls-BXNxuXv0.js → shell-controls-BB7F5nRc.js} +1 -1
  152. package/dist/client/assets/{shell-layout-BmSdYmam.js → shell-layout-fxMd_ce_.js} +1 -1
  153. package/dist/client/assets/{shell-route-loading-DPMEw2M6.js → shell-route-loading-DK2BrXSy.js} +1 -1
  154. package/dist/client/assets/{sidebar-CtBbCGBG.js → sidebar-CUMG6X23.js} +1 -1
  155. package/dist/client/assets/{skeleton-D6by2dpn.js → skeleton-718IFt3P.js} +1 -1
  156. package/dist/client/assets/{sortable.esm-CzWimVLQ.js → sortable.esm-DK8NQ3hM.js} +1 -1
  157. package/dist/client/assets/{sso-DJ-zP7sp.js → sso-CtblN5Bz.js} +1 -1
  158. package/dist/client/assets/{store-g3lyqmRz.js → store-DPFq6Slo.js} +1 -1
  159. package/dist/client/assets/store-registry-DMtj-ygY.js +2 -0
  160. package/dist/client/assets/{studio-tools-BJ-UdyTW.js → studio-tools-BeOJw07q.js} +1 -1
  161. package/dist/client/assets/{switch-BRov-LAY.js → switch-CciXYGhm.js} +1 -1
  162. package/dist/client/assets/{table-5b-Z4cr5.js → table-CKTQNmJo.js} +1 -1
  163. package/dist/client/assets/{tabs-CP761j-X.js → tabs-Ba2CnUCA.js} +1 -1
  164. package/dist/client/assets/{task-status-DwC3l4SN.js → task-status-Bynq6HkU.js} +1 -1
  165. package/dist/client/assets/{textarea-DGEx65DJ.js → textarea-y2Cb87mk.js} +1 -1
  166. package/dist/client/assets/{toggle-group-Bb1gTTUv.js → toggle-group-DULNiKJE.js} +1 -1
  167. package/dist/client/assets/{toolbar-IDz7ohMs.js → toolbar-DMe8NxOq.js} +1 -1
  168. package/dist/client/assets/{tooltip-DlNdoWTC.js → tooltip-9uXVN57R.js} +1 -1
  169. package/dist/client/assets/{types-DIkr-zoW.js → types-DZW_H5GK.js} +1 -1
  170. package/dist/client/assets/{use-ai-providers-Bk-PEV0W.js → use-ai-providers-B2EJOvgZ.js} +1 -1
  171. package/dist/client/assets/{use-automations-B3A8m1Qa.js → use-automations-CypyQIO7.js} +1 -1
  172. package/dist/client/assets/{use-capability-CIrGamSD.js → use-capability-miGh5F03.js} +1 -1
  173. package/dist/client/assets/{use-clock-tick-NRQ6Jq9B.js → use-clock-tick-BSiLW2Hc.js} +1 -1
  174. package/dist/client/assets/{use-collections-Dx9nw5SH.js → use-collections-C-3QxROQ.js} +1 -1
  175. package/dist/client/assets/{use-connection-CADUWJLS.js → use-connection-BoLZLoix.js} +1 -1
  176. package/dist/client/assets/{use-copy-CWemy_te.js → use-copy-BoWvAcv1.js} +1 -1
  177. package/dist/client/assets/{use-create-virtual-mcp-BF63k0IF.js → use-create-virtual-mcp-DS79wqg7.js} +1 -1
  178. package/dist/client/assets/{use-debounced-autosave-Ddf6ohdu.js → use-debounced-autosave-CEZtOBxe.js} +1 -1
  179. package/dist/client/assets/{use-debounced-value-CqnvF_Tx.js → use-debounced-value-B_dMYSTS.js} +1 -1
  180. package/dist/client/assets/{use-decopilot-events-DRFfNsO4.js → use-decopilot-events-BSwabbME.js} +1 -1
  181. package/dist/client/assets/{use-delete-connection-BeE9B7tk.js → use-delete-connection-CeUx32Ek.js} +1 -1
  182. package/dist/client/assets/{use-file-configs-Dqn5vTip.js → use-file-configs-CsGZaFDN.js} +1 -1
  183. package/dist/client/assets/{use-infinite-scroll-X3H24Vh-.js → use-infinite-scroll-DjBZ07EY.js} +1 -1
  184. package/dist/client/assets/{use-join-requests-pqzRJ1mW.js → use-join-requests-HvnfXtOh.js} +1 -1
  185. package/dist/client/assets/{use-mcp-client-H0qGyw4S.js → use-mcp-client-CllRpcn8.js} +1 -1
  186. package/dist/client/assets/{use-mcp-prompts-CMH8dkIp.js → use-mcp-prompts-B8n4vAIv.js} +1 -1
  187. package/dist/client/assets/{use-mcp-tools-ClpDupwI.js → use-mcp-tools-xIECjag4.js} +1 -1
  188. package/dist/client/assets/{use-members-CLe24wAb.js → use-members-C_0IATXJ.js} +1 -1
  189. package/dist/client/assets/{use-mobile-AEMP8WrJ.js → use-mobile-DOKfF7z_.js} +1 -1
  190. package/dist/client/assets/{use-navigate-to-agent-CCdQ4egc.js → use-navigate-to-agent-DP_Quce2.js} +1 -1
  191. package/dist/client/assets/{use-org-auth-client-e-AT3UBL.js → use-org-auth-client-C5SxR9m4.js} +1 -1
  192. package/dist/client/assets/use-org-fs-DKt2yrJB.js +1 -0
  193. package/dist/client/assets/{use-org-sso-oYTowyM2.js → use-org-sso-BfAMhOu1.js} +1 -1
  194. package/dist/client/assets/{use-organization-roles-BrNdhD0R.js → use-organization-roles-ChVGS5c6.js} +1 -1
  195. package/dist/client/assets/{use-organization-settings-Ddf63XoW.js → use-organization-settings-Cn568Sdu.js} +1 -1
  196. package/dist/client/assets/{use-registry-connections-FPQXF8Rq.js → use-registry-connections-Dc5qWDtU.js} +1 -1
  197. package/dist/client/assets/{use-secrets-DqSD7GLo.js → use-secrets-DFpbRD2F.js} +1 -1
  198. package/dist/client/assets/{use-status-sounds-C40CL6QW.js → use-status-sounds-BBLiZ08j.js} +1 -1
  199. package/dist/client/assets/{use-view-mode-BgbYtI9e.js → use-view-mode-g5gry7KE.js} +1 -1
  200. package/dist/client/assets/{use-virtual-mcp-BOv3TeD0.js → use-virtual-mcp-D7sKQkq9.js} +1 -1
  201. package/dist/client/assets/useInfiniteQuery-Ljssdqza.js +1 -0
  202. package/dist/client/assets/useSuspenseInfiniteQuery-D7uGd-6e.js +1 -0
  203. package/dist/client/assets/{useSuspenseQueries-Dz__3zJy.js → useSuspenseQueries-DqEFpcN_.js} +1 -1
  204. package/dist/client/assets/{variant-calendar-ColyLdfo.js → variant-calendar-CtaHCIb0.js} +1 -1
  205. package/dist/client/assets/{view-mode-toggle-buFuODEl.js → view-mode-toggle-Bwq7ahqB.js} +1 -1
  206. package/dist/client/index.html +1 -1
  207. package/dist/server/cli.js +410 -410
  208. package/dist/server/server.js +294 -294
  209. package/package.json +1 -1
  210. package/dist/client/assets/app-editor-RWsNU1_V.js +0 -1
  211. package/dist/client/assets/category-editor-nmJa-PEX.js +0 -1
  212. package/dist/client/assets/chat-context-A3TdA-KT.js +0 -21
  213. package/dist/client/assets/file-explorer-D83SKUgJ.js +0 -2
  214. package/dist/client/assets/index-D7jdL_DZ.js +0 -1
  215. package/dist/client/assets/index-DjmwjOWv.js +0 -3
  216. package/dist/client/assets/page-seo-sheet-CUpKopG7.js +0 -1
  217. package/dist/client/assets/post-editor-CGhDEOwt.js +0 -1
  218. package/dist/client/assets/preview-dialog-DNK26uoS.js +0 -5
  219. package/dist/client/assets/project-app-view-E03tCSaX.js +0 -1
  220. package/dist/client/assets/record-editor-aq3fvSFo.js +0 -1
  221. package/dist/client/assets/registry-DsQsIymK.js +0 -2
  222. package/dist/client/assets/seo-editor-Cch9eI4T.js +0 -1
  223. package/dist/client/assets/store-registry-Bl8dzute.js +0 -2
  224. package/dist/client/assets/useInfiniteQuery-DfyfHpXx.js +0 -1
  225. package/dist/client/assets/useSuspenseInfiniteQuery-BAdfxWHo.js +0 -1
@@ -1,5 +0,0 @@
1
- import{r as x,aM as cn,c as A,l as ve,j as c,D as ne,m as st,d as Ie,K as Y,k as ge,b1 as Pt,J as un,i as dn,B as ee,ae as fn,t as Re,ag as pn,G as hn,e as mn}from"./index-CWb9Wsg4.js";import{c as gn,d as xn,g as yn,b as wn,e as bn,a as vn,h as Sn}from"./ZoomOut-NGATVClW.js";import{c as zn,a as Ze,d as Ct,e as $t}from"./dialog-w2u9ahjo.js";import{T as ue,a as de,b as fe}from"./tooltip-DlNdoWTC.js";import{n as Te,i as Et}from"./Globe01-DKKcLl4T.js";import{n as Nt}from"./LinkExternal01-DEXnL1UU.js";import{s as jn}from"./XClose-DOorWLJQ.js";import{S as _e}from"./skeleton-D6by2dpn.js";import{l as kn,F as Pn}from"./index-D2LhxKOJ.js";import{F as et,M as Cn}from"./file-type-icon-D_3mz8is.js";import{D as $n,a as En,b as Nn,c as dt}from"./dropdown-menu-Bw00TpsM.js";import{i as In}from"./LayoutLeft-CASwb6NS.js";import{I as Rn}from"./input-DeTgNphX.js";import{a as Mn,P as Dn,b as Ln}from"./popover-Sng9qlGZ.js";import{i as _n}from"./ChevronUp-DQ-5P7bA.js";import{a as An}from"./Eye-CMlUam6_.js";import{i as Fn}from"./Key01-DZIUNEvu.js";const We=x.createContext(null);We.displayName="PanelGroupContext";const V={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},rt=10,we=x.useLayoutEffect,ft=cn.useId,Tn=typeof ft=="function"?ft:()=>null;let Un=0;function it(n=null){const e=Tn(),t=x.useRef(n||e||null);return t.current===null&&(t.current=""+Un++),n??t.current}function It({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:l,minSize:a,onCollapse:u,onExpand:p,onResize:d,order:f,style:g,tagName:m="div",...z}){const b=x.useContext(We);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:P,getPanelSize:R,getPanelStyle:k,groupId:W,isPanelCollapsed:N,reevaluatePanelConstraints:w,registerPanel:K,resizePanel:B,unregisterPanel:H}=b,F=it(o),D=x.useRef({callbacks:{onCollapse:u,onExpand:p,onResize:d},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:l,minSize:a},id:F,idIsFromProps:o!==void 0,order:f});x.useRef({didLogMissingDefaultSizeWarning:!1}),we(()=>{const{callbacks:_,constraints:L}=D.current,T={...L};D.current.id=F,D.current.idIsFromProps=o!==void 0,D.current.order=f,_.onCollapse=u,_.onExpand=p,_.onResize=d,L.collapsedSize=t,L.collapsible=s,L.defaultSize=r,L.maxSize=l,L.minSize=a,(T.collapsedSize!==L.collapsedSize||T.collapsible!==L.collapsible||T.maxSize!==L.maxSize||T.minSize!==L.minSize)&&w(D.current,T)}),we(()=>{const _=D.current;return K(_),()=>{H(_)}},[f,F,K,H]),x.useImperativeHandle(i,()=>({collapse:()=>{y(D.current)},expand:_=>{P(D.current,_)},getId(){return F},getSize(){return R(D.current)},isCollapsed(){return N(D.current)},isExpanded(){return!N(D.current)},resize:_=>{B(D.current,_)}}),[y,P,R,N,F,B]);const X=k(D.current,r);return x.createElement(m,{...z,children:n,className:e,id:F,style:{...X,...g},[V.groupId]:W,[V.panel]:"",[V.panelCollapsible]:s||void 0,[V.panelId]:F,[V.panelSize]:parseFloat(""+X.flexGrow).toFixed(1)})}const Rt=x.forwardRef((n,e)=>x.createElement(It,{...n,forwardedRef:e}));It.displayName="Panel";Rt.displayName="forwardRef(Panel)";let tt=null,Fe=-1,me=null;function Hn(n,e){if(e){const t=(e&At)!==0,s=(e&Ft)!==0,r=(e&Tt)!==0,i=(e&Ut)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function On(){me!==null&&(document.head.removeChild(me),tt=null,me=null,Fe=-1)}function Ve(n,e){var t,s;const r=Hn(n,e);if(tt!==r){if(tt=r,me===null&&(me=document.createElement("style"),document.head.appendChild(me)),Fe>=0){var i;(i=me.sheet)===null||i===void 0||i.removeRule(Fe)}Fe=(t=(s=me.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Mt(n){return n.type==="keydown"}function Dt(n){return n.type.startsWith("pointer")}function Lt(n){return n.type.startsWith("mouse")}function Be(n){if(Dt(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Lt(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Wn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Bn(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function qn(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:mt(n),b:mt(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;E(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:ht(pt(t.a)),b:ht(pt(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let l=i.length;for(;l--;){const a=i[l];if(a===o.a)return 1;if(a===o.b)return-1}}return Math.sign(r.a-r.b)}const Kn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Gn(n){var e;const t=getComputedStyle((e=_t(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Vn(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Gn(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Kn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function pt(n){let e=n.length;for(;e--;){const t=n[e];if(E(t,"Missing node"),Vn(t))return t}return null}function ht(n){return n&&Number(getComputedStyle(n).zIndex)||0}function mt(n){const e=[];for(;n;)e.push(n),n=_t(n);return e}function _t(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const At=1,Ft=2,Tt=4,Ut=8,Xn=Wn()==="coarse";let ie=[],Pe=!1,ye=new Map,qe=new Map;const Me=new Set;function Qn(n,e,t,s,r){var i;const{ownerDocument:o}=e,l={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},a=(i=ye.get(o))!==null&&i!==void 0?i:0;return ye.set(o,a+1),Me.add(l),Ue(),function(){var p;qe.delete(n),Me.delete(l);const d=(p=ye.get(o))!==null&&p!==void 0?p:1;if(ye.set(o,d-1),Ue(),d===1&&ye.delete(o),ie.includes(l)){const f=ie.indexOf(l);f>=0&&ie.splice(f,1),lt(),r("up",!0,null)}}}function Jn(n){const{target:e}=n,{x:t,y:s}=Be(n);Pe=!0,ot({target:e,x:t,y:s}),Ue(),ie.length>0&&(He("down",n),n.preventDefault(),Ht(e)||n.stopImmediatePropagation())}function Xe(n){const{x:e,y:t}=Be(n);if(Pe&&n.buttons===0&&(Pe=!1,He("up",n)),!Pe){const{target:s}=n;ot({target:s,x:e,y:t})}He("move",n),lt(),ie.length>0&&n.preventDefault()}function Qe(n){const{target:e}=n,{x:t,y:s}=Be(n);qe.clear(),Pe=!1,ie.length>0&&(n.preventDefault(),Ht(e)||n.stopImmediatePropagation()),He("up",n),ot({target:e,x:t,y:s}),lt(),Ue()}function Ht(n){let e=n;for(;e;){if(e.hasAttribute(V.resizeHandle))return!0;e=e.parentElement}return!1}function ot({target:n,x:e,y:t}){ie.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Me.forEach(r=>{const{element:i,hitAreaMargins:o}=r,l=i.getBoundingClientRect(),{bottom:a,left:u,right:p,top:d}=l,f=Xn?o.coarse:o.fine;if(e>=u-f&&e<=p+f&&t>=d-f&&t<=a+f){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&qn(s,i)>0){let m=s,z=!1;for(;m&&!m.contains(i);){if(Bn(m.getBoundingClientRect(),l)){z=!0;break}m=m.parentElement}if(z)return}ie.push(r)}})}function Je(n,e){qe.set(n,e)}function lt(){let n=!1,e=!1;ie.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;qe.forEach(s=>{t|=s}),n&&e?Ve("intersection",t):n?Ve("horizontal",t):e?Ve("vertical",t):On()}let Ye=new AbortController;function Ue(){Ye.abort(),Ye=new AbortController;const n={capture:!0,signal:Ye.signal};Me.size&&(Pe?(ie.length>0&&ye.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Qe,n),s.addEventListener("pointerleave",Xe,n),s.addEventListener("pointermove",Xe,n))}),window.addEventListener("pointerup",Qe,n),window.addEventListener("pointercancel",Qe,n)):ye.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Jn,n),s.addEventListener("pointermove",Xe,n))}))}function He(n,e){Me.forEach(t=>{const{setResizeHandlerState:s}=t,r=ie.includes(t);s(n,r,e)})}function Yn(){const[n,e]=x.useState(0);return x.useCallback(()=>e(t=>t+1),[])}function E(n,e){if(!n)throw console.error(e),Error(e)}function be(n,e,t=rt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function pe(n,e,t=rt){return be(n,e,t)===0}function te(n,e,t){return be(n,e,t)===0}function Zn(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!te(r,i,t))return!1}return!0}function ke({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];E(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:l=0}=s;if(be(t,l)<0)if(i){const a=(r+l)/2;be(t,a)<0?t=r:t=l}else t=l;return t=Math.min(o,t),t=parseFloat(t.toFixed(rt)),t}function Ee({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(te(n,0))return e;const o=[...e],[l,a]=s;E(l!=null,"Invalid first pivot index"),E(a!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const d=n<0?a:l,f=t[d];E(f,`Panel constraints not found for index ${d}`);const{collapsedSize:g=0,collapsible:m,minSize:z=0}=f;if(m){const b=e[d];if(E(b!=null,`Previous layout not found for panel index ${d}`),te(b,g)){const y=z-b;be(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}{const d=n<0?l:a,f=t[d];E(f,`No panel constraints found for index ${d}`);const{collapsedSize:g=0,collapsible:m,minSize:z=0}=f;if(m){const b=e[d];if(E(b!=null,`Previous layout not found for panel index ${d}`),te(b,z)){const y=b-g;be(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}}{const d=n<0?1:-1;let f=n<0?a:l,g=0;for(;;){const z=e[f];E(z!=null,`Previous layout not found for panel index ${f}`);const y=ke({panelConstraints:t,panelIndex:f,size:100})-z;if(g+=y,f+=d,f<0||f>=t.length)break}const m=Math.min(Math.abs(n),Math.abs(g));n=n<0?0-m:m}{let f=n<0?l:a;for(;f>=0&&f<t.length;){const g=Math.abs(n)-Math.abs(u),m=e[f];E(m!=null,`Previous layout not found for panel index ${f}`);const z=m-g,b=ke({panelConstraints:t,panelIndex:f,size:z});if(!te(m,b)&&(u+=m-b,o[f]=b,u.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?f--:f++}}if(Zn(r,o))return r;{const d=n<0?a:l,f=e[d];E(f!=null,`Previous layout not found for panel index ${d}`);const g=f+u,m=ke({panelConstraints:t,panelIndex:d,size:g});if(o[d]=m,!te(m,g)){let z=g-m,y=n<0?a:l;for(;y>=0&&y<t.length;){const P=o[y];E(P!=null,`Previous layout not found for panel index ${y}`);const R=P+z,k=ke({panelConstraints:t,panelIndex:y,size:R});if(te(P,k)||(z-=k-P,o[y]=k),te(z,0))break;n>0?y--:y++}}}const p=o.reduce((d,f)=>f+d,0);return te(p,100)?o:r}function es({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const l=t[0];E(l!=null,"No pivot index found"),e.forEach((d,f)=>{const{constraints:g}=d,{maxSize:m=100,minSize:z=0}=g;f===l?(s=z,r=m):(i+=z,o+=m)});const a=Math.min(r,100-i),u=Math.max(s,100-o),p=n[l];return{valueMax:a,valueMin:u,valueNow:p}}function De(n,e=document){return Array.from(e.querySelectorAll(`[${V.resizeHandleId}][data-panel-group-id="${n}"]`))}function Ot(n,e,t=document){const r=De(n,t).findIndex(i=>i.getAttribute(V.resizeHandleId)===e);return r??null}function Wt(n,e,t){const s=Ot(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function Bt(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function Ke(n,e=document){const t=e.querySelector(`[${V.resizeHandleId}="${n}"]`);return t||null}function ts(n,e,t,s=document){var r,i,o,l;const a=Ke(e,s),u=De(n,s),p=a?u.indexOf(a):-1,d=(r=(i=t[p])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,f=(o=(l=t[p+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[d,f]}function ns({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){x.useRef({didWarnAboutMissingResizeHandle:!1}),we(()=>{if(!i)return;const l=De(t,i);for(let a=0;a<r.length-1;a++){const{valueMax:u,valueMin:p,valueNow:d}=es({layout:s,panelsArray:r,pivotIndices:[a,a+1]}),f=l[a];if(f!=null){const g=r[a];E(g,`No panel data found for index "${a}"`),f.setAttribute("aria-controls",g.id),f.setAttribute("aria-valuemax",""+Math.round(u)),f.setAttribute("aria-valuemin",""+Math.round(p)),f.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{l.forEach((a,u)=>{a.removeAttribute("aria-controls"),a.removeAttribute("aria-valuemax"),a.removeAttribute("aria-valuemin"),a.removeAttribute("aria-valuenow")})}},[t,s,r,i]),x.useEffect(()=>{if(!i)return;const l=e.current;E(l,"Eager values not found");const{panelDataArray:a}=l,u=Bt(t,i);E(u!=null,`No group found for id "${t}"`);const p=De(t,i);E(p,`No resize handles found for group id "${t}"`);const d=p.map(f=>{const g=f.getAttribute(V.resizeHandleId);E(g,"Resize handle element has no handle id attribute");const[m,z]=ts(t,g,a,i);if(m==null||z==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const P=a.findIndex(R=>R.id===m);if(P>=0){const R=a[P];E(R,`No panel data found for index ${P}`);const k=s[P],{collapsedSize:W=0,collapsible:N,minSize:w=0}=R.constraints;if(k!=null&&N){const K=Ee({delta:te(k,W)?w-W:W-k,initialLayout:s,panelConstraints:a.map(B=>B.constraints),pivotIndices:Wt(t,g,i),prevLayout:s,trigger:"keyboard"});s!==K&&o(K)}}break}}};return f.addEventListener("keydown",b),()=>{f.removeEventListener("keydown",b)}});return()=>{d.forEach(f=>f())}},[i,n,e,t,s,r,o])}function gt(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function qt(n,e){const t=n==="horizontal",{x:s,y:r}=Be(e);return t?s:r}function ss(n,e,t,s,r){const i=t==="horizontal",o=Ke(e,r);E(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(V.groupId);E(l,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=s;const u=qt(t,n),p=Bt(l,r);E(p,`No group element found for id "${l}"`);const d=p.getBoundingClientRect(),f=i?d.width:d.height;return(u-a)/f*100}function rs(n,e,t,s,r,i){if(Mt(n)){const o=t==="horizontal";let l=0;n.shiftKey?l=100:r!=null?l=r:l=10;let a=0;switch(n.key){case"ArrowDown":a=o?0:l;break;case"ArrowLeft":a=o?-l:0;break;case"ArrowRight":a=o?l:0;break;case"ArrowUp":a=o?0:-l;break;case"End":a=100;break;case"Home":a=-100;break}return a}else return s==null?0:ss(n,e,t,s,i)}function is({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const o=t[i];E(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;l!=null&&(s++,e[i]=l,r-=l)}for(let i=0;i<n.length;i++){const o=t[i];E(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;if(l!=null)continue;const a=n.length-s,u=r/a;s++,e[i]=u,r-=u}return e}function Se(n,e,t){e.forEach((s,r)=>{const i=n[r];E(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:l,id:a}=i,{collapsedSize:u=0,collapsible:p}=l,d=t[a];if(d==null||s!==d){t[a]=s;const{onCollapse:f,onExpand:g,onResize:m}=o;m&&m(s,d),p&&(f||g)&&(g&&(d==null||pe(d,u))&&!pe(s,u)&&g(),f&&(d==null||!pe(d,u))&&pe(s,u)&&f())}})}function Ae(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function os({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let l;return o==null?l=n!=null?n.toPrecision(i):"1":s.length===1?l="1":l=o.toPrecision(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function ls(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function xt(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function Kt(n){return`react-resizable-panels:${n}`}function Gt(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function Vt(n,e){try{const t=Kt(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function as(n,e,t){var s,r;const i=(s=Vt(n,t))!==null&&s!==void 0?s:{},o=Gt(e);return(r=i[o])!==null&&r!==void 0?r:null}function cs(n,e,t,s,r){var i;const o=Kt(n),l=Gt(e),a=(i=Vt(n,r))!==null&&i!==void 0?i:{};a[l]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(a))}catch(u){console.error(u)}}function yt({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!te(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=100/s*o;t[i]=l}let r=0;for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=ke({panelConstraints:e,panelIndex:i,size:o});o!=l&&(r+=o-l,t[i]=l)}if(!te(r,0))for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=o+r,a=ke({panelConstraints:e,panelIndex:i,size:l});if(o!==a&&(r-=a-o,t[i]=a,te(r,0)))break}return t}const us=100,Ne={getItem:n=>(xt(Ne),Ne.getItem(n)),setItem:(n,e)=>{xt(Ne),Ne.setItem(n,e)}},wt={};function Xt({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:a=Ne,style:u,tagName:p="div",...d}){const f=it(i),g=x.useRef(null),[m,z]=x.useState(null),[b,y]=x.useState([]),P=Yn(),R=x.useRef({}),k=x.useRef(new Map),W=x.useRef(0),N=x.useRef({autoSaveId:n,direction:s,dragState:m,id:f,keyboardResizeBy:l,onLayout:o,storage:a}),w=x.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});x.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),x.useImperativeHandle(r,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:h}=w.current;return h},setLayout:h=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current,v=yt({layout:h,panelConstraints:C.map($=>$.constraints)});gt(I,v)||(y(v),w.current.layout=v,j&&j(v),Se(C,v,R.current))}}),[]),we(()=>{N.current.autoSaveId=n,N.current.direction=s,N.current.dragState=m,N.current.id=f,N.current.onLayout=o,N.current.storage=a}),ns({committedValuesRef:N,eagerValuesRef:w,groupId:f,layout:b,panelDataArray:w.current.panelDataArray,setLayout:y,panelGroupElement:g.current}),x.useEffect(()=>{const{panelDataArray:h}=w.current;if(n){if(b.length===0||b.length!==h.length)return;let j=wt[n];j==null&&(j=ls(cs,us),wt[n]=j);const I=[...h],C=new Map(k.current);j(n,I,C,b,a)}},[n,b,a]),x.useEffect(()=>{});const K=x.useCallback(h=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current;if(h.constraints.collapsible){const v=C.map(le=>le.constraints),{collapsedSize:$=0,panelSize:O,pivotIndices:Q}=xe(C,h,I);if(E(O!=null,`Panel size not found for panel "${h.id}"`),!pe(O,$)){k.current.set(h.id,O);const ae=ze(C,h)===C.length-1?O-$:$-O,G=Ee({delta:ae,initialLayout:I,panelConstraints:v,pivotIndices:Q,prevLayout:I,trigger:"imperative-api"});Ae(I,G)||(y(G),w.current.layout=G,j&&j(G),Se(C,G,R.current))}}},[]),B=x.useCallback((h,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:v}=w.current;if(h.constraints.collapsible){const $=v.map(re=>re.constraints),{collapsedSize:O=0,panelSize:Q=0,minSize:le=0,pivotIndices:ae}=xe(v,h,C),G=j??le;if(pe(Q,O)){const re=k.current.get(h.id),Ce=re!=null&&re>=G?re:G,Ge=ze(v,h)===v.length-1?Q-Ce:Ce-Q,Z=Ee({delta:Ge,initialLayout:C,panelConstraints:$,pivotIndices:ae,prevLayout:C,trigger:"imperative-api"});Ae(C,Z)||(y(Z),w.current.layout=Z,I&&I(Z),Se(v,Z,R.current))}}},[]),H=x.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{panelSize:C}=xe(I,h,j);return E(C!=null,`Panel size not found for panel "${h.id}"`),C},[]),F=x.useCallback((h,j)=>{const{panelDataArray:I}=w.current,C=ze(I,h);return os({defaultSize:j,dragState:m,layout:b,panelData:I,panelIndex:C})},[m,b]),D=x.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:v,panelSize:$}=xe(I,h,j);return E($!=null,`Panel size not found for panel "${h.id}"`),v===!0&&pe($,C)},[]),X=x.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:v,panelSize:$}=xe(I,h,j);return E($!=null,`Panel size not found for panel "${h.id}"`),!v||be($,C)>0},[]),_=x.useCallback(h=>{const{panelDataArray:j}=w.current;j.push(h),j.sort((I,C)=>{const v=I.order,$=C.order;return v==null&&$==null?0:v==null?-1:$==null?1:v-$}),w.current.panelDataArrayChanged=!0,P()},[P]);we(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:h,onLayout:j,storage:I}=N.current,{layout:C,panelDataArray:v}=w.current;let $=null;if(h){const Q=as(h,v,I);Q&&(k.current=new Map(Object.entries(Q.expandToSizes)),$=Q.layout)}$==null&&($=is({panelDataArray:v}));const O=yt({layout:$,panelConstraints:v.map(Q=>Q.constraints)});gt(C,O)||(y(O),w.current.layout=O,j&&j(O),Se(v,O,R.current))}}),we(()=>{const h=w.current;return()=>{h.layout=[]}},[]);const L=x.useCallback(h=>{let j=!1;const I=g.current;return I&&window.getComputedStyle(I,null).getPropertyValue("direction")==="rtl"&&(j=!0),function(v){v.preventDefault();const $=g.current;if(!$)return()=>null;const{direction:O,dragState:Q,id:le,keyboardResizeBy:ae,onLayout:G}=N.current,{layout:re,panelDataArray:Ce}=w.current,{initialLayout:Le}=Q??{},Ge=Wt(le,h,$);let Z=rs(v,h,O,Q,ae,$);const ct=O==="horizontal";ct&&j&&(Z=-Z);const ln=Ce.map(an=>an.constraints),$e=Ee({delta:Z,initialLayout:Le??re,panelConstraints:ln,pivotIndices:Ge,prevLayout:re,trigger:Mt(v)?"keyboard":"mouse-or-touch"}),ut=!Ae(re,$e);(Dt(v)||Lt(v))&&W.current!=Z&&(W.current=Z,!ut&&Z!==0?ct?Je(h,Z<0?At:Ft):Je(h,Z<0?Tt:Ut):Je(h,0)),ut&&(y($e),w.current.layout=$e,G&&G($e),Se(Ce,$e,R.current))}},[]),T=x.useCallback((h,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:v}=w.current,$=v.map(re=>re.constraints),{panelSize:O,pivotIndices:Q}=xe(v,h,C);E(O!=null,`Panel size not found for panel "${h.id}"`);const ae=ze(v,h)===v.length-1?O-j:j-O,G=Ee({delta:ae,initialLayout:C,panelConstraints:$,pivotIndices:Q,prevLayout:C,trigger:"imperative-api"});Ae(C,G)||(y(G),w.current.layout=G,I&&I(G),Se(v,G,R.current))},[]),U=x.useCallback((h,j)=>{const{layout:I,panelDataArray:C}=w.current,{collapsedSize:v=0,collapsible:$}=j,{collapsedSize:O=0,collapsible:Q,maxSize:le=100,minSize:ae=0}=h.constraints,{panelSize:G}=xe(C,h,I);G!=null&&($&&Q&&pe(G,v)?pe(v,O)||T(h,O):G<ae?T(h,ae):G>le&&T(h,le))},[T]),J=x.useCallback((h,j)=>{const{direction:I}=N.current,{layout:C}=w.current;if(!g.current)return;const v=Ke(h,g.current);E(v,`Drag handle element not found for id "${h}"`);const $=qt(I,j);z({dragHandleId:h,dragHandleRect:v.getBoundingClientRect(),initialCursorPosition:$,initialLayout:C})},[]),se=x.useCallback(()=>{z(null)},[]),q=x.useCallback(h=>{const{panelDataArray:j}=w.current,I=ze(j,h);I>=0&&(j.splice(I,1),delete R.current[h.id],w.current.panelDataArrayChanged=!0,P())},[P]),S=x.useMemo(()=>({collapsePanel:K,direction:s,dragState:m,expandPanel:B,getPanelSize:H,getPanelStyle:F,groupId:f,isPanelCollapsed:D,isPanelExpanded:X,reevaluatePanelConstraints:U,registerPanel:_,registerResizeHandle:L,resizePanel:T,startDragging:J,stopDragging:se,unregisterPanel:q,panelGroupElement:g.current}),[K,m,s,B,H,F,f,D,X,U,_,L,T,J,se,q]),M={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return x.createElement(We.Provider,{value:S},x.createElement(p,{...d,children:e,className:t,id:i,ref:g,style:{...M,...u},[V.group]:"",[V.groupDirection]:s,[V.groupId]:f}))}const Qt=x.forwardRef((n,e)=>x.createElement(Xt,{...n,forwardedRef:e}));Xt.displayName="PanelGroup";Qt.displayName="forwardRef(PanelGroup)";function ze(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function xe(n,e,t){const s=ze(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function ds({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){x.useEffect(()=>{if(n||t==null||s==null)return;const r=Ke(e,s);if(r==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const l=r.getAttribute(V.groupId);E(l,`No group element found for id "${l}"`);const a=De(l,s),u=Ot(l,e,s);E(u!==null,`No resize element found for id "${e}"`);const p=o.shiftKey?u>0?u-1:a.length-1:u+1<a.length?u+1:0;a[p].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function Jt({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:l,onFocus:a,onPointerDown:u,onPointerUp:p,style:d={},tabIndex:f=0,tagName:g="div",...m}){var z,b;const y=x.useRef(null),P=x.useRef({onClick:o,onDragging:l,onPointerDown:u,onPointerUp:p});x.useEffect(()=>{P.current.onClick=o,P.current.onDragging=l,P.current.onPointerDown=u,P.current.onPointerUp=p});const R=x.useContext(We);if(R===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:k,groupId:W,registerResizeHandle:N,startDragging:w,stopDragging:K,panelGroupElement:B}=R,H=it(r),[F,D]=x.useState("inactive"),[X,_]=x.useState(!1),[L,T]=x.useState(null),U=x.useRef({state:F});we(()=>{U.current.state=F}),x.useEffect(()=>{if(t)T(null);else{const S=N(H);T(()=>S)}},[t,H,N]);const J=(z=s?.coarse)!==null&&z!==void 0?z:15,se=(b=s?.fine)!==null&&b!==void 0?b:5;x.useEffect(()=>{if(t||L==null)return;const S=y.current;E(S,"Element ref not attached");let M=!1;return Qn(H,S,k,{coarse:J,fine:se},(j,I,C)=>{if(!I){D("inactive");return}switch(j){case"down":{D("drag"),M=!1,E(C,'Expected event to be defined for "down" action'),w(H,C);const{onDragging:v,onPointerDown:$}=P.current;v?.(!0),$?.();break}case"move":{const{state:v}=U.current;M=!0,v!=="drag"&&D("hover"),E(C,'Expected event to be defined for "move" action'),L(C);break}case"up":{D("hover"),K();const{onClick:v,onDragging:$,onPointerUp:O}=P.current;$?.(!1),O?.(),M||v?.();break}}})},[J,k,t,se,N,H,L,w,K]),ds({disabled:t,handleId:H,resizeHandler:L,panelGroupElement:B});const q={touchAction:"none",userSelect:"none"};return x.createElement(g,{...m,children:n,className:e,id:r,onBlur:()=>{_(!1),i?.()},onFocus:()=>{_(!0),a?.()},ref:y,role:"separator",style:{...q,...d},tabIndex:f,[V.groupDirection]:k,[V.groupId]:W,[V.resizeHandle]:"",[V.resizeHandleActive]:F==="drag"?"pointer":X?"keyboard":void 0,[V.resizeHandleEnabled]:!t,[V.resizeHandleId]:H,[V.resizeHandleState]:F})}Jt.displayName="PanelResizeHandle";function fr(n){const e=A.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ve("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=c.jsx(Qt,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function pr(n){const e=A.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx(Rt,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function hr(n){const e=A.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ve("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&c.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:c.jsx(gn,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let l;return e[8]!==s||e[9]!==i||e[10]!==o?(l=c.jsx(Jt,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=l):l=e[11],l}function Yt(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function ce(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function oe(n,e){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function mr(n,e){const t=A.c(11),{org:s}=ne();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Y.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await oe(ce(s.slug,n,"list",{path:e}))).json()).entries.toSorted(fs),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:Pt,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],ge(o)}function fs(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Zt(n,e,t){const s=A.c(15),{org:r}=ne();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Y.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let l;s[4]!==t?(l=t?.refetchIntervalWhenAbsent?p=>p.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=l):l=s[5];let a;s[6]!==r.slug||s[7]!==e||s[8]!==n?(a=async()=>{const p=await fetch(ce(r.slug,n??"","stat",{path:e}));if(p.status===404)return null;if(!p.ok)throw new Error(`HTTP ${p.status}`);return(await p.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=a):a=s[9];let u;return s[10]!==i||s[11]!==o||s[12]!==l||s[13]!==a?(u={queryKey:i,enabled:o,refetchInterval:l,queryFn:a},s[10]=i,s[11]=o,s[12]=l,s[13]=a,s[14]=u):u=s[14],ge(u)}function gr(n){const e=A.c(9),{org:t}=ne();let s;e[0]!==t.id||e[1]!==n?(s=Y.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await oe(ce(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],ge(i)}function xr(n,e){const t=A.c(9),s=n===void 0?60:n,{org:r}=ne();let i;t[0]!==r.id?(i=Y.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let l;t[2]!==s||t[3]!==r.slug?(l=async()=>(await(await oe(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=l):l=t[4];let a;return t[5]!==i||t[6]!==o||t[7]!==l?(a={queryKey:i,enabled:o,queryFn:l},t[5]=i,t[6]=o,t[7]=l,t[8]=a):a=t[8],ge(a)}function yr(n,e){const t=A.c(11),s=50,{org:r}=ne();let i;t[0]!==r.id||t[1]!==n?(i=Y.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let l;t[3]!==s||t[4]!==r.slug||t[5]!==n?(l=async()=>(await(await oe(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=l):l=t[6];let a;return t[7]!==i||t[8]!==o||t[9]!==l?(a={queryKey:i,enabled:o,placeholderData:Pt,queryFn:l},t[7]=i,t[8]=o,t[9]=l,t[10]=a):a=t[10],ge(a)}function wr(n){const e=A.c(8),{org:t}=ne();let s;e[0]!==t.id?(s=Y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const l=await oe(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:a}=await l.json();return a.map(ps)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],ge(o)}function ps(n){return{volume:n.volume,path:n.path}}function br(){const n=A.c(7),{org:e}=ne();let t;n[0]!==e.id?(t=Y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await oe(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],ge(r)}function hs(n){const e=A.c(3),{org:t}=ne();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>ce(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function vr(){const n=A.c(2),{org:e}=ne();let t;return n[0]!==e.slug?(t=(s,r)=>ce(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function ms(n){const e=A.c(3),{org:t}=ne();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await oe(ce(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Ie(s)}function gs(n){const e=A.c(18),{org:t}=ne(),s=st();let r;e[0]!==t||e[1]!==n?(r=async u=>(await(await oe(ce(t.slug,n,"public",{path:u.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:u.mode,password:u.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async u=>{const p=Y.orgFsStat(t.id,n,u.path);await s.cancelQueries({queryKey:p});const d=s.getQueryData(p),f=u.mode!=="private";return s.setQueryData(p,g=>g&&{...g,readPublic:f,effectivePublic:f,shareMode:u.mode}),{key:p,previous:d}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(u,p,d)=>{d&&s.setQueryData(d.key,d.previous)},e[7]=s,e[8]=o):o=e[8];let l;e[9]!==t||e[10]!==s||e[11]!==n?(l=(u,p,d)=>{s.invalidateQueries({queryKey:Y.orgFsStat(t.id,n,d.path)}),s.invalidateQueries({queryKey:Y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=l):l=e[12];let a;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==l?(a={mutationFn:r,onMutate:i,onError:o,onSettled:l},e[13]=r,e[14]=i,e[15]=o,e[16]=l,e[17]=a):a=e[17],Ie(a)}function Sr(n){const e=A.c(26),{org:t}=ne(),s=st();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Y.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const y of b.files){const P=b.dir?`${b.dir}/${y.name}`:y.name;await oe(ce(t.slug,n,"file",{path:P}),{method:"PUT",headers:{"content-type":y.type||"application/octet-stream"},body:y})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let l;e[7]!==i||e[8]!==o?(l={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=l):l=e[9];const a=Ie(l);let u;e[10]!==t||e[11]!==n?(u=async b=>{await oe(ce(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=u):u=e[12];let p;e[13]!==i||e[14]!==u?(p={mutationFn:u,onSuccess:i},e[13]=i,e[14]=u,e[15]=p):p=e[15];const d=Ie(p);let f;e[16]!==t||e[17]!==n?(f=async b=>{await oe(ce(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=f):f=e[18];let g;e[19]!==i||e[20]!==f?(g={mutationFn:f,onSuccess:i},e[19]=i,e[20]=f,e[21]=g):g=e[21];const m=Ie(g);let z;return e[22]!==d||e[23]!==m||e[24]!==a?(z={upload:a,mkdir:d,remove:m},e[22]=d,e[23]=m,e[24]=a,e[25]=z):z=e[25],z}function xs(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function ys(n){if(xs(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ws(n){try{return decodeURIComponent(n)}catch{return n}}function bs(n){return ys(n),encodeURIComponent(n)}function vs(n){return`.deco/blocks/${bs(n)}.json`}function zr(n){return`/${vs(n)}`}const jr=1e4,Ss=3;function nt(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function at(n){return n.startsWith("/")?n.slice(1):n}function Oe(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function zs(n){const e=Oe(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function kr(n,e){const t=e.replace(/^\/+|\/+$/g,"");return Oe(t?`${n==="/"?"":n}/${t}`:n)}function Pr(n,e){return e==="directory"?n:zs(n)}function Cr(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function js(n){const e=at(n);return e?e.split("/").filter(Boolean).length:0}function $r(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Er(n,e){return js(n)>=Ss&&!e.has(n)}function Nr(n,e,t=[]){const s=at(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Ir(n){const e=at(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return ws(s)}function ks(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function Rr(n){const e=nt(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Mr(n,e=[]){const t={children:[]},s=i=>{const l=nt(i).split("/").filter(Boolean);let a=t,u="";for(const p of l){u+=`/${p}`;let d=a.children.find(f=>f.name===p);d?d.kind==="file"&&(d.kind="directory"):(d={name:p,path:u,kind:"directory",children:[]},a.children.push(d)),a=d}};for(const i of n){const l=nt(i).split("/").filter(Boolean);let a=t,u="";l.forEach((p,d)=>{u+=`/${p}`;const f=d===l.length-1;let g=a.children.find(m=>m.name===p);g||(g={name:p,path:u,kind:f?"file":"directory",children:[]},a.children.push(g)),a=g})}for(const i of e)s(Oe(i));const r=i=>{i.sort((o,l)=>o.kind!==l.kind?o.kind==="directory"?-1:1:o.name.localeCompare(l.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function Ps(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...Ps(r.children,e,t+1)));return s}function Dr(n){return n.split(`
2
- `).map(e=>{const t=e.match(/^\d+\t(.*)/);return t?t[1]:e}).join(`
3
- `)}kn.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function Cs(n){const e=A.c(11),{value:t,filename:s}=n,[r]=un(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==s?(o=ks(s),e[0]=s,e[1]=o):o=e[1];const l=i?"vs-dark":"light";let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx("div",{className:"flex h-full w-full items-center justify-center",children:c.jsx(dn,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=a):a=e[2];let u,p;e[3]===Symbol.for("react.memo_cache_sentinel")?(u={enabled:!1},p={top:12,bottom:12},e[3]=u,e[4]=p):(u=e[3],p=e[4]);let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:u,padding:p,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=d):d=e[5];let f;return e[6]!==s||e[7]!==o||e[8]!==l||e[9]!==t?(f=c.jsx(Pn,{path:s,language:o,value:t,theme:l,loading:a,options:d},s),e[6]=s,e[7]=o,e[8]=l,e[9]=t,e[10]=f):f=e[10],f}function en(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const $s=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Es=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),bt=2*1024*1024;function Ns(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return $s.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=bt?"markdown":"download":Es.has(t)&&e<=bt?"text":"download"}function tn(){const n=A.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=c.jsx(_e,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx("div",{className:"flex h-full w-full items-center justify-center",children:c.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(_e,{className:"h-3 w-full"}),c.jsx(_e,{className:"h-3 w-5/6"}),c.jsx(_e,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function nn(n){const e=A.c(20),{file:t,note:s}=n;let r;e[0]!==t.filename?(r=c.jsx(et,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=r):r=e[1];let i;e[2]!==t.filename?(i=c.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let o;e[4]!==t.size?(o=en(t.size),e[4]=t.size,e[5]=o):o=e[5];const l=s?` · ${s}`:"";let a;e[6]!==o||e[7]!==l?(a=c.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,l]}),e[6]=o,e[7]=l,e[8]=a):a=e[8];let u;e[9]!==i||e[10]!==a?(u=c.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,a]}),e[9]=i,e[10]=a,e[11]=u):u=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=c.jsx(Te,{size:14}),e[12]=p):p=e[12];let d;e[13]!==t.downloadUrl||e[14]!==t.filename?(d=c.jsx(ee,{asChild:!0,variant:"outline",size:"sm",children:c.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[p,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=d):d=e[15];let f;return e[16]!==r||e[17]!==u||e[18]!==d?(f=c.jsx("div",{className:"flex h-full w-full items-center justify-center",children:c.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[r,u,d]})}),e[16]=r,e[17]=u,e[18]=d,e[19]=f):f=e[19],f}function vt(n){const e=A.c(16),{file:t,markdown:s}=n;let r;e[0]!==t.downloadUrl?(r=Y.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==t.downloadUrl?(i=async()=>{const d=await fetch(t.downloadUrl,{credentials:"include"});if(!d.ok)throw new Error(`fetch failed: ${d.status}`);return d.text()},e[2]=t.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==i?(o={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=o):o=e[6];const{data:l,isPending:a,isError:u}=ge(o);if(a){let d;return e[7]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(tn,{}),e[7]=d):d=e[7],d}if(u||l===void 0){let d;return e[8]!==t?(d=c.jsx(nn,{file:t,note:"preview unavailable"}),e[8]=t,e[9]=d):d=e[9],d}if(s){const d=`file-preview-${t.key}`;let f;return e[10]!==l||e[11]!==d?(f=c.jsx("div",{className:"h-full overflow-y-auto",children:c.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:c.jsx(Cn,{id:d,text:l})})}),e[10]=l,e[11]=d,e[12]=f):f=e[12],f}let p;return e[13]!==l||e[14]!==t.filename?(p=c.jsx(Cs,{value:l,filename:t.filename}),e[13]=l,e[14]=t.filename,e[15]=p):p=e[15],p}function Is(n){const e=A.c(15),{file:t}=n;switch(Ns(t.filename,t.size)){case"image":{let r;return e[0]!==t.downloadUrl||e[1]!==t.filename?(r=c.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:c.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==t.downloadUrl||e[4]!==t.filename?(r=c.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==t.downloadUrl||e[7]!==t.filename?(r=c.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==t?(r=c.jsx(vt,{file:t,markdown:!0}),e[9]=t,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==t?(r=c.jsx(vt,{file:t,markdown:!1}),e[11]=t,e[12]=r):r=e[12],r}default:{let r;return e[13]!==t?(r=c.jsx(nn,{file:t}),e[13]=t,e[14]=r):r=e[14],r}}}function Rs(n){const e=A.c(40),{readUrl:t,editor:s,downloadName:r,trailing:i}=n;let o;e[0]!==t?(o=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=o):o=e[1];const l=o;let a;e[2]!==s?(a=s.deckDetected&&c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?"Hide slide list":"Show slide list",onClick:()=>s.setRailOpen(!s.railOpen),children:c.jsx(In,{size:14})})}),c.jsx(fe,{side:"bottom",children:s.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=s,e[3]=a):a=e[3];let u;e[4]!==l?(u=()=>window.open(l,"_blank","noopener"),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==l?(p=c.jsx("span",{className:"truncate",children:l}),e[6]=l,e[7]=p):p=e[7];let d;e[8]!==l||e[9]!==u||e[10]!==p?(d=c.jsx("button",{type:"button",onClick:u,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:l,children:p}),e[8]=l,e[9]=u,e[10]=p,e[11]=d):d=e[11];let f;e[12]!==s.agentUpdated||e[13]!==s.reload?(f=s.agentUpdated&&c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsxs(ee,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[c.jsx(fn,{size:12}),"Agent updated — reload"]})}),c.jsx(fe,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=s.agentUpdated,e[13]=s.reload,e[14]=f):f=e[14];let g;e[15]!==s.saving?(g=s.saving&&c.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=s.saving,e[16]=g):g=e[16];let m;e[17]!==s?(m=s.deckDetected&&s.writable&&c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?"Done editing":"Edit inline",className:ve(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:c.jsx(xn,{size:14})})}),c.jsx(fe,{side:"bottom",children:s.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=s,e[18]=m):m=e[18];let z;e[19]!==l||e[20]!==r||e[21]!==s.deckDetected?(z=s.deckDetected?c.jsxs($n,{children:[c.jsx(En,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Download",children:c.jsx(Te,{size:14})})}),c.jsxs(Nn,{align:"end",children:[c.jsxs(dt,{onClick:()=>window.open(`${l}#print`,"_blank","noopener"),children:[c.jsx(yn,{size:14}),"Export as PDF"]}),c.jsx(dt,{asChild:!0,children:c.jsxs("a",{href:l,download:r,children:[c.jsx(wn,{size:14}),"Download HTML"]})})]})]}):c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:c.jsx("a",{href:l,download:r,children:c.jsx(Te,{size:14})})})}),c.jsx(fe,{side:"bottom",children:"Download"})]}),e[19]=l,e[20]=r,e[21]=s.deckDetected,e[22]=z):z=e[22];let b;e[23]!==l?(b=()=>window.open(l,"_blank","noopener"),e[23]=l,e[24]=b):b=e[24];let y;e[25]===Symbol.for("react.memo_cache_sentinel")?(y=c.jsx(Nt,{size:14}),e[25]=y):y=e[25];let P;e[26]!==b?(P=c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:b,children:y})}),e[26]=b,e[27]=P):P=e[27];let R;e[28]===Symbol.for("react.memo_cache_sentinel")?(R=c.jsx(fe,{side:"bottom",children:"Open in new tab"}),e[28]=R):R=e[28];let k;e[29]!==P?(k=c.jsxs(ue,{children:[P,R]}),e[29]=P,e[30]=k):k=e[30];let W;return e[31]!==k||e[32]!==a||e[33]!==d||e[34]!==f||e[35]!==g||e[36]!==m||e[37]!==z||e[38]!==i?(W=c.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[a,d,f,g,m,z,k,i]}),e[31]=k,e[32]=a,e[33]=d,e[34]=f,e[35]=g,e[36]=m,e[37]=z,e[38]=i,e[39]=W):W=e[39],W}const je=1;function Ms(n){if(typeof n!="object"||n===null||n.v!==je||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class he extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function sn(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Ds(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?sn(t).length:null}function Ls(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new he("no <deck-viewer> element in source","no-viewer");const r=sn(s),i=e.kind==="move"?e.from:e.at,o=r[i];if(!o)throw new he(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new he("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const a=o.cloneNode(!0);a.removeAttribute("id");for(const u of a.querySelectorAll("[id]"))u.removeAttribute("id");o.after(a);break}case"move":{if(e.to<0||e.to>=r.length)throw new he(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const a=e.to<e.from?r[e.to]:r[e.to].nextSibling;s.insertBefore(o,a)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new he(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const u=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!u)throw new he("replace html has no root element","bad-op");o.replaceWith(t.importNode(u,!0));break}default:throw new he(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
4
- `:""}${t.documentElement.outerHTML}
5
- `}const St="home",_s=400,As=800;function Fs(n){const e=n.savePath!==void 0,{org:t}=ne(),s=st(),r=ms(St),[i,o]=x.useState(!1),[l,a]=x.useState(!1),[u,p]=x.useState(!1),[d,f]=x.useState(!1),[g,m]=x.useState(!1),[z,b]=x.useState(!1),[y,P]=x.useState(null),[R,k]=x.useState(null),[W,N]=x.useState(0),[w]=x.useState(()=>({iframe:null,source:null,queue:Promise.resolve(),saveTimer:null,selfMarkers:new Set})),K=i||z||g,B=()=>{n.savePath!==void 0&&(s.invalidateQueries({queryKey:Y.orgFsStat(t.id,St,n.savePath)}),s.invalidateQueries({queryKey:Y.orgFsRecent(t.id)}))},H=S=>{w.iframe?.contentWindow?.postMessage(S,"*")},F=()=>{w.source=null,f(!1),R&&P(R),N(S=>S+1),B()};n.statMarker!==R&&(k(n.statMarker),n.statMarker!==null&&(y===null?P(n.statMarker):w.selfMarkers.has(n.statMarker)||n.statMarker!==y&&(K?f(!0):(w.source=null,P(n.statMarker)))));const D=async()=>{w.saveTimer=null;const S=w.source;if(S===null){b(!1);return}m(!0);try{const M=await r.mutateAsync({path:n.savePath,body:S});w.selfMarkers.add(Yt(M)),B()}catch(M){console.error("[deck-editor] save failed",M),Re.error("Couldn't save deck edits — reloading the preview."),U.current.reload()}finally{m(!1),b(!1)}},X=S=>{b(!0),w.saveTimer&&clearTimeout(w.saveTimer),w.saveTimer=setTimeout(()=>{U.current.flushSave()},S)},_=(S,M,h)=>{H({v:je,type:"ack",opId:S,ok:M,error:h})},L=async S=>{if(!e){_(S.opId,!1,"read-only preview");return}try{if(w.source===null){const h=await fetch(n.readUrl,{credentials:"include"});if(!h.ok)throw new Error(`HTTP ${h.status}`);w.source=await h.text()}const M=Ds(w.source);if(M===null||M!==S.witness.childCount)throw new he(`slide count drifted (source ${M}, iframe ${S.witness.childCount})`,"stale-index");w.source=Ls(w.source,S.op),_(S.opId,!0),X(S.op.kind==="replace"?As:_s)}catch(M){console.error("[deck-editor] op failed",S.op,M),_(S.opId,!1,M instanceof Error?M.message:String(M)),Re.error("That edit couldn't be saved — reloading the preview."),U.current.reload()}},T=S=>{if(!w.iframe||S.source!==w.iframe.contentWindow)return;const M=Ms(S.data);if(M){if(M.type==="ready"){a(!0),U.current.editMode?H({v:je,type:"set-edit-mode",enabled:!0}):U.current.railOpen&&H({v:je,type:"set-rail",open:!0});return}M.type==="op"&&(w.queue=w.queue.then(()=>U.current.handleOp(M)).catch(()=>{}))}},U=x.useRef({onMessage:T,handleOp:L,flushSave:D,reload:F,editMode:i,railOpen:u});U.current={onMessage:T,handleOp:L,flushSave:D,reload:F,editMode:i,railOpen:u};const[J]=x.useState(()=>{let S=null;return M=>{if(M){w.iframe=M;const h=j=>U.current.onMessage(j);window.addEventListener("message",h),S=()=>window.removeEventListener("message",h)}else S?.(),S=null,w.iframe=null}}),se=S=>{p(S),H({v:je,type:"set-rail",open:S})},q=S=>{o(S),H({v:je,type:"set-edit-mode",enabled:S}),S&&p(!0),!S&&d&&!z&&!g&&F()};return{iframeRef:J,deckDetected:l,writable:e,displayedMarker:y===null?null:`${y}.${W}`,editMode:i,setEditMode:q,railOpen:u,setRailOpen:se,saving:g,agentUpdated:d,reload:F,postToIframe:H}}const Ts=300;function Us({readUrl:n,marker:e,title:t,savePath:s,trailing:r}){const i=Fs({readUrl:n,statMarker:e,savePath:s}),[o,l]=x.useState(null);if(i.displayedMarker===null)return null;const a=n.includes("?")?"&":"?",u=`${n}${a}v=${encodeURIComponent(i.displayedMarker)}`,p=o===u;return c.jsxs("div",{className:"flex h-full w-full flex-col bg-background",children:[c.jsx(Rs,{readUrl:n,editor:i,downloadName:t.split("/").pop()??t,trailing:r}),c.jsx("div",{className:"relative flex-1",children:c.jsx("iframe",{ref:i.iframeRef,src:u,onLoad:()=>l(u),sandbox:"allow-scripts",className:ve("absolute inset-0 block h-full w-full bg-white","transition-opacity ease-out",p?"opacity-100":"opacity-0"),style:{transitionDuration:`${Ts}ms`},title:t},u)})]})}const Hs=[{mode:"private",label:"Org only",Icon:pn},{mode:"public",label:"Public",Icon:Et},{mode:"password",label:"Password",Icon:Fn}];function rn(n){const e=A.c(38),{volume:t,path:s,kind:r,shareMode:i,effectivePublic:o,url:l}=n,a=gs(t),{data:u}=Zt(t,s),p=u?.shareMode??i,f=(u?.effectivePublic??o)&&p==="private",g=r==="dir",m=g?"folder":"file",[z,b]=x.useState(!1),[y,P]=x.useState(""),[R,k]=x.useState(!1);let W;e[0]!==s||e[1]!==a||e[2]!==m?(W=(q,S)=>{a.mutate({path:s,mode:q,password:S},{onSuccess:()=>{b(!1),P(""),Re.success(q==="private"?`This ${m} is now org-only`:q==="public"?`Anyone with the link can now view this ${m}`:`This ${m} is now password-protected`)},onError:Os})},e[0]=s,e[1]=a,e[2]=m,e[3]=W):W=e[3];const N=W;let w;e[4]!==N?(w=q=>{if(q==="password"){b(!0);return}b(!1),N(q)},e[4]=N,e[5]=w):w=e[5];const K=w,B=z?"password":p;let H;e[6]!==l?(H=async()=>{l&&(await navigator.clipboard.writeText(l),k(!0),Re.success("Link copied to clipboard"),setTimeout(()=>k(!1),2e3))},e[6]=l,e[7]=H):H=e[7];const F=H;let D;e[8]!==R||e[9]!==F||e[10]!==l?(D=l?c.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-input bg-muted/50 px-2 py-1.5",children:[c.jsx("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:l}),c.jsx(ee,{variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:F,"aria-label":"Copy link",children:R?c.jsx(_n,{size:12,className:"text-green-600"}):c.jsx(An,{size:12})})]}):null,e[8]=R,e[9]=F,e[10]=l,e[11]=D):D=e[11];const X=D;if(f){let q;e[12]===Symbol.for("react.memo_cache_sentinel")?(q=c.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:c.jsx(Et,{size:16})}),e[12]=q):q=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=c.jsx("span",{className:"text-sm font-medium text-foreground",children:"Shared via a parent folder"}),e[13]=S):S=e[13];const M=g?"files in this folder":"this file";let h;e[14]!==M?(h=c.jsxs("div",{className:"flex items-start gap-3",children:[q,c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[S,c.jsxs("span",{className:"text-xs text-muted-foreground",children:["Anyone with the link can view"," ",M,". Manage sharing on the parent folder."]})]})]}),e[14]=M,e[15]=h):h=e[15];let j;return e[16]!==X||e[17]!==h?(j=c.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[h,X]}),e[16]=X,e[17]=h,e[18]=j):j=e[18],j}let _;e[19]!==B||e[20]!==K||e[21]!==a.isPending?(_=Hs.map(q=>{const{mode:S,label:M,Icon:h}=q;return c.jsxs("button",{type:"button",disabled:a.isPending,onClick:()=>K(S),className:ve("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors disabled:opacity-60",B===S?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[c.jsx(h,{size:15}),M]},S)}),e[19]=B,e[20]=K,e[21]=a.isPending,e[22]=_):_=e[22];let L;e[23]!==_?(L=c.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-lg bg-muted p-1",children:_}),e[23]=_,e[24]=L):L=e[24];const T=B==="private"?`Only members of your organization can open ${g?"these files":"this link"}.`:B==="public"?g?"Anyone on the internet can view files in this folder via their link.":"Anyone on the internet with the link can view this file.":`Anyone with the link AND the password can view ${g?"files in this folder":"this file"}.`;let U;e[25]!==T?(U=c.jsx("p",{className:"text-xs text-muted-foreground",children:T}),e[25]=T,e[26]=U):U=e[26];let J;e[27]!==B||e[28]!==N||e[29]!==p||e[30]!==y||e[31]!==a.isPending?(J=B==="password"&&c.jsxs("form",{className:"flex items-center gap-2",onSubmit:q=>{q.preventDefault(),y&&N("password",y)},children:[c.jsx(Rn,{type:"password",value:y,onChange:q=>P(q.target.value),placeholder:p==="password"?"New password":"Password",autoComplete:"new-password",className:"h-8 text-xs"}),c.jsx(ee,{type:"submit",size:"sm",className:"shrink-0",disabled:!y||a.isPending,children:p==="password"?"Update":"Set"})]}),e[27]=B,e[28]=N,e[29]=p,e[30]=y,e[31]=a.isPending,e[32]=J):J=e[32];let se;return e[33]!==X||e[34]!==L||e[35]!==U||e[36]!==J?(se=c.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[L,U,J,X]}),e[33]=X,e[34]=L,e[35]=U,e[36]=J,e[37]=se):se=e[37],se}function Os(n){return Re.error(n instanceof Error?n.message:"Failed to update sharing")}function zt(n){const e=A.c(7),{volume:t,path:s,shareMode:r,effectivePublic:i,url:o}=n;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(Mn,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Share",children:c.jsx(bn,{size:14})})})}),c.jsx(fe,{side:"bottom",children:"Share"})]}),e[0]=l):l=e[0];let a;return e[1]!==i||e[2]!==s||e[3]!==r||e[4]!==o||e[5]!==t?(a=c.jsxs(Dn,{children:[l,c.jsx(Ln,{align:"end",className:"w-80 p-3",children:c.jsx(rn,{volume:t,path:s,kind:"file",shareMode:r,effectivePublic:i,url:o})})]}),e[1]=i,e[2]=s,e[3]=r,e[4]=o,e[5]=t,e[6]=a):a=e[6],a}function Lr(n){const e=A.c(11),{target:t,onOpenChange:s}=n,r=!!t,i=t?.kind==="dir"?"folder":"file";let o;e[0]!==i?(o=c.jsx(zn,{children:c.jsxs(Ze,{children:["Share ",i]})}),e[0]=i,e[1]=o):o=e[1];let l;e[2]!==t?(l=t&&c.jsx(rn,{...t}),e[2]=t,e[3]=l):l=e[3];let a;e[4]!==o||e[5]!==l?(a=c.jsxs(Ct,{className:"sm:max-w-md",children:[o,l]}),e[4]=o,e[5]=l,e[6]=a):a=e[6];let u;return e[7]!==s||e[8]!==r||e[9]!==a?(u=c.jsx($t,{open:r,onOpenChange:s,children:a}),e[7]=s,e[8]=r,e[9]=a,e[10]=u):u=e[10],u}function Ws(n){const e=n?n.split("/").filter(Boolean):[],t=e[0]==="public",s=t?e[1]??null:null,r=t?s?`public-${s}`:null:e[0]??null,i=(t?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:r,dirPath:i,isPublic:t,publicSet:s,readOnly:t}}function _r(n,e){return n.isPublic&&n.publicSet?`public/${n.publicSet}/${e}`:n.volume?`${n.volume}/${e}`:e}const jt="public-";function Bs(n){return n.startsWith(jt)?n.slice(jt.length):null}function Ar(n,e){const t=Bs(n);return t?`public/${t}/${e}`:`${n}/${e}`}function qs(n){const e=n.lastIndexOf("/");return e===-1?n:n.slice(e+1)}function Ks(n){const e=A.c(11),{org:t,previewPath:s}=n;let r;e[0]!==s?(r=s.split("/").slice(0,-1).join("/"),e[0]=s,e[1]=r):r=e[1];const i=r;let o;e[2]!==t?(o={org:t},e[2]=t,e[3]=o):o=e[3];let l;e[4]!==i||e[5]!==s?(l={path:i,preview:s},e[4]=i,e[5]=s,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(vn,{size:14}),e[7]=a):a=e[7];let u;return e[8]!==o||e[9]!==l?(u=c.jsx(ee,{variant:"ghost",size:"sm",asChild:!0,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:c.jsxs(hn,{to:"/$org/files",params:o,search:l,children:[a,"See in library"]})}),e[8]=o,e[9]=l,e[10]=u):u=e[10],u}const Gs=n=>/\.html?$/i.test(n);function kt(n){const e=A.c(6),{onClose:t}=n;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=c.jsx(jn,{size:14}),e[0]=s):s=e[0];let r;e[1]!==t?(r=c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon",onClick:t,children:s})}),e[1]=t,e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(fe,{side:"bottom",children:"Close"}),e[3]=i):i=e[3];let o;return e[4]!==r?(o=c.jsxs(ue,{children:[r,i]}),e[4]=r,e[5]=o):o=e[5],o}function on(n){const e=A.c(37),{previewPath:t,onClose:s,showSeeInLibrary:r,variant:i}=n,o=r===void 0?!1:r;let l;e[0]!==t?(l=Ws(t),e[0]=t,e[1]=l):l=e[1];const a=l,{volume:u,dirPath:p}=a,{data:d,isPending:f}=Zt(u,p),g=hs(u??""),m=qs(p);let z;e[2]===Symbol.for("react.memo_cache_sentinel")?(z={strict:!1},e[2]=z):z=e[2];const{org:b}=mn(z),y=i==="dialog";let P;e[3]!==b||e[4]!==t||e[5]!==o?(P=o&&b?c.jsx(Ks,{org:b,previewPath:t}):null,e[3]=b,e[4]=t,e[5]=o,e[6]=P):P=e[6];const R=P,k=d&&d.kind==="file"?{key:t,filename:m,size:d.size,downloadUrl:g(d.path)}:null;if(k&&d&&Gs(m)){const H=k.downloadUrl;let F;e[7]!==d?(F=Yt(d),e[7]=d,e[8]=F):F=e[8];const D=u??"",X=d.shareMode??"private",_=d.effectivePublic??!1,L=window.location.origin+k.downloadUrl;let T;e[9]!==p||e[10]!==L||e[11]!==D||e[12]!==X||e[13]!==_?(T=c.jsx(zt,{volume:D,path:p,shareMode:X,effectivePublic:_,url:L}),e[9]=p,e[10]=L,e[11]=D,e[12]=X,e[13]=_,e[14]=T):T=e[14];let U;e[15]!==y||e[16]!==s?(U=y?c.jsx("div",{className:"w-8 shrink-0"}):c.jsx(kt,{onClose:s}),e[15]=y,e[16]=s,e[17]=U):U=e[17];let J;return e[18]!==R||e[19]!==T||e[20]!==U?(J=c.jsxs(c.Fragment,{children:[T,R,U]}),e[18]=R,e[19]=T,e[20]=U,e[21]=J):J=e[21],c.jsxs(c.Fragment,{children:[y&&c.jsx(Ze,{className:"sr-only",children:m}),c.jsx(Us,{readUrl:H,marker:F,title:m,savePath:u==="home"?p:void 0,trailing:J},t)]})}const W=y?"h-11 py-1 pr-12 pl-2":"h-9 px-2";let N;e[22]!==W?(N=ve("flex shrink-0 items-center gap-1 border-b border-border/60",W),e[22]=W,e[23]=N):N=e[23];let w;e[24]!==d?.effectivePublic||e[25]!==d?.shareMode||e[26]!==k||e[27]!==p||e[28]!==u?(w=k&&c.jsxs(c.Fragment,{children:[c.jsx(zt,{volume:u??"",path:p,shareMode:d?.shareMode??"private",effectivePublic:d?.effectivePublic??!1,url:window.location.origin+k.downloadUrl}),c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon",asChild:!0,children:c.jsx("a",{href:k.downloadUrl,download:k.filename,children:c.jsx(Te,{size:14})})})}),c.jsx(fe,{side:"bottom",children:"Download"})]}),c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon",onClick:()=>window.open(k.downloadUrl,"_blank","noopener"),children:c.jsx(Nt,{size:14})})}),c.jsx(fe,{side:"bottom",children:"Open in new tab"})]})]}),e[24]=d?.effectivePublic,e[25]=d?.shareMode,e[26]=k,e[27]=p,e[28]=u,e[29]=w):w=e[29];let K;e[30]!==y||e[31]!==s?(K=!y&&c.jsx(kt,{onClose:s}),e[30]=y,e[31]=s,e[32]=K):K=e[32];let B;return e[33]!==k||e[34]!==m||e[35]!==f?(B=c.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:k?c.jsx(Is,{file:k}):f?c.jsx(tn,{}):c.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[c.jsx(et,{filename:m,className:"h-7.5 w-6"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"This file is no longer available."})]})}),e[33]=k,e[34]=m,e[35]=f,e[36]=B):B=e[36],c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:N,children:[c.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[c.jsx(et,{filename:m,className:"h-4.5 w-3.5 shrink-0"}),y?c.jsx(Ze,{className:"truncate text-xs font-medium text-foreground",children:m}):c.jsx("span",{className:"truncate text-xs font-medium text-foreground",children:m}),k&&c.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:en(k.size)})]}),R,w,K]}),B]})}function Fr(n){const e=A.c(4),{previewPath:t,onClose:s,showSeeInLibrary:r}=n,i=r===void 0?!1:r;let o;return e[0]!==s||e[1]!==t||e[2]!==i?(o=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(on,{previewPath:t,onClose:s,showSeeInLibrary:i,variant:"panel"})}),e[0]=s,e[1]=t,e[2]=i,e[3]=o):o=e[3],o}function Vs(n){const e=A.c(5),{icon:t}=n;if(t.kind==="component"){const{Component:r}=t;let i;return e[0]!==r?(i=c.jsx(r,{className:"size-4"}),e[0]=r,e[1]=i):i=e[1],i}if(t.kind==="url"){let r;return e[2]!==t.src?(r=c.jsx("img",{src:t.src,alt:"",className:"size-4 rounded-sm object-cover"}),e[2]=t.src,e[3]=r):r=e[3],r}let s;return e[4]===Symbol.for("react.memo_cache_sentinel")?(s=c.jsx(Sn,{className:"size-4"}),e[4]=s):s=e[4],s}function Tr(n){const e=A.c(13),{title:t,icon:s,active:r,onClick:i}=n,o=r?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let l;e[0]!==o?(l=ve("shrink-0 flex items-center gap-1.5 h-8 rounded-md px-2","[transition:background-color_180ms_ease,color_180ms_ease]",o),e[0]=o,e[1]=l):l=e[1];let a;e[2]!==s?(a=c.jsx("span",{className:"flex size-5 items-center justify-center shrink-0",children:c.jsx(Vs,{icon:s})}),e[2]=s,e[3]=a):a=e[3];let u;e[4]!==t?(u=c.jsx("span",{className:"whitespace-nowrap text-sm font-medium leading-none",children:t}),e[4]=t,e[5]=u):u=e[5];let p;return e[6]!==r||e[7]!==i||e[8]!==l||e[9]!==a||e[10]!==u||e[11]!==t?(p=c.jsxs("button",{type:"button",onClick:i,"aria-pressed":r,"aria-label":t,className:l,children:[a,u]}),e[6]=r,e[7]=i,e[8]=l,e[9]=a,e[10]=u,e[11]=t,e[12]=p):p=e[12],p}function Ur(n){const e=A.c(9),{previewPath:t,onClose:s,showSeeInLibrary:r}=n,i=r===void 0?!1:r;let o;e[0]!==s?(o=u=>{u||s()},e[0]=s,e[1]=o):o=e[1];let l;e[2]!==s||e[3]!==t||e[4]!==i?(l=c.jsx(Ct,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",children:c.jsx(on,{previewPath:t,onClose:s,showSeeInLibrary:i,variant:"dialog"})}),e[2]=s,e[3]=t,e[4]=i,e[5]=l):l=e[5];let a;return e[6]!==o||e[7]!==l?(a=c.jsx($t,{open:!0,onOpenChange:o,children:l}),e[6]=o,e[7]=l,e[8]=a):a=e[8],a}export{gr as A,Ar as B,jr as C,Rr as D,Ss as E,tn as F,Mr as G,Us as H,Ps as I,Pr as J,at as K,Fr as L,Oe as M,Er as N,Dr as O,Cr as P,zs as Q,pr as R,Lr as S,Vs as T,kr as U,Nr as V,Ir as W,$r as X,vr as a,xr as b,wr as c,vs as d,zr as e,ys as f,ks as g,Is as h,en as i,Zt as j,hs as k,Yt as l,zt as m,hr as n,fr as o,Tr as p,Ur as q,Ws as r,qs as s,ms as t,Sr as u,mr as v,yr as w,br as x,_r as y,Bs as z};
@@ -1 +0,0 @@
1
- import{c as $,D as H,j as A}from"./index-CWb9Wsg4.js";import{l as L,g as E,s as y}from"./scroll-area-D5K2cFR-.js";import{p as O,u as k}from"./use-mcp-client-H0qGyw4S.js";import{b as q,c as B}from"./use-mcp-tools-ClpDupwI.js";import{u as Y}from"./index-DHLGskzl.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-DIkr-zoW.js";import{u as z,b as F}from"./chat-context-A3TdA-KT.js";import{b as J}from"./shell-layout-BmSdYmam.js";import"./agent-icon-CPn767vi.js";import"./AlertCircle-BJGXp4ka.js";import"./Tool01-Bdi-BBKJ.js";import"./SwitchHorizontal01-BiabkfKZ.js";import"./Settings02-NpgkR8L_.js";import"./XCircle-CBjK62zF.js";import"./ArrowUpRight-BBdsIfGH.js";import"./ZapSquare-BLlgXs9L.js";import"./Users03-B2-Dpsqz.js";import"./CheckCircle-BiabCmdF.js";import"./ChevronUp-DQ-5P7bA.js";import"./ChevronDown-CejcQRgy.js";import"./ChevronLeft-fHsU-TVg.js";import"./ChevronRight-Bajwpni4.js";import"./DotsVertical-eDubkUAQ.js";import"./Stars02-Cqwr8Ws9.js";import"./Eye-CMlUam6_.js";import"./ZoomOut-NGATVClW.js";import"./Globe01-DKKcLl4T.js";import"./FilterLines-CwMZDhi2.js";import"./Star01-IvEBJsCV.js";import"./Globe04-D95JskSa.js";import"./HardDrive-C2eOF8dK.js";import"./Key01-DZIUNEvu.js";import"./LayoutLeft-CASwb6NS.js";import"./LinkExternal01-DEXnL1UU.js";import"./Monitor01-C1hxhUiJ.js";import"./Sun-DikA3hIV.js";import"./Palette-Dt-qaRPY.js";import"./Play-D4JYUILT.js";import"./Plus-TQEhHIaf.js";import"./SearchLg-D4TTfBZy.js";import"./SearchMd-D7Nisqin.js";import"./Shield01-C1PqlQRA.js";import"./Stars01-Bg13RpyJ.js";import"./Trash01-CdGzaXWc.js";import"./Upload01-BLuoqDyn.js";import"./User01-CXAxBhFG.js";import"./Users01-DCjMjVCn.js";import"./XClose-DOorWLJQ.js";import"./X-C2rVRme5.js";import"./Zap-BjNrPOTp.js";import"./use-clock-tick-NRQ6Jq9B.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CWemy_te.js";import"./tooltip-DlNdoWTC.js";import"./file-type-icon-D_3mz8is.js";import"./dialog-w2u9ahjo.js";import"./use-mobile-AEMP8WrJ.js";import"./tab-id-BptcWVWa.js";import"./hooks-DODv-wVV.js";import"./decopilot-sse-pool-DVGFq1Bs.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BJ-UdyTW.js";import"./sheet-DOvMDZuR.js";import"./integration-icon-DMSKHFp1.js";import"./use-virtual-mcp-BOv3TeD0.js";import"./use-collections-Dx9nw5SH.js";import"./use-navigate-to-agent-CCdQ4egc.js";import"./use-connection-CADUWJLS.js";import"./use-mcp-prompts-CMH8dkIp.js";import"./form-Cbgir1KX.js";import"./label-C5upVuqQ.js";import"./input-DeTgNphX.js";import"./select-Cc21tKCb.js";import"./auth-DCR9ETmd.js";import"./index-DjmwjOWv.js";import"./drawer-M1tJGuIB.js";import"./collection-search-DaeCK9xr.js";import"./tabs-CP761j-X.js";import"./toggle-group-Bb1gTTUv.js";import"./sortable.esm-CzWimVLQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DgYNR14j.js";import"./use-registry-connections-FPQXF8Rq.js";import"./use-organization-settings-Ddf63XoW.js";import"./useInfiniteQuery-DfyfHpXx.js";import"./use-infinite-scroll-X3H24Vh-.js";import"./extract-connection-data-Wwim23p3.js";import"./card-DOpZHkJr.js";import"./collection-tabs-DNE8Urvp.js";import"./badge-CyH98isx.js";import"./textarea-DGEx65DJ.js";import"./connection-form-helpers-DW2qQjX-.js";import"./authenticate-and-persist-oauth-s0rsdpEF.js";import"./mcp-oauth-a3FzewVg.js";import"./useSuspenseInfiniteQuery-BAdfxWHo.js";import"./use-ai-providers-Bk-PEV0W.js";import"./connect-desktop-dialog-Bx-n41ou.js";import"./decopilot-Ds8Sp1JG.js";import"./checkbox-C7qfaduP.js";import"./skeleton-D6by2dpn.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-C8rHGBAI.js";import"./settings-section-BI5jS2Dt.js";import"./popover-Sng9qlGZ.js";import"./command-J9Wy9n_1.js";import"./index-CC2delq7.js";import"./dropdown-menu-Bw00TpsM.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-C40CL6QW.js";import"./use-decopilot-events-DRFfNsO4.js";import"./empty-state-C_fk-KEj.js";import"./toolbar-IDz7ohMs.js";import"./preview-dialog-DNK26uoS.js";import"./index-D2LhxKOJ.js";import"./use-capability-CIrGamSD.js";import"./shell-route-loading-DPMEw2M6.js";import"./index-CeQQD9lF.js";import"./alert-dialog-Dz8imfBX.js";import"./switch-BRov-LAY.js";import"./use-debounced-autosave-Ddf6ohdu.js";import"./index-BnDi5HAq.js";import"./sidebar-CtBbCGBG.js";import"./search-input-Dcdjp99e.js";import"./github-repo-picker-7ankcqDv.js";import"./use-debounced-value-CqnvF_Tx.js";import"./use-secrets-DqSD7GLo.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-buFuODEl.js";import"./automation-runs-Bkpk06w6.js";import"./table-5b-Z4cr5.js";import"./use-members-CLe24wAb.js";import"./use-org-auth-client-e-AT3UBL.js";import"./task-status-DwC3l4SN.js";import"./use-automations-B3A8m1Qa.js";import"./use-file-configs-Dqn5vTip.js";import"./monaco-editor-CUY1wKmW.js";import"./select-model-C3sVs6BI.js";import"./automation-list-row-B2xN_dPF.js";import"./required-auth-layout-BYjSLRKw.js";import"./use-org-sso-oYTowyM2.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function De(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{De as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as S,j as r}from"./index-CWb9Wsg4.js";import{I as T}from"./input-DeTgNphX.js";import{L as C}from"./label-C5upVuqQ.js";import{T as L}from"./textarea-DGEx65DJ.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-DHLGskzl.js";import{u as M,s as P}from"./primitives-BX1TQnm6.js";import"./index-DjmwjOWv.js";import"./chat-context-A3TdA-KT.js";import"./hooks-DODv-wVV.js";import"./use-mcp-client-H0qGyw4S.js";import"./auth-DCR9ETmd.js";import"./decopilot-sse-pool-DVGFq1Bs.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BOv3TeD0.js";import"./use-collections-Dx9nw5SH.js";import"./use-ai-providers-Bk-PEV0W.js";import"./studio-tools-BJ-UdyTW.js";import"./use-decopilot-events-DRFfNsO4.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-Ddf63XoW.js";import"./scroll-area-D5K2cFR-.js";import"./agent-icon-CPn767vi.js";import"./AlertCircle-BJGXp4ka.js";import"./Tool01-Bdi-BBKJ.js";import"./SwitchHorizontal01-BiabkfKZ.js";import"./Settings02-NpgkR8L_.js";import"./XCircle-CBjK62zF.js";import"./ArrowUpRight-BBdsIfGH.js";import"./ZapSquare-BLlgXs9L.js";import"./Users03-B2-Dpsqz.js";import"./CheckCircle-BiabCmdF.js";import"./ChevronUp-DQ-5P7bA.js";import"./ChevronDown-CejcQRgy.js";import"./ChevronLeft-fHsU-TVg.js";import"./ChevronRight-Bajwpni4.js";import"./DotsVertical-eDubkUAQ.js";import"./Stars02-Cqwr8Ws9.js";import"./Eye-CMlUam6_.js";import"./ZoomOut-NGATVClW.js";import"./Globe01-DKKcLl4T.js";import"./FilterLines-CwMZDhi2.js";import"./Star01-IvEBJsCV.js";import"./Globe04-D95JskSa.js";import"./HardDrive-C2eOF8dK.js";import"./Key01-DZIUNEvu.js";import"./LayoutLeft-CASwb6NS.js";import"./LinkExternal01-DEXnL1UU.js";import"./Monitor01-C1hxhUiJ.js";import"./Sun-DikA3hIV.js";import"./Palette-Dt-qaRPY.js";import"./Play-D4JYUILT.js";import"./Plus-TQEhHIaf.js";import"./SearchLg-D4TTfBZy.js";import"./SearchMd-D7Nisqin.js";import"./Shield01-C1PqlQRA.js";import"./Stars01-Bg13RpyJ.js";import"./Trash01-CdGzaXWc.js";import"./Upload01-BLuoqDyn.js";import"./User01-CXAxBhFG.js";import"./Users01-DCjMjVCn.js";import"./XClose-DOorWLJQ.js";import"./X-C2rVRme5.js";import"./Zap-BjNrPOTp.js";import"./use-clock-tick-NRQ6Jq9B.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CWemy_te.js";import"./tooltip-DlNdoWTC.js";import"./file-type-icon-D_3mz8is.js";import"./dialog-w2u9ahjo.js";import"./use-mobile-AEMP8WrJ.js";import"./content-blocks-o63cs2vh.js";import"./types-DIkr-zoW.js";import"./shell-layout-BmSdYmam.js";import"./avatar-C8rHGBAI.js";import"./required-auth-layout-BYjSLRKw.js";import"./use-org-sso-oYTowyM2.js";import"./sheet-DOvMDZuR.js";import"./integration-icon-DMSKHFp1.js";import"./use-navigate-to-agent-CCdQ4egc.js";import"./use-connection-CADUWJLS.js";import"./use-mcp-prompts-CMH8dkIp.js";import"./form-Cbgir1KX.js";import"./select-Cc21tKCb.js";import"./drawer-M1tJGuIB.js";import"./collection-search-DaeCK9xr.js";import"./tabs-CP761j-X.js";import"./toggle-group-Bb1gTTUv.js";import"./sortable.esm-CzWimVLQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DgYNR14j.js";import"./use-registry-connections-FPQXF8Rq.js";import"./useInfiniteQuery-DfyfHpXx.js";import"./use-infinite-scroll-X3H24Vh-.js";import"./extract-connection-data-Wwim23p3.js";import"./card-DOpZHkJr.js";import"./collection-tabs-DNE8Urvp.js";import"./badge-CyH98isx.js";import"./connection-form-helpers-DW2qQjX-.js";import"./authenticate-and-persist-oauth-s0rsdpEF.js";import"./mcp-oauth-a3FzewVg.js";import"./useSuspenseInfiniteQuery-BAdfxWHo.js";import"./connect-desktop-dialog-Bx-n41ou.js";import"./decopilot-Ds8Sp1JG.js";import"./checkbox-C7qfaduP.js";import"./skeleton-D6by2dpn.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BI5jS2Dt.js";import"./popover-Sng9qlGZ.js";import"./command-J9Wy9n_1.js";import"./index-CC2delq7.js";import"./dropdown-menu-Bw00TpsM.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-C40CL6QW.js";import"./empty-state-C_fk-KEj.js";import"./toolbar-IDz7ohMs.js";import"./preview-dialog-DNK26uoS.js";import"./index-D2LhxKOJ.js";import"./use-mcp-tools-ClpDupwI.js";import"./use-capability-CIrGamSD.js";import"./shell-route-loading-DPMEw2M6.js";import"./index-CeQQD9lF.js";import"./alert-dialog-Dz8imfBX.js";import"./switch-BRov-LAY.js";import"./use-debounced-autosave-Ddf6ohdu.js";import"./index-BnDi5HAq.js";import"./sidebar-CtBbCGBG.js";import"./search-input-Dcdjp99e.js";import"./github-repo-picker-7ankcqDv.js";import"./use-debounced-value-CqnvF_Tx.js";import"./use-secrets-DqSD7GLo.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-buFuODEl.js";import"./automation-runs-Bkpk06w6.js";import"./table-5b-Z4cr5.js";import"./use-members-CLe24wAb.js";import"./use-org-auth-client-e-AT3UBL.js";import"./task-status-DwC3l4SN.js";import"./use-automations-B3A8m1Qa.js";import"./use-file-configs-Dqn5vTip.js";import"./monaco-editor-CUY1wKmW.js";import"./select-model-C3sVs6BI.js";import"./automation-list-row-B2xN_dPF.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 Er(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{Er as RecordEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Dh1yj8yr.js","assets/index-CWb9Wsg4.js","assets/index-BADtduG9.css","assets/XCircle-CBjK62zF.js","assets/CheckCircle-BiabCmdF.js","assets/Settings02-NpgkR8L_.js","assets/use-mcp-client-H0qGyw4S.js","assets/auth-DCR9ETmd.js","assets/useInfiniteQuery-DfyfHpXx.js","assets/use-infinite-scroll-X3H24Vh-.js","assets/studio-tools-BJ-UdyTW.js","assets/badge-CyH98isx.js","assets/input-DeTgNphX.js","assets/dropdown-menu-Bw00TpsM.js","assets/ChevronUp-DQ-5P7bA.js","assets/ChevronRight-Bajwpni4.js","assets/DotsVertical-eDubkUAQ.js","assets/table-5b-Z4cr5.js","assets/toggle-group-Bb1gTTUv.js","assets/use-view-mode-BgbYtI9e.js","assets/use-mobile-AEMP8WrJ.js","assets/FilterLines-CwMZDhi2.js","assets/Globe01-DKKcLl4T.js","assets/SearchMd-D7Nisqin.js","assets/dialog-w2u9ahjo.js","assets/X-C2rVRme5.js","assets/AlertCircle-BJGXp4ka.js","assets/Upload01-BLuoqDyn.js","assets/alert-dialog-Dz8imfBX.js","assets/card-DOpZHkJr.js","assets/Trash01-CdGzaXWc.js","assets/label-C5upVuqQ.js","assets/select-Cc21tKCb.js","assets/tooltip-DlNdoWTC.js","assets/ChevronDown-CejcQRgy.js","assets/switch-BRov-LAY.js","assets/textarea-DGEx65DJ.js","assets/checkbox-C7qfaduP.js","assets/Eye-CMlUam6_.js","assets/LinkExternal01-DEXnL1UU.js","assets/use-copy-CWemy_te.js","assets/Key01-DZIUNEvu.js","assets/Plus-TQEhHIaf.js","assets/mcp-oauth-a3FzewVg.js","assets/Play-D4JYUILT.js"])))=>i.map(i=>d[i]);
2
- import{c as s,j as e,r as i,i as a,am as o}from"./index-CWb9Wsg4.js";import{R as m}from"./require-capability-DQCVcrTE.js";import"./use-capability-CIrGamSD.js";import"./access-gate-CEYZDlvH.js";import"./capability-load-error-CiAu-JyH.js";const n=i.lazy(()=>o(()=>import("./registry-layout-Dh1yj8yr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
@@ -1 +0,0 @@
1
- import{c as T,j as t,r as Q,B as je,i as Se}from"./index-CWb9Wsg4.js";import{i as be}from"./ChevronRight-Bajwpni4.js";import{M as fe}from"./agent-icon-CPn767vi.js";import{S as ue}from"./scroll-area-D5K2cFR-.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Re,S as Ee}from"./page-seo-form-Xun3Gb-0.js";import{s as xe,p as ze}from"./index-DHLGskzl.js";import{a as ge}from"./Tool01-Bdi-BBKJ.js";import"./AlertCircle-BJGXp4ka.js";import"./SwitchHorizontal01-BiabkfKZ.js";import"./Settings02-NpgkR8L_.js";import"./XCircle-CBjK62zF.js";import"./ArrowUpRight-BBdsIfGH.js";import"./ZapSquare-BLlgXs9L.js";import"./Users03-B2-Dpsqz.js";import"./CheckCircle-BiabCmdF.js";import"./ChevronUp-DQ-5P7bA.js";import"./ChevronDown-CejcQRgy.js";import"./ChevronLeft-fHsU-TVg.js";import"./DotsVertical-eDubkUAQ.js";import"./Stars02-Cqwr8Ws9.js";import"./Eye-CMlUam6_.js";import"./ZoomOut-NGATVClW.js";import"./Globe01-DKKcLl4T.js";import"./FilterLines-CwMZDhi2.js";import"./Star01-IvEBJsCV.js";import"./Globe04-D95JskSa.js";import"./HardDrive-C2eOF8dK.js";import"./Key01-DZIUNEvu.js";import"./LayoutLeft-CASwb6NS.js";import"./LinkExternal01-DEXnL1UU.js";import"./Monitor01-C1hxhUiJ.js";import"./Sun-DikA3hIV.js";import"./Palette-Dt-qaRPY.js";import"./Play-D4JYUILT.js";import"./Plus-TQEhHIaf.js";import"./SearchLg-D4TTfBZy.js";import"./SearchMd-D7Nisqin.js";import"./Shield01-C1PqlQRA.js";import"./Stars01-Bg13RpyJ.js";import"./Trash01-CdGzaXWc.js";import"./Upload01-BLuoqDyn.js";import"./User01-CXAxBhFG.js";import"./Users01-DCjMjVCn.js";import"./XClose-DOorWLJQ.js";import"./X-C2rVRme5.js";import"./Zap-BjNrPOTp.js";import"./use-clock-tick-NRQ6Jq9B.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CWemy_te.js";import"./tooltip-DlNdoWTC.js";import"./file-type-icon-D_3mz8is.js";import"./dialog-w2u9ahjo.js";import"./use-mobile-AEMP8WrJ.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DIkr-zoW.js";import"./use-mcp-client-H0qGyw4S.js";import"./auth-DCR9ETmd.js";import"./chat-context-A3TdA-KT.js";import"./hooks-DODv-wVV.js";import"./decopilot-sse-pool-DVGFq1Bs.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BOv3TeD0.js";import"./use-collections-Dx9nw5SH.js";import"./use-ai-providers-Bk-PEV0W.js";import"./studio-tools-BJ-UdyTW.js";import"./use-decopilot-events-DRFfNsO4.js";import"./use-organization-settings-Ddf63XoW.js";import"./shell-layout-BmSdYmam.js";import"./avatar-C8rHGBAI.js";import"./required-auth-layout-BYjSLRKw.js";import"./use-org-sso-oYTowyM2.js";import"./sheet-DOvMDZuR.js";import"./integration-icon-DMSKHFp1.js";import"./use-navigate-to-agent-CCdQ4egc.js";import"./use-connection-CADUWJLS.js";import"./use-mcp-prompts-CMH8dkIp.js";import"./form-Cbgir1KX.js";import"./label-C5upVuqQ.js";import"./input-DeTgNphX.js";import"./select-Cc21tKCb.js";import"./switch-BRov-LAY.js";import"./index-DjmwjOWv.js";import"./drawer-M1tJGuIB.js";import"./collection-search-DaeCK9xr.js";import"./tabs-CP761j-X.js";import"./toggle-group-Bb1gTTUv.js";import"./sortable.esm-CzWimVLQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DgYNR14j.js";import"./use-registry-connections-FPQXF8Rq.js";import"./useInfiniteQuery-DfyfHpXx.js";import"./use-infinite-scroll-X3H24Vh-.js";import"./extract-connection-data-Wwim23p3.js";import"./card-DOpZHkJr.js";import"./collection-tabs-DNE8Urvp.js";import"./badge-CyH98isx.js";import"./textarea-DGEx65DJ.js";import"./connection-form-helpers-DW2qQjX-.js";import"./authenticate-and-persist-oauth-s0rsdpEF.js";import"./mcp-oauth-a3FzewVg.js";import"./useSuspenseInfiniteQuery-BAdfxWHo.js";import"./connect-desktop-dialog-Bx-n41ou.js";import"./decopilot-Ds8Sp1JG.js";import"./checkbox-C7qfaduP.js";import"./skeleton-D6by2dpn.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BI5jS2Dt.js";import"./popover-Sng9qlGZ.js";import"./command-J9Wy9n_1.js";import"./index-CC2delq7.js";import"./dropdown-menu-Bw00TpsM.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-C40CL6QW.js";import"./empty-state-C_fk-KEj.js";import"./toolbar-IDz7ohMs.js";import"./preview-dialog-DNK26uoS.js";import"./index-D2LhxKOJ.js";import"./use-mcp-tools-ClpDupwI.js";import"./use-capability-CIrGamSD.js";import"./shell-route-loading-DPMEw2M6.js";import"./index-CeQQD9lF.js";import"./alert-dialog-Dz8imfBX.js";import"./use-debounced-autosave-Ddf6ohdu.js";import"./index-BnDi5HAq.js";import"./sidebar-CtBbCGBG.js";import"./search-input-Dcdjp99e.js";import"./github-repo-picker-7ankcqDv.js";import"./use-debounced-value-CqnvF_Tx.js";import"./use-secrets-DqSD7GLo.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-buFuODEl.js";import"./automation-runs-Bkpk06w6.js";import"./table-5b-Z4cr5.js";import"./use-members-CLe24wAb.js";import"./use-org-auth-client-e-AT3UBL.js";import"./task-status-DwC3l4SN.js";import"./use-automations-B3A8m1Qa.js";import"./use-file-configs-Dqn5vTip.js";import"./monaco-editor-CUY1wKmW.js";import"./select-model-C3sVs6BI.js";import"./automation-list-row-B2xN_dPF.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let S;return e[23]!==u||e[24]!==y||e[25]!==g?(S=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=S):S=e[26],S}function De(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function Ie(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ae(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const S=i.description??ee;let _;e[17]!==y||e[18]!==S?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:S}),e[17]=y,e[18]=S,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==i.image?(b=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=b):b=e[25];let k;e[26]!==N||e[27]!==b||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,b]}),e[26]=N,e[27]=b,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(De,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ae,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function Ti(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,S]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),S(Me));const{persistSeo:b,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let R,G;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(R=o.kind==="page"?Fe(a,s)?.seoData??{}:{},G=o.kind==="page"?Ve(R,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=R,e[7]=G):(R=e[6],G=e[7]);const ie=G;let V;e[8]!==b||e[9]!==c||e[10]!==v?(V=E=>{if(!c)return;const de=E;v(de),b(de)},e[8]=b,e[9]=c,e[10]=v,e[11]=V):V=e[11];const se=V;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==S?(H=()=>S(Ke),e[14]=S,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ge(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(be,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let D;e[32]!==$||e[33]!==L?(D=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=D):D=e[34];let I;e[35]!==D||e[36]!==O?(I=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,D]}),e[35]=D,e[36]=O,e[37]=I):I=e[37];let A;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==b||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==R?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Re,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:R,onPersistRaw:E=>{N(E),k(E)},onInnerChange:E=>{v(E),b(E)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Ee,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=b,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=R,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ge(n,e){try{return new URL(n,e).href}catch{return e}}function Ve(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{Ti as SeoEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Dh1yj8yr.js","assets/index-CWb9Wsg4.js","assets/index-BADtduG9.css","assets/XCircle-CBjK62zF.js","assets/CheckCircle-BiabCmdF.js","assets/Settings02-NpgkR8L_.js","assets/use-mcp-client-H0qGyw4S.js","assets/auth-DCR9ETmd.js","assets/useInfiniteQuery-DfyfHpXx.js","assets/use-infinite-scroll-X3H24Vh-.js","assets/studio-tools-BJ-UdyTW.js","assets/badge-CyH98isx.js","assets/input-DeTgNphX.js","assets/dropdown-menu-Bw00TpsM.js","assets/ChevronUp-DQ-5P7bA.js","assets/ChevronRight-Bajwpni4.js","assets/DotsVertical-eDubkUAQ.js","assets/table-5b-Z4cr5.js","assets/toggle-group-Bb1gTTUv.js","assets/use-view-mode-BgbYtI9e.js","assets/use-mobile-AEMP8WrJ.js","assets/FilterLines-CwMZDhi2.js","assets/Globe01-DKKcLl4T.js","assets/SearchMd-D7Nisqin.js","assets/dialog-w2u9ahjo.js","assets/X-C2rVRme5.js","assets/AlertCircle-BJGXp4ka.js","assets/Upload01-BLuoqDyn.js","assets/alert-dialog-Dz8imfBX.js","assets/card-DOpZHkJr.js","assets/Trash01-CdGzaXWc.js","assets/label-C5upVuqQ.js","assets/select-Cc21tKCb.js","assets/tooltip-DlNdoWTC.js","assets/ChevronDown-CejcQRgy.js","assets/switch-BRov-LAY.js","assets/textarea-DGEx65DJ.js","assets/checkbox-C7qfaduP.js","assets/Eye-CMlUam6_.js","assets/LinkExternal01-DEXnL1UU.js","assets/use-copy-CWemy_te.js","assets/Key01-DZIUNEvu.js","assets/Plus-TQEhHIaf.js","assets/mcp-oauth-a3FzewVg.js","assets/Play-D4JYUILT.js"])))=>i.map(i=>d[i]);
2
- import{c as m,b as n,e as c,j as t,i as p,r as l,am as f}from"./index-CWb9Wsg4.js";import{R as u}from"./require-capability-DQCVcrTE.js";import"./use-capability-CIrGamSD.js";import"./access-gate-CEYZDlvH.js";import"./capability-load-error-CiAu-JyH.js";const g=l.lazy(()=>f(()=>import("./registry-layout-Dh1yj8yr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-X3H24Vh-.js";import{cJ as i}from"./index-CWb9Wsg4.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./use-infinite-scroll-X3H24Vh-.js";import{cJ as u,aC as n}from"./index-CWb9Wsg4.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};