@geminilight/mindos-windows-arm64 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/_standalone/.mindos-build-version +1 -1
  2. package/_standalone/__next/BUILD_ID +1 -1
  3. package/_standalone/__next/app-path-routes-manifest.json +22 -22
  4. package/_standalone/__next/build-manifest.json +3 -3
  5. package/_standalone/__next/prerender-manifest.json +3 -3
  6. package/_standalone/__next/react-loadable-manifest.json +13 -7
  7. package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  8. package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/_standalone/__next/server/app/_global-error.html +2 -2
  10. package/_standalone/__next/server/app/_global-error.rsc +1 -1
  11. package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/_standalone/__next/server/app/_not-found/page.js +1 -1
  18. package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/_standalone/__next/server/app/agents/[agentKey]/page.js +1 -1
  21. package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  22. package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  23. package/_standalone/__next/server/app/agents/page.js +1 -1
  24. package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
  25. package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
  26. package/_standalone/__next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
  27. package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  28. package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  29. package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  30. package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  31. package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  32. package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  33. package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  34. package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  35. package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  36. package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
  37. package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
  38. package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
  39. package/_standalone/__next/server/app/api/ask/route.js +4 -4
  40. package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  41. package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  42. package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  43. package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  44. package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  45. package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  46. package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
  47. package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
  48. package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
  49. package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
  50. package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
  51. package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  52. package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  53. package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  54. package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
  55. package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
  56. package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
  57. package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  58. package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
  59. package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
  60. package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
  61. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
  62. package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
  63. package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
  64. package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
  65. package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
  66. package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
  67. package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
  68. package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  69. package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
  70. package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
  71. package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  72. package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
  73. package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  74. package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  75. package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  76. package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  77. package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  78. package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  79. package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  80. package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
  81. package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
  82. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
  83. package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  84. package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  85. package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
  86. package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
  87. package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  88. package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  89. package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  90. package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  91. package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  92. package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  93. package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  94. package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  95. package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  96. package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  97. package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
  98. package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  99. package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  100. package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  101. package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
  102. package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  103. package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  104. package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  105. package/_standalone/__next/server/app/capture/history/page.js +1 -1
  106. package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
  107. package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
  108. package/_standalone/__next/server/app/capture/page.js +1 -1
  109. package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
  110. package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
  111. package/_standalone/__next/server/app/changelog/page.js +1 -1
  112. package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
  113. package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
  114. package/_standalone/__next/server/app/changes/page.js +1 -1
  115. package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
  116. package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
  117. package/_standalone/__next/server/app/echo/[segment]/page.js +1 -1
  118. package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
  119. package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  120. package/_standalone/__next/server/app/echo/page.js +1 -1
  121. package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
  122. package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
  123. package/_standalone/__next/server/app/explore/page.js +1 -1
  124. package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
  125. package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
  126. package/_standalone/__next/server/app/help/page.js +1 -1
  127. package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
  128. package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
  129. package/_standalone/__next/server/app/inbox/history/page.js +1 -1
  130. package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
  131. package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  132. package/_standalone/__next/server/app/login/page.js +1 -1
  133. package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
  134. package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
  135. package/_standalone/__next/server/app/page.js +1 -1
  136. package/_standalone/__next/server/app/page.js.nft.json +1 -1
  137. package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
  138. package/_standalone/__next/server/app/settings/page.js +2 -2
  139. package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
  140. package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
  141. package/_standalone/__next/server/app/setup/page.js +1 -1
  142. package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
  143. package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
  144. package/_standalone/__next/server/app/todo/page.js +1 -1
  145. package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
  146. package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
  147. package/_standalone/__next/server/app/trash/page.js +3 -3
  148. package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
  149. package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
  150. package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
  151. package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  152. package/_standalone/__next/server/app/wiki/page.js +2 -2
  153. package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
  154. package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
  155. package/_standalone/__next/server/app-paths-manifest.json +22 -22
  156. package/_standalone/__next/server/chunks/1976.js +1 -1
  157. package/_standalone/__next/server/chunks/{1855.js → 5768.js} +3 -3
  158. package/_standalone/__next/server/chunks/6279.js +1 -0
  159. package/_standalone/__next/server/chunks/6602.js +39 -39
  160. package/_standalone/__next/server/chunks/8461.js +1 -1
  161. package/_standalone/__next/server/middleware-build-manifest.js +1 -1
  162. package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
  163. package/_standalone/__next/server/pages/500.html +2 -2
  164. package/_standalone/__next/server/server-reference-manifest.js +1 -1
  165. package/_standalone/__next/server/server-reference-manifest.json +1 -1
  166. package/{static-web/_next/static/chunks/525-b830b69e910a03f2.js → _standalone/__next/static/chunks/1023-3a5a295bdb8f036e.js} +1 -1
  167. package/_standalone/__next/static/chunks/1469-a47a8fdf907854b7.js +1 -0
  168. package/_standalone/__next/static/chunks/1471.26592788eb019d91.js +1 -0
  169. package/_standalone/__next/static/chunks/{2073-758ad3659b9d2cfc.js → 2073-85e9695b8754ccd4.js} +4 -4
  170. package/_standalone/__next/static/chunks/2571-f83b7e0b3f478222.js +1 -0
  171. package/_standalone/__next/static/chunks/2762-e6982806b63ccb64.js +1 -0
  172. package/_standalone/__next/static/chunks/3045-a957e615254f5059.js +20 -0
  173. package/_standalone/__next/static/chunks/3288-8f2809685fe349a8.js +1 -0
  174. package/_standalone/__next/static/chunks/3819-665b50f4dc3af9e2.js +1 -0
  175. package/_standalone/__next/static/chunks/{9479-ebd5043c9039f447.js → 3995-efb3b8f34f1a5a8f.js} +8 -15
  176. package/_standalone/__next/static/chunks/4304-ee72ac41d1513389.js +8 -0
  177. package/{static-web/_next/static/chunks/8629.de25b1f455fe4ffa.js → _standalone/__next/static/chunks/5098.096f96bd198d864c.js} +1 -1
  178. package/{static-web/_next/static/chunks/5913.b07379f3c130378c.js → _standalone/__next/static/chunks/5913.0aa553b16c2b0302.js} +1 -1
  179. package/{static-web/_next/static/chunks/3819.42b0ef6a61a01d67.js → _standalone/__next/static/chunks/6200.3f2d00ee8c2e9f9e.js} +1 -1
  180. package/_standalone/__next/static/chunks/6274-f173cb227ad1ef21.js +1 -0
  181. package/_standalone/__next/static/chunks/7904-fadcd92068780b59.js +16 -0
  182. package/_standalone/__next/static/chunks/8132-466a3fea8940c114.js +1 -0
  183. package/_standalone/__next/static/chunks/8924-685d2215bfd7204e.js +14 -0
  184. package/_standalone/__next/static/chunks/9202-9a33f968862439f5.js +1 -0
  185. package/_standalone/__next/static/chunks/{9602.218427fc7b3d6b11.js → 9602.cbfa1195944c2e3d.js} +1 -1
  186. package/_standalone/__next/static/chunks/{9947.81409c5539cd781d.js → 9947.99304c5fc22b4fbe.js} +1 -1
  187. package/_standalone/__next/static/chunks/app/agents/[agentKey]/{page-ef111ea0a3368752.js → page-89e05039dfc56a33.js} +1 -1
  188. package/_standalone/__next/static/chunks/app/agents/{page-aacead0f47cedb0d.js → page-9f4d0c5a3ec17720.js} +1 -1
  189. package/_standalone/__next/static/chunks/app/capture/page-86fc5eabdb1f3f87.js +14 -0
  190. package/{static-web/_next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → _standalone/__next/static/chunks/app/echo/[segment]/page-f0e6a66b3c9d60c0.js} +1 -1
  191. package/{static-web/_next/static/chunks/app/layout-859f69bfc1960d30.js → _standalone/__next/static/chunks/app/layout-1c84d9542b3d194e.js} +15 -15
  192. package/_standalone/__next/static/chunks/app/page-408daa74e14f5f27.js +1 -0
  193. package/_standalone/__next/static/chunks/app/settings/page-5eeea2c7c6dbf1d8.js +1 -0
  194. package/_standalone/__next/static/chunks/app/trash/page-31dba65333b30cc6.js +1 -0
  195. package/_standalone/__next/static/chunks/app/view/[...path]/page-5e9f49ab1b3bc3b2.js +12 -0
  196. package/_standalone/__next/static/chunks/app/wiki/page-d727a6cfe99e38a6.js +14 -0
  197. package/_standalone/__next/static/chunks/webpack-7fb8bc60a549efe2.js +1 -0
  198. package/_standalone/__next/static/css/67a9446950c3630b.css +1 -0
  199. package/assets/images/wechat-qr.png +0 -0
  200. package/dist/session/index.d.ts +1 -0
  201. package/dist/session/index.d.ts.map +1 -1
  202. package/dist/session/index.js +1 -0
  203. package/dist/session/index.js.map +1 -1
  204. package/package.json +1 -1
  205. package/runtime-manifest.json +1 -1
  206. package/static-web/.mindos-build-version +1 -1
  207. package/{_standalone/__next/static/chunks/525-b830b69e910a03f2.js → static-web/_next/static/chunks/1023-3a5a295bdb8f036e.js} +1 -1
  208. package/static-web/_next/static/chunks/1469-a47a8fdf907854b7.js +1 -0
  209. package/static-web/_next/static/chunks/1471.26592788eb019d91.js +1 -0
  210. package/static-web/_next/static/chunks/{2073-758ad3659b9d2cfc.js → 2073-85e9695b8754ccd4.js} +4 -4
  211. package/static-web/_next/static/chunks/2571-f83b7e0b3f478222.js +1 -0
  212. package/static-web/_next/static/chunks/2762-e6982806b63ccb64.js +1 -0
  213. package/static-web/_next/static/chunks/3045-a957e615254f5059.js +20 -0
  214. package/static-web/_next/static/chunks/3288-8f2809685fe349a8.js +1 -0
  215. package/static-web/_next/static/chunks/3819-665b50f4dc3af9e2.js +1 -0
  216. package/static-web/_next/static/chunks/{9479-ebd5043c9039f447.js → 3995-efb3b8f34f1a5a8f.js} +8 -15
  217. package/static-web/_next/static/chunks/4304-ee72ac41d1513389.js +8 -0
  218. package/{_standalone/__next/static/chunks/8629.de25b1f455fe4ffa.js → static-web/_next/static/chunks/5098.096f96bd198d864c.js} +1 -1
  219. package/{_standalone/__next/static/chunks/5913.b07379f3c130378c.js → static-web/_next/static/chunks/5913.0aa553b16c2b0302.js} +1 -1
  220. package/{_standalone/__next/static/chunks/3819.42b0ef6a61a01d67.js → static-web/_next/static/chunks/6200.3f2d00ee8c2e9f9e.js} +1 -1
  221. package/static-web/_next/static/chunks/6274-f173cb227ad1ef21.js +1 -0
  222. package/static-web/_next/static/chunks/7904-fadcd92068780b59.js +16 -0
  223. package/static-web/_next/static/chunks/8132-466a3fea8940c114.js +1 -0
  224. package/static-web/_next/static/chunks/8924-685d2215bfd7204e.js +14 -0
  225. package/static-web/_next/static/chunks/9202-9a33f968862439f5.js +1 -0
  226. package/static-web/_next/static/chunks/{9602.218427fc7b3d6b11.js → 9602.cbfa1195944c2e3d.js} +1 -1
  227. package/static-web/_next/static/chunks/{9947.81409c5539cd781d.js → 9947.99304c5fc22b4fbe.js} +1 -1
  228. package/static-web/_next/static/chunks/app/agents/[agentKey]/{page-ef111ea0a3368752.js → page-89e05039dfc56a33.js} +1 -1
  229. package/static-web/_next/static/chunks/app/agents/{page-aacead0f47cedb0d.js → page-9f4d0c5a3ec17720.js} +1 -1
  230. package/static-web/_next/static/chunks/app/capture/page-86fc5eabdb1f3f87.js +14 -0
  231. package/{_standalone/__next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → static-web/_next/static/chunks/app/echo/[segment]/page-f0e6a66b3c9d60c0.js} +1 -1
  232. package/{_standalone/__next/static/chunks/app/layout-859f69bfc1960d30.js → static-web/_next/static/chunks/app/layout-1c84d9542b3d194e.js} +15 -15
  233. package/static-web/_next/static/chunks/app/page-408daa74e14f5f27.js +1 -0
  234. package/static-web/_next/static/chunks/app/settings/page-5eeea2c7c6dbf1d8.js +1 -0
  235. package/static-web/_next/static/chunks/app/trash/page-31dba65333b30cc6.js +1 -0
  236. package/static-web/_next/static/chunks/app/view/[...path]/page-5e9f49ab1b3bc3b2.js +12 -0
  237. package/static-web/_next/static/chunks/app/wiki/page-d727a6cfe99e38a6.js +14 -0
  238. package/static-web/_next/static/chunks/webpack-7fb8bc60a549efe2.js +1 -0
  239. package/static-web/_next/static/css/67a9446950c3630b.css +1 -0
  240. package/static-web/help/index.html +6 -6
  241. package/static-web/index.html +6 -6
  242. package/static-web/setup/index.html +6 -6
  243. package/static-web/static-web-manifest.json +1 -1
  244. package/static-web/wiki/index.html +8 -8
  245. package/_standalone/__next/server/chunks/6343.js +0 -1
  246. package/_standalone/__next/static/chunks/1104-0822d9349a412b9b.js +0 -16
  247. package/_standalone/__next/static/chunks/1495-4e4ece56ffa8d568.js +0 -1
  248. package/_standalone/__next/static/chunks/2409-244f9b90dceb0c04.js +0 -1
  249. package/_standalone/__next/static/chunks/308-25a235e97ee9bfd4.js +0 -14
  250. package/_standalone/__next/static/chunks/3181-8c6aaeedf700984c.js +0 -33
  251. package/_standalone/__next/static/chunks/3279-b49c25a4f2964b16.js +0 -1
  252. package/_standalone/__next/static/chunks/5026-7fed7ca22272c18f.js +0 -1
  253. package/_standalone/__next/static/chunks/5881-f2bcf9869b07f268.js +0 -1
  254. package/_standalone/__next/static/chunks/7083-00c0b48d2a6b06dd.js +0 -1
  255. package/_standalone/__next/static/chunks/app/capture/page-7f9e43ada77e7ad4.js +0 -1
  256. package/_standalone/__next/static/chunks/app/page-98737d491e89d3e1.js +0 -1
  257. package/_standalone/__next/static/chunks/app/settings/page-36ffdd1a8cc7eb2b.js +0 -1
  258. package/_standalone/__next/static/chunks/app/trash/page-417d4e6dc8cd8d9b.js +0 -1
  259. package/_standalone/__next/static/chunks/app/view/[...path]/page-3b0976dc13f3c49a.js +0 -12
  260. package/_standalone/__next/static/chunks/app/wiki/page-53dfa7d9fd1a0080.js +0 -14
  261. package/_standalone/__next/static/chunks/webpack-e80a45ffc99584ae.js +0 -1
  262. package/_standalone/__next/static/css/db8559f3a861a510.css +0 -1
  263. package/static-web/_next/static/chunks/1104-0822d9349a412b9b.js +0 -16
  264. package/static-web/_next/static/chunks/1495-4e4ece56ffa8d568.js +0 -1
  265. package/static-web/_next/static/chunks/2409-244f9b90dceb0c04.js +0 -1
  266. package/static-web/_next/static/chunks/308-25a235e97ee9bfd4.js +0 -14
  267. package/static-web/_next/static/chunks/3181-8c6aaeedf700984c.js +0 -33
  268. package/static-web/_next/static/chunks/3279-b49c25a4f2964b16.js +0 -1
  269. package/static-web/_next/static/chunks/5026-7fed7ca22272c18f.js +0 -1
  270. package/static-web/_next/static/chunks/5881-f2bcf9869b07f268.js +0 -1
  271. package/static-web/_next/static/chunks/7083-00c0b48d2a6b06dd.js +0 -1
  272. package/static-web/_next/static/chunks/app/capture/page-7f9e43ada77e7ad4.js +0 -1
  273. package/static-web/_next/static/chunks/app/page-98737d491e89d3e1.js +0 -1
  274. package/static-web/_next/static/chunks/app/settings/page-36ffdd1a8cc7eb2b.js +0 -1
  275. package/static-web/_next/static/chunks/app/trash/page-417d4e6dc8cd8d9b.js +0 -1
  276. package/static-web/_next/static/chunks/app/view/[...path]/page-3b0976dc13f3c49a.js +0 -12
  277. package/static-web/_next/static/chunks/app/wiki/page-53dfa7d9fd1a0080.js +0 -14
  278. package/static-web/_next/static/chunks/webpack-e80a45ffc99584ae.js +0 -1
  279. package/static-web/_next/static/css/db8559f3a861a510.css +0 -1
  280. /package/_standalone/__next/static/{nrLECSDKmE4psF72Jmkoa → QRVhXGG4IotxFfmor1t55}/_buildManifest.js +0 -0
  281. /package/_standalone/__next/static/{nrLECSDKmE4psF72Jmkoa → QRVhXGG4IotxFfmor1t55}/_ssgManifest.js +0 -0
  282. /package/static-web/_next/static/{nrLECSDKmE4psF72Jmkoa → QRVhXGG4IotxFfmor1t55}/_buildManifest.js +0 -0
  283. /package/static-web/_next/static/{nrLECSDKmE4psF72Jmkoa → QRVhXGG4IotxFfmor1t55}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2571],{4373:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},8973:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},10952:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("folder-input",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]])},11235:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},18659:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},24336:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},30401:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},31606:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},34137:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},38325:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},55683:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]])},55798:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},56261:(e,a,h)=>{var t=h(59889);h.o(t,"usePathname")&&h.d(a,{usePathname:function(){return t.usePathname}}),h.o(t,"useRouter")&&h.d(a,{useRouter:function(){return t.useRouter}}),h.o(t,"useSearchParams")&&h.d(a,{useSearchParams:function(){return t.useSearchParams}})},59694:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},67885:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},68868:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]])},71044:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},72799:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},73033:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},74197:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},76551:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},85245:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]])},88283:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},95991:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},98327:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},98940:(e,a,h)=>{h.d(a,{A:()=>t});let t=(0,h(73015).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2762],{20677:(e,t,r)=>{r.d(t,{av:()=>f,cd:()=>m,kr:()=>u,oc:()=>p,u_:()=>x,zd:()=>c});var n=r(59029),s=r(65264);let a=null,l=null,o=null,i=0;async function d(e,t={}){let r=Date.now();if(!t.force){if(l)return l;if(i>0&&r-i<2e3)return void e({loading:!1})}t.force&&a?.abort();let n=new AbortController;a=n;let c=Symbol("mcp-fetch");o=c;let u=(async()=>{try{let[t,r,a]=await Promise.all([(0,s.n)("/api/mcp/status",{signal:n.signal}),(0,s.n)("/api/mcp/agents",{signal:n.signal}),(0,s.n)("/api/skills",{signal:n.signal})]);n.signal.aborted||(i=Date.now(),e({status:t,agents:r.agents,skills:a.skills}))}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return}finally{n.signal.aborted||e({loading:!1}),o===c&&(l=null,o=null)}})();return l=u,u}let c=(0,n.v)((e,t)=>({status:null,agents:[],skills:[],loading:!0,refresh:t=>d(e,t),toggleSkill:async(r,n)=>{e({skills:t().skills.map(e=>e.name===r?{...e,enabled:n}:e)});try{return await (0,s.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",name:r,enabled:n})}),!0}catch{return e({skills:t().skills.map(e=>e.name===r?{...e,enabled:!n}:e)}),!1}},installAgent:async(r,n)=>{let a=t().agents.find(e=>e.key===r);if(!a)return!1;try{let t=await (0,s.n)("/api/mcp/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agents:[{key:r,scope:n?.scope??(a.hasProjectScope?"project":"global"),transport:n?.transport??a.preferredTransport}],transport:"auto"})}),l=t.results?.[0],o=l?.ok===!0||l?.status==="ok";return o&&await d(e,{force:!0}),o}catch{return!1}},_init:()=>{let t;d(e);let r=()=>{clearTimeout(t),t=setTimeout(()=>d(e),500)};window.addEventListener("mindos:skills-changed",r);let n=setInterval(()=>{"visible"===document.visibilityState&&d(e)},3e4);return()=>{a?.abort(),clearTimeout(t),clearInterval(n),window.removeEventListener("mindos:skills-changed",r)}}}));function u(){return c()}function m(){return c()}let p=()=>c(e=>e.agents),f=()=>c(e=>e.status),x=()=>c(e=>e.installAgent)},46990:(e,t,r)=>{r.d(t,{l:()=>n});async function n(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}},65264:(e,t,r)=>{r.d(t,{h:()=>n,n:()=>s});class n extends Error{constructor(e,t,r){super(e),this.name="ApiError",this.status=t,this.code=r}}async function s(e,t={}){let r,a,l,{timeout:o=3e4,signal:i,...d}=t;if((o>0||i)&&(r=new AbortController),o>0&&r&&(a=setTimeout(()=>{r.abort(Error(`Request timed out after ${Math.round(o/1e3)}s`))},o)),i&&r)if(i.aborted)r.abort();else{let e=()=>r?.abort();i.addEventListener("abort",e,{once:!0}),l=()=>{i.removeEventListener("abort",e)}}let c=r?.signal??i;try{let t=await fetch(e,{...d,signal:c});if(!t.ok){let e,r=`Request failed (${t.status})`;try{let n=await t.json();n?.error?.code&&n?.error?.message?(r=n.error.message,e=n.error.code):n?.error&&(r="string"==typeof n.error?n.error:n.error.message??r)}catch{}throw new n(r,t.status,e)}return await t.json()}finally{a&&clearTimeout(a),l&&l()}}},69527:(e,t,r)=>{r.d(t,{Bt:()=>p,D0:()=>d,L7:()=>b,jn:()=>x,l6:()=>m,lM:()=>f,pM:()=>g,pd:()=>c,yA:()=>u});var n=r(66839),s=r(44223),a=r(9986),l=r(55798),o=r(72615),i=r(76723);function d({label:e,hint:t,hintError:r,children:s}){return(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-sm text-foreground font-medium",children:e}),s,t&&(0,n.jsx)("p",{className:`text-xs ${r?"text-destructive":"text-muted-foreground"}`,children:t})]})}function c({className:e="",...t}){return(0,n.jsx)("input",{...t,className:`w-full px-3 py-2 text-sm bg-background border border-border rounded-lg text-foreground placeholder:text-muted-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 ${e}`})}function u({value:e,onChange:t,placeholder:r,disabled:o,className:i="",size:d="md"}){let[c,u]=(0,s.useState)(!1),m="sm"===d;return(0,n.jsxs)("div",{className:`flex items-center border border-border rounded-lg bg-background focus-within:ring-1 focus-within:ring-ring overflow-hidden ${i}`,children:[(0,n.jsx)("input",{type:c?"text":"password",value:e,onChange:e=>t(e.target.value),placeholder:r??"••••••••",disabled:o,className:`flex-1 bg-transparent text-foreground placeholder:text-muted-foreground outline-none disabled:opacity-50 ${m?"px-2.5 py-1.5 text-xs font-mono":"px-3 py-2 text-sm"}`}),!!e&&(0,n.jsx)("button",{type:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>u(e=>!e),disabled:o,className:`shrink-0 text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50 ${m?"p-1.5":"p-2"}`,title:c?"Hide":"Show",children:c?(0,n.jsx)(a.A,{size:m?14:16}):(0,n.jsx)(l.A,{size:m?14:16})})]})}function m({value:e,onChange:t,children:r,className:a="",disabled:l,size:d="md"}){let c=(0,s.useId)(),[u,m]=(0,s.useState)(!1),[p,f]=(0,s.useState)(-1),x=(0,s.useRef)(null),b=(0,s.useRef)(null),g=(0,s.useMemo)(()=>s.Children.toArray(r).filter(e=>s.isValidElement(e)&&"option"===e.type).map(e=>({value:String(e.props.value??""),label:String(e.props.children??e.props.value??"")})),[r]),h=g.findIndex(t=>t.value===e),v=g[h]?.label??"";(0,s.useEffect)(()=>{if(!u)return;let e=e=>{x.current&&!x.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]),(0,s.useEffect)(()=>{if(u&&b.current&&p>=0){let e=b.current.children[p];e?.scrollIntoView({block:"nearest"})}},[u,p]);let y=(0,s.useCallback)(e=>{e>=0&&e<g.length&&(t?.({target:{value:g[e].value}}),m(!1))},[g,t]),w=(0,s.useCallback)(e=>{if(!u){["Enter"," ","ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),m(!0),f(h>=0?h:0));return}switch(e.key){case"ArrowDown":e.preventDefault(),f(e=>Math.min(e+1,g.length-1));break;case"ArrowUp":e.preventDefault(),f(e=>Math.max(e-1,0));break;case"Enter":case" ":e.preventDefault(),y(p);break;case"Escape":e.preventDefault(),m(!1);break;case"Tab":m(!1)}},[u,g.length,h,p,y]);return(0,n.jsxs)("div",{ref:x,className:`relative ${a}`,children:[(0,n.jsxs)("button",{type:"button",disabled:l,onClick:()=>{m(e=>!e),f(h>=0?h:0)},onKeyDown:w,"aria-haspopup":"listbox","aria-expanded":u,className:`${"sm"===d?"px-1.5 py-0.5 text-xs rounded cursor-pointer":"w-full px-3 py-2 text-sm rounded-lg"} bg-background border border-border text-foreground text-left flex items-center justify-between gap-2 outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed`,children:[(0,n.jsx)("span",{className:`truncate ${v?"":"text-muted-foreground"}`,children:v||"—"}),(0,n.jsx)(o.A,{size:"sm"===d?10:14,className:`shrink-0 text-muted-foreground transition-transform duration-150 ${u?"rotate-180":""}`})]}),u&&(0,n.jsx)("div",{ref:b,role:"listbox","aria-activedescendant":p>=0?`${c}-opt-${p}`:void 0,className:`absolute z-20 ${"sm"===d?"min-w-[8rem]":"w-full"} mt-1 py-1 border border-border rounded-lg bg-card shadow-lg max-h-60 overflow-auto animate-in fade-in-0 zoom-in-95 duration-100`,children:g.map((t,r)=>{let s=t.value===e,a=r===p;return(0,n.jsxs)("button",{id:`${c}-opt-${r}`,role:"option","aria-selected":s,type:"button",onMouseDown:e=>{e.preventDefault(),y(r)},onMouseEnter:()=>f(r),className:`w-full ${"sm"===d?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm"} text-left flex items-center gap-2 transition-colors ${a?"bg-accent text-accent-foreground":"text-foreground"}`,children:[(0,n.jsx)(i.A,{size:"sm"===d?10:14,className:`shrink-0 ${s?"text-[var(--amber)]":"invisible"}`}),(0,n.jsx)("span",{className:"truncate",children:t.label})]},t.value)})})]})}function p({overridden:e}){return e?(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-[var(--amber-subtle)] text-[var(--amber-text)] font-mono ml-1.5",children:"env"}):null}function f({checked:e,onChange:t,size:r="md",disabled:s,title:a,onClick:l}){let o="sm"===r;return(0,n.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:s,title:a,onClick:l??(()=>t?.(!e)),className:`relative inline-flex shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 ${o?"h-4 w-7":"h-5 w-9"} ${e?"bg-[var(--amber)]":"bg-muted"}`,children:(0,n.jsx)("span",{className:`pointer-events-none inline-block rounded-full bg-white shadow-sm transition-transform ${o?"h-3 w-3":"h-4 w-4"} ${e?o?"translate-x-3":"translate-x-4":"translate-x-0"}`})})}function x({children:e,disabled:t,onClick:r,type:s="button",className:a="",...l}){return(0,n.jsx)("button",{type:s,onClick:r,disabled:t,className:`px-4 py-2 text-sm font-medium rounded-lg bg-[var(--amber)] text-[var(--amber-foreground)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${a}`,...l,children:e})}function b({icon:e,title:t,description:r,badge:s,children:a,className:l=""}){return(0,n.jsxs)("div",{className:`rounded-xl border border-border/50 bg-card/50 p-5 ${l}`,children:[(0,n.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,n.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0 mt-0.5",children:(0,n.jsx)("span",{className:"text-muted-foreground",children:e})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:t}),s]}),r&&(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:r})]})]}),(0,n.jsx)("div",{className:"space-y-4 pl-11",children:a})]})}function g({label:e,hint:t,children:r}){return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"text-sm text-foreground",children:e}),t&&(0,n.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:t})]}),(0,n.jsx)("div",{className:"shrink-0",children:r})]})}}}]);
