decocms 4.491.3 → 4.493.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 (510) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-CO9ka_yi.js → ActiveShapeUtils-5xWWHSL1.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-C3fpFT5I.js → AlertCircle-B5gBB9h_.js} +1 -1
  3. package/dist/client/assets/{AreaChart-BvjH9pmK.js → AreaChart-BTyzss2a.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-C1IFj0Ic.js → ArrowLeft-B7455tPl.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DR-Jhbl1.js → ArrowUp-CP6XCJnB.js} +1 -1
  6. package/dist/client/assets/{BarChart-CJ_IiQ71.js → BarChart-Ch51NWPz.js} +1 -1
  7. package/dist/client/assets/{Building02-uHT4KVtK.js → Building02-BZItaEYx.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-zte0bRec.js → CategoricalChart-DqN5Jy74.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-BKHstO_Q.js → CheckCircle-C3CiaCW4.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-DAO6R1Op.js → ChevronSelectorVertical-DIPs2sw-.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-CceLPRrE.js → ChevronUp-nynZHATg.js} +1 -1
  12. package/dist/client/assets/{Copy01-Dx3ZT0bA.js → Copy01-CdRMK9o7.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-Dko0T335.js → CreditCard01-DVQTLvKO.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-aHYBPlin.js → DotsVertical-3XBYz4yU.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-B8QqSSmC.js → ErrorBarContext-Csmpy3UX.js} +1 -1
  16. package/dist/client/assets/{Globe04-BDe-0jS0.js → Globe04-DoxNod_i.js} +1 -1
  17. package/dist/client/assets/{Image01-Cxa392ef.js → Image01-DdBetDCI.js} +1 -1
  18. package/dist/client/assets/{Key01-BHiUNW_5.js → Key01-DcSonP-G.js} +1 -1
  19. package/dist/client/assets/{Link01-BRZRc4wX.js → Link01-3BacRGrf.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-kK_na_OL.js → LinkBroken01-BZFZ6N-h.js} +1 -1
  21. package/dist/client/assets/{Monitor01-Cl4JLYVa.js → Monitor01-DU19-CHk.js} +1 -1
  22. package/dist/client/assets/{Play-CzTcIQz_.js → Play-B7i_-ibU.js} +1 -1
  23. package/dist/client/assets/{Plus-nldAzVeQ.js → Plus-XYNDZJ4s.js} +1 -1
  24. package/dist/client/assets/{SearchMd-BiZNveM1.js → SearchMd-BFitEH5z.js} +1 -1
  25. package/dist/client/assets/{Sector-DOgIwKt7.js → Sector-CYOl8Efm.js} +1 -1
  26. package/dist/client/assets/{ShoppingBag01-o0DdjJD9.js → ShoppingBag01-Ci8H67G0.js} +1 -1
  27. package/dist/client/assets/{Sun-BYGxydmh.js → Sun-D1Mdg8Cq.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-Bx3d-jDI.js → SwitchHorizontal01-BHr8jCjb.js} +1 -1
  29. package/dist/client/assets/{Tool01-Blw6F5iV.js → Tool01-DQnW-zjg.js} +1 -1
  30. package/dist/client/assets/{Trash01-DAoFHSpp.js → Trash01-DZ8laRwu.js} +1 -1
  31. package/dist/client/assets/{Upload01-CtKBhqsv.js → Upload01-CrRTpeMX.js} +1 -1
  32. package/dist/client/assets/{User01-Awky2MVQ.js → User01-9bZ-cKa7.js} +1 -1
  33. package/dist/client/assets/{UserSquare-BMOlWqCu.js → UserSquare-CuRnLJZ6.js} +1 -1
  34. package/dist/client/assets/{Users01-D7ZFKC4W.js → Users01-cUGZjxDe.js} +1 -1
  35. package/dist/client/assets/{XAxis-BLZT-vtl.js → XAxis-DDG3qYHW.js} +1 -1
  36. package/dist/client/assets/{XClose-DBJ7sD1T.js → XClose-DjFCAP5F.js} +1 -1
  37. package/dist/client/assets/{ZoomOut-CQckFmS9.js → ZoomOut-BggitXDv.js} +1 -1
  38. package/dist/client/assets/{access-gate-DEyXiK2N.js → access-gate-Cu8JZecz.js} +1 -1
  39. package/dist/client/assets/add-connection-dialog-DBnkMFp9.js +1 -0
  40. package/dist/client/assets/agent-analytics-B1wni80p.js +2 -0
  41. package/dist/client/assets/agent-app-DY95_zYY.js +1 -0
  42. package/dist/client/assets/agent-assets-B18leh3z.js +1 -0
  43. package/dist/client/assets/agent-automation-CWXHzvtY.js +20 -0
  44. package/dist/client/assets/agent-automations-C0tbQ1R9.js +1 -0
  45. package/dist/client/assets/agent-connect-sources-CKiU44XZ.js +1 -0
  46. package/dist/client/assets/agent-deck-C8T7Jj3o.js +1 -0
  47. package/dist/client/assets/agent-e2e-LdVq-drf.js +1 -0
  48. package/dist/client/assets/agent-experiments-ClDYYnWj.js +1 -0
  49. package/dist/client/assets/agent-file-CjZFekiU.js +1 -0
  50. package/dist/client/assets/agent-hosting-zrg11_-A.js +1 -0
  51. package/dist/client/assets/agent-icon-BewGjsar.js +1 -0
  52. package/dist/client/assets/agent-library-BAUPDsyD.js +1 -0
  53. package/dist/client/assets/agent-library-file-CHlnBg90.js +1 -0
  54. package/dist/client/assets/agent-monitor-CKpvG_Lm.js +1 -0
  55. package/dist/client/assets/agent-overview-Di3y0uXp.js +1 -0
  56. package/dist/client/assets/agent-settings-C-kNuurj.js +1 -0
  57. package/dist/client/assets/{agent-site-editor-Dv8qh0xB.js → agent-site-editor-16duoEZY.js} +5 -5
  58. package/dist/client/assets/agent-site-editor-code-BUJylH9_.js +2 -0
  59. package/dist/client/assets/{agent-site-editor-content-EotWUMUT.js → agent-site-editor-content-B64VGP55.js} +6 -6
  60. package/dist/client/assets/agent-site-editor-preview-DIihiuj0.js +518 -0
  61. package/dist/client/assets/agent-view-SjLiGW-o.js +1 -0
  62. package/dist/client/assets/{agent-view-guard-Bf5Bn5K4.js → agent-view-guard-CoiTTfLB.js} +1 -1
  63. package/dist/client/assets/agents-list-CFQQdh1t.js +1 -0
  64. package/dist/client/assets/{ai-providers-VCM02Z-N.js → ai-providers-CTzk8MgQ.js} +2 -2
  65. package/dist/client/assets/{alert-CGA3Ty0D.js → alert-Dyx5I-Y3.js} +1 -1
  66. package/dist/client/assets/{alert-dialog-kjq4dW3k.js → alert-dialog-BXEG2ySJ.js} +2 -2
  67. package/dist/client/assets/{analytics-sections-Cjkr8Muu.js → analytics-sections-BeEYJnmv.js} +1 -1
  68. package/dist/client/assets/api-keys-CH5G5_Qp.js +1 -0
  69. package/dist/client/assets/api-keys-JMxYvHms.js +1 -0
  70. package/dist/client/assets/app-editor-DqEmpUhy.js +1 -0
  71. package/dist/client/assets/asset-utils-Euq8y8zU.js +1 -0
  72. package/dist/client/assets/{auth-Cps-90jQ.js → auth-Dwu4WH32.js} +1 -1
  73. package/dist/client/assets/{auth-catchall-Batt4Wp1.js → auth-catchall-D9Xe8fii.js} +1 -1
  74. package/dist/client/assets/auth-entry-CCIy-Mhs.js +1 -0
  75. package/dist/client/assets/{auth-split-layout-lt03dL19.js → auth-split-layout-DXUbMgnq.js} +1 -1
  76. package/dist/client/assets/authenticate-and-persist-oauth-BEdNWkUl.js +1 -0
  77. package/dist/client/assets/{automation-list-row-C9YrfX3o.js → automation-list-row-Du4blVfm.js} +1 -1
  78. package/dist/client/assets/automation-runs-BsFnE3d4.js +1 -0
  79. package/dist/client/assets/automations-Cpff9O08.js +1 -0
  80. package/dist/client/assets/autosend-BaKgBZDQ.js +1 -0
  81. package/dist/client/assets/{avatar-TL9HUab0.js → avatar-BEl6nltF.js} +1 -1
  82. package/dist/client/assets/{badge-CKM84j2S.js → badge-DFdotQFQ.js} +1 -1
  83. package/dist/client/assets/{block-document-w2kAyl6z.js → block-document-BlUE8Eks.js} +3 -3
  84. package/dist/client/assets/{blocks-preview-workspace-context-PwUYRK7b.js → blocks-preview-workspace-context-DSOKao_H.js} +1 -1
  85. package/dist/client/assets/{blog-schema-Cx6xDQRb.js → blog-schema-B_yGbArL.js} +1 -1
  86. package/dist/client/assets/{board-analytics-DT3f2AVB.js → board-analytics-UmA2i-Sq.js} +1 -1
  87. package/dist/client/assets/buckets-CJ11qX_5.js +1 -0
  88. package/dist/client/assets/{build-improve-prompt-doc-R0amEUpn.js → build-improve-prompt-doc-QS7b7hRr.js} +1 -1
  89. package/dist/client/assets/{calendar-DaaBbvOH.js → calendar-CT7cVD7N.js} +1 -1
  90. package/dist/client/assets/capability-load-error-yZzl8b80.js +1 -0
  91. package/dist/client/assets/category-editor-CTdWf8oW.js +1 -0
  92. package/dist/client/assets/{chart-DZbYggl3.js → chart-C-785ZEj.js} +1 -1
  93. package/dist/client/assets/chat-context-DJGYyGlB.js +39 -0
  94. package/dist/client/assets/chat-draft-DbBgaLY_.js +1 -0
  95. package/dist/client/assets/{checkbox-B2kVXKBD.js → checkbox-DmaIcPoL.js} +1 -1
  96. package/dist/client/assets/choose-editor-CirVpDXw.js +1 -0
  97. package/dist/client/assets/claim-phase-copy-BnoHLlrM.js +1 -0
  98. package/dist/client/assets/{cli-auth-success-DtMJnqjK.js → cli-auth-success-XcMuETZQ.js} +1 -1
  99. package/dist/client/assets/{client-icons-D3ZaOjXM.js → client-icons-DLhjrwzL.js} +1 -1
  100. package/dist/client/assets/{collapsible-vN3Y9B-p.js → collapsible-CgZ4-XuF.js} +1 -1
  101. package/dist/client/assets/collection-detail-gYU6aRKx.js +1 -0
  102. package/dist/client/assets/collection-display-button-YyNX5Efp.js +1 -0
  103. package/dist/client/assets/{collection-search-BoB9COGX.js → collection-search-BC0JMMNp.js} +1 -1
  104. package/dist/client/assets/{collection-table-wrapper-CxJ6Bp-f.js → collection-table-wrapper-DFn43mg0.js} +1 -1
  105. package/dist/client/assets/{collection-tabs-Cw7XLgNG.js → collection-tabs-DeQ7zbGh.js} +1 -1
  106. package/dist/client/assets/column-rules-b8eo73o4.js +3 -0
  107. package/dist/client/assets/{combobox-PSOtDaya.js → combobox-DeXU4vSR.js} +1 -1
  108. package/dist/client/assets/command-D2QlwSrW.js +1 -0
  109. package/dist/client/assets/{companion-mcps-section-gXkjR-XD.js → companion-mcps-section-DtzaYg0J.js} +1 -1
  110. package/dist/client/assets/config-DP6xvcYW.js +1 -0
  111. package/dist/client/assets/{connect-Dn2pI97X.js → connect-ClKIaF8K.js} +3 -3
  112. package/dist/client/assets/connect-layout-CyyX0xPx.js +1 -0
  113. package/dist/client/assets/{connection-FKmTBjan.js → connection-BjzBHJVc.js} +1 -1
  114. package/dist/client/assets/connection-card-BVD8Ppl9.js +1 -0
  115. package/dist/client/assets/connection-detail-DfYF7TR9.js +1 -0
  116. package/dist/client/assets/connection-form-helpers-5EXuPZ4G.js +1 -0
  117. package/dist/client/assets/connections-D1tC1_hB.js +1 -0
  118. package/dist/client/assets/context-DzTTGbcd.js +1 -0
  119. package/dist/client/assets/{context-menu-BLhcVqO0.js → context-menu-Can7-rLt.js} +1 -1
  120. package/dist/client/assets/{core.esm-DbclD67Y.js → core.esm-Cvui6jds.js} +1 -1
  121. package/dist/client/assets/create-organization-dialog-CD66iA3E.js +1 -0
  122. package/dist/client/assets/daily-pulse-Bz92WYIP.js +1 -0
  123. package/dist/client/assets/device-hint-DZcinuip.js +1 -0
  124. package/dist/client/assets/discover-BRALl0mU.js +1 -0
  125. package/dist/client/assets/domain-settings-DiitZO4z.js +1 -0
  126. package/dist/client/assets/{drawer-CXs6iEYK.js → drawer-BPz4t5dt.js} +1 -1
  127. package/dist/client/assets/{editor-CPkkN1Zr.js → editor-2jNHgdUN.js} +3 -3
  128. package/dist/client/assets/{empty-state-D45gZaZ-.js → empty-state-D8iC8fkc.js} +1 -1
  129. package/dist/client/assets/{empty-state-DnQ_qEjI.js → empty-state-Zf0MeIMv.js} +1 -1
  130. package/dist/client/assets/{extract-connection-data-Q_j_fmQx.js → extract-connection-data-BTBLhbEe.js} +1 -1
  131. package/dist/client/assets/{feature-gate-CFL9eB8c.js → feature-gate-Dhf-LwS1.js} +1 -1
  132. package/dist/client/assets/feature-paywall-CHcwEHRJ.js +1 -0
  133. package/dist/client/assets/file-explorer-BhYSdjXu.js +2 -0
  134. package/dist/client/assets/{file-preview-DT-0IR-r.js → file-preview-DvxQuX3P.js} +1 -1
  135. package/dist/client/assets/file-share-button-C1EB3dOc.js +3 -0
  136. package/dist/client/assets/{file-type-icon-Du5QihE_.js → file-type-icon-DzYK4NqY.js} +1 -1
  137. package/dist/client/assets/flat-project-D2zrr-4_.js +1 -0
  138. package/dist/client/assets/{folder-icon-DXEgDwxo.js → folder-icon-C_Jv4E7N.js} +2 -2
  139. package/dist/client/assets/{form-BBtB5neb.js → form-BCYpCYIL.js} +1 -1
  140. package/dist/client/assets/general-D8kDc8NB.js +1 -0
  141. package/dist/client/assets/home-CiV29kW5.js +1 -0
  142. package/dist/client/assets/{icon-button-BiR7Hy07.js → icon-button-sHj7Q6Fp.js} +1 -1
  143. package/dist/client/assets/index-6UUldwCZ.js +1 -0
  144. package/dist/client/assets/index-BVmIdqXu.js +1 -0
  145. package/dist/client/assets/{index-C-3lNbMm.js → index-BhyQWjoM.js} +6 -6
  146. package/dist/client/assets/{index-D_7jfHk6.js → index-Bm9FTdjr.js} +43 -43
  147. package/dist/client/assets/{index-DWUcsrDk.js → index-CspW_Aw1.js} +2 -2
  148. package/dist/client/assets/{index-BvwJHqHQ.js → index-CuOTEpMz.js} +2 -2
  149. package/dist/client/assets/{index-D1CuHcEn.js → index-D2iZ6syL.js} +1 -1
  150. package/dist/client/assets/{index-CmC6v99h.js → index-DmfwrRER.js} +5 -5
  151. package/dist/client/assets/{index-CoDuotD7.js → index-GgiP6YIr.js} +1 -1
  152. package/dist/client/assets/{index-KqttCHw1.js → index-KCu_K9eF.js} +1 -1
  153. package/dist/client/assets/{index-CeMEs5dC.js → index-YEKHk89C.js} +2 -2
  154. package/dist/client/assets/{index-redirect-_9q4bmDQ.js → index-redirect-C_FoZNOn.js} +1 -1
  155. package/dist/client/assets/{index-DltLvtZg.js → index-s6P2p4h7.js} +1 -1
  156. package/dist/client/assets/{index-D8mID9PZ.js → index-wABYnbOM.js} +1 -1
  157. package/dist/client/assets/{infiniteQueryObserver-DG8sBe4B.js → infiniteQueryObserver-zxl9Rj5F.js} +1 -1
  158. package/dist/client/assets/infra-billing-heizZxEC.js +1 -0
  159. package/dist/client/assets/{input-DQp1LVsq.js → input-BkQDO0Ef.js} +5 -5
  160. package/dist/client/assets/input-Bvc3OT4I.js +1 -0
  161. package/dist/client/assets/{integration-icon-BM3EOzpn.js → integration-icon-DoYtKqdf.js} +1 -1
  162. package/dist/client/assets/jira-icon-BeORJXLw.js +1 -0
  163. package/dist/client/assets/{label-DxOPcXJe.js → label-BL2W0Pcn.js} +1 -1
  164. package/dist/client/assets/{layout-bHPl4zx9.js → layout-vy24lHLj.js} +1 -1
  165. package/dist/client/assets/legacy-agents-deep-B5L4MOtR.js +1 -0
  166. package/dist/client/assets/{legacy-main-redirect-z5zSFE1g.js → legacy-main-redirect-Pp-THt9D.js} +1 -1
  167. package/dist/client/assets/library-DZte0T9-.js +1 -0
  168. package/dist/client/assets/{library-tab-Z6y7ewdW.js → library-tab-2usQWRYi.js} +3 -3
  169. package/dist/client/assets/login-CwsPhEpC.js +1 -0
  170. package/dist/client/assets/{markdown-6zdu9t3J.js → markdown-B3PJYX-4.js} +3 -3
  171. package/dist/client/assets/{mcp-app-renderer-D5zA7BfR.js → mcp-app-renderer-BLT3VM-G.js} +1 -1
  172. package/dist/client/assets/mcp-oauth-4gmyTyah.js +1 -0
  173. package/dist/client/assets/mcp-oauth-BTa4N28L.js +1 -0
  174. package/dist/client/assets/members-Dba6HROK.js +1 -0
  175. package/dist/client/assets/{memory-C67vpugN.js → memory-DAV2Pmj2.js} +2 -2
  176. package/dist/client/assets/{mini-report-page-jD0aWOQw.js → mini-report-page-B9WE5YW-.js} +1 -1
  177. package/dist/client/assets/{mock-board-DX11vRZx.js → mock-board-D9i0Vi9l.js} +1 -1
  178. package/dist/client/assets/{monaco-editor-BfKI4VlA.js → monaco-editor-DANiMmsL.js} +2 -2
  179. package/dist/client/assets/{monitoring-stats-row-DB55KTTw.js → monitoring-stats-row-B1hQA0Lu.js} +1 -1
  180. package/dist/client/assets/{multi-select-DVylmGoB.js → multi-select-BJgtMlC2.js} +1 -1
  181. package/dist/client/assets/mustache-GMlXm0yl.js +4 -0
  182. package/dist/client/assets/new-project-dialog-C-thpPQ-.js +1 -0
  183. package/dist/client/assets/{oauth-callback-Cqdj0zbM.js → oauth-callback-DZwrYGu7.js} +1 -1
  184. package/dist/client/assets/{oauth-callback-ai-provider-Cwy6YGO7.js → oauth-callback-ai-provider-B7d3QWP4.js} +1 -1
  185. package/dist/client/assets/onboarding-DK0DTXli.js +1 -0
  186. package/dist/client/assets/openai-conversation-BMdPtMrp.js +3 -0
  187. package/dist/client/assets/optimistic-project-sidebar-views-B4v48qUS.js +1 -0
  188. package/dist/client/assets/{organization-choice-CG-C6xsW.js → organization-choice-BIWVNvRP.js} +1 -1
  189. package/dist/client/assets/orgs-D5AZUxP6.js +1 -0
  190. package/dist/client/assets/{page-seo-form-C6V8K2um.js → page-seo-form-gaHyPBMV.js} +1 -1
  191. package/dist/client/assets/pair-DXTFiJNl.js +48 -0
  192. package/dist/client/assets/plan-ladder-BUDRjzbj.js +1 -0
  193. package/dist/client/assets/{popover-C2vJrXky.js → popover-jNB4XciF.js} +1 -1
  194. package/dist/client/assets/post-calendar-D8EAMZvz.js +1 -0
  195. package/dist/client/assets/post-editor-BQa57f7n.js +2 -0
  196. package/dist/client/assets/preview-content-B6K8Jkd_.js +1 -0
  197. package/dist/client/assets/preview-dialog-Dl22mWwN.js +1 -0
  198. package/dist/client/assets/{preview-panel-CaQ4Pbpr.js → preview-panel-LWLVsrdx.js} +1 -1
  199. package/dist/client/assets/product-picker-dialog-RglVwX1Q.js +1 -0
  200. package/dist/client/assets/profile-BWcfZQ7V.js +1 -0
  201. package/dist/client/assets/project-app-view-qeunpPC-.js +1 -0
  202. package/dist/client/assets/project-feed-Dm758F3_.js +1 -0
  203. package/dist/client/assets/{project-icon-DU1uywdD.js → project-icon-D2vCEWQy.js} +1 -1
  204. package/dist/client/assets/project-reports-6TMbK6-4.js +1 -0
  205. package/dist/client/assets/project-tasks-3mU9NrZf.js +1 -0
  206. package/dist/client/assets/projects-DyGysCyv.js +1 -0
  207. package/dist/client/assets/{projects-empty-state-BsW_dfGL.js → projects-empty-state-BuMMPopD.js} +1 -1
  208. package/dist/client/assets/prompts-BrbpQc3X.js +1 -0
  209. package/dist/client/assets/record-editor-hwH5zZn-.js +1 -0
  210. package/dist/client/assets/redirect-editor-Dc4HBQwl.js +1 -0
  211. package/dist/client/assets/{reports-CMClJ0_S.js → reports-D7gOlgZm.js} +2 -2
  212. package/dist/client/assets/reports-DPHZG4Rx.js +1 -0
  213. package/dist/client/assets/reports-onboarding-DGmwN9iV.js +1 -0
  214. package/dist/client/assets/reports-tab-Bb7ApLUW.js +2 -0
  215. package/dist/client/assets/repositories-GlkzQQVy.js +1 -0
  216. package/dist/client/assets/repository-binding-D2wL-4Vr.js +1 -0
  217. package/dist/client/assets/repository-import-picker-DtM7QfYh.js +1 -0
  218. package/dist/client/assets/repository-picker-28zwGBgK.js +1 -0
  219. package/dist/client/assets/require-capability-Dm4XTD9Y.js +1 -0
  220. package/dist/client/assets/{required-auth-layout-CDif9NZC.js → required-auth-layout-CbgA2xIU.js} +1 -1
  221. package/dist/client/assets/reset-password-15IQ61HR.js +1 -0
  222. package/dist/client/assets/{resizable-CIqqPf7O.js → resizable-CGWosOTw.js} +1 -1
  223. package/dist/client/assets/{resolve-tab-icon-S311kwwr.js → resolve-tab-icon-BEIojUgL.js} +1 -1
  224. package/dist/client/assets/review-settings-BAqWAPVV.js +1 -0
  225. package/dist/client/assets/{rich-text-link-control-CMeXviAY.js → rich-text-link-control-CE4nCWAz.js} +1 -1
  226. package/dist/client/assets/roles-etRZjRQM.js +1 -0
  227. package/dist/client/assets/route-BCQ2a7UE.js +1 -0
  228. package/dist/client/assets/route-CdaJ86mX.js +1 -0
  229. package/dist/client/assets/route-DCLsEeq7.js +1 -0
  230. package/dist/client/assets/{runnable-block-editor-BWSWYcJ-.js → runnable-block-editor-xVvcrNA2.js} +4 -4
  231. package/dist/client/assets/sandbox-lifecycle-context-BKjyczlw.js +1 -0
  232. package/dist/client/assets/{schema-D1veJPjJ.js → schema-C_wSANSe.js} +1 -1
  233. package/dist/client/assets/{scroll-area-Ce9NeF1s.js → scroll-area-BT00diUA.js} +1 -1
  234. package/dist/client/assets/{search-input-DpJBHwWo.js → search-input-D-uP0R3f.js} +1 -1
  235. package/dist/client/assets/search-toggle-Hgq_Klme.js +1 -0
  236. package/dist/client/assets/{secret-picker-B_ADx-sY.js → secret-picker-BitsdCaD.js} +1 -1
  237. package/dist/client/assets/secrets-C_yZKBHs.js +1 -0
  238. package/dist/client/assets/sections-editor-DrNkE-5_.js +1 -0
  239. package/dist/client/assets/{select-CZdnCwuC.js → select-BVEgIanS.js} +1 -1
  240. package/dist/client/assets/select-model-CTmCsZzT.js +1 -0
  241. package/dist/client/assets/seo-editor-Cr-VPdNi.js +1 -0
  242. package/dist/client/assets/{separator-BtrJ5AFz.js → separator-CJOPtNz-.js} +1 -1
  243. package/dist/client/assets/settings-tab-zoRR23UC.js +4 -0
  244. package/dist/client/assets/sheet-D-h-caij.js +1 -0
  245. package/dist/client/assets/shell-layout-Ckss0QqA.js +1 -0
  246. package/dist/client/assets/skills-Dx8G-x-T.js +1 -0
  247. package/dist/client/assets/{slider-BpZoep6A.js → slider-DtTzb8JT.js} +1 -1
  248. package/dist/client/assets/{sortable.esm-DyjKGVzh.js → sortable.esm-DCsYtWcb.js} +1 -1
  249. package/dist/client/assets/sso-DDpjWaoO.js +1 -0
  250. package/dist/client/assets/{suggestion-DmBBrXFD.js → suggestion-Bso4uBRF.js} +2 -2
  251. package/dist/client/assets/{switch-hSsSQMgC.js → switch-DZo6rAtc.js} +1 -1
  252. package/dist/client/assets/{symbol-CkeqKRPe.js → symbol-Co3D-iSE.js} +1 -1
  253. package/dist/client/assets/synced-repos-B1f0culo.js +1 -0
  254. package/dist/client/assets/{tab-icon-glyph-BRREqFJ3.js → tab-icon-glyph-ClCao4gx.js} +1 -1
  255. package/dist/client/assets/{table-Dfov51xE.js → table-Gm-jWCpy.js} +1 -1
  256. package/dist/client/assets/{tabs-Df848FrP.js → tabs-CXsAC8nO.js} +1 -1
  257. package/dist/client/assets/{task-board-ChFrokIN.js → task-board-Bgw_xVJW.js} +1 -1
  258. package/dist/client/assets/{task-route-4t67EvVC.js → task-route-BxRkc6kt.js} +1 -1
  259. package/dist/client/assets/{task-status-cI-KMHji.js → task-status-B92ESgef.js} +1 -1
  260. package/dist/client/assets/taskboard-analytics-BEBBYmzN.js +1 -0
  261. package/dist/client/assets/{tasks-Dcje4OJR.js → tasks-BS9sXVdl.js} +3 -3
  262. package/dist/client/assets/tasks-DckB4c8m.js +1 -0
  263. package/dist/client/assets/{textarea-DaHaRA0Z.js → textarea-bcNEcwC6.js} +1 -1
  264. package/dist/client/assets/thread-analytics-BE8EaB4a.js +1 -0
  265. package/dist/client/assets/thread-button-BdyWFdme.js +1 -0
  266. package/dist/client/assets/{thread-intent-Cxso0qKW.js → thread-intent-DzHkd78g.js} +4 -4
  267. package/dist/client/assets/thread-route-CIiqv6HG.js +1 -0
  268. package/dist/client/assets/thread-route-mhniW_q8.js +1 -0
  269. package/dist/client/assets/thread-sheet-body-C1CJm0mZ.js +1 -0
  270. package/dist/client/assets/time-range-picker-BUGifbSV.js +1 -0
  271. package/dist/client/assets/{toggle-group-BFX-9eHs.js → toggle-group-5iPAspL-.js} +1 -1
  272. package/dist/client/assets/{tool-namespace-BHB8Go32.js → tool-namespace-CYa7zzrf.js} +1 -1
  273. package/dist/client/assets/{toolbar-icon-button-D9aCXzS4.js → toolbar-icon-button-CZBCq2Ko.js} +1 -1
  274. package/dist/client/assets/{tooltip-BULKkf4A.js → tooltip-XZmQWwgB.js} +1 -1
  275. package/dist/client/assets/{tooltipContext-1NNpJuJd.js → tooltipContext-BpyR0oly.js} +1 -1
  276. package/dist/client/assets/{track-CpjpKs1v.js → track-Ba2I9E5t.js} +1 -1
  277. package/dist/client/assets/{types-Blm6OQRg.js → types-2TlDAuAc.js} +3 -3
  278. package/dist/client/assets/{url-slug-d-Er1jOR.js → url-slug-B-L2Z8me.js} +1 -1
  279. package/dist/client/assets/{usage-stats-Dqycj-p-.js → usage-stats-BihPbkIg.js} +8 -8
  280. package/dist/client/assets/use-ai-providers-BP69qr77.js +1 -0
  281. package/dist/client/assets/use-automations-Biu6cV7d.js +1 -0
  282. package/dist/client/assets/{use-autosave-DBCPQM6l.js → use-autosave-9jHQ-y1f.js} +1 -1
  283. package/dist/client/assets/use-chat-layout-state-J-94EUwt.js +1 -0
  284. package/dist/client/assets/use-chat-navigation-BXZpM5MQ.js +1 -0
  285. package/dist/client/assets/{use-clock-tick-DGTQe72H.js → use-clock-tick-rPXqIJP8.js} +1 -1
  286. package/dist/client/assets/use-connect-companion-BupOmQ7x.js +1 -0
  287. package/dist/client/assets/use-connection-DUF3XC9E.js +1 -0
  288. package/dist/client/assets/{use-copy-CRIUfo35.js → use-copy-B01v9eRq.js} +1 -1
  289. package/dist/client/assets/{use-create-virtual-mcp-DzmQH3J8.js → use-create-virtual-mcp-BxoXyDoq.js} +1 -1
  290. package/dist/client/assets/{use-date-fns-locale-DIokBBqe.js → use-date-fns-locale-CPtrEugx.js} +1 -1
  291. package/dist/client/assets/{use-debounced-autosave-BRSYFOGW.js → use-debounced-autosave-C__Xzre-.js} +1 -1
  292. package/dist/client/assets/{use-debounced-value-DCB8Le0h.js → use-debounced-value-D5_QO1dT.js} +1 -1
  293. package/dist/client/assets/use-deco-credits-DkZSWK0d.js +1 -0
  294. package/dist/client/assets/{use-decopilot-events-uItZ_pJe.js → use-decopilot-events-1iPDcTcf.js} +1 -1
  295. package/dist/client/assets/use-delete-connection-DUG0172F.js +1 -0
  296. package/dist/client/assets/{use-deployment-admin-BSf-NdBG.js → use-deployment-admin-COeWRtXj.js} +1 -1
  297. package/dist/client/assets/use-ensure-project-folder-A0But3O1.js +1 -0
  298. package/dist/client/assets/{use-fast-preview-draft-url-8LcTSnsj.js → use-fast-preview-draft-url-BRdebqFC.js} +1 -1
  299. package/dist/client/assets/use-file-configs-B8mqylSR.js +1 -0
  300. package/dist/client/assets/{use-infinite-scroll-B02yfFGd.js → use-infinite-scroll-DewChEmc.js} +1 -1
  301. package/dist/client/assets/use-join-requests-CDGwHERc.js +1 -0
  302. package/dist/client/assets/use-main-panel-tabs-D7q-AygO.js +1 -0
  303. package/dist/client/assets/use-mcp-auth-status-CUurQWMq.js +1 -0
  304. package/dist/client/assets/{use-mcp-client-MUIIizLf.js → use-mcp-client-Dh_4AZgb.js} +4 -4
  305. package/dist/client/assets/{use-mcp-prompts-C3siW74f.js → use-mcp-prompts-LJf01t7x.js} +1 -1
  306. package/dist/client/assets/{use-mcp-tools-CPLGkZB5.js → use-mcp-tools-p8MJKmfB.js} +1 -1
  307. package/dist/client/assets/use-members-DQe3FYGy.js +1 -0
  308. package/dist/client/assets/{use-mobile-DF1FX6Xv.js → use-mobile-UYmsi-dp.js} +1 -1
  309. package/dist/client/assets/use-navigate-to-agent-DDZo26Jw.js +1 -0
  310. package/dist/client/assets/use-new-blocks-editor-nCMzaJ9Q.js +1 -0
  311. package/dist/client/assets/{use-open-billing-url-CqJ0vDkP.js → use-open-billing-url-C0JU6CzN.js} +1 -1
  312. package/dist/client/assets/use-org-auth-client-CPbs0OVW.js +1 -0
  313. package/dist/client/assets/use-org-fs-gQ0RuIPK.js +1 -0
  314. package/dist/client/assets/use-org-repo-syncs-KkmagwRy.js +1 -0
  315. package/dist/client/assets/{use-org-sso-BEGhJLya.js → use-org-sso-DWtbATGD.js} +1 -1
  316. package/dist/client/assets/use-organization-roles-BKQWBZmO.js +1 -0
  317. package/dist/client/assets/use-organization-settings-xcc5-6DS.js +1 -0
  318. package/dist/client/assets/{use-panel-navigate-C4UE8Qkr.js → use-panel-navigate-A1obvdVI.js} +1 -1
  319. package/dist/client/assets/{use-project-scope-BMVXwaQ4.js → use-project-scope-BxCbtcTE.js} +1 -1
  320. package/dist/client/assets/use-releases-G79MSxhR.js +1 -0
  321. package/dist/client/assets/use-reports-diagnostic-a7ERyr_7.js +1 -0
  322. package/dist/client/assets/use-sandbox-events-CSN74_aC.js +2 -0
  323. package/dist/client/assets/use-secrets-CmTpPaF9.js +1 -0
  324. package/dist/client/assets/use-section-preview-base-DbQlCGNR.js +1 -0
  325. package/dist/client/assets/use-tags-Ch6_1it4.js +1 -0
  326. package/dist/client/assets/use-task-board-analytics-v7nFgyEB.js +1 -0
  327. package/dist/client/assets/{use-task-board-events-BDjHMnwS.js → use-task-board-events-DHjlo-9e.js} +1 -1
  328. package/dist/client/assets/use-task-board-item-prs-CoXnP9ys.js +1 -0
  329. package/dist/client/assets/use-task-board-items-erbHwxMh.js +1 -0
  330. package/dist/client/assets/use-task-metadata-DmWCG43J.js +1 -0
  331. package/dist/client/assets/{use-thread-analytics-DJQ2zz_B.js → use-thread-analytics-DJfFmK1j.js} +1 -1
  332. package/dist/client/assets/use-thread-outputs-7J4Ek_Zs.js +1 -0
  333. package/dist/client/assets/useInfiniteQuery-vZqvTY4f.js +1 -0
  334. package/dist/client/assets/{useQueries-DKVO6hGe.js → useQueries-DoURbZYb.js} +1 -1
  335. package/dist/client/assets/useSuspenseInfiniteQuery-DdGuWYX3.js +1 -0
  336. package/dist/client/assets/{users-DbpeSClG.js → users-BfQBxfCk.js} +1 -1
  337. package/dist/client/assets/{utils-Cxy1EsFU.js → utils-DAEMarMy.js} +1 -1
  338. package/dist/client/assets/variant-calendar-DNADqO99.js +1 -0
  339. package/dist/client/assets/{variant-matcher-override-BD9nzwGm.js → variant-matcher-override-BDRgB-Pq.js} +1 -1
  340. package/dist/client/assets/{view-mode-toggle-CVVPadaN.js → view-mode-toggle-DPJfZa3C.js} +1 -1
  341. package/dist/client/assets/{virtual-mcp-CYDFCAA6.js → virtual-mcp-C54PVPPw.js} +1 -1
  342. package/dist/client/assets/{watch-sse-pool-BXtoXPGx.js → watch-sse-pool-DmOqvBBq.js} +1 -1
  343. package/dist/client/index.html +1 -1
  344. package/dist/server/server.js +633 -633
  345. package/package.json +1 -1
  346. package/dist/client/assets/LinkExternal01-CILXo-bC.js +0 -1
  347. package/dist/client/assets/X-DzPShgV5.js +0 -1
  348. package/dist/client/assets/add-connection-dialog-Eph5CbUo.js +0 -1
  349. package/dist/client/assets/agent-analytics-DSdixv-f.js +0 -2
  350. package/dist/client/assets/agent-app-CT6U3s2r.js +0 -1
  351. package/dist/client/assets/agent-assets-G93-pOM9.js +0 -1
  352. package/dist/client/assets/agent-automation-DP6Bv0AB.js +0 -20
  353. package/dist/client/assets/agent-automations-YDqRnDcc.js +0 -1
  354. package/dist/client/assets/agent-connect-sources-CSrFX52j.js +0 -1
  355. package/dist/client/assets/agent-deck-D9Bphszm.js +0 -1
  356. package/dist/client/assets/agent-e2e-k9wCqssu.js +0 -1
  357. package/dist/client/assets/agent-experiments-CPSBbmYr.js +0 -1
  358. package/dist/client/assets/agent-file-BAkSJWMw.js +0 -1
  359. package/dist/client/assets/agent-hosting-B1Ag0zD8.js +0 -1
  360. package/dist/client/assets/agent-icon-CnnNyirr.js +0 -1
  361. package/dist/client/assets/agent-library-Ch3sHhuh.js +0 -1
  362. package/dist/client/assets/agent-library-file-Bq6m6SHP.js +0 -1
  363. package/dist/client/assets/agent-monitor-DyddEd79.js +0 -1
  364. package/dist/client/assets/agent-overview-BlP2a40h.js +0 -1
  365. package/dist/client/assets/agent-settings-CaxlA04S.js +0 -1
  366. package/dist/client/assets/agent-site-editor-code-D0j_GVVh.js +0 -2
  367. package/dist/client/assets/agent-site-editor-preview-DaqE_qX4.js +0 -518
  368. package/dist/client/assets/agent-view-UQmbv7nk.js +0 -1
  369. package/dist/client/assets/agents-list-CJcm3Kq8.js +0 -1
  370. package/dist/client/assets/api-keys-BjTJSB_i.js +0 -1
  371. package/dist/client/assets/api-keys-BrfzhtIS.js +0 -1
  372. package/dist/client/assets/app-editor-CJudcxBz.js +0 -1
  373. package/dist/client/assets/asset-utils-Cdgz7yau.js +0 -1
  374. package/dist/client/assets/auth-entry-BUqhj_6T.js +0 -1
  375. package/dist/client/assets/authenticate-and-persist-oauth-eDHShxj5.js +0 -1
  376. package/dist/client/assets/automation-runs-BZA4OsIt.js +0 -1
  377. package/dist/client/assets/automations-DpWIQ3oV.js +0 -1
  378. package/dist/client/assets/autosend-BQ3F90GX.js +0 -1
  379. package/dist/client/assets/buckets-AVx7AXso.js +0 -1
  380. package/dist/client/assets/capability-load-error-BVlvKXjS.js +0 -1
  381. package/dist/client/assets/category-editor-B-jccGXu.js +0 -1
  382. package/dist/client/assets/chat-context-UMp8QwjT.js +0 -39
  383. package/dist/client/assets/chat-draft-CYy-Qv-a.js +0 -1
  384. package/dist/client/assets/choose-editor-BDo9cuNm.js +0 -1
  385. package/dist/client/assets/claim-phase-copy-DG8E1-gc.js +0 -1
  386. package/dist/client/assets/collection-detail-CBqQPzi0.js +0 -1
  387. package/dist/client/assets/collection-display-button-XaptFv9u.js +0 -1
  388. package/dist/client/assets/column-rules-Bq3eiowV.js +0 -3
  389. package/dist/client/assets/command-Doiz3O29.js +0 -1
  390. package/dist/client/assets/config-B01oZvpJ.js +0 -1
  391. package/dist/client/assets/connect-layout-CoxrwG6t.js +0 -1
  392. package/dist/client/assets/connection-card-Cvk5T5vt.js +0 -1
  393. package/dist/client/assets/connection-detail-BRdQkO7d.js +0 -1
  394. package/dist/client/assets/connection-form-helpers-D4Q7rLyt.js +0 -1
  395. package/dist/client/assets/connections-C8qSBDCe.js +0 -1
  396. package/dist/client/assets/context-Bt7kDQzj.js +0 -1
  397. package/dist/client/assets/create-organization-dialog-D-t_ZE2o.js +0 -1
  398. package/dist/client/assets/daily-pulse-DYPs4tl1.js +0 -1
  399. package/dist/client/assets/device-hint-CbxzMdRC.js +0 -1
  400. package/dist/client/assets/dialog-DRpbbWU1.js +0 -1
  401. package/dist/client/assets/discover-3ATGdKP8.js +0 -1
  402. package/dist/client/assets/domain-settings-C4-yAgIW.js +0 -1
  403. package/dist/client/assets/feature-paywall-0RYA-1Op.js +0 -1
  404. package/dist/client/assets/file-explorer-Cyg7RguR.js +0 -2
  405. package/dist/client/assets/file-share-button-C8ZBUx_e.js +0 -3
  406. package/dist/client/assets/flat-project-BpQGs-gN.js +0 -1
  407. package/dist/client/assets/general-B3jgLFML.js +0 -1
  408. package/dist/client/assets/home-DYCk_i5V.js +0 -1
  409. package/dist/client/assets/index-Cx0uPPmh.js +0 -1
  410. package/dist/client/assets/index-qeM6EfxB.js +0 -1
  411. package/dist/client/assets/infra-billing-BFh6IlFL.js +0 -1
  412. package/dist/client/assets/input-B0doV0os.js +0 -1
  413. package/dist/client/assets/input-BQ74PHN6.js +0 -1
  414. package/dist/client/assets/jira-icon-C1bLqdEg.js +0 -1
  415. package/dist/client/assets/legacy-agents-deep-BBjNU_wv.js +0 -1
  416. package/dist/client/assets/library-CVuXHyjV.js +0 -1
  417. package/dist/client/assets/login-DNhk4MX6.js +0 -1
  418. package/dist/client/assets/mcp-oauth-C5T-IVs8.js +0 -1
  419. package/dist/client/assets/members-BftWOm2t.js +0 -1
  420. package/dist/client/assets/mustache-D-VzFUJG.js +0 -4
  421. package/dist/client/assets/new-project-dialog-CXEwhrv6.js +0 -1
  422. package/dist/client/assets/onboarding-BisuojYF.js +0 -1
  423. package/dist/client/assets/openai-conversation-BICNFmxp.js +0 -3
  424. package/dist/client/assets/optimistic-project-sidebar-views-BINKTU3_.js +0 -1
  425. package/dist/client/assets/orgs-DCjydoUZ.js +0 -1
  426. package/dist/client/assets/pair-knnOGTuF.js +0 -47
  427. package/dist/client/assets/plan-ladder-DlpzxobM.js +0 -1
  428. package/dist/client/assets/post-calendar-3X9xGSKe.js +0 -1
  429. package/dist/client/assets/post-editor-BS-N2LHp.js +0 -2
  430. package/dist/client/assets/preview-content-CWMTMNmp.js +0 -1
  431. package/dist/client/assets/preview-dialog-CmtjgV1o.js +0 -1
  432. package/dist/client/assets/product-picker-dialog-904WCGJu.js +0 -1
  433. package/dist/client/assets/profile-aIUaVWtC.js +0 -1
  434. package/dist/client/assets/project-app-view-ChZmhZ13.js +0 -1
  435. package/dist/client/assets/project-feed-t8IHFF-d.js +0 -1
  436. package/dist/client/assets/project-reports-BF24m5b-.js +0 -1
  437. package/dist/client/assets/project-tasks-Wmmy6hRq.js +0 -1
  438. package/dist/client/assets/projects-CxEhyr52.js +0 -1
  439. package/dist/client/assets/prompts-Cad3gM_K.js +0 -1
  440. package/dist/client/assets/record-editor-Cu0LbDVm.js +0 -1
  441. package/dist/client/assets/redirect-editor-B65ggNrM.js +0 -1
  442. package/dist/client/assets/reports-B3_ASbsZ.js +0 -1
  443. package/dist/client/assets/reports-onboarding-DzC8BMPj.js +0 -1
  444. package/dist/client/assets/reports-tab-flC8aPMq.js +0 -2
  445. package/dist/client/assets/repositories-BRVHvY5X.js +0 -1
  446. package/dist/client/assets/repository-binding-DpX8yLri.js +0 -1
  447. package/dist/client/assets/repository-import-picker-CO5nKRxA.js +0 -1
  448. package/dist/client/assets/repository-picker-C2HnHK1A.js +0 -1
  449. package/dist/client/assets/require-capability-Do1773Hs.js +0 -1
  450. package/dist/client/assets/reset-password-Dh0gWEkU.js +0 -1
  451. package/dist/client/assets/review-settings-C9jJxNAv.js +0 -1
  452. package/dist/client/assets/roles-BOnFVbcr.js +0 -1
  453. package/dist/client/assets/route-Bvv7axF1.js +0 -1
  454. package/dist/client/assets/route-DNZvy3kt.js +0 -1
  455. package/dist/client/assets/route-DdkXah7z.js +0 -1
  456. package/dist/client/assets/sandbox-lifecycle-context-BJE24h7z.js +0 -1
  457. package/dist/client/assets/search-toggle-Br3rmrbk.js +0 -1
  458. package/dist/client/assets/secrets-t0Aczfol.js +0 -1
  459. package/dist/client/assets/sections-editor-CEBB7XW8.js +0 -1
  460. package/dist/client/assets/select-model-ER05JMp8.js +0 -1
  461. package/dist/client/assets/seo-editor-DHXJaGsL.js +0 -1
  462. package/dist/client/assets/settings-tab-CTiWw7bm.js +0 -4
  463. package/dist/client/assets/sheet-Gpaizien.js +0 -1
  464. package/dist/client/assets/shell-layout-B0-NcUCt.js +0 -1
  465. package/dist/client/assets/skills-BHEjjAUu.js +0 -1
  466. package/dist/client/assets/sso-Dgg4nP6H.js +0 -1
  467. package/dist/client/assets/synced-repos-B1QJsQos.js +0 -1
  468. package/dist/client/assets/taskboard-analytics-C5y5DQZh.js +0 -1
  469. package/dist/client/assets/tasks-B6PT7ia3.js +0 -1
  470. package/dist/client/assets/thread-analytics-5o8rlytc.js +0 -1
  471. package/dist/client/assets/thread-button-DwjwmudD.js +0 -1
  472. package/dist/client/assets/thread-route-BcAw7-v0.js +0 -1
  473. package/dist/client/assets/thread-route-CW2be8Kx.js +0 -1
  474. package/dist/client/assets/thread-sheet-body-B6geJ00B.js +0 -1
  475. package/dist/client/assets/time-range-picker-Bu58tMJr.js +0 -1
  476. package/dist/client/assets/use-ai-providers-C1bb7SnA.js +0 -1
  477. package/dist/client/assets/use-automations-zlAoF9SL.js +0 -1
  478. package/dist/client/assets/use-chat-layout-state-DDDFQN6Y.js +0 -1
  479. package/dist/client/assets/use-chat-navigation-BF9opsK8.js +0 -1
  480. package/dist/client/assets/use-connect-companion-DcLSyBxl.js +0 -1
  481. package/dist/client/assets/use-connection-5LUEsGlJ.js +0 -1
  482. package/dist/client/assets/use-deco-credits-BgPf-IIH.js +0 -1
  483. package/dist/client/assets/use-delete-connection-BLZ4VLoa.js +0 -1
  484. package/dist/client/assets/use-ensure-project-folder-BUpbRP81.js +0 -1
  485. package/dist/client/assets/use-file-configs-By7UB_YZ.js +0 -1
  486. package/dist/client/assets/use-join-requests-Cb1ihQM1.js +0 -1
  487. package/dist/client/assets/use-main-panel-tabs-xXeWrfnF.js +0 -1
  488. package/dist/client/assets/use-mcp-auth-status-B-gyzfqG.js +0 -1
  489. package/dist/client/assets/use-members-vjX9lJhj.js +0 -1
  490. package/dist/client/assets/use-navigate-to-agent-p65xWFDF.js +0 -1
  491. package/dist/client/assets/use-new-blocks-editor-DZnaAqkX.js +0 -1
  492. package/dist/client/assets/use-org-auth-client-CuZ7oLTb.js +0 -1
  493. package/dist/client/assets/use-org-fs-DPxqVRhB.js +0 -1
  494. package/dist/client/assets/use-org-repo-syncs-BG16MD5Q.js +0 -1
  495. package/dist/client/assets/use-organization-roles-DOROP0yS.js +0 -1
  496. package/dist/client/assets/use-organization-settings-CB0-LYjl.js +0 -1
  497. package/dist/client/assets/use-releases-DO5M1M4y.js +0 -1
  498. package/dist/client/assets/use-reports-diagnostic-C3LmmHKo.js +0 -1
  499. package/dist/client/assets/use-sandbox-events-E2bKOQlM.js +0 -2
  500. package/dist/client/assets/use-secrets-C2sdbGJM.js +0 -1
  501. package/dist/client/assets/use-section-preview-base-26sYGS0B.js +0 -1
  502. package/dist/client/assets/use-tags-CFN9IU6i.js +0 -1
  503. package/dist/client/assets/use-task-board-analytics-BmwRnCgb.js +0 -1
  504. package/dist/client/assets/use-task-board-item-prs-DY1JtBFR.js +0 -1
  505. package/dist/client/assets/use-task-board-items-DUgOnZAe.js +0 -1
  506. package/dist/client/assets/use-task-metadata-BCqsxDXx.js +0 -1
  507. package/dist/client/assets/use-thread-outputs-DfIiLAuO.js +0 -1
  508. package/dist/client/assets/useInfiniteQuery-eYXaZ_bo.js +0 -1
  509. package/dist/client/assets/useSuspenseInfiniteQuery-i_drPWHc.js +0 -1
  510. package/dist/client/assets/variant-calendar-BR3Tvz7m.js +0 -1
