@polderlabs/bizar 8.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/.claude/agents/agent-browser.md +1 -1
  2. package/.claude/agents/baldr.md +1 -1
  3. package/.claude/agents/forseti.md +1 -1
  4. package/.claude/agents/frigg.md +1 -1
  5. package/.claude/agents/heimdall.md +1 -1
  6. package/.claude/agents/hermod.md +1 -1
  7. package/.claude/agents/mimir.md +1 -1
  8. package/.claude/agents/odin.md +1 -1
  9. package/.claude/agents/quick.md +1 -1
  10. package/.claude/agents/semble-search.md +1 -1
  11. package/.claude/agents/thor.md +1 -1
  12. package/.claude/agents/tyr.md +1 -1
  13. package/.claude/agents/vidarr.md +1 -1
  14. package/.claude/agents/vor.md +1 -1
  15. package/.claude/commands/goal.md +98 -0
  16. package/.claude/settings.local.json +1 -2
  17. package/bizar-dash/dist/assets/ActivityFeed-CqF6iSDQ.js +6 -0
  18. package/bizar-dash/dist/assets/ActivityFeed-CqF6iSDQ.js.map +1 -0
  19. package/bizar-dash/dist/assets/ActivityView-qdhDjRtL.js +1 -0
  20. package/bizar-dash/dist/assets/ActivityView-qdhDjRtL.js.map +1 -0
  21. package/bizar-dash/dist/assets/AgentsView-BwXkOayl.js +28 -0
  22. package/bizar-dash/dist/assets/AgentsView-BwXkOayl.js.map +1 -0
  23. package/bizar-dash/dist/assets/{Badge-Cd61wsBa.js → Badge-BH4C3aUF.js} +1 -1
  24. package/bizar-dash/dist/assets/{Badge-Cd61wsBa.js.map → Badge-BH4C3aUF.js.map} +1 -1
  25. package/bizar-dash/dist/assets/Button-RmN1RKhE.js +6 -0
  26. package/bizar-dash/dist/assets/Button-RmN1RKhE.js.map +1 -0
  27. package/bizar-dash/dist/assets/{Card-C_bvqXdQ.js → Card-BzJeYR2D.js} +1 -1
  28. package/bizar-dash/dist/assets/{Card-C_bvqXdQ.js.map → Card-BzJeYR2D.js.map} +1 -1
  29. package/bizar-dash/dist/assets/Chip-CN2bvm7a.js +1 -0
  30. package/bizar-dash/dist/assets/Chip-CN2bvm7a.js.map +1 -0
  31. package/bizar-dash/dist/assets/{EmptyState-BWQuKnk9.js → EmptyState-DEiBv4-r.js} +1 -1
  32. package/bizar-dash/dist/assets/{EmptyState-BWQuKnk9.js.map → EmptyState-DEiBv4-r.js.map} +1 -1
  33. package/bizar-dash/dist/assets/GoalsView-CvsrzEez.js +6 -0
  34. package/bizar-dash/dist/assets/GoalsView-CvsrzEez.js.map +1 -0
  35. package/bizar-dash/dist/assets/KanbanCard-DZEaAiEr.js +21 -0
  36. package/bizar-dash/dist/assets/KanbanCard-DZEaAiEr.js.map +1 -0
  37. package/bizar-dash/dist/assets/LibrariesView-CPgKGPpM.js +67 -0
  38. package/bizar-dash/dist/assets/LibrariesView-CPgKGPpM.js.map +1 -0
  39. package/bizar-dash/dist/assets/MemoryView-Bbez5pMN.js +13 -0
  40. package/bizar-dash/dist/assets/MemoryView-Bbez5pMN.js.map +1 -0
  41. package/bizar-dash/dist/assets/OverviewView-BDegBWgg.js +1 -0
  42. package/bizar-dash/dist/assets/OverviewView-BDegBWgg.js.map +1 -0
  43. package/bizar-dash/dist/assets/Select-xwxbK8Ed.js +16 -0
  44. package/bizar-dash/dist/assets/Select-xwxbK8Ed.js.map +1 -0
  45. package/bizar-dash/dist/assets/SettingsRow-CppSgkT_.js +10 -0
  46. package/bizar-dash/dist/assets/SettingsRow-CppSgkT_.js.map +1 -0
  47. package/bizar-dash/dist/assets/SettingsView-DUc2meHV.js +43 -0
  48. package/bizar-dash/dist/assets/SettingsView-DUc2meHV.js.map +1 -0
  49. package/bizar-dash/dist/assets/Sheet-C_sIEw35.js +1 -0
  50. package/bizar-dash/dist/assets/Sheet-C_sIEw35.js.map +1 -0
  51. package/bizar-dash/dist/assets/Sparkline-D664vGWW.js +1 -0
  52. package/bizar-dash/dist/assets/Sparkline-D664vGWW.js.map +1 -0
  53. package/bizar-dash/dist/assets/StatTile-BRsUIA6P.js +16 -0
  54. package/bizar-dash/dist/assets/StatTile-BRsUIA6P.js.map +1 -0
  55. package/bizar-dash/dist/assets/TasksView-DVyX5-DY.js +1 -0
  56. package/bizar-dash/dist/assets/TasksView-DVyX5-DY.js.map +1 -0
  57. package/bizar-dash/dist/assets/Textarea-Dk97nmjO.js +1 -0
  58. package/bizar-dash/dist/assets/Textarea-Dk97nmjO.js.map +1 -0
  59. package/bizar-dash/dist/assets/{ViewHeader-D6c2cw1b.js → ViewHeader-dPd4zAyj.js} +1 -1
  60. package/bizar-dash/dist/assets/{ViewHeader-D6c2cw1b.js.map → ViewHeader-dPd4zAyj.js.map} +1 -1
  61. package/bizar-dash/dist/assets/{brain-DeoXNDE2.js → brain-BajPVibR.js} +1 -1
  62. package/bizar-dash/dist/assets/{brain-DeoXNDE2.js.map → brain-BajPVibR.js.map} +1 -1
  63. package/bizar-dash/dist/assets/{calendar-DRlQkGJc.js → calendar-CaP_Bbgc.js} +2 -2
  64. package/bizar-dash/dist/assets/{calendar-DRlQkGJc.js.map → calendar-CaP_Bbgc.js.map} +1 -1
  65. package/bizar-dash/dist/assets/{cmdk-BwN8hcKQ.js → cmdk-BLWIhKrV.js} +1 -1
  66. package/bizar-dash/dist/assets/{cmdk-BwN8hcKQ.js.map → cmdk-BLWIhKrV.js.map} +1 -1
  67. package/bizar-dash/dist/assets/dnd-kit-DU8GZk7s.js +5 -0
  68. package/bizar-dash/dist/assets/{dnd-kit-DR2Qzzxk.js.map → dnd-kit-DU8GZk7s.js.map} +1 -1
  69. package/bizar-dash/dist/assets/git-pull-request-CFRRwdxp.js +11 -0
  70. package/bizar-dash/dist/assets/git-pull-request-CFRRwdxp.js.map +1 -0
  71. package/bizar-dash/dist/assets/index-AL3OLUfz.js +1 -0
  72. package/bizar-dash/dist/assets/index-AL3OLUfz.js.map +1 -0
  73. package/bizar-dash/dist/assets/{main-COdgjqbZ.css → main-CcQfRfIJ.css} +1 -1
  74. package/bizar-dash/dist/assets/main-LxX9zTRk.js +109 -0
  75. package/bizar-dash/dist/assets/main-LxX9zTRk.js.map +1 -0
  76. package/bizar-dash/dist/assets/{minus-CrStJTZ7.js → plus-CVH1JB04.js} +2 -2
  77. package/bizar-dash/dist/assets/plus-CVH1JB04.js.map +1 -0
  78. package/bizar-dash/dist/assets/terminal-B2sSd5t7.js +11 -0
  79. package/bizar-dash/dist/assets/terminal-B2sSd5t7.js.map +1 -0
  80. package/bizar-dash/dist/assets/trash-2-JtYRQ79q.js +6 -0
  81. package/bizar-dash/dist/assets/trash-2-JtYRQ79q.js.map +1 -0
  82. package/bizar-dash/dist/assets/triangle-alert-Nzbrm0I2.js +6 -0
  83. package/bizar-dash/dist/assets/triangle-alert-Nzbrm0I2.js.map +1 -0
  84. package/bizar-dash/dist/assets/useFetch-CoVWwbml.js +1 -0
  85. package/bizar-dash/dist/assets/useFetch-CoVWwbml.js.map +1 -0
  86. package/bizar-dash/dist/assets/useWebSocket-CVIQB8yG.js +1 -0
  87. package/bizar-dash/dist/assets/useWebSocket-CVIQB8yG.js.map +1 -0
  88. package/bizar-dash/dist/assets/{wrench-BJ1WIC4u.js → wrench-B7go551L.js} +1 -1
  89. package/bizar-dash/dist/assets/{wrench-BJ1WIC4u.js.map → wrench-B7go551L.js.map} +1 -1
  90. package/bizar-dash/dist/v8.html +3 -3
  91. package/bizar-dash/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  92. package/bizar-dash/src/server/api.mjs +10 -0
  93. package/bizar-dash/src/server/bg-poller.mjs +81 -1
  94. package/bizar-dash/src/server/bg-poller.test.mjs +28 -0
  95. package/bizar-dash/src/server/progress-parser.mjs +221 -0
  96. package/bizar-dash/src/server/progress-parser.test.mjs +105 -0
  97. package/bizar-dash/src/server/routes/agents-cc.mjs +381 -0
  98. package/bizar-dash/src/server/routes/agents-cc.test.mjs +35 -0
  99. package/bizar-dash/src/server/routes/goals.mjs +307 -0
  100. package/bizar-dash/src/server/routes/tasks.mjs +11 -0
  101. package/bizar-dash/src/web/v8/__tests__/App.test.tsx +2 -2
  102. package/bizar-dash/src/web/v8/__tests__/control-plane.test.tsx +104 -0
  103. package/bizar-dash/src/web/v8/__tests__/useFetch.test.ts +92 -0
  104. package/bizar-dash/src/web/v8/__tests__/useWebSocket.test.ts +87 -0
  105. package/bizar-dash/src/web/v8/__tests__/views.test.tsx +110 -40
  106. package/bizar-dash/src/web/v8/data/fetcher.ts +59 -0
  107. package/bizar-dash/src/web/v8/data/types.ts +154 -0
  108. package/bizar-dash/src/web/v8/data/useFetch.ts +62 -0
  109. package/bizar-dash/src/web/v8/data/useWebSocket.ts +153 -0
  110. package/bizar-dash/src/web/v8/ui/agents/AgentDetail.tsx +252 -0
  111. package/bizar-dash/src/web/v8/ui/agents/AgentStreamPanel.tsx +371 -0
  112. package/bizar-dash/src/web/v8/ui/goals/GoalDetail.tsx +245 -0
  113. package/bizar-dash/src/web/v8/ui/kanban/KanbanBoard.tsx +6 -3
  114. package/bizar-dash/src/web/v8/ui/kanban/KanbanCard.tsx +3 -3
  115. package/bizar-dash/src/web/v8/ui/kanban/KanbanColumn.tsx +10 -5
  116. package/bizar-dash/src/web/v8/ui/styles/globals.css +5 -0
  117. package/bizar-dash/src/web/v8/views/Activity/ActivityView.tsx +53 -15
  118. package/bizar-dash/src/web/v8/views/Agents/AgentsView.tsx +151 -87
  119. package/bizar-dash/src/web/v8/views/CommandPalette/AppCommandPalette.test.tsx +1 -1
  120. package/bizar-dash/src/web/v8/views/CommandPalette/AppCommandPalette.tsx +133 -30
  121. package/bizar-dash/src/web/v8/views/Goals/GoalsView.tsx +176 -67
  122. package/bizar-dash/src/web/v8/views/Libraries/LibrariesView.tsx +78 -11
  123. package/bizar-dash/src/web/v8/views/Memory/MemoryView.tsx +58 -42
  124. package/bizar-dash/src/web/v8/views/Overview/OverviewView.tsx +112 -52
  125. package/bizar-dash/src/web/v8/views/Router.tsx +13 -37
  126. package/bizar-dash/src/web/v8/views/Settings/SettingsView.tsx +635 -210
  127. package/bizar-dash/src/web/v8/views/Tasks/TasksView.tsx +140 -49
  128. package/bizar-dash/tests/components/Button.test.tsx +51 -14
  129. package/bizar-dash/tests/components/Card.test.tsx +37 -20
  130. package/bizar-dash/tests/components/Dialog.test.tsx +80 -0
  131. package/bizar-dash/tests/components/Toast.test.tsx +48 -95
  132. package/bizar-dash/tests/goals-decompose.test.mjs +177 -0
  133. package/bizar-dash/tests/setup.ts +21 -0
  134. package/bizar-dash/tests/ui/primitives/VisuallyHidden.test.tsx +30 -15
  135. package/bizar-dash/vite.config.ts +15 -0
  136. package/bizar-dash/vitest.config.ts +4 -1
  137. package/cli/bin.mjs +32 -0
  138. package/cli/install.mjs +26 -1
  139. package/cli/provision-claude.mjs +86 -0
  140. package/package.json +1 -1
  141. package/scripts/run-dev.mjs +84 -0
  142. package/bizar-dash/dist/assets/ActivityFeed-BRBtQOHB.js +0 -6
  143. package/bizar-dash/dist/assets/ActivityFeed-BRBtQOHB.js.map +0 -1
  144. package/bizar-dash/dist/assets/ActivityView-CwqhxBfh.js +0 -1
  145. package/bizar-dash/dist/assets/ActivityView-CwqhxBfh.js.map +0 -1
  146. package/bizar-dash/dist/assets/AgentActivity-6MxU-a9F.js +0 -1
  147. package/bizar-dash/dist/assets/AgentActivity-6MxU-a9F.js.map +0 -1
  148. package/bizar-dash/dist/assets/AgentsView-BYrOFdwl.js +0 -8
  149. package/bizar-dash/dist/assets/AgentsView-BYrOFdwl.js.map +0 -1
  150. package/bizar-dash/dist/assets/GoalsView-Dok0yt9S.js +0 -11
  151. package/bizar-dash/dist/assets/GoalsView-Dok0yt9S.js.map +0 -1
  152. package/bizar-dash/dist/assets/Grid-C62gCPqt.js +0 -1
  153. package/bizar-dash/dist/assets/Grid-C62gCPqt.js.map +0 -1
  154. package/bizar-dash/dist/assets/KanbanCard-CtTKP6ZX.js +0 -21
  155. package/bizar-dash/dist/assets/KanbanCard-CtTKP6ZX.js.map +0 -1
  156. package/bizar-dash/dist/assets/LibrariesView-BcyBQXiY.js +0 -67
  157. package/bizar-dash/dist/assets/LibrariesView-BcyBQXiY.js.map +0 -1
  158. package/bizar-dash/dist/assets/MemoryView-49wR4u-y.js +0 -13
  159. package/bizar-dash/dist/assets/MemoryView-49wR4u-y.js.map +0 -1
  160. package/bizar-dash/dist/assets/OverviewView-BtQ_UWYj.js +0 -1
  161. package/bizar-dash/dist/assets/OverviewView-BtQ_UWYj.js.map +0 -1
  162. package/bizar-dash/dist/assets/ProgressBar-CpvDeq9F.js +0 -1
  163. package/bizar-dash/dist/assets/ProgressBar-CpvDeq9F.js.map +0 -1
  164. package/bizar-dash/dist/assets/SettingsRow-DmIe5OUu.js +0 -30
  165. package/bizar-dash/dist/assets/SettingsRow-DmIe5OUu.js.map +0 -1
  166. package/bizar-dash/dist/assets/SettingsView-D1KmGWbi.js +0 -48
  167. package/bizar-dash/dist/assets/SettingsView-D1KmGWbi.js.map +0 -1
  168. package/bizar-dash/dist/assets/StatTile-BkIP32gG.js +0 -11
  169. package/bizar-dash/dist/assets/StatTile-BkIP32gG.js.map +0 -1
  170. package/bizar-dash/dist/assets/TasksView-Cba3GJ42.js +0 -1
  171. package/bizar-dash/dist/assets/TasksView-Cba3GJ42.js.map +0 -1
  172. package/bizar-dash/dist/assets/circle-check-DmYQ3vGp.js +0 -6
  173. package/bizar-dash/dist/assets/circle-check-DmYQ3vGp.js.map +0 -1
  174. package/bizar-dash/dist/assets/dnd-kit-DR2Qzzxk.js +0 -5
  175. package/bizar-dash/dist/assets/git-merge-OoqBKQer.js +0 -6
  176. package/bizar-dash/dist/assets/git-merge-OoqBKQer.js.map +0 -1
  177. package/bizar-dash/dist/assets/git-pull-request-CXBQTR2f.js +0 -6
  178. package/bizar-dash/dist/assets/git-pull-request-CXBQTR2f.js.map +0 -1
  179. package/bizar-dash/dist/assets/main-Cw6gybzS.js +0 -109
  180. package/bizar-dash/dist/assets/main-Cw6gybzS.js.map +0 -1
  181. package/bizar-dash/dist/assets/message-square-DUTeIQAR.js +0 -6
  182. package/bizar-dash/dist/assets/message-square-DUTeIQAR.js.map +0 -1
  183. package/bizar-dash/dist/assets/minus-CrStJTZ7.js.map +0 -1
  184. package/bizar-dash/src/web/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
  185. /package/bizar-dash/tests/{BackgroundAgents.test.tsx → v7-archive/BackgroundAgents.test.tsx} +0 -0
  186. /package/bizar-dash/tests/{a11y → v7-archive/a11y}/forms.test.tsx +0 -0
  187. /package/bizar-dash/tests/{a11y.test.tsx → v7-archive/a11y.test.tsx} +0 -0
  188. /package/bizar-dash/tests/{autosave.test.tsx → v7-archive/autosave.test.tsx} +0 -0
  189. /package/bizar-dash/tests/{backup-restore.test.tsx → v7-archive/backup-restore.test.tsx} +0 -0
  190. /package/bizar-dash/tests/{chat-composer.test.tsx → v7-archive/chat-composer.test.tsx} +0 -0
  191. /package/bizar-dash/tests/{communication-log.test.tsx → v7-archive/communication-log.test.tsx} +0 -0
  192. /package/bizar-dash/tests/{components → v7-archive/components}/Modal.test.tsx +0 -0
  193. /package/bizar-dash/tests/{components → v7-archive/components}/Spinner.test.tsx +0 -0
  194. /package/bizar-dash/tests/{components → v7-archive/components}/StatusBadge.test.tsx +0 -0
  195. /package/bizar-dash/tests/{components → v7-archive/components}/doctor-panel.test.tsx +0 -0
  196. /package/bizar-dash/tests/{components → v7-archive/components}/screenshot-ocr.test.tsx +0 -0
  197. /package/bizar-dash/tests/{components → v7-archive/components}/settings-search.test.tsx +0 -0
  198. /package/bizar-dash/tests/{components → v7-archive/components}/workspace-selector.test.tsx +0 -0
  199. /package/bizar-dash/tests/{ui → v7-archive}/controls/Button.test.tsx +0 -0
  200. /package/bizar-dash/tests/{ui → v7-archive}/controls/Checkbox.test.tsx +0 -0
  201. /package/bizar-dash/tests/{ui → v7-archive}/controls/IconButton.test.tsx +0 -0
  202. /package/bizar-dash/tests/{ui → v7-archive}/controls/Kbd.test.tsx +0 -0
  203. /package/bizar-dash/tests/{ui → v7-archive}/controls/NumberInput.test.tsx +0 -0
  204. /package/bizar-dash/tests/{ui → v7-archive}/controls/RadioGroup.test.tsx +0 -0
  205. /package/bizar-dash/tests/{ui → v7-archive}/controls/SearchInput.test.tsx +0 -0
  206. /package/bizar-dash/tests/{ui → v7-archive}/controls/Select.test.tsx +0 -0
  207. /package/bizar-dash/tests/{ui → v7-archive}/controls/Slider.test.tsx +0 -0
  208. /package/bizar-dash/tests/{ui → v7-archive}/controls/TextInput.test.tsx +0 -0
  209. /package/bizar-dash/tests/{ui → v7-archive}/controls/Textarea.test.tsx +0 -0
  210. /package/bizar-dash/tests/{ui → v7-archive}/controls/Toggle.test.tsx +0 -0
  211. /package/bizar-dash/tests/{ui → v7-archive}/data/BarChart.test.tsx +0 -0
  212. /package/bizar-dash/tests/{ui → v7-archive}/data/DataTable.test.tsx +0 -0
  213. /package/bizar-dash/tests/{ui → v7-archive}/data/EmptyState.test.tsx +0 -0
  214. /package/bizar-dash/tests/{ui → v7-archive}/data/ErrorState.test.tsx +0 -0
  215. /package/bizar-dash/tests/{ui → v7-archive}/data/KeyValueList.test.tsx +0 -0
  216. /package/bizar-dash/tests/{ui → v7-archive}/data/LoadingState.test.tsx +0 -0
  217. /package/bizar-dash/tests/{ui → v7-archive}/data/Sparkline.test.tsx +0 -0
  218. /package/bizar-dash/tests/{ui → v7-archive}/data/StatTile.test.tsx +0 -0
  219. /package/bizar-dash/tests/{dep-graph.test.tsx → v7-archive/dep-graph.test.tsx} +0 -0
  220. /package/bizar-dash/tests/{eval-web-ui.test.tsx → v7-archive/eval-web-ui.test.tsx} +0 -0
  221. /package/bizar-dash/tests/{event-log.test.tsx → v7-archive/event-log.test.tsx} +0 -0
  222. /package/bizar-dash/tests/{ui → v7-archive}/feedback/Badge.test.tsx +0 -0
  223. /package/bizar-dash/tests/{ui → v7-archive}/feedback/Dialog.test.tsx +0 -0
  224. /package/bizar-dash/tests/{ui → v7-archive}/feedback/ProgressBar.test.tsx +0 -0
  225. /package/bizar-dash/tests/{ui → v7-archive}/feedback/StatusDot.test.tsx +0 -0
  226. /package/bizar-dash/tests/{ui → v7-archive}/feedback/Toast.test.tsx +0 -0
  227. /package/bizar-dash/tests/{ui → v7-archive}/feedback/Tooltip.test.tsx +0 -0
  228. /package/bizar-dash/tests/{goal-input.test.tsx → v7-archive/goal-input.test.tsx} +0 -0
  229. /package/bizar-dash/tests/{goap-planner.test.ts → v7-archive/goap-planner.test.ts} +0 -0
  230. /package/bizar-dash/tests/{hooks → v7-archive/hooks}/useModal.test.tsx +0 -0
  231. /package/bizar-dash/tests/{hooks → v7-archive/hooks}/useToast.test.tsx +0 -0
  232. /package/bizar-dash/tests/{ui → v7-archive}/layout/AppShell.test.tsx +0 -0
  233. /package/bizar-dash/tests/{ui → v7-archive}/layout/Breadcrumbs.test.tsx +0 -0
  234. /package/bizar-dash/tests/{ui → v7-archive}/layout/Panel.test.tsx +0 -0
  235. /package/bizar-dash/tests/{ui → v7-archive}/layout/PanelHeader.test.tsx +0 -0
  236. /package/bizar-dash/tests/{ui → v7-archive}/layout/Sidebar.test.tsx +0 -0
  237. /package/bizar-dash/tests/{ui → v7-archive}/layout/Tabs.test.tsx +0 -0
  238. /package/bizar-dash/tests/{ui → v7-archive}/layout/Topbar.test.tsx +0 -0
  239. /package/bizar-dash/tests/{ui → v7-archive}/layout/ViewHeader.test.tsx +0 -0
  240. /package/bizar-dash/tests/{lib → v7-archive/lib}/i18n.test.ts +0 -0
  241. /package/bizar-dash/tests/{lib → v7-archive/lib}/search-fuzzy.test.ts +0 -0
  242. /package/bizar-dash/tests/{lib → v7-archive/lib}/utils.test.ts +0 -0
  243. /package/bizar-dash/tests/{memory-graph-view.test.tsx → v7-archive/memory-graph-view.test.tsx} +0 -0
  244. /package/bizar-dash/tests/{mobile-chat.test.tsx → v7-archive/mobile-chat.test.tsx} +0 -0
  245. /package/bizar-dash/tests/{mobile-layout.test.tsx → v7-archive/mobile-layout.test.tsx} +0 -0
  246. /package/bizar-dash/tests/{mobile-overview.test.tsx → v7-archive/mobile-overview.test.tsx} +0 -0
  247. /package/bizar-dash/tests/{mobile-settings.test.tsx → v7-archive/mobile-settings.test.tsx} +0 -0
  248. /package/bizar-dash/tests/{mobile-tasks.test.tsx → v7-archive/mobile-tasks.test.tsx} +0 -0
  249. /package/bizar-dash/tests/{ui → v7-archive}/navigation/CommandPalette.test.tsx +0 -0
  250. /package/bizar-dash/tests/{ui → v7-archive}/navigation/NavGroup.test.tsx +0 -0
  251. /package/bizar-dash/tests/{ui → v7-archive}/navigation/NavLink.test.tsx +0 -0
  252. /package/bizar-dash/tests/{quality-gates.test.tsx → v7-archive/quality-gates.test.tsx} +0 -0
  253. /package/bizar-dash/tests/{settings-layout.test.tsx → v7-archive/settings-layout.test.tsx} +0 -0
  254. /package/bizar-dash/tests/{settings-mode-wiring.test.tsx → v7-archive/settings-mode-wiring.test.tsx} +0 -0
  255. /package/bizar-dash/tests/{settings-nav.test.tsx → v7-archive/settings-nav.test.tsx} +0 -0
  256. /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Box.test.tsx +0 -0
  257. /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Grid.test.tsx +0 -0
  258. /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Inline.test.tsx +0 -0
  259. /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Separator.test.tsx +0 -0
  260. /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Stack.test.tsx +0 -0
  261. /package/bizar-dash/tests/{views → v7-archive/views}/Agents.test.tsx +0 -0
  262. /package/bizar-dash/tests/{views → v7-archive/views}/Memory.test.tsx +0 -0
  263. /package/bizar-dash/tests/{views → v7-archive/views}/Overview.test.tsx +0 -0
  264. /package/bizar-dash/tests/{views → v7-archive/views}/Tasks.test.tsx +0 -0
  265. /package/bizar-dash/tests/{views → v7-archive/views}/sidebar.test.tsx +0 -0
  266. /package/bizar-dash/tests/{views → v7-archive/views}/topbar.test.tsx +0 -0
  267. /package/bizar-dash/tests/{voice-recorder.test.tsx → v7-archive/voice-recorder.test.tsx} +0 -0