@@ -0,0 +1,20 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3045],{24773:(e,t,s)=>{s.d(t,{Ay:()=>es,Fo:()=>L,gL:()=>I});var n=s(66839),r=s(44223),a=s(56261),i=s(62329),o=s(58221),l=s(18659),c=s(30401),d=s(44361),u=s(72615),m=s(95991),p=s(14987),x=s(27636),h=s(61017),f=s(52954),g=s(82417),v=s(24336),y=s(2408),b=s(31606),j=s(65799);let N=(0,j.createServerReference)("60b8d4f165b5185a5d4bd7271ffe5a185cf0c529dc",j.callServer,void 0,j.findSourceMapURL,"createFileAction"),w=(0,j.createServerReference)("60049b6439a738384f6b90c206e3cc11c08a15607f",j.callServer,void 0,j.findSourceMapURL,"renameSpaceAction");var k=s(87446);let S=(0,j.createServerReference)("404e0dda95ffbd7c54362abc96e17ad235646c8024",j.callServer,void 0,j.findSourceMapURL,"deleteSpaceAction"),T=(0,j.createServerReference)("40641fed8ce41750ec9b015c44881c9f2c78b8f015",j.callServer,void 0,j.findSourceMapURL,"deleteFolderAction");var C=s(92879),A=s(37326),E=s(79455),z=s(2073),R=s(84734),$=s(27069);let D="show-hidden-files";function P(e){let t=t=>{t.key===D&&e()},s=()=>e();return window.addEventListener("storage",t),window.addEventListener("mindos:hidden-files-changed",s),()=>{window.removeEventListener("storage",t),window.removeEventListener("mindos:hidden-files-changed",s)}}function F(){return"true"===localStorage.getItem(D)}function L(e){localStorage.setItem(D,String(e)),window.dispatchEvent(new Event("mindos:hidden-files-changed"))}function I(){return(0,r.useSyncExternalStore)(P,F,()=>!1)}var O=s(73601),M=s(85764),U=s(10952);let H=(0,j.createServerReference)("40c57846d49f21579c5062ab5774eaa0ea1523087e",j.callServer,void 0,j.findSourceMapURL,"convertToSpaceAction");var _=s(62800);async function B(e){try{await navigator.clipboard.writeText(e)}catch{}}let J="w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted transition-colors text-left",W="w-full flex items-center gap-2 px-3 py-2 text-sm text-error hover:bg-error/10 transition-colors text-left",Y="my-1 border-t border-border/50";function K({x:e,y:t,onClose:s,menuHeight:a,children:i}){let o=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&s()},t=e=>{"Escape"===e.key&&s()};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[s]);let l=Math.min(t,window.innerHeight-(a??160)),c=Math.min(e,window.innerWidth-200);return(0,n.jsx)("div",{ref:o,className:"fixed z-50 min-w-[180px] bg-card border border-border rounded-lg shadow-lg py-1",style:{top:l,left:c},children:i})}function V({x:e,y:t,node:s,onClose:r,onRename:i,onNewFile:l,onImport:c,onDelete:d}){let u=(0,a.useRouter)(),{t:m}=(0,z.Y)(),{isPinned:p,togglePin:x}=(0,$.Z)(),h=p(s.path);return(0,n.jsxs)(K,{x:e,y:t,onClose:r,children:[(0,n.jsxs)("button",{className:J,onClick:()=>{l(),r()},children:[(0,n.jsx)(O.A,{size:14,className:"shrink-0"})," ",m.fileTree.newFile]}),(0,n.jsxs)("button",{className:J,onClick:()=>{u.push(`/view/${(0,o.O0)(`${s.path}/INSTRUCTION.md`)}`),r()},children:[(0,n.jsx)(M.A,{size:14,className:"shrink-0"})," ",m.fileTree.viewRules]}),c&&(0,n.jsxs)("button",{className:J,onClick:()=>{c(s.path),r()},children:[(0,n.jsx)(U.A,{size:14,className:"shrink-0"})," ",m.fileTree.importFile]}),(0,n.jsx)("div",{className:Y}),(0,n.jsxs)("button",{className:J,onClick:()=>{x(s.path),r()},children:[(0,n.jsx)(g.A,{size:14,className:`shrink-0 ${h?"fill-[var(--amber)] text-[var(--amber)]":""}`}),h?m.fileTree.removeFromFavorites:m.fileTree.pinToFavorites]}),(0,n.jsxs)("button",{className:J,onClick:()=>{B(s.path),r()},children:[(0,n.jsx)(v.A,{size:14,className:"shrink-0"})," ",m.fileTree.copyPath]}),(0,n.jsxs)("button",{className:J,onClick:()=>{i(),r()},children:[(0,n.jsx)(y.A,{size:14,className:"shrink-0"})," ",m.fileTree.renameSpace]}),(0,n.jsx)("div",{className:Y}),(0,n.jsxs)("button",{className:W,onClick:()=>{r(),d()},children:[(0,n.jsx)(b.A,{size:14,className:"shrink-0"}),m.fileTree.deleteSpace]})]})}function G({x:e,y:t,node:s,onClose:i,onRename:o,onNewFile:l,onDelete:c}){let d=(0,a.useRouter)(),{t:u}=(0,z.Y)(),[m,x]=(0,r.useTransition)(),{isPinned:h,togglePin:f}=(0,$.Z)(),j=h(s.path);return(0,n.jsxs)(K,{x:e,y:t,onClose:i,menuHeight:220,children:[(0,n.jsxs)("button",{className:J,onClick:()=>{l(),i()},children:[(0,n.jsx)(O.A,{size:14,className:"shrink-0"})," ",u.fileTree.newFile]}),(0,n.jsx)("div",{className:Y}),(0,n.jsxs)("button",{className:J,onClick:()=>{f(s.path),i()},children:[(0,n.jsx)(g.A,{size:14,className:`shrink-0 ${j?"fill-[var(--amber)] text-[var(--amber)]":""}`}),j?u.fileTree.removeFromFavorites:u.fileTree.pinToFavorites]}),(0,n.jsxs)("button",{className:J,disabled:m,onClick:()=>{x(async()=>{if(!await (0,_.wD)()){E.oR.error(u.fileTree.convertToSpaceAiRequired,5e3),i();return}let e=await H(s.path);if(e.success){d.refresh(),window.dispatchEvent(new Event("mindos:files-changed"));let e=s.name.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||s.name;(0,_.Vz)(e,s.path)}else E.oR.error(e.error??u.fileTree.failed,4e3);i()})},children:[(0,n.jsx)(p.A,{size:14,className:"shrink-0 text-[var(--amber)]"})," ",u.fileTree.convertToSpace]}),(0,n.jsxs)("button",{className:J,onClick:()=>{B(s.path),i()},children:[(0,n.jsx)(v.A,{size:14,className:"shrink-0"})," ",u.fileTree.copyPath]}),(0,n.jsxs)("button",{className:J,onClick:()=>{o(),i()},children:[(0,n.jsx)(y.A,{size:14,className:"shrink-0"})," ",u.fileTree.rename]}),(0,n.jsx)("div",{className:Y}),(0,n.jsxs)("button",{className:W,onClick:()=>{i(),c()},children:[(0,n.jsx)(b.A,{size:14,className:"shrink-0"}),u.fileTree.deleteFolder]})]})}var q=s(72466);function Z(){window.dispatchEvent(new Event("mindos:files-changed"))}async function X(e){try{await navigator.clipboard.writeText(e)}catch{}}function Q({dirPath:e,depth:t,onDone:s}){let[i,l]=(0,r.useState)(""),[c,u]=(0,r.useTransition)(),[m,p]=(0,r.useState)(""),x=(0,a.useRouter)(),{t:h}=(0,z.Y)(),f=(0,r.useRef)(null),g=(0,r.useCallback)(()=>{let t=i.trim();t?u(async()=>{let n=await N(e,t);n.success&&n.filePath?(s(),x.push(`/view/${(0,o.O0)(n.filePath)}`),x.refresh(),Z()):p(n.error||h.fileTree.failed)}):p(h.fileTree.enterFileName)},[i,e,s,x,h]);return(0,r.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&s()},t=setTimeout(()=>document.addEventListener("mousedown",e),0);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}},[s]),(0,n.jsxs)("div",{ref:f,className:"px-2 pb-1",style:{paddingLeft:`${12*t+20}px`},children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)("input",{autoFocus:!0,type:"text",value:i,onChange:e=>{l(e.target.value),p("")},onKeyDown:e=>{"Enter"===e.key&&g(),"Escape"===e.key&&s()},placeholder:"filename.md",className:" flex-1 bg-muted border border-border rounded px-2 py-1 text-xs text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring "}),c?(0,n.jsx)(d.A,{size:13,className:"text-muted-foreground animate-spin shrink-0"}):(0,n.jsx)("button",{onClick:g,className:"text-xs text-[var(--amber)] hover:text-foreground shrink-0 px-1",children:h.fileTree.create})]}),m&&(0,n.jsx)("p",{className:"text-xs text-error mt-0.5 px-1",children:m})]})}let ee=(0,r.memo)(function({node:e,depth:t,currentPath:s,onNavigate:l,maxOpenDepth:c,onImport:g}){let v=(0,a.useRouter)(),y=s.startsWith(e.path+"/")||s===e.path,b=!!e.isSpace,[j,N]=(0,r.useState)(0===t||y),[A,$]=(0,r.useState)(0===t||y),[D,P]=(0,r.useState)(!1),[F,L]=(0,r.useState)(!1),[I,O]=(0,r.useState)(e.name),[M,U]=(0,r.useTransition)(),H=(0,r.useRef)(null),_=(0,r.useRef)(null),[B,J]=(0,r.useState)(null),{t:W}=(0,z.Y)(),[Y,K]=(0,r.useState)(null),[X,ee]=(0,r.useTransition)(),{isDragTarget:et,handleRowDragOver:en,handleRowDragEnter:er,handleRowDragLeave:ea,handleRowDrop:ei}=function(e,t,s,n){let[a,i]=(0,r.useState)(!1),o=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useCallback)(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]),d=(0,r.useCallback)(e=>{e.dataTransfer.types.includes("Files")&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",l.current&&(clearTimeout(l.current),l.current=null),a||i(!0))},[a]),u=(0,r.useCallback)(e=>{e.dataTransfer.types.includes("Files")&&(e.preventDefault(),e.stopPropagation(),i(!0),c(),t||(o.current=setTimeout(()=>{s(!0),o.current=null},500)))},[t,c,s]),m=(0,r.useCallback)(e=>{e.dataTransfer.types.includes("Files")&&(e.stopPropagation(),l.current=setTimeout(()=>{i(!1),c(),l.current=null},50))},[c]),p=(0,r.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),i(!1),c(),l.current&&(clearTimeout(l.current),l.current=null);let s=t.dataTransfer.files;s.length>0&&(0,q.Nh)(Array.from(s),e.path,n)},[e.path,n,c]);return(0,r.useEffect)(()=>()=>{o.current&&clearTimeout(o.current),l.current&&clearTimeout(l.current)},[]),{isDragTarget:a,handleRowDragOver:d,handleRowDragEnter:u,handleRowDragLeave:m,handleRowDrop:p}}(e,j,(0,r.useCallback)(e=>{N(e),e&&$(!0)},[]),W),eo=(0,r.useCallback)(()=>{N(e=>(e||$(!0),!e))},[]),el=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{if(null==c){el.current=c;return}if(el.current!==c){if(null===el.current||void 0===el.current)t>c?N(!1):$(!0);else{let e=t<=c;N(e),e&&$(!0)}el.current=c}},[c,t]),(0,r.useEffect)(()=>()=>{_.current&&clearTimeout(_.current)},[]);let ec=(0,r.useCallback)(t=>{t?.preventDefault(),t?.stopPropagation(),_.current&&(clearTimeout(_.current),_.current=null),O(e.name),L(!0),setTimeout(()=>H.current?.select(),0)},[e.name]),ed=(0,r.useCallback)(()=>{let t=I.trim();t&&t!==e.name?U(async()=>{let s=b?w:k.f,n=await s(e.path,t);n.success&&n.newPath?(L(!1),v.push(`/view/${(0,o.O0)(n.newPath)}`),v.refresh(),Z()):L(!1)}):L(!1)},[I,e.name,e.path,v,b]),eu=(0,r.useCallback)(()=>{F||(_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{v.push(`/view/${(0,o.O0)(e.path)}`),l?.(),_.current=null},180))},[F,v,e.path,l]);(0,r.useCallback)(e=>{e.stopPropagation(),eo()},[eo]);let em=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),J({x:e.clientX,y:e.clientY})},[]),ep=b?function e(t){return"file"===t.type?+!i.C.has(t.name):(t.children??[]).reduce((t,s)=>t+e(s),0)}(e):0;if(F)return(0,n.jsxs)("div",{className:"relative px-2 py-0.5",style:{paddingLeft:`${12*t+8}px`},children:[(0,n.jsx)("input",{ref:H,autoFocus:!0,value:I,onChange:e=>O(e.target.value),onKeyDown:e=>{"Enter"===e.key&&ed(),"Escape"===e.key&&L(!1)},onBlur:ed,className:"w-full bg-muted border border-border rounded px-2 py-0.5 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"}),M&&(0,n.jsx)(d.A,{size:12,className:"absolute right-3 top-1/2 -translate-y-1/2 animate-spin text-muted-foreground"})]});let ex=b&&0===t;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:`relative group/dir flex items-center transition-colors duration-100 ${et?"bg-[var(--amber)]/10 rounded-md":""}`,onContextMenu:em,onDragEnter:er,onDragOver:en,onDragLeave:ea,onDrop:ei,children:[(0,n.jsx)("button",{onClick:eo,className:"shrink-0 p-1 rounded hover:bg-muted text-muted-foreground transition-colors",style:{marginLeft:`${12*t+4}px`},"aria-label":j?`Collapse ${e.name}`:`Expand ${e.name}`,"aria-expanded":j,children:(0,n.jsx)("span",{className:"block transition-transform duration-150",style:{transform:j?"rotate(0deg)":"rotate(-90deg)"},children:(0,n.jsx)(u.A,{size:10})})}),(0,n.jsxs)("button",{type:"button",onClick:eu,draggable:!0,onDragStart:t=>{t.dataTransfer.setData("text/mindos-path",e.path),t.dataTransfer.setData("text/mindos-type","directory"),t.dataTransfer.effectAllowed="copy"},className:`
2
+ flex-1 flex items-center gap-1.5 px-1 py-1 rounded text-left min-w-0 pr-16
3
+ text-sm transition-colors duration-100
4
+ hover:bg-muted cursor-default
5
+ ${y?"text-foreground":"text-muted-foreground hover:text-foreground"}
6
+ `,children:[b?"Inbox"===e.name?(0,n.jsx)(m.A,{size:14,className:"shrink-0 text-[var(--amber)]"}):(0,n.jsx)(p.A,{size:14,className:"shrink-0 text-[var(--amber)]"}):j?(0,n.jsx)(x.A,{size:14,className:"text-yellow-400 shrink-0"}):(0,n.jsx)(h.A,{size:14,className:"text-yellow-400 shrink-0"}),(0,n.jsx)("span",{className:"truncate leading-5",suppressHydrationWarning:!0,children:e.name}),b&&!j&&(0,n.jsx)("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 tabular-nums pr-1",children:ep})]}),(0,n.jsx)("div",{className:"absolute right-1 top-1/2 -translate-y-1/2 hidden group-hover/dir:flex items-center gap-0.5 z-10",children:(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();J({x:t.left,y:t.bottom+4})},className:"p-0.5 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:"More",children:(0,n.jsx)(f.A,{size:14})})})]}),(0,n.jsx)("div",{className:`grid transition-[grid-template-rows] duration-200 ease-out ${j?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,n.jsxs)("div",{className:`overflow-hidden ${ex?"border-l-2 ml-[18px]":""}`,style:ex?{borderColor:"color-mix(in srgb, var(--amber) 30%, transparent)"}:void 0,...!j&&{inert:!0},children:[A&&e.children&&(0,n.jsx)(es,{nodes:e.children,depth:ex?1:t+1,onNavigate:l,maxOpenDepth:c,parentIsSpace:b,onImport:g}),D&&(0,n.jsx)(Q,{dirPath:e.path,depth:ex?0:t,onDone:()=>P(!1)})]})}),B&&(b?(0,n.jsx)(V,{x:B.x,y:B.y,node:e,onClose:()=>J(null),onRename:()=>ec(),onNewFile:()=>{N(!0),$(!0),P(!0)},onImport:g,onDelete:()=>K("space")}):(0,n.jsx)(G,{x:B.x,y:B.y,node:e,onClose:()=>J(null),onRename:()=>ec(),onNewFile:()=>{N(!0),$(!0),P(!0)},onDelete:()=>K("folder")})),(0,n.jsx)(R.TM,{open:null!==Y,title:"space"===Y?W.fileTree.deleteSpace:W.fileTree.deleteFolder,message:"space"===Y?W.fileTree.confirmDeleteSpace(e.name):W.fileTree.confirmDeleteFolder(e.name),confirmLabel:"space"===Y?W.fileTree.deleteSpace:W.fileTree.deleteFolder,cancelLabel:W.view?.cancel??"Cancel",variant:"destructive",onCancel:()=>K(null),onConfirm:()=>{K(null),ee(async()=>{let t="space"===Y?await S(e.path):await T(e.path);if(t.success&&t.trashId){let s=t.trashId,n=e.path.split("/").pop()??e.path;E.oR.undo(`${W.trash?.movedToTrash??"Deleted"} ${n}`,async()=>{let e=await (0,C.Y)(s);e.success?(v.refresh(),Z()):E.oR.error(e.error??"Undo failed")},{label:W.trash?.undo??"Undo"}),v.push("/"),v.refresh(),Z()}})}})]})}),et=(0,r.memo)(function({node:e,depth:t,currentPath:s,onNavigate:u}){let m=(0,a.useRouter)(),p=s===e.path,[x,h]=(0,r.useState)(!1),[j,N]=(0,r.useState)(e.name),[w,S]=(0,r.useTransition)(),[,T]=(0,r.useTransition)(),D=(0,r.useRef)(null),{t:P}=(0,z.Y)(),{isPinned:F,togglePin:L}=(0,$.Z)(),I=F(e.path),O=!e.path.includes("/")&&i.A.has(e.name),[M,U]=(0,r.useState)(!1),[H,_]=(0,r.useState)(null),B=(0,r.useCallback)(()=>{x||(m.push(`/view/${(0,o.O0)(e.path)}`),u?.())},[m,e.path,u,x]),V=(0,r.useCallback)(t=>{t.stopPropagation(),N(e.name),h(!0),setTimeout(()=>D.current?.select(),0)},[e.name]),G=(0,r.useCallback)(()=>{let t=j.trim();t&&t!==e.name?S(async()=>{let s=await (0,k.f)(e.path,t);s.success&&s.newPath?(h(!1),m.push(`/view/${(0,o.O0)(s.newPath)}`),m.refresh(),Z()):h(!1)}):h(!1)},[j,e.name,e.path,m]),q=(0,r.useCallback)(e=>{e.stopPropagation(),U(!0)},[]),Q=(0,r.useCallback)(t=>{t.dataTransfer.setData("text/mindos-path",e.path),t.dataTransfer.effectAllowed="copy"},[e.path]),ee=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),_({x:e.clientX,y:e.clientY})},[]);return x?(0,n.jsxs)("div",{className:"relative px-2 py-0.5",style:{paddingLeft:`${12*t+8}px`},children:[(0,n.jsx)("input",{ref:D,autoFocus:!0,value:j,onChange:e=>N(e.target.value),onKeyDown:e=>{"Enter"===e.key&&G(),"Escape"===e.key&&h(!1)},onBlur:G,className:"w-full bg-muted border border-border rounded px-2 py-0.5 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"}),w&&(0,n.jsx)(d.A,{size:12,className:"absolute right-3 top-1/2 -translate-y-1/2 animate-spin text-muted-foreground"})]}):(0,n.jsxs)("div",{className:"relative group/file",children:[(0,n.jsxs)("button",{onClick:B,onContextMenu:ee,draggable:!0,onDragStart:Q,"data-filepath":e.path,className:`
7
+ w-full flex items-center gap-1.5 px-2 py-1 rounded text-left
8
+ text-sm transition-colors duration-100 cursor-default pr-16
9
+ ${p?"bg-accent text-foreground":"hover:bg-muted text-muted-foreground hover:text-foreground"}
10
+ `,style:{paddingLeft:`${12*t+8}px`},children:["directory"===e.type?null:".csv"===e.extension?(0,n.jsx)(l.A,{size:14,className:"text-success shrink-0"}):(0,n.jsx)(c.A,{size:14,className:"text-muted-foreground shrink-0"}),(0,n.jsx)("span",{className:"truncate leading-5",suppressHydrationWarning:!0,children:e.name}),I&&(0,n.jsx)(g.A,{size:10,className:"shrink-0 fill-[var(--amber)] text-[var(--amber)] opacity-60"})]}),(0,n.jsx)("div",{className:"absolute right-1 top-1/2 -translate-y-1/2 hidden group-hover/file:flex items-center gap-0.5",children:(0,n.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();_({x:t.left,y:t.bottom+4})},className:"p-0.5 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:"More",children:(0,n.jsx)(f.A,{size:14})})}),H&&(0,n.jsxs)(K,{x:H.x,y:H.y,onClose:()=>_(null),menuHeight:140,children:[(0,n.jsxs)("button",{className:J,onClick:()=>{X(e.path),_(null)},children:[(0,n.jsx)(v.A,{size:14,className:"shrink-0"})," ",P.fileTree.copyPath]}),(0,n.jsxs)("button",{className:J,onClick:()=>{L(e.path),_(null)},children:[(0,n.jsx)(g.A,{size:14,className:`shrink-0 ${I?"fill-[var(--amber)] text-[var(--amber)]":""}`}),I?P.fileTree.removeFromFavorites:P.fileTree.pinToFavorites]}),!O&&(0,n.jsxs)("button",{className:J,onClick:e=>{_(null),V(e)},children:[(0,n.jsx)(y.A,{size:14,className:"shrink-0"})," ",P.fileTree.rename]}),!O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Y}),(0,n.jsxs)("button",{className:W,onClick:e=>{_(null),q(e)},children:[(0,n.jsx)(b.A,{size:14,className:"shrink-0"})," ",P.fileTree.delete]})]})]}),(0,n.jsx)(R.TM,{open:M,title:P.fileTree.delete,message:P.fileTree.confirmDelete(e.name),confirmLabel:P.fileTree.delete,cancelLabel:P.view?.cancel??"Cancel",variant:"destructive",onCancel:()=>U(!1),onConfirm:()=>{U(!1),T(async()=>{let t=await (0,A.i)(e.path);if(t.success){if(t.trashId){let s=t.trashId,n=e.path.split("/").pop()??e.path;E.oR.undo(`${P.trash?.movedToTrash??"Deleted"} ${n}`,async()=>{let e=await (0,C.Y)(s);e.success?(m.refresh(),Z()):E.oR.error(e.error??"Undo failed")},{label:P.trash?.undo??"Undo"})}m.refresh(),Z()}})}})]})});function es({nodes:e,depth:t=0,onNavigate:s,maxOpenDepth:o,parentIsSpace:l,onImport:c}){var d;let u,m=(u="/view/",(d=(0,a.usePathname)()).startsWith(u)?d.slice(u.length).split("/").map(decodeURIComponent).join("/"):""),p=I(),x=0===t,h=(0,r.useMemo)(()=>{let t=p?e:e.filter(e=>!(x&&e.name.startsWith(".")||"file"===e.type&&i.C.has(e.name)||"directory"===e.type&&e.name.startsWith(".")));return x?t.filter(e=>"directory"!==e.type||"Inbox"!==e.name):t},[e,p,x]);return(0,r.useEffect)(()=>{if(!m||0!==t)return;let e=setTimeout(()=>{let e=document.querySelector(`[data-filepath="${CSS.escape(m)}"]`);e?.scrollIntoView({block:"nearest",behavior:"smooth"})},120);return()=>clearTimeout(e)},[m,t]),(0,n.jsx)("div",{className:"flex flex-col gap-0.5",children:h.map(e=>"directory"===e.type?(0,n.jsx)(ee,{node:e,depth:t,currentPath:m,onNavigate:s,maxOpenDepth:o,onImport:c},e.path):(0,n.jsx)(et,{node:e,depth:t,currentPath:m,onNavigate:s},e.path))})}},53311:(e,t,s)=>{s.d(t,{v:()=>n});async function n(e,t){try{var s;let n=await fetch(e,t);if(!n.ok)return!1;return!!((s=await n.json().catch(()=>null))&&"object"==typeof s&&!0===s.ok&&"mindos"===s.service)}catch{return!1}}},62800:(e,t,s)=>{s.d(t,{Vz:()=>o,wD:()=>r});var n=s(65264);async function r(){try{let e=await (0,n.n)("/api/settings"),t=e.ai?.provider??"",s=(e.ai?.providers??{})[t];return!!s?.apiKey}catch{return!1}}function a(e){for(let t of e.split("\n")){let e=t.trim();if(!e.startsWith("data:"))continue;let s=e.slice(5).trim();if(s)try{let e=JSON.parse(s);if("error"===e.type)return String(e.message||"AI initialization failed")}catch{}}return null}async function i(e){let t=e.getReader(),s=new TextDecoder,n="";try{for(;;){let{done:e,value:r}=await t.read();if(e)break;let i=(n+=s.decode(r,{stream:!0})).split("\n");n=i.pop()??"";let o=a(i.join("\n"));if(o)throw Error(o)}if(n){let e=a(n);if(e)throw Error(e)}}finally{t.releaseLock()}}function o(e,t,s=""){let n="u">typeof document&&"zh"===document.documentElement.lang?`初始化新建的心智空间「${e}」,路径为「${t}/」。${s?`描述:「${s}」。`:""}两个文件均已存在模板,用 write_file 覆盖:
11
+ 1. 「${t}/README.md」— 写入空间用途、结构概览、使用指南
12
+ 2. 「${t}/INSTRUCTION.md」— 写入 AI Agent 在此空间中的行为规则和操作约定
13
+
14
+ 内容简洁实用,直接使用工具写入。`:`Initialize the new Mind Space "${e}" at "${t}/". ${s?`Description: "${s}". `:""}Both files already exist with templates — use write_file to overwrite:
15
+ 1. "${t}/README.md" — write purpose, structure overview, usage guidelines
16
+ 2. "${t}/INSTRUCTION.md" — write rules for AI agents operating in this space
17
+
18
+ Keep content concise and actionable. Write files directly using tools.`;window.dispatchEvent(new CustomEvent("mindos:ai-init",{detail:{spaceName:e,spacePath:t,description:s,state:"working"}})),fetch("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[{role:"user",content:n}],currentFile:t+"/INSTRUCTION.md"})}).then(async e=>{if(!e.ok||!e.body)throw Error(`HTTP ${e.status}`);await i(e.body),window.dispatchEvent(new CustomEvent("mindos:ai-init",{detail:{spacePath:t,state:"done"}})),window.dispatchEvent(new Event("mindos:files-changed"))}).catch(()=>{window.dispatchEvent(new CustomEvent("mindos:ai-init",{detail:{spacePath:t,state:"error"}}))})}},75579:(e,t,s)=>{s.d(t,{vP:()=>w,$_:()=>b,fF:()=>v});var n=s(66839),r=s(44223),a=s(21082),i=s(98327),o=s(44361),l=s(3972),c=s(76723),d=s(44910),u=s(67885),m=s(38688),p=s(69527),x=s(65264),h=s(9986),f=s(55798);function g({t:e,onInitComplete:t}){var s;let i=e.settings?.sync,[l,u]=(0,r.useState)(""),[g,v]=(0,r.useState)(""),[y,j]=(0,r.useState)("main"),[N,w]=(0,r.useState)(!1),[k,S]=(0,r.useState)(-1),[T,C]=(0,r.useState)(""),A=(0,r.useRef)(null),E=k>=0&&k<4,z=l.trim()?(s=l.trim(),/^https:\/\/.+/.test(s)?"https":!!/^git@[\w.-]+:.+/.test(s)&&"ssh"):null,R="https"===z||"ssh"===z,$=async()=>{S(0),C("");let e=(e,t)=>setTimeout(()=>S(t=>t>=0&&t<4?e:t),t);A.current=e(1,2e3);let s=e(2,5e3);try{await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"init",remote:l.trim(),token:g.trim()||void 0,branch:y.trim()||"main"}),timeout:12e4}),S(4),setTimeout(()=>t(),600)}catch(s){let e=s instanceof Error?s.message:"Connection failed";e.includes("timed out")&&(e=i?.timeoutError??"Connection timed out. The remote repository may be large or the network is slow. Please try again.");let t=b(e,l,i);C(t?`${e}
19
+ ${t}`:e),S(-1)}finally{A.current&&clearTimeout(A.current),clearTimeout(s)}},D=[i?.stepConnecting??"Connecting to remote...",i?.stepAuthenticating??"Authenticating...",i?.stepSyncing??"Syncing data...",i?.stepAlmostDone??"Almost done..."];return(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)(p.L7,{icon:(0,n.jsx)(d.A,{size:15}),title:i?.emptyTitle??"Cross-device Sync",description:i?.emptyDesc??"Automatically sync your knowledge base across devices via Git.",children:[(0,n.jsxs)(p.D0,{label:i?.remoteUrl??"Git Remote URL",hint:"ssh"===z?i?.sshHint??"Requires SSH key on this machine. Verify with: ssh -T git@github.com":void 0,children:[(0,n.jsx)(p.pd,{type:"text",value:l,onChange:e=>{u(e.target.value),C("")},placeholder:"git@github.com:user/repo.git",className:`font-mono ${l.trim()&&!R?"border-destructive":""}`}),!l.trim()&&(0,n.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-muted-foreground mt-1.5",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("code",{className:"text-foreground/60 bg-muted/60 px-1 py-0.5 rounded text-2xs",children:"SSH"})," ",i?.sshBrief??"one-time key setup, no token needed"]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("code",{className:"text-foreground/60 bg-muted/60 px-1 py-0.5 rounded text-2xs",children:"HTTPS"})," ",i?.httpsBrief??"works anywhere, token recommended"]})]}),l.trim()&&!R&&(0,n.jsx)("p",{className:"text-xs text-destructive mt-1",children:i?.invalidUrl??"Invalid Git URL — use HTTPS (https://...) or SSH (git@...)"})]}),"https"===z&&(0,n.jsxs)(p.D0,{label:(0,n.jsxs)(n.Fragment,{children:[i?.accessToken??"Access Token"," ",(0,n.jsx)("span",{className:"text-muted-foreground font-normal",children:i?.optional??"(optional, for private repos)"})]}),hint:void 0,children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(p.pd,{type:N?"text":"password",value:g,onChange:e=>v(e.target.value),placeholder:"ghp_xxxxxxxxxxxx",className:"pr-9 font-mono"}),(0,n.jsx)("button",{type:"button",onClick:()=>w(!N),className:"absolute right-2 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-muted text-muted-foreground transition-colors",children:N?(0,n.jsx)(h.A,{size:14}):(0,n.jsx)(f.A,{size:14})})]}),(0,n.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:[i?.tokenHint??"GitHub:"," ",(0,n.jsx)("a",{href:"https://github.com/settings/tokens/new?scopes=repo&description=MindOS+Sync",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground transition-colors",children:i?.tokenLink??"Create a token (repo scope)"})]})]}),(0,n.jsx)(p.D0,{label:i?.branchLabel??"Branch",children:(0,n.jsx)(p.pd,{type:"text",value:y,onChange:e=>j(e.target.value),placeholder:"main",className:"max-w-[200px] font-mono"})}),!E&&4!==k&&(0,n.jsx)(p.jn,{onClick:$,disabled:!R,className:"flex items-center gap-2",children:i?.connectButton??"Connect & Start Sync"}),(E||4===k)&&(0,n.jsxs)("div",{className:"space-y-2 py-1",children:[D.map((e,t)=>{let s=k>t||4===k,r=k===t&&k<4;return k<t&&k<4?null:(0,n.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[s?(0,n.jsx)(c.A,{size:13,className:"text-success shrink-0"}):(0,n.jsx)(o.A,{size:13,className:"animate-spin text-muted-foreground shrink-0"}),(0,n.jsx)("span",{className:s?"text-success":r?"text-foreground":"text-muted-foreground",children:e})]},t)}),4===k&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,n.jsx)(m.A,{size:13,className:"text-success shrink-0"}),(0,n.jsx)("span",{className:"text-success font-medium",children:i?.stepDone??"Sync configured successfully!"})]})]}),T&&(0,n.jsxs)("div",{className:"flex items-start gap-2 text-xs p-3 rounded-lg bg-destructive/10 text-destructive",role:"alert","aria-live":"polite",children:[(0,n.jsx)(a.A,{size:13,className:"shrink-0 mt-0.5"}),(0,n.jsx)("div",{className:"space-y-1",children:T.split("\n").map((e,t)=>(0,n.jsx)("span",{className:`block ${t>0?"text-destructive/70":""}`,children:e},t))})]})]}),(0,n.jsx)("div",{className:"grid grid-cols-2 gap-2 text-xs text-muted-foreground px-5",children:[i?.featureAutoCommit??"Auto-commit on save",i?.featureAutoPull??"Auto-pull from remote",i?.featureConflict??"Conflict detection",i?.featureMultiDevice??"Works across devices"].map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(m.A,{size:11,className:"text-success/60 shrink-0"}),(0,n.jsx)("span",{children:e})]},t))})]})}function v(e,t){if(!e)return t?.timeNever??"never";let s=Date.now()-new Date(e).getTime();if(s<6e4)return t?.timeJustNow??"just now";let n=Math.floor(s/6e4);if(s<36e5)return t?.timeMinAgo?.(n)??`${n}m ago`;let r=Math.floor(s/36e5);if(s<864e5)return t?.timeHourAgo?.(r)??`${r}h ago`;let a=Math.floor(s/864e5);return t?.timeDayAgo?.(a)??`${a}d ago`}function y(e,t){let s=b(e,void 0,t);return s?`${e}
20
+ ${s}`:e}function b(e,t,s){let n=e.toLowerCase();return n.includes("permission denied")||n.includes("publickey")?s?.hintSshAuth??"SSH key may not be configured. Run: ssh-keygen -t ed25519 && ssh -T git@github.com":n.includes("host key")||n.includes("known_hosts")||n.includes("fingerprint")?s?.hintSshHost??"Run: ssh-keyscan github.com >> ~/.ssh/known_hosts":n.includes("authentication failed")||n.includes("invalid credentials")||n.includes("401")||n.includes("403")?s?.hintHttpsAuth??"Access token may be expired or missing. Check Settings → Developer settings → Personal access tokens.":n.includes("timed out")||n.includes("timeout")||n.includes("could not resolve")?s?.hintNetwork??"Check your network connection and try again.":n.includes("not found")||n.includes("does not exist")||n.includes("repository not found")?s?.hintNotFound??"Repository not found. Check the URL and ensure the repo exists.":n.includes("non-fast-forward")||n.includes("rejected")||n.includes("fetch first")?s?.hintPushRejected??'Remote has changes. Click "Sync Now" to pull and retry.':n.includes("conflict")||n.includes("merge")?s?.hintConflict??"Merge conflict detected. Check the Conflicts section below.":""}function j({file:e,time:t,syncT:s,onResolved:l}){let[c,d]=(0,r.useState)(null),[u,m]=(0,r.useState)(!1),[p,h]=(0,r.useState)(null),[f,g]=(0,r.useState)(!1),y=async()=>{if(u)return void m(!1);if(!p){g(!0);try{let t=await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"conflict-preview",remote:e})});h(t)}catch{}g(!1)}m(!0)},b=async t=>{d("keep-local"===t?"local":"remote");try{await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"resolve-conflict",remote:e,branch:t})}),l()}catch{d(null)}};return(0,n.jsxs)("div",{className:"rounded-lg border border-border/50 overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 p-2 text-xs bg-muted/20",children:[(0,n.jsx)(a.A,{size:12,className:"text-error shrink-0"}),(0,n.jsxs)("button",{type:"button",onClick:y,className:"font-mono truncate hover:text-foreground hover:underline transition-colors flex-1 min-w-0 text-left",title:s?.viewDiff??"View differences",children:[(0,n.jsx)(i.A,{size:11,className:`inline mr-1 transition-transform ${u?"rotate-90":""}`}),e]}),(0,n.jsx)("span",{className:"text-muted-foreground shrink-0",children:v(t,s)}),(0,n.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,n.jsx)("button",{type:"button",onClick:()=>b("keep-local"),disabled:!!c,className:"px-2 py-0.5 rounded border border-border text-2xs hover:bg-muted transition-colors disabled:opacity-40",title:s?.keepLocalHint??"Keep this device's version",children:"local"===c?(0,n.jsx)(o.A,{size:10,className:"animate-spin"}):s?.keepLocal??"Keep local"}),(0,n.jsx)("button",{type:"button",onClick:()=>b("keep-remote"),disabled:!!c,className:"px-2 py-0.5 rounded border border-border text-2xs hover:bg-muted transition-colors disabled:opacity-40",title:s?.keepRemoteHint??"Replace with remote version",children:"remote"===c?(0,n.jsx)(o.A,{size:10,className:"animate-spin"}):s?.keepRemote??"Keep remote"})]})]}),u&&(0,n.jsx)("div",{className:"border-t border-border/50",children:f?(0,n.jsx)("div",{className:"flex justify-center py-3",children:(0,n.jsx)(o.A,{size:13,className:"animate-spin text-muted-foreground"})}):p?(0,n.jsxs)("div",{className:"grid grid-cols-2 divide-x divide-border/50 text-2xs font-mono max-h-60 overflow-auto",children:[(0,n.jsxs)("div",{className:"p-2",children:[(0,n.jsx)("div",{className:"text-muted-foreground mb-1 font-sans text-xs font-medium",children:s?.localVersion??"Local (this device)"}),(0,n.jsx)("pre",{className:"whitespace-pre-wrap text-foreground/80 leading-relaxed",children:p.local||(s?.emptyFile??"(empty)")})]}),(0,n.jsxs)("div",{className:"p-2",children:[(0,n.jsx)("div",{className:"text-muted-foreground mb-1 font-sans text-xs font-medium",children:s?.remoteVersion??"Remote"}),(0,n.jsx)("pre",{className:"whitespace-pre-wrap text-foreground/80 leading-relaxed",children:p.remote||(s?.emptyFile??"(empty)")})]})]}):null})]})}function N({syncT:e}){let[t,s]=(0,r.useState)(!1),[a,d]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),[p,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),v=(0,r.useRef)(!1),y=a!==u;(0,r.useEffect)(()=>{t&&!v.current&&(v.current=!0,h(!0),(0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"gitignore-get"})}).then(e=>{d(e.content),m(e.content)}).catch(()=>{}).finally(()=>h(!1)))},[t]);let b=async()=>{try{await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"gitignore-save",content:a})}),m(a),g(!0),setTimeout(()=>g(!1),2e3)}catch{}};return(0,n.jsxs)("div",{className:"pt-2 border-t border-border/50",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>s(!t),className:"flex items-center gap-2 w-full text-left text-sm text-muted-foreground hover:text-foreground transition-colors py-1",children:[(0,n.jsx)(i.A,{size:14,className:`shrink-0 transition-transform ${t?"rotate-90":""}`}),(0,n.jsx)(l.A,{size:13,className:"shrink-0"}),(0,n.jsx)("span",{children:e?.gitignoreTitle??"Excluded files"}),(0,n.jsx)("span",{className:"text-2xs opacity-50",children:".gitignore"})]}),t&&(0,n.jsx)("div",{className:"mt-2 space-y-2",children:p?(0,n.jsx)("div",{className:"flex justify-center py-4",children:(0,n.jsx)(o.A,{size:14,className:"animate-spin text-muted-foreground"})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("textarea",{value:a,onChange:e=>d(e.target.value),rows:8,className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-xs font-mono leading-relaxed text-foreground placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-ring resize-y",placeholder:e?.gitignorePlaceholder??"# Files to exclude from sync\n*.tmp\nsecret/",spellCheck:!1}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[y&&(0,n.jsx)("button",{type:"button",onClick:b,className:"flex items-center gap-1.5 px-3 py-1 text-xs rounded-lg bg-[var(--amber)] text-[var(--amber-foreground)] hover:opacity-90 transition-opacity",children:e?.gitignoreSave??"Save"}),f&&(0,n.jsxs)("span",{className:"flex items-center gap-1 text-xs text-success",children:[(0,n.jsx)(c.A,{size:12})," ",e?.gitignoreSaved??"Saved"]})]})]})})]})}function w({t:e,visible:t}){let s=e.settings?.sync,[i,l]=(0,r.useState)(null),[c,h]=(0,r.useState)(!0),[f,w]=(0,r.useState)(!1),[k,S]=(0,r.useState)(!1),[T,C]=(0,r.useState)(null),A=(0,r.useCallback)(e=>{C({type:"success",text:e}),setTimeout(()=>{C(t=>t?.type==="success"&&t.text===e?null:t)},3e3)},[]),E=(0,r.useCallback)(async()=>{try{let e=await (0,x.n)("/api/sync",{timeout:1e4});l(e)}catch{l(e=>e??null)}finally{h(!1)}},[]);(0,r.useEffect)(()=>{E()},[E]);let z=(0,r.useRef)(t);(0,r.useEffect)(()=>{t&&!z.current&&null!==i&&E(),z.current=t},[t,i,E]);let R=async()=>{w(!0),C(null);try{await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"now"}),timeout:12e4}),A(s?.syncComplete??"Sync complete"),await E()}catch(e){C({type:"error",text:y(e instanceof Error?e.message:"Sync failed",s)})}finally{w(!1)}},$=async()=>{if(!i)return;S(!0),C(null);let e=i.enabled?"off":"on";try{await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e})}),await E(),A(i.enabled?s?.autoSyncDisabled??"Auto-sync disabled":s?.autoSyncEnabled??"Auto-sync enabled")}catch(e){C({type:"error",text:y(e instanceof Error?e.message:s?.toggleFailed??"Failed to toggle sync",s)})}finally{S(!1)}},D=async()=>{S(!0),C(null);try{await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"reset"})}),await E()}catch(e){C({type:"error",text:y(e instanceof Error?e.message:s?.resetFailed??"Failed to reset sync configuration",s)})}finally{S(!1)}},P=async e=>{C(null);try{await (0,x.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update-intervals",...e})}),await E(),A(s?.settingsSaved??"Sync settings saved")}catch(e){C({type:"error",text:y(e instanceof Error?e.message:"Failed to update sync settings",s)})}};if(c)return(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(o.A,{size:18,className:"animate-spin text-muted-foreground"})});if(!i||!i.enabled)return(0,n.jsx)(g,{t:e,onInitComplete:E});if(i.needsSetup)return(0,n.jsx)("div",{className:"space-y-6",children:(0,n.jsxs)("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-destructive/10",children:[(0,n.jsx)(a.A,{size:18,className:"text-destructive shrink-0 mt-0.5"}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h3",{className:"text-sm font-medium text-destructive",children:s?.brokenTitle??"Sync configuration is broken"}),(0,n.jsx)("p",{className:"text-xs text-destructive/80",children:i.lastError||(s?.brokenDesc??"The git repository or remote is missing. Reset to re-configure.")}),(0,n.jsxs)(p.jn,{onClick:D,disabled:k,className:"flex items-center gap-2 mt-2",children:[k&&(0,n.jsx)(o.A,{size:14,className:"animate-spin"}),s?.resetButton??"Reset & Re-configure"]})]})]})});let F=i.conflicts||[];return(0,n.jsx)("div",{className:"space-y-4",children:(0,n.jsxs)(p.L7,{icon:(0,n.jsx)(d.A,{size:15}),title:s?.sectionTitle??"Sync",description:i.remote,badge:(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-success/15 text-success font-medium",children:s?.labelEnabled??"Active"}),children:[(0,n.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:s?.labelBranch??"Branch"}),(0,n.jsx)("span",{className:"font-mono text-xs",children:i.branch})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:s?.labelLastSync??"Last sync"}),(0,n.jsx)("span",{className:"text-xs",children:v(i.lastSync,s)})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:s?.labelUnpushed??"Unpushed"}),(0,n.jsx)("span",{className:"text-xs",children:"string"==typeof i.unpushed&&/^\d+$/.test(i.unpushed)?s?.unpushedCommits?.(parseInt(i.unpushed,10))??`${i.unpushed} commits`:`${i.unpushed??"?"} commits`})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:s?.labelAutoSync??"Auto-sync"}),(0,n.jsxs)("span",{className:"flex items-center gap-1 text-xs",children:["commit"," ",(0,n.jsxs)(p.l6,{size:"sm",value:String(i.autoCommitInterval),onChange:e=>{P({autoCommitInterval:parseInt(e.target.value,10)})},children:[(0,n.jsx)("option",{value:"10",children:"10s"}),(0,n.jsx)("option",{value:"15",children:"15s"}),(0,n.jsx)("option",{value:"30",children:"30s"}),(0,n.jsx)("option",{value:"60",children:"60s"}),(0,n.jsx)("option",{value:"120",children:"120s"})]})," \xb7 pull ",(0,n.jsxs)(p.l6,{size:"sm",value:String(i.autoPullInterval),onChange:e=>{P({autoPullInterval:parseInt(e.target.value,10)})},children:[(0,n.jsx)("option",{value:"60",children:"1min"}),(0,n.jsx)("option",{value:"120",children:"2min"}),(0,n.jsx)("option",{value:"300",children:"5min"}),(0,n.jsx)("option",{value:"600",children:"10min"}),(0,n.jsx)("option",{value:"1800",children:"30min"}),(0,n.jsx)("option",{value:"3600",children:"60min"})]})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,n.jsxs)("button",{type:"button",onClick:R,disabled:f,className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-lg border border-border text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[(0,n.jsx)(u.A,{size:12,className:f?"animate-spin":""}),s?.syncNow??"Sync Now"]}),(0,n.jsx)("button",{type:"button",onClick:$,disabled:k,className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-lg border border-border text-muted-foreground hover:text-destructive hover:border-destructive/50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:s?.disableAutoSync??"Disable Auto-sync"})]}),T&&(0,n.jsx)("div",{className:"flex items-start gap-1.5 text-xs",role:"status","aria-live":"polite",children:"success"===T.type?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{size:13,className:"text-success shrink-0 mt-0.5"}),(0,n.jsx)("span",{className:"text-success",children:T.text})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{size:13,className:"text-destructive shrink-0 mt-0.5"}),(0,n.jsx)("div",{className:"space-y-0.5",children:T.text.split("\n").map((e,t)=>(0,n.jsx)("span",{className:`block ${t>0?"text-destructive/70":"text-destructive"}`,children:e},t))})]})}),F.length>0&&(0,n.jsxs)("div",{className:"pt-2 border-t border-border/50 space-y-3",children:[(0,n.jsx)("p",{className:"text-xs font-medium text-foreground",children:s?.conflictsTitle?.(F.length)??`Conflicts (${F.length})`}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground",children:s?.conflictExplain??"These files were changed on both this device and the remote. Choose which version to keep for each file."}),(0,n.jsx)("div",{className:"space-y-2",children:F.map((e,t)=>(0,n.jsx)(j,{file:e.file,time:e.time,syncT:s,onResolved:E},t))})]}),i.lastError&&0===F.length&&(0,n.jsxs)("div",{className:"flex items-start gap-2 text-xs p-2.5 rounded-lg bg-destructive/10 text-destructive",children:[(0,n.jsx)(a.A,{size:12,className:"shrink-0 mt-0.5"}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("span",{className:"block",children:i.lastError}),b(i.lastError,i.remote,s)&&(0,n.jsx)("span",{className:"block text-destructive/70",children:b(i.lastError,i.remote,s)})]})]}),(0,n.jsx)(N,{syncT:s})]})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3288],{30292:(e,t,s)=>{s.d(t,{D4:()=>m,FB:()=>x,W8:()=>p,g4:()=>g,jQ:()=>f});let r="mindos:organize-history",n=new Set(["create","update","unknown"]),i=new Set(["completed","partial","undone"]),a=new Set(["upload","drag-drop","inbox-organize","import-modal","plugin","web-clipper","conversation"]);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function l(e){return o(e)&&"string"==typeof e.path&&"boolean"==typeof e.ok&&"string"==typeof e.action&&n.has(e.action)&&(void 0===e.undone||"boolean"==typeof e.undone)}function d(e){return o(e)&&"string"==typeof e.id&&Number.isFinite(e.timestamp)&&Array.isArray(e.sourceFiles)&&e.sourceFiles.every(e=>"string"==typeof e)&&Array.isArray(e.files)&&e.files.every(l)&&"string"==typeof e.status&&i.has(e.status)&&(void 0===e.source||"string"==typeof e.source&&a.has(e.source))&&(void 0===e.durationMs||Number.isFinite(e.durationMs))}function c(e){return Array.isArray(e)?e.filter(d).slice(0,50):[]}function x(){try{let e=localStorage.getItem(r);if(!e)return[];return c(JSON.parse(e))}catch{return[]}}function u(e){try{localStorage.setItem(r,JSON.stringify(c(e)))}catch{}}function m(e){let t=x();t.unshift(e);let s=t.slice(0,50);return u(s),s}function p(e,t){let s=x(),r=s.findIndex(t=>t.id===e);return r>=0&&(s[r]={...s[r],...t},u(s)),s}function g(){try{localStorage.removeItem(r)}catch{}}let b=0;function f(){return`org-${Date.now()}-${++b}`}},59034:(e,t,s)=>{s.d(t,{F:()=>a,J:()=>o});var r=s(66839),n=s(44223);let i=(0,n.createContext)({isOrganizing:!1,requestInboxOrganize:async(e,t)=>(window.dispatchEvent(new CustomEvent("mindos:inbox-organize",{detail:{files:e,...t}})),{started:!0}),requestConversationOrganize:e=>{window.dispatchEvent(new CustomEvent("mindos:session-organize",{detail:e}))}});function a({value:e,children:t}){return(0,r.jsx)(i.Provider,{value:e,children:t})}function o(){return(0,n.useContext)(i)}},73288:(e,t,s)=>{s.d(t,{default:()=>W});var r=s(66839),n=s(44223),i=s(18016),a=s.n(i),o=s(56261),l=s(71044),d=s(95991),c=s(98940),x=s(44361),u=s(19378),m=s(88283),p=s(85245),g=s(11235),b=s(10952),f=s(30401),h=s(59694),v=s(76551),j=s(74197),N=s(55798),y=s(68868),w=s(73033),k=s(76723),A=s(8973),z=s(18659),C=s(55683),$=s(72799),S=s(4373),T=s(24336),E=s(31606),D=s(21082),R=s(72615),F=s(79455),M=s(2073),L=s(58221),O=s(72466),P=s(30292),H=s(82339),B=s(3824),I=s(7312),q=s(59034);let _="mindos-inbox-provider-model",J={md:{bg:"bg-blue-500/10",text:"text-blue-500/70"},txt:{bg:"bg-muted/50",text:"text-muted-foreground/60"},csv:{bg:"bg-emerald-500/10",text:"text-emerald-500/70"},json:{bg:"bg-violet-500/10",text:"text-violet-500/70"},pdf:{bg:"bg-error/10",text:"text-error/60"}};function U(e){let t=e.lastIndexOf(".");return t>0?e.slice(t+1).toLowerCase():""}function V(){let e=window.location.hash.replace("#","");return"queue"===e||"history"===e?e:"capture"}function W(){let{t:e}=(0,M.Y)(),t=(0,o.useRouter)(),[s,i]=(0,n.useState)([]),[z,C]=(0,n.useState)(!0),[$,S]=(0,n.useState)(!1),[T,E]=(0,n.useState)([]),[D,R]=(0,n.useState)(""),[J,W]=(0,n.useState)("source"),[K,ea]=(0,n.useState)([]),[eo,el]=(0,n.useState)([]),[ed,ec]=(0,n.useState)(!1),[ex,eu]=(0,n.useState)(null),[em,ep]=(0,n.useState)(()=>V()),[eg,eb]=(0,n.useState)(()=>(0,I.C)(_).provider),[ef,eh]=(0,n.useState)(()=>(0,I.C)(_).model),ev=(0,n.useRef)(null),ej=(0,n.useRef)(0),eN=(0,q.J)(),ey=eN.isOrganizing,ew="queue"===em,ek=(0,n.useCallback)(async()=>{try{let e=await fetch("/api/inbox");if(!e.ok)return;let t=await e.json();Array.isArray(t.files)&&i(t.files)}catch(e){console.warn("[InboxView] fetch failed:",e)}finally{C(!1)}},[]),eA=(0,n.useCallback)(()=>{E((0,P.FB)())},[]),ez=(0,n.useRef)(void 0),eC=(0,n.useCallback)(()=>{clearTimeout(ez.current),ez.current=setTimeout(()=>{ek(),eA()},80)},[ek,eA]);(0,n.useEffect)(()=>{ek(),eA();let e=()=>{eC()},t=()=>{ej.current=0,S(!1)};return window.addEventListener("mindos:files-changed",eC),window.addEventListener("mindos:inbox-updated",eC),window.addEventListener("mindos:organize-done",e),window.addEventListener("mindos:organize-history-update",eA),window.addEventListener("drop",t,!0),window.addEventListener("dragend",t,!0),()=>{clearTimeout(ez.current),window.removeEventListener("mindos:files-changed",eC),window.removeEventListener("mindos:inbox-updated",eC),window.removeEventListener("mindos:organize-done",e),window.removeEventListener("mindos:organize-history-update",eA),window.removeEventListener("drop",t,!0),window.removeEventListener("dragend",t,!0)}},[ek,eC,eA]);let e$=(0,n.useCallback)(()=>{0===s.length||ey||eN.requestInboxOrganize(s,{providerOverride:eg,modelOverride:ef})},[s,eN,ef,ey,eg]),eS=(0,n.useCallback)(async t=>{try{if(!(await fetch("/api/inbox",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({names:[t]})})).ok)throw Error("Failed to delete");i(e=>e.filter(e=>e.name!==t)),window.dispatchEvent(new Event("mindos:inbox-updated")),F.oR.success(e.inbox.fileRemoved)}catch{F.oR.error(e.inbox.fileRemoveFailed)}},[e]),eT=(0,n.useCallback)(e=>{e&&0!==e.length&&(ea(t=>{let s=new Set(t.map(e=>`${e.name}:${e.size}:${e.lastModified}`)),r=[...t];for(let t of Array.from(e)){let e=`${t.name}:${t.size}:${t.lastModified}`;s.has(e)||r.push(t)}return r}),ev.current&&(ev.current.value=""))},[]),eE=(0,n.useCallback)(e=>{let t=e.trim();return!!(0,O.h0)(t)&&(el(e=>e.includes(t)?e:[...e,t]),!0)},[]),eD=(0,n.useCallback)(async()=>{let t=D.trim();if((t||0!==K.length||0!==eo.length)&&!ed){ec(!0);try{if(t){var s,r;let e,n,i=(s=t,r=J,e=(s.split(/\r?\n/).find(e=>e.trim())?.trim()??"capture").replace(/^#+\s*/,"").replace(/[`*_~[\]()#>]/g,"").replace(/\s+/g,"-").replace(/[^a-zA-Z0-9\u4e00-\u9fff-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"").slice(0,48),n=new Date().toISOString().replace(/[-:]/g,"").replace(/\.\d{3}Z$/,"").replace("T","-"),`capture-${r}-${n}-${e||"note"}.md`);if(!(await fetch("/api/inbox",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:"text",captureIntent:J,files:[{name:i,content:t,encoding:"text"}]})})).ok)throw Error("Failed to save text")}for(let t of eo)await (0,O.TM)(t,e);K.length>0&&await (0,O.QL)(K,e),R(""),el([]),ea([]),await ek(),window.dispatchEvent(new Event("mindos:inbox-updated")),t&&0===eo.length&&0===K.length&&F.oR.success(e.inbox.textSaved,3e3)}catch{F.oR.error(e.inbox.saveFailed,4e3)}finally{ec(!1)}}},[D,K,eo,J,ed,ek,e]),eR=(0,n.useCallback)(e=>{let t=e.clipboardData.files;if(t.length>0){e.preventDefault(),eT(t);return}let s=e.clipboardData.getData("text/plain").trim();s&&(0,O.h0)(s)&&(e.preventDefault(),eE(s))},[eT,eE]),eF=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),ej.current=0,S(!1);let t=(0,O.Aw)(e.nativeEvent);t?eE(t):e.dataTransfer.files.length>0&&eT(Array.from(e.dataTransfer.files))},[eT,eE]),eM=(0,n.useMemo)(()=>s.filter(e=>e.isAging).length,[s]),eL=s.length>0,eO=(0,n.useMemo)(()=>s.find(e=>e.path===ex)??s[0]??null,[s,ex]),eP=(0,n.useMemo)(()=>{var t,s,r,n;let i,a,o,l,d;return eO?(t=eO,s=e.inbox,r=J,i=U(t.name),a=t.name.toLowerCase(),o=es(s).find(e=>e.id===r),l=o?.density??s.typeRawNote,d=[i?`.${i}`:"no extension",t.isAging?"aged 7+ days":"fresh capture",o?.title??s.intentSourceTitle],(n=a,/article|url|web|clip|wechat|公众号|mp.weixin|小红书|link|reference|ref/.test(n))?{type:s.typeArticle,target:s.targetResearch,reason:s.reasonArticle,signals:[...d,"external source"],density:l}:/meeting|interview|访谈|会议|notes?/.test(a)?{type:s.typeMeeting,target:s.targetMeetings,reason:s.reasonMeeting,signals:[...d,"discussion record"],density:l}:/decision|adr|rule|preference|判断|决策|规则|偏好/.test(a)?{type:s.typeDecision,target:s.targetDecisions,reason:s.reasonDecision,signals:[...d,"judgment candidate"],density:l}:"csv"===i||"json"===i||"yaml"===i||"yml"===i?{type:s.typeData,target:s.targetData,reason:s.reasonData,signals:[...d,"structured"],density:l}:"pdf"===i||"docx"===i||"doc"===i||"docm"===i?{type:s.typeDocument,target:s.targetResearch,reason:s.reasonDocument,signals:[...d,"long-form"],density:l}:{type:s.typeRawNote,target:s.targetInboxReview,reason:s.reasonRawNote,signals:d,density:l}):null},[eO,J,e]),eH=(0,n.useMemo)(()=>es(e.inbox),[e]),eB=(0,n.useMemo)(()=>eH.map(e=>({value:e.id,label:e.title,suffix:(0,r.jsx)("span",{className:"hidden sm:inline text-[10px] text-muted-foreground/55",children:e.density})})),[eH]),eI=eH.find(e=>e.id===J)??eH[0],eq=(0,n.useMemo)(()=>{var e,t,s;let r,n,i;return e=D,t=eo,s=K,r=e.toLowerCase(),n=er(e),i=s.map(e=>e.name.toLowerCase()).join(" "),/decision|rule|preference|principle|judgment|sop|should|must|判断|决策|规则|偏好|原则|方法|以后|不要|必须/.test(r)?"judgment":/reflect|reflection|why|pattern|blind spot|growth|lesson|复盘|反思|成长|盲区|模式|我发现/.test(r)?"reflect":t.length>0||n>80||/\.(pdf|docx?|md|html?)\b/.test(i)?"note":"source"},[D,eo,K]),e_=eH.find(e=>e.id===eq)??eH[0],eJ=eq!==J,eU=D.trim().length>0||K.length>0||eo.length>0,eV=er(D),eW=(0,n.useMemo)(()=>T.slice(0,5),[T]),[eY,eK]=(0,n.useState)(!0),eQ=(0,n.useRef)(0);(0,n.useEffect)(()=>{eQ.current>0&&s.length>0&&eK(!1),eQ.current=s.length},[s.length]),(0,n.useEffect)(()=>{!ex&&s[0]&&eu(s[0].path),ex&&!s.some(e=>e.path===ex)&&eu(s[0]?.path??null)},[s,ex]),(0,n.useEffect)(()=>{let e=()=>ep(V());return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]);let eZ=(0,n.useCallback)(e=>{ep(e);let t="capture"===e?window.location.pathname:`${window.location.pathname}#${e}`;window.history.replaceState(null,"",t)},[]);return z?(0,r.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,r.jsx)("div",{className:"sticky top-[52px] md:top-0 z-20 border-b border-border h-[46px] flex items-center bg-background",children:(0,r.jsx)("div",{className:"w-full px-4 md:px-6 flex items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"h-5 w-5 bg-muted rounded animate-pulse"}),(0,r.jsx)("div",{className:"h-5 w-32 bg-muted rounded animate-pulse"})]})})}),(0,r.jsx)("div",{className:"flex-1 px-4 md:px-6 py-8",children:(0,r.jsx)("div",{className:"max-w-[780px] mx-auto space-y-3",children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,r.jsx)("div",{className:"h-12 bg-muted/40 rounded-lg animate-pulse"},t))})})]}):(0,r.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,r.jsx)("input",{ref:ev,type:"file",multiple:!0,accept:H.u3,className:"hidden",onChange:e=>eT(e.target.files)}),(0,r.jsx)("div",{className:"sticky top-[52px] md:top-0 z-20 border-b border-border h-[46px] flex items-center bg-background",children:(0,r.jsxs)("div",{className:"w-full px-4 md:px-6 flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,r.jsx)("button",{onClick:()=>t.push("/wiki"),className:"p-1.5 -ml-1.5 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:"Back",children:(0,r.jsx)(l.A,{size:16})}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-7 h-7 rounded-lg bg-[var(--amber-subtle)] text-[var(--amber)] shrink-0",children:(0,r.jsx)(d.A,{size:15})}),(0,r.jsx)("h1",{className:"text-sm font-semibold text-foreground tracking-tight leading-tight shrink-0",children:e.inbox.title}),eL&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/60 leading-tight shrink-0",children:[e.inbox.fileCount(s.length),eM>0&&(0,r.jsxs)("span",{className:"text-[var(--amber)]/70",children:[" \xb7 ",eM," ",e.inbox.agingHint]})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[ew&&(0,r.jsxs)("div",{className:"hidden md:flex items-center gap-1.5 rounded-lg border border-border/60 bg-card px-2 py-1",children:[(0,r.jsx)("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/55",children:e.inbox.modelTitle}),(0,r.jsx)(I.A,{providerValue:eg,onProviderChange:eb,modelValue:ef,onModelChange:eh,disabled:ey,storageKey:_,systemLabel:e.inbox.modelFollowSystem,emptyLabel:e.inbox.modelNoProvider})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>ev.current?.click(),className:"flex items-center gap-1.5 px-2.5 py-1.5 text-xs rounded-lg transition-colors text-muted-foreground hover:text-foreground hover:bg-muted",title:e.inbox.uploadButton,children:[(0,r.jsx)(c.A,{size:13}),(0,r.jsx)("span",{className:"hidden sm:inline",children:e.inbox.uploadButton})]}),ew&&eL&&(0,r.jsxs)("button",{onClick:e$,disabled:ey,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg transition-all bg-[var(--amber)] text-[var(--amber-foreground)] hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed",title:ey?e.inbox.organizing:e.inbox.organizeButton,children:[ey?(0,r.jsx)(x.A,{size:13,className:"animate-spin"}):(0,r.jsx)(u.A,{size:13}),(0,r.jsx)("span",{children:ey?e.inbox.organizing:e.inbox.organizeButton})]})]})]})}),(0,r.jsx)("div",{className:"flex-1 px-4 md:px-6 py-6",children:(0,r.jsxs)("div",{className:"mx-auto max-w-[1320px] space-y-5",children:[(0,r.jsx)("div",{className:"max-w-2xl",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-[var(--amber)]/80",children:"Capture now, organize later"}),(0,r.jsx)("h2",{className:"mt-1 text-xl font-semibold tracking-tight text-foreground",children:e.inbox.capturePageTitle}),(0,r.jsx)("p",{className:"mt-1 max-w-2xl text-sm leading-relaxed text-muted-foreground",children:e.inbox.capturePageSubtitle})]})}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsx)(Z,{active:"capture"===em,icon:m.A,label:e.inbox.viewCapture,onClick:()=>eZ("capture")}),(0,r.jsx)(Z,{active:"queue"===em,icon:p.A,label:e.inbox.viewQueue,count:s.length,onClick:()=>eZ("queue")}),(0,r.jsx)(Z,{active:"history"===em,icon:g.A,label:e.inbox.viewHistory,count:T.length,onClick:()=>eZ("history")})]}),(0,r.jsxs)("div",{className:"queue"===em?"grid gap-5 lg:grid-cols-[minmax(0,1.08fr)_350px] 2xl:grid-cols-[minmax(0,1.08fr)_380px]":"max-w-[760px]",children:[(0,r.jsxs)("div",{className:"space-y-5",children:["capture"===em&&(0,r.jsx)("div",{className:`overflow-hidden rounded-xl border bg-card/40 shadow-sm transition-all duration-200 ${$?"border-[var(--amber)] bg-[var(--amber-subtle)] shadow-[inset_0_0_0_1px_var(--amber)]":"border-border/60"}`,onDragEnter:e=>{let t=e.dataTransfer.types.includes("Files"),s=(0,O.lL)(e.nativeEvent);(t||s)&&(e.preventDefault(),e.stopPropagation(),ej.current++,1===ej.current&&S(!0))},onDragOver:e=>{let t=e.dataTransfer.types.includes("Files"),s=(0,O.lL)(e.nativeEvent);(t||s)&&(e.preventDefault(),e.stopPropagation())},onDragLeave:e=>{e.stopPropagation(),ej.current=Math.max(0,ej.current-1),0===ej.current&&S(!1)},onDrop:eF,children:(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)("div",{className:"mb-3 flex flex-col gap-2 lg:flex-row lg:items-start lg:justify-between",children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(m.A,{size:15,className:"text-[var(--amber)]"}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:e.inbox.quickCaptureTitle}),(0,r.jsx)("span",{className:"rounded-full bg-muted px-2 py-0.5 text-2xs font-medium text-muted-foreground",children:eI.title})]}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:e.inbox.composerHint})]})}),(0,r.jsxs)("div",{className:`rounded-xl border bg-background transition-colors ${$?"border-[var(--amber)] bg-[var(--amber-subtle)]":"border-border/70"}`,children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border/50 px-3 py-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(b.A,{size:14,className:"text-[var(--amber)]"}),(0,r.jsx)("span",{className:"text-xs font-semibold text-foreground",children:e.inbox.composerTitle})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("label",{htmlFor:"capture-next-action",className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/55",children:e.inbox.nextActionTitle}),(0,r.jsx)("div",{id:"capture-next-action",className:"min-w-[156px]",children:(0,r.jsx)(B.A,{value:J,onChange:e=>W(e),options:eB,size:"sm"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 border-b border-border/40 px-3 py-2 text-2xs text-muted-foreground/60",children:[eJ&&(0,r.jsx)("span",{children:e.inbox.suggestedAction(e_.title)}),(0,r.jsx)("span",{children:e.inbox.captureNoAiHint})]}),(0,r.jsx)("textarea",{value:D,onChange:e=>R(e.target.value),onPaste:eR,placeholder:e.inbox.composerPlaceholder,className:"min-h-[180px] w-full resize-y bg-transparent px-3 py-3 text-sm leading-relaxed text-foreground outline-none placeholder:text-muted-foreground/35 focus-visible:ring-0"}),(D.trim()||eo.length>0||K.length>0)&&(0,r.jsxs)("div",{className:"flex flex-wrap gap-1.5 border-t border-border/40 px-3 py-2",children:[D.trim()&&(0,r.jsx)(et,{icon:(0,r.jsx)(f.A,{size:12}),label:e.inbox.signalText,detail:e.inbox.pendingText(eV),onRemove:()=>R("")}),eo.map(t=>(0,r.jsx)(et,{icon:(0,r.jsx)(h.A,{size:12}),label:e.inbox.pendingUrl,detail:function(e){try{let t=new URL(e),s=t.pathname.replace(/\/$/,""),r=`${t.hostname}${s}`;return r.length>42?`${r.slice(0,39)}...`:r}catch{return e.length>42?`${e.slice(0,39)}...`:e}}(t),onRemove:()=>el(e=>e.filter(e=>e!==t))},t)),K.map(t=>(0,r.jsx)(et,{icon:(0,r.jsx)(v.A,{size:12}),label:e.inbox.pendingFile,detail:`${t.name} \xb7 ${en(t.size)}`,onRemove:()=>ea(e=>e.filter(e=>e!==t))},`${t.name}:${t.size}:${t.lastModified}`))]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 border-t border-border/50 px-3 py-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,r.jsx)("span",{className:"rounded px-1.5 py-px text-2xs font-medium text-muted-foreground/55",children:e.inbox.composerDetected}),H.$v.map(e=>(0,r.jsx)("span",{className:"rounded bg-muted/50 px-1.5 py-px text-2xs font-medium text-muted-foreground/60",title:e.examples,children:e.label},e.kind))]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[eU&&(0,r.jsx)("button",{type:"button",onClick:()=>{R(""),ea([]),el([])},className:"rounded-lg px-2.5 py-2 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:e.inbox.clearComposer}),(0,r.jsxs)("button",{type:"button",onClick:()=>ev.current?.click(),className:"flex items-center gap-1.5 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(v.A,{size:13}),e.inbox.attachButton]}),(0,r.jsxs)("button",{type:"button",onClick:eD,disabled:!eU||ed,className:"flex items-center gap-1.5 rounded-lg bg-[var(--amber)] px-3 py-2 text-xs font-medium text-[var(--amber-foreground)] transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-45",children:[ed?(0,r.jsx)(x.A,{size:13,className:"animate-spin"}):(0,r.jsx)(j.A,{size:13}),ed?e.inbox.savingText:e.inbox.captureButton]})]})]})]})]})}),"queue"===em&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("section",{className:"overflow-hidden rounded-xl border border-border/60 bg-card/40 shadow-sm",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-border/50 px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(N.A,{size:15,className:"text-[var(--amber)]"}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:e.inbox.currentItemTitle})]}),eO&&(0,r.jsx)("span",{className:"rounded-full bg-muted px-2 py-0.5 text-2xs font-medium text-muted-foreground",children:eP?.type??e.inbox.typeRawNote})]}),eO&&eP?(0,r.jsxs)("div",{className:"grid gap-0 lg:grid-cols-[minmax(0,1fr)_260px]",children:[(0,r.jsxs)("div",{className:"space-y-4 p-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"truncate text-sm font-medium text-foreground",title:eO.name,children:eO.name}),(0,r.jsxs)("p",{className:"mt-1 text-2xs text-muted-foreground",children:[en(eO.size)," \xb7 ",ei(eO.modifiedAt,e.home.relativeTime)]})]}),(0,r.jsxs)("div",{className:"grid gap-2 sm:grid-cols-3",children:[(0,r.jsx)(G,{label:e.inbox.suggestedType,value:eP.type}),(0,r.jsx)(G,{label:e.inbox.suggestedTarget,value:eP.target}),(0,r.jsx)(G,{label:e.inbox.densityTitle,value:eP.density})]}),(0,r.jsxs)("div",{className:"rounded-lg bg-muted/35 p-3",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.suggestedReason}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-foreground/75",children:eP.reason})]})]}),(0,r.jsxs)("div",{className:"border-t border-border/50 bg-background/55 p-4 lg:border-l lg:border-t-0",children:[(0,r.jsx)("p",{className:"mb-3 text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.safeOrganizeTitle}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(X,{icon:N.A,label:e.inbox.reviewBeforeWrite,detail:e.inbox.reviewBeforeWriteDesc}),(0,r.jsx)(X,{icon:j.A,label:e.inbox.keepRawSource,detail:e.inbox.keepRawSourceDesc}),(0,r.jsx)(X,{icon:y.A,label:e.inbox.undoRecord,detail:e.inbox.undoRecordDesc})]}),(0,r.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>t.push(`/view/${(0,L.O0)(eO.path)}`),className:"flex-1 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-foreground transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring",children:e.inbox.actionOpen}),(0,r.jsxs)("button",{type:"button",onClick:e$,disabled:ey,className:"flex flex-1 items-center justify-center gap-1.5 rounded-lg bg-[var(--amber)] px-3 py-2 text-xs font-medium text-[var(--amber-foreground)] transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",children:[ey?(0,r.jsx)(x.A,{size:13,className:"animate-spin"}):(0,r.jsx)(u.A,{size:13}),ey?e.inbox.organizing:e.inbox.actionMerge]})]})]})]}):(0,r.jsxs)("div",{className:"px-4 py-8 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground/70",children:e.inbox.currentItemEmptyTitle}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground/55",children:e.inbox.currentItemEmptyDesc})]})]}),(0,r.jsxs)("section",{className:"rounded-xl border border-border/60 bg-card/40 shadow-sm",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-border/50 px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(p.A,{size:15,className:"text-[var(--amber)]"}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:e.inbox.queueTitle}),eL&&(0,r.jsx)("span",{className:"rounded-full bg-muted px-2 py-0.5 text-2xs font-medium text-muted-foreground",children:e.inbox.fileCount(s.length)})]}),eL&&(0,r.jsxs)("button",{type:"button",onClick:e$,disabled:ey,className:"flex items-center gap-1.5 rounded-lg bg-[var(--amber)] px-3 py-1.5 text-xs font-medium text-[var(--amber-foreground)] transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",children:[ey?(0,r.jsx)(x.A,{size:13,className:"animate-spin"}):(0,r.jsx)(u.A,{size:13}),ey?e.inbox.organizing:e.inbox.organizeButton]})]}),eL?(0,r.jsx)("div",{className:"divide-y divide-border/50",children:s.map((e,t)=>(0,r.jsx)(Y,{file:e,index:t,animate:eY,selected:eO?.path===e.path,onSelect:()=>eu(e.path),onDelete:eS},e.path))}):(0,r.jsxs)("div",{className:"px-4 py-10 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground/70",children:e.inbox.queueEmptyTitle}),(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground/55",children:e.inbox.queueEmptyDesc})]})]})]}),"history"===em&&(0,r.jsxs)("section",{children:[(0,r.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,r.jsx)(g.A,{size:12,className:"text-muted-foreground/40"}),(0,r.jsx)("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/50",children:e.importHistory.title}),T.length>5&&(0,r.jsx)(a(),{href:"/capture/history",className:"ml-auto text-2xs text-muted-foreground/50 transition-colors hover:text-[var(--amber)]",children:e.inbox.viewAllHistory(T.length)})]}),eW.length>0?(0,r.jsx)("div",{className:"space-y-2",children:eW.map(e=>(0,r.jsx)(Q,{entry:e},e.id))}):(0,r.jsxs)("div",{className:"rounded-xl border border-border/60 bg-card/40 px-4 py-10 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground/70",children:e.importHistory.emptyTitle}),(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground/55",children:e.importHistory.emptyDesc})]})]})]}),"queue"===em&&(0,r.jsxs)("aside",{className:"lg:sticky lg:top-[70px] lg:self-start",children:[(0,r.jsxs)("section",{className:"mb-4 overflow-hidden rounded-xl border border-border/60 bg-card/70 shadow-sm",children:[(0,r.jsxs)("div",{className:"border-b border-border/50 px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(u.A,{size:15,className:"text-[var(--amber)]"}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:e.inbox.aiRouteTitle})]}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground/60",children:e.inbox.modelHint})]}),(0,r.jsxs)("div",{className:"space-y-3 p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.modelTitle}),(0,r.jsx)(I.A,{providerValue:eg,onProviderChange:eb,modelValue:ef,onModelChange:eh,disabled:ey,storageKey:_,systemLabel:e.inbox.modelFollowSystem,emptyLabel:e.inbox.modelNoProvider})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)(ee,{label:e.inbox.pendingSequenceTitle,value:String(s.length)}),(0,r.jsx)(ee,{label:e.inbox.recentProcessedTitle,value:String(T.length)})]}),(0,r.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background px-3 py-2.5",children:[(0,r.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,r.jsx)(w.A,{size:13,className:"text-[var(--amber)]"}),(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.safeOrganizeTitle})]}),(0,r.jsx)("div",{className:"space-y-1.5",children:[e.inbox.reviewBeforeWrite,e.inbox.keepRawSource,e.inbox.undoRecord].map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-2 text-xs text-foreground/75",children:[(0,r.jsx)(k.A,{size:11,className:"shrink-0 text-success/70"}),(0,r.jsx)("span",{children:e})]},e))})]})]})]}),(eL||eW.length>0)&&(0,r.jsxs)("section",{className:"mb-4 overflow-hidden rounded-xl border border-border/60 bg-card/70 shadow-sm",children:[(0,r.jsx)("div",{className:"border-b border-border/50 px-4 py-3",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(p.A,{size:15,className:"text-[var(--amber)]"}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:e.inbox.queueSidebarTitle})]})}),(0,r.jsxs)("div",{className:"divide-y divide-border/40",children:[s.slice(0,4).map((e,t)=>(0,r.jsxs)("button",{type:"button",onClick:()=>eu(e.path),className:"flex w-full items-center gap-2 px-4 py-2.5 text-left transition-colors hover:bg-muted/35 focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)("span",{className:"w-5 shrink-0 text-2xs tabular-nums text-muted-foreground/45",children:String(t+1).padStart(2,"0")}),(0,r.jsx)("span",{className:"min-w-0 flex-1 truncate text-xs text-foreground/80",children:e.name})]},e.path)),eW.slice(0,3).map(t=>(0,r.jsxs)(a(),{href:"/capture/history",className:"flex items-center gap-2 px-4 py-2.5 text-xs text-muted-foreground transition-colors hover:bg-muted/35 hover:text-foreground",children:[(0,r.jsx)(k.A,{size:12,className:"shrink-0 text-success/70"}),(0,r.jsx)("span",{className:"min-w-0 flex-1 truncate",children:1===t.sourceFiles.length?t.sourceFiles[0]:e.importHistory.nFiles(t.sourceFiles.length)})]},t.id))]})]}),(0,r.jsxs)("section",{className:"overflow-hidden rounded-xl border border-border/60 bg-card/70 shadow-sm",children:[(0,r.jsxs)("div",{className:"border-b border-border/50 px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(p.A,{size:15,className:"text-[var(--amber)]"}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:e.inbox.understandingTitle})]}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground/60",children:e.inbox.understandingEmptyDesc})]}),eO&&eP?(0,r.jsxs)("div",{className:"space-y-4 p-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"truncate text-sm font-medium text-foreground",title:eO.name,children:eO.name}),(0,r.jsxs)("p",{className:"mt-1 text-2xs text-muted-foreground",children:[en(eO.size)," \xb7 ",ei(eO.modifiedAt,e.home.relativeTime)]})]}),(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)(G,{label:e.inbox.suggestedType,value:eP.type}),(0,r.jsx)(G,{label:e.inbox.suggestedTarget,value:eP.target}),(0,r.jsx)(G,{label:e.inbox.densityTitle,value:eP.density})]}),(0,r.jsxs)("div",{className:"rounded-lg bg-muted/35 p-3",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.suggestedReason}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-foreground/75",children:eP.reason})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.relatedSignals}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:eP.signals.map(e=>(0,r.jsx)("span",{className:"rounded-md border border-border/60 bg-background px-2 py-1 text-2xs text-muted-foreground",children:e},e))})]}),(0,r.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background px-3 py-2.5",children:[(0,r.jsx)("p",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.lifecycleTitle}),(0,r.jsx)("div",{className:"grid grid-cols-4 gap-1 text-center text-[10px] text-muted-foreground",children:[e.inbox.lifecycleCaptured,e.inbox.lifecycleParsed,e.inbox.lifecycleProposed,e.inbox.lifecycleMerged].map((e,t)=>(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:`mx-auto mb-1 h-1.5 rounded-full ${t<2?"bg-[var(--amber)]":"bg-muted"}`}),(0,r.jsx)("span",{className:"block truncate",children:e})]},e))})]}),(0,r.jsxs)("div",{className:"space-y-2 border-t border-border/50 pt-4",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/60",children:e.inbox.routeTitle}),(0,r.jsxs)("button",{type:"button",onClick:e$,disabled:ey,className:"flex w-full items-center justify-between rounded-lg bg-[var(--amber)] px-3 py-2 text-sm font-medium text-[var(--amber-foreground)] transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[ey?(0,r.jsx)(x.A,{size:14,className:"animate-spin"}):(0,r.jsx)(u.A,{size:14}),ey?e.inbox.organizing:e.inbox.actionMerge]}),(0,r.jsx)(A.A,{size:14})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>t.push(`/view/${(0,L.O0)(eO.path)}`),className:"rounded-lg border border-border bg-background px-3 py-2 text-xs font-medium text-foreground transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring",children:e.inbox.actionOpen}),(0,r.jsx)("button",{type:"button",onClick:()=>eS(eO.name),className:"rounded-lg border border-border bg-background px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:ring-2 focus-visible:ring-ring",children:e.inbox.actionRemove})]}),(0,r.jsxs)("div",{className:"rounded-lg border border-dashed border-border px-3 py-2 text-xs text-muted-foreground",children:[e.inbox.actionExtractRule," \xb7 ",e.inbox.actionExtractRuleSoon]})]})]}):(0,r.jsxs)("div",{className:"p-6 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground/70",children:e.inbox.understandingEmptyTitle}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground/55",children:e.inbox.understandingEmptyDesc})]})]})]})]})]})})]})}function Y({file:e,onDelete:t,index:s,animate:i,selected:a,onSelect:l}){var d;let c,{t:x}=(0,M.Y)(),u=(0,o.useRouter)(),m=U(e.name),p=(c=(d=e.name).lastIndexOf("."))>0?d.slice(0,c):d,g=J[m],b=ei(e.modifiedAt,x.home.relativeTime),[h,v]=(0,n.useState)(null),j=en(e.size),N="csv"===m?z.A:"json"===m?C.A:f.A,y="csv"===m?"text-emerald-500/70":"json"===m?"text-violet-500/70":"pdf"===m?"text-error/60":"text-muted-foreground/60";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{role:"button",tabIndex:0,onClick:l,onKeyDown:e=>{"Enter"===e.key&&l()},onContextMenu:e=>{e.preventDefault(),e.stopPropagation(),v({x:e.clientX,y:e.clientY})},"aria-pressed":a,className:`group flex items-center gap-3 px-4 py-3 transition-colors duration-100 cursor-pointer ${a?"bg-[var(--amber-subtle)]/70":"bg-card hover:bg-accent"}${i?" animate-[fadeSlideUp_0.22s_ease_both]":""}`,style:i?{animationDelay:`${30*s}ms`}:void 0,children:[(0,r.jsx)("span",{className:`h-8 w-[2px] rounded-full ${a?"bg-[var(--amber)]":"bg-transparent"}`}),(0,r.jsx)(N,{size:15,className:`shrink-0 ${y}`}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"text-sm text-foreground truncate",title:e.name,children:p}),g&&(0,r.jsxs)("span",{className:`text-2xs font-mono px-1.5 py-px rounded shrink-0 ${g.bg} ${g.text}`,children:[".",m]}),e.isAging&&(0,r.jsx)("span",{className:"text-2xs px-1.5 py-px rounded shrink-0 bg-[var(--amber)]/10 text-[var(--amber)]/70",title:x.inbox.agingHint,children:x.inbox.agingHint})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums",children:j}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/30",children:"\xb7"}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums",children:b})]})]}),(0,r.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),t.preventDefault(),u.push(`/view/${(0,L.O0)(e.path)}`)},className:"hidden items-center justify-center rounded-md px-2 py-1 text-2xs font-medium text-muted-foreground/55 transition-colors hover:bg-background hover:text-foreground group-hover:flex",title:x.inbox.openFile,children:x.inbox.openFile}),(0,r.jsx)("button",{type:"button",onClick:s=>{s.stopPropagation(),s.preventDefault(),t(e.name)},className:"hidden group-hover:flex items-center justify-center w-7 h-7 rounded-md shrink-0 text-muted-foreground/40 hover:text-destructive hover:bg-destructive/10 transition-colors",title:x.inbox.removeFile,children:(0,r.jsx)($.A,{size:14})})]}),h&&(0,r.jsx)(K,{x:h.x,y:h.y,file:e,onDelete:()=>{v(null),t(e.name)},onClose:()=>v(null)})]})}function K({x:e,y:t,file:s,onDelete:i,onClose:a}){let l=(0,n.useRef)(null),d=(0,o.useRouter)(),{t:c}=(0,M.Y)();(0,n.useEffect)(()=>{let e=e=>{l.current&&!l.current.contains(e.target)&&a()},t=e=>{"Escape"===e.key&&a()};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[a]);let x=Math.min(e,window.innerWidth-200),u=Math.min(t,window.innerHeight-120),m="w-full flex items-center gap-2 px-3 py-1.5 text-sm text-foreground hover:bg-muted transition-colors text-left";return(0,r.jsxs)("div",{ref:l,className:"fixed z-50 min-w-[160px] bg-card border border-border rounded-lg shadow-lg py-1",style:{top:u,left:x},children:[(0,r.jsxs)("button",{className:m,onClick:()=>{d.push(`/view/${(0,L.O0)(s.path)}`),a()},children:[(0,r.jsx)(S.A,{size:14,className:"shrink-0"})," ",c.inbox.openFile]}),(0,r.jsxs)("button",{className:m,onClick:()=>{navigator.clipboard.writeText(s.name),F.oR.copy(),a()},children:[(0,r.jsx)(T.A,{size:14,className:"shrink-0"})," ",c.inbox.copyName]}),(0,r.jsx)("div",{className:"border-t border-border my-1"}),(0,r.jsxs)("button",{className:`${m} text-destructive hover:text-destructive`,onClick:i,children:[(0,r.jsx)(E.A,{size:14,className:"shrink-0"})," ",c.inbox.removeFile]})]})}function Q({entry:e}){let{t}=(0,M.Y)(),[s,i]=(0,n.useState)(!1),o="undone"===e.status,l=function(e){switch(e){case"drag-drop":return{label:"drop",className:"bg-muted/50 text-muted-foreground/50"};case"inbox-organize":return{label:"inbox",className:"bg-[var(--amber)]/10 text-[var(--amber)]/70"};case"import-modal":return{label:"import",className:"bg-blue-500/10 text-blue-500/70"};case"plugin":return{label:"plugin",className:"bg-violet-500/10 text-violet-500/70"};case"upload":return{label:"upload",className:"bg-teal-500/10 text-teal-500/70"};case"web-clipper":return{label:"clip",className:"bg-emerald-500/10 text-emerald-500/70"};default:return null}}(e.source),d=e.durationMs?function(e){let t=Math.round(e/1e3);if(t<60)return`${t}s`;let s=Math.floor(t/60),r=t%60;return`${s}m${r>0?`${r}s`:""}`}(e.durationMs):null,c=ei(new Date(e.timestamp).toISOString(),t.home.relativeTime),x=e.files.filter(e=>e.ok&&!e.undone).length;return(0,r.jsxs)("div",{className:"rounded-lg border border-border/30 overflow-hidden",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>i(e=>!e),"aria-expanded":s,className:"w-full flex items-center gap-2.5 px-3.5 py-2.5 text-left hover:bg-muted/20 transition-colors",children:[o?(0,r.jsx)(D.A,{size:13,className:"text-muted-foreground/40 shrink-0"}):(0,r.jsx)(k.A,{size:13,className:"text-success/70 shrink-0"}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:`text-xs truncate ${o?"text-muted-foreground/50 line-through":"text-foreground/80"}`,children:1===e.sourceFiles.length?e.sourceFiles[0]:t.importHistory.nFiles(e.sourceFiles.length)}),l&&(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${l.className}`,children:l.label}),x>0&&(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/40 shrink-0",children:t.importHistory.changesSummary(x)})]}),(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums shrink-0",children:[d&&`${d} \xb7 `,c]}),e.files.length>0&&(0,r.jsx)(R.A,{size:10,className:`text-muted-foreground/30 shrink-0 transition-transform duration-150 ${s?"rotate-180":""}`})]}),s&&e.files.length>0&&(0,r.jsx)("div",{className:"border-t border-border/20 px-3.5 py-2 space-y-0.5",children:e.files.map((e,s)=>{let n=e.path.split("/"),i=n.pop()??e.path,o=n.length>0?n.join("/"):null,l=!e.undone&&e.ok,d=`flex items-center gap-2 py-1 text-2xs${e.undone?" opacity-40":""}${l?" rounded -mx-1 px-1 hover:bg-muted/20 transition-colors":""}`,c=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:`w-1 h-1 rounded-full shrink-0 ${e.ok&&!e.undone?"bg-success/60":"bg-muted-foreground/30"}`}),(0,r.jsxs)("span",{className:`truncate flex-1 min-w-0 ${e.undone?"line-through text-muted-foreground":""}`,children:[o&&(0,r.jsxs)("span",{className:"text-muted-foreground/30",children:[o,"/"]}),(0,r.jsx)("span",{className:e.undone?"":"text-foreground/70",children:i})]}),(0,r.jsx)("span",{className:"text-muted-foreground/40 shrink-0",children:e.undone?t.importHistory.statusUndone:"create"===e.action?t.importHistory.statusCreated:t.importHistory.statusUpdated})]});return l?(0,r.jsx)(a(),{href:`/view/${(0,L.O0)(e.path)}`,className:d,children:c},`${e.path}-${s}`):(0,r.jsx)("div",{className:d,children:c},`${e.path}-${s}`)})})]})}function Z({active:e,icon:t,label:s,count:n,onClick:i}){return(0,r.jsxs)("button",{type:"button",onClick:i,"aria-pressed":e,className:`inline-flex h-9 items-center gap-2 rounded-lg border px-3 text-xs font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring ${e?"border-[var(--amber)]/45 bg-[var(--amber-subtle)] text-foreground":"border-border/60 bg-card/50 text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[(0,r.jsx)(t,{size:13,className:e?"text-[var(--amber)]":"text-muted-foreground/55"}),(0,r.jsx)("span",{children:s}),"number"==typeof n&&n>0&&(0,r.jsx)("span",{className:"rounded-full bg-background px-1.5 py-px text-2xs text-muted-foreground",children:n})]})}function X({icon:e,label:t,detail:s}){return(0,r.jsxs)("div",{className:"flex gap-2 rounded-lg border border-border/60 bg-card px-3 py-2",children:[(0,r.jsx)(e,{size:13,className:"mt-0.5 shrink-0 text-[var(--amber)]"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-xs font-medium text-foreground",children:t}),(0,r.jsx)("p",{className:"mt-0.5 text-2xs leading-relaxed text-muted-foreground/60",children:s})]})]})}function G({label:e,value:t}){return(0,r.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background px-3 py-2",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/55",children:e}),(0,r.jsx)("p",{className:"mt-1 text-sm font-medium text-foreground",children:t})]})}function ee({label:e,value:t}){return(0,r.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background px-3 py-2",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground/55",children:e}),(0,r.jsx)("p",{className:"mt-1 text-lg font-semibold tabular-nums text-foreground",children:t})]})}function et({icon:e,label:t,detail:s,onRemove:n}){return(0,r.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1.5 rounded-lg border border-border/60 bg-card px-2 py-1 text-2xs text-muted-foreground",children:[(0,r.jsx)("span",{className:"shrink-0 text-[var(--amber)]",children:e}),(0,r.jsx)("span",{className:"shrink-0 font-medium text-foreground/75",children:t}),(0,r.jsx)("span",{className:"min-w-0 truncate",children:s}),(0,r.jsx)("button",{type:"button",onClick:n,className:"-mr-0.5 ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded text-muted-foreground/50 transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring","aria-label":`Remove ${t}`,children:(0,r.jsx)($.A,{size:10})})]})}function es(e){return[{id:"source",title:e.intentSourceTitle,desc:e.intentSourceDesc,action:e.intentSourceAction,density:e.typeRawNote},{id:"note",title:e.intentNoteTitle,desc:e.intentNoteDesc,action:e.intentNoteAction,density:e.typeDocument},{id:"judgment",title:e.intentJudgmentTitle,desc:e.intentJudgmentDesc,action:e.intentJudgmentAction,density:e.typeDecision},{id:"reflect",title:e.intentReflectTitle,desc:e.intentReflectDesc,action:e.intentReflectAction,density:e.targetDecisions}]}function er(e){let t=e.trim();return t?(t.match(/[\u4e00-\u9fff]/g)?.length??0)+t.replace(/[\u4e00-\u9fff]/g," ").split(/\s+/).filter(Boolean).length:0}function en(e){return e<1024?`${e} B`:e<1048576?`${Math.round(e/1024)} KB`:`${(e/1048576).toFixed(1)} MB`}function ei(e,t){let s=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(s<1)return t.justNow;if(s<60)return t.minutesAgo(s);let r=Math.floor(s/60);if(r<24)return t.hoursAgo(r);let n=Math.floor(r/24);return t.daysAgo(n)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3819],{2408:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},4373:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},5038:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},10952:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("folder-input",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]])},15391:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=a(66839),n=a(44223),l=a(65812);function d(e){return{default:e&&"default"in e?e.default:e}}a(20313);let u={loader:()=>Promise.resolve(d(()=>null)),loading:null,ssr:!0},o=function(e){let t={...u,...e},a=(0,n.lazy)(()=>t.loader().then(d)),o=t.loading;function c(e){let d=o?(0,r.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,u=!t.ssr||!!t.loading,c=u?n.Suspense:n.Fragment,h=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(a,{...e})]}):(0,r.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(a,{...e})});return(0,r.jsx)(c,{...u?{fallback:d}:{},children:h})}return c.displayName="LoadableComponent",c}},18659:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},20313:(e,t,a)=>{function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),a(66839),a(53454),a(87954),a(97287),a(20731)},24336:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},27636:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},31082:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},34137:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},34360:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,a(46714).createAsyncLocalStorage)()},38325:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},39966:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},46714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var a={bindSnapshot:function(){return o},createAsyncLocalStorage:function(){return u},createSnapshot:function(){return c}};for(var r in a)Object.defineProperty(t,r,{enumerable:!0,get:a[r]});let n=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class l{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}static bind(e){return e}}let d="u">typeof globalThis&&globalThis.AsyncLocalStorage;function u(){return d?new d:new l}function o(e){return d?d.bind(e):l.bind(e)}function c(){return d?d.snapshot():function(e,...t){return e(...t)}}},52954:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},55798:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},56261:(e,t,a)=>{var r=a(59889);a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},59694:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},61017:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},63703:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let r=a(27678)._(a(15391));function n(e,t){let a={};"function"==typeof e&&(a.loader=e);let n={...a,...t};return(0,r.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65799:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={callServer:function(){return l.callServer},createServerReference:function(){return u.createServerReference},findSourceMapURL:function(){return d.findSourceMapURL}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let l=a(86716),d=a(24480),u=a(25641)},65812:(e,t,a)=>{function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),a(93080)},67885:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},73601:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},82417:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},85764:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},87954:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=a(34360)},88283:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},93738:(e,t,a)=>{a.d(t,{default:()=>n.a});var r=a(63703),n=a.n(r)},95991:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},98327:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(73015).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])}}]);