@@ -1,5 +1,5 @@
1
- import{r as a,dF as R}from"./index-D_7jfHk6.js";function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function be(e){if(Array.isArray(e))return e}function we(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function Oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){we(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function je(e,t){if(e==null)return{};var r,n,o=Me(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pe(e,t){return be(e)||ye(e,t)||Re(e,t)||Oe()}function Ee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Ee(e,"string");return typeof t=="symbol"?t:t+""}function Re(e,t){if(e){if(typeof e=="string")return ne(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function L(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function q(e){return{}.toString.call(e).includes("Object")}function Ce(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return q(t)||P("changeType"),Object.keys(t).some(function(r){return!Ae(e,r)})&&P("changeField"),t}function $e(e){D(e)||P("selectorType")}function De(e){D(e)||q(e)||P("handlerType"),q(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function Ve(e){e||P("initialIsRequired"),q(e)||P("initialType"),Ce(e)&&P("initialContent")}function xe(e,t){throw new Error(e[t]||e.default)}var Ne={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=L(xe)(Ne),F={changes:Le,selector:$e,handler:De,initial:Ve};function Fe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.initial(e),F.handler(t);var r={current:e},n=L(ze)(r,t),o=L(qe)(r),i=L(F.changes)(e),c=L(Ue)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return F.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function Ue(e,t){return D(t)?t(e.current):t}function qe(e,t){return e.current=ue(ue({},e.current),t),t}function ze(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var He={create:Fe},We={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function _e(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function ke(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ce("configIsRequired"),ke(e)||ce("configType"),e.urls?(Be(),{paths:{vs:e.urls.monacoBase}}):e}function Be(){console.warn(le.deprecation)}function Ge(e,t){throw new Error(e[t]||e.default)}var le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
1
+ import{r as a,dS as R}from"./index-Bm9FTdjr.js";function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function be(e){if(Array.isArray(e))return e}function we(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function Oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){we(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function je(e,t){if(e==null)return{};var r,n,o=Me(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pe(e,t){return be(e)||ye(e,t)||Re(e,t)||Oe()}function Ee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Ee(e,"string");return typeof t=="symbol"?t:t+""}function Re(e,t){if(e){if(typeof e=="string")return ne(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function L(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function z(e){return{}.toString.call(e).includes("Object")}function Ce(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return z(t)||P("changeType"),Object.keys(t).some(function(r){return!Ae(e,r)})&&P("changeField"),t}function $e(e){D(e)||P("selectorType")}function De(e){D(e)||z(e)||P("handlerType"),z(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function Ve(e){e||P("initialIsRequired"),z(e)||P("initialType"),Ce(e)&&P("initialContent")}function xe(e,t){throw new Error(e[t]||e.default)}var Ne={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=L(xe)(Ne),U={changes:Le,selector:$e,handler:De,initial:Ve};function Ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U.initial(e),U.handler(t);var r={current:e},n=L(Fe)(r,t),o=L(ze)(r),i=L(U.changes)(e),c=L(qe)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return U.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function qe(e,t){return D(t)?t(e.current):t}function ze(e,t){return e.current=ue(ue({},e.current),t),t}function Fe(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var He={create:Ue},We={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function _e(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function ke(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ce("configIsRequired"),ke(e)||ce("configType"),e.urls?(Be(),{paths:{vs:e.urls.monacoBase}}):e}function Be(){console.warn(le.deprecation)}function Ge(e,t){throw new Error(e[t]||e.default)}var le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
5
5
  Instead of using
@@ -8,4 +8,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8
8
  monaco.config({ paths: { vs: '...' } })
9
9
 
10
10
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
11
- `},ce=_e(Ge)(le),Ye={config:Ke},Je=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,c){return c(i)},o)}};function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ie(ie({},e),t)}var Qe={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(Qe):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Xe=["monaco"],Ze=He.create({config:We,isInitialized:!1,resolve:null,reject:null,monaco:null}),fe=Pe(Ze,2),V=fe[0],z=fe[1];function et(e){var t=Ye.config(e),r=t.monaco,n=je(t,Xe);z(function(o){return{config:se(o.config,n),monaco:r}})}function tt(){var e=V(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(z({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),Q(X);Je(rt,ot)(it)}return Q(X)}function rt(e){return document.body.appendChild(e)}function nt(e){var t=document.createElement("script");return e&&(t.src=e),t}function ot(e){var t=V(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=nt("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function it(){var e=V(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;de(n),e.resolve(n)},function(r){e.reject(r)})}function de(e){V().monaco||z({monaco:e})}function at(){return V(function(e){var t=e.monaco;return t})}var X=new Promise(function(e,t){return z({resolve:e,reject:t})}),ee={config:et,init:tt,__getMonacoInstance:at},ut={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Z=ut,ct={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},lt=ct;function st({children:e}){return R.createElement("div",{style:lt.container},e)}var ft=st,dt=ft;function pt({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:c}){return R.createElement("section",{style:{...Z.wrapper,width:e,height:t},...c},!r&&R.createElement(dt,null,n),R.createElement("div",{ref:o,style:{...Z.fullWidth,...!r&&Z.hide},className:i}))}var gt=pt,pe=a.memo(gt);function vt(e){a.useEffect(e,[])}var ge=vt;function ht(e,t,r=!0){let n=a.useRef(!0);a.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var y=ht;function $(){}function S(e,t,r,n){return mt(e,n)||bt(e,t,r,n)}function mt(e,t){return e.editor.getModel(ve(e,t))}function bt(e,t,r,n){return e.editor.createModel(t,r,n?ve(e,n):void 0)}function ve(e,t){return e.Uri.parse(t)}function wt({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:c,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:f=!1,theme:p="light",loading:j="Loading...",options:O={},height:H="100%",width:W="100%",className:_,wrapperProps:k={},beforeMount:K=$,onMount:B=$}){let[w,T]=a.useState(!1),[I,g]=a.useState(!0),v=a.useRef(null),d=a.useRef(null),C=a.useRef(null),m=a.useRef(B),u=a.useRef(K),E=a.useRef(!1);ge(()=>{let l=ee.init();return l.then(h=>(d.current=h)&&g(!1)).catch(h=>h?.type!=="cancelation"&&console.error("Monaco initialization: error:",h)),()=>v.current?A():l.cancel()}),y(()=>{if(v.current&&d.current){let l=v.current.getOriginalEditor(),h=S(d.current,e||"",n||r||"text",i||"");h!==l.getModel()&&l.setModel(h)}},[i],w),y(()=>{if(v.current&&d.current){let l=v.current.getModifiedEditor(),h=S(d.current,t||"",o||r||"text",c||"");h!==l.getModel()&&l.setModel(h)}},[c],w),y(()=>{let l=v.current.getModifiedEditor();l.getOption(d.current.editor.EditorOption.readOnly)?l.setValue(t||""):t!==l.getValue()&&(l.executeEdits("",[{range:l.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),l.pushUndoStop())},[t],w),y(()=>{v.current?.getModel()?.original.setValue(e||"")},[e],w),y(()=>{let{original:l,modified:h}=v.current.getModel();d.current.editor.setModelLanguage(l,n||r||"text"),d.current.editor.setModelLanguage(h,o||r||"text")},[r,n,o],w),y(()=>{d.current?.editor.setTheme(p)},[p],w),y(()=>{v.current?.updateOptions(O)},[O],w);let x=a.useCallback(()=>{if(!d.current)return;u.current(d.current);let l=S(d.current,e||"",n||r||"text",i||""),h=S(d.current,t||"",o||r||"text",c||"");v.current?.setModel({original:l,modified:h})},[r,t,o,e,n,i,c]),N=a.useCallback(()=>{!E.current&&C.current&&(v.current=d.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...O}),x(),d.current?.editor.setTheme(p),T(!0),E.current=!0)},[O,p,x]);a.useEffect(()=>{w&&m.current(v.current,d.current)},[w]),a.useEffect(()=>{!I&&!w&&N()},[I,w,N]);function A(){let l=v.current?.getModel();s||l?.original?.dispose(),f||l?.modified?.dispose(),v.current?.dispose()}return R.createElement(pe,{width:W,height:H,isEditorReady:w,loading:j,_ref:C,className:_,wrapperProps:k})}var yt=wt,At=a.memo(yt);function Ot(e){let t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current}var jt=Ot,U=new Map;function Mt({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:c="light",line:s,loading:f="Loading...",options:p={},overrideServices:j={},saveViewState:O=!0,keepCurrentModel:H=!1,width:W="100%",height:_="100%",className:k,wrapperProps:K={},beforeMount:B=$,onMount:w=$,onChange:T,onValidate:I=$}){let[g,v]=a.useState(!1),[d,C]=a.useState(!0),m=a.useRef(null),u=a.useRef(null),E=a.useRef(null),x=a.useRef(w),N=a.useRef(B),A=a.useRef(),l=a.useRef(n),h=jt(i),te=a.useRef(!1),G=a.useRef(!1);ge(()=>{let b=ee.init();return b.then(M=>(m.current=M)&&C(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>u.current?me():b.cancel()}),y(()=>{let b=S(m.current,e||n||"",t||o||"",i||r||"");b!==u.current?.getModel()&&(O&&U.set(h,u.current?.saveViewState()),u.current?.setModel(b),O&&u.current?.restoreViewState(U.get(i)))},[i],g),y(()=>{u.current?.updateOptions(p)},[p],g),y(()=>{!u.current||n===void 0||(u.current.getOption(m.current.editor.EditorOption.readOnly)?u.current.setValue(n):n!==u.current.getValue()&&(G.current=!0,u.current.executeEdits("",[{range:u.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),u.current.pushUndoStop(),G.current=!1))},[n],g),y(()=>{let b=u.current?.getModel();b&&o&&m.current?.editor.setModelLanguage(b,o)},[o],g),y(()=>{s!==void 0&&u.current?.revealLine(s)},[s],g),y(()=>{m.current?.editor.setTheme(c)},[c],g);let re=a.useCallback(()=>{if(!(!E.current||!m.current)&&!te.current){N.current(m.current);let b=i||r,M=S(m.current,n||e||"",t||o||"",b||"");u.current=m.current?.editor.create(E.current,{model:M,automaticLayout:!0,...p},j),O&&u.current.restoreViewState(U.get(b)),m.current.editor.setTheme(c),s!==void 0&&u.current.revealLine(s),v(!0),te.current=!0}},[e,t,r,n,o,i,p,j,O,c,s]);a.useEffect(()=>{g&&x.current(u.current,m.current)},[g]),a.useEffect(()=>{!d&&!g&&re()},[d,g,re]),l.current=n,a.useEffect(()=>{g&&T&&(A.current?.dispose(),A.current=u.current?.onDidChangeModelContent(b=>{G.current||T(u.current.getValue(),b)}))},[g,T]),a.useEffect(()=>{if(g){let b=m.current.editor.onDidChangeMarkers(M=>{let Y=u.current.getModel()?.uri;if(Y&&M.find(J=>J.path===Y.path)){let J=m.current.editor.getModelMarkers({resource:Y});I?.(J)}});return()=>{b?.dispose()}}return()=>{}},[g,I]);function me(){A.current?.dispose(),H?O&&U.set(i,u.current.saveViewState()):u.current.getModel()?.dispose(),u.current.dispose()}return R.createElement(pe,{width:W,height:_,isEditorReady:g,loading:f,_ref:E,className:k,wrapperProps:K})}var Pt=Mt,Et=a.memo(Pt),Lt=Et;const St="0.52.0",Rt={version:St},he=`/monaco/${Rt.version}/vs`,Tt=`${he}/base/worker/workerMain.js`;function It(){ee.config({paths:{vs:he}});const e={...globalThis.MonacoEnvironment,getWorkerUrl:()=>Tt};globalThis.MonacoEnvironment=e}It();export{Lt as F,It as c,ee as l,At as w};
11
+ `},ce=_e(Ge)(le),Ye={config:Ke},Je=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,c){return c(i)},o)}};function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ie(ie({},e),t)}var Qe={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(Qe):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Xe=["monaco"],Ze=He.create({config:We,isInitialized:!1,resolve:null,reject:null,monaco:null}),fe=Pe(Ze,2),V=fe[0],F=fe[1];function et(e){var t=Ye.config(e),r=t.monaco,n=je(t,Xe);F(function(o){return{config:se(o.config,n),monaco:r}})}function tt(){var e=V(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(F({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),Q(X);Je(rt,ot)(it)}return Q(X)}function rt(e){return document.body.appendChild(e)}function nt(e){var t=document.createElement("script");return e&&(t.src=e),t}function ot(e){var t=V(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=nt("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function it(){var e=V(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;de(n),e.resolve(n)},function(r){e.reject(r)})}function de(e){V().monaco||F({monaco:e})}function at(){return V(function(e){var t=e.monaco;return t})}var X=new Promise(function(e,t){return F({resolve:e,reject:t})}),ee={config:et,init:tt,__getMonacoInstance:at},ut={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Z=ut,ct={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},lt=ct;function st({children:e}){return R.createElement("div",{style:lt.container},e)}var ft=st,dt=ft;function pt({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:c}){return R.createElement("section",{style:{...Z.wrapper,width:e,height:t},...c},!r&&R.createElement(dt,null,n),R.createElement("div",{ref:o,style:{...Z.fullWidth,...!r&&Z.hide},className:i}))}var gt=pt,pe=a.memo(gt);function vt(e){a.useEffect(e,[])}var ge=vt;function ht(e,t,r=!0){let n=a.useRef(!0);a.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var y=ht;function $(){}function S(e,t,r,n){return mt(e,n)||bt(e,t,r,n)}function mt(e,t){return e.editor.getModel(ve(e,t))}function bt(e,t,r,n){return e.editor.createModel(t,r,n?ve(e,n):void 0)}function ve(e,t){return e.Uri.parse(t)}function wt({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:c,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:f=!1,theme:p="light",loading:j="Loading...",options:O={},height:H="100%",width:W="100%",className:_,wrapperProps:k={},beforeMount:K=$,onMount:B=$}){let[w,T]=a.useState(!1),[I,g]=a.useState(!0),v=a.useRef(null),d=a.useRef(null),C=a.useRef(null),m=a.useRef(B),u=a.useRef(K),E=a.useRef(!1);ge(()=>{let l=ee.init();return l.then(h=>(d.current=h)&&g(!1)).catch(h=>h?.type!=="cancelation"&&console.error("Monaco initialization: error:",h)),()=>v.current?A():l.cancel()}),y(()=>{if(v.current&&d.current){let l=v.current.getOriginalEditor(),h=S(d.current,e||"",n||r||"text",i||"");h!==l.getModel()&&l.setModel(h)}},[i],w),y(()=>{if(v.current&&d.current){let l=v.current.getModifiedEditor(),h=S(d.current,t||"",o||r||"text",c||"");h!==l.getModel()&&l.setModel(h)}},[c],w),y(()=>{let l=v.current.getModifiedEditor();l.getOption(d.current.editor.EditorOption.readOnly)?l.setValue(t||""):t!==l.getValue()&&(l.executeEdits("",[{range:l.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),l.pushUndoStop())},[t],w),y(()=>{v.current?.getModel()?.original.setValue(e||"")},[e],w),y(()=>{let{original:l,modified:h}=v.current.getModel();d.current.editor.setModelLanguage(l,n||r||"text"),d.current.editor.setModelLanguage(h,o||r||"text")},[r,n,o],w),y(()=>{d.current?.editor.setTheme(p)},[p],w),y(()=>{v.current?.updateOptions(O)},[O],w);let x=a.useCallback(()=>{if(!d.current)return;u.current(d.current);let l=S(d.current,e||"",n||r||"text",i||""),h=S(d.current,t||"",o||r||"text",c||"");v.current?.setModel({original:l,modified:h})},[r,t,o,e,n,i,c]),N=a.useCallback(()=>{!E.current&&C.current&&(v.current=d.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...O}),x(),d.current?.editor.setTheme(p),T(!0),E.current=!0)},[O,p,x]);a.useEffect(()=>{w&&m.current(v.current,d.current)},[w]),a.useEffect(()=>{!I&&!w&&N()},[I,w,N]);function A(){let l=v.current?.getModel();s||l?.original?.dispose(),f||l?.modified?.dispose(),v.current?.dispose()}return R.createElement(pe,{width:W,height:H,isEditorReady:w,loading:j,_ref:C,className:_,wrapperProps:k})}var yt=wt,At=a.memo(yt);function Ot(e){let t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current}var jt=Ot,q=new Map;function Mt({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:c="light",line:s,loading:f="Loading...",options:p={},overrideServices:j={},saveViewState:O=!0,keepCurrentModel:H=!1,width:W="100%",height:_="100%",className:k,wrapperProps:K={},beforeMount:B=$,onMount:w=$,onChange:T,onValidate:I=$}){let[g,v]=a.useState(!1),[d,C]=a.useState(!0),m=a.useRef(null),u=a.useRef(null),E=a.useRef(null),x=a.useRef(w),N=a.useRef(B),A=a.useRef(),l=a.useRef(n),h=jt(i),te=a.useRef(!1),G=a.useRef(!1);ge(()=>{let b=ee.init();return b.then(M=>(m.current=M)&&C(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>u.current?me():b.cancel()}),y(()=>{let b=S(m.current,e||n||"",t||o||"",i||r||"");b!==u.current?.getModel()&&(O&&q.set(h,u.current?.saveViewState()),u.current?.setModel(b),O&&u.current?.restoreViewState(q.get(i)))},[i],g),y(()=>{u.current?.updateOptions(p)},[p],g),y(()=>{!u.current||n===void 0||(u.current.getOption(m.current.editor.EditorOption.readOnly)?u.current.setValue(n):n!==u.current.getValue()&&(G.current=!0,u.current.executeEdits("",[{range:u.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),u.current.pushUndoStop(),G.current=!1))},[n],g),y(()=>{let b=u.current?.getModel();b&&o&&m.current?.editor.setModelLanguage(b,o)},[o],g),y(()=>{s!==void 0&&u.current?.revealLine(s)},[s],g),y(()=>{m.current?.editor.setTheme(c)},[c],g);let re=a.useCallback(()=>{if(!(!E.current||!m.current)&&!te.current){N.current(m.current);let b=i||r,M=S(m.current,n||e||"",t||o||"",b||"");u.current=m.current?.editor.create(E.current,{model:M,automaticLayout:!0,...p},j),O&&u.current.restoreViewState(q.get(b)),m.current.editor.setTheme(c),s!==void 0&&u.current.revealLine(s),v(!0),te.current=!0}},[e,t,r,n,o,i,p,j,O,c,s]);a.useEffect(()=>{g&&x.current(u.current,m.current)},[g]),a.useEffect(()=>{!d&&!g&&re()},[d,g,re]),l.current=n,a.useEffect(()=>{g&&T&&(A.current?.dispose(),A.current=u.current?.onDidChangeModelContent(b=>{G.current||T(u.current.getValue(),b)}))},[g,T]),a.useEffect(()=>{if(g){let b=m.current.editor.onDidChangeMarkers(M=>{let Y=u.current.getModel()?.uri;if(Y&&M.find(J=>J.path===Y.path)){let J=m.current.editor.getModelMarkers({resource:Y});I?.(J)}});return()=>{b?.dispose()}}return()=>{}},[g,I]);function me(){A.current?.dispose(),H?O&&q.set(i,u.current.saveViewState()):u.current.getModel()?.dispose(),u.current.dispose()}return R.createElement(pe,{width:W,height:_,isEditorReady:g,loading:f,_ref:E,className:k,wrapperProps:K})}var Pt=Mt,Et=a.memo(Pt),Lt=Et;const St="0.52.0",Rt={version:St},he=`/monaco/${Rt.version}/vs`,Tt=`${he}/base/worker/workerMain.js`;function It(){ee.config({paths:{vs:he}});const e={...globalThis.MonacoEnvironment,getWorkerUrl:()=>Tt};globalThis.MonacoEnvironment=e}It();export{Lt as F,It as c,ee as l,At as w};
@@ -1 +1 @@
1
- import{c as b,l as h,j as t,B as g}from"./index-D_7jfHk6.js";function y(N){const e=b.c(21),{icon:o,illustration:a,title:u,description:d,buttonProps:s,buttonComponent:x,className:j,children:p}=N;let l;e[0]!==j?(l=h("flex flex-col items-center justify-center py-16 text-center",j),e[0]=j,e[1]=l):l=e[1];let i;e[2]!==o||e[3]!==a?(i=a?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:a}):o?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:o}):null,e[2]=o,e[3]=a,e[4]=i):i=e[4];let n;e[5]!==u?(n=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[5]=u,e[6]=n):n=e[6];let c;e[7]!==d?(c=d&&t.jsx("div",{className:"text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==n||e[10]!==c?(r=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[n,c]}),e[9]=n,e[10]=c,e[11]=r):r=e[11];let m;e[12]!==x||e[13]!==s?(m=(x??s)&&t.jsx("div",{className:"mt-4",children:x??(s&&t.jsx(g,{size:"sm",className:h(s?.className),...s}))}),e[12]=x,e[13]=s,e[14]=m):m=e[14];let f;return e[15]!==p||e[16]!==l||e[17]!==i||e[18]!==r||e[19]!==m?(f=t.jsxs("div",{className:l,children:[i,r,m,p]}),e[15]=p,e[16]=l,e[17]=i,e[18]=r,e[19]=m,e[20]=f):f=e[20],f}export{y as E};
1
+ import{c as b,l as h,j as t,B as g}from"./index-Bm9FTdjr.js";function y(N){const e=b.c(21),{icon:o,illustration:a,title:u,description:d,buttonProps:s,buttonComponent:x,className:j,children:p}=N;let l;e[0]!==j?(l=h("flex flex-col items-center justify-center py-16 text-center",j),e[0]=j,e[1]=l):l=e[1];let i;e[2]!==o||e[3]!==a?(i=a?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:a}):o?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:o}):null,e[2]=o,e[3]=a,e[4]=i):i=e[4];let n;e[5]!==u?(n=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[5]=u,e[6]=n):n=e[6];let c;e[7]!==d?(c=d&&t.jsx("div",{className:"text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==n||e[10]!==c?(r=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[n,c]}),e[9]=n,e[10]=c,e[11]=r):r=e[11];let m;e[12]!==x||e[13]!==s?(m=(x??s)&&t.jsx("div",{className:"mt-4",children:x??(s&&t.jsx(g,{size:"sm",className:h(s?.className),...s}))}),e[12]=x,e[13]=s,e[14]=m):m=e[14];let f;return e[15]!==p||e[16]!==l||e[17]!==i||e[18]!==r||e[19]!==m?(f=t.jsxs("div",{className:l,children:[i,r,m,p]}),e[15]=p,e[16]=l,e[17]=i,e[18]=r,e[19]=m,e[20]=f):f=e[20],f}export{y as E};
@@ -1 +1 @@
1
- import{c as v,l as N,j as t}from"./index-D_7jfHk6.js";function y(){const x=v.c(1);let e;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("img",{src:"/empty-state-cards.png",alt:"",width:336,height:320,"aria-hidden":"true"}),x[0]=e):e=x[0],e}function C(x){const e=v.c(24),{image:f,title:p,description:u,actions:o,className:h,descriptionClassName:j,actionsClassName:g}=x;let s;e[0]!==h?(s=N("flex flex-1 flex-col items-center justify-center gap-8 p-4",h),e[0]=h,e[1]=s):s=e[1];let l;e[2]!==f?(l=f!==null&&t.jsx("div",{className:"flex items-center justify-center",children:f??t.jsx(y,{})}),e[2]=f,e[3]=l):l=e[3];let i;e[4]!==p?(i=t.jsx("h3",{className:"text-center text-lg font-medium text-foreground",children:p}),e[4]=p,e[5]=i):i=e[5];let c;e[6]!==j?(c=N("text-sm text-muted-foreground text-center max-w-[300px]",j),e[6]=j,e[7]=c):c=e[7];let a;e[8]!==u||e[9]!==c?(a=t.jsx("div",{className:c,children:u}),e[8]=u,e[9]=c,e[10]=a):a=e[10];let n;e[11]!==i||e[12]!==a?(n=t.jsxs("div",{className:"flex flex-col items-center gap-2",children:[i,a]}),e[11]=i,e[12]=a,e[13]=n):n=e[13];let r;e[14]!==o||e[15]!==g?(r=o&&t.jsx("div",{className:N("flex items-center gap-2",g),children:o}),e[14]=o,e[15]=g,e[16]=r):r=e[16];let m;e[17]!==n||e[18]!==r?(m=t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[n,r]}),e[17]=n,e[18]=r,e[19]=m):m=e[19];let d;return e[20]!==s||e[21]!==l||e[22]!==m?(d=t.jsxs("div",{className:s,children:[l,m]}),e[20]=s,e[21]=l,e[22]=m,e[23]=d):d=e[23],d}export{C as E};
1
+ import{c as v,l as N,j as t}from"./index-Bm9FTdjr.js";function y(){const x=v.c(1);let e;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("img",{src:"/empty-state-cards.png",alt:"",width:336,height:320,"aria-hidden":"true"}),x[0]=e):e=x[0],e}function C(x){const e=v.c(24),{image:f,title:p,description:u,actions:o,className:h,descriptionClassName:j,actionsClassName:g}=x;let s;e[0]!==h?(s=N("flex flex-1 flex-col items-center justify-center gap-8 p-4",h),e[0]=h,e[1]=s):s=e[1];let l;e[2]!==f?(l=f!==null&&t.jsx("div",{className:"flex items-center justify-center",children:f??t.jsx(y,{})}),e[2]=f,e[3]=l):l=e[3];let i;e[4]!==p?(i=t.jsx("h3",{className:"text-center text-lg font-medium text-foreground",children:p}),e[4]=p,e[5]=i):i=e[5];let c;e[6]!==j?(c=N("text-sm text-muted-foreground text-center max-w-[300px]",j),e[6]=j,e[7]=c):c=e[7];let a;e[8]!==u||e[9]!==c?(a=t.jsx("div",{className:c,children:u}),e[8]=u,e[9]=c,e[10]=a):a=e[10];let n;e[11]!==i||e[12]!==a?(n=t.jsxs("div",{className:"flex flex-col items-center gap-2",children:[i,a]}),e[11]=i,e[12]=a,e[13]=n):n=e[13];let r;e[14]!==o||e[15]!==g?(r=o&&t.jsx("div",{className:N("flex items-center gap-2",g),children:o}),e[14]=o,e[15]=g,e[16]=r):r=e[16];let m;e[17]!==n||e[18]!==r?(m=t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[n,r]}),e[17]=n,e[18]=r,e[19]=m):m=e[19];let d;return e[20]!==s||e[21]!==l||e[22]!==m?(d=t.jsxs("div",{className:s,children:[l,m]}),e[20]=s,e[21]=l,e[22]=m,e[23]=d):d=e[23],d}export{C as E};
@@ -1 +1 @@
1
- import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection-FKmTBjan.js";const D={"streamable-http":"HTTP",http:"HTTP",sse:"SSE",stdio:"STDIO",websocket:"Websocket"};function H(e){return e?D[e]??e.toUpperCase():null}let V="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",E=(e=21)=>{let n="",s=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)n+=V[s[e]&63];return n};function $(e){return`${e}_${E()}`}function L(e){const n=k(e._meta),s=e.id==="deco/github-mcp"?"mcp-github":e.server?.name;return n?.appName||s||null}function W(e){if(!e?.url)return"Unknown";try{return new URL(e.url).hostname}catch{return e.url}}function j(e){const n=e?.identifier||e?.name;return n?n.replace(/^@[^/]+\//,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase()):"Unknown"}function q(e,n,s,r){const t=e.server,o=k(e._meta),m=new Date().toISOString(),S=o?.friendlyName||o?.friendly_name||e.title||t?.title||t?.name||"Unnamed MCP Server",v=t?.description||null,N=t?.icons?.[0]?.src||O(t?.repository)||null,h=R.safeParse(o?.oauth_config),P=h.success?h.data:null,T=o?.configuration_state,C=o?.configuration_scopes,I=t?.repository?{url:t.repository.url,source:t.repository.source,subfolder:t.repository.subfolder}:null,p=t?.packages??[],d=t?.remotes??[],x=r?.packageIndex??0,w=r?.remoteIndex??0,_=p.length>0&&(r?.packageIndex!==void 0||d.length===0),a=_?p[x]:null,i=_?null:d[w];let l,u,b=null;if(a){const c=a.identifier||a.name;l="STDIO",u="";const f={};if(a.environmentVariables)for(const y of a.environmentVariables)y.name&&(f[y.name]="");b={command:"npx",args:c?["-y",c]:[],...Object.keys(f).length>0&&{envVars:f}}}else if(i){const c=H(i.type);l=c==="SSE"||c==="Websocket"?c:"HTTP",u=i.url||""}else l="HTTP",u="";const U=d.length>1,A=p.length>1;let g="";a&&A?g=` (${j(a)})`:i&&U&&(g=` (${W(i)})`);const M=S+g;return{id:$("conn"),title:M,description:v,icon:N,app_name:L(e),app_id:o?.id||e.id||null,connection_type:l,connection_url:u,connection_token:null,connection_headers:b,oauth_config:P,configuration_state:T??null,configuration_scopes:C??null,metadata:{source:"store",registry_item_id:e.id,verified:o?.verified??!1,scopeName:o?.scopeName??null,toolsCount:o?.tools?.length??0,publishedAt:o?.publishedAt??null,repository:I},created_at:m,updated_at:m,created_by:s,organization_id:n,tools:null,bindings:null,status:"inactive"}}export{L as a,q as e,$ as g};
1
+ import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection-BjzBHJVc.js";const D={"streamable-http":"HTTP",http:"HTTP",sse:"SSE",stdio:"STDIO",websocket:"Websocket"};function H(e){return e?D[e]??e.toUpperCase():null}let V="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",E=(e=21)=>{let n="",s=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)n+=V[s[e]&63];return n};function $(e){return`${e}_${E()}`}function L(e){const n=k(e._meta),s=e.id==="deco/github-mcp"?"mcp-github":e.server?.name;return n?.appName||s||null}function W(e){if(!e?.url)return"Unknown";try{return new URL(e.url).hostname}catch{return e.url}}function j(e){const n=e?.identifier||e?.name;return n?n.replace(/^@[^/]+\//,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase()):"Unknown"}function q(e,n,s,r){const t=e.server,o=k(e._meta),m=new Date().toISOString(),S=o?.friendlyName||o?.friendly_name||e.title||t?.title||t?.name||"Unnamed MCP Server",v=t?.description||null,N=t?.icons?.[0]?.src||O(t?.repository)||null,h=R.safeParse(o?.oauth_config),P=h.success?h.data:null,T=o?.configuration_state,C=o?.configuration_scopes,I=t?.repository?{url:t.repository.url,source:t.repository.source,subfolder:t.repository.subfolder}:null,p=t?.packages??[],d=t?.remotes??[],x=r?.packageIndex??0,w=r?.remoteIndex??0,_=p.length>0&&(r?.packageIndex!==void 0||d.length===0),a=_?p[x]:null,i=_?null:d[w];let l,u,b=null;if(a){const c=a.identifier||a.name;l="STDIO",u="";const f={};if(a.environmentVariables)for(const y of a.environmentVariables)y.name&&(f[y.name]="");b={command:"npx",args:c?["-y",c]:[],...Object.keys(f).length>0&&{envVars:f}}}else if(i){const c=H(i.type);l=c==="SSE"||c==="Websocket"?c:"HTTP",u=i.url||""}else l="HTTP",u="";const U=d.length>1,A=p.length>1;let g="";a&&A?g=` (${j(a)})`:i&&U&&(g=` (${W(i)})`);const M=S+g;return{id:$("conn"),title:M,description:v,icon:N,app_name:L(e),app_id:o?.id||e.id||null,connection_type:l,connection_url:u,connection_token:null,connection_headers:b,oauth_config:P,configuration_state:T??null,configuration_scopes:C??null,metadata:{source:"store",registry_item_id:e.id,verified:o?.verified??!1,scopeName:o?.scopeName??null,toolsCount:o?.tools?.length??0,publishedAt:o?.publishedAt??null,repository:I},created_at:m,updated_at:m,created_by:s,organization_id:n,tools:null,bindings:null,status:"inactive"}}export{L as a,q as e,$ as g};
@@ -1 +1 @@
1
- import{c as x,u as d,j as l,aS as m}from"./index-D_7jfHk6.js";import{F as j}from"./feature-paywall-0RYA-1Op.js";import{e as S,f as v}from"./use-decopilot-events-uItZ_pJe.js";import{a as F}from"./use-panel-navigate-C4UE8Qkr.js";function g(f){const e=x.c(10),{feature:a,backdrop:o,children:u}=f,{openPanel:c}=F();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{mainpanel:p}=d(r),h=S(a);if(!v()){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3 p-4",children:[l.jsx(m,{className:"h-8 w-48"}),l.jsx(m,{className:"min-h-0 flex-1 w-full"})]}),e[1]=i):i=e[1],i}if(h)return u;if(p===!1)return null;let s;e[2]!==c?(s=()=>c("overview"),e[2]=c,e[3]=s):s=e[3];let t;e[4]!==a||e[5]!==s?(t=l.jsx(j,{feature:a,onDismiss:s,onSeePlans:w}),e[4]=a,e[5]=s,e[6]=t):t=e[6];let n;return e[7]!==o||e[8]!==t?(n=l.jsxs("div",{className:"relative h-full min-h-0",children:[o,t]}),e[7]=o,e[8]=t,e[9]=n):n=e[9],n}function w(){}export{g as F};
1
+ import{c as x,u as d,j as l,b2 as m}from"./index-Bm9FTdjr.js";import{F as j}from"./feature-paywall-CHcwEHRJ.js";import{e as v,f as F}from"./use-decopilot-events-1iPDcTcf.js";import{a as S}from"./use-panel-navigate-A1obvdVI.js";function g(f){const e=x.c(10),{feature:a,backdrop:o,children:u}=f,{openPanel:c}=S();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{mainpanel:p}=d(r),h=v(a);if(!F()){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3 p-4",children:[l.jsx(m,{className:"h-8 w-48"}),l.jsx(m,{className:"min-h-0 flex-1 w-full"})]}),e[1]=i):i=e[1],i}if(h)return u;if(p===!1)return null;let s;e[2]!==c?(s=()=>c("overview"),e[2]=c,e[3]=s):s=e[3];let t;e[4]!==a||e[5]!==s?(t=l.jsx(j,{feature:a,onDismiss:s,onSeePlans:w}),e[4]=a,e[5]=s,e[6]=t):t=e[6];let n;return e[7]!==o||e[8]!==t?(n=l.jsxs("div",{className:"relative h-full min-h-0",children:[o,t]}),e[7]=o,e[8]=t,e[9]=n):n=e[9],n}function w(){}export{g as F};
@@ -0,0 +1 @@
1
+ import{c as _,l as $,j as t,v as B,aK as R,s as O,q as M,D as q,b as H,d as K,a2 as W,F as G,af as I,ah as J,B as S}from"./index-Bm9FTdjr.js";import{u as Q,a as V,i as X,p as Y,b as Z,P as ee,f as te}from"./plan-ladder-BUDRjzbj.js";import{a as se}from"./use-decopilot-events-1iPDcTcf.js";function le(N){const e=_.c(37),{open:a,onDismiss:n,accentClassName:i,icon:E,title:s,description:P,highlights:D,price:v,action:k,dismissAction:A}=N,T=a===void 0?!0:a,y=i??"text-muted-foreground";let l;e[0]!==n?(l=w=>!w&&n?.(),e[0]=n,e[1]=l):l=e[1];let c;e[2]!==y?(c=$("pointer-events-none",y),e[2]=y,e[3]=c):c=e[3];let h,b;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"absolute inset-x-0 top-0 h-60 opacity-60 dark:opacity-30",style:{background:"radial-gradient(ellipse 70% 100% at 50% 0%, currentColor 0%, transparent 72%)"}}),b=t.jsx("div",{className:"absolute inset-x-8 top-0 h-px bg-gradient-to-r from-transparent via-current to-transparent opacity-80 dark:opacity-60"}),e[4]=h,e[5]=b):(h=e[4],b=e[5]);let o;e[6]!==c?(o=t.jsxs("div",{"aria-hidden":"true",className:c,children:[h,b]}),e[6]=c,e[7]=o):o=e[7];let r;e[8]!==E?(r=t.jsx("div",{className:"mb-7",children:E}),e[8]=E,e[9]=r):r=e[9];let p;e[10]!==s?(p=t.jsx(B,{className:"text-2xl font-semibold leading-tight tracking-tight text-balance",children:s}),e[10]=s,e[11]=p):p=e[11];let d;e[12]!==P?(d=P&&t.jsx(R,{className:"mx-auto max-w-[32ch] text-sm leading-relaxed text-pretty",children:P}),e[12]=P,e[13]=d):d=e[13];let m;e[14]!==p||e[15]!==d?(m=t.jsxs(O,{className:"gap-2",children:[p,d]}),e[14]=p,e[15]=d,e[16]=m):m=e[16];let g;e[17]!==D?(g=D&&t.jsx("div",{className:"mt-6 w-fit",children:D}),e[17]=D,e[18]=g):g=e[18];let u;e[19]!==v?(u=v&&t.jsx("div",{className:"mt-7",children:v}),e[19]=v,e[20]=u):u=e[20];let x;e[21]!==k||e[22]!==A?(x=t.jsxs("div",{className:"mt-8 flex w-full flex-col items-center gap-2",children:[k,A]}),e[21]=k,e[22]=A,e[23]=x):x=e[23];let f;e[24]!==m||e[25]!==g||e[26]!==u||e[27]!==x||e[28]!==r?(f=t.jsxs("div",{className:"flex flex-col items-center px-8 pt-10 pb-8 text-center",children:[r,m,g,u,x]}),e[24]=m,e[25]=g,e[26]=u,e[27]=x,e[28]=r,e[29]=f):f=e[29];let j;e[30]!==f||e[31]!==o?(j=t.jsxs(M,{className:"gap-0 overflow-hidden p-0 sm:max-w-[480px]",onOpenAutoFocus:ae,children:[o,f]}),e[30]=f,e[31]=o,e[32]=j):j=e[32];let C;return e[33]!==T||e[34]!==j||e[35]!==l?(C=t.jsx(q,{open:T,onOpenChange:l,children:j}),e[33]=T,e[34]=j,e[35]=l,e[36]=C):C=e[36],C}function ae(N){return N.preventDefault()}function ne(N,e){if(!N||!e)return null;const a=N.findIndex(i=>i.id===e)+1,n=a>0?N[a]:void 0;return n?{plan:n,index:a}:null}const U={kanban:["settings.paywall.bullets.kanban.1","settings.paywall.bullets.kanban.2","settings.paywall.bullets.kanban.3"],cms:["settings.paywall.bullets.cms.1","settings.paywall.bullets.cms.2","settings.paywall.bullets.cms.3"],monitoring:["settings.paywall.bullets.monitoring.1","settings.paywall.bullets.monitoring.2","settings.paywall.bullets.monitoring.3"]},ie=["settings.paywall.bullets.allowance.1","settings.paywall.bullets.allowance.2","settings.paywall.bullets.allowance.3"];function pe(N){const e=_.c(45),{feature:a,copy:n,onDismiss:i,onSeePlans:E}=N,s=H(),P=K(),{org:D}=W(),{data:v}=Q(),{data:k}=se(),{data:A}=V(),[T]=G();let y,l,c,h,b,o,r,p;if(e[0]!==n||e[1]!==k?.plan.id||e[2]!==a||e[3]!==i||e[4]!==v||e[5]!==A||e[6]!==s){const C=s(`settings.planUsage.feature.${a}`),w=X(k?.plan.id)?null:n?ne(v,k?.plan.id):Y(v,a),z=w?Z(w.index):void 0;l=w?A?.[w.plan.id]:void 0;const L=n?ie:a in U?U[a]:null;y=le,c=i,h=z,b=w?t.jsx(ee,{index:w.index,className:"size-20"}):t.jsx(I,{className:"size-12 text-muted-foreground"}),o=n?.title??(w?s("settings.paywall.upgradeTitle",{plan:w.plan.name,feature:C}):C),r=n?.description??(L?void 0:w?s("settings.paywall.upgradeDescription"):s("settings.paywall.description",{feature:C})),p=L&&t.jsx("ul",{className:"flex flex-col gap-2.5 text-left",children:L.map(F=>t.jsxs("li",{className:"flex items-center gap-3 text-sm",children:[t.jsx(J,{size:16,className:$("shrink-0",z)}),t.jsx("span",{children:s(F)})]},F))}),e[0]=n,e[1]=k?.plan.id,e[2]=a,e[3]=i,e[4]=v,e[5]=A,e[6]=s,e[7]=y,e[8]=l,e[9]=c,e[10]=h,e[11]=b,e[12]=o,e[13]=r,e[14]=p}else y=e[7],l=e[8],c=e[9],h=e[10],b=e[11],o=e[12],r=e[13],p=e[14];let d;e[15]!==T||e[16]!==l||e[17]!==s?(d=l!==void 0?t.jsxs("span",{className:"flex items-baseline justify-center gap-1.5",children:[t.jsx("span",{className:"text-2xl font-semibold tabular-nums tracking-tight",children:te(l,T.language)}),t.jsx("span",{className:"text-sm text-muted-foreground",children:s("settings.plans.perMonth")})]}):void 0,e[15]=T,e[16]=l,e[17]=s,e[18]=d):d=e[18];let m;e[19]!==P||e[20]!==i||e[21]!==E||e[22]!==D.slug?(m=()=>{P({to:"/$org/settings/ai-providers",params:{org:D.slug}}),(E??i)?.()},e[19]=P,e[20]=i,e[21]=E,e[22]=D.slug,e[23]=m):m=e[23];let g;e[24]!==s?(g=s("settings.paywall.seePlans"),e[24]=s,e[25]=g):g=e[25];let u;e[26]!==m||e[27]!==g?(u=t.jsx(S,{size:"lg",className:"w-full",onClick:m,children:g}),e[26]=m,e[27]=g,e[28]=u):u=e[28];let x;e[29]!==s?(x=s("settings.paywall.dismiss"),e[29]=s,e[30]=x):x=e[30];let f;e[31]!==i||e[32]!==x?(f=t.jsx(S,{variant:"ghost",size:"lg",className:"w-full",onClick:i,children:x}),e[31]=i,e[32]=x,e[33]=f):f=e[33];let j;return e[34]!==y||e[35]!==c||e[36]!==u||e[37]!==f||e[38]!==h||e[39]!==b||e[40]!==o||e[41]!==r||e[42]!==p||e[43]!==d?(j=t.jsx(y,{onDismiss:c,accentClassName:h,icon:b,title:o,description:r,highlights:p,price:d,action:u,dismissAction:f}),e[34]=y,e[35]=c,e[36]=u,e[37]=f,e[38]=h,e[39]=b,e[40]=o,e[41]=r,e[42]=p,e[43]=d,e[44]=j):j=e[44],j}export{pe as F};
@@ -0,0 +1,2 @@
1
+ import{c as Se,b as ve,r as f,j as s,I as Je,h as fe,v as It,aK as Gt,s as Vt,B as Ce,w as Bt,q as qt,D as Ht,l as xe,at as Wt,o as Qt,t as ee,K as Ze}from"./index-Bm9FTdjr.js";import{k as Ut,I as Xt,bE as Yt,bF as Jt}from"./agent-icon-BewGjsar.js";import{s as Zt}from"./XClose-DjFCAP5F.js";import{S as _t}from"./scroll-area-BT00diUA.js";import{b as _e,T as et,a as tt}from"./tooltip-XZmQWwgB.js";import{a as en}from"./chat-context-DJGYyGlB.js";import{F as tn}from"./editor-2jNHgdUN.js";import{a as nn}from"./shell-layout-Ckss0QqA.js";import{s as je}from"./save-changes-debug-nBi-n9eV.js";import{t as nt,f as rn}from"./sandbox-git-api-C7JbVL7R.js";import{A as sn,a as ln,b as on,c as an,g as cn,d as dn,e as fn,f as un}from"./alert-dialog-BXEG2ySJ.js";import{a as pn,C as de,g as rt,b as xn,c as mn}from"./context-menu-Can7-rLt.js";import{t as hn}from"./ChevronUp-nynZHATg.js";import{b as gn}from"./sandbox-url-D3mC8qhT.js";import{i as bn,E as yn,c as Pe,e as wn,f as jn,h as Nn,j as Dn,t as ne,k as Ne,l as Ke,m as De,g as Me,n as Ae,o as En,s as Cn,v as Sn,p as Oe,q as Ee,r as ze,u as vn,w as Fn,x as kn,y as Tn}from"./utils-DAEMarMy.js";import"./AlertCircle-B5gBB9h_.js";import"./Tool01-DQnW-zjg.js";import"./ArrowUp-CP6XCJnB.js";import"./ArrowLeft-B7455tPl.js";import"./LinkBroken01-BZFZ6N-h.js";import"./ShoppingBag01-Ci8H67G0.js";import"./ZoomOut-BggitXDv.js";import"./Building02-BZItaEYx.js";import"./CheckCircle-C3CiaCW4.js";import"./ChevronSelectorVertical-DIPs2sw-.js";import"./UserSquare-CuRnLJZ6.js";import"./Copy01-CdRMK9o7.js";import"./CreditCard01-DVQTLvKO.js";import"./DotsVertical-3XBYz4yU.js";import"./Image01-DdBetDCI.js";import"./Globe04-DoxNod_i.js";import"./SwitchHorizontal01-BHr8jCjb.js";import"./Key01-DcSonP-G.js";import"./Link01-3BacRGrf.js";import"./Monitor01-DU19-CHk.js";import"./Sun-D1Mdg8Cq.js";import"./Play-B7i_-ibU.js";import"./Plus-XYNDZJ4s.js";import"./SearchMd-BFitEH5z.js";import"./Trash01-DZ8laRwu.js";import"./Upload01-CrRTpeMX.js";import"./User01-9bZ-cKa7.js";import"./Users01-cUGZjxDe.js";import"./index-BdQq_4o_.js";import"./index-D2iZ6syL.js";import"./use-panel-navigate-A1obvdVI.js";import"./thread-route-mhniW_q8.js";import"./use-project-scope-BxCbtcTE.js";import"./repository-binding-D2wL-4Vr.js";import"./use-mcp-client-Dh_4AZgb.js";import"./auth-Dwu4WH32.js";import"./autosend-BaKgBZDQ.js";import"./thread-intent-DzHkd78g.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DmOqvBBq.js";import"./task-board-Bgw_xVJW.js";import"./schema-C_wSANSe.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-1iPDcTcf.js";import"./use-ai-providers-BP69qr77.js";import"./use-chat-navigation-BXZpM5MQ.js";import"./location-BjlyegC2.js";import"./use-organization-settings-xcc5-6DS.js";import"./avatar-BEl6nltF.js";import"./use-clock-tick-rPXqIJP8.js";import"./command-D2QlwSrW.js";import"./index-s6P2p4h7.js";import"./integration-icon-DoYtKqdf.js";import"./project-icon-D2vCEWQy.js";import"./new-project-dialog-C-thpPQ-.js";import"./label-BL2W0Pcn.js";import"./repository-import-picker-DtM7QfYh.js";import"./use-navigate-to-agent-DDZo26Jw.js";import"./repository-picker-28zwGBgK.js";import"./useInfiniteQuery-vZqvTY4f.js";import"./infiniteQueryObserver-zxl9Rj5F.js";import"./collection-search-BC0JMMNp.js";import"./use-debounced-value-D5_QO1dT.js";import"./required-auth-layout-CbgA2xIU.js";import"./use-org-sso-DWtbATGD.js";const Rn={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function Ln(A){const e=Se.c(71),{open:p,mode:X,initialName:y,parentLabel:N,isPending:L,onSubmit:d,onOpenChange:w}=A,O=y===void 0?"":y,x=L===void 0?!1:L,a=ve(),[o,P]=f.useState(O),[Y,K]=f.useState(p),m=Rn[X];p!==Y&&(K(p),p&&P(O));let c;e[0]!==x||e[1]!==w?(c=U=>{!U&&!x&&w(!1)},e[0]=x,e[1]=w,e[2]=c):c=e[2];const C=c;let z;e[3]!==x||e[4]!==o||e[5]!==d?(z=async U=>{U.preventDefault();const te=o.trim();!te||x||await d(te)},e[3]=x,e[4]=o,e[5]=d,e[6]=z):z=e[6];const R=z;let S;e[7]!==m.titleKey||e[8]!==a?(S=a(m.titleKey),e[7]=m.titleKey,e[8]=a,e[9]=S):S=e[9];let v;e[10]!==S?(v=s.jsx(It,{children:S}),e[10]=S,e[11]=v):v=e[11];let D;e[12]!==m.descriptionKey||e[13]!==a?(D=a(m.descriptionKey),e[12]=m.descriptionKey,e[13]=a,e[14]=D):D=e[14];let j;e[15]!==D?(j=s.jsx(Gt,{children:D}),e[15]=D,e[16]=j):j=e[16];let g;e[17]!==v||e[18]!==j?(g=s.jsxs(Vt,{children:[v,j]}),e[17]=v,e[18]=j,e[19]=g):g=e[19];let E;e[20]!==N||e[21]!==a?(E=N&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a("sandbox.fileExplorerNameDialog.location")}),s.jsx(Je,{value:N,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=N,e[21]=a,e[22]=E):E=e[22];let b;e[23]!==a?(b=a("sandbox.fileExplorerNameDialog.name"),e[23]=a,e[24]=b):b=e[24];let k;e[25]!==b?(k=s.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:b}),e[25]=b,e[26]=k):k=e[26];let H;e[27]===Symbol.for("react.memo_cache_sentinel")?(H=U=>P(U.target.value),e[27]=H):H=e[27];let $;e[28]!==m.placeholderKey||e[29]!==a?($=a(m.placeholderKey),e[28]=m.placeholderKey,e[29]=a,e[30]=$):$=e[30];let J;e[31]!==x||e[32]!==o||e[33]!==$?(J=s.jsx(Je,{id:"file-explorer-name",value:o,onChange:H,placeholder:$,autoFocus:!0,disabled:x}),e[31]=x,e[32]=o,e[33]=$,e[34]=J):J=e[34];let Z;e[35]!==k||e[36]!==J?(Z=s.jsxs("div",{className:"space-y-1.5",children:[k,J]}),e[35]=k,e[36]=J,e[37]=Z):Z=e[37];let _;e[38]!==E||e[39]!==Z?(_=s.jsxs("div",{className:"space-y-4 py-4",children:[E,Z]}),e[38]=E,e[39]=Z,e[40]=_):_=e[40];let I;e[41]!==w?(I=()=>w(!1),e[41]=w,e[42]=I):I=e[42];let T;e[43]!==a?(T=a("sandbox.fileExplorerNameDialog.cancel"),e[43]=a,e[44]=T):T=e[44];let W;e[45]!==x||e[46]!==I||e[47]!==T?(W=s.jsx(Ce,{type:"button",variant:"outline",onClick:I,disabled:x,children:T}),e[45]=x,e[46]=I,e[47]=T,e[48]=W):W=e[48];let M;e[49]!==x||e[50]!==o?(M=!o.trim()||x,e[49]=x,e[50]=o,e[51]=M):M=e[51];let Q;e[52]!==m.submitKey||e[53]!==x||e[54]!==a?(Q=x?s.jsxs(s.Fragment,{children:[s.jsx(fe,{className:"size-3.5"}),a("sandbox.fileExplorerNameDialog.saving")]}):a(m.submitKey),e[52]=m.submitKey,e[53]=x,e[54]=a,e[55]=Q):Q=e[55];let G;e[56]!==M||e[57]!==Q?(G=s.jsx(Ce,{type:"submit",disabled:M,children:Q}),e[56]=M,e[57]=Q,e[58]=G):G=e[58];let F;e[59]!==W||e[60]!==G?(F=s.jsxs(Bt,{children:[W,G]}),e[59]=W,e[60]=G,e[61]=F):F=e[61];let V;e[62]!==R||e[63]!==_||e[64]!==F||e[65]!==g?(V=s.jsx(qt,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:R,children:[g,_,F]})}),e[62]=R,e[63]=_,e[64]=F,e[65]=g,e[66]=V):V=e[66];let B;return e[67]!==C||e[68]!==p||e[69]!==V?(B=s.jsx(Ht,{open:p,onOpenChange:C,children:V}),e[67]=C,e[68]=p,e[69]=V,e[70]=B):B=e[70],B}function Pn(A){const e=Se.c(47),{deleteTarget:p,deleteDirtyPaths:X,fsActionPending:y,onOpenChange:N,onConfirm:L}=A,d=ve(),w=p?.kind==="directory",O=p!==null,x=w?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let a;e[0]!==d||e[1]!==x?(a=d(x),e[0]=d,e[1]=x,e[2]=a):a=e[2];let o;e[3]!==a?(o=s.jsx(sn,{children:a}),e[3]=a,e[4]=o):o=e[4];let P;e[5]!==d?(P=d("sandbox.fileExplorerDeleteDialog.description"),e[5]=d,e[6]=P):P=e[6];const Y=p?.name;let K;e[7]!==Y?(K=s.jsx("span",{className:"font-mono",children:Y}),e[7]=Y,e[8]=K):K=e[8];let m;e[9]!==w||e[10]!==d?(m=w?d("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=w,e[10]=d,e[11]=m):m=e[11];let c;e[12]!==X.length||e[13]!==d?(c=X.length>0&&s.jsxs(s.Fragment,{children:[" ",X.length===1?d("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):d("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:X.length})]}),e[12]=X.length,e[13]=d,e[14]=c):c=e[14];let C;e[15]!==P||e[16]!==K||e[17]!==m||e[18]!==c?(C=s.jsxs(ln,{children:[P," ",K,m,c]}),e[15]=P,e[16]=K,e[17]=m,e[18]=c,e[19]=C):C=e[19];let z;e[20]!==C||e[21]!==o?(z=s.jsxs(on,{children:[o,C]}),e[20]=C,e[21]=o,e[22]=z):z=e[22];let R;e[23]!==d?(R=d("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=d,e[24]=R):R=e[24];let S;e[25]!==y||e[26]!==R?(S=s.jsx(an,{disabled:y,children:R}),e[25]=y,e[26]=R,e[27]=S):S=e[27];const v=y||!p;let D;e[28]!==p||e[29]!==L?(D=H=>{H.preventDefault(),p&&L(p)},e[28]=p,e[29]=L,e[30]=D):D=e[30];let j;e[31]!==d?(j=d("sandbox.fileExplorerDeleteDialog.delete"),e[31]=d,e[32]=j):j=e[32];let g;e[33]!==v||e[34]!==D||e[35]!==j?(g=s.jsx(cn,{disabled:v,onClick:D,children:j}),e[33]=v,e[34]=D,e[35]=j,e[36]=g):g=e[36];let E;e[37]!==S||e[38]!==g?(E=s.jsxs(dn,{children:[S,g]}),e[37]=S,e[38]=g,e[39]=E):E=e[39];let b;e[40]!==z||e[41]!==E?(b=s.jsxs(fn,{children:[z,E]}),e[40]=z,e[41]=E,e[42]=b):b=e[42];let k;return e[43]!==N||e[44]!==O||e[45]!==b?(k=s.jsx(un,{open:O,onOpenChange:N,children:b}),e[43]=N,e[44]=O,e[45]=b,e[46]=k):k=e[46],k}const Kn="#d9a441";function Mn(A){const e=Se.c(63),{node:p,depth:X,isExpanded:y,isSelected:N,isLoading:L,fileVisual:d,onOpen:w,onSelect:O,onNewFile:x,onNewFolder:a,onCopyPath:o,onCopyRelativePath:P,onRename:Y,onDelete:K}=A,m=L===void 0?!1:L,c=ve(),C=p.kind==="directory",{Icon:z,color:R}=d,S=N&&"bg-accent";let v;e[0]!==S?(v=xe("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",S),e[0]=S,e[1]=v):v=e[1];const D=`${X*14+8}px`;let j;e[2]!==D?(j={paddingLeft:D},e[2]=D,e[3]=j):j=e[3];let g;e[4]!==w||e[5]!==O?(g=()=>{O(),w()},e[4]=w,e[5]=O,e[6]=g):g=e[6];let E;e[7]!==z||e[8]!==R||e[9]!==C||e[10]!==y||e[11]!==m?(E=C?s.jsxs(s.Fragment,{children:[m?s.jsx(fe,{className:"size-3.5 shrink-0 text-muted-foreground"}):y?s.jsx(hn,{size:14,className:"shrink-0 text-muted-foreground"}):s.jsx(Wt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx(Ut,{size:16,className:"shrink-0",style:{color:Kn}})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3.5 shrink-0"}),s.jsx(z,{size:16,className:"shrink-0",style:{color:R}})]}),e[7]=z,e[8]=R,e[9]=C,e[10]=y,e[11]=m,e[12]=E):E=e[12];let b;e[13]!==p.name?(b=s.jsx("span",{className:"truncate",children:p.name}),e[13]=p.name,e[14]=b):b=e[14];let k;e[15]!==v||e[16]!==j||e[17]!==g||e[18]!==E||e[19]!==b?(k=s.jsx(pn,{asChild:!0,children:s.jsxs("button",{type:"button",className:v,style:j,onClick:g,children:[E,b]})}),e[15]=v,e[16]=j,e[17]=g,e[18]=E,e[19]=b,e[20]=k):k=e[20];let H;e[21]!==c?(H=c("sandbox.fileTreeRow.newFile"),e[21]=c,e[22]=H):H=e[22];let $;e[23]!==x||e[24]!==H?($=s.jsx(de,{onSelect:x,children:H}),e[23]=x,e[24]=H,e[25]=$):$=e[25];let J;e[26]!==c?(J=c("sandbox.fileTreeRow.newFolder"),e[26]=c,e[27]=J):J=e[27];let Z;e[28]!==a||e[29]!==J?(Z=s.jsx(de,{onSelect:a,children:J}),e[28]=a,e[29]=J,e[30]=Z):Z=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(rt,{}),e[31]=_):_=e[31];let I;e[32]!==c?(I=c("sandbox.fileTreeRow.copyPath"),e[32]=c,e[33]=I):I=e[33];let T;e[34]!==o||e[35]!==I?(T=s.jsx(de,{onSelect:o,children:I}),e[34]=o,e[35]=I,e[36]=T):T=e[36];let W;e[37]!==c?(W=c("sandbox.fileTreeRow.copyRelativePath"),e[37]=c,e[38]=W):W=e[38];let M;e[39]!==P||e[40]!==W?(M=s.jsx(de,{onSelect:P,children:W}),e[39]=P,e[40]=W,e[41]=M):M=e[41];let Q;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(rt,{}),e[42]=Q):Q=e[42];let G;e[43]!==c?(G=c("sandbox.fileTreeRow.rename"),e[43]=c,e[44]=G):G=e[44];let F;e[45]!==Y||e[46]!==G?(F=s.jsx(de,{onSelect:Y,children:G}),e[45]=Y,e[46]=G,e[47]=F):F=e[47];let V;e[48]!==c?(V=c("sandbox.fileTreeRow.delete"),e[48]=c,e[49]=V):V=e[49];let B;e[50]!==K||e[51]!==V?(B=s.jsx(de,{variant:"destructive",onSelect:K,children:V}),e[50]=K,e[51]=V,e[52]=B):B=e[52];let U;e[53]!==$||e[54]!==Z||e[55]!==T||e[56]!==M||e[57]!==F||e[58]!==B?(U=s.jsxs(xn,{className:"w-52",children:[$,Z,_,T,M,Q,F,B]}),e[53]=$,e[54]=Z,e[55]=T,e[56]=M,e[57]=F,e[58]=B,e[59]=U):U=e[59];let te;return e[60]!==U||e[61]!==k?(te=s.jsxs(mn,{children:[k,U]}),e[60]=U,e[61]=k,e[62]=te):te=e[62],te}const st=200,An=2,On=250,it=200;function zn(A,e){return gn(A,e)}function $n(A){const e=Se.c(9),{text:p,query:X}=A;let y,N,L;if(e[0]!==X||e[1]!==p){const{leadingEllipsis:w,segments:O}=En(p,X);y="truncate font-mono text-muted-foreground",N=w&&s.jsx("span",{className:"text-muted-foreground/50",children:"…"}),L=O.map(In),e[0]=X,e[1]=p,e[2]=y,e[3]=N,e[4]=L}else y=e[2],N=e[3],L=e[4];let d;return e[5]!==y||e[6]!==N||e[7]!==L?(d=s.jsxs("span",{className:y,children:[N,L]}),e[5]=y,e[6]=N,e[7]=L,e[8]=d):d=e[8],d}function In(A,e){return A.match?s.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:A.text},e):s.jsx("span",{children:A.text},e)}function xs({orgSlug:A,virtualMcpId:e,branch:p,threadId:X,openPath:y}){const N={orgSlug:A,virtualMcpId:e,branch:p,threadId:X},[L,d]=f.useState({files:[],directories:[],truncated:!1}),{files:w,directories:O}=L,[x,a]=f.useState(new Set),[o,P]=f.useState(null),[Y,K]=f.useState(null),[m,c]=f.useState([]),[C,z]=f.useState(""),[R,S]=f.useState(null),[v,D]=f.useState(null),[j,g]=f.useState(!1),[E,b]=f.useState(!1),[k,H]=f.useState(!1),[$,J]=f.useState(!1),[,Z]=f.useState(new Set),[_,I]=f.useState(new Set),T=f.useRef(0),W=f.useRef(null),M=f.useRef(new Set),Q=f.useRef(new Map),G=f.useRef(null),F=f.useRef(0),V=f.useRef(null),B=f.useRef(null),U=f.useRef(null);function te(t){Z(n=>{const r=typeof t=="function"?t(n):t;return M.current=r,r})}const[oe,ae]=f.useState(new Map),Fe=f.useRef(null),[se,me]=f.useState(null),{sendMessage:lt}=en(),{openSidePanel:ot}=nn(),he=Qt(),[q,re]=f.useState(null),[ke,Te]=f.useState(null),[ge,be]=f.useState(!1);async function ie(t,n){const r=await fetch(zn(N,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Request failed (${r.status})`)}return r.json()}async function ye(){he.invalidateQueries({queryKey:nt(N)})}function $e(t,n,r){navigator.clipboard.writeText(r).then(()=>ee.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ee.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function at(t){const n=kn(t);if(!n)return;const r=`${A}/${e}/${p}`;he.setQueryData(Ze.decofile(r),i=>{if(!i)return i;const{[n]:l,...u}=i;return u}),he.invalidateQueries({queryKey:Ze.liveMeta(A,e,p)})}function ct(t){const n=t.kind==="file"?[t.path]:w.filter(r=>r.startsWith(".deco/blocks/")).map(r=>Ne(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)at(r)}function dt(t){const n=Ne(t);return m.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const i=oe.get(r);return!!(i?.loaded&&i.editorValue!==i.savedContent)})}function Ie(t){c(n=>n.map(r=>t(r)).filter(r=>r!==null)),P(n=>n&&t(n)),ae(n=>{const r=new Map;for(const[i,l]of n){const u=t(i);u&&r.set(u,l)}return r}),K(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function ft(t){const n=Ne(t);K(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),Ie(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function ut(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:ne(r),content:""}),await ue(),await ye(),re(null),pe(r)}async function pt(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const i=ne(r);await ie("mkdir",{path:i}),d(l=>({...l,directories:l.directories.includes(i)?l.directories:[...l.directories,i]})),await ue(),await ye(),re(null),a(l=>{const u=new Set(l);for(const le of Ae(r))u.add(le);return u.add(r),u}),K({name:n,path:r,kind:"directory",children:[]})}async function xt(t,n){if(!q)return;const r=q.node.path,i=De(r),l=Ee(i,n);if(l===r){re(null);return}if(ze(l,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:ne(r),to:ne(l)}),Ie(u=>u===r?l:u.startsWith(`${r}/`)?Ee(l,u.slice(r.length+1)):u),await ue(),await ye(),re(null)}async function mt(t,n){be(!0);try{await ie("unlink",{path:ne(n.path),recursive:n.kind==="directory"}),ct(n),ft(n.path),await ue(),await ye(),Te(null),ee.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(r){ee.error(r instanceof Error?r.message:t("sandbox.fileExplorer.deleteFailed"))}finally{be(!1)}}async function ht(t,n){const r=Sn(n);if(r){ee.error(r);return}be(!0);try{q?.mode==="new-file"?(await ut(t,n),ee.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await pt(t,n),ee.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await xt(t,n),ee.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(i){ee.error(i instanceof Error?i.message:t("sandbox.fileExplorer.operationFailed"))}finally{be(!1)}}const Ge=f.useRef(!1);Ge.current||(Ge.current=!0,W.current=ue());const[gt,bt]=f.useState(null),h=ve();if(y&&y!==gt){bt(y);const t=y;queueMicrotask(()=>{bn(t)&&pe(t)})}async function Re(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ve(t,n,r){if(r!==T.current)return!1;let i=!1;return d(l=>{const u=n?Tn(l.files,l.directories,t,l.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return i=!!u.truncated,{files:u.files,directories:u.directories,truncated:i}}),i&&ee.warning(h("sandbox.fileExplorer.fileListTruncated")),i}async function yt(t){const n=Q.current.get(t);if(n)return n;const r=T.current,i=(async()=>{const l=await Re({pattern:"**/*",path:ne(t),limit:Pe}),u=Ve(l,!0,r);return!u&&r===T.current&&te(le=>{const we=new Set(le);return we.add(t),we}),u})();Q.current.set(t,i);try{return await i}finally{Q.current.delete(t)}}async function Be(t){if(!Oe(t,M.current))return!1;I(n=>new Set(n).add(t));try{return await yt(t)}finally{I(n=>{const r=new Set(n);return r.delete(t),r})}}async function wt(t,n){const r=new Set(M.current);for(const i of Ae(n)){if(!Oe(i,r))continue;if(await Be(i))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));r.add(i)}}async function ue(){const t=++T.current;V.current=null,B.current=null,Q.current.clear(),H(!0),te(new Set),a(new Set),I(new Set);try{const n=await Re({pattern:"**/*",limit:Pe,maxDepth:yn});Ve(n,!1,t),J(!0)}catch{$&&ee.error(h("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{H(!1)}}async function qe(t){if(!oe.get(t)?.loaded){ae(r=>{const i=new Map(r);return i.set(t,{savedContent:"",editorValue:"",loaded:!1}),i});try{const r=await ie("read",{path:ne(t),full:!0}),i=Cn(r.content??"");ae(l=>{const u=new Map(l);return u.set(t,{savedContent:i,editorValue:i,loaded:!0}),u})}catch{}}}function jt(){F.current++,S(null),D(null),g(!1),b(!1)}async function Nt(){const t=T.current,n=V.current;if(n&&n.generation===t)return n.files;const r=B.current;if(r&&r.generation===t)return r.promise;const i=(async()=>{const l=await Re({pattern:"**/*",limit:Pe});return T.current===t&&(V.current={generation:t,files:l.files}),l.files})();B.current={generation:t,promise:i};try{return await i}finally{B.current?.generation===t&&(B.current=null)}}async function Dt(t,n){try{const r=await Nt();if(n!==F.current)return;S(vn(r,t,it))}catch{if(n!==F.current)return;S([])}}async function Et(t,n){g(!0);try{const r=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:st});if(n!==F.current)return;D(Fn(r.results??"")),b((r.matchCount??0)>=st)}catch{if(n!==F.current)return;D([]),b(!1)}finally{n===F.current&&g(!1)}}function Ct(t){const n=t.trim(),r=++F.current;Dt(n,r),n.length<An?(D(null),g(!1),b(!1)):Et(n,r)}function St(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){jt();return}G.current=setTimeout(()=>{Ct(t)},On)}function He(t){const n=U.current;if(!n||n.path!==o)return;U.current=null;const r=Math.max(1,n.line);t.revealLineInCenter(r),t.setPosition({lineNumber:r,column:1}),t.focus()}function vt(t){U.current={path:t.path,line:t.line};const n=o===t.path&&oe.get(t.path)?.loaded;pe(t.path),n&&Fe.current&&He(Fe.current)}async function Ft(t,n){try{await ie("write",{path:ne(t),content:n}),je("file saved via sandbox /write",{path:t}),he.invalidateQueries({queryKey:nt(N)});try{const r=await rn(N);je("git status after save",r)}catch(r){je("git status after save failed",{path:t,error:r instanceof Error?r.message:String(r)})}ae(r=>{const i=new Map(r),l=i.get(t);return l&&i.set(t,{...l,savedContent:n}),i})}catch(r){je("file save failed",{path:t,error:r instanceof Error?r.message:String(r)})}}function kt(t){P(t),K({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),me(null),m.includes(t)||c(n=>[...n,t]),qe(t)}function Tt(t){const n=oe.get(t);n?.loaded&&n.editorValue!==n.savedContent&&!window.confirm(h("sandbox.fileExplorer.discardUnsavedChangesConfirm"))||(c(i=>{const l=i.filter(u=>u!==t);return o===t&&P(l[l.length-1]??null),l}),ae(i=>{const l=new Map(i);return l.delete(t),l}))}function We(t){a(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function Rt(t){if(Oe(t,M.current))try{if(await Be(t))return}catch(n){ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Lt(t,n){if(n){We(t);return}await Rt(t)}async function Pt(t){await W.current,await wt(h,t);const n=Ae(t);a(r=>{const i=new Set(r);for(const l of n)i.add(l);return i}),kt(t)}function pe(t){Pt(t).catch(n=>{ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToOpenFile"))})}function Kt(){return Y?.kind==="directory"?Y.path:Y?.kind==="file"?De(Y.path):o?De(o):"/"}function Qe(t){const n=Kt();re({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Mt=wn(w,O),Ue=jn(Mt,x),Le=R?.length??0,Xe=Nn(v??[]),Ye=v?.length??0,ce=o?oe.get(o):null,At=ce?.loaded&&ce.editorValue!==ce.savedContent,Ot=ke?dt(ke.path):[],zt=(t,n)=>{Fe.current=t,He(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await Ft(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),i=t.getModel();if(!r||!i||!o)return;const l=i.getValueInRange(r);me({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:l})})};function $t(t){if(!se)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${se.filePath}\``,`**Lines:** ${se.lineStart}–${se.lineEnd}`];if(se.selectedCode){const r=Me(se.filePath),i=se.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,i,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),ot(),lt({parts:[{type:"text",text:n.join(`
2
+ `)}]}),me(null)}return k&&!$?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[s.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx(Xt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),s.jsx("input",{type:"text",value:C,onChange:t=>St(t.target.value),placeholder:h("sandbox.fileExplorer.searchFilesPlaceholder"),"aria-label":h("sandbox.fileExplorer.searchFilesLabel"),className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":h("sandbox.fileExplorer.newFileLabel"),onClick:()=>Qe("new-file"),children:s.jsx(Yt,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFile")})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":h("sandbox.fileExplorer.newFolderLabel"),onClick:()=>Qe("new-folder"),children:s.jsx(Jt,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFolder")})]})]}),s.jsx(_t,{className:"flex-1",children:s.jsxs("div",{className:"py-1",children:[!C&&Ue.map(t=>{const{node:n,depth:r}=t,i=n.kind==="directory",l=x.has(n.path),u=Y?.path===n.path,le=Dn(n.path,n.kind),we=i&&_.has(n.path);return s.jsx(Mn,{node:n,depth:r,isExpanded:l,isSelected:u,isLoading:we,fileVisual:Ke(n.name),onSelect:()=>K(n),onOpen:()=>{i?Lt(n.path,l):pe(n.path)},onNewFile:()=>re({mode:"new-file",node:n,parentDir:le}),onNewFolder:()=>re({mode:"new-folder",node:n,parentDir:le}),onCopyPath:()=>$e(h,"Path",Ne(n.path)),onCopyRelativePath:()=>$e(h,"Relative path",ne(n.path)),onRename:()=>re({mode:"rename",node:n,parentDir:le}),onDelete:()=>Te(n)},n.path)}),!C&&$&&Ue.length===0&&s.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFilesFound")}),C&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.files")}),Le>0&&s.jsxs("span",{className:"normal-case tracking-normal text-muted-foreground/70",children:[Le,Le>=it?"+":""]})]}),R!==null&&R.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFileNamesMatch")}),R?.map(t=>{const n=t.split("/").pop()??t,r=De(t),{Icon:i,color:l}=Ke(n),u=o===t;return s.jsxs("button",{type:"button",onClick:()=>pe(t),title:t,className:xe("flex w-full items-center gap-1.5 px-3 py-1 text-left text-xs hover:bg-accent",u&&"bg-accent"),children:[s.jsx(i,{size:14,className:xe("shrink-0",l)}),s.jsx("span",{className:"max-w-40 shrink-0 truncate",children:n}),r!=="/"&&s.jsx("span",{className:"truncate text-muted-foreground/60",children:r})]},t)})]}),C&&s.jsxs("div",{className:"mt-1 border-t pt-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.inFiles")}),Ye>0&&s.jsxs("span",{className:"text-muted-foreground/70 normal-case tracking-normal",children:[Ye,E?"+":""]}),j&&s.jsx(fe,{className:"size-[10px]"})]}),!j&&v!==null&&Xe.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noMatchesInFileContents")}),Xe.map(t=>{const n=t.path.split("/").pop()??t.path,{Icon:r,color:i}=Ke(n);return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 text-xs text-muted-foreground",children:[s.jsx(r,{size:14,className:xe("shrink-0",i)}),s.jsx("span",{className:"truncate",children:n}),s.jsx("span",{className:"text-muted-foreground/60",children:t.matches.length})]}),t.matches.map(l=>s.jsxs("button",{type:"button",onClick:()=>vt(l),title:`${t.path}:${l.line}`,className:"flex w-full items-baseline gap-2 pl-8 pr-3 py-0.5 text-left text-xs hover:bg-accent",children:[s.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:l.line}),s.jsx($n,{text:l.text,query:C})]},`${t.path}:${l.line}`))]},t.path)})]})]})})]}),s.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[m.length>0&&s.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:m.map(t=>{const n=oe.get(t),r=n?.loaded&&n.editorValue!==n.savedContent,i=o===t,l=t.split("/").pop()??t;return s.jsxs("div",{className:xe("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",i?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{P(t),qe(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":i,children:[s.jsx("span",{className:"truncate max-w-32",children:l}),r&&s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),s.jsx("button",{type:"button",className:"ml-1 p-0.5 hover:bg-accent-foreground/10 rounded-lg",onClick:u=>{u.stopPropagation(),Tt(t)},children:s.jsx(Zt,{size:12})})]},t)})}),se&&s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:s.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const r=t.currentTarget.elements.namedItem("askAiInput");r.value.trim()&&$t(r.value)},children:[s.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:h("sandbox.fileExplorer.askTheAiPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&me(null)}}),s.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg bg-foreground text-background transition-opacity",title:h("sandbox.fileExplorer.send"),children:s.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[s.jsx("title",{children:h("sandbox.fileExplorer.send")}),s.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),s.jsx("div",{className:"flex-1 overflow-hidden",children:o&&ce?.loaded?s.jsx(tn,{language:Me(o),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ce.editorValue,path:o,onChange:t=>{const n=o;n&&ae(r=>{const i=new Map(r),l=i.get(n);return l&&i.set(n,{...l,editorValue:t??""}),i})},onMount:zt,loading:s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},o):o&&!ce?.loaded?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:h("sandbox.fileExplorer.selectFileToEdit")})}),o&&s.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[s.jsx("span",{className:"truncate",children:o}),s.jsxs("span",{children:[h(At?"sandbox.fileExplorer.modified":"sandbox.fileExplorer.saved")," ","· ",Me(o)]})]})]}),s.jsx(Ln,{open:q!==null,mode:q?.mode??"new-file",initialName:q?.mode==="rename"?q.node.name:"",parentLabel:q&&q.mode!=="rename"?q.parentDir==="/"?"/":ne(q.parentDir):void 0,isPending:ge,onSubmit:t=>ht(h,t),onOpenChange:t=>{!t&&!ge&&re(null)}}),s.jsx(Pn,{deleteTarget:ke,deleteDirtyPaths:Ot,fsActionPending:ge,onOpenChange:t=>{!t&&!ge&&Te(null)},onConfirm:t=>{mt(h,t)}})]})}export{xs as FileExplorer};
@@ -1 +1 @@
1
- import{c as x,x as g,j as s,h as v,aS as w,B as b}from"./index-D_7jfHk6.js";import{n as y}from"./ZoomOut-CQckFmS9.js";import{g as N}from"./use-org-fs-DPxqVRhB.js";import{g as S}from"./utils-Cxy1EsFU.js";import{F as _}from"./editor-CPkkN1Zr.js";import{F as k}from"./file-type-icon-Du5QihE_.js";import{M as z}from"./markdown-6zdu9t3J.js";function U(n){const e=x.c(11),{value:l,filename:i}=n,[t]=g(),c=t.theme==="dark"||t.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==i?(o=S(i),e[0]=i,e[1]=o):o=e[1];const m=c?"vs-dark":"light";let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(v,{className:"size-5 text-muted-foreground"})}),e[2]=a):a=e[2];let r,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={enabled:!1},d={top:12,bottom:12},e[3]=r,e[4]=d):(r=e[3],d=e[4]);let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:r,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=f):f=e[5];let u;return e[6]!==i||e[7]!==o||e[8]!==m||e[9]!==l?(u=s.jsx(_,{path:i,language:o,value:l,theme:m,loading:a,options:f},i),e[6]=i,e[7]=o,e[8]=m,e[9]=l,e[10]=u):u=e[10],u}function E(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const F=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),T=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),h=2*1024*1024;function $(n,e){const l=n.split(".").pop()?.toLowerCase()??"";return F.has(l)?"image":l==="pdf"?"pdf":l==="html"||l==="htm"?"html":l==="md"||l==="markdown"?e<=h?"markdown":"download":T.has(l)&&e<=h?"text":"download"}function M(){const n=x.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(w,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let l;return n[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(w,{className:"h-3 w-full"}),s.jsx(w,{className:"h-3 w-5/6"}),s.jsx(w,{className:"h-3 w-2/3"})]})]})}),n[1]=l):l=n[1],l}function j(n){const e=x.c(20),{file:l,note:i}=n;let t;e[0]!==l.filename?(t=s.jsx(k,{filename:l.filename,className:"h-12 w-10"}),e[0]=l.filename,e[1]=t):t=e[1];let c;e[2]!==l.filename?(c=s.jsx("span",{className:"text-sm font-medium text-foreground",children:l.filename}),e[2]=l.filename,e[3]=c):c=e[3];let o;e[4]!==l.size?(o=E(l.size),e[4]=l.size,e[5]=o):o=e[5];const m=i?` · ${i}`:"";let a;e[6]!==o||e[7]!==m?(a=s.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,m]}),e[6]=o,e[7]=m,e[8]=a):a=e[8];let r;e[9]!==c||e[10]!==a?(r=s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[c,a]}),e[9]=c,e[10]=a,e[11]=r):r=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(y,{size:14}),e[12]=d):d=e[12];let f;e[13]!==l.downloadUrl||e[14]!==l.filename?(f=s.jsx(b,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:l.downloadUrl,download:l.filename,children:[d,"Download"]})}),e[13]=l.downloadUrl,e[14]=l.filename,e[15]=f):f=e[15];let u;return e[16]!==t||e[17]!==r||e[18]!==f?(u=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[t,r,f]})}),e[16]=t,e[17]=r,e[18]=f,e[19]=u):u=e[19],u}function p(n){const e=x.c(9),{file:l,markdown:i}=n,{data:t,isPending:c,isError:o}=N(l.downloadUrl);if(c){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(M,{}),e[0]=a):a=e[0],a}if(o||!t){let a;return e[1]!==l?(a=s.jsx(j,{file:l,note:"preview unavailable"}),e[1]=l,e[2]=a):a=e[2],a}if(i){const a=`file-preview-${l.key}`;let r;return e[3]!==t||e[4]!==a?(r=s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:s.jsx(z,{id:a,text:t})})}),e[3]=t,e[4]=a,e[5]=r):r=e[5],r}let m;return e[6]!==t||e[7]!==l.filename?(m=s.jsx(U,{value:t,filename:l.filename}),e[6]=t,e[7]=l.filename,e[8]=m):m=e[8],m}function I(n){const e=x.c(15),{file:l}=n;switch($(l.filename,l.size)){case"image":{let t;return e[0]!==l.downloadUrl||e[1]!==l.filename?(t=s.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:s.jsx("img",{src:l.downloadUrl,alt:l.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=l.downloadUrl,e[1]=l.filename,e[2]=t):t=e[2],t}case"pdf":{let t;return e[3]!==l.downloadUrl||e[4]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-same-origin allow-downloads",className:"block h-full w-full bg-white"}),e[3]=l.downloadUrl,e[4]=l.filename,e[5]=t):t=e[5],t}case"html":{let t;return e[6]!==l.downloadUrl||e[7]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=l.downloadUrl,e[7]=l.filename,e[8]=t):t=e[8],t}case"markdown":{let t;return e[9]!==l?(t=s.jsx(p,{file:l,markdown:!0}),e[9]=l,e[10]=t):t=e[10],t}case"text":{let t;return e[11]!==l?(t=s.jsx(p,{file:l,markdown:!1}),e[11]=l,e[12]=t):t=e[12],t}default:{let t;return e[13]!==l?(t=s.jsx(j,{file:l}),e[13]=l,e[14]=t):t=e[14],t}}}export{I as F,M as a,E as f};
1
+ import{c as x,F as g,j as s,h as v,b2 as w,B as b}from"./index-Bm9FTdjr.js";import{n as y}from"./ZoomOut-BggitXDv.js";import{g as N}from"./use-org-fs-gQ0RuIPK.js";import{g as S}from"./utils-DAEMarMy.js";import{F as _}from"./editor-2jNHgdUN.js";import{F as k}from"./file-type-icon-DzYK4NqY.js";import{M as z}from"./markdown-B3PJYX-4.js";function U(n){const e=x.c(11),{value:l,filename:i}=n,[t]=g(),c=t.theme==="dark"||t.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==i?(o=S(i),e[0]=i,e[1]=o):o=e[1];const m=c?"vs-dark":"light";let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(v,{className:"size-5 text-muted-foreground"})}),e[2]=a):a=e[2];let r,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={enabled:!1},d={top:12,bottom:12},e[3]=r,e[4]=d):(r=e[3],d=e[4]);let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:r,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=f):f=e[5];let u;return e[6]!==i||e[7]!==o||e[8]!==m||e[9]!==l?(u=s.jsx(_,{path:i,language:o,value:l,theme:m,loading:a,options:f},i),e[6]=i,e[7]=o,e[8]=m,e[9]=l,e[10]=u):u=e[10],u}function F(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const E=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),T=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),h=2*1024*1024;function $(n,e){const l=n.split(".").pop()?.toLowerCase()??"";return E.has(l)?"image":l==="pdf"?"pdf":l==="html"||l==="htm"?"html":l==="md"||l==="markdown"?e<=h?"markdown":"download":T.has(l)&&e<=h?"text":"download"}function M(){const n=x.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(w,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let l;return n[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(w,{className:"h-3 w-full"}),s.jsx(w,{className:"h-3 w-5/6"}),s.jsx(w,{className:"h-3 w-2/3"})]})]})}),n[1]=l):l=n[1],l}function j(n){const e=x.c(20),{file:l,note:i}=n;let t;e[0]!==l.filename?(t=s.jsx(k,{filename:l.filename,className:"h-12 w-10"}),e[0]=l.filename,e[1]=t):t=e[1];let c;e[2]!==l.filename?(c=s.jsx("span",{className:"text-sm font-medium text-foreground",children:l.filename}),e[2]=l.filename,e[3]=c):c=e[3];let o;e[4]!==l.size?(o=F(l.size),e[4]=l.size,e[5]=o):o=e[5];const m=i?` · ${i}`:"";let a;e[6]!==o||e[7]!==m?(a=s.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,m]}),e[6]=o,e[7]=m,e[8]=a):a=e[8];let r;e[9]!==c||e[10]!==a?(r=s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[c,a]}),e[9]=c,e[10]=a,e[11]=r):r=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(y,{size:14}),e[12]=d):d=e[12];let f;e[13]!==l.downloadUrl||e[14]!==l.filename?(f=s.jsx(b,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:l.downloadUrl,download:l.filename,children:[d,"Download"]})}),e[13]=l.downloadUrl,e[14]=l.filename,e[15]=f):f=e[15];let u;return e[16]!==t||e[17]!==r||e[18]!==f?(u=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[t,r,f]})}),e[16]=t,e[17]=r,e[18]=f,e[19]=u):u=e[19],u}function p(n){const e=x.c(9),{file:l,markdown:i}=n,{data:t,isPending:c,isError:o}=N(l.downloadUrl);if(c){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(M,{}),e[0]=a):a=e[0],a}if(o||!t){let a;return e[1]!==l?(a=s.jsx(j,{file:l,note:"preview unavailable"}),e[1]=l,e[2]=a):a=e[2],a}if(i){const a=`file-preview-${l.key}`;let r;return e[3]!==t||e[4]!==a?(r=s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:s.jsx(z,{id:a,text:t})})}),e[3]=t,e[4]=a,e[5]=r):r=e[5],r}let m;return e[6]!==t||e[7]!==l.filename?(m=s.jsx(U,{value:t,filename:l.filename}),e[6]=t,e[7]=l.filename,e[8]=m):m=e[8],m}function I(n){const e=x.c(15),{file:l}=n;switch($(l.filename,l.size)){case"image":{let t;return e[0]!==l.downloadUrl||e[1]!==l.filename?(t=s.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:s.jsx("img",{src:l.downloadUrl,alt:l.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=l.downloadUrl,e[1]=l.filename,e[2]=t):t=e[2],t}case"pdf":{let t;return e[3]!==l.downloadUrl||e[4]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-same-origin allow-downloads",className:"block h-full w-full bg-white"}),e[3]=l.downloadUrl,e[4]=l.filename,e[5]=t):t=e[5],t}case"html":{let t;return e[6]!==l.downloadUrl||e[7]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=l.downloadUrl,e[7]=l.filename,e[8]=t):t=e[8],t}case"markdown":{let t;return e[9]!==l?(t=s.jsx(p,{file:l,markdown:!0}),e[9]=l,e[10]=t):t=e[10],t}case"text":{let t;return e[11]!==l?(t=s.jsx(p,{file:l,markdown:!1}),e[11]=l,e[12]=t):t=e[12],t}default:{let t;return e[13]!==l?(t=s.jsx(j,{file:l}),e[13]=l,e[14]=t):t=e[14],t}}}export{I as F,M as a,F as f};
@@ -0,0 +1,3 @@
1
+ import{c as te,b as se,j as t,B as _,aU as ue,l as ee,X as fe,T as he,V as me,U as re,n as pe,a6 as xe,a2 as be,o as ve,r as D,t as G,K as ie,ah as we,af as ke,I as ge,s as ye,v as Se,q as je,D as Te}from"./index-Bm9FTdjr.js";import{b as Q,T as Y,a as X}from"./tooltip-XZmQWwgB.js";import{n as ae}from"./ZoomOut-BggitXDv.js";import{ap as Me,a$ as Ce,b as De,m as Pe,d as le,b0 as ze}from"./agent-icon-BewGjsar.js";import{c as Ne,e as Ee,d as Oe,u as $e}from"./use-org-fs-gQ0RuIPK.js";import{a as Be,b as Re,P as Ie}from"./popover-jNB4XciF.js";import{a as Ue}from"./Copy01-CdRMK9o7.js";import{i as Ae}from"./Key01-DcSonP-G.js";function oe(n){return n==="bar"?{variant:"ghost",size:"icon"}:{variant:"secondary",size:"icon-sm"}}function Le(n){const e=te.c(73),{readUrl:u,editor:a,downloadName:h,trailing:v,className:m,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==u?(p=new URL(u,window.location.origin).toString(),e[0]=u,e[1]=p):p=e[1];const l=p;let A;e[2]!==r?(A=oe(r),e[2]=r,e[3]=A):A=e[3];const d=A;let x;e[4]!==a.agentUpdated||e[5]!==a.reload||e[6]!==s?(x=a.agentUpdated&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsxs(_,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:a.reload,children:[t.jsx(ue,{size:12}),s("deck.deckToolbar.agentUpdatedReload")]})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.agentRewriteWarning")})]}),e[4]=a.agentUpdated,e[5]=a.reload,e[6]=s,e[7]=x):x=e[7];let g;e[8]!==a.saving||e[9]!==s?(g=a.saving&&t.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:s("deck.deckToolbar.saving")}),e[8]=a.saving,e[9]=s,e[10]=g):g=e[10];let S;e[11]!==d.size||e[12]!==d.variant||e[13]!==a||e[14]!==s?(S=a.deckDetected&&a.writable&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:a.editMode?"secondary":d.variant,size:d.size,"aria-pressed":a.editMode,"aria-label":a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInline"),className:ee(a.editMode&&"text-primary"),onClick:()=>a.setEditMode(!a.editMode),children:t.jsx(Me,{size:14})})}),t.jsx(X,{side:"bottom",children:a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInlineTooltip")})]}),e[11]=d.size,e[12]=d.variant,e[13]=a,e[14]=s,e[15]=S):S=e[15];let w;e[16]!==l||e[17]!==d.size||e[18]!==d.variant||e[19]!==h||e[20]!==a.deckDetected||e[21]!==s?(w=a.deckDetected?t.jsxs(fe,{children:[t.jsx(he,{asChild:!0,children:t.jsx(_,{variant:d.variant,size:d.size,"aria-label":s("deck.deckToolbar.download"),children:t.jsx(ae,{size:14})})}),t.jsxs(me,{align:"end",children:[t.jsxs(re,{onClick:()=>window.open(`${l}#print`,"_blank","noopener"),children:[t.jsx(Ce,{size:14}),s("deck.deckToolbar.exportAsPdf")]}),t.jsx(re,{asChild:!0,children:t.jsxs("a",{href:l,download:h,children:[t.jsx(De,{size:14}),s("deck.deckToolbar.downloadHtml")]})})]})]}):t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:d.variant,size:d.size,"aria-label":s("deck.deckToolbar.download"),asChild:!0,children:t.jsx("a",{href:l,download:h,children:t.jsx(ae,{size:14})})})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.download")})]}),e[16]=l,e[17]=d.size,e[18]=d.variant,e[19]=h,e[20]=a.deckDetected,e[21]=s,e[22]=w):w=e[22];const j=d.variant,P=d.size;let T;e[23]!==s?(T=s("deck.deckToolbar.openInNewTab"),e[23]=s,e[24]=T):T=e[24];let M;e[25]!==l?(M=()=>window.open(l,"_blank","noopener"),e[25]=l,e[26]=M):M=e[26];let L;e[27]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(xe,{size:14}),e[27]=L):L=e[27];let c;e[28]!==d.size||e[29]!==d.variant||e[30]!==T||e[31]!==M?(c=t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:j,size:P,"aria-label":T,onClick:M,children:L})}),e[28]=d.size,e[29]=d.variant,e[30]=T,e[31]=M,e[32]=c):c=e[32];let B;e[33]!==s?(B=s("deck.deckToolbar.openInNewTab"),e[33]=s,e[34]=B):B=e[34];let R;e[35]!==B?(R=t.jsx(X,{side:"bottom",children:B}),e[35]=B,e[36]=R):R=e[36];let b;e[37]!==c||e[38]!==R?(b=t.jsxs(Q,{children:[c,R]}),e[37]=c,e[38]=R,e[39]=b):b=e[39];let O;e[40]!==b||e[41]!==x||e[42]!==g||e[43]!==S||e[44]!==w||e[45]!==v?(O=t.jsxs(t.Fragment,{children:[x,g,S,w,b,v]}),e[40]=b,e[41]=x,e[42]=g,e[43]=S,e[44]=w,e[45]=v,e[46]=O):O=e[46];const I=O;let F;e[47]!==a.railOpen||e[48]!==s?(F=a.railOpen?s("deck.deckToolbar.hideSlideList"):s("deck.deckToolbar.showSlideList"),e[47]=a.railOpen,e[48]=s,e[49]=F):F=e[49];const z=F;let $;e[50]!==d.size||e[51]!==d.variant||e[52]!==a||e[53]!==z?($=a.deckDetected&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:a.railOpen?"secondary":d.variant,size:d.size,"aria-pressed":a.railOpen,"aria-label":z,onClick:()=>a.setRailOpen(!a.railOpen),children:t.jsx(Pe,{size:14})})}),t.jsx(X,{side:"bottom",children:z})]}),e[50]=d.size,e[51]=d.variant,e[52]=a,e[53]=z,e[54]=$):$=e[54];const C=$;if(r==="topbar"){let o;return e[55]!==I||e[56]!==C?(o=t.jsxs(pe.Actions,{children:[C,I]}),e[55]=I,e[56]=C,e[57]=o):o=e[57],o}let k;e[58]!==m?(k=ee("flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",m),e[58]=m,e[59]=k):k=e[59];let N;e[60]!==l?(N=()=>window.open(l,"_blank","noopener"),e[60]=l,e[61]=N):N=e[61];let E;e[62]!==h?(E=t.jsx("span",{className:"truncate",children:h}),e[62]=h,e[63]=E):E=e[63];let U;e[64]!==l||e[65]!==N||e[66]!==E?(U=t.jsx("button",{type:"button",onClick:N,className:"flex min-w-0 flex-1 items-center rounded-lg px-2 py-1 text-left text-sm font-medium text-foreground transition-colors hover:bg-muted",title:l,children:E}),e[64]=l,e[65]=N,e[66]=E,e[67]=U):U=e[67];let i;return e[68]!==I||e[69]!==C||e[70]!==k||e[71]!==U?(i=t.jsxs("div",{className:k,children:[C,U,I]}),e[68]=I,e[69]=C,e[70]=k,e[71]=U,e[72]=i):i=e[72],i}const Z=1;function Fe(n){if(typeof n!="object"||n===null||n.v!==Z||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 q extends Error{constructor(e,u){super(e),this.code=u,this.name="DeckOpError"}code}function ce(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function _e(n){const u=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return u?ce(u).length:null}function qe(n,e){const u=new DOMParser().parseFromString(n,"text/html"),a=u.querySelector("deck-viewer");if(!a)throw new q("no <deck-viewer> element in source","no-viewer");const h=ce(a),v=e.kind==="move"?e.from:e.at,m=h[v];if(!m)throw new q(`slide index ${v} out of range (${h.length})`,"stale-index");switch(e.kind){case"remove":{if(h.length<=1)throw new q("cannot remove the last slide","bad-op");m.remove();break}case"duplicate":{const r=m.cloneNode(!0);r.removeAttribute("id");for(const s of r.querySelectorAll("[id]"))s.removeAttribute("id");m.after(r);break}case"move":{if(e.to<0||e.to>=h.length)throw new q(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const r=e.to<e.from?h[e.to]:h[e.to].nextSibling;a.insertBefore(m,r)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new q(`invalid attribute name: ${e.name}`,"bad-op");m.setAttribute(e.name,e.value);break}case"remove-attr":{m.removeAttribute(e.name);break}case"replace":{const s=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!s)throw new q("replace html has no root element","bad-op");m.replaceWith(u.importNode(s,!0));break}default:throw new q(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
2
+ `:""}${u.documentElement.outerHTML}
3
+ `}const ne="home",Ke=400,He=800;function Ve(n){const e=n.savePath!==void 0,{org:u}=be(),a=ve(),h=Ne(ne),[v,m]=D.useState(!1),[f,r]=D.useState(!1),[s,p]=D.useState(!1),[l,A]=D.useState(!1),[d,x]=D.useState(!1),[g,S]=D.useState(!1),[w,j]=D.useState(null),[P,T]=D.useState(null),[M,L]=D.useState(0),[c]=D.useState(()=>({iframe:null,source:null,queue:Promise.resolve(),saveTimer:null,selfMarkers:new Set})),B=v||g||d,R=()=>{n.savePath!==void 0&&(a.invalidateQueries({queryKey:ie.orgFsStat(u.id,ne,n.savePath)}),a.invalidateQueries({queryKey:ie.orgFsRecent(u.id)}))},b=i=>{c.iframe?.contentWindow?.postMessage(i,"*")},O=()=>{c.source=null,A(!1),P&&j(P),L(i=>i+1),R()};n.statMarker!==P&&(T(n.statMarker),n.statMarker!==null&&(w===null?j(n.statMarker):c.selfMarkers.has(n.statMarker)||n.statMarker!==w&&(B?A(!0):(c.source=null,j(n.statMarker)))));const I=async()=>{c.saveTimer=null;const i=c.source;if(i===null){S(!1);return}x(!0);try{const o=await h.mutateAsync({path:n.savePath,body:i});c.selfMarkers.add(Ee(o)),R()}catch(o){console.error("[deck-editor] save failed",o),G.error("Couldn't save deck edits — reloading the preview."),k.current.reload()}finally{x(!1),S(!1)}},F=i=>{S(!0),c.saveTimer&&clearTimeout(c.saveTimer),c.saveTimer=setTimeout(()=>{k.current.flushSave()},i)},z=(i,o,y)=>{b({v:Z,type:"ack",opId:i,ok:o,error:y})},$=async i=>{if(!e){z(i.opId,!1,"read-only preview");return}try{if(c.source===null){const y=await fetch(n.readUrl,{credentials:"include"});if(!y.ok)throw new Error(`HTTP ${y.status}`);c.source=await y.text()}const o=_e(c.source);if(o===null||o!==i.witness.childCount)throw new q(`slide count drifted (source ${o}, iframe ${i.witness.childCount})`,"stale-index");c.source=qe(c.source,i.op),z(i.opId,!0),F(i.op.kind==="replace"?He:Ke)}catch(o){console.error("[deck-editor] op failed",i.op,o),z(i.opId,!1,o instanceof Error?o.message:String(o)),G.error("That edit couldn't be saved — reloading the preview."),k.current.reload()}},C=i=>{if(!c.iframe||i.source!==c.iframe.contentWindow)return;const o=Fe(i.data);if(o){if(o.type==="ready"){r(!0),k.current.editMode?b({v:Z,type:"set-edit-mode",enabled:!0}):k.current.railOpen&&b({v:Z,type:"set-rail",open:!0});return}o.type==="op"&&(c.queue=c.queue.then(()=>k.current.handleOp(o)).catch(()=>{}))}},k=D.useRef({onMessage:C,handleOp:$,flushSave:I,reload:O,editMode:v,railOpen:s});k.current={onMessage:C,handleOp:$,flushSave:I,reload:O,editMode:v,railOpen:s};const[N]=D.useState(()=>{let i=null;return o=>{if(o){c.iframe=o;const y=K=>k.current.onMessage(K);window.addEventListener("message",y),i=()=>window.removeEventListener("message",y)}else i?.(),i=null,c.iframe=null}}),E=i=>{p(i),b({v:Z,type:"set-rail",open:i})},U=i=>{m(i),b({v:Z,type:"set-edit-mode",enabled:i}),i&&p(!0),!i&&l&&!g&&!d&&O()};return{iframeRef:N,deckDetected:f,writable:e,displayedMarker:w===null?null:`${w}.${M}`,editMode:v,setEditMode:U,railOpen:s,setRailOpen:E,saving:d,agentUpdated:l,reload:O,postToIframe:b}}const We=300;function rt({readUrl:n,marker:e,title:u,savePath:a,trailing:h,toolbarClassName:v,placement:m}){const f=Ve({readUrl:n,statMarker:e,savePath:a}),[r,s]=D.useState(null);if(f.displayedMarker===null)return null;const p=n.includes("?")?"&":"?",l=`${n}${p}v=${encodeURIComponent(f.displayedMarker)}`,A=r===l;return t.jsxs("div",{className:"flex h-full w-full flex-col bg-background",children:[t.jsx(Le,{readUrl:n,editor:f,downloadName:u.split("/").pop()??u,trailing:h,className:v,placement:m}),t.jsx("div",{className:"relative flex-1",children:t.jsx("iframe",{ref:f.iframeRef,src:l,onLoad:()=>s(l),sandbox:"allow-scripts allow-downloads",className:ee("absolute inset-0 block h-full w-full bg-white","transition-opacity ease-out",A?"opacity-100":"opacity-0"),style:{transitionDuration:`${We}ms`},title:u},l)})]})}const Qe=[{mode:"private",labelKey:"library.fileShareButton.modeOrgOnly",Icon:ke},{mode:"public",labelKey:"library.fileShareButton.modePublic",Icon:le},{mode:"password",labelKey:"library.fileShareButton.modePassword",Icon:Ae}];function de(n){const e=te.c(56),{volume:u,path:a,kind:h,shareMode:v,effectivePublic:m,url:f}=n,r=se(),s=Oe(u),{data:p}=$e(u,a),l=p?.shareMode??v,d=(p?.effectivePublic??m)&&l==="private",x=h==="dir",g=x?"folder":"file",[S,w]=D.useState(!1),[j,P]=D.useState(""),[T,M]=D.useState(!1);let L;e[0]!==a||e[1]!==s||e[2]!==g||e[3]!==r?(L=(i,o)=>{s.mutate({path:a,mode:i,password:o},{onSuccess:()=>{w(!1),P(""),G.success(i==="private"?r("library.fileShareButton.toastOrgOnly",{subject:g}):i==="public"?r("library.fileShareButton.toastPublic",{subject:g}):r("library.fileShareButton.toastPassword",{subject:g}))},onError:y=>G.error(y instanceof Error?y.message:r("library.fileShareButton.failedUpdateSharing"))})},e[0]=a,e[1]=s,e[2]=g,e[3]=r,e[4]=L):L=e[4];const c=L;let B;e[5]!==c?(B=i=>{if(i==="password"){w(!0);return}w(!1),c(i)},e[5]=c,e[6]=B):B=e[6];const R=B,b=S?"password":l;let O;e[7]!==r||e[8]!==f?(O=async()=>{f&&(await navigator.clipboard.writeText(f),M(!0),G.success(r("library.fileShareButton.linkCopied")),setTimeout(()=>M(!1),2e3))},e[7]=r,e[8]=f,e[9]=O):O=e[9];const I=O;let F;e[10]!==T||e[11]!==I||e[12]!==r||e[13]!==f?(F=f?t.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-input bg-muted/50 px-2 py-1.5",children:[t.jsx("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f}),t.jsx(_,{variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:I,"aria-label":r("library.fileShareButton.copyLink"),children:T?t.jsx(we,{size:12,className:"text-success"}):t.jsx(Ue,{size:12})})]}):null,e[10]=T,e[11]=I,e[12]=r,e[13]=f,e[14]=F):F=e[14];const z=F;if(d){let i;e[15]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:t.jsx(le,{size:16})}),e[15]=i):i=e[15];let o;e[16]!==r?(o=r("library.fileShareButton.sharedViaParent"),e[16]=r,e[17]=o):o=e[17];let y;e[18]!==o?(y=t.jsx("span",{className:"text-sm font-medium text-foreground",children:o}),e[18]=o,e[19]=y):y=e[19];const K=x?"files in this folder":"this file";let H;e[20]!==r||e[21]!==K?(H=r("library.fileShareButton.inheritedDescription",{target:K}),e[20]=r,e[21]=K,e[22]=H):H=e[22];let V;e[23]!==H?(V=t.jsx("span",{className:"text-xs text-muted-foreground",children:H}),e[23]=H,e[24]=V):V=e[24];let W;e[25]!==V||e[26]!==y?(W=t.jsxs("div",{className:"flex items-start gap-3",children:[i,t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[y,V]})]}),e[25]=V,e[26]=y,e[27]=W):W=e[27];let J;return e[28]!==z||e[29]!==W?(J=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[W,z]}),e[28]=z,e[29]=W,e[30]=J):J=e[30],J}let $;e[31]!==b||e[32]!==R||e[33]!==s.isPending||e[34]!==r?($=Qe.map(i=>{const{mode:o,labelKey:y,Icon:K}=i;return t.jsxs("button",{type:"button",disabled:s.isPending,onClick:()=>R(o),className:ee("flex flex-col items-center gap-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors disabled:opacity-60",b===o?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[t.jsx(K,{size:15}),r(y)]},o)}),e[31]=b,e[32]=R,e[33]=s.isPending,e[34]=r,e[35]=$):$=e[35];let C;e[36]!==$?(C=t.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-lg bg-muted p-1",children:$}),e[36]=$,e[37]=C):C=e[37];let k;e[38]!==b||e[39]!==x||e[40]!==r?(k=b==="private"?r("library.fileShareButton.privateDescription",{target:x?"these files":"this link"}):b==="public"?r(x?"library.fileShareButton.publicFolderDescription":"library.fileShareButton.publicFileDescription"):r("library.fileShareButton.passwordDescription",{target:x?"files in this folder":"this file"}),e[38]=b,e[39]=x,e[40]=r,e[41]=k):k=e[41];let N;e[42]!==k?(N=t.jsx("p",{className:"text-xs text-muted-foreground",children:k}),e[42]=k,e[43]=N):N=e[43];let E;e[44]!==b||e[45]!==c||e[46]!==l||e[47]!==j||e[48]!==s.isPending||e[49]!==r?(E=b==="password"&&t.jsxs("form",{className:"flex items-center gap-2",onSubmit:i=>{i.preventDefault(),j&&c("password",j)},children:[t.jsx(ge,{type:"password",value:j,onChange:i=>P(i.target.value),placeholder:r(l==="password"?"library.fileShareButton.newPasswordPlaceholder":"library.fileShareButton.passwordPlaceholder"),autoComplete:"new-password",className:"h-8 text-xs"}),t.jsx(_,{type:"submit",size:"sm",className:"shrink-0",disabled:!j||s.isPending,children:r(l==="password"?"library.fileShareButton.buttonUpdate":"library.fileShareButton.buttonSet")})]}),e[44]=b,e[45]=c,e[46]=l,e[47]=j,e[48]=s.isPending,e[49]=r,e[50]=E):E=e[50];let U;return e[51]!==z||e[52]!==C||e[53]!==N||e[54]!==E?(U=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[C,N,E,z]}),e[51]=z,e[52]=C,e[53]=N,e[54]=E,e[55]=U):U=e[55],U}function it(n){const e=te.c(25),{volume:u,path:a,shareMode:h,effectivePublic:v,url:m,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==r?(p=oe(r),e[0]=r,e[1]=p):p=e[1];const l=p,A=l.variant,d=l.size;let x;e[2]!==s?(x=s("library.fileShareButton.share"),e[2]=s,e[3]=x):x=e[3];let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(ze,{size:14}),e[4]=g):g=e[4];let S;e[5]!==l.size||e[6]!==l.variant||e[7]!==x?(S=t.jsx(Y,{asChild:!0,children:t.jsx(Be,{asChild:!0,children:t.jsx(_,{variant:A,size:d,"aria-label":x,children:g})})}),e[5]=l.size,e[6]=l.variant,e[7]=x,e[8]=S):S=e[8];let w;e[9]!==s?(w=s("library.fileShareButton.share"),e[9]=s,e[10]=w):w=e[10];let j;e[11]!==w?(j=t.jsx(X,{side:"bottom",children:w}),e[11]=w,e[12]=j):j=e[12];let P;e[13]!==S||e[14]!==j?(P=t.jsxs(Q,{children:[S,j]}),e[13]=S,e[14]=j,e[15]=P):P=e[15];let T;e[16]!==v||e[17]!==a||e[18]!==h||e[19]!==m||e[20]!==u?(T=t.jsx(Re,{align:"end",className:"w-80 p-3",children:t.jsx(de,{volume:u,path:a,kind:"file",shareMode:h,effectivePublic:v,url:m})}),e[16]=v,e[17]=a,e[18]=h,e[19]=m,e[20]=u,e[21]=T):T=e[21];let M;return e[22]!==P||e[23]!==T?(M=t.jsxs(Ie,{children:[P,T]}),e[22]=P,e[23]=T,e[24]=M):M=e[24],M}function at(n){const e=te.c(14),{target:u,onOpenChange:a}=n,h=se(),v=!!u,m=u?.kind==="dir"?"folder":"file";let f;e[0]!==h||e[1]!==m?(f=h("library.fileShareButton.shareDialogTitle",{type:m}),e[0]=h,e[1]=m,e[2]=f):f=e[2];let r;e[3]!==f?(r=t.jsx(ye,{children:t.jsx(Se,{children:f})}),e[3]=f,e[4]=r):r=e[4];let s;e[5]!==u?(s=u&&t.jsx(de,{...u}),e[5]=u,e[6]=s):s=e[6];let p;e[7]!==r||e[8]!==s?(p=t.jsxs(je,{className:"sm:max-w-md",children:[r,s]}),e[7]=r,e[8]=s,e[9]=p):p=e[9];let l;return e[10]!==a||e[11]!==v||e[12]!==p?(l=t.jsx(Te,{open:v,onOpenChange:a,children:p}),e[10]=a,e[11]=v,e[12]=p,e[13]=l):l=e[13],l}export{it as F,rt as H,at as S,oe as t};
@@ -1 +1 @@
1
- import{c as g,j as o}from"./index-D_7jfHk6.js";const h={pdf:"#D92D20",doc:"#155EEF",docx:"#155EEF",txt:"#475467",md:"#475467",xls:"#099250",xlsx:"#099250",csv:"#099250",tsv:"#099250",json:"#475467",xml:"#475467",yaml:"#475467",yml:"#475467",ppt:"#DC6803",pptx:"#DC6803",key:"#DC6803",png:"#7F56D9",jpg:"#7F56D9",jpeg:"#7F56D9",gif:"#7F56D9",webp:"#7F56D9",svg:"#7F56D9",avif:"#7F56D9",mp3:"#DD2590",wav:"#DD2590",mp4:"#DD2590",mov:"#DD2590",webm:"#DD2590",zip:"#475467",tar:"#475467",gz:"#475467",rar:"#475467",html:"#DC6803",htm:"#DC6803",css:"#155EEF",js:"#155EEF",jsx:"#155EEF",ts:"#155EEF",tsx:"#155EEF",py:"#155EEF",sql:"#155EEF",sh:"#475467"},F="#475467",D={pdf:"PDF",doc:"Word document",docx:"Word document",txt:"Text file",md:"Markdown",xls:"Excel file",xlsx:"Excel file",csv:"CSV file",tsv:"TSV file",json:"JSON file",xml:"XML file",yaml:"YAML file",yml:"YAML file",ppt:"Presentation",pptx:"Presentation",key:"Presentation",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",svg:"Image",avif:"Image",mp3:"Audio",wav:"Audio",mp4:"Video",mov:"Video",webm:"Video",zip:"Archive",tar:"Archive",gz:"Archive",rar:"Archive",html:"HTML file",htm:"HTML file"};function v(l){const e=f(l);return e?D[e]??`${e.toUpperCase()} file`:"File"}function f(l){const e=l.lastIndexOf(".");if(e<=0||e===l.length-1)return null;const t=l.slice(e+1).toLowerCase();return t.length>4||!/^[a-z0-9]+$/.test(t)?null:t}function u(l){const e=g.c(17);let t,n;e[0]!==l?({filename:t,...n}=l,e[0]=l,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s,i,a;e[3]!==t?(i=f(t),s=i?h[i]??F:null,a=i?.toUpperCase()??"",e[3]=t,e[4]=s,e[5]=i,e[6]=a):(s=e[4],i=e[5],a=e[6]);const c=a,m=Math.min(8+c.length*4.6,28);let p,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("path",{d:"M19.5 1H8a4 4 0 0 0-4 4v30a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V9.5L19.5 1Z",className:"fill-background stroke-border",strokeWidth:"1.5"}),x=o.jsx("path",{d:"M19.5 1v4.5a4 4 0 0 0 4 4H28",className:"stroke-border",strokeWidth:"1.5"}),e[7]=p,e[8]=x):(p=e[7],x=e[8]);let r;e[9]!==m||e[10]!==s||e[11]!==i||e[12]!==c?(r=i&&s&&o.jsxs(o.Fragment,{children:[o.jsx("rect",{x:"1",y:"20",width:m,height:"12",rx:"3",fill:s}),o.jsx("text",{x:1+m/2,y:"29",textAnchor:"middle",fontSize:"7",fontWeight:"700",letterSpacing:"0.2",fill:"#FFFFFF",style:{fontFamily:"inherit"},children:c})]}),e[9]=m,e[10]=s,e[11]=i,e[12]=c,e[13]=r):r=e[13];let d;return e[14]!==n||e[15]!==r?(d=o.jsxs("svg",{viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[p,x,r]}),e[14]=n,e[15]=r,e[16]=d):d=e[16],d}export{u as F,v as d};
1
+ import{c as g,j as o}from"./index-Bm9FTdjr.js";const h={pdf:"#D92D20",doc:"#155EEF",docx:"#155EEF",txt:"#475467",md:"#475467",xls:"#099250",xlsx:"#099250",csv:"#099250",tsv:"#099250",json:"#475467",xml:"#475467",yaml:"#475467",yml:"#475467",ppt:"#DC6803",pptx:"#DC6803",key:"#DC6803",png:"#7F56D9",jpg:"#7F56D9",jpeg:"#7F56D9",gif:"#7F56D9",webp:"#7F56D9",svg:"#7F56D9",avif:"#7F56D9",mp3:"#DD2590",wav:"#DD2590",mp4:"#DD2590",mov:"#DD2590",webm:"#DD2590",zip:"#475467",tar:"#475467",gz:"#475467",rar:"#475467",html:"#DC6803",htm:"#DC6803",css:"#155EEF",js:"#155EEF",jsx:"#155EEF",ts:"#155EEF",tsx:"#155EEF",py:"#155EEF",sql:"#155EEF",sh:"#475467"},F="#475467",D={pdf:"PDF",doc:"Word document",docx:"Word document",txt:"Text file",md:"Markdown",xls:"Excel file",xlsx:"Excel file",csv:"CSV file",tsv:"TSV file",json:"JSON file",xml:"XML file",yaml:"YAML file",yml:"YAML file",ppt:"Presentation",pptx:"Presentation",key:"Presentation",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",svg:"Image",avif:"Image",mp3:"Audio",wav:"Audio",mp4:"Video",mov:"Video",webm:"Video",zip:"Archive",tar:"Archive",gz:"Archive",rar:"Archive",html:"HTML file",htm:"HTML file"};function v(l){const e=f(l);return e?D[e]??`${e.toUpperCase()} file`:"File"}function f(l){const e=l.lastIndexOf(".");if(e<=0||e===l.length-1)return null;const t=l.slice(e+1).toLowerCase();return t.length>4||!/^[a-z0-9]+$/.test(t)?null:t}function u(l){const e=g.c(17);let t,n;e[0]!==l?({filename:t,...n}=l,e[0]=l,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s,i,a;e[3]!==t?(i=f(t),s=i?h[i]??F:null,a=i?.toUpperCase()??"",e[3]=t,e[4]=s,e[5]=i,e[6]=a):(s=e[4],i=e[5],a=e[6]);const c=a,m=Math.min(8+c.length*4.6,28);let p,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("path",{d:"M19.5 1H8a4 4 0 0 0-4 4v30a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V9.5L19.5 1Z",className:"fill-background stroke-border",strokeWidth:"1.5"}),x=o.jsx("path",{d:"M19.5 1v4.5a4 4 0 0 0 4 4H28",className:"stroke-border",strokeWidth:"1.5"}),e[7]=p,e[8]=x):(p=e[7],x=e[8]);let r;e[9]!==m||e[10]!==s||e[11]!==i||e[12]!==c?(r=i&&s&&o.jsxs(o.Fragment,{children:[o.jsx("rect",{x:"1",y:"20",width:m,height:"12",rx:"3",fill:s}),o.jsx("text",{x:1+m/2,y:"29",textAnchor:"middle",fontSize:"7",fontWeight:"700",letterSpacing:"0.2",fill:"#FFFFFF",style:{fontFamily:"inherit"},children:c})]}),e[9]=m,e[10]=s,e[11]=i,e[12]=c,e[13]=r):r=e[13];let d;return e[14]!==n||e[15]!==r?(d=o.jsxs("svg",{viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[p,x,r]}),e[14]=n,e[15]=r,e[16]=d):d=e[16],d}export{u as F,v as d};
@@ -0,0 +1 @@
1
+ import{c as g,u as _,j as o,r as S,h as k,a2 as w,am as C,n as y,b as N,d as T,P as F}from"./index-Bm9FTdjr.js";import{k as $,p as R}from"./agent-icon-BewGjsar.js";import{c as E}from"./SwitchHorizontal01-BHr8jCjb.js";import{V as I}from"./view-mode-toggle-DPJfZa3C.js";import{C as V}from"./index-BVmIdqXu.js";import{s as B}from"./thread-button-BdyWFdme.js";import{P as L}from"./projects-empty-state-BuMMPopD.js";import{T as A}from"./index-DmfwrRER.js";import{B as M}from"./board-analytics-UmA2i-Sq.js";import{L as z}from"./library-tab-2usQWRYi.js";import{p as O}from"./location-BjlyegC2.js";import{u as U}from"./use-ensure-project-folder-A0But3O1.js";import{s as H}from"./use-project-scope-BxCbtcTE.js";import{b as q}from"./repository-binding-D2wL-4Vr.js";import"./AlertCircle-B5gBB9h_.js";import"./Tool01-DQnW-zjg.js";import"./ArrowUp-CP6XCJnB.js";import"./ArrowLeft-B7455tPl.js";import"./LinkBroken01-BZFZ6N-h.js";import"./ShoppingBag01-Ci8H67G0.js";import"./ZoomOut-BggitXDv.js";import"./Building02-BZItaEYx.js";import"./CheckCircle-C3CiaCW4.js";import"./ChevronUp-nynZHATg.js";import"./ChevronSelectorVertical-DIPs2sw-.js";import"./UserSquare-CuRnLJZ6.js";import"./Copy01-CdRMK9o7.js";import"./CreditCard01-DVQTLvKO.js";import"./DotsVertical-3XBYz4yU.js";import"./Image01-DdBetDCI.js";import"./Globe04-DoxNod_i.js";import"./Key01-DcSonP-G.js";import"./Link01-3BacRGrf.js";import"./Monitor01-DU19-CHk.js";import"./Sun-D1Mdg8Cq.js";import"./Play-B7i_-ibU.js";import"./Plus-XYNDZJ4s.js";import"./SearchMd-BFitEH5z.js";import"./Trash01-DZ8laRwu.js";import"./Upload01-CrRTpeMX.js";import"./User01-9bZ-cKa7.js";import"./Users01-cUGZjxDe.js";import"./XClose-DjFCAP5F.js";import"./tooltip-XZmQWwgB.js";import"./index-D2iZ6syL.js";import"./use-mobile-UYmsi-dp.js";import"./resizable-CGWosOTw.js";import"./use-chat-layout-state-J-94EUwt.js";import"./use-file-configs-B8mqylSR.js";import"./use-organization-settings-xcc5-6DS.js";import"./schema-C_wSANSe.js";import"./task-board-Bgw_xVJW.js";import"./site-slug-DebpOoQq.js";import"./thread-route-mhniW_q8.js";import"./use-panel-navigate-A1obvdVI.js";import"./thread-intent-DzHkd78g.js";import"./use-mcp-client-Dh_4AZgb.js";import"./auth-Dwu4WH32.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DmOqvBBq.js";import"./slugify-CEUa2lfQ.js";import"./icon-button-sHj7Q6Fp.js";import"./toolbar-icon-button-CZBCq2Ko.js";import"./sheet-D-h-caij.js";import"./shell-layout-Ckss0QqA.js";import"./avatar-BEl6nltF.js";import"./use-clock-tick-rPXqIJP8.js";import"./command-D2QlwSrW.js";import"./index-s6P2p4h7.js";import"./integration-icon-DoYtKqdf.js";import"./project-icon-D2vCEWQy.js";import"./new-project-dialog-C-thpPQ-.js";import"./label-BL2W0Pcn.js";import"./repository-import-picker-DtM7QfYh.js";import"./use-navigate-to-agent-DDZo26Jw.js";import"./repository-picker-28zwGBgK.js";import"./useInfiniteQuery-vZqvTY4f.js";import"./infiniteQueryObserver-zxl9Rj5F.js";import"./collection-search-BC0JMMNp.js";import"./use-debounced-value-D5_QO1dT.js";import"./required-auth-layout-CbgA2xIU.js";import"./autosend-BaKgBZDQ.js";import"./use-org-sso-DWtbATGD.js";import"./core.esm-Cvui6jds.js";import"./sortable.esm-DCsYtWcb.js";import"./use-task-board-analytics-v7nFgyEB.js";import"./combobox-DeXU4vSR.js";import"./popover-jNB4XciF.js";import"./usage-stats-BihPbkIg.js";import"./tool-namespace-CYa7zzrf.js";import"./form-BCYpCYIL.js";import"./utils-CVEq3hMx.js";import"./markdown-B3PJYX-4.js";import"./use-copy-B01v9eRq.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-1iPDcTcf.js";import"./chat-context-DJGYyGlB.js";import"./use-ai-providers-BP69qr77.js";import"./use-chat-navigation-BXZpM5MQ.js";import"./suggestion-Bso4uBRF.js";import"./column-rules-b8eo73o4.js";import"./badge-DFdotQFQ.js";import"./switch-DZo6rAtc.js";import"./textarea-bcNEcwC6.js";import"./use-org-fs-gQ0RuIPK.js";import"./use-automations-Biu6cV7d.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-Hgq_Klme.js";import"./use-task-board-items-erbHwxMh.js";import"./use-task-board-events-DHjlo-9e.js";import"./use-members-DQe3FYGy.js";import"./use-org-auth-client-CPbs0OVW.js";import"./select-BVEgIanS.js";import"./index-BdQq_4o_.js";import"./task-route-BxRkc6kt.js";import"./config-DP6xvcYW.js";import"./use-tags-Ch6_1it4.js";import"./calendar-CT7cVD7N.js";import"./alert-Dyx5I-Y3.js";import"./collapsible-CgZ4-XuF.js";import"./index-BhyQWjoM.js";import"./rich-text-link-control-CE4nCWAz.js";import"./index-wABYnbOM.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-CoXnP9ys.js";import"./use-connection-DUF3XC9E.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-C1CJm0mZ.js";import"./useSuspenseInfiniteQuery-DdGuWYX3.js";import"./pair-DXTFiJNl.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BLT3VM-G.js";import"./types-2TlDAuAc.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-LJf01t7x.js";import"./use-thread-outputs-7J4Ek_Zs.js";import"./file-type-icon-DzYK4NqY.js";import"./use-infinite-scroll-DewChEmc.js";import"./task-status-B92ESgef.js";import"./use-open-billing-url-C0JU6CzN.js";import"./chat-draft-DbBgaLY_.js";import"./separator-CJOPtNz-.js";import"./collection-tabs-DeQ7zbGh.js";import"./time-range-picker-BUGifbSV.js";import"./scroll-area-BT00diUA.js";import"./analytics-sections-BeEYJnmv.js";import"./chart-C-785ZEj.js";import"./index-GgiP6YIr.js";import"./symbol-Co3D-iSE.js";import"./CategoricalChart-DqN5Jy74.js";import"./table-Gm-jWCpy.js";import"./BarChart-Ch51NWPz.js";import"./tooltipContext-BpyR0oly.js";import"./ActiveShapeUtils-5xWWHSL1.js";import"./Sector-CYOl8Efm.js";import"./ErrorBarContext-Csmpy3UX.js";import"./AreaChart-BTyzss2a.js";import"./XAxis-DDG3qYHW.js";import"./alert-dialog-BXEG2ySJ.js";import"./use-org-repo-syncs-KkmagwRy.js";import"./file-share-button-C1EB3dOc.js";import"./preview-dialog-Dl22mWwN.js";import"./preview-content-B6K8Jkd_.js";import"./file-preview-DvxQuX3P.js";import"./utils-DAEMarMy.js";import"./editor-2jNHgdUN.js";import"./folder-icon-C_Jv4E7N.js";import"./empty-state-D8iC8fkc.js";function D(i){const t=g.c(25),{view:r}=i,p=N(),e=T();let m;t[0]!==e?(m=v=>e({to:".",search:P=>({...P,files:v==="files"||void 0,analytics:v==="analytics"||void 0,...v!=="project"?{task:void 0}:{}})}),t[0]=e,t[1]=m):m=t[1];const s=m;let b;t[2]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx(E,{}),t[2]=b):b=t[2];let x;t[3]!==p?(x=p("projects.flat.viewProject"),t[3]=p,t[4]=x):x=t[4];let f;t[5]!==x?(f={value:"project",icon:b,label:x},t[5]=x,t[6]=f):f=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx($,{}),t[7]=d):d=t[7];let l;t[8]!==p?(l=p("projects.flat.viewFiles"),t[8]=p,t[9]=l):l=t[9];let a;t[10]!==l?(a={value:"files",icon:d,label:l},t[10]=l,t[11]=a):a=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(R,{}),t[12]=j):j=t[12];let u;t[13]!==p?(u=p("projects.flat.viewAnalytics"),t[13]=p,t[14]=u):u=t[14];let c;t[15]!==u?(c={value:"analytics",icon:j,label:u},t[15]=u,t[16]=c):c=t[16];let h;t[17]!==c||t[18]!==f||t[19]!==a?(h=[f,a,c],t[17]=c,t[18]=f,t[19]=a,t[20]=h):h=t[20];let n;return t[21]!==s||t[22]!==h||t[23]!==r?(n=o.jsx(F.Topbar.Right.Portal,{children:o.jsx("div",{className:"shrink-0",children:o.jsx(I,{value:r,onValueChange:s,options:h})})}),t[21]=s,t[22]=h,t[23]=r,t[24]=n):n=t[24],n}function G(i){const t=g.c(6),{project:r}=i;U(r);const p=r.id;let e;t[0]!==r?(e=O(r),t[0]=r,t[1]=e):e=t[1];const m=r.title??void 0;let s;return t[2]!==r.id||t[3]!==e||t[4]!==m?(s=o.jsx(z,{root:e,rootLabel:m,filePreview:"dialog"},p),t[2]=r.id,t[3]=e,t[4]=m,t[5]=s):s=t[5],s}function J(i){const t=g.c(21),{projectId:r,taskOpen:p,view:e}=i,{org:m}=w(),{granted:s}=C("agents:manage");let b;t[0]===Symbol.for("react.memo_cache_sentinel")?(b={pageSize:1e3},t[0]=b):b=t[0];const x=q(b);let f,d;if(t[1]!==x||t[2]!==s||t[3]!==m||t[4]!==r){d=Symbol.for("react.early_return_sentinel");t:{let c;t[7]!==m?(c=n=>n.id!==m.id,t[7]=m,t[8]=c):c=t[8];const h=H(x).filter(c);if(h.length===0){let n;t[9]!==s?(n=o.jsx(L,{canCreate:s}),t[9]=s,t[10]=n):n=t[10],d=n;break t}f=h.find(n=>n.id===r)??[...h].sort(K)[0]}t[1]=x,t[2]=s,t[3]=m,t[4]=r,t[5]=f,t[6]=d}else f=t[5],d=t[6];if(d!==Symbol.for("react.early_return_sentinel"))return d;const l=f;if(!l)return null;let a;t[11]!==e?(a=o.jsx(D,{view:e}),t[11]=e,t[12]=a):a=t[12];let j;t[13]!==m||t[14]!==l||t[15]!==p||t[16]!==e?(j=e==="files"?o.jsx(G,{project:l}):e==="analytics"?o.jsxs(o.Fragment,{children:[o.jsx(y.Title,{children:l.title}),o.jsx(M,{project:l.id,taskHref:c=>`/${m.slug}/projects?project=${encodeURIComponent(l.id)}&task=${encodeURIComponent(c)}`},l.id)]}):o.jsxs(o.Fragment,{children:[!p&&o.jsx("div",{className:"hidden shrink-0 border-b border-border has-[a]:block",children:o.jsx(y.Container,{className:"flex max-w-[1680px] flex-col gap-4 pb-6",children:o.jsx(B,{project:l,orgSlug:m.slug})})}),o.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:o.jsx(A,{scopeProject:l,inlineTabs:!0,taskInSearch:!0})})]}),t[13]=m,t[14]=l,t[15]=p,t[16]=e,t[17]=j):j=t[17];let u;return t[18]!==a||t[19]!==j?(u=o.jsxs("div",{className:"@container flex h-full min-h-0 min-w-0 flex-col",children:[a,j]}),t[18]=a,t[19]=j,t[20]=u):u=t[20],u}function K(i,t){return(t.updated_at??"").localeCompare(i.updated_at??"")}function ei(){const i=g.c(6);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=_(t);let p;i[1]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("div",{className:"flex min-h-64 items-center justify-center",children:o.jsx(k,{className:"size-5 text-muted-foreground"})}),i[1]=p):p=i[1];const e=!!r.task,m=r.files?"files":r.analytics?"analytics":"project";let s;return i[2]!==r.project||i[3]!==e||i[4]!==m?(s=o.jsx(V.Content,{children:o.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:o.jsx(S.Suspense,{fallback:p,children:o.jsx(J,{projectId:r.project,taskOpen:e,view:m})})})}),i[2]=r.project,i[3]=e,i[4]=m,i[5]=s):s=i[5],s}export{ei as default};
@@ -1,2 +1,2 @@
1
- import{c as L,j as t,r as _,aS as M,l as A,B as I}from"./index-D_7jfHk6.js";import{b as W,D as G,d as H,i as K}from"./dialog-DRpbbWU1.js";import{i as U}from"./X-DzPShgV5.js";import{i as R}from"./ZoomOut-CQckFmS9.js";import{M as V}from"./markdown-6zdu9t3J.js";import{F as Z}from"./file-preview-DT-0IR-r.js";import{F as q}from"./file-type-icon-Du5QihE_.js";import{h as J,g as Q,j as X}from"./use-org-fs-DPxqVRhB.js";import{c as Y,b as $}from"./location-BjlyegC2.js";import{s as ee}from"./Image01-Cxa392ef.js";function te(r){const e={};for(const l of r.split(`
2
- `)){const s=l.match(/^([A-Za-z][\w-]*):\s*(.*)$/);s?.[1]&&s[2]!==void 0&&(e[s[1].toLowerCase()]=s[2].trim())}return e}function O(r){for(const e of r.split(/\n\s*\n/)){const l=e.trim();if(!(!l||l.startsWith("#")))return l.replace(/\n/g," ")}return null}function se(r){const e=r.match(/^---\n([\s\S]*?)\n---\n?/);if(!e||e[1]===void 0)return{name:null,description:O(r),disableModelInvocation:!1,body:r};const l=te(e[1]),s=r.slice(e[0].length);return{name:l.name||null,description:l.description||O(s),disableModelInvocation:l["disable-model-invocation"]==="true",body:s}}function le(r){const e=L.c(18),{skillPath:l,onClose:s,variant:i}=r,n=Y(l),{volume:a,dirPath:F}=n,z=J(),o=z(a??"",`${F}/SKILL.md`),v=Q(o),D=X(a??"",F);let w;e[0]!==F?(w=$(F),e[0]=F,e[1]=w):w=e[1];const E=w;let h;e[2]!==v.data?(h=v.data?se(v.data):null,e[2]=v.data,e[3]=h):h=e[3];const x=h,C=oe;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(f,P)=>C(f.path)?-1:C(P.path)?1:$(f.path).localeCompare($(P.path)),e[4]=p):p=e[4];const B=(D.data??[]).filter(re).sort(p),[k,S]=_.useState(null),c=k===null?null:B.find(f=>f.path===k)??null,u=x?.name??E;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:t.jsx(R,{size:18})}),e[5]=g):g=e[5];let d;e[6]!==u||e[7]!==i?(d=i==="dialog"?t.jsx(H,{className:"flex-1 truncate text-base font-medium text-foreground",children:u}):t.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:u}),e[6]=u,e[7]=i,e[8]=d):d=e[8];let m;e[9]!==s||e[10]!==i?(m=i==="dialog"?t.jsx(K,{asChild:!0,children:t.jsx(I,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:t.jsx(U,{size:16})})}):t.jsx(I,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:s,children:t.jsx(U,{size:16})}),e[9]=s,e[10]=i,e[11]=m):m=e[11];let j;e[12]!==d||e[13]!==m?(j=t.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[g,d,m]}),e[12]=d,e[13]=m,e[14]=j):j=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=b):b=e[15];const T="relative flex min-w-0 flex-1 flex-col overflow-y-auto",y=c?t.jsx(Z,{file:{key:c.path,filename:$(c.path),size:c.size,downloadUrl:z(a??"",c.path)}}):v.isPending?t.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[t.jsx(M,{className:"h-4 w-1/3"}),t.jsx(M,{className:"h-3 w-full"}),t.jsx(M,{className:"h-3 w-5/6"}),t.jsx(M,{className:"h-3 w-2/3"})]}):v.isError||!x?t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),t.jsx("p",{className:"text-base text-muted-foreground",children:x.description??"Claude Code skill"})]}),t.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:t.jsx(V,{id:`skill-preview-${l}`,text:x.body})})]});let N;return e[16]!==y?(N=t.jsx("div",{className:T,children:y}),e[16]=y,e[17]=N):N=e[17],t.jsxs(t.Fragment,{children:[j,t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[b,D.isPending?t.jsx(M,{className:"mx-2 h-4 w-24"}):B.map(f=>{const P=C(f.path)?c===null:k===f.path;return t.jsxs("button",{type:"button",onClick:()=>S(C(f.path)?null:f.path),className:A("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",P?"bg-background shadow-sm":"hover:bg-muted/60"),children:[t.jsx(q,{filename:$(f.path),className:"h-6 w-5 shrink-0"}),t.jsx("span",{className:A("truncate text-sm",P?"text-foreground":"text-muted-foreground"),children:$(f.path)})]},f.path)})]}),N]})]})}function re(r){return r.kind==="file"}function oe(r){return $(r)==="SKILL.md"}function be(r){const e=L.c(8),{skillPath:l,onClose:s}=r;let i;e[0]!==s?(i=F=>{F||s()},e[0]=s,e[1]=i):i=e[1];let n;e[2]!==s||e[3]!==l?(n=t.jsx(W,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:t.jsx(le,{skillPath:l,onClose:s,variant:"dialog"})}),e[2]=s,e[3]=l,e[4]=n):n=e[4];let a;return e[5]!==i||e[6]!==n?(a=t.jsx(G,{open:!0,onOpenChange:i,children:n}),e[5]=i,e[6]=n,e[7]=a):a=e[7],a}const ie={default:{backFrom:"#4D87DF",backTo:"#296FE8",frontFrom:"#72B6FA",frontTo:"#5BB1EF",stripe:"#84CDFB",glyph:"#014AC9"},system:{backFrom:"#8A94A6",backTo:"#6B7687",frontFrom:"#B6BEC9",frontTo:"#A3ADBA",stripe:"#D5DBE3",glyph:"#3D4757"}},ne=[-7,0,7];function ke(r){const e=L.c(50);let l,s,i,n,a;e[0]!==r?({glyph:l,readOnly:i,tone:n,sheets:a,...s}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=i,e[4]=n,e[5]=a):(l=e[1],s=e[2],i=e[3],n=e[4],a=e[5]);const F=n===void 0?"default":n,z=a===void 0?0:a,o=ie[F],v=_.useId(),D=`${v}-back`,w=`${v}-front`,E=`url(#${D})`;let h;e[6]!==E?(h=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:E}),e[6]=E,e[7]=h):h=e[7];let x;e[8]!==z?(x=ne.slice(0,Math.min(Math.max(z,0),3)).map(ae),e[8]=z,e[9]=x):x=e[9];const C=`url(#${w})`;let p;e[10]!==C?(p=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:C}),e[10]=C,e[11]=p):p=e[11];let B;e[12]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),e[12]=B):B=e[12];let k,S;e[13]!==o.stripe?(S=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:o.stripe}),k=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:o.stripe}),e[13]=o.stripe,e[14]=k,e[15]=S):(k=e[14],S=e[15]);let c;e[16]!==l||e[17]!==o.glyph?(c=l&&t.jsx(l,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:o.glyph,opacity:.55}}),e[16]=l,e[17]=o.glyph,e[18]=c):c=e[18];let u;e[19]!==i?(u=i&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(ee,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[19]=i,e[20]=u):u=e[20];let g;e[21]!==o.backFrom?(g=t.jsx("stop",{offset:"0.3",stopColor:o.backFrom}),e[21]=o.backFrom,e[22]=g):g=e[22];let d;e[23]!==o.backTo?(d=t.jsx("stop",{offset:"1",stopColor:o.backTo}),e[23]=o.backTo,e[24]=d):d=e[24];let m;e[25]!==D||e[26]!==g||e[27]!==d?(m=t.jsxs("linearGradient",{id:D,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[g,d]}),e[25]=D,e[26]=g,e[27]=d,e[28]=m):m=e[28];let j;e[29]!==o.frontFrom?(j=t.jsx("stop",{stopColor:o.frontFrom}),e[29]=o.frontFrom,e[30]=j):j=e[30];let b;e[31]!==o.frontTo?(b=t.jsx("stop",{offset:"1",stopColor:o.frontTo}),e[31]=o.frontTo,e[32]=b):b=e[32];let T;e[33]!==w||e[34]!==j||e[35]!==b?(T=t.jsxs("radialGradient",{id:w,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[j,b]}),e[33]=w,e[34]=j,e[35]=b,e[36]=T):T=e[36];let y;e[37]!==m||e[38]!==T?(y=t.jsxs("defs",{children:[m,T]}),e[37]=m,e[38]=T,e[39]=y):y=e[39];let N;return e[40]!==s||e[41]!==k||e[42]!==c||e[43]!==u||e[44]!==y||e[45]!==h||e[46]!==x||e[47]!==p||e[48]!==S?(N=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...s,children:[h,x,p,B,S,k,c,u,y]}),e[40]=s,e[41]=k,e[42]=c,e[43]=u,e[44]=y,e[45]=h,e[46]=x,e[47]=p,e[48]=S,e[49]=N):N=e[49],N}function ae(r){return t.jsx("rect",{x:"9",y:"3.4",width:"14",height:"12",rx:"1.2",fill:"#F4F6F9",stroke:"#C9D2DC",strokeWidth:"0.7",transform:`rotate(${r} 16 12)`},r)}export{ke as F,be as S,se as p};
1
+ import{c as L,j as t,q as W,D as G,r as _,b2 as M,l as A,v as H,fm as V,B as I,aV as U}from"./index-Bm9FTdjr.js";import{i as K}from"./ZoomOut-BggitXDv.js";import{M as R}from"./markdown-B3PJYX-4.js";import{F as Z}from"./file-preview-DvxQuX3P.js";import{F as q}from"./file-type-icon-DzYK4NqY.js";import{h as J,g as Q,j as X}from"./use-org-fs-gQ0RuIPK.js";import{c as Y,b as $}from"./location-BjlyegC2.js";import{s as ee}from"./Image01-DdBetDCI.js";function te(r){const e={};for(const l of r.split(`
2
+ `)){const s=l.match(/^([A-Za-z][\w-]*):\s*(.*)$/);s?.[1]&&s[2]!==void 0&&(e[s[1].toLowerCase()]=s[2].trim())}return e}function O(r){for(const e of r.split(/\n\s*\n/)){const l=e.trim();if(!(!l||l.startsWith("#")))return l.replace(/\n/g," ")}return null}function se(r){const e=r.match(/^---\n([\s\S]*?)\n---\n?/);if(!e||e[1]===void 0)return{name:null,description:O(r),disableModelInvocation:!1,body:r};const l=te(e[1]),s=r.slice(e[0].length);return{name:l.name||null,description:l.description||O(s),disableModelInvocation:l["disable-model-invocation"]==="true",body:s}}function le(r){const e=L.c(18),{skillPath:l,onClose:s,variant:i}=r,n=Y(l),{volume:a,dirPath:v}=n,z=J(),o=z(a??"",`${v}/SKILL.md`),F=Q(o),D=X(a??"",v);let w;e[0]!==v?(w=$(v),e[0]=v,e[1]=w):w=e[1];const E=w;let h;e[2]!==F.data?(h=F.data?se(F.data):null,e[2]=F.data,e[3]=h):h=e[3];const x=h,C=oe;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(m,P)=>C(m.path)?-1:C(P.path)?1:$(m.path).localeCompare($(P.path)),e[4]=p):p=e[4];const B=(D.data??[]).filter(re).sort(p),[k,S]=_.useState(null),c=k===null?null:B.find(m=>m.path===k)??null,u=x?.name??E;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:t.jsx(K,{size:18})}),e[5]=g):g=e[5];let d;e[6]!==u||e[7]!==i?(d=i==="dialog"?t.jsx(H,{className:"flex-1 truncate text-base font-medium text-foreground",children:u}):t.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:u}),e[6]=u,e[7]=i,e[8]=d):d=e[8];let f;e[9]!==s||e[10]!==i?(f=i==="dialog"?t.jsx(V,{asChild:!0,children:t.jsx(I,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:t.jsx(U,{size:16})})}):t.jsx(I,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:s,children:t.jsx(U,{size:16})}),e[9]=s,e[10]=i,e[11]=f):f=e[11];let j;e[12]!==d||e[13]!==f?(j=t.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[g,d,f]}),e[12]=d,e[13]=f,e[14]=j):j=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=b):b=e[15];const T="relative flex min-w-0 flex-1 flex-col overflow-y-auto",y=c?t.jsx(Z,{file:{key:c.path,filename:$(c.path),size:c.size,downloadUrl:z(a??"",c.path)}}):F.isPending?t.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[t.jsx(M,{className:"h-4 w-1/3"}),t.jsx(M,{className:"h-3 w-full"}),t.jsx(M,{className:"h-3 w-5/6"}),t.jsx(M,{className:"h-3 w-2/3"})]}):F.isError||!x?t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),t.jsx("p",{className:"text-base text-muted-foreground",children:x.description??"Claude Code skill"})]}),t.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:t.jsx(R,{id:`skill-preview-${l}`,text:x.body})})]});let N;return e[16]!==y?(N=t.jsx("div",{className:T,children:y}),e[16]=y,e[17]=N):N=e[17],t.jsxs(t.Fragment,{children:[j,t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[b,D.isPending?t.jsx(M,{className:"mx-2 h-4 w-24"}):B.map(m=>{const P=C(m.path)?c===null:k===m.path;return t.jsxs("button",{type:"button",onClick:()=>S(C(m.path)?null:m.path),className:A("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",P?"bg-background shadow-sm":"hover:bg-muted/60"),children:[t.jsx(q,{filename:$(m.path),className:"h-6 w-5 shrink-0"}),t.jsx("span",{className:A("truncate text-sm",P?"text-foreground":"text-muted-foreground"),children:$(m.path)})]},m.path)})]}),N]})]})}function re(r){return r.kind==="file"}function oe(r){return $(r)==="SKILL.md"}function ge(r){const e=L.c(8),{skillPath:l,onClose:s}=r;let i;e[0]!==s?(i=v=>{v||s()},e[0]=s,e[1]=i):i=e[1];let n;e[2]!==s||e[3]!==l?(n=t.jsx(W,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:t.jsx(le,{skillPath:l,onClose:s,variant:"dialog"})}),e[2]=s,e[3]=l,e[4]=n):n=e[4];let a;return e[5]!==i||e[6]!==n?(a=t.jsx(G,{open:!0,onOpenChange:i,children:n}),e[5]=i,e[6]=n,e[7]=a):a=e[7],a}const ie={default:{backFrom:"#4D87DF",backTo:"#296FE8",frontFrom:"#72B6FA",frontTo:"#5BB1EF",stripe:"#84CDFB",glyph:"#014AC9"},system:{backFrom:"#8A94A6",backTo:"#6B7687",frontFrom:"#B6BEC9",frontTo:"#A3ADBA",stripe:"#D5DBE3",glyph:"#3D4757"}},ne=[-7,0,7];function je(r){const e=L.c(50);let l,s,i,n,a;e[0]!==r?({glyph:l,readOnly:i,tone:n,sheets:a,...s}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=i,e[4]=n,e[5]=a):(l=e[1],s=e[2],i=e[3],n=e[4],a=e[5]);const v=n===void 0?"default":n,z=a===void 0?0:a,o=ie[v],F=_.useId(),D=`${F}-back`,w=`${F}-front`,E=`url(#${D})`;let h;e[6]!==E?(h=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:E}),e[6]=E,e[7]=h):h=e[7];let x;e[8]!==z?(x=ne.slice(0,Math.min(Math.max(z,0),3)).map(ae),e[8]=z,e[9]=x):x=e[9];const C=`url(#${w})`;let p;e[10]!==C?(p=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:C}),e[10]=C,e[11]=p):p=e[11];let B;e[12]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),e[12]=B):B=e[12];let k,S;e[13]!==o.stripe?(S=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:o.stripe}),k=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:o.stripe}),e[13]=o.stripe,e[14]=k,e[15]=S):(k=e[14],S=e[15]);let c;e[16]!==l||e[17]!==o.glyph?(c=l&&t.jsx(l,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:o.glyph,opacity:.55}}),e[16]=l,e[17]=o.glyph,e[18]=c):c=e[18];let u;e[19]!==i?(u=i&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(ee,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[19]=i,e[20]=u):u=e[20];let g;e[21]!==o.backFrom?(g=t.jsx("stop",{offset:"0.3",stopColor:o.backFrom}),e[21]=o.backFrom,e[22]=g):g=e[22];let d;e[23]!==o.backTo?(d=t.jsx("stop",{offset:"1",stopColor:o.backTo}),e[23]=o.backTo,e[24]=d):d=e[24];let f;e[25]!==D||e[26]!==g||e[27]!==d?(f=t.jsxs("linearGradient",{id:D,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[g,d]}),e[25]=D,e[26]=g,e[27]=d,e[28]=f):f=e[28];let j;e[29]!==o.frontFrom?(j=t.jsx("stop",{stopColor:o.frontFrom}),e[29]=o.frontFrom,e[30]=j):j=e[30];let b;e[31]!==o.frontTo?(b=t.jsx("stop",{offset:"1",stopColor:o.frontTo}),e[31]=o.frontTo,e[32]=b):b=e[32];let T;e[33]!==w||e[34]!==j||e[35]!==b?(T=t.jsxs("radialGradient",{id:w,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[j,b]}),e[33]=w,e[34]=j,e[35]=b,e[36]=T):T=e[36];let y;e[37]!==f||e[38]!==T?(y=t.jsxs("defs",{children:[f,T]}),e[37]=f,e[38]=T,e[39]=y):y=e[39];let N;return e[40]!==s||e[41]!==k||e[42]!==c||e[43]!==u||e[44]!==y||e[45]!==h||e[46]!==x||e[47]!==p||e[48]!==S?(N=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...s,children:[h,x,p,B,S,k,c,u,y]}),e[40]=s,e[41]=k,e[42]=c,e[43]=u,e[44]=y,e[45]=h,e[46]=x,e[47]=p,e[48]=S,e[49]=N):N=e[49],N}function ae(r){return t.jsx("rect",{x:"9",y:"3.4",width:"14",height:"12",rx:"1.2",fill:"#F4F6F9",stroke:"#C9D2DC",strokeWidth:"0.7",transform:`rotate(${r} 16 12)`},r)}export{je as F,ge as S,se as p};
@@ -1 +1 @@
1
- import{dm as C,c as d,j as c,aX as j,r as f,l as p,bg as b,dn as v,dp as h}from"./index-D_7jfHk6.js";import{L as N}from"./label-DxOPcXJe.js";const E=C,g=f.createContext({}),M=t=>{const e=d.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(j,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=d.c(13),e=f.useContext(g),s=f.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=f.createContext({});function w(t){const e=d.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=f.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=d.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(b,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=d.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
1
+ import{dz as C,c as d,j as c,b7 as b,r as f,l as p,bs as j,dA as v,dB as h}from"./index-Bm9FTdjr.js";import{L as N}from"./label-BL2W0Pcn.js";const E=C,g=f.createContext({}),M=t=>{const e=d.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(b,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=d.c(13),e=f.useContext(g),s=f.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=f.createContext({});function w(t){const e=d.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=f.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=d.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(j,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=d.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
@@ -0,0 +1 @@
1
+ import{b as U,a2 as ie,o as re,aC as le,aB as ce,e as ne,y as H,t as V,K as J,j as i,et as se,eu as ae,ev as Q,b7 as ge,I as oe,aD as de,aE as ee,c as Y,r as X,aa as me,a1 as te,bW as ue,bX as fe,G as pe,B as xe,am as he,n as M,fG as je,aY as Se}from"./index-Bm9FTdjr.js";import{u as ze}from"./use-org-auth-client-CPbs0OVW.js";import{u as be}from"./use-debounced-autosave-C__Xzre-.js";import{A as ve}from"./avatar-BEl6nltF.js";import{C as Oe,a as ye,V as Ce,B as _e,b as Fe}from"./review-settings-BAqWAPVV.js";import{D as De}from"./domain-settings-DiitZO4z.js";import{A as Ae,a as we,b as Ee,c as Ne,g as Te,d as Le,e as Pe,f as ke}from"./alert-dialog-BXEG2ySJ.js";import{C as Re}from"./capability-load-error-yZzl8b80.js";import"./User01-9bZ-cKa7.js";import"./switch-DZo6rAtc.js";import"./UserSquare-CuRnLJZ6.js";import"./use-organization-settings-xcc5-6DS.js";import"./schema-C_wSANSe.js";import"./task-board-Bgw_xVJW.js";import"./use-new-blocks-editor-nCMzaJ9Q.js";import"./use-connection-DUF3XC9E.js";import"./use-mcp-client-Dh_4AZgb.js";import"./auth-Dwu4WH32.js";import"./badge-DFdotQFQ.js";import"./select-BVEgIanS.js";import"./index-BdQq_4o_.js";import"./index-D2iZ6syL.js";import"./ChevronUp-nynZHATg.js";const Be=e=>de({name:ee().min(1,e("settings.organizationForm.nameRequired")).max(255,e("settings.organizationForm.nameTooLong")),logo:ee().optional()});function Ie(e){const t=Y.c(17),{value:s,onChange:p,name:g,disabled:l}=e,c=U(),d=X.useRef(null);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>d.current?.click(),t[0]=r):r=t[0];const m=r;let n;t[1]!==p||t[2]!==c?(n=W=>{const S=W.target.files?.[0];if(!S)return;if(S.size>2097152){V.error(c("settings.organizationForm.imageTooLarge"));return}const x=new FileReader;x.onerror=()=>V.error(c("settings.organizationForm.failedToReadImage")),x.onloadend=()=>{x.result&&p(x.result),d.current&&(d.current.value="")},x.readAsDataURL(S)},t[1]=p,t[2]=c,t[3]=n):n=t[3];const a=n;let o;t[4]!==c?(o=c("settings.organizationForm.uploadLogoLabel"),t[4]=c,t[5]=o):o=t[5];let u;t[6]!==l||t[7]!==a?(u=i.jsx("input",{ref:d,type:"file",accept:"image/*",onChange:a,className:"hidden",disabled:l}),t[6]=l,t[7]=a,t[8]=u):u=t[8];const h=s||void 0,j=g??"?";let f;t[9]!==h||t[10]!==j?(f=i.jsx(ve,{url:h,fallback:j,shape:"square",size:"base"}),t[9]=h,t[10]=j,t[11]=f):f=t[11];let z;return t[12]!==l||t[13]!==o||t[14]!==u||t[15]!==f?(z=i.jsxs("button",{type:"button",onClick:m,disabled:l,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":o,children:[u,f]}),t[12]=l,t[13]=o,t[14]=u,t[15]=f,t[16]=z):z=t[16],z}function Ge(){const e=U(),{org:t}=ie(),s=ze(),p=re(),g=le({resolver:ce(Be(e)),values:{name:t.name??"",logo:t.logo??""}}),l=ne({mutationFn:async n=>{const a={name:n.name};n.logo&&(a.logo=n.logo);const o=await s.organization.update({data:a});if(o?.error)throw new Error(o.error.message||e("settings.organizationForm.failedToUpdateOrg"));return o},onSuccess:(n,a)=>{H("organization_settings_updated",{organization_id:t.id,fields:Object.keys(a)}),p.invalidateQueries({queryKey:J.organizations()}),p.invalidateQueries({queryKey:J.activeOrganization(t.slug)}),V.success(e("settings.organizationForm.updateSuccess"))},onError:(n,a)=>{H("organization_settings_update_failed",{organization_id:t.id,fields:Object.keys(a),error:n instanceof Error?n.message:String(n)}),V.error(n instanceof Error?n.message:e("settings.organizationForm.failedToUpdateOrg"))}}),{schedule:c,flush:d}=be({save:async()=>{const n=g.control._formState.dirtyFields;if(Object.keys(n).length===0||!await g.trigger())return;const o=g.getValues(),u=g.control._defaultValues;g.reset(o,{keepValues:!0});try{await l.mutateAsync(o)}catch{g.reset(u,{keepValues:!0})}}}),r=g.formState.errors,m=typeof window<"u"?`${window.location.host}/`:"";return i.jsx(se,{children:i.jsxs(ae,{children:[i.jsx(Q,{title:e("settings.organizationForm.logoTitle"),description:e("settings.organizationForm.logoDescription"),action:i.jsx(Ie,{value:g.watch("logo"),onChange:n=>{g.setValue("logo",n??"",{shouldDirty:!0}),d()},name:g.watch("name")})}),i.jsx(Q,{title:e("settings.organizationForm.nameTitle"),action:i.jsx(ge,{control:g.control,name:"name",render:({field:n})=>i.jsx(oe,{id:"org-name",...n,onChange:a=>{n.onChange(a),c()},onBlur:()=>{n.onBlur(),d()},placeholder:e("settings.organizationForm.namePlaceholder"),className:"w-[280px]"})})}),i.jsx(Q,{title:e("settings.organizationForm.urlTitle"),description:e("settings.organizationForm.urlDescription"),action:i.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-muted/40 overflow-hidden",children:[m&&i.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:m}),i.jsx("span",{className:"flex-1 min-w-0 px-2 py-1.5 text-sm text-foreground truncate",children:t.slug})]})}),(r.name||r.logo)&&i.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[r.name&&i.jsx("p",{className:"text-xs text-destructive",children:r.name.message}),r.logo&&i.jsx("p",{className:"text-xs text-destructive",children:r.logo.message})]})]})})}function Ve(){const e=Y.c(86),t=U(),{org:s}=ie(),[p,g]=X.useState(!1),[l,c]=X.useState(""),d=me();let r;e[0]!==s.id||e[1]!==d?(r=async()=>{await d.call("ORGANIZATION_DELETE",{id:s.id})},e[0]=s.id,e[1]=d,e[2]=r):r=e[2];let m;e[3]!==s.id||e[4]!==s.slug||e[5]!==t?(m=()=>{H("organization_deleted",{organization_id:s.id}),localStorage.getItem(te.lastOrgSlug())===s.slug&&localStorage.removeItem(te.lastOrgSlug()),ue()?.org===s.slug&&fe(),pe(),V.success(t("settings.deleteOrganizationSection.organizationDeleted")),window.location.href="/"},e[3]=s.id,e[4]=s.slug,e[5]=t,e[6]=m):m=e[6];let n;e[7]!==t?(n=b=>{V.error(b instanceof Error?b.message:t("settings.deleteOrganizationSection.failedToDeleteOrganization"))},e[7]=t,e[8]=n):n=e[8];let a;e[9]!==r||e[10]!==m||e[11]!==n?(a={mutationFn:r,onSuccess:m,onError:n},e[9]=r,e[10]=m,e[11]=n,e[12]=a):a=e[12];const o=ne(a);let u;e[13]!==t?(u=t("settings.deleteOrganizationSection.dangerZone"),e[13]=t,e[14]=u):u=e[14];let h;e[15]!==t?(h=t("settings.deleteOrganizationSection.irreversibleActionsDescription"),e[15]=t,e[16]=h):h=e[16];let j;e[17]!==t?(j=t("settings.deleteOrganizationSection.deleteOrganizationTitle"),e[17]=t,e[18]=j):j=e[18];let f;e[19]!==t?(f=t("settings.deleteOrganizationSection.deleteOrganizationDescription"),e[19]=t,e[20]=f):f=e[20];let z;e[21]===Symbol.for("react.memo_cache_sentinel")?(z=()=>g(!0),e[21]=z):z=e[21];const W=o.isPending;let S;e[22]!==t?(S=t("settings.deleteOrganizationSection.deleteButton"),e[22]=t,e[23]=S):S=e[23];let x;e[24]!==o.isPending||e[25]!==S?(x=i.jsx(xe,{variant:"destructive",size:"sm",onClick:z,disabled:W,children:S}),e[24]=o.isPending,e[25]=S,e[26]=x):x=e[26];let v;e[27]!==x||e[28]!==j||e[29]!==f?(v=i.jsx(ae,{className:"border-destructive/40",children:i.jsx(Q,{title:j,description:f,action:x})}),e[27]=x,e[28]=j,e[29]=f,e[30]=v):v=e[30];let O;e[31]!==v||e[32]!==u||e[33]!==h?(O=i.jsx(se,{title:u,description:h,children:v}),e[31]=v,e[32]=u,e[33]=h,e[34]=O):O=e[34];let q;e[35]===Symbol.for("react.memo_cache_sentinel")?(q=b=>{g(b),b||c("")},e[35]=q):q=e[35];let y;e[36]!==t?(y=t("settings.deleteOrganizationSection.deleteOrganizationQuestion"),e[36]=t,e[37]=y):y=e[37];let C;e[38]!==y?(C=i.jsx(Ae,{children:y}),e[38]=y,e[39]=C):C=e[39];let _;e[40]!==s.name||e[41]!==t?(_=t("settings.deleteOrganizationSection.deleteWarning",{organizationName:s.name}),e[40]=s.name,e[41]=t,e[42]=_):_=e[42];let F;e[43]!==_?(F=i.jsx("p",{children:_}),e[43]=_,e[44]=F):F=e[44];let D;e[45]!==s.name||e[46]!==t?(D=t("settings.deleteOrganizationSection.typeToConfirm",{organizationName:s.name}),e[45]=s.name,e[46]=t,e[47]=D):D=e[47];let A;e[48]!==D?(A=i.jsx("p",{className:"mt-3 mb-1.5",children:D}),e[48]=D,e[49]=A):A=e[49];let K;e[50]===Symbol.for("react.memo_cache_sentinel")?(K=b=>c(b.target.value),e[50]=K):K=e[50];let w;e[51]!==l||e[52]!==s.name?(w=i.jsx(oe,{value:l,onChange:K,placeholder:s.name,autoFocus:!0}),e[51]=l,e[52]=s.name,e[53]=w):w=e[53];let E;e[54]!==F||e[55]!==A||e[56]!==w?(E=i.jsx(we,{asChild:!0,children:i.jsxs("div",{children:[F,A,w]})}),e[54]=F,e[55]=A,e[56]=w,e[57]=E):E=e[57];let N;e[58]!==C||e[59]!==E?(N=i.jsxs(Ee,{children:[C,E]}),e[58]=C,e[59]=E,e[60]=N):N=e[60];let T;e[61]!==t?(T=t("settings.deleteOrganizationSection.cancel"),e[61]=t,e[62]=T):T=e[62];let L;e[63]!==T?(L=i.jsx(Ne,{children:T}),e[63]=T,e[64]=L):L=e[64];let P;e[65]!==o?(P=()=>o.mutate(),e[65]=o,e[66]=P):P=e[66];const Z=l!==s.name||o.isPending;let k;e[67]!==o.isPending||e[68]!==t?(k=o.isPending?t("settings.deleteOrganizationSection.deleting"):t("settings.deleteOrganizationSection.deleteOrganizationAction"),e[67]=o.isPending,e[68]=t,e[69]=k):k=e[69];let R;e[70]!==P||e[71]!==Z||e[72]!==k?(R=i.jsx(Te,{onClick:P,disabled:Z,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:k}),e[70]=P,e[71]=Z,e[72]=k,e[73]=R):R=e[73];let B;e[74]!==L||e[75]!==R?(B=i.jsxs(Le,{children:[L,R]}),e[74]=L,e[75]=R,e[76]=B):B=e[76];let I;e[77]!==N||e[78]!==B?(I=i.jsxs(Pe,{children:[N,B]}),e[77]=N,e[78]=B,e[79]=I):I=e[79];let G;e[80]!==p||e[81]!==I?(G=i.jsx(ke,{open:p,onOpenChange:q,children:I}),e[80]=p,e[81]=I,e[82]=G):G=e[82];let $;return e[83]!==O||e[84]!==G?($=i.jsxs(i.Fragment,{children:[O,G]}),e[83]=O,e[84]=G,e[85]=$):$=e[85],$}function qe(){const e=Y.c(15),t=U(),{granted:s,loading:p,error:g}=he("org:manage");if(p){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(Se,{}),e[0]=a):a=e[0],a}if(g){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(Re,{}),e[1]=a):a=e[1],a}let l;e[2]!==t?(l=t("settings.orgGeneral.organization"),e[2]=t,e[3]=l):l=e[3];let c;e[4]!==l?(c=i.jsx(M.Title,{children:l}),e[4]=l,e[5]=c):c=e[5];let d;e[6]!==s?(d=s&&i.jsxs(i.Fragment,{children:[i.jsx(Ge,{}),i.jsx(Oe,{}),i.jsx(ye,{}),i.jsx(Ce,{}),i.jsx(_e,{})]}),e[6]=s,e[7]=d):d=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(Fe,{}),e[8]=r):r=e[8];let m;e[9]!==s?(m=s&&i.jsxs(i.Fragment,{children:[i.jsx(De,{}),i.jsx(Ve,{})]}),e[9]=s,e[10]=m):m=e[10];let n;return e[11]!==c||e[12]!==d||e[13]!==m?(n=i.jsx(M,{children:i.jsx(M.Content,{children:i.jsx(M.Container,{children:i.jsxs(je,{children:[c,d,r,m]})})})}),e[11]=c,e[12]=d,e[13]=m,e[14]=n):n=e[14],n}function mt(){const e=Y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(qe,{}),e[0]=t):t=e[0],t}export{mt as default};