@@ -1,48 +0,0 @@
1
- import{j as e,r as c}from"./cmdk-BwN8hcKQ.js";import{G}from"./Grid-C62gCPqt.js";import{a as n,c as Z,u as J,d as Q,e as f,f as M,L as w,A,S as U}from"./main-Cw6gybzS.js";import{S as i,i as t,j,k as X,l as s,B as Y}from"./SettingsRow-DmIe5OUu.js";import{W as V}from"./wrench-BJ1WIC4u.js";import{B as P}from"./brain-DeoXNDE2.js";/**
2
- * @license lucide-react v0.460.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const R=n("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
7
- * @license lucide-react v0.460.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const I=n("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
12
- * @license lucide-react v0.460.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const D=n("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/**
17
- * @license lucide-react v0.460.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const q=n("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
22
- * @license lucide-react v0.460.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const B=n("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
27
- * @license lucide-react v0.460.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const F=n("ShieldCheck",[["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"}]]);/**
32
- * @license lucide-react v0.460.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const L=n("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
37
- * @license lucide-react v0.460.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */const T=n("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
42
- * @license lucide-react v0.460.0 - ISC
43
- *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */const W=n("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);function _(k){const{items:p,activeId:u,onSelect:d,className:v}=k;return e.jsxs("nav",{"aria-label":"Settings sections",className:Z("v8-settings-nav",v),children:[e.jsx("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:2},children:p.map(r=>{const a=u===r.id;return e.jsx("li",{children:e.jsxs("button",{type:"button",onClick:()=>d==null?void 0:d(r.id),"aria-current":a?"true":void 0,style:{display:"flex",alignItems:"center",gap:"var(--space-2)",width:"100%",padding:"var(--space-2) var(--space-3)",background:a?"var(--surface-2)":"transparent",border:0,borderRadius:"var(--radius-sm)",color:a?"var(--fg)":"var(--fg-muted)",font:"inherit",fontSize:"var(--fs-13)",fontWeight:a?500:400,cursor:"pointer",textAlign:"left"},children:[r.icon!==void 0&&e.jsx("span",{"aria-hidden":"true",style:{display:"inline-flex",color:a?"var(--accent)":"var(--fg-subtle)",flexShrink:0},children:r.icon}),e.jsx("span",{style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r.title})]})},r.id)})}),e.jsx("style",{children:`
47
- .v8-settings-nav button:hover { background: var(--surface-2); color: var(--fg); }
48
- `})]})}const z=[{id:"general",title:"General",icon:f},{id:"theme",title:"Theme",icon:q},{id:"density",title:"Density",icon:L},{id:"density-rules",title:"Density rules",icon:T},{id:"palette",title:"Command palette",icon:W},{id:"keyboard",title:"Keyboard",icon:D},{id:"notifications",title:"Notifications",icon:R},{id:"storage",title:"Storage",icon:I},{id:"plugins",title:"Plugins",icon:B},{id:"mcps",title:"MCP servers",icon:M},{id:"skills",title:"Skills",icon:w},{id:"hooks",title:"Hooks",icon:V},{id:"activity",title:"Activity",icon:A},{id:"memory",title:"Memory",icon:P},{id:"privacy",title:"Privacy",icon:F},{id:"advanced",title:"Advanced",icon:f}];function ne(){const[k,p]=c.useState("general"),u=J(),d=Q(),[v,r]=c.useState(!0),[a,E]=c.useState(!0),[O,H]=c.useState(!1),K=z.map(o=>({id:o.id,title:o.title,icon:e.jsx(o.icon,{size:14,"aria-hidden":"true"})})),N=o=>{p(o),requestAnimationFrame(()=>{var h;(h=document.getElementById(o))==null||h.scrollIntoView({behavior:"smooth",block:"start"})})},b=c.useRef(null);return c.useEffect(()=>{if(typeof IntersectionObserver>"u"||!b.current)return;const h=z.map(l=>document.getElementById(l.id)).filter(l=>l!==null);if(h.length===0)return;const m=new Map,C=new IntersectionObserver(l=>{for(const y of l){const x=y.target.id;y.isIntersecting?m.set(x,y.intersectionRatio):m.delete(x)}if(m.size===0)return;let g,S=-1;for(const[y,x]of m)x>S&&(S=x,g=y);g&&p(g)},{rootMargin:"-30% 0px -50% 0px",threshold:[0,.25,.5,.75,1]});for(const l of h)C.observe(l);return()=>{C.disconnect()}},[]),e.jsx("div",{ref:b,children:e.jsxs(G,{cols:3,gap:5,children:[e.jsx("aside",{style:{position:"sticky",top:0,alignSelf:"start"},children:e.jsx(_,{items:K,activeId:k,onSelect:N})}),e.jsxs(U,{gap:5,style:{gridColumn:"span 2"},children:[e.jsxs(i,{id:"general",title:"General",description:"Workspace-level defaults.",icon:e.jsx(f,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"workspace-name",label:"Workspace name",description:"Shown in the topbar and command palette.",control:e.jsx("input",{type:"text",defaultValue:"Bizar Harness",style:{padding:"6px 10px",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",background:"var(--surface-0)",color:"var(--fg)",fontSize:"var(--fs-13)"}})}),e.jsx(t,{id:"default-view",label:"Default view on launch",control:e.jsxs(j,{defaultValue:"overview",children:[e.jsx("option",{value:"overview",children:"Overview"}),e.jsx("option",{value:"tasks",children:"Tasks"}),e.jsx("option",{value:"goals",children:"Goals"})]})})]}),e.jsxs(i,{id:"theme",title:"Theme",description:"Color mode. System follows your OS preference.",icon:e.jsx(q,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"theme-mode",label:"Color mode",control:e.jsxs(j,{value:u.mode,onValueChange:u.setMode,children:[e.jsx("option",{value:"system",children:"System"}),e.jsx("option",{value:"light",children:"Light"}),e.jsx("option",{value:"dark",children:"Dark"})]})}),e.jsx(t,{id:"theme-accent",label:"Accent color",description:"Personalize the leading-edge accent stripe.",control:e.jsx("input",{type:"color",defaultValue:"#5b8def",style:{width:40,height:28,border:"1px solid var(--border)",borderRadius:"var(--radius-sm)"}})})]}),e.jsxs(i,{id:"density",title:"Density",description:"Comfortable by default. Compact fits more rows on screen.",icon:e.jsx(L,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"density-mode",label:"Density",control:e.jsxs(j,{value:d.density,onValueChange:o=>d.setDensity(o),children:[e.jsx("option",{value:"comfortable",children:"Comfortable"}),e.jsx("option",{value:"compact",children:"Compact"})]})}),e.jsx(t,{id:"density-base-font",label:"Base font size",description:"Adjusts the `--fs-13` token globally.",control:e.jsx(X,{defaultValue:[13],min:11,max:16,step:1})})]}),e.jsxs(i,{id:"density-rules",title:"Density rules",description:"Override density per surface.",icon:e.jsx(T,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"tasks-compact",label:"Tasks page — compact by default",control:e.jsx(s,{})}),e.jsx(t,{id:"memory-compact",label:"Memory page — compact by default",control:e.jsx(s,{defaultChecked:!0})})]}),e.jsxs(i,{id:"palette",title:"Command palette",description:"How the ⌘K palette behaves.",icon:e.jsx(W,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"palette-history",label:"Show recent commands",control:e.jsx(s,{defaultChecked:!0})}),e.jsx(t,{id:"palette-fuzzy",label:"Fuzzy match",control:e.jsx(s,{defaultChecked:!0})})]}),e.jsxs(i,{id:"keyboard",title:"Keyboard",description:"Per-action hotkey overrides.",icon:e.jsx(D,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"kb-palette",label:"Open command palette",control:e.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"⌘K"})}),e.jsx(t,{id:"kb-search",label:"Search tasks",control:e.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"⌘/"})})]}),e.jsxs(i,{id:"notifications",title:"Notifications",description:"When the harness should ping you.",icon:e.jsx(R,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"n-agent-finished",label:"Agent run finished",control:e.jsx(s,{defaultChecked:!0})}),e.jsx(t,{id:"n-ci-failed",label:"CI failed",control:e.jsx(s,{defaultChecked:!0})}),e.jsx(t,{id:"n-token-budget",label:"Token budget 80%",control:e.jsx(s,{defaultChecked:!0})})]}),e.jsxs(i,{id:"storage",title:"Storage",description:"Where local data lives.",icon:e.jsx(I,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"store-path",label:"Local store path",control:e.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"~/.bizar/store.db"})}),e.jsx(t,{id:"store-clear",label:"Clear local store",control:e.jsx(Y,{variant:"danger",children:"Clear…"})})]}),e.jsx(i,{id:"plugins",title:"Plugins",description:"Plugin registrations under `.claude/`.",icon:e.jsx(B,{size:14,"aria-hidden":"true"}),children:e.jsx(t,{id:"plugins-count",label:"Enabled plugins",control:e.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"1"})})}),e.jsx(i,{id:"mcps",title:"MCP servers",description:"Model Context Protocol servers.",icon:e.jsx(M,{size:14,"aria-hidden":"true"}),children:e.jsx(t,{id:"mcps-count",label:"Registered MCPs",control:e.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"3"})})}),e.jsx(i,{id:"skills",title:"Skills",description:"Bizar skill packs.",icon:e.jsx(w,{size:14,"aria-hidden":"true"}),children:e.jsx(t,{id:"skills-count",label:"Loaded skills",control:e.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"18"})})}),e.jsx(i,{id:"hooks",title:"Hooks",description:"Executable hook scripts.",icon:e.jsx(V,{size:14,"aria-hidden":"true"}),children:e.jsx(t,{id:"hooks-count",label:"Registered hooks",control:e.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"5"})})}),e.jsx(i,{id:"activity",title:"Activity",description:"Stream retention and export.",icon:e.jsx(A,{size:14,"aria-hidden":"true"}),children:e.jsx(t,{id:"activity-retention",label:"Retain last",control:e.jsxs(j,{defaultValue:"30d",children:[e.jsx("option",{children:"7 days"}),e.jsx("option",{children:"30 days"}),e.jsx("option",{children:"90 days"})]})})}),e.jsx(i,{id:"memory",title:"Memory",description:"Cross-session memo behavior.",icon:e.jsx(P,{size:14,"aria-hidden":"true"}),children:e.jsx(t,{id:"memory-auto-commit",label:"Auto-commit project memos",control:e.jsx(s,{defaultChecked:!0})})}),e.jsxs(i,{id:"privacy",title:"Privacy",description:"What the harness sends.",icon:e.jsx(F,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"privacy-analytics",label:"Anonymous analytics",control:e.jsx(s,{checked:v,onCheckedChange:r})}),e.jsx(t,{id:"privacy-crash",label:"Crash reports",control:e.jsx(s,{checked:a,onCheckedChange:E})})]}),e.jsxs(i,{id:"advanced",title:"Advanced",description:"Power-user toggles.",icon:e.jsx(f,{size:14,"aria-hidden":"true"}),children:[e.jsx(t,{id:"advanced-reduced-motion",label:"Reduce motion",description:"Disable non-essential transitions.",control:e.jsx(s,{checked:O,onCheckedChange:H})}),e.jsx(t,{id:"advanced-debug",label:"Debug overlay",description:"Show agent + tool call traces in the topbar.",control:e.jsx(s,{})})]})]})]})})}export{ne as SettingsView};
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsView-D1KmGWbi.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/bell.js","../../../node_modules/lucide-react/dist/esm/icons/database.js","../../../node_modules/lucide-react/dist/esm/icons/keyboard.js","../../../node_modules/lucide-react/dist/esm/icons/palette.js","../../../node_modules/lucide-react/dist/esm/icons/plug.js","../../../node_modules/lucide-react/dist/esm/icons/shield-check.js","../../../node_modules/lucide-react/dist/esm/icons/sliders-vertical.js","../../../node_modules/lucide-react/dist/esm/icons/sparkles.js","../../../node_modules/lucide-react/dist/esm/icons/terminal.js","../../src/web/v8/ui/settings/SettingsNav.tsx","../../src/web/v8/views/Settings/SettingsView.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Bell = createLucideIcon(\"Bell\", [\n [\"path\", { d: \"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\", key: \"1qo2s2\" }],\n [\"path\", { d: \"M10.3 21a1.94 1.94 0 0 0 3.4 0\", key: \"qgo35s\" }]\n]);\n\nexport { Bell as default };\n//# sourceMappingURL=bell.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Database = createLucideIcon(\"Database\", [\n [\"ellipse\", { cx: \"12\", cy: \"5\", rx: \"9\", ry: \"3\", key: \"msslwz\" }],\n [\"path\", { d: \"M3 5V19A9 3 0 0 0 21 19V5\", key: \"1wlel7\" }],\n [\"path\", { d: \"M3 12A9 3 0 0 0 21 12\", key: \"mv7ke4\" }]\n]);\n\nexport { Database as default };\n//# sourceMappingURL=database.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Keyboard = createLucideIcon(\"Keyboard\", [\n [\"path\", { d: \"M10 8h.01\", key: \"1r9ogq\" }],\n [\"path\", { d: \"M12 12h.01\", key: \"1mp3jc\" }],\n [\"path\", { d: \"M14 8h.01\", key: \"1primd\" }],\n [\"path\", { d: \"M16 12h.01\", key: \"1l6xoz\" }],\n [\"path\", { d: \"M18 8h.01\", key: \"emo2bl\" }],\n [\"path\", { d: \"M6 8h.01\", key: \"x9i8wu\" }],\n [\"path\", { d: \"M7 16h10\", key: \"wp8him\" }],\n [\"path\", { d: \"M8 12h.01\", key: \"czm47f\" }],\n [\"rect\", { width: \"20\", height: \"16\", x: \"2\", y: \"4\", rx: \"2\", key: \"18n3k1\" }]\n]);\n\nexport { Keyboard as default };\n//# sourceMappingURL=keyboard.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Palette = createLucideIcon(\"Palette\", [\n [\"circle\", { cx: \"13.5\", cy: \"6.5\", r: \".5\", fill: \"currentColor\", key: \"1okk4w\" }],\n [\"circle\", { cx: \"17.5\", cy: \"10.5\", r: \".5\", fill: \"currentColor\", key: \"f64h9f\" }],\n [\"circle\", { cx: \"8.5\", cy: \"7.5\", r: \".5\", fill: \"currentColor\", key: \"fotxhn\" }],\n [\"circle\", { cx: \"6.5\", cy: \"12.5\", r: \".5\", fill: \"currentColor\", key: \"qy21gx\" }],\n [\n \"path\",\n {\n d: \"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z\",\n key: \"12rzf8\"\n }\n ]\n]);\n\nexport { Palette as default };\n//# sourceMappingURL=palette.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Plug = createLucideIcon(\"Plug\", [\n [\"path\", { d: \"M12 22v-5\", key: \"1ega77\" }],\n [\"path\", { d: \"M9 8V2\", key: \"14iosj\" }],\n [\"path\", { d: \"M15 8V2\", key: \"18g5xt\" }],\n [\"path\", { d: \"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z\", key: \"osxo6l\" }]\n]);\n\nexport { Plug as default };\n//# sourceMappingURL=plug.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ShieldCheck = createLucideIcon(\"ShieldCheck\", [\n [\n \"path\",\n {\n 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\",\n key: \"oel41y\"\n }\n ],\n [\"path\", { d: \"m9 12 2 2 4-4\", key: \"dzmm74\" }]\n]);\n\nexport { ShieldCheck as default };\n//# sourceMappingURL=shield-check.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst SlidersVertical = createLucideIcon(\"SlidersVertical\", [\n [\"line\", { x1: \"4\", x2: \"4\", y1: \"21\", y2: \"14\", key: \"1p332r\" }],\n [\"line\", { x1: \"4\", x2: \"4\", y1: \"10\", y2: \"3\", key: \"gb41h5\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"21\", y2: \"12\", key: \"hf2csr\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"8\", y2: \"3\", key: \"1kfi7u\" }],\n [\"line\", { x1: \"20\", x2: \"20\", y1: \"21\", y2: \"16\", key: \"1lhrwl\" }],\n [\"line\", { x1: \"20\", x2: \"20\", y1: \"12\", y2: \"3\", key: \"16vvfq\" }],\n [\"line\", { x1: \"2\", x2: \"6\", y1: \"14\", y2: \"14\", key: \"1uebub\" }],\n [\"line\", { x1: \"10\", x2: \"14\", y1: \"8\", y2: \"8\", key: \"1yglbp\" }],\n [\"line\", { x1: \"18\", x2: \"22\", y1: \"16\", y2: \"16\", key: \"1jxqpz\" }]\n]);\n\nexport { SlidersVertical as default };\n//# sourceMappingURL=sliders-vertical.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Sparkles = createLucideIcon(\"Sparkles\", [\n [\n \"path\",\n {\n d: \"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z\",\n key: \"4pj2yx\"\n }\n ],\n [\"path\", { d: \"M20 3v4\", key: \"1olli1\" }],\n [\"path\", { d: \"M22 5h-4\", key: \"1gvqau\" }],\n [\"path\", { d: \"M4 17v2\", key: \"vumght\" }],\n [\"path\", { d: \"M5 18H3\", key: \"zchphs\" }]\n]);\n\nexport { Sparkles as default };\n//# sourceMappingURL=sparkles.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Terminal = createLucideIcon(\"Terminal\", [\n [\"polyline\", { points: \"4 17 10 11 4 5\", key: \"akl6gq\" }],\n [\"line\", { x1: \"12\", x2: \"20\", y1: \"19\", y2: \"19\", key: \"q2wloq\" }]\n]);\n\nexport { Terminal as default };\n//# sourceMappingURL=terminal.js.map\n","import { type ReactNode } from 'react';\nimport { cx } from '../utils/cx.js';\n\n/**\n * SettingsNav — left rail inside the Settings page.\n *\n * Lists each section so the user can jump (or scroll) to it. The active\n * section is highlighted. The nav is a vertical list with section ids\n * as the anchor target; no JS router needed.\n */\n\nexport interface SettingsNavItem {\n id: string;\n title: string;\n icon?: ReactNode;\n}\n\nexport interface SettingsNavProps {\n items: readonly SettingsNavItem[];\n /** The id of the currently-visible section. */\n activeId?: string;\n /** Click handler — usually `() => document.getElementById(id)?.scrollIntoView()`. */\n onSelect?: (id: string) => void;\n className?: string;\n}\n\nexport function SettingsNav(props: SettingsNavProps) {\n const { items, activeId, onSelect, className } = props;\n return (\n <nav aria-label=\"Settings sections\" className={cx('v8-settings-nav', className)}>\n <ul\n style={{\n listStyle: 'none',\n margin: 0,\n padding: 0,\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n }}\n >\n {items.map((item) => {\n const isActive = activeId === item.id;\n return (\n <li key={item.id}>\n <button\n type=\"button\"\n onClick={() => onSelect?.(item.id)}\n aria-current={isActive ? 'true' : undefined}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: 'var(--space-2)',\n width: '100%',\n padding: 'var(--space-2) var(--space-3)',\n background: isActive ? 'var(--surface-2)' : 'transparent',\n border: 0,\n borderRadius: 'var(--radius-sm)',\n color: isActive ? 'var(--fg)' : 'var(--fg-muted)',\n font: 'inherit',\n fontSize: 'var(--fs-13)',\n fontWeight: isActive ? 500 : 400,\n cursor: 'pointer',\n textAlign: 'left',\n }}\n >\n {item.icon !== undefined && (\n <span\n aria-hidden=\"true\"\n style={{\n display: 'inline-flex',\n color: isActive ? 'var(--accent)' : 'var(--fg-subtle)',\n flexShrink: 0,\n }}\n >\n {item.icon}\n </span>\n )}\n <span style={{ minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>\n {item.title}\n </span>\n </button>\n </li>\n );\n })}\n </ul>\n <style>{`\n .v8-settings-nav button:hover { background: var(--surface-2); color: var(--fg); }\n `}</style>\n </nav>\n );\n}","import { useEffect, useRef, useState } from 'react';\nimport {\n Palette,\n Keyboard,\n Bell,\n Database,\n Plug,\n Library as LibraryIcon,\n Wrench,\n Activity,\n Brain,\n ShieldCheck,\n Sliders,\n Sparkles,\n Terminal,\n Settings as SettingsIcon,\n Cpu,\n type LucideIcon,\n} from 'lucide-react';\nimport { Grid } from '../../ui/primitives/Grid.js';\nimport { Stack } from '../../ui/primitives/Stack.js';\nimport { Switch } from '../../ui/controls/Switch.js';\nimport { Select } from '../../ui/controls/Select.js';\nimport { Slider } from '../../ui/controls/Slider.js';\nimport { Button } from '../../ui/controls/Button.js';\nimport { SettingsSection } from '../../ui/settings/SettingsSection.js';\nimport { SettingsRow } from '../../ui/settings/SettingsRow.js';\nimport { SettingsNav, type SettingsNavItem } from '../../ui/settings/SettingsNav.js';\nimport { useTheme } from '../../ui/theme/useTheme.js';\nimport { useDensity } from '../../ui/theme/useDensity.js';\n\n/**\n * SettingsView — composes the 16 PLAN.md sections from SettingsSection\n * + SettingsRow primitives. Live state is wired to ThemeProvider /\n * DensityProvider where it makes sense (General, Theme, Density).\n *\n * Other sections render with stub controls so the surface is exercisable\n * end-to-end. Replacing stubs with real wiring is per-section work that\n * ships incrementally.\n */\n\ninterface Section {\n id: string;\n title: string;\n icon: LucideIcon;\n}\n\nconst SECTIONS: Section[] = [\n { id: 'general', title: 'General', icon: SettingsIcon },\n { id: 'theme', title: 'Theme', icon: Palette },\n { id: 'density', title: 'Density', icon: Sliders },\n { id: 'density-rules', title: 'Density rules', icon: Sparkles },\n { id: 'palette', title: 'Command palette', icon: Terminal },\n { id: 'keyboard', title: 'Keyboard', icon: Keyboard },\n { id: 'notifications', title: 'Notifications', icon: Bell },\n { id: 'storage', title: 'Storage', icon: Database },\n { id: 'plugins', title: 'Plugins', icon: Plug },\n { id: 'mcps', title: 'MCP servers', icon: Cpu },\n { id: 'skills', title: 'Skills', icon: LibraryIcon },\n { id: 'hooks', title: 'Hooks', icon: Wrench },\n { id: 'activity', title: 'Activity', icon: Activity },\n { id: 'memory', title: 'Memory', icon: Brain },\n { id: 'privacy', title: 'Privacy', icon: ShieldCheck },\n { id: 'advanced', title: 'Advanced', icon: SettingsIcon },\n];\n\nexport function SettingsView(): JSX.Element {\n const [activeId, setActiveId] = useState<string>('general');\n const theme = useTheme();\n const density = useDensity();\n const [analytics, setAnalytics] = useState<boolean>(true);\n const [crashReports, setCrashReports] = useState<boolean>(true);\n const [reducedMotion, setReducedMotion] = useState<boolean>(false);\n\n const navItems: SettingsNavItem[] = SECTIONS.map((s) => ({ id: s.id, title: s.title, icon: <s.icon size={14} aria-hidden=\"true\" /> }));\n\n // Click on a left-rail nav entry → set active + scroll the section into view.\n const handleSelect = (id: string): void => {\n setActiveId(id);\n // Use a rAF so the active highlight paints before the scroll begins —\n // some browsers queue both as separate compositor passes otherwise.\n requestAnimationFrame(() => {\n document.getElementById(id)?.scrollIntoView({ behavior: 'smooth', block: 'start' });\n });\n };\n\n // Sync active section with what's actually on screen as the user scrolls.\n // Without this, the rail highlight lags behind the scroll position.\n const rootRef = useRef<HTMLDivElement>(null);\n useEffect(() => {\n if (typeof IntersectionObserver === 'undefined') return;\n const root = rootRef.current;\n if (!root) return;\n const targets = SECTIONS\n .map((s) => document.getElementById(s.id))\n .filter((el): el is HTMLElement => el !== null);\n if (targets.length === 0) return;\n\n const visible = new Map<string, number>();\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n const id = entry.target.id;\n if (entry.isIntersecting) {\n visible.set(id, entry.intersectionRatio);\n } else {\n visible.delete(id);\n }\n }\n if (visible.size === 0) return;\n // Pick the section with the highest visible ratio.\n let bestId: string | undefined;\n let bestRatio = -1;\n for (const [id, ratio] of visible) {\n if (ratio > bestRatio) {\n bestRatio = ratio;\n bestId = id;\n }\n }\n if (bestId) setActiveId(bestId);\n },\n { rootMargin: '-30% 0px -50% 0px', threshold: [0, 0.25, 0.5, 0.75, 1] },\n );\n for (const t of targets) observer.observe(t);\n return () => {\n observer.disconnect();\n };\n }, []);\n\n return (\n <div ref={rootRef}>\n <Grid cols={3} gap={5}>\n <aside style={{ position: 'sticky', top: 0, alignSelf: 'start' }}>\n <SettingsNav items={navItems} activeId={activeId} onSelect={handleSelect} />\n </aside>\n <Stack gap={5} style={{ gridColumn: 'span 2' }}>\n <SettingsSection\n id=\"general\"\n title=\"General\"\n description=\"Workspace-level defaults.\"\n icon={<SettingsIcon size={14} aria-hidden=\"true\" />}\n >\n <SettingsRow\n id=\"workspace-name\"\n label=\"Workspace name\"\n description=\"Shown in the topbar and command palette.\"\n control={<input type=\"text\" defaultValue=\"Bizar Harness\" style={{ padding: '6px 10px', border: '1px solid var(--border)', borderRadius: 'var(--radius-sm)', background: 'var(--surface-0)', color: 'var(--fg)', fontSize: 'var(--fs-13)' }} />}\n />\n <SettingsRow\n id=\"default-view\"\n label=\"Default view on launch\"\n control={\n <Select defaultValue=\"overview\">\n <option value=\"overview\">Overview</option>\n <option value=\"tasks\">Tasks</option>\n <option value=\"goals\">Goals</option>\n </Select>\n }\n />\n </SettingsSection>\n\n <SettingsSection\n id=\"theme\"\n title=\"Theme\"\n description=\"Color mode. System follows your OS preference.\"\n icon={<Palette size={14} aria-hidden=\"true\" />}\n >\n <SettingsRow\n id=\"theme-mode\"\n label=\"Color mode\"\n control={\n <Select value={theme.mode} onValueChange={theme.setMode}>\n <option value=\"system\">System</option>\n <option value=\"light\">Light</option>\n <option value=\"dark\">Dark</option>\n </Select>\n }\n />\n <SettingsRow\n id=\"theme-accent\"\n label=\"Accent color\"\n description=\"Personalize the leading-edge accent stripe.\"\n control={<input type=\"color\" defaultValue=\"#5b8def\" style={{ width: 40, height: 28, border: '1px solid var(--border)', borderRadius: 'var(--radius-sm)' }} />}\n />\n </SettingsSection>\n\n <SettingsSection\n id=\"density\"\n title=\"Density\"\n description=\"Comfortable by default. Compact fits more rows on screen.\"\n icon={<Sliders size={14} aria-hidden=\"true\" />}\n >\n <SettingsRow\n id=\"density-mode\"\n label=\"Density\"\n control={\n <Select value={density.density} onValueChange={(v) => density.setDensity(v as 'comfortable' | 'compact')}>\n <option value=\"comfortable\">Comfortable</option>\n <option value=\"compact\">Compact</option>\n </Select>\n }\n />\n <SettingsRow\n id=\"density-base-font\"\n label=\"Base font size\"\n description=\"Adjusts the `--fs-13` token globally.\"\n control={<Slider defaultValue={[13]} min={11} max={16} step={1} />}\n />\n </SettingsSection>\n\n <SettingsSection\n id=\"density-rules\"\n title=\"Density rules\"\n description=\"Override density per surface.\"\n icon={<Sparkles size={14} aria-hidden=\"true\" />}\n >\n <SettingsRow\n id=\"tasks-compact\"\n label=\"Tasks page — compact by default\"\n control={<Switch />}\n />\n <SettingsRow\n id=\"memory-compact\"\n label=\"Memory page — compact by default\"\n control={<Switch defaultChecked />}\n />\n </SettingsSection>\n\n <SettingsSection id=\"palette\" title=\"Command palette\" description=\"How the ⌘K palette behaves.\" icon={<Terminal size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"palette-history\" label=\"Show recent commands\" control={<Switch defaultChecked />} />\n <SettingsRow id=\"palette-fuzzy\" label=\"Fuzzy match\" control={<Switch defaultChecked />} />\n </SettingsSection>\n\n <SettingsSection id=\"keyboard\" title=\"Keyboard\" description=\"Per-action hotkey overrides.\" icon={<Keyboard size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"kb-palette\" label=\"Open command palette\" control={<code style={{ fontFamily: 'var(--font-mono)' }}>⌘K</code>} />\n <SettingsRow id=\"kb-search\" label=\"Search tasks\" control={<code style={{ fontFamily: 'var(--font-mono)' }}>⌘/</code>} />\n </SettingsSection>\n\n <SettingsSection id=\"notifications\" title=\"Notifications\" description=\"When the harness should ping you.\" icon={<Bell size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"n-agent-finished\" label=\"Agent run finished\" control={<Switch defaultChecked />} />\n <SettingsRow id=\"n-ci-failed\" label=\"CI failed\" control={<Switch defaultChecked />} />\n <SettingsRow id=\"n-token-budget\" label=\"Token budget 80%\" control={<Switch defaultChecked />} />\n </SettingsSection>\n\n <SettingsSection id=\"storage\" title=\"Storage\" description=\"Where local data lives.\" icon={<Database size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"store-path\" label=\"Local store path\" control={<code style={{ fontFamily: 'var(--font-mono)' }}>~/.bizar/store.db</code>} />\n <SettingsRow id=\"store-clear\" label=\"Clear local store\" control={<Button variant=\"danger\">Clear…</Button>} />\n </SettingsSection>\n\n <SettingsSection id=\"plugins\" title=\"Plugins\" description=\"Plugin registrations under `.claude/`.\" icon={<Plug size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"plugins-count\" label=\"Enabled plugins\" control={<code style={{ fontFamily: 'var(--font-mono)' }}>1</code>} />\n </SettingsSection>\n\n <SettingsSection id=\"mcps\" title=\"MCP servers\" description=\"Model Context Protocol servers.\" icon={<Cpu size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"mcps-count\" label=\"Registered MCPs\" control={<code style={{ fontFamily: 'var(--font-mono)' }}>3</code>} />\n </SettingsSection>\n\n <SettingsSection id=\"skills\" title=\"Skills\" description=\"Bizar skill packs.\" icon={<LibraryIcon size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"skills-count\" label=\"Loaded skills\" control={<code style={{ fontFamily: 'var(--font-mono)' }}>18</code>} />\n </SettingsSection>\n\n <SettingsSection id=\"hooks\" title=\"Hooks\" description=\"Executable hook scripts.\" icon={<Wrench size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"hooks-count\" label=\"Registered hooks\" control={<code style={{ fontFamily: 'var(--font-mono)' }}>5</code>} />\n </SettingsSection>\n\n <SettingsSection id=\"activity\" title=\"Activity\" description=\"Stream retention and export.\" icon={<Activity size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"activity-retention\" label=\"Retain last\" control={<Select defaultValue=\"30d\"><option>7 days</option><option>30 days</option><option>90 days</option></Select>} />\n </SettingsSection>\n\n <SettingsSection id=\"memory\" title=\"Memory\" description=\"Cross-session memo behavior.\" icon={<Brain size={14} aria-hidden=\"true\" />}>\n <SettingsRow id=\"memory-auto-commit\" label=\"Auto-commit project memos\" control={<Switch defaultChecked />} />\n </SettingsSection>\n\n <SettingsSection id=\"privacy\" title=\"Privacy\" description=\"What the harness sends.\" icon={<ShieldCheck size={14} aria-hidden=\"true\" />}>\n <SettingsRow\n id=\"privacy-analytics\"\n label=\"Anonymous analytics\"\n control={<Switch checked={analytics} onCheckedChange={setAnalytics} />}\n />\n <SettingsRow\n id=\"privacy-crash\"\n label=\"Crash reports\"\n control={<Switch checked={crashReports} onCheckedChange={setCrashReports} />}\n />\n </SettingsSection>\n\n <SettingsSection id=\"advanced\" title=\"Advanced\" description=\"Power-user toggles.\" icon={<SettingsIcon size={14} aria-hidden=\"true\" />}>\n <SettingsRow\n id=\"advanced-reduced-motion\"\n label=\"Reduce motion\"\n description=\"Disable non-essential transitions.\"\n control={<Switch checked={reducedMotion} onCheckedChange={setReducedMotion} />}\n />\n <SettingsRow\n id=\"advanced-debug\"\n label=\"Debug overlay\"\n description=\"Show agent + tool call traces in the topbar.\"\n control={<Switch />}\n />\n </SettingsSection>\n </Stack>\n </Grid>\n </div>\n );\n}"],"names":["Bell","createLucideIcon","Database","Keyboard","Palette","Plug","ShieldCheck","SlidersVertical","Sparkles","Terminal","SettingsNav","props","items","activeId","onSelect","className","jsxs","cx","jsx","item","isActive","SECTIONS","SettingsIcon","Sliders","Cpu","LibraryIcon","Wrench","Activity","Brain","SettingsView","setActiveId","useState","theme","useTheme","density","useDensity","analytics","setAnalytics","crashReports","setCrashReports","reducedMotion","setReducedMotion","navItems","s","handleSelect","id","_a","rootRef","useRef","useEffect","targets","el","visible","observer","entries","entry","bestId","bestRatio","ratio","t","Grid","Stack","SettingsSection","SettingsRow","Select","v","Slider","Switch","Button"],"mappings":"uUAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASA,MAAMA,EAAOC,EAAiB,OAAQ,CACpC,CAAC,OAAQ,CAAE,EAAG,4CAA6C,IAAK,QAAQ,CAAE,EAC1E,CAAC,OAAQ,CAAE,EAAG,iCAAkC,IAAK,QAAQ,CAAE,CACjE,CAAC,ECZD;AAAA;AAAA;AAAA;AAAA;AAAA,GASA,MAAMC,EAAWD,EAAiB,WAAY,CAC5C,CAAC,UAAW,CAAE,GAAI,KAAM,GAAI,IAAK,GAAI,IAAK,GAAI,IAAK,IAAK,QAAQ,CAAE,EAClE,CAAC,OAAQ,CAAE,EAAG,4BAA6B,IAAK,QAAQ,CAAE,EAC1D,CA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AAA,CAAgB,GAAG,WAAW,MAAM,WAAW,YAAY,sBAAsB,WAAOxC,EAAA,CAAa,KAAM,GAAI,cAAY,OAAO,EACjI,SAAA,CAAAJ,EAAAA,IAAC6C,EAAA,CACC,GAAG,0BACH,MAAM,gBACN,YAAY,qCACZ,QAAS7C,EAAAA,IAACiD,EAAA,CAAO,QAAS3B,EAAe,gBAAiBC,CAAA,CAAkB,CAAA,CAAA,EAE9EvB,EAAAA,IAAC6C,EAAA,CACC,GAAG,iBACH,MAAM,gBACN,YAAY,+CACZ,cAAUI,EAAA,CAAA,CAAO,CAAA,CAAA,CACnB,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACA,CAEJ","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
@@ -1,11 +0,0 @@
1
- import{r as p,j as e}from"./cmdk-BwN8hcKQ.js";import{a as f,c as v}from"./main-Cw6gybzS.js";import{M as h}from"./minus-CrStJTZ7.js";/**
2
- * @license lucide-react v0.460.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const j=f("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
7
- * @license lucide-react v0.460.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const T=f("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),b={up:"var(--success)",down:"var(--danger)",flat:"var(--fg-muted)"},w={up:T,down:j,flat:h},I=p.forwardRef(function(l,o){const{label:d,value:i,delta:t,trend:a,hint:s,icon:r,sparkline:n,loading:g,className:m,style:x,...y}=l,c=a!==void 0?w[a]:null;return e.jsxs("div",{ref:o,className:v("v8-stat-tile",m),style:{display:"flex",flexDirection:"column",gap:"var(--space-2)",padding:"var(--space-5)",background:"var(--surface-1)",border:"1px solid var(--border)",borderRadius:"var(--radius-lg)",...x},...y,children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"var(--space-2)"},children:[e.jsx("div",{style:{fontSize:"var(--fs-13)",color:"var(--fg-muted)",fontWeight:500},children:d}),r!==void 0&&e.jsx("span",{style:{color:"var(--fg-subtle)",display:"inline-flex"},children:r})]}),e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"var(--space-2)"},children:[e.jsx("div",{style:{fontSize:"var(--fs-24)",fontWeight:600,color:"var(--fg)",fontVariantNumeric:"tabular-nums",lineHeight:"var(--lh-tight)"},children:g===!0?"—":i}),(t!==void 0||c!==null)&&e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:2,fontSize:"var(--fs-12)",fontWeight:500,color:a!==void 0?b[a]:"var(--fg-muted)",fontVariantNumeric:"tabular-nums"},children:[c!==null&&e.jsx(c,{size:12,"aria-hidden":"true"}),t]})]}),s!==void 0&&e.jsx("div",{style:{fontSize:"var(--fs-12)",color:"var(--fg-subtle)"},children:s}),n!==void 0&&e.jsx("div",{style:{marginTop:"var(--space-1)"},children:n})]})}),R=p.forwardRef(function(l,o){const{children:d,cols:i,minWidth:t=200,className:a,style:s,...r}=l,n=i!==void 0?`repeat(${i}, minmax(0, 1fr))`:`repeat(auto-fit, minmax(${t}px, 1fr))`;return e.jsx("div",{ref:o,className:v("v8-stat-grid",a),style:{display:"grid",gridTemplateColumns:n,gap:"var(--space-3)",...s},...r,children:d})});export{R as S,I as a};
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatTile-BkIP32gG.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/trending-down.js","../../../node_modules/lucide-react/dist/esm/icons/trending-up.js","../../src/web/v8/ui/data/StatTile.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst TrendingDown = createLucideIcon(\"TrendingDown\", [\n [\"polyline\", { points: \"22 17 13.5 8.5 8.5 13.5 2 7\", key: \"1r2t7k\" }],\n [\"polyline\", { points: \"16 17 22 17 22 11\", key: \"11uiuu\" }]\n]);\n\nexport { TrendingDown as default };\n//# sourceMappingURL=trending-down.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst TrendingUp = createLucideIcon(\"TrendingUp\", [\n [\"polyline\", { points: \"22 7 13.5 15.5 8.5 10.5 2 17\", key: \"126l90\" }],\n [\"polyline\", { points: \"16 7 22 7 22 13\", key: \"kwv8wd\" }]\n]);\n\nexport { TrendingUp as default };\n//# sourceMappingURL=trending-up.js.map\n","import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';\nimport { TrendingDown, TrendingUp, Minus } from 'lucide-react';\nimport { cx } from '../utils/cx.js';\n\n/**\n * StatTile — a single KPI tile for the overview.\n *\n * Pattern: `[label] [trend-icon delta]`\n * `[BIG value]`\n * `[sparkline?]`\n *\n * Use cases: Overview dashboard, agent detail, goal detail.\n */\nexport type StatTrend = 'up' | 'down' | 'flat';\n\nexport interface StatTileProps extends HTMLAttributes<HTMLDivElement> {\n label: ReactNode;\n value: ReactNode;\n /** Optional delta with trend direction (e.g. \"+12%\" vs last week). */\n delta?: ReactNode;\n trend?: StatTrend;\n /** Optional helper text under the value. */\n hint?: ReactNode;\n /** Optional icon for the top-right corner. */\n icon?: ReactNode;\n /** Inline sparkline rendered beneath the value (use the Sparkline component). */\n sparkline?: ReactNode;\n /** Loading state — replaces value with skeleton. */\n loading?: boolean;\n}\n\nconst TREND_FG: Record<StatTrend, string> = {\n up: 'var(--success)',\n down: 'var(--danger)',\n flat: 'var(--fg-muted)',\n};\n\nconst TREND_ICON: Record<StatTrend, typeof TrendingUp> = {\n up: TrendingUp,\n down: TrendingDown,\n flat: Minus,\n};\n\nexport const StatTile = forwardRef<HTMLDivElement, StatTileProps>(function StatTile(props, ref) {\n const {\n label,\n value,\n delta,\n trend,\n hint,\n icon,\n sparkline,\n loading,\n className,\n style,\n ...rest\n } = props;\n const TrendIcon = trend !== undefined ? TREND_ICON[trend] : null;\n return (\n <div\n ref={ref}\n className={cx('v8-stat-tile', className)}\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 'var(--space-2)',\n padding: 'var(--space-5)',\n background: 'var(--surface-1)',\n border: '1px solid var(--border)',\n borderRadius: 'var(--radius-lg)',\n ...style,\n }}\n {...rest}\n >\n <div style={{ display: 'flex', alignItems: 'flex-start', justifyContent: 'space-between', gap: 'var(--space-2)' }}>\n <div style={{ fontSize: 'var(--fs-13)', color: 'var(--fg-muted)', fontWeight: 500 }}>\n {label}\n </div>\n {icon !== undefined && (\n <span style={{ color: 'var(--fg-subtle)', display: 'inline-flex' }}>{icon}</span>\n )}\n </div>\n <div style={{ display: 'flex', alignItems: 'baseline', gap: 'var(--space-2)' }}>\n <div\n style={{\n fontSize: 'var(--fs-24)',\n fontWeight: 600,\n color: 'var(--fg)',\n fontVariantNumeric: 'tabular-nums',\n lineHeight: 'var(--lh-tight)',\n }}\n >\n {loading === true ? '—' : value}\n </div>\n {(delta !== undefined || TrendIcon !== null) && (\n <div\n style={{\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n fontSize: 'var(--fs-12)',\n fontWeight: 500,\n color: trend !== undefined ? TREND_FG[trend] : 'var(--fg-muted)',\n fontVariantNumeric: 'tabular-nums',\n }}\n >\n {TrendIcon !== null && <TrendIcon size={12} aria-hidden=\"true\" />}\n {delta}\n </div>\n )}\n </div>\n {hint !== undefined && (\n <div style={{ fontSize: 'var(--fs-12)', color: 'var(--fg-subtle)' }}>{hint}</div>\n )}\n {sparkline !== undefined && <div style={{ marginTop: 'var(--space-1)' }}>{sparkline}</div>}\n </div>\n );\n});\n\n/**\n * StatGrid — responsive grid for StatTiles. Auto-fits 1..4 columns.\n */\nexport interface StatGridProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n /** Min tile width (default 200px). */\n minWidth?: number;\n cols?: 2 | 3 | 4;\n}\n\nexport const StatGrid = forwardRef<HTMLDivElement, StatGridProps>(function StatGrid(props, ref) {\n const { children, cols, minWidth = 200, className, style, ...rest } = props;\n const gridTemplate = cols !== undefined\n ? `repeat(${cols}, minmax(0, 1fr))`\n : `repeat(auto-fit, minmax(${minWidth}px, 1fr))`;\n return (\n <div\n ref={ref}\n className={cx('v8-stat-grid', className)}\n style={{\n display: 'grid',\n gridTemplateColumns: gridTemplate,\n gap: 'var(--space-3)',\n ...style,\n }}\n {...rest}\n >\n {children}\n </div>\n );\n});"],"names":["TrendingDown","createLucideIcon","TrendingUp","TREND_FG","TREND_ICON","Minus","StatTile","forwardRef","props","ref","label","value","delta","trend","hint","icon","sparkline","loading","className","style","rest","TrendIcon","jsxs","cx","jsx","StatGrid","children","cols","minWidth","gridTemplate"],"mappings":"oIAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASA,MAAMA,EAAeC,EAAiB,eAAgB,CACpD,CAAC,WAAY,CAAE,OAAQ,8BAA+B,IAAK,QAAQ,CAAE,EACrE,CAAC,WAAY,CAAE,OAAQ,oBAAqB,IAAK,QAAQ,CAAE,CAC7D,CAAC,ECZD;AAAA;AAAA;AAAA;AAAA;AAAA,GASA,MAAMC,EAAaD,EAAiB,aAAc,CAChD,CAAC,WAAY,CAAE,OAAQ,+BAAgC,IAAK,QAAQ,CAAE,EACtE,CAAC,WAAY,CAAE,OAAQ,kBAAmB,IAAK,QAAQ,CAAE,CAC3D,CAAC,ECmBKE,EAAsC,CAC1C,GAAI,iBACJ,KAAM,gBACN,KAAM,iBACR,EAEMC,EAAmD,CACvD,GAAIF,EACJ,KAAMF,EACN,KAAMK,CACR,EAEaC,EAAWC,EAAAA,WAA0C,SAAkBC,EAAOC,EAAK,CA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AACH,EAAA,CAAU,KAAM,GAAI,cAAY,OAAO,EAC9DT,CAAA,CAAA,CAAA,CACH,EAEJ,EACCE,IAAS,QACRU,EAAAA,IAAC,MAAA,CAAI,MAAO,CAAE,SAAU,eAAgB,MAAO,kBAAA,EAAuB,SAAAV,CAAA,CAAK,EAE5EE,IAAc,QAAaQ,MAAC,MAAA,CAAI,MAAO,CAAE,UAAW,gBAAA,EAAqB,SAAAR,CAAA,CAAU,CAAA,CAAA,CAAA,CAG1F,CAAC,EAYYS,EAAWlB,EAAAA,WAA0C,SAAkBC,EAAOC,EAAK,CAC9F,KAAM,CAAE,SAAAiB,EAAU,KAAAC,EAAM,SAAAC,EAAW,IAAK,UAAAV,EAAW,MAAAC,EAAO,GAAGC,CAAA,EAASZ,EAChEqB,EAAeF,IAAS,OAC1B,UAAUA,CAAI,oBACd,2BAA2BC,CAAQ,YACvC,OACEJ,EAAAA,IAAC,MAAA,CACC,IAAAf,EACA,UAAWc,EAAG,eAAgBL,CAAS,EACvC,MAAO,CACL,QAAS,OACT,oBAAqBW,EACrB,IAAK,iBACL,GAAGV,CAAA,EAEJ,GAAGC,EAEH,SAAAM,CAAA,CAAA,CAGP,CAAC","x_google_ignoreList":[0,1]}
@@ -1 +0,0 @@
1
- import{r as b,j as o}from"./cmdk-BwN8hcKQ.js";import{c as S,S as x}from"./main-Cw6gybzS.js";import{V as w}from"./ViewHeader-D6c2cw1b.js";import{u as C,a as g,D as T,c as k,s as j,K as D,P as K}from"./dnd-kit-DR2Qzzxk.js";import{K as A,a as R}from"./KanbanCard-CtTKP6ZX.js";import"./calendar-DRlQkGJc.js";import"./message-square-DUTeIQAR.js";function E({columns:n,onCardMove:a,children:e,className:i}){const t=C(g(K,{activationConstraint:{distance:4}}),g(D,{coordinateGetter:j})),[,s]=b.useState(null),r=c=>{var p;s(null);const{active:h,over:m}=c;if(m===null)return;const d=String(h.id),I=String(m.id),l=((p=n.find(y=>y.id===I))==null?void 0:p.id)??d.split("::")[0];if(l===void 0)return;const u=d.split("::")[0]??"";u!==l&&a!==void 0&&a(d,u,l)};return o.jsx(T,{sensors:t,collisionDetection:k,onDragStart:c=>s(String(c.active.id)),onDragEnd:r,children:o.jsx("div",{className:S("v8-kanban-board",i),style:{display:"flex",gap:"var(--space-3)",padding:"var(--space-3)",overflowX:"auto",overflowY:"hidden",height:"100%",alignItems:"stretch"},role:"region","aria-label":"Kanban board",children:e})})}const f=[{id:"backlog",title:"Backlog",accentTone:"neutral"},{id:"todo",title:"To do",accentTone:"info"},{id:"in-progress",title:"In progress",accentTone:"accent",wipLimit:5},{id:"review",title:"In review",accentTone:"warning"},{id:"done",title:"Done",accentTone:"success"}],L=[{id:"t1",columnId:"in-progress",title:"Wire TanStack Router in v8 App",priority:"high",branch:"feat/router",due:"Today",comments:3},{id:"t2",columnId:"todo",title:"Add WebSocket layer for live activity",priority:"medium",branch:"feat/ws",due:"Fri",comments:1},{id:"t3",columnId:"review",title:"Refactor ActivityFeed empty state",priority:"low",branch:"fix/activity",comments:0},{id:"t4",columnId:"backlog",title:"Polish Goals page legend",priority:"low"},{id:"t5",columnId:"done",title:"Wire command palette at app level",priority:"urgent",branch:"feat/palette",due:"Yesterday",comments:7}];function v(n){return`${n.columnId}::${n.id}`}function Y(){const[n,a]=b.useState(L);return o.jsxs(x,{gap:4,children:[o.jsx(w,{title:"Tasks",description:"Drag cards across columns. Right-click for actions."}),o.jsx(E,{columns:f,onCardMove:(e,i,t)=>{a(s=>s.map(r=>v(r)===e?{...r,columnId:t}:r))},children:f.map(e=>{const i=n.filter(t=>t.columnId===e.id);return o.jsx(A,{column:{...e,count:i.length},children:i.map(t=>o.jsx(R,{card:t},v(t)))},e.id)})})]})}export{Y as TasksView};
@@ -1 +0,0 @@
1
- {"version":3,"file":"TasksView-Cba3GJ42.js","sources":["../../src/web/v8/ui/kanban/KanbanBoard.tsx","../../src/web/v8/views/Tasks/TasksView.tsx"],"sourcesContent":["import { useState, type ReactNode } from 'react';\nimport {\n DndContext,\n closestCorners,\n KeyboardSensor,\n PointerSensor,\n useSensor,\n useSensors,\n type DragEndEvent,\n} from '@dnd-kit/core';\nimport { sortableKeyboardCoordinates } from '@dnd-kit/sortable';\nimport { cx } from '../utils/cx.js';\n\n/**\n * KanbanBoard — horizontal-scrolling board hosting multiple columns.\n *\n * The board owns drag state. It receives:\n * - columns: definition + droppable ids\n * - renderColumn: function that takes column data + isOver flag + children\n * - onCardMove: invoked when a card moves between columns (or reorders within)\n *\n * For most cases, prefer using the higher-level `KanbanBoardSimple` wrapper\n * which handles the dnd-kit boilerplate for you.\n */\n\nexport interface KanbanBoardProps {\n columns: readonly { id: string }[];\n onCardMove?: (cardId: string, fromColumnId: string, toColumnId: string) => void;\n children: ReactNode;\n className?: string;\n}\n\nexport function KanbanBoard({ columns, onCardMove, children, className }: KanbanBoardProps) {\n const sensors = useSensors(\n useSensor(PointerSensor, { activationConstraint: { distance: 4 } }),\n useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }),\n );\n const [, setActiveId] = useState<string | null>(null);\n\n const handleDragEnd = (event: DragEndEvent) => {\n setActiveId(null);\n const { active, over } = event;\n if (over === null) return;\n const cardId = String(active.id);\n const targetId = String(over.id);\n // The \"over\" can be a column id (drop on empty) or another card id.\n const toColumn = columns.find((c) => c.id === targetId)?.id ?? cardId.split('::')[0];\n if (toColumn === undefined) return;\n const fromColumn = cardId.split('::')[0] ?? '';\n if (fromColumn !== toColumn && onCardMove !== undefined) {\n onCardMove(cardId, fromColumn, toColumn);\n }\n };\n\n return (\n <DndContext\n sensors={sensors}\n collisionDetection={closestCorners}\n onDragStart={(e) => setActiveId(String(e.active.id))}\n onDragEnd={handleDragEnd}\n >\n <div\n className={cx('v8-kanban-board', className)}\n style={{\n display: 'flex',\n gap: 'var(--space-3)',\n padding: 'var(--space-3)',\n overflowX: 'auto',\n overflowY: 'hidden',\n height: '100%',\n alignItems: 'stretch',\n }}\n role=\"region\"\n aria-label=\"Kanban board\"\n >\n {children}\n </div>\n </DndContext>\n );\n}","import { useState } from 'react';\nimport { Stack } from '../../ui/primitives/Stack.js';\nimport { ViewHeader } from '../../ui/data/ViewHeader.js';\nimport { KanbanBoard } from '../../ui/kanban/KanbanBoard.js';\nimport { KanbanColumn, type KanbanColumnData } from '../../ui/kanban/KanbanColumn.js';\nimport { KanbanCard, type KanbanCardData } from '../../ui/kanban/KanbanCard.js';\n\n/**\n * TasksView — the v8 Kanban centerpiece (PLAN.md \"Tasks page\").\n *\n * The card `id` encodes its column (`<columnId>::<cardId>`) so dnd-kit\n * can resolve drop targets. The visible mapping is held in local state.\n */\n\ninterface CardWithCol extends KanbanCardData {\n columnId: string;\n}\n\nconst COLUMNS: KanbanColumnData[] = [\n { id: 'backlog', title: 'Backlog', accentTone: 'neutral' },\n { id: 'todo', title: 'To do', accentTone: 'info' },\n { id: 'in-progress', title: 'In progress', accentTone: 'accent', wipLimit: 5 },\n { id: 'review', title: 'In review', accentTone: 'warning' },\n { id: 'done', title: 'Done', accentTone: 'success' },\n];\n\nconst INITIAL_CARDS: CardWithCol[] = [\n { id: 't1', columnId: 'in-progress', title: 'Wire TanStack Router in v8 App', priority: 'high', branch: 'feat/router', due: 'Today', comments: 3 },\n { id: 't2', columnId: 'todo', title: 'Add WebSocket layer for live activity', priority: 'medium', branch: 'feat/ws', due: 'Fri', comments: 1 },\n { id: 't3', columnId: 'review', title: 'Refactor ActivityFeed empty state', priority: 'low', branch: 'fix/activity', comments: 0 },\n { id: 't4', columnId: 'backlog', title: 'Polish Goals page legend', priority: 'low' },\n { id: 't5', columnId: 'done', title: 'Wire command palette at app level', priority: 'urgent', branch: 'feat/palette', due: 'Yesterday', comments: 7 },\n];\n\nfunction cardToId(c: CardWithCol): string {\n return `${c.columnId}::${c.id}`;\n}\n\nexport function TasksView(): JSX.Element {\n const [cards, setCards] = useState<CardWithCol[]>(INITIAL_CARDS);\n return (\n <Stack gap={4}>\n <ViewHeader\n title=\"Tasks\"\n description=\"Drag cards across columns. Right-click for actions.\"\n />\n <KanbanBoard\n columns={COLUMNS}\n onCardMove={(cardId, from, to) => {\n setCards((prev) =>\n prev.map((c) =>\n cardToId(c) === cardId ? { ...c, columnId: to } : c,\n ),\n );\n // The onCardMove callback fires only when the column actually\n // changed; we use this purely for the side effect of advancing\n // the visible mapping.\n void from;\n }}\n >\n {COLUMNS.map((col) => {\n const inColumn = cards.filter((c) => c.columnId === col.id);\n return (\n <KanbanColumn key={col.id} column={{ ...col, count: inColumn.length }}>\n {inColumn.map((card) => (\n <KanbanCard key={cardToId(card)} card={card} />\n ))}\n </KanbanColumn>\n );\n })}\n </KanbanBoard>\n </Stack>\n );\n}"],"names":["KanbanBoard","columns","onCardMove","children","className","sensors","useSensors","useSensor","PointerSensor","KeyboardSensor","sortableKeyboardCoordinates","setActiveId","useState","handleDragEnd","event","active","over","cardId","targetId","toColumn","_a","c","fromColumn","jsx","DndContext","closestCorners","e","cx","COLUMNS","INITIAL_CARDS","cardToId","TasksView","cards","setCards","jsxs","Stack","ViewHeader","from","to","prev","col","inColumn","KanbanColumn","card","KanbanCard"],"mappings":"qVAgCO,SAASA,EAAY,CAAE,QAAAC,EAAS,WAAAC,EAAY,SAAAC,EAAU,UAAAC,GAA+B,CAC1F,MAAMC,EAAUC,EACdC,EAAUC,EAAe,CAAE,qBAAsB,CAAE,SAAU,CAAA,EAAK,EAClED,EAAUE,EAAgB,CAAE,iBAAkBC,EAA6B,CAAA,EAEvE,EAAGC,CAAW,EAAIC,EAAAA,SAAwB,IAAI,EAE9CC,EAAiBC,GAAwB,OAC7CH,EAAY,IAAI,EAChB,KAAM,CAAE,OAAAI,EAAQ,KAAAC,CAAA,EAASF,EACzB,GAAIE,IAAS,KAAM,OACnB,MAAMC,EAAS,OAAOF,EAAO,EAAE,EACzBG,EAAW,OAAOF,EAAK,EAAE,EAEzBG,IAAWC,EAAAnB,EAAQ,KAAMoB,GAAMA,EAAE,KAAOH,CAAQ,IAArC,YAAAE,EAAwC,KAAMH,EAAO,MAAM,IAA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,MAAO,oCAAqC,SAAU,SAAU,OAAQ,eAAgB,IAAK,YAAa,SAAU,CAAA,CACpJ,EAEA,SAASC,EAAST,EAAwB,CACxC,MAAO,GAAGA,EAAE,QAAQ,KAAKA,EAAE,EAAE,EAC/B,CAEO,SAASU,GAAyB,CACvC,KAAM,CAACC,EAAOC,CAAQ,EAAIrB,EAAAA,SAAwBiB,CAAa,EAC/D,OACEK,EAAAA,KAACC,EAAA,CAAM,IAAK,EACV,SAAA,CAAAZ,EAAAA,IAACa,EAAA,CACC,MAAM,QACN,YAAY,qDAAA,CAAA,EAEdb,EAAAA,IAACvB,EAAA,CACC,QAAS4B,EACT,WAAY,CAACX,EAAQoB,EAAMC,IAAO,CAChCL,EAAUM,GACRA,EAAK,IAAKlB,GACRS,EAAST,CAAC,IAAMJ,EAAS,CAAE,GAAGI,EAAG,SAAUiB,GAAOjB,CAAA,CACpD,CAMJ,EAEC,SAAAO,EAAQ,IAAKY,GAAQ,CACpB,MAAMC,EAAWT,EAAM,OAAQX,GAAMA,EAAE,WAAamB,EAAI,EAAE,EAC1D,OACEjB,MAACmB,GAA0B,OAAQ,CAAE,GAAGF,EAAK,MAAOC,EAAS,MAAA,EAC1D,SAAAA,EAAS,IAAKE,GACbpB,EAAAA,IAACqB,EAAA,CAAgC,KAAAD,CAAA,EAAhBb,EAASa,CAAI,CAAe,CAC9C,GAHgBH,EAAI,EAIvB,CAEJ,CAAC,CAAA,CAAA,CACH,EACF,CAEJ"}
@@ -1,6 +0,0 @@
1
- import{a as c}from"./main-Cw6gybzS.js";/**
2
- * @license lucide-react v0.460.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const r=c("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{r as C};
@@ -1 +0,0 @@
1
- {"version":3,"file":"circle-check-DmYQ3vGp.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/circle-check.js"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst CircleCheck = createLucideIcon(\"CircleCheck\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"m9 12 2 2 4-4\", key: \"dzmm74\" }]\n]);\n\nexport { CircleCheck as default };\n//# sourceMappingURL=circle-check.js.map\n"],"names":["CircleCheck","createLucideIcon"],"mappings":"uCAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASK,MAACA,EAAcC,EAAiB,cAAe,CAClD,CAAC,SAAU,CAAE,GAAI,KAAM,GAAI,KAAM,EAAG,KAAM,IAAK,SAAU,EACzD,CAAC,OAAQ,CAAE,EAAG,gBAAiB,IAAK,QAAQ,CAAE,CAChD,CAAC","x_google_ignoreList":[0]}
@@ -1,5 +0,0 @@
1
- import{r as s,R as U,a as me}from"./cmdk-BwN8hcKQ.js";const Fe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ge(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function tt(e){return"nodeType"in e}function I(e){var t,n;return e?ge(e)?e:tt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function nt(e){const{Document:t}=I(e);return e instanceof t}function Ee(e){return ge(e)?!1:e instanceof I(e).HTMLElement}function Pt(e){return e instanceof I(e).SVGElement}function ve(e){return e?ge(e)?e.document:tt(e)?nt(e)?e:Ee(e)||Pt(e)?e.ownerDocument:document:document:document}const le=Fe?s.useLayoutEffect:s.useEffect;function rt(e){const t=s.useRef(e);return le(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function un(){const e=s.useRef(null),t=s.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=s.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ie(e,t){t===void 0&&(t=[e]);const n=s.useRef(e);return le(()=>{n.current!==e&&(n.current=e)},t),n}function Me(e,t){const n=s.useRef();return s.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Bt(e){const t=rt(e),n=s.useRef(null),r=s.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function Ge(e){const t=s.useRef();return s.useEffect(()=>{t.current=e},[e]),t.current}let He={};function ot(e,t){return s.useMemo(()=>{if(t)return t;const n=He[e]==null?0:He[e]+1;return He[e]=n,e+"-"+n},[e,t])}function Ft(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,a)=>{const l=Object.entries(a);for(const[c,d]of l){const f=i[c];f!=null&&(i[c]=f+e*d)}return i},{...t})}}const he=Ft(1),Se=Ft(-1);function dn(e){return"clientX"in e&&"clientY"in e}function $t(e){if(!e)return!1;const{KeyboardEvent:t}=I(e.target);return t&&e instanceof t}function fn(e){if(!e)return!1;const{TouchEvent:t}=I(e.target);return t&&e instanceof t}function _e(e){if(fn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return dn(e)?{x:e.clientX,y:e.clientY}:null}const Rt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function hn(e){return e.matches(Rt)?e:e.querySelector(Rt)}const gn={display:"none"};function vn(e){let{id:t,value:n}=e;return U.createElement("div",{id:t,style:gn},n)}function pn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return U.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function bn(){const[e,t]=s.useState("");return{announce:s.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Ut=s.createContext(null);function wn(e){const t=s.useContext(Ut);s.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function yn(){const[e]=s.useState(()=>new Set),t=s.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[s.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var l;return(l=a[o])==null?void 0:l.call(a,i)})},[e]),t]}const mn={draggable:`
2
- To pick up a draggable item, press the space bar.
3
- While dragging, use the arrow keys to move the item.
4
- Press space again to drop the item in its new position, or press escape to cancel.
5
- `},xn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Dn(e){let{announcements:t=xn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=mn}=e;const{announce:i,announcement:a}=bn(),l=ot("DndLiveRegion"),[c,d]=s.useState(!1);if(s.useEffect(()=>{d(!0)},[]),wn(s.useMemo(()=>({onDragStart(u){let{active:h}=u;i(t.onDragStart({active:h}))},onDragMove(u){let{active:h,over:g}=u;t.onDragMove&&i(t.onDragMove({active:h,over:g}))},onDragOver(u){let{active:h,over:g}=u;i(t.onDragOver({active:h,over:g}))},onDragEnd(u){let{active:h,over:g}=u;i(t.onDragEnd({active:h,over:g}))},onDragCancel(u){let{active:h,over:g}=u;i(t.onDragCancel({active:h,over:g}))}}),[i,t])),!c)return null;const f=U.createElement(U.Fragment,null,U.createElement(vn,{id:r,value:o.draggable}),U.createElement(pn,{id:l,announcement:a}));return n?me.createPortal(f,n):f}var E;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(E||(E={}));function ze(){}function Nr(e,t){return s.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const X=Object.freeze({x:0,y:0});function Cn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Sn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Rn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Et(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Wt(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const En=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Et(t),i=[];for(const a of r){const{id:l}=a,c=n.get(l);if(c){const d=Et(c),f=o.reduce((h,g,C)=>h+Cn(d[C],g),0),u=Number((f/4).toFixed(4));i.push({id:l,data:{droppableContainer:a,value:u}})}}return i.sort(Sn)};function Mn(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const c=t.width*t.height,d=e.width*e.height,f=a*l,u=f/(c+d-f);return Number(u.toFixed(4))}return 0}const An=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,l=n.get(a);if(l){const c=Mn(l,t);c>0&&o.push({id:a,data:{droppableContainer:i,value:c}})}}return o.sort(Rn)};function On(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function jt(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:X}function Tn(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,l)=>({...a,top:a.top+e*l.y,bottom:a.bottom+e*l.y,left:a.left+e*l.x,right:a.right+e*l.x}),{...n})}}const Nn=Tn(1);function Ln(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function kn(e,t,n){const r=Ln(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),d=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,u=i?e.height/i:e.height;return{width:f,height:u,top:d,right:c+f,bottom:d+u,left:c}}const In={ignoreTransform:!1};function Ae(e,t){t===void 0&&(t=In);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:f}=I(e).getComputedStyle(e);d&&(n=kn(n,d,f))}const{top:r,left:o,width:i,height:a,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:c}}function Mt(e){return Ae(e,{ignoreTransform:!0})}function zn(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Pn(e,t){return t===void 0&&(t=I(e).getComputedStyle(e)),t.position==="fixed"}function Bn(e,t){t===void 0&&(t=I(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function $e(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(nt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Ee(o)||Pt(o)||n.includes(o))return n;const i=I(e).getComputedStyle(o);return o!==e&&Bn(o,i)&&n.push(o),Pn(o,i)?n:r(o.parentNode)}return e?r(e):n}function Xt(e){const[t]=$e(e,1);return t??null}function Ve(e){return!Fe||!e?null:ge(e)?e:tt(e)?nt(e)||e===ve(e).scrollingElement?window:Ee(e)?e:null:null}function Yt(e){return ge(e)?e.scrollX:e.scrollLeft}function Kt(e){return ge(e)?e.scrollY:e.scrollTop}function Qe(e){return{x:Yt(e),y:Kt(e)}}var A;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(A||(A={}));function Ht(e){return!Fe||!e?!1:e===document.scrollingElement}function Vt(e){const t={x:0,y:0},n=Ht(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:l,maxScroll:r,minScroll:t}}const Fn={x:.2,y:.2};function $n(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=Fn);const{isTop:d,isBottom:f,isLeft:u,isRight:h}=Vt(e),g={x:0,y:0},C={x:0,y:0},v={height:t.height*o.y,width:t.width*o.x};return!d&&i<=t.top+v.height?(g.y=A.Backward,C.y=r*Math.abs((t.top+v.height-i)/v.height)):!f&&c>=t.bottom-v.height&&(g.y=A.Forward,C.y=r*Math.abs((t.bottom-v.height-c)/v.height)),!h&&l>=t.right-v.width?(g.x=A.Forward,C.x=r*Math.abs((t.right-v.width-l)/v.width)):!u&&a<=t.left+v.width&&(g.x=A.Backward,C.x=r*Math.abs((t.left+v.width-a)/v.width)),{direction:g,speed:C}}function Un(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function qt(e){return e.reduce((t,n)=>he(t,Qe(n)),X)}function Wn(e){return e.reduce((t,n)=>t+Yt(n),0)}function jn(e){return e.reduce((t,n)=>t+Kt(n),0)}function Xn(e,t){if(t===void 0&&(t=Ae),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);Xt(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Yn=[["x",["left","right"],Wn],["y",["top","bottom"],jn]];class it{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=$e(n),o=qt(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of Yn)for(const c of a)Object.defineProperty(this,c,{get:()=>{const d=l(r),f=o[i]-d;return this.rect[c]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xe{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Kn(e){const{EventTarget:t}=I(e);return e instanceof t?e:ve(e)}function qe(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var $;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})($||($={}));function At(e){e.preventDefault()}function Hn(e){e.stopPropagation()}var p;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(p||(p={}));const Jt={start:[p.Space,p.Enter],cancel:[p.Esc],end:[p.Space,p.Enter,p.Tab]},Vn=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case p.Right:return{...n,x:n.x+25};case p.Left:return{...n,x:n.x-25};case p.Down:return{...n,y:n.y+25};case p.Up:return{...n,y:n.y-25}}};class Gt{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new xe(ve(n)),this.windowListeners=new xe(I(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add($.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Xn(r),n(X)}handleKeyDown(t){if($t(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Jt,coordinateGetter:a=Vn,scrollBehavior:l="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:d}=r.current,f=d?{x:d.left,y:d.top}:X;this.referenceCoordinates||(this.referenceCoordinates=f);const u=a(t,{active:n,context:r.current,currentCoordinates:f});if(u){const h=Se(u,f),g={x:0,y:0},{scrollableAncestors:C}=r.current;for(const v of C){const y=t.code,{isTop:x,isRight:D,isLeft:b,isBottom:O,maxScroll:S,minScroll:R}=Vt(v),w=Un(v),m={x:Math.min(y===p.Right?w.right-w.width/2:w.right,Math.max(y===p.Right?w.left:w.left+w.width/2,u.x)),y:Math.min(y===p.Down?w.bottom-w.height/2:w.bottom,Math.max(y===p.Down?w.top:w.top+w.height/2,u.y))},L=y===p.Right&&!D||y===p.Left&&!b,k=y===p.Down&&!O||y===p.Up&&!x;if(L&&m.x!==u.x){const M=v.scrollLeft+h.x,H=y===p.Right&&M<=S.x||y===p.Left&&M>=R.x;if(H&&!h.y){v.scrollTo({left:M,behavior:l});return}H?g.x=v.scrollLeft-M:g.x=y===p.Right?v.scrollLeft-S.x:v.scrollLeft-R.x,g.x&&v.scrollBy({left:-g.x,behavior:l});break}else if(k&&m.y!==u.y){const M=v.scrollTop+h.y,H=y===p.Down&&M<=S.y||y===p.Up&&M>=R.y;if(H&&!h.x){v.scrollTo({top:M,behavior:l});return}H?g.y=v.scrollTop-M:g.y=y===p.Down?v.scrollTop-S.y:v.scrollTop-R.y,g.y&&v.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,he(Se(u,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Gt.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Jt,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const l=i.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function Ot(e){return!!(e&&"distance"in e)}function Tt(e){return!!(e&&"delay"in e)}class st{constructor(t,n,r){var o;r===void 0&&(r=Kn(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=ve(a),this.documentListeners=new xe(this.document),this.listeners=new xe(r),this.windowListeners=new xe(I(a)),this.initialCoordinates=(o=_e(i))!=null?o:X,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.DragStart,At),this.windowListeners.add($.VisibilityChange,this.handleCancel),this.windowListeners.add($.ContextMenu,At),this.documentListeners.add($.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Tt(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ot(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add($.Click,Hn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!o)return;const c=(n=_e(t))!=null?n:X,d=Se(o,c);if(!r&&l){if(Ot(l)){if(l.tolerance!=null&&qe(d,l.tolerance))return this.handleCancel();if(qe(d,l.distance))return this.handleStart()}if(Tt(l)&&qe(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===p.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const qn={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class _t extends st{constructor(t){const{event:n}=t,r=ve(n.target);super(t,qn,r)}}_t.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Jn={move:{name:"mousemove"},end:{name:"mouseup"}};var Ze;(function(e){e[e.RightClick=2]="RightClick"})(Ze||(Ze={}));class Gn extends st{constructor(t){super(t,Jn,ve(t.event.target))}}Gn.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Ze.RightClick?!1:(r==null||r({event:n}),!0)}}];const Je={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class _n extends st{constructor(t){super(t,Je)}static setup(){return window.addEventListener(Je.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Je.move.name,t)};function t(){}}}_n.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var De;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(De||(De={}));var Pe;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Pe||(Pe={}));function Qn(e){let{acceleration:t,activator:n=De.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:l=Pe.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:u,threshold:h}=e;const g=er({delta:u,disabled:!i}),[C,v]=un(),y=s.useRef({x:0,y:0}),x=s.useRef({x:0,y:0}),D=s.useMemo(()=>{switch(n){case De.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case De.DraggableRect:return o}},[n,o,c]),b=s.useRef(null),O=s.useCallback(()=>{const R=b.current;if(!R)return;const w=y.current.x*x.current.x,m=y.current.y*x.current.y;R.scrollBy(w,m)},[]),S=s.useMemo(()=>l===Pe.TreeOrder?[...d].reverse():d,[l,d]);s.useEffect(()=>{if(!i||!d.length||!D){v();return}for(const R of S){if((r==null?void 0:r(R))===!1)continue;const w=d.indexOf(R),m=f[w];if(!m)continue;const{direction:L,speed:k}=$n(R,m,D,t,h);for(const M of["x","y"])g[M][L[M]]||(k[M]=0,L[M]=0);if(k.x>0||k.y>0){v(),b.current=R,C(O,a),y.current=k,x.current=L;return}}y.current={x:0,y:0},x.current={x:0,y:0},v()},[t,O,r,v,i,a,JSON.stringify(D),JSON.stringify(g),C,d,S,f,JSON.stringify(h)])}const Zn={x:{[A.Backward]:!1,[A.Forward]:!1},y:{[A.Backward]:!1,[A.Forward]:!1}};function er(e){let{delta:t,disabled:n}=e;const r=Ge(t);return Me(o=>{if(n||!r||!o)return Zn;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[A.Backward]:o.x[A.Backward]||i.x===-1,[A.Forward]:o.x[A.Forward]||i.x===1},y:{[A.Backward]:o.y[A.Backward]||i.y===-1,[A.Forward]:o.y[A.Forward]||i.y===1}}},[n,t,r])}function tr(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Me(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function nr(e,t){return s.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var Re;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Re||(Re={}));var et;(function(e){e.Optimized="optimized"})(et||(et={}));const Nt=new Map;function rr(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=s.useState(null),{frequency:l,measure:c,strategy:d}=o,f=s.useRef(e),u=y(),h=Ie(u),g=s.useCallback(function(x){x===void 0&&(x=[]),!h.current&&a(D=>D===null?x:D.concat(x.filter(b=>!D.includes(b))))},[h]),C=s.useRef(null),v=Me(x=>{if(u&&!n)return Nt;if(!x||x===Nt||f.current!==e||i!=null){const D=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){D.set(b.id,b.rect.current);continue}const O=b.node.current,S=O?new it(c(O),O):null;b.rect.current=S,S&&D.set(b.id,S)}return D}return x},[e,i,n,u,c]);return s.useEffect(()=>{f.current=e},[e]),s.useEffect(()=>{u||g()},[n,u]),s.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),s.useEffect(()=>{u||typeof l!="number"||C.current!==null||(C.current=setTimeout(()=>{g(),C.current=null},l))},[l,u,g,...r]),{droppableRects:v,measureDroppableContainers:g,measuringScheduled:i!=null};function y(){switch(d){case Re.Always:return!1;case Re.BeforeDragging:return n;default:return!n}}}function Qt(e,t){return Me(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function or(e,t){return Qt(e,t)}function ir(e){let{callback:t,disabled:n}=e;const r=rt(t),o=s.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return s.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Ue(e){let{callback:t,disabled:n}=e;const r=rt(t),o=s.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return s.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function sr(e){return new it(Ae(e),e)}function Lt(e,t,n){t===void 0&&(t=sr);const[r,o]=s.useState(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=c??n)!=null?d:null}const f=t(e);return JSON.stringify(c)===JSON.stringify(f)?c:f})}const a=ir({callback(c){if(e)for(const d of c){const{type:f,target:u}=d;if(f==="childList"&&u instanceof HTMLElement&&u.contains(e)){i();break}}}}),l=Ue({callback:i});return le(()=>{i(),e?(l==null||l.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),a==null||a.disconnect())},[e]),r}function lr(e){const t=Qt(e);return jt(e,t)}const kt=[];function ar(e){const t=s.useRef(e),n=Me(r=>e?r&&r!==kt&&e&&t.current&&e.parentNode===t.current.parentNode?r:$e(e):kt,[e]);return s.useEffect(()=>{t.current=e},[e]),n}function cr(e){const[t,n]=s.useState(null),r=s.useRef(e),o=s.useCallback(i=>{const a=Ve(i.target);a&&n(l=>l?(l.set(a,Qe(a)),new Map(l)):null)},[]);return s.useEffect(()=>{const i=r.current;if(e!==i){a(i);const l=e.map(c=>{const d=Ve(c);return d?(d.addEventListener("scroll",o,{passive:!0}),[d,Qe(d)]):null}).filter(c=>c!=null);n(l.length?new Map(l):null),r.current=e}return()=>{a(e),a(i)};function a(l){l.forEach(c=>{const d=Ve(c);d==null||d.removeEventListener("scroll",o)})}},[o,e]),s.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>he(i,a),X):qt(e):X,[e,t])}function It(e,t){t===void 0&&(t=[]);const n=s.useRef(null);return s.useEffect(()=>{n.current=null},t),s.useEffect(()=>{const r=e!==X;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Se(e,n.current):X}function ur(e){s.useEffect(()=>{if(!Fe)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Zt(e){return s.useMemo(()=>e?zn(e):null,[e])}const zt=[];function dr(e,t){t===void 0&&(t=Ae);const[n]=e,r=Zt(n?I(n):null),[o,i]=s.useState(zt);function a(){i(()=>e.length?e.map(c=>Ht(c)?r:new it(t(c),c)):zt)}const l=Ue({callback:a});return le(()=>{l==null||l.disconnect(),a(),e.forEach(c=>l==null?void 0:l.observe(c))},[e]),o}function fr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ee(t)?t:e}function hr(e){let{measure:t}=e;const[n,r]=s.useState(null),o=s.useCallback(d=>{for(const{target:f}of d)if(Ee(f)){r(u=>{const h=t(f);return u?{...u,width:h.width,height:h.height}:h});break}},[t]),i=Ue({callback:o}),a=s.useCallback(d=>{const f=fr(d);i==null||i.disconnect(),f&&(i==null||i.observe(f)),r(f?t(f):null)},[t,i]),[l,c]=Bt(a);return s.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const gr=[{sensor:_t,options:{}},{sensor:Gt,options:{}}],vr={current:{}},ke={draggable:{measure:Mt},droppable:{measure:Mt,strategy:Re.WhileDragging,frequency:et.Optimized},dragOverlay:{measure:Ae}};class Ce extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const pr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ce,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ze},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ke,measureDroppableContainers:ze,windowRect:null,measuringScheduled:!1},br={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ze,draggableNodes:new Map,over:null,measureDroppableContainers:ze},lt=s.createContext(br),wr=s.createContext(pr);function yr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ce}}}function mr(e,t){switch(t.type){case E.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case E.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case E.DragEnd:case E.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case E.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ce(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case E.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Ce(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case E.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ce(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function xr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=s.useContext(lt),i=Ge(r),a=Ge(n==null?void 0:n.id);return s.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!$t(i)||document.activeElement===i.target)return;const l=o.get(a);if(!l)return;const{activatorNode:c,node:d}=l;if(!c.current&&!d.current)return;requestAnimationFrame(()=>{for(const f of[c.current,d.current]){if(!f)continue;const u=hn(f);if(u){u.focus();break}}})}},[r,t,o,a,i]),null}function Dr(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Cr(e){return s.useMemo(()=>({draggable:{...ke.draggable,...e==null?void 0:e.draggable},droppable:{...ke.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ke.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Sr(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=s.useRef(!1),{x:a,y:l}=typeof o=="boolean"?{x:o,y:o}:o;le(()=>{if(!a&&!l||!t){i.current=!1;return}if(i.current||!r)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const f=n(d),u=jt(f,r);if(a||(u.x=0),l||(u.y=0),i.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const h=Xt(d);h&&h.scrollBy({top:u.y,left:u.x})}},[t,a,l,r,n])}const Rr=s.createContext({...X,scaleX:1,scaleY:1});var ne;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ne||(ne={}));const kr=s.memo(function(t){var n,r,o,i;let{id:a,accessibility:l,autoScroll:c=!0,children:d,sensors:f=gr,collisionDetection:u=An,measuring:h,modifiers:g,...C}=t;const v=s.useReducer(mr,void 0,yr),[y,x]=v,[D,b]=yn(),[O,S]=s.useState(ne.Uninitialized),R=O===ne.Initialized,{draggable:{active:w,nodes:m,translate:L},droppable:{containers:k}}=y,M=w!=null?m.get(w):null,H=s.useRef({initial:null,translated:null}),V=s.useMemo(()=>{var N;return w!=null?{id:w,data:(N=M==null?void 0:M.data)!=null?N:vr,rect:H}:null},[w,M]),G=s.useRef(null),[at,ct]=s.useState(null),[q,ut]=s.useState(null),re=Ie(C,Object.values(C)),We=ot("DndDescribedBy",a),dt=s.useMemo(()=>k.getEnabled(),[k]),oe=Cr(h),{droppableRects:ae,measureDroppableContainers:Oe,measuringScheduled:ft}=rr(dt,{dragging:R,dependencies:[L.x,L.y],config:oe.droppable}),W=tr(m,w),ht=s.useMemo(()=>q?_e(q):null,[q]),gt=cn(),vt=or(W,oe.draggable.measure);Sr({activeNode:w!=null?m.get(w):null,config:gt.layoutShiftCompensation,initialRect:vt,measure:oe.draggable.measure});const j=Lt(W,oe.draggable.measure,vt),je=Lt(W?W.parentElement:null),ie=s.useRef({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:m,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),pt=k.getNodeFor((n=ie.current.over)==null?void 0:n.id),se=hr({measure:oe.dragOverlay.measure}),Te=(r=se.nodeRef.current)!=null?r:W,ce=R?(o=se.rect)!=null?o:j:null,bt=!!(se.nodeRef.current&&se.rect),wt=lr(bt?null:j),Xe=Zt(Te?I(Te):null),_=ar(R?pt??W:null),Ne=dr(_),Le=Dr(g,{transform:{x:L.x-wt.x,y:L.y-wt.y,scaleX:1,scaleY:1},activatorEvent:q,active:V,activeNodeRect:j,containerNodeRect:je,draggingNodeRect:ce,over:ie.current.over,overlayNodeRect:se.rect,scrollableAncestors:_,scrollableAncestorRects:Ne,windowRect:Xe}),yt=ht?he(ht,L):null,mt=cr(_),tn=It(mt),nn=It(mt,[j]),ue=he(Le,tn),de=ce?Nn(ce,Le):null,pe=V&&de?u({active:V,collisionRect:de,droppableRects:ae,droppableContainers:dt,pointerCoordinates:yt}):null,xt=Wt(pe,"id"),[Q,Dt]=s.useState(null),rn=bt?Le:he(Le,nn),on=On(rn,(i=Q==null?void 0:Q.rect)!=null?i:null,j),Ye=s.useRef(null),Ct=s.useCallback((N,z)=>{let{sensor:P,options:Z}=z;if(G.current==null)return;const F=m.get(G.current);if(!F)return;const B=N.nativeEvent,Y=new P({active:G.current,activeNode:F,event:B,options:Z,context:ie,onAbort(T){if(!m.get(T))return;const{onDragAbort:K}=re.current,J={id:T};K==null||K(J),D({type:"onDragAbort",event:J})},onPending(T,ee,K,J){if(!m.get(T))return;const{onDragPending:we}=re.current,te={id:T,constraint:ee,initialCoordinates:K,offset:J};we==null||we(te),D({type:"onDragPending",event:te})},onStart(T){const ee=G.current;if(ee==null)return;const K=m.get(ee);if(!K)return;const{onDragStart:J}=re.current,be={activatorEvent:B,active:{id:ee,data:K.data,rect:H}};me.unstable_batchedUpdates(()=>{J==null||J(be),S(ne.Initializing),x({type:E.DragStart,initialCoordinates:T,active:ee}),D({type:"onDragStart",event:be}),ct(Ye.current),ut(B)})},onMove(T){x({type:E.DragMove,coordinates:T})},onEnd:fe(E.DragEnd),onCancel:fe(E.DragCancel)});Ye.current=Y;function fe(T){return async function(){const{active:K,collisions:J,over:be,scrollAdjustedTranslate:we}=ie.current;let te=null;if(K&&we){const{cancelDrop:ye}=re.current;te={activatorEvent:B,active:K,collisions:J,delta:we,over:be},T===E.DragEnd&&typeof ye=="function"&&await Promise.resolve(ye(te))&&(T=E.DragCancel)}G.current=null,me.unstable_batchedUpdates(()=>{x({type:T}),S(ne.Uninitialized),Dt(null),ct(null),ut(null),Ye.current=null;const ye=T===E.DragEnd?"onDragEnd":"onDragCancel";if(te){const Ke=re.current[ye];Ke==null||Ke(te),D({type:ye,event:te})}})}}},[m]),sn=s.useCallback((N,z)=>(P,Z)=>{const F=P.nativeEvent,B=m.get(Z);if(G.current!==null||!B||F.dndKit||F.defaultPrevented)return;const Y={active:B};N(P,z.options,Y)===!0&&(F.dndKit={capturedBy:z.sensor},G.current=Z,Ct(P,z))},[m,Ct]),St=nr(f,sn);ur(f),le(()=>{j&&O===ne.Initializing&&S(ne.Initialized)},[j,O]),s.useEffect(()=>{const{onDragMove:N}=re.current,{active:z,activatorEvent:P,collisions:Z,over:F}=ie.current;if(!z||!P)return;const B={active:z,activatorEvent:P,collisions:Z,delta:{x:ue.x,y:ue.y},over:F};me.unstable_batchedUpdates(()=>{N==null||N(B),D({type:"onDragMove",event:B})})},[ue.x,ue.y]),s.useEffect(()=>{const{active:N,activatorEvent:z,collisions:P,droppableContainers:Z,scrollAdjustedTranslate:F}=ie.current;if(!N||G.current==null||!z||!F)return;const{onDragOver:B}=re.current,Y=Z.get(xt),fe=Y&&Y.rect.current?{id:Y.id,rect:Y.rect.current,data:Y.data,disabled:Y.disabled}:null,T={active:N,activatorEvent:z,collisions:P,delta:{x:F.x,y:F.y},over:fe};me.unstable_batchedUpdates(()=>{Dt(fe),B==null||B(T),D({type:"onDragOver",event:T})})},[xt]),le(()=>{ie.current={activatorEvent:q,active:V,activeNode:W,collisionRect:de,collisions:pe,droppableRects:ae,draggableNodes:m,draggingNode:Te,draggingNodeRect:ce,droppableContainers:k,over:Q,scrollableAncestors:_,scrollAdjustedTranslate:ue},H.current={initial:ce,translated:de}},[V,W,pe,de,m,Te,ce,ae,k,Q,_,ue]),Qn({...gt,delta:L,draggingRect:de,pointerCoordinates:yt,scrollableAncestors:_,scrollableAncestorRects:Ne});const ln=s.useMemo(()=>({active:V,activeNode:W,activeNodeRect:j,activatorEvent:q,collisions:pe,containerNodeRect:je,dragOverlay:se,draggableNodes:m,droppableContainers:k,droppableRects:ae,over:Q,measureDroppableContainers:Oe,scrollableAncestors:_,scrollableAncestorRects:Ne,measuringConfiguration:oe,measuringScheduled:ft,windowRect:Xe}),[V,W,j,q,pe,je,se,m,k,ae,Q,Oe,_,Ne,oe,ft,Xe]),an=s.useMemo(()=>({activatorEvent:q,activators:St,active:V,activeNodeRect:j,ariaDescribedById:{draggable:We},dispatch:x,draggableNodes:m,over:Q,measureDroppableContainers:Oe}),[q,St,V,j,x,We,m,Q,Oe]);return U.createElement(Ut.Provider,{value:b},U.createElement(lt.Provider,{value:an},U.createElement(wr.Provider,{value:ln},U.createElement(Rr.Provider,{value:on},d)),U.createElement(xr,{disabled:(l==null?void 0:l.restoreFocus)===!1})),U.createElement(Dn,{...l,hiddenTextDescribedById:We}));function cn(){const N=(at==null?void 0:at.autoScrollEnabled)===!1,z=typeof c=="object"?c.enabled===!1:c===!1,P=R&&!N&&!z;return typeof c=="object"?{...c,enabled:P}:{enabled:P}}}),Er="Droppable",Mr={timeout:25};function Ir(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=ot(Er),{active:a,dispatch:l,over:c,measureDroppableContainers:d}=s.useContext(lt),f=s.useRef({disabled:n}),u=s.useRef(!1),h=s.useRef(null),g=s.useRef(null),{disabled:C,updateMeasurementsFor:v,timeout:y}={...Mr,...o},x=Ie(v??r),D=s.useCallback(()=>{if(!u.current){u.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{d(Array.isArray(x.current)?x.current:[x.current]),g.current=null},y)},[y]),b=Ue({callback:D,disabled:C||!a}),O=s.useCallback((m,L)=>{b&&(L&&(b.unobserve(L),u.current=!1),m&&b.observe(m))},[b]),[S,R]=Bt(O),w=Ie(t);return s.useEffect(()=>{!b||!S.current||(b.disconnect(),u.current=!1,b.observe(S.current))},[S,b]),s.useEffect(()=>(l({type:E.RegisterDroppable,element:{id:r,key:i,disabled:n,node:S,rect:h,data:w}}),()=>l({type:E.UnregisterDroppable,key:i,id:r})),[r]),s.useEffect(()=>{n!==f.current.disabled&&(l({type:E.SetDroppableDisabled,id:r,key:i,disabled:n}),f.current.disabled=n)},[r,i,n,l]),{active:a,rect:h,isOver:(c==null?void 0:c.id)===r,node:S,over:c,setNodeRef:R}}function Be(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Ar=[p.Down,p.Right,p.Up,p.Left],zr=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(Ar.includes(e.code)){if(e.preventDefault(),!n||!r)return;const c=[];i.getEnabled().forEach(u=>{if(!u||u!=null&&u.disabled)return;const h=o.get(u.id);if(h)switch(e.code){case p.Down:r.top<h.top&&c.push(u);break;case p.Up:r.top>h.top&&c.push(u);break;case p.Left:r.left>h.left&&c.push(u);break;case p.Right:r.left<h.left&&c.push(u);break}});const d=En({collisionRect:r,droppableRects:o,droppableContainers:c});let f=Wt(d,"id");if(f===(a==null?void 0:a.id)&&d.length>1&&(f=d[1].id),f!=null){const u=i.get(n.id),h=i.get(f),g=h?o.get(h.id):null,C=h==null?void 0:h.node.current;if(C&&g&&u&&h){const y=$e(C).some((R,w)=>l[w]!==R),x=en(u,h),D=Or(u,h),b=y||!x?{x:0,y:0}:{x:D?r.width-g.width:0,y:D?r.height-g.height:0},O={x:g.left,y:g.top};return b.x&&b.y?O:Se(O,b)}}}};function en(e,t){return!Be(e)||!Be(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Or(e,t){return!Be(e)||!Be(t)||!en(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}export{kr as D,Gt as K,_t as P,Nr as a,Ir as b,En as c,zr as s,Lr as u};
@@ -1,6 +0,0 @@
1
- import{a as c}from"./main-Cw6gybzS.js";/**
2
- * @license lucide-react v0.460.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const r=c("GitMerge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);export{r as G};
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-merge-OoqBKQer.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/git-merge.js"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst GitMerge = createLucideIcon(\"GitMerge\", [\n [\"circle\", { cx: \"18\", cy: \"18\", r: \"3\", key: \"1xkwt0\" }],\n [\"circle\", { cx: \"6\", cy: \"6\", r: \"3\", key: \"1lh9wr\" }],\n [\"path\", { d: \"M6 21V9a9 9 0 0 0 9 9\", key: \"7kw0sc\" }]\n]);\n\nexport { GitMerge as default };\n//# sourceMappingURL=git-merge.js.map\n"],"names":["GitMerge","createLucideIcon"],"mappings":"uCAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASK,MAACA,EAAWC,EAAiB,WAAY,CAC5C,CAAC,SAAU,CAAE,GAAI,KAAM,GAAI,KAAM,EAAG,IAAK,IAAK,SAAU,EACxD,CAAC,SAAU,CAAE,GAAI,IAAK,GAAI,IAAK,EAAG,IAAK,IAAK,SAAU,EACtD,CAAC,OAAQ,CAAE,EAAG,wBAAyB,IAAK,QAAQ,CAAE,CACxD,CAAC","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- import{a as e}from"./main-Cw6gybzS.js";/**
2
- * @license lucide-react v0.460.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const r=e("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);export{r as G};
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-pull-request-CXBQTR2f.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/git-pull-request.js"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst GitPullRequest = createLucideIcon(\"GitPullRequest\", [\n [\"circle\", { cx: \"18\", cy: \"18\", r: \"3\", key: \"1xkwt0\" }],\n [\"circle\", { cx: \"6\", cy: \"6\", r: \"3\", key: \"1lh9wr\" }],\n [\"path\", { d: \"M13 6h3a2 2 0 0 1 2 2v7\", key: \"1yeb86\" }],\n [\"line\", { x1: \"6\", x2: \"6\", y1: \"9\", y2: \"21\", key: \"rroup\" }]\n]);\n\nexport { GitPullRequest as default };\n//# sourceMappingURL=git-pull-request.js.map\n"],"names":["GitPullRequest","createLucideIcon"],"mappings":"uCAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASK,MAACA,EAAiBC,EAAiB,iBAAkB,CACxD,CAAC,SAAU,CAAE,GAAI,KAAM,GAAI,KAAM,EAAG,IAAK,IAAK,SAAU,EACxD,CAAC,SAAU,CAAE,GAAI,IAAK,GAAI,IAAK,EAAG,IAAK,IAAK,SAAU,EACtD,CAAC,OAAQ,CAAE,EAAG,0BAA2B,IAAK,QAAQ,CAAE,EACxD,CAAC,OAAQ,CAAE,GAAI,IAAK,GAAI,IAAK,GAAI,IAAK,GAAI,KAAM,IAAK,OAAO,CAAE,CAChE,CAAC","x_google_ignoreList":[0]}