@nqlib/nqui 0.3.3 → 0.4.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 (417) hide show
  1. package/README.md +20 -2
  2. package/dist/button-CYFTFDKe.cjs +1 -0
  3. package/dist/button-nJvDl3w8.js +44 -0
  4. package/dist/calendar.cjs.js +1 -0
  5. package/dist/calendar.es.js +6 -0
  6. package/dist/carousel-DEyyJi49.js +179 -0
  7. package/dist/carousel-Dhhz8m5V.cjs +1 -0
  8. package/dist/carousel.cjs.js +1 -0
  9. package/dist/carousel.es.js +8 -0
  10. package/dist/command-palette-UHk8zZOg.cjs +45 -0
  11. package/dist/command-palette-d-TrdBsM.js +1778 -0
  12. package/dist/command.cjs.js +1 -0
  13. package/dist/command.es.js +13 -0
  14. package/dist/components/custom/color-picker.d.ts.map +1 -1
  15. package/dist/components/custom/command-palette.d.ts.map +1 -1
  16. package/dist/components/custom/enhanced-checkbox.d.ts +1 -1
  17. package/dist/components/custom/enhanced-checkbox.d.ts.map +1 -1
  18. package/dist/components/custom/enhanced-combobox.d.ts +1 -1
  19. package/dist/components/custom/enhanced-combobox.d.ts.map +1 -1
  20. package/dist/components/custom/enhanced-radio-group.d.ts.map +1 -1
  21. package/dist/components/custom/enhanced-scroll-area.d.ts +12 -0
  22. package/dist/components/custom/enhanced-scroll-area.d.ts.map +1 -1
  23. package/dist/components/custom/enhanced-tabs.d.ts.map +1 -1
  24. package/dist/components/debug/debug-panel.d.ts.map +1 -1
  25. package/dist/components/debug/magnifier.d.ts.map +1 -1
  26. package/dist/components/debug/ui-tester.d.ts.map +1 -1
  27. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  28. package/dist/components/ui/button-group.d.ts.map +1 -1
  29. package/dist/components/ui/checkbox.d.ts.map +1 -1
  30. package/dist/components/ui/combobox.d.ts +1 -1
  31. package/dist/components/ui/combobox.d.ts.map +1 -1
  32. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  33. package/dist/components/ui/item.d.ts +1 -1
  34. package/dist/components/ui/separator.d.ts +34 -1
  35. package/dist/components/ui/separator.d.ts.map +1 -1
  36. package/dist/components/ui/sheet.d.ts.map +1 -1
  37. package/dist/components/ui/sidebar.d.ts +1 -1
  38. package/dist/components/ui/sidebar.d.ts.map +1 -1
  39. package/dist/components/ui/toggle-group.d.ts +8 -2
  40. package/dist/components/ui/toggle-group.d.ts.map +1 -1
  41. package/dist/components/ui/toggle.d.ts +1 -1
  42. package/dist/components/ui/toggle.d.ts.map +1 -1
  43. package/dist/components/ui/tooltip.d.ts.map +1 -1
  44. package/dist/drawer-BcIxWRN8.cjs +1 -0
  45. package/dist/drawer-CU4lkcz7.js +119 -0
  46. package/dist/drawer.cjs.js +1 -0
  47. package/dist/drawer.es.js +13 -0
  48. package/dist/enhanced-calendar-5PA8CeF7.cjs +61 -0
  49. package/dist/enhanced-calendar-BENbxw7_.js +375 -0
  50. package/dist/entries/calendar.d.ts +9 -0
  51. package/dist/entries/calendar.d.ts.map +1 -0
  52. package/dist/entries/carousel.d.ts +7 -0
  53. package/dist/entries/carousel.d.ts.map +1 -0
  54. package/dist/entries/command.d.ts +9 -0
  55. package/dist/entries/command.d.ts.map +1 -0
  56. package/dist/entries/drawer.d.ts +7 -0
  57. package/dist/entries/drawer.d.ts.map +1 -0
  58. package/dist/entries/sonner.d.ts +8 -0
  59. package/dist/entries/sonner.d.ts.map +1 -0
  60. package/dist/entries/sortable.d.ts +7 -0
  61. package/dist/entries/sortable.d.ts.map +1 -0
  62. package/dist/hooks/index.d.ts +2 -3
  63. package/dist/hooks/index.d.ts.map +1 -1
  64. package/dist/hooks/use-as-ref.d.ts +1 -1
  65. package/dist/hooks/use-as-ref.d.ts.map +1 -1
  66. package/dist/hooks/use-intersection-observer.d.ts +13 -0
  67. package/dist/hooks/use-intersection-observer.d.ts.map +1 -0
  68. package/dist/index.d.ts +13 -37
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/keyboard-BapbM2wb.cjs +1 -0
  71. package/dist/keyboard-pkY42Y3a.js +39 -0
  72. package/dist/nqui.cjs.js +171 -802
  73. package/dist/nqui.es.js +15298 -72451
  74. package/dist/sonner-Co6YpYVs.js +546 -0
  75. package/dist/sonner-DbQhVp8m.cjs +330 -0
  76. package/dist/sonner.cjs.js +1 -0
  77. package/dist/sonner.es.js +6 -0
  78. package/dist/sortable-Cj3cdxGc.cjs +5 -0
  79. package/dist/sortable-wG_cXiUk.js +366 -0
  80. package/dist/sortable.cjs.js +1 -0
  81. package/dist/sortable.es.js +8 -0
  82. package/dist/styles.css +21 -9
  83. package/dist/utils-B6yFEsav.js +8 -0
  84. package/dist/utils-IjLH3w2e.cjs +1 -0
  85. package/docs/components/README.md +282 -92
  86. package/docs/components/nqui-button-group.md +24 -5
  87. package/docs/components/nqui-checkbox.md +2 -2
  88. package/docs/components/nqui-code-block.md +6 -4
  89. package/docs/components/nqui-code-editor.md +1 -1
  90. package/docs/components/nqui-combobox.md +9 -1
  91. package/docs/components/nqui-data-table.md +46 -0
  92. package/docs/components/nqui-input-group.md +14 -6
  93. package/docs/components/nqui-radio-group.md +9 -1
  94. package/docs/components/nqui-sandbox.md +1 -1
  95. package/docs/components/nqui-select.md +13 -10
  96. package/docs/components/nqui-separator.md +33 -1
  97. package/docs/components/nqui-snippet.md +1 -1
  98. package/docs/components/nqui-table.md +43 -0
  99. package/docs/components/nqui-toggle-group.md +49 -5
  100. package/docs/components/nqui-toggle.md +25 -2
  101. package/docs/internal-notes/APP_BUILDER_PACKAGE.md +86 -0
  102. package/docs/internal-notes/INSTALLATION.md +161 -108
  103. package/docs/internal-notes/PEER_DEPENDENCIES.md +105 -0
  104. package/docs/internal-notes/PUBLISHING.md +72 -0
  105. package/docs/internal-notes/SKILLS-ARCHITECTURE.md +105 -0
  106. package/package.json +103 -17
  107. package/scripts/cli.js +44 -0
  108. package/scripts/help.js +1 -0
  109. package/scripts/init-css.js +15 -0
  110. package/scripts/init-cursor.js +169 -0
  111. package/scripts/install-peers.js +43 -0
  112. package/scripts/peer-deps.js +27 -0
  113. package/scripts/post-install.js +73 -0
  114. package/scripts/publish-npmjs.js +17 -3
  115. package/scripts/resolve-target-dir.js +99 -0
  116. package/scripts/skill-templates.js +109 -0
  117. package/dist/App.d.ts +0 -3
  118. package/dist/App.d.ts.map +0 -1
  119. package/dist/assets/svg/auth-lines.d.ts +0 -4
  120. package/dist/assets/svg/auth-lines.d.ts.map +0 -1
  121. package/dist/assets/svg/logo.d.ts +0 -4
  122. package/dist/assets/svg/logo.d.ts.map +0 -1
  123. package/dist/components/AppLayout.d.ts +0 -5
  124. package/dist/components/AppLayout.d.ts.map +0 -1
  125. package/dist/components/app-builder/AppBuilder.d.ts +0 -15
  126. package/dist/components/app-builder/AppBuilder.d.ts.map +0 -1
  127. package/dist/components/app-builder/context/app-builder-context.d.ts +0 -31
  128. package/dist/components/app-builder/context/app-builder-context.d.ts.map +0 -1
  129. package/dist/components/app-builder/core/AlignmentToolbar.d.ts +0 -5
  130. package/dist/components/app-builder/core/AlignmentToolbar.d.ts.map +0 -1
  131. package/dist/components/app-builder/core/AppCanvas.d.ts +0 -9
  132. package/dist/components/app-builder/core/AppCanvas.d.ts.map +0 -1
  133. package/dist/components/app-builder/core/CanvasToolbar.d.ts +0 -7
  134. package/dist/components/app-builder/core/CanvasToolbar.d.ts.map +0 -1
  135. package/dist/components/app-builder/core/DraggableWidget.d.ts +0 -12
  136. package/dist/components/app-builder/core/DraggableWidget.d.ts.map +0 -1
  137. package/dist/components/app-builder/core/WidgetConfigurator.d.ts +0 -6
  138. package/dist/components/app-builder/core/WidgetConfigurator.d.ts.map +0 -1
  139. package/dist/components/app-builder/core/WidgetPalette.d.ts +0 -6
  140. package/dist/components/app-builder/core/WidgetPalette.d.ts.map +0 -1
  141. package/dist/components/app-builder/core/WidgetRenderer.d.ts +0 -3
  142. package/dist/components/app-builder/core/WidgetRenderer.d.ts.map +0 -1
  143. package/dist/components/app-builder/core/index.d.ts +0 -8
  144. package/dist/components/app-builder/core/index.d.ts.map +0 -1
  145. package/dist/components/app-builder/essentials/button.d.ts +0 -3
  146. package/dist/components/app-builder/essentials/button.d.ts.map +0 -1
  147. package/dist/components/app-builder/essentials/container.d.ts +0 -3
  148. package/dist/components/app-builder/essentials/container.d.ts.map +0 -1
  149. package/dist/components/app-builder/essentials/index.d.ts +0 -3
  150. package/dist/components/app-builder/essentials/index.d.ts.map +0 -1
  151. package/dist/components/app-builder/hooks/index.d.ts +0 -3
  152. package/dist/components/app-builder/hooks/index.d.ts.map +0 -1
  153. package/dist/components/app-builder/hooks/use-app-builder.d.ts +0 -3
  154. package/dist/components/app-builder/hooks/use-app-builder.d.ts.map +0 -1
  155. package/dist/components/app-builder/hooks/use-canvas-state.d.ts +0 -24
  156. package/dist/components/app-builder/hooks/use-canvas-state.d.ts.map +0 -1
  157. package/dist/components/app-builder/index.d.ts +0 -19
  158. package/dist/components/app-builder/index.d.ts.map +0 -1
  159. package/dist/components/app-builder/registry/create-registry.d.ts +0 -10
  160. package/dist/components/app-builder/registry/create-registry.d.ts.map +0 -1
  161. package/dist/components/app-builder/registry/default-registry.d.ts +0 -6
  162. package/dist/components/app-builder/registry/default-registry.d.ts.map +0 -1
  163. package/dist/components/app-builder/registry/index.d.ts +0 -4
  164. package/dist/components/app-builder/registry/index.d.ts.map +0 -1
  165. package/dist/components/app-builder/registry/registry-helpers.d.ts +0 -22
  166. package/dist/components/app-builder/registry/registry-helpers.d.ts.map +0 -1
  167. package/dist/components/app-builder/types.d.ts +0 -64
  168. package/dist/components/app-builder/types.d.ts.map +0 -1
  169. package/dist/components/app-builder/utils/collision-detection.d.ts +0 -26
  170. package/dist/components/app-builder/utils/collision-detection.d.ts.map +0 -1
  171. package/dist/components/app-builder/utils/index.d.ts +0 -2
  172. package/dist/components/app-builder/utils/index.d.ts.map +0 -1
  173. package/dist/components/app-sidebar.d.ts +0 -4
  174. package/dist/components/app-sidebar.d.ts.map +0 -1
  175. package/dist/components/blocks/chart-compositions/chart-composition-01.d.ts +0 -2
  176. package/dist/components/blocks/chart-compositions/chart-composition-01.d.ts.map +0 -1
  177. package/dist/components/blocks/chart-compositions/chart-composition-02.d.ts +0 -2
  178. package/dist/components/blocks/chart-compositions/chart-composition-02.d.ts.map +0 -1
  179. package/dist/components/blocks/chart-compositions/chart-composition-03.d.ts +0 -2
  180. package/dist/components/blocks/chart-compositions/chart-composition-03.d.ts.map +0 -1
  181. package/dist/components/blocks/chart-compositions/index.d.ts +0 -4
  182. package/dist/components/blocks/chart-compositions/index.d.ts.map +0 -1
  183. package/dist/components/blocks/index.d.ts +0 -3
  184. package/dist/components/blocks/index.d.ts.map +0 -1
  185. package/dist/components/blocks/tables/index.d.ts +0 -4
  186. package/dist/components/blocks/tables/index.d.ts.map +0 -1
  187. package/dist/components/blocks/tables/table-01.d.ts +0 -2
  188. package/dist/components/blocks/tables/table-01.d.ts.map +0 -1
  189. package/dist/components/blocks/tables/table-02.d.ts +0 -2
  190. package/dist/components/blocks/tables/table-02.d.ts.map +0 -1
  191. package/dist/components/blocks/tables/table-03.d.ts +0 -2
  192. package/dist/components/blocks/tables/table-03.d.ts.map +0 -1
  193. package/dist/components/chart/area-chart/AreaChart.d.ts +0 -57
  194. package/dist/components/chart/area-chart/AreaChart.d.ts.map +0 -1
  195. package/dist/components/chart/area-chart/index.d.ts +0 -3
  196. package/dist/components/chart/area-chart/index.d.ts.map +0 -1
  197. package/dist/components/chart/bar-chart/BarChart.d.ts +0 -62
  198. package/dist/components/chart/bar-chart/BarChart.d.ts.map +0 -1
  199. package/dist/components/chart/bar-chart/index.d.ts +0 -3
  200. package/dist/components/chart/bar-chart/index.d.ts.map +0 -1
  201. package/dist/components/chart/bar-list/BarList.d.ts +0 -23
  202. package/dist/components/chart/bar-list/BarList.d.ts.map +0 -1
  203. package/dist/components/chart/bar-list/index.d.ts +0 -3
  204. package/dist/components/chart/bar-list/index.d.ts.map +0 -1
  205. package/dist/components/chart/category-bar/CategoryBar.d.ts +0 -15
  206. package/dist/components/chart/category-bar/CategoryBar.d.ts.map +0 -1
  207. package/dist/components/chart/category-bar/index.d.ts +0 -3
  208. package/dist/components/chart/category-bar/index.d.ts.map +0 -1
  209. package/dist/components/chart/combo-chart/ComboChart.d.ts +0 -67
  210. package/dist/components/chart/combo-chart/ComboChart.d.ts.map +0 -1
  211. package/dist/components/chart/combo-chart/index.d.ts +0 -3
  212. package/dist/components/chart/combo-chart/index.d.ts.map +0 -1
  213. package/dist/components/chart/donut-chart/DonutChart.d.ts +0 -37
  214. package/dist/components/chart/donut-chart/DonutChart.d.ts.map +0 -1
  215. package/dist/components/chart/donut-chart/index.d.ts +0 -3
  216. package/dist/components/chart/donut-chart/index.d.ts.map +0 -1
  217. package/dist/components/chart/index.d.ts +0 -19
  218. package/dist/components/chart/index.d.ts.map +0 -1
  219. package/dist/components/chart/line-chart/LineChart.d.ts +0 -55
  220. package/dist/components/chart/line-chart/LineChart.d.ts.map +0 -1
  221. package/dist/components/chart/line-chart/index.d.ts +0 -3
  222. package/dist/components/chart/line-chart/index.d.ts.map +0 -1
  223. package/dist/components/chart/progress-circle/ProgressCircle.d.ts +0 -92
  224. package/dist/components/chart/progress-circle/ProgressCircle.d.ts.map +0 -1
  225. package/dist/components/chart/progress-circle/index.d.ts +0 -3
  226. package/dist/components/chart/progress-circle/index.d.ts.map +0 -1
  227. package/dist/components/chart/spark-chart/SparkChart.d.ts +0 -40
  228. package/dist/components/chart/spark-chart/SparkChart.d.ts.map +0 -1
  229. package/dist/components/chart/spark-chart/index.d.ts +0 -3
  230. package/dist/components/chart/spark-chart/index.d.ts.map +0 -1
  231. package/dist/components/component-example.d.ts +0 -2
  232. package/dist/components/component-example.d.ts.map +0 -1
  233. package/dist/components/custom/enhanced-separator.d.ts +0 -36
  234. package/dist/components/custom/enhanced-separator.d.ts.map +0 -1
  235. package/dist/components/custom/segmented-control.d.ts +0 -48
  236. package/dist/components/custom/segmented-control.d.ts.map +0 -1
  237. package/dist/components/example.d.ts +0 -7
  238. package/dist/components/example.d.ts.map +0 -1
  239. package/dist/components/login-form.d.ts +0 -2
  240. package/dist/components/login-form.d.ts.map +0 -1
  241. package/dist/components/nav-user.d.ts +0 -8
  242. package/dist/components/nav-user.d.ts.map +0 -1
  243. package/dist/components/pm/gantt/contexts.d.ts +0 -13
  244. package/dist/components/pm/gantt/contexts.d.ts.map +0 -1
  245. package/dist/components/pm/gantt/gantt-columns.d.ts +0 -7
  246. package/dist/components/pm/gantt/gantt-columns.d.ts.map +0 -1
  247. package/dist/components/pm/gantt/gantt-demo.d.ts +0 -2
  248. package/dist/components/pm/gantt/gantt-demo.d.ts.map +0 -1
  249. package/dist/components/pm/gantt/gantt-dependencies.d.ts +0 -23
  250. package/dist/components/pm/gantt/gantt-dependencies.d.ts.map +0 -1
  251. package/dist/components/pm/gantt/gantt-features.d.ts +0 -9
  252. package/dist/components/pm/gantt/gantt-features.d.ts.map +0 -1
  253. package/dist/components/pm/gantt/gantt-header.d.ts +0 -5
  254. package/dist/components/pm/gantt/gantt-header.d.ts.map +0 -1
  255. package/dist/components/pm/gantt/gantt-markers.d.ts +0 -11
  256. package/dist/components/pm/gantt/gantt-markers.d.ts.map +0 -1
  257. package/dist/components/pm/gantt/gantt-modals.d.ts +0 -5
  258. package/dist/components/pm/gantt/gantt-modals.d.ts.map +0 -1
  259. package/dist/components/pm/gantt/gantt-provider.d.ts +0 -5
  260. package/dist/components/pm/gantt/gantt-provider.d.ts.map +0 -1
  261. package/dist/components/pm/gantt/gantt-setting-modal.d.ts +0 -4
  262. package/dist/components/pm/gantt/gantt-setting-modal.d.ts.map +0 -1
  263. package/dist/components/pm/gantt/gantt-sidebar.d.ts +0 -7
  264. package/dist/components/pm/gantt/gantt-sidebar.d.ts.map +0 -1
  265. package/dist/components/pm/gantt/gantt-toolbar.d.ts +0 -29
  266. package/dist/components/pm/gantt/gantt-toolbar.d.ts.map +0 -1
  267. package/dist/components/pm/gantt/index.d.ts +0 -16
  268. package/dist/components/pm/gantt/index.d.ts.map +0 -1
  269. package/dist/components/pm/gantt/types.d.ts +0 -299
  270. package/dist/components/pm/gantt/types.d.ts.map +0 -1
  271. package/dist/components/pm/gantt/utils.d.ts +0 -29
  272. package/dist/components/pm/gantt/utils.d.ts.map +0 -1
  273. package/dist/components/pm/index.d.ts +0 -13
  274. package/dist/components/pm/index.d.ts.map +0 -1
  275. package/dist/components/pm/mockdata.d.ts +0 -13
  276. package/dist/components/pm/mockdata.d.ts.map +0 -1
  277. package/dist/components/pm/pm-column-templates.d.ts +0 -30
  278. package/dist/components/pm/pm-column-templates.d.ts.map +0 -1
  279. package/dist/components/pm/pm-data-utils.d.ts +0 -82
  280. package/dist/components/pm/pm-data-utils.d.ts.map +0 -1
  281. package/dist/components/pm/pm-definition.d.ts +0 -75
  282. package/dist/components/pm/pm-definition.d.ts.map +0 -1
  283. package/dist/components/pm/pm-theme-context.d.ts +0 -17
  284. package/dist/components/pm/pm-theme-context.d.ts.map +0 -1
  285. package/dist/components/pm/pm-types.d.ts +0 -81
  286. package/dist/components/pm/pm-types.d.ts.map +0 -1
  287. package/dist/components/pm/project-table-view.d.ts +0 -17
  288. package/dist/components/pm/project-table-view.d.ts.map +0 -1
  289. package/dist/components/pm/table/data-grid-cell-variants.d.ts +0 -14
  290. package/dist/components/pm/table/data-grid-cell-variants.d.ts.map +0 -1
  291. package/dist/components/pm/table/data-grid-cell-wrapper.d.ts +0 -9
  292. package/dist/components/pm/table/data-grid-cell-wrapper.d.ts.map +0 -1
  293. package/dist/components/pm/table/data-grid-cell.d.ts +0 -5
  294. package/dist/components/pm/table/data-grid-cell.d.ts.map +0 -1
  295. package/dist/components/pm/table/data-grid-column-header.d.ts +0 -10
  296. package/dist/components/pm/table/data-grid-column-header.d.ts.map +0 -1
  297. package/dist/components/pm/table/data-grid-context-menu.d.ts +0 -10
  298. package/dist/components/pm/table/data-grid-context-menu.d.ts.map +0 -1
  299. package/dist/components/pm/table/data-grid-filter-menu.d.ts +0 -10
  300. package/dist/components/pm/table/data-grid-filter-menu.d.ts.map +0 -1
  301. package/dist/components/pm/table/data-grid-keyboard-shortcuts.d.ts +0 -12
  302. package/dist/components/pm/table/data-grid-keyboard-shortcuts.d.ts.map +0 -1
  303. package/dist/components/pm/table/data-grid-paste-dialog.d.ts +0 -9
  304. package/dist/components/pm/table/data-grid-paste-dialog.d.ts.map +0 -1
  305. package/dist/components/pm/table/data-grid-row-height-menu.d.ts +0 -10
  306. package/dist/components/pm/table/data-grid-row-height-menu.d.ts.map +0 -1
  307. package/dist/components/pm/table/data-grid-row.d.ts +0 -27
  308. package/dist/components/pm/table/data-grid-row.d.ts.map +0 -1
  309. package/dist/components/pm/table/data-grid-search.d.ts +0 -8
  310. package/dist/components/pm/table/data-grid-search.d.ts.map +0 -1
  311. package/dist/components/pm/table/data-grid-select-column.d.ts +0 -11
  312. package/dist/components/pm/table/data-grid-select-column.d.ts.map +0 -1
  313. package/dist/components/pm/table/data-grid-skeleton.d.ts +0 -12
  314. package/dist/components/pm/table/data-grid-skeleton.d.ts.map +0 -1
  315. package/dist/components/pm/table/data-grid-sort-menu.d.ts +0 -10
  316. package/dist/components/pm/table/data-grid-sort-menu.d.ts.map +0 -1
  317. package/dist/components/pm/table/data-grid-view-menu.d.ts +0 -10
  318. package/dist/components/pm/table/data-grid-view-menu.d.ts.map +0 -1
  319. package/dist/components/pm/table/data-grid.d.ts +0 -11
  320. package/dist/components/pm/table/data-grid.d.ts.map +0 -1
  321. package/dist/components/shadcn-studio/blocks/login-page-05/login-form.d.ts +0 -3
  322. package/dist/components/shadcn-studio/blocks/login-page-05/login-form.d.ts.map +0 -1
  323. package/dist/components/shadcn-studio/blocks/login-page-05/login-page-05.d.ts +0 -3
  324. package/dist/components/shadcn-studio/blocks/login-page-05/login-page-05.d.ts.map +0 -1
  325. package/dist/components/shadcn-studio/logo.d.ts +0 -5
  326. package/dist/components/shadcn-studio/logo.d.ts.map +0 -1
  327. package/dist/components/showcase/app-builder/app-builder-context.d.ts +0 -16
  328. package/dist/components/showcase/app-builder/app-builder-context.d.ts.map +0 -1
  329. package/dist/components/showcase/app-builder/app-canvas.d.ts +0 -11
  330. package/dist/components/showcase/app-builder/app-canvas.d.ts.map +0 -1
  331. package/dist/components/showcase/app-builder/widget-configurator.d.ts +0 -10
  332. package/dist/components/showcase/app-builder/widget-configurator.d.ts.map +0 -1
  333. package/dist/components/showcase/app-builder/widget-palette.d.ts +0 -6
  334. package/dist/components/showcase/app-builder/widget-palette.d.ts.map +0 -1
  335. package/dist/components/showcase/app-builder/widget-registry.d.ts +0 -29
  336. package/dist/components/showcase/app-builder/widget-registry.d.ts.map +0 -1
  337. package/dist/components/showcase/app-builder/widget-renderer.d.ts +0 -7
  338. package/dist/components/showcase/app-builder/widget-renderer.d.ts.map +0 -1
  339. package/dist/components/table/DataTable.d.ts +0 -71
  340. package/dist/components/table/DataTable.d.ts.map +0 -1
  341. package/dist/components/table/Table.d.ts +0 -12
  342. package/dist/components/table/Table.d.ts.map +0 -1
  343. package/dist/components/table/data-table-helpers.d.ts +0 -49
  344. package/dist/components/table/data-table-helpers.d.ts.map +0 -1
  345. package/dist/components/table/index.d.ts +0 -5
  346. package/dist/components/table/index.d.ts.map +0 -1
  347. package/dist/components/theme-toggle.d.ts +0 -2
  348. package/dist/components/theme-toggle.d.ts.map +0 -1
  349. package/dist/components/ui/chart.d.ts +0 -41
  350. package/dist/components/ui/chart.d.ts.map +0 -1
  351. package/dist/components/ui/shadcn-io/code-block/index.d.ts +0 -67
  352. package/dist/components/ui/shadcn-io/code-block/index.d.ts.map +0 -1
  353. package/dist/components/ui/shadcn-io/code-block/server.d.ts +0 -10
  354. package/dist/components/ui/shadcn-io/code-block/server.d.ts.map +0 -1
  355. package/dist/components/ui/shadcn-io/code-editor/index.d.ts +0 -35
  356. package/dist/components/ui/shadcn-io/code-editor/index.d.ts.map +0 -1
  357. package/dist/components/ui/shadcn-io/sandbox/index.d.ts +0 -38
  358. package/dist/components/ui/shadcn-io/sandbox/index.d.ts.map +0 -1
  359. package/dist/components/ui/shadcn-io/snippet/index.d.ts +0 -21
  360. package/dist/components/ui/shadcn-io/snippet/index.d.ts.map +0 -1
  361. package/dist/hooks/use-chart-highlight.d.ts +0 -43
  362. package/dist/hooks/use-chart-highlight.d.ts.map +0 -1
  363. package/dist/hooks/use-data-grid.d.ts +0 -59
  364. package/dist/hooks/use-data-grid.d.ts.map +0 -1
  365. package/dist/hooks/use-on-window-resize.d.ts +0 -2
  366. package/dist/hooks/use-on-window-resize.d.ts.map +0 -1
  367. package/dist/lib/data-grid-filters.d.ts +0 -29
  368. package/dist/lib/data-grid-filters.d.ts.map +0 -1
  369. package/dist/lib/data-grid.d.ts +0 -47
  370. package/dist/lib/data-grid.d.ts.map +0 -1
  371. package/dist/main.d.ts +0 -3
  372. package/dist/main.d.ts.map +0 -1
  373. package/dist/mockdata/chartData.d.ts +0 -71
  374. package/dist/mockdata/chartData.d.ts.map +0 -1
  375. package/dist/mockdata/toc.d.ts +0 -23
  376. package/dist/mockdata/toc.d.ts.map +0 -1
  377. package/dist/pages/AppBuilder.d.ts +0 -2
  378. package/dist/pages/AppBuilder.d.ts.map +0 -1
  379. package/dist/pages/ChartShowcase.d.ts +0 -2
  380. package/dist/pages/ChartShowcase.d.ts.map +0 -1
  381. package/dist/pages/ComponentShowcase.d.ts +0 -2
  382. package/dist/pages/ComponentShowcase.d.ts.map +0 -1
  383. package/dist/pages/DataTableShowcase.d.ts +0 -2
  384. package/dist/pages/DataTableShowcase.d.ts.map +0 -1
  385. package/dist/pages/Drafts.d.ts +0 -2
  386. package/dist/pages/Drafts.d.ts.map +0 -1
  387. package/dist/pages/GanttShowcase.d.ts +0 -2
  388. package/dist/pages/GanttShowcase.d.ts.map +0 -1
  389. package/dist/pages/Inbox.d.ts +0 -2
  390. package/dist/pages/Inbox.d.ts.map +0 -1
  391. package/dist/pages/Junk.d.ts +0 -2
  392. package/dist/pages/Junk.d.ts.map +0 -1
  393. package/dist/pages/Sent.d.ts +0 -2
  394. package/dist/pages/Sent.d.ts.map +0 -1
  395. package/dist/pages/Settings.d.ts +0 -2
  396. package/dist/pages/Settings.d.ts.map +0 -1
  397. package/dist/pages/Trash.d.ts +0 -2
  398. package/dist/pages/Trash.d.ts.map +0 -1
  399. package/dist/pages/gantt-data.d.ts +0 -16
  400. package/dist/pages/gantt-data.d.ts.map +0 -1
  401. package/dist/stories/mockData.d.ts +0 -157
  402. package/dist/stories/mockData.d.ts.map +0 -1
  403. package/dist/types/data-grid.d.ts +0 -179
  404. package/dist/types/data-grid.d.ts.map +0 -1
  405. package/dist/utils/chart-colors.d.ts +0 -62
  406. package/dist/utils/chart-colors.d.ts.map +0 -1
  407. package/dist/utils/chart-highlight.d.ts +0 -34
  408. package/dist/utils/chart-highlight.d.ts.map +0 -1
  409. package/dist/utils/chart-utils.d.ts +0 -2
  410. package/dist/utils/chart-utils.d.ts.map +0 -1
  411. package/dist/utils/focus-ring.d.ts +0 -2
  412. package/dist/utils/focus-ring.d.ts.map +0 -1
  413. package/dist/utils/get-y-axis-domain.d.ts +0 -2
  414. package/dist/utils/get-y-axis-domain.d.ts.map +0 -1
  415. package/dist/utils/index.d.ts +0 -10
  416. package/dist/utils/index.d.ts.map +0 -1
  417. package/docs/components/nqui-segmented-control.md +0 -18
@@ -0,0 +1,1778 @@
1
+ import { jsx as l, jsxs as O, Fragment as Ee } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { useState as vt } from "react";
4
+ import { Command as _ } from "cmdk";
5
+ import { c as S } from "./utils-B6yFEsav.js";
6
+ import { B as me } from "./button-nJvDl3w8.js";
7
+ import { HugeiconsIcon as ve } from "@hugeicons/react";
8
+ import { Cancel01Icon as pt, SearchIcon as gt, Tick02Icon as ht } from "@hugeicons/core-free-icons";
9
+ import * as bt from "react-dom";
10
+ import yt from "react-dom";
11
+ import { createSlot as Me } from "@radix-ui/react-slot";
12
+ import { cva as _e } from "class-variance-authority";
13
+ import { s as Et, S as Ct, i as wt } from "./keyboard-pkY42Y3a.js";
14
+ var xt = [
15
+ "a",
16
+ "button",
17
+ "div",
18
+ "form",
19
+ "h2",
20
+ "h3",
21
+ "img",
22
+ "input",
23
+ "label",
24
+ "li",
25
+ "nav",
26
+ "ol",
27
+ "p",
28
+ "select",
29
+ "span",
30
+ "svg",
31
+ "ul"
32
+ ], k = xt.reduce((e, t) => {
33
+ const n = Me(`Primitive.${t}`), r = i.forwardRef((o, a) => {
34
+ const { asChild: c, ...s } = o, v = c ? n : t;
35
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(v, { ...s, ref: a });
36
+ });
37
+ return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
38
+ }, {});
39
+ function St(e, t) {
40
+ e && bt.flushSync(() => e.dispatchEvent(t));
41
+ }
42
+ function Nt(e, t) {
43
+ const n = i.createContext(t), r = (a) => {
44
+ const { children: c, ...s } = a, v = i.useMemo(() => s, Object.values(s));
45
+ return /* @__PURE__ */ l(n.Provider, { value: v, children: c });
46
+ };
47
+ r.displayName = e + "Provider";
48
+ function o(a) {
49
+ const c = i.useContext(n);
50
+ if (c) return c;
51
+ if (t !== void 0) return t;
52
+ throw new Error(`\`${a}\` must be used within \`${e}\``);
53
+ }
54
+ return [r, o];
55
+ }
56
+ function Rt(e, t = []) {
57
+ let n = [];
58
+ function r(a, c) {
59
+ const s = i.createContext(c), v = n.length;
60
+ n = [...n, c];
61
+ const d = (m) => {
62
+ const { scope: p, children: g, ...y } = m, u = p?.[e]?.[v] || s, h = i.useMemo(() => y, Object.values(y));
63
+ return /* @__PURE__ */ l(u.Provider, { value: h, children: g });
64
+ };
65
+ d.displayName = a + "Provider";
66
+ function f(m, p) {
67
+ const g = p?.[e]?.[v] || s, y = i.useContext(g);
68
+ if (y) return y;
69
+ if (c !== void 0) return c;
70
+ throw new Error(`\`${m}\` must be used within \`${a}\``);
71
+ }
72
+ return [d, f];
73
+ }
74
+ const o = () => {
75
+ const a = n.map((c) => i.createContext(c));
76
+ return function(s) {
77
+ const v = s?.[e] || a;
78
+ return i.useMemo(
79
+ () => ({ [`__scope${e}`]: { ...s, [e]: v } }),
80
+ [s, v]
81
+ );
82
+ };
83
+ };
84
+ return o.scopeName = e, [r, Dt(o, ...t)];
85
+ }
86
+ function Dt(...e) {
87
+ const t = e[0];
88
+ if (e.length === 1) return t;
89
+ const n = () => {
90
+ const r = e.map((o) => ({
91
+ useScope: o(),
92
+ scopeName: o.scopeName
93
+ }));
94
+ return function(a) {
95
+ const c = r.reduce((s, { useScope: v, scopeName: d }) => {
96
+ const m = v(a)[`__scope${d}`];
97
+ return { ...s, ...m };
98
+ }, {});
99
+ return i.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
100
+ };
101
+ };
102
+ return n.scopeName = t.scopeName, n;
103
+ }
104
+ function Ce(e, t) {
105
+ if (typeof e == "function")
106
+ return e(t);
107
+ e != null && (e.current = t);
108
+ }
109
+ function Pt(...e) {
110
+ return (t) => {
111
+ let n = !1;
112
+ const r = e.map((o) => {
113
+ const a = Ce(o, t);
114
+ return !n && typeof a == "function" && (n = !0), a;
115
+ });
116
+ if (n)
117
+ return () => {
118
+ for (let o = 0; o < r.length; o++) {
119
+ const a = r[o];
120
+ typeof a == "function" ? a() : Ce(e[o], null);
121
+ }
122
+ };
123
+ };
124
+ }
125
+ function L(...e) {
126
+ return i.useCallback(Pt(...e), e);
127
+ }
128
+ function I(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
129
+ return function(o) {
130
+ if (e?.(o), n === !1 || !o.defaultPrevented)
131
+ return t?.(o);
132
+ };
133
+ }
134
+ var G = globalThis?.document ? i.useLayoutEffect : () => {
135
+ }, Ot = i[" useInsertionEffect ".trim().toString()] || G;
136
+ function kt({
137
+ prop: e,
138
+ defaultProp: t,
139
+ onChange: n = () => {
140
+ },
141
+ caller: r
142
+ }) {
143
+ const [o, a, c] = Tt({
144
+ defaultProp: t,
145
+ onChange: n
146
+ }), s = e !== void 0, v = s ? e : o;
147
+ {
148
+ const f = i.useRef(e !== void 0);
149
+ i.useEffect(() => {
150
+ const m = f.current;
151
+ m !== s && console.warn(
152
+ `${r} is changing from ${m ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
153
+ ), f.current = s;
154
+ }, [s, r]);
155
+ }
156
+ const d = i.useCallback(
157
+ (f) => {
158
+ if (s) {
159
+ const m = It(f) ? f(e) : f;
160
+ m !== e && c.current?.(m);
161
+ } else
162
+ a(f);
163
+ },
164
+ [s, e, a, c]
165
+ );
166
+ return [v, d];
167
+ }
168
+ function Tt({
169
+ defaultProp: e,
170
+ onChange: t
171
+ }) {
172
+ const [n, r] = i.useState(e), o = i.useRef(n), a = i.useRef(t);
173
+ return Ot(() => {
174
+ a.current = t;
175
+ }, [t]), i.useEffect(() => {
176
+ o.current !== n && (a.current?.(n), o.current = n);
177
+ }, [n, o]), [n, r, a];
178
+ }
179
+ function It(e) {
180
+ return typeof e == "function";
181
+ }
182
+ function At(e, t) {
183
+ return i.useReducer((n, r) => t[n][r] ?? n, e);
184
+ }
185
+ var ee = (e) => {
186
+ const { present: t, children: n } = e, r = Mt(t), o = typeof n == "function" ? n({ present: r.isPresent }) : i.Children.only(n), a = L(r.ref, _t(o));
187
+ return typeof n == "function" || r.isPresent ? i.cloneElement(o, { ref: a }) : null;
188
+ };
189
+ ee.displayName = "Presence";
190
+ function Mt(e) {
191
+ const [t, n] = i.useState(), r = i.useRef(null), o = i.useRef(e), a = i.useRef("none"), c = e ? "mounted" : "unmounted", [s, v] = At(c, {
192
+ mounted: {
193
+ UNMOUNT: "unmounted",
194
+ ANIMATION_OUT: "unmountSuspended"
195
+ },
196
+ unmountSuspended: {
197
+ MOUNT: "mounted",
198
+ ANIMATION_END: "unmounted"
199
+ },
200
+ unmounted: {
201
+ MOUNT: "mounted"
202
+ }
203
+ });
204
+ return i.useEffect(() => {
205
+ const d = K(r.current);
206
+ a.current = s === "mounted" ? d : "none";
207
+ }, [s]), G(() => {
208
+ const d = r.current, f = o.current;
209
+ if (f !== e) {
210
+ const p = a.current, g = K(d);
211
+ e ? v("MOUNT") : g === "none" || d?.display === "none" ? v("UNMOUNT") : v(f && p !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
212
+ }
213
+ }, [e, v]), G(() => {
214
+ if (t) {
215
+ let d;
216
+ const f = t.ownerDocument.defaultView ?? window, m = (g) => {
217
+ const u = K(r.current).includes(CSS.escape(g.animationName));
218
+ if (g.target === t && u && (v("ANIMATION_END"), !o.current)) {
219
+ const h = t.style.animationFillMode;
220
+ t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
221
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
222
+ });
223
+ }
224
+ }, p = (g) => {
225
+ g.target === t && (a.current = K(r.current));
226
+ };
227
+ return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
228
+ f.clearTimeout(d), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
229
+ };
230
+ } else
231
+ v("ANIMATION_END");
232
+ }, [t, v]), {
233
+ isPresent: ["mounted", "unmountSuspended"].includes(s),
234
+ ref: i.useCallback((d) => {
235
+ r.current = d ? getComputedStyle(d) : null, n(d);
236
+ }, [])
237
+ };
238
+ }
239
+ function K(e) {
240
+ return e?.animationName || "none";
241
+ }
242
+ function _t(e) {
243
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
244
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
245
+ }
246
+ var Lt = i[" useId ".trim().toString()] || (() => {
247
+ }), Ft = 0;
248
+ function re(e) {
249
+ const [t, n] = i.useState(Lt());
250
+ return G(() => {
251
+ n((r) => r ?? String(Ft++));
252
+ }, [e]), e || (t ? `radix-${t}` : "");
253
+ }
254
+ function j(e) {
255
+ const t = i.useRef(e);
256
+ return i.useEffect(() => {
257
+ t.current = e;
258
+ }), i.useMemo(() => (...n) => t.current?.(...n), []);
259
+ }
260
+ function Wt(e, t = globalThis?.document) {
261
+ const n = j(e);
262
+ i.useEffect(() => {
263
+ const r = (o) => {
264
+ o.key === "Escape" && n(o);
265
+ };
266
+ return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
267
+ }, [n, t]);
268
+ }
269
+ var Bt = "DismissableLayer", de = "dismissableLayer.update", Ut = "dismissableLayer.pointerDownOutside", zt = "dismissableLayer.focusOutside", we, Le = i.createContext({
270
+ layers: /* @__PURE__ */ new Set(),
271
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
272
+ branches: /* @__PURE__ */ new Set()
273
+ }), Fe = i.forwardRef(
274
+ (e, t) => {
275
+ const {
276
+ disableOutsidePointerEvents: n = !1,
277
+ onEscapeKeyDown: r,
278
+ onPointerDownOutside: o,
279
+ onFocusOutside: a,
280
+ onInteractOutside: c,
281
+ onDismiss: s,
282
+ ...v
283
+ } = e, d = i.useContext(Le), [f, m] = i.useState(null), p = f?.ownerDocument ?? globalThis?.document, [, g] = i.useState({}), y = L(t, (E) => m(E)), u = Array.from(d.layers), [h] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = u.indexOf(h), C = f ? u.indexOf(f) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, x = C >= b, N = jt((E) => {
284
+ const A = E.target, F = [...d.branches].some(($) => $.contains(A));
285
+ !x || F || (o?.(E), c?.(E), E.defaultPrevented || s?.());
286
+ }, p), R = Ht((E) => {
287
+ const A = E.target;
288
+ [...d.branches].some(($) => $.contains(A)) || (a?.(E), c?.(E), E.defaultPrevented || s?.());
289
+ }, p);
290
+ return Wt((E) => {
291
+ C === d.layers.size - 1 && (r?.(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
292
+ }, p), i.useEffect(() => {
293
+ if (f)
294
+ return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (we = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), xe(), () => {
295
+ n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = we);
296
+ };
297
+ }, [f, p, n, d]), i.useEffect(() => () => {
298
+ f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), xe());
299
+ }, [f, d]), i.useEffect(() => {
300
+ const E = () => g({});
301
+ return document.addEventListener(de, E), () => document.removeEventListener(de, E);
302
+ }, []), /* @__PURE__ */ l(
303
+ k.div,
304
+ {
305
+ ...v,
306
+ ref: y,
307
+ style: {
308
+ pointerEvents: w ? x ? "auto" : "none" : void 0,
309
+ ...e.style
310
+ },
311
+ onFocusCapture: I(e.onFocusCapture, R.onFocusCapture),
312
+ onBlurCapture: I(e.onBlurCapture, R.onBlurCapture),
313
+ onPointerDownCapture: I(
314
+ e.onPointerDownCapture,
315
+ N.onPointerDownCapture
316
+ )
317
+ }
318
+ );
319
+ }
320
+ );
321
+ Fe.displayName = Bt;
322
+ var $t = "DismissableLayerBranch", Gt = i.forwardRef((e, t) => {
323
+ const n = i.useContext(Le), r = i.useRef(null), o = L(t, r);
324
+ return i.useEffect(() => {
325
+ const a = r.current;
326
+ if (a)
327
+ return n.branches.add(a), () => {
328
+ n.branches.delete(a);
329
+ };
330
+ }, [n.branches]), /* @__PURE__ */ l(k.div, { ...e, ref: o });
331
+ });
332
+ Gt.displayName = $t;
333
+ function jt(e, t = globalThis?.document) {
334
+ const n = j(e), r = i.useRef(!1), o = i.useRef(() => {
335
+ });
336
+ return i.useEffect(() => {
337
+ const a = (s) => {
338
+ if (s.target && !r.current) {
339
+ let v = function() {
340
+ We(
341
+ Ut,
342
+ n,
343
+ d,
344
+ { discrete: !0 }
345
+ );
346
+ };
347
+ const d = { originalEvent: s };
348
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = v, t.addEventListener("click", o.current, { once: !0 })) : v();
349
+ } else
350
+ t.removeEventListener("click", o.current);
351
+ r.current = !1;
352
+ }, c = window.setTimeout(() => {
353
+ t.addEventListener("pointerdown", a);
354
+ }, 0);
355
+ return () => {
356
+ window.clearTimeout(c), t.removeEventListener("pointerdown", a), t.removeEventListener("click", o.current);
357
+ };
358
+ }, [t, n]), {
359
+ // ensures we check React component tree (not just DOM tree)
360
+ onPointerDownCapture: () => r.current = !0
361
+ };
362
+ }
363
+ function Ht(e, t = globalThis?.document) {
364
+ const n = j(e), r = i.useRef(!1);
365
+ return i.useEffect(() => {
366
+ const o = (a) => {
367
+ a.target && !r.current && We(zt, n, { originalEvent: a }, {
368
+ discrete: !1
369
+ });
370
+ };
371
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
372
+ }, [t, n]), {
373
+ onFocusCapture: () => r.current = !0,
374
+ onBlurCapture: () => r.current = !1
375
+ };
376
+ }
377
+ function xe() {
378
+ const e = new CustomEvent(de);
379
+ document.dispatchEvent(e);
380
+ }
381
+ function We(e, t, n, { discrete: r }) {
382
+ const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
383
+ t && o.addEventListener(e, t, { once: !0 }), r ? St(o, a) : o.dispatchEvent(a);
384
+ }
385
+ var oe = "focusScope.autoFocusOnMount", ae = "focusScope.autoFocusOnUnmount", Se = { bubbles: !1, cancelable: !0 }, Kt = "FocusScope", Be = i.forwardRef((e, t) => {
386
+ const {
387
+ loop: n = !1,
388
+ trapped: r = !1,
389
+ onMountAutoFocus: o,
390
+ onUnmountAutoFocus: a,
391
+ ...c
392
+ } = e, [s, v] = i.useState(null), d = j(o), f = j(a), m = i.useRef(null), p = L(t, (u) => v(u)), g = i.useRef({
393
+ paused: !1,
394
+ pause() {
395
+ this.paused = !0;
396
+ },
397
+ resume() {
398
+ this.paused = !1;
399
+ }
400
+ }).current;
401
+ i.useEffect(() => {
402
+ if (r) {
403
+ let u = function(w) {
404
+ if (g.paused || !s) return;
405
+ const x = w.target;
406
+ s.contains(x) ? m.current = x : T(m.current, { select: !0 });
407
+ }, h = function(w) {
408
+ if (g.paused || !s) return;
409
+ const x = w.relatedTarget;
410
+ x !== null && (s.contains(x) || T(m.current, { select: !0 }));
411
+ }, b = function(w) {
412
+ if (document.activeElement === document.body)
413
+ for (const N of w)
414
+ N.removedNodes.length > 0 && T(s);
415
+ };
416
+ document.addEventListener("focusin", u), document.addEventListener("focusout", h);
417
+ const C = new MutationObserver(b);
418
+ return s && C.observe(s, { childList: !0, subtree: !0 }), () => {
419
+ document.removeEventListener("focusin", u), document.removeEventListener("focusout", h), C.disconnect();
420
+ };
421
+ }
422
+ }, [r, s, g.paused]), i.useEffect(() => {
423
+ if (s) {
424
+ Re.add(g);
425
+ const u = document.activeElement;
426
+ if (!s.contains(u)) {
427
+ const b = new CustomEvent(oe, Se);
428
+ s.addEventListener(oe, d), s.dispatchEvent(b), b.defaultPrevented || (Vt(Qt(Ue(s)), { select: !0 }), document.activeElement === u && T(s));
429
+ }
430
+ return () => {
431
+ s.removeEventListener(oe, d), setTimeout(() => {
432
+ const b = new CustomEvent(ae, Se);
433
+ s.addEventListener(ae, f), s.dispatchEvent(b), b.defaultPrevented || T(u ?? document.body, { select: !0 }), s.removeEventListener(ae, f), Re.remove(g);
434
+ }, 0);
435
+ };
436
+ }
437
+ }, [s, d, f, g]);
438
+ const y = i.useCallback(
439
+ (u) => {
440
+ if (!n && !r || g.paused) return;
441
+ const h = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, b = document.activeElement;
442
+ if (h && b) {
443
+ const C = u.currentTarget, [w, x] = Yt(C);
444
+ w && x ? !u.shiftKey && b === x ? (u.preventDefault(), n && T(w, { select: !0 })) : u.shiftKey && b === w && (u.preventDefault(), n && T(x, { select: !0 })) : b === C && u.preventDefault();
445
+ }
446
+ },
447
+ [n, r, g.paused]
448
+ );
449
+ return /* @__PURE__ */ l(k.div, { tabIndex: -1, ...c, ref: p, onKeyDown: y });
450
+ });
451
+ Be.displayName = Kt;
452
+ function Vt(e, { select: t = !1 } = {}) {
453
+ const n = document.activeElement;
454
+ for (const r of e)
455
+ if (T(r, { select: t }), document.activeElement !== n) return;
456
+ }
457
+ function Yt(e) {
458
+ const t = Ue(e), n = Ne(t, e), r = Ne(t.reverse(), e);
459
+ return [n, r];
460
+ }
461
+ function Ue(e) {
462
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
463
+ acceptNode: (r) => {
464
+ const o = r.tagName === "INPUT" && r.type === "hidden";
465
+ return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
466
+ }
467
+ });
468
+ for (; n.nextNode(); ) t.push(n.currentNode);
469
+ return t;
470
+ }
471
+ function Ne(e, t) {
472
+ for (const n of e)
473
+ if (!Xt(n, { upTo: t })) return n;
474
+ }
475
+ function Xt(e, { upTo: t }) {
476
+ if (getComputedStyle(e).visibility === "hidden") return !0;
477
+ for (; e; ) {
478
+ if (t !== void 0 && e === t) return !1;
479
+ if (getComputedStyle(e).display === "none") return !0;
480
+ e = e.parentElement;
481
+ }
482
+ return !1;
483
+ }
484
+ function Zt(e) {
485
+ return e instanceof HTMLInputElement && "select" in e;
486
+ }
487
+ function T(e, { select: t = !1 } = {}) {
488
+ if (e && e.focus) {
489
+ const n = document.activeElement;
490
+ e.focus({ preventScroll: !0 }), e !== n && Zt(e) && t && e.select();
491
+ }
492
+ }
493
+ var Re = qt();
494
+ function qt() {
495
+ let e = [];
496
+ return {
497
+ add(t) {
498
+ const n = e[0];
499
+ t !== n && n?.pause(), e = De(e, t), e.unshift(t);
500
+ },
501
+ remove(t) {
502
+ e = De(e, t), e[0]?.resume();
503
+ }
504
+ };
505
+ }
506
+ function De(e, t) {
507
+ const n = [...e], r = n.indexOf(t);
508
+ return r !== -1 && n.splice(r, 1), n;
509
+ }
510
+ function Qt(e) {
511
+ return e.filter((t) => t.tagName !== "A");
512
+ }
513
+ var Jt = "Portal", ze = i.forwardRef((e, t) => {
514
+ const { container: n, ...r } = e, [o, a] = i.useState(!1);
515
+ G(() => a(!0), []);
516
+ const c = n || o && globalThis?.document?.body;
517
+ return c ? yt.createPortal(/* @__PURE__ */ l(k.div, { ...r, ref: t }), c) : null;
518
+ });
519
+ ze.displayName = Jt;
520
+ var ie = 0;
521
+ function en() {
522
+ i.useEffect(() => {
523
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
524
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Pe()), document.body.insertAdjacentElement("beforeend", e[1] ?? Pe()), ie++, () => {
525
+ ie === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ie--;
526
+ };
527
+ }, []);
528
+ }
529
+ function Pe() {
530
+ const e = document.createElement("span");
531
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
532
+ }
533
+ var P = function() {
534
+ return P = Object.assign || function(t) {
535
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
536
+ n = arguments[r];
537
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
538
+ }
539
+ return t;
540
+ }, P.apply(this, arguments);
541
+ };
542
+ function $e(e, t) {
543
+ var n = {};
544
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
545
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
546
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
547
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
548
+ return n;
549
+ }
550
+ function tn(e, t, n) {
551
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
552
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
553
+ return e.concat(a || Array.prototype.slice.call(t));
554
+ }
555
+ var q = "right-scroll-bar-position", Q = "width-before-scroll-bar", nn = "with-scroll-bars-hidden", rn = "--removed-body-scroll-bar-size";
556
+ function se(e, t) {
557
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
558
+ }
559
+ function on(e, t) {
560
+ var n = vt(function() {
561
+ return {
562
+ // value
563
+ value: e,
564
+ // last callback
565
+ callback: t,
566
+ // "memoized" public interface
567
+ facade: {
568
+ get current() {
569
+ return n.value;
570
+ },
571
+ set current(r) {
572
+ var o = n.value;
573
+ o !== r && (n.value = r, n.callback(r, o));
574
+ }
575
+ }
576
+ };
577
+ })[0];
578
+ return n.callback = t, n.facade;
579
+ }
580
+ var an = typeof window < "u" ? i.useLayoutEffect : i.useEffect, Oe = /* @__PURE__ */ new WeakMap();
581
+ function sn(e, t) {
582
+ var n = on(null, function(r) {
583
+ return e.forEach(function(o) {
584
+ return se(o, r);
585
+ });
586
+ });
587
+ return an(function() {
588
+ var r = Oe.get(n);
589
+ if (r) {
590
+ var o = new Set(r), a = new Set(e), c = n.current;
591
+ o.forEach(function(s) {
592
+ a.has(s) || se(s, null);
593
+ }), a.forEach(function(s) {
594
+ o.has(s) || se(s, c);
595
+ });
596
+ }
597
+ Oe.set(n, e);
598
+ }, [e]), n;
599
+ }
600
+ function cn(e) {
601
+ return e;
602
+ }
603
+ function un(e, t) {
604
+ t === void 0 && (t = cn);
605
+ var n = [], r = !1, o = {
606
+ read: function() {
607
+ if (r)
608
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
609
+ return n.length ? n[n.length - 1] : e;
610
+ },
611
+ useMedium: function(a) {
612
+ var c = t(a, r);
613
+ return n.push(c), function() {
614
+ n = n.filter(function(s) {
615
+ return s !== c;
616
+ });
617
+ };
618
+ },
619
+ assignSyncMedium: function(a) {
620
+ for (r = !0; n.length; ) {
621
+ var c = n;
622
+ n = [], c.forEach(a);
623
+ }
624
+ n = {
625
+ push: function(s) {
626
+ return a(s);
627
+ },
628
+ filter: function() {
629
+ return n;
630
+ }
631
+ };
632
+ },
633
+ assignMedium: function(a) {
634
+ r = !0;
635
+ var c = [];
636
+ if (n.length) {
637
+ var s = n;
638
+ n = [], s.forEach(a), c = n;
639
+ }
640
+ var v = function() {
641
+ var f = c;
642
+ c = [], f.forEach(a);
643
+ }, d = function() {
644
+ return Promise.resolve().then(v);
645
+ };
646
+ d(), n = {
647
+ push: function(f) {
648
+ c.push(f), d();
649
+ },
650
+ filter: function(f) {
651
+ return c = c.filter(f), n;
652
+ }
653
+ };
654
+ }
655
+ };
656
+ return o;
657
+ }
658
+ function ln(e) {
659
+ e === void 0 && (e = {});
660
+ var t = un(null);
661
+ return t.options = P({ async: !0, ssr: !1 }, e), t;
662
+ }
663
+ var Ge = function(e) {
664
+ var t = e.sideCar, n = $e(e, ["sideCar"]);
665
+ if (!t)
666
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
667
+ var r = t.read();
668
+ if (!r)
669
+ throw new Error("Sidecar medium not found");
670
+ return i.createElement(r, P({}, n));
671
+ };
672
+ Ge.isSideCarExport = !0;
673
+ function dn(e, t) {
674
+ return e.useMedium(t), Ge;
675
+ }
676
+ var je = ln(), ce = function() {
677
+ }, te = i.forwardRef(function(e, t) {
678
+ var n = i.useRef(null), r = i.useState({
679
+ onScrollCapture: ce,
680
+ onWheelCapture: ce,
681
+ onTouchMoveCapture: ce
682
+ }), o = r[0], a = r[1], c = e.forwardProps, s = e.children, v = e.className, d = e.removeScrollBar, f = e.enabled, m = e.shards, p = e.sideCar, g = e.noRelative, y = e.noIsolation, u = e.inert, h = e.allowPinchZoom, b = e.as, C = b === void 0 ? "div" : b, w = e.gapMode, x = $e(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = p, R = sn([n, t]), E = P(P({}, x), o);
683
+ return i.createElement(
684
+ i.Fragment,
685
+ null,
686
+ f && i.createElement(N, { sideCar: je, removeScrollBar: d, shards: m, noRelative: g, noIsolation: y, inert: u, setCallbacks: a, allowPinchZoom: !!h, lockRef: n, gapMode: w }),
687
+ c ? i.cloneElement(i.Children.only(s), P(P({}, E), { ref: R })) : i.createElement(C, P({}, E, { className: v, ref: R }), s)
688
+ );
689
+ });
690
+ te.defaultProps = {
691
+ enabled: !0,
692
+ removeScrollBar: !0,
693
+ inert: !1
694
+ };
695
+ te.classNames = {
696
+ fullWidth: Q,
697
+ zeroRight: q
698
+ };
699
+ var fn = function() {
700
+ if (typeof __webpack_nonce__ < "u")
701
+ return __webpack_nonce__;
702
+ };
703
+ function mn() {
704
+ if (!document)
705
+ return null;
706
+ var e = document.createElement("style");
707
+ e.type = "text/css";
708
+ var t = fn();
709
+ return t && e.setAttribute("nonce", t), e;
710
+ }
711
+ function vn(e, t) {
712
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
713
+ }
714
+ function pn(e) {
715
+ var t = document.head || document.getElementsByTagName("head")[0];
716
+ t.appendChild(e);
717
+ }
718
+ var gn = function() {
719
+ var e = 0, t = null;
720
+ return {
721
+ add: function(n) {
722
+ e == 0 && (t = mn()) && (vn(t, n), pn(t)), e++;
723
+ },
724
+ remove: function() {
725
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
726
+ }
727
+ };
728
+ }, hn = function() {
729
+ var e = gn();
730
+ return function(t, n) {
731
+ i.useEffect(function() {
732
+ return e.add(t), function() {
733
+ e.remove();
734
+ };
735
+ }, [t && n]);
736
+ };
737
+ }, He = function() {
738
+ var e = hn(), t = function(n) {
739
+ var r = n.styles, o = n.dynamic;
740
+ return e(r, o), null;
741
+ };
742
+ return t;
743
+ }, bn = {
744
+ left: 0,
745
+ top: 0,
746
+ right: 0,
747
+ gap: 0
748
+ }, ue = function(e) {
749
+ return parseInt(e || "", 10) || 0;
750
+ }, yn = function(e) {
751
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
752
+ return [ue(n), ue(r), ue(o)];
753
+ }, En = function(e) {
754
+ if (e === void 0 && (e = "margin"), typeof window > "u")
755
+ return bn;
756
+ var t = yn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
757
+ return {
758
+ left: t[0],
759
+ top: t[1],
760
+ right: t[2],
761
+ gap: Math.max(0, r - n + t[2] - t[0])
762
+ };
763
+ }, Cn = He(), z = "data-scroll-locked", wn = function(e, t, n, r) {
764
+ var o = e.left, a = e.top, c = e.right, s = e.gap;
765
+ return n === void 0 && (n = "margin"), `
766
+ .`.concat(nn, ` {
767
+ overflow: hidden `).concat(r, `;
768
+ padding-right: `).concat(s, "px ").concat(r, `;
769
+ }
770
+ body[`).concat(z, `] {
771
+ overflow: hidden `).concat(r, `;
772
+ overscroll-behavior: contain;
773
+ `).concat([
774
+ t && "position: relative ".concat(r, ";"),
775
+ n === "margin" && `
776
+ padding-left: `.concat(o, `px;
777
+ padding-top: `).concat(a, `px;
778
+ padding-right: `).concat(c, `px;
779
+ margin-left:0;
780
+ margin-top:0;
781
+ margin-right: `).concat(s, "px ").concat(r, `;
782
+ `),
783
+ n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
784
+ ].filter(Boolean).join(""), `
785
+ }
786
+
787
+ .`).concat(q, ` {
788
+ right: `).concat(s, "px ").concat(r, `;
789
+ }
790
+
791
+ .`).concat(Q, ` {
792
+ margin-right: `).concat(s, "px ").concat(r, `;
793
+ }
794
+
795
+ .`).concat(q, " .").concat(q, ` {
796
+ right: 0 `).concat(r, `;
797
+ }
798
+
799
+ .`).concat(Q, " .").concat(Q, ` {
800
+ margin-right: 0 `).concat(r, `;
801
+ }
802
+
803
+ body[`).concat(z, `] {
804
+ `).concat(rn, ": ").concat(s, `px;
805
+ }
806
+ `);
807
+ }, ke = function() {
808
+ var e = parseInt(document.body.getAttribute(z) || "0", 10);
809
+ return isFinite(e) ? e : 0;
810
+ }, xn = function() {
811
+ i.useEffect(function() {
812
+ return document.body.setAttribute(z, (ke() + 1).toString()), function() {
813
+ var e = ke() - 1;
814
+ e <= 0 ? document.body.removeAttribute(z) : document.body.setAttribute(z, e.toString());
815
+ };
816
+ }, []);
817
+ }, Sn = function(e) {
818
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
819
+ xn();
820
+ var a = i.useMemo(function() {
821
+ return En(o);
822
+ }, [o]);
823
+ return i.createElement(Cn, { styles: wn(a, !t, o, n ? "" : "!important") });
824
+ }, fe = !1;
825
+ if (typeof window < "u")
826
+ try {
827
+ var V = Object.defineProperty({}, "passive", {
828
+ get: function() {
829
+ return fe = !0, !0;
830
+ }
831
+ });
832
+ window.addEventListener("test", V, V), window.removeEventListener("test", V, V);
833
+ } catch {
834
+ fe = !1;
835
+ }
836
+ var W = fe ? { passive: !1 } : !1, Nn = function(e) {
837
+ return e.tagName === "TEXTAREA";
838
+ }, Ke = function(e, t) {
839
+ if (!(e instanceof Element))
840
+ return !1;
841
+ var n = window.getComputedStyle(e);
842
+ return (
843
+ // not-not-scrollable
844
+ n[t] !== "hidden" && // contains scroll inside self
845
+ !(n.overflowY === n.overflowX && !Nn(e) && n[t] === "visible")
846
+ );
847
+ }, Rn = function(e) {
848
+ return Ke(e, "overflowY");
849
+ }, Dn = function(e) {
850
+ return Ke(e, "overflowX");
851
+ }, Te = function(e, t) {
852
+ var n = t.ownerDocument, r = t;
853
+ do {
854
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
855
+ var o = Ve(e, r);
856
+ if (o) {
857
+ var a = Ye(e, r), c = a[1], s = a[2];
858
+ if (c > s)
859
+ return !0;
860
+ }
861
+ r = r.parentNode;
862
+ } while (r && r !== n.body);
863
+ return !1;
864
+ }, Pn = function(e) {
865
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
866
+ return [
867
+ t,
868
+ n,
869
+ r
870
+ ];
871
+ }, On = function(e) {
872
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
873
+ return [
874
+ t,
875
+ n,
876
+ r
877
+ ];
878
+ }, Ve = function(e, t) {
879
+ return e === "v" ? Rn(t) : Dn(t);
880
+ }, Ye = function(e, t) {
881
+ return e === "v" ? Pn(t) : On(t);
882
+ }, kn = function(e, t) {
883
+ return e === "h" && t === "rtl" ? -1 : 1;
884
+ }, Tn = function(e, t, n, r, o) {
885
+ var a = kn(e, window.getComputedStyle(t).direction), c = a * r, s = n.target, v = t.contains(s), d = !1, f = c > 0, m = 0, p = 0;
886
+ do {
887
+ if (!s)
888
+ break;
889
+ var g = Ye(e, s), y = g[0], u = g[1], h = g[2], b = u - h - a * y;
890
+ (y || b) && Ve(e, s) && (m += b, p += y);
891
+ var C = s.parentNode;
892
+ s = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
893
+ } while (
894
+ // portaled content
895
+ !v && s !== document.body || // self content
896
+ v && (t.contains(s) || t === s)
897
+ );
898
+ return (f && Math.abs(m) < 1 || !f && Math.abs(p) < 1) && (d = !0), d;
899
+ }, Y = function(e) {
900
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
901
+ }, Ie = function(e) {
902
+ return [e.deltaX, e.deltaY];
903
+ }, Ae = function(e) {
904
+ return e && "current" in e ? e.current : e;
905
+ }, In = function(e, t) {
906
+ return e[0] === t[0] && e[1] === t[1];
907
+ }, An = function(e) {
908
+ return `
909
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
910
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
911
+ `);
912
+ }, Mn = 0, B = [];
913
+ function _n(e) {
914
+ var t = i.useRef([]), n = i.useRef([0, 0]), r = i.useRef(), o = i.useState(Mn++)[0], a = i.useState(He)[0], c = i.useRef(e);
915
+ i.useEffect(function() {
916
+ c.current = e;
917
+ }, [e]), i.useEffect(function() {
918
+ if (e.inert) {
919
+ document.body.classList.add("block-interactivity-".concat(o));
920
+ var u = tn([e.lockRef.current], (e.shards || []).map(Ae), !0).filter(Boolean);
921
+ return u.forEach(function(h) {
922
+ return h.classList.add("allow-interactivity-".concat(o));
923
+ }), function() {
924
+ document.body.classList.remove("block-interactivity-".concat(o)), u.forEach(function(h) {
925
+ return h.classList.remove("allow-interactivity-".concat(o));
926
+ });
927
+ };
928
+ }
929
+ }, [e.inert, e.lockRef.current, e.shards]);
930
+ var s = i.useCallback(function(u, h) {
931
+ if ("touches" in u && u.touches.length === 2 || u.type === "wheel" && u.ctrlKey)
932
+ return !c.current.allowPinchZoom;
933
+ var b = Y(u), C = n.current, w = "deltaX" in u ? u.deltaX : C[0] - b[0], x = "deltaY" in u ? u.deltaY : C[1] - b[1], N, R = u.target, E = Math.abs(w) > Math.abs(x) ? "h" : "v";
934
+ if ("touches" in u && E === "h" && R.type === "range")
935
+ return !1;
936
+ var A = window.getSelection(), F = A && A.anchorNode, $ = F ? F === R || F.contains(R) : !1;
937
+ if ($)
938
+ return !1;
939
+ var H = Te(E, R);
940
+ if (!H)
941
+ return !0;
942
+ if (H ? N = E : (N = E === "v" ? "h" : "v", H = Te(E, R)), !H)
943
+ return !1;
944
+ if (!r.current && "changedTouches" in u && (w || x) && (r.current = N), !N)
945
+ return !0;
946
+ var ye = r.current || N;
947
+ return Tn(ye, h, u, ye === "h" ? w : x);
948
+ }, []), v = i.useCallback(function(u) {
949
+ var h = u;
950
+ if (!(!B.length || B[B.length - 1] !== a)) {
951
+ var b = "deltaY" in h ? Ie(h) : Y(h), C = t.current.filter(function(N) {
952
+ return N.name === h.type && (N.target === h.target || h.target === N.shadowParent) && In(N.delta, b);
953
+ })[0];
954
+ if (C && C.should) {
955
+ h.cancelable && h.preventDefault();
956
+ return;
957
+ }
958
+ if (!C) {
959
+ var w = (c.current.shards || []).map(Ae).filter(Boolean).filter(function(N) {
960
+ return N.contains(h.target);
961
+ }), x = w.length > 0 ? s(h, w[0]) : !c.current.noIsolation;
962
+ x && h.cancelable && h.preventDefault();
963
+ }
964
+ }
965
+ }, []), d = i.useCallback(function(u, h, b, C) {
966
+ var w = { name: u, delta: h, target: b, should: C, shadowParent: Ln(b) };
967
+ t.current.push(w), setTimeout(function() {
968
+ t.current = t.current.filter(function(x) {
969
+ return x !== w;
970
+ });
971
+ }, 1);
972
+ }, []), f = i.useCallback(function(u) {
973
+ n.current = Y(u), r.current = void 0;
974
+ }, []), m = i.useCallback(function(u) {
975
+ d(u.type, Ie(u), u.target, s(u, e.lockRef.current));
976
+ }, []), p = i.useCallback(function(u) {
977
+ d(u.type, Y(u), u.target, s(u, e.lockRef.current));
978
+ }, []);
979
+ i.useEffect(function() {
980
+ return B.push(a), e.setCallbacks({
981
+ onScrollCapture: m,
982
+ onWheelCapture: m,
983
+ onTouchMoveCapture: p
984
+ }), document.addEventListener("wheel", v, W), document.addEventListener("touchmove", v, W), document.addEventListener("touchstart", f, W), function() {
985
+ B = B.filter(function(u) {
986
+ return u !== a;
987
+ }), document.removeEventListener("wheel", v, W), document.removeEventListener("touchmove", v, W), document.removeEventListener("touchstart", f, W);
988
+ };
989
+ }, []);
990
+ var g = e.removeScrollBar, y = e.inert;
991
+ return i.createElement(
992
+ i.Fragment,
993
+ null,
994
+ y ? i.createElement(a, { styles: An(o) }) : null,
995
+ g ? i.createElement(Sn, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
996
+ );
997
+ }
998
+ function Ln(e) {
999
+ for (var t = null; e !== null; )
1000
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1001
+ return t;
1002
+ }
1003
+ const Fn = dn(je, _n);
1004
+ var Xe = i.forwardRef(function(e, t) {
1005
+ return i.createElement(te, P({}, e, { ref: t, sideCar: Fn }));
1006
+ });
1007
+ Xe.classNames = te.classNames;
1008
+ var Wn = function(e) {
1009
+ if (typeof document > "u")
1010
+ return null;
1011
+ var t = Array.isArray(e) ? e[0] : e;
1012
+ return t.ownerDocument.body;
1013
+ }, U = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {}, le = 0, Ze = function(e) {
1014
+ return e && (e.host || Ze(e.parentNode));
1015
+ }, Bn = function(e, t) {
1016
+ return t.map(function(n) {
1017
+ if (e.contains(n))
1018
+ return n;
1019
+ var r = Ze(n);
1020
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
1021
+ }).filter(function(n) {
1022
+ return !!n;
1023
+ });
1024
+ }, Un = function(e, t, n, r) {
1025
+ var o = Bn(t, Array.isArray(e) ? e : [e]);
1026
+ Z[n] || (Z[n] = /* @__PURE__ */ new WeakMap());
1027
+ var a = Z[n], c = [], s = /* @__PURE__ */ new Set(), v = new Set(o), d = function(m) {
1028
+ !m || s.has(m) || (s.add(m), d(m.parentNode));
1029
+ };
1030
+ o.forEach(d);
1031
+ var f = function(m) {
1032
+ !m || v.has(m) || Array.prototype.forEach.call(m.children, function(p) {
1033
+ if (s.has(p))
1034
+ f(p);
1035
+ else
1036
+ try {
1037
+ var g = p.getAttribute(r), y = g !== null && g !== "false", u = (U.get(p) || 0) + 1, h = (a.get(p) || 0) + 1;
1038
+ U.set(p, u), a.set(p, h), c.push(p), u === 1 && y && X.set(p, !0), h === 1 && p.setAttribute(n, "true"), y || p.setAttribute(r, "true");
1039
+ } catch (b) {
1040
+ console.error("aria-hidden: cannot operate on ", p, b);
1041
+ }
1042
+ });
1043
+ };
1044
+ return f(t), s.clear(), le++, function() {
1045
+ c.forEach(function(m) {
1046
+ var p = U.get(m) - 1, g = a.get(m) - 1;
1047
+ U.set(m, p), a.set(m, g), p || (X.has(m) || m.removeAttribute(r), X.delete(m)), g || m.removeAttribute(n);
1048
+ }), le--, le || (U = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {});
1049
+ };
1050
+ }, zn = function(e, t, n) {
1051
+ n === void 0 && (n = "data-aria-hidden");
1052
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Wn(e);
1053
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Un(r, o, n, "aria-hidden")) : function() {
1054
+ return null;
1055
+ };
1056
+ }, ne = "Dialog", [qe, kr] = Rt(ne), [$n, D] = qe(ne), Qe = (e) => {
1057
+ const {
1058
+ __scopeDialog: t,
1059
+ children: n,
1060
+ open: r,
1061
+ defaultOpen: o,
1062
+ onOpenChange: a,
1063
+ modal: c = !0
1064
+ } = e, s = i.useRef(null), v = i.useRef(null), [d, f] = kt({
1065
+ prop: r,
1066
+ defaultProp: o ?? !1,
1067
+ onChange: a,
1068
+ caller: ne
1069
+ });
1070
+ return /* @__PURE__ */ l(
1071
+ $n,
1072
+ {
1073
+ scope: t,
1074
+ triggerRef: s,
1075
+ contentRef: v,
1076
+ contentId: re(),
1077
+ titleId: re(),
1078
+ descriptionId: re(),
1079
+ open: d,
1080
+ onOpenChange: f,
1081
+ onOpenToggle: i.useCallback(() => f((m) => !m), [f]),
1082
+ modal: c,
1083
+ children: n
1084
+ }
1085
+ );
1086
+ };
1087
+ Qe.displayName = ne;
1088
+ var Je = "DialogTrigger", et = i.forwardRef(
1089
+ (e, t) => {
1090
+ const { __scopeDialog: n, ...r } = e, o = D(Je, n), a = L(t, o.triggerRef);
1091
+ return /* @__PURE__ */ l(
1092
+ k.button,
1093
+ {
1094
+ type: "button",
1095
+ "aria-haspopup": "dialog",
1096
+ "aria-expanded": o.open,
1097
+ "aria-controls": o.contentId,
1098
+ "data-state": he(o.open),
1099
+ ...r,
1100
+ ref: a,
1101
+ onClick: I(e.onClick, o.onOpenToggle)
1102
+ }
1103
+ );
1104
+ }
1105
+ );
1106
+ et.displayName = Je;
1107
+ var pe = "DialogPortal", [Gn, tt] = qe(pe, {
1108
+ forceMount: void 0
1109
+ }), nt = (e) => {
1110
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = D(pe, t);
1111
+ return /* @__PURE__ */ l(Gn, { scope: t, forceMount: n, children: i.Children.map(r, (c) => /* @__PURE__ */ l(ee, { present: n || a.open, children: /* @__PURE__ */ l(ze, { asChild: !0, container: o, children: c }) })) });
1112
+ };
1113
+ nt.displayName = pe;
1114
+ var J = "DialogOverlay", rt = i.forwardRef(
1115
+ (e, t) => {
1116
+ const n = tt(J, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = D(J, e.__scopeDialog);
1117
+ return a.modal ? /* @__PURE__ */ l(ee, { present: r || a.open, children: /* @__PURE__ */ l(Hn, { ...o, ref: t }) }) : null;
1118
+ }
1119
+ );
1120
+ rt.displayName = J;
1121
+ var jn = Me("DialogOverlay.RemoveScroll"), Hn = i.forwardRef(
1122
+ (e, t) => {
1123
+ const { __scopeDialog: n, ...r } = e, o = D(J, n);
1124
+ return (
1125
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1126
+ // ie. when `Overlay` and `Content` are siblings
1127
+ /* @__PURE__ */ l(Xe, { as: jn, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l(
1128
+ k.div,
1129
+ {
1130
+ "data-state": he(o.open),
1131
+ ...r,
1132
+ ref: t,
1133
+ style: { pointerEvents: "auto", ...r.style }
1134
+ }
1135
+ ) })
1136
+ );
1137
+ }
1138
+ ), M = "DialogContent", ot = i.forwardRef(
1139
+ (e, t) => {
1140
+ const n = tt(M, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = D(M, e.__scopeDialog);
1141
+ return /* @__PURE__ */ l(ee, { present: r || a.open, children: a.modal ? /* @__PURE__ */ l(Kn, { ...o, ref: t }) : /* @__PURE__ */ l(Vn, { ...o, ref: t }) });
1142
+ }
1143
+ );
1144
+ ot.displayName = M;
1145
+ var Kn = i.forwardRef(
1146
+ (e, t) => {
1147
+ const n = D(M, e.__scopeDialog), r = i.useRef(null), o = L(t, n.contentRef, r);
1148
+ return i.useEffect(() => {
1149
+ const a = r.current;
1150
+ if (a) return zn(a);
1151
+ }, []), /* @__PURE__ */ l(
1152
+ at,
1153
+ {
1154
+ ...e,
1155
+ ref: o,
1156
+ trapFocus: n.open,
1157
+ disableOutsidePointerEvents: !0,
1158
+ onCloseAutoFocus: I(e.onCloseAutoFocus, (a) => {
1159
+ a.preventDefault(), n.triggerRef.current?.focus();
1160
+ }),
1161
+ onPointerDownOutside: I(e.onPointerDownOutside, (a) => {
1162
+ const c = a.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
1163
+ (c.button === 2 || s) && a.preventDefault();
1164
+ }),
1165
+ onFocusOutside: I(
1166
+ e.onFocusOutside,
1167
+ (a) => a.preventDefault()
1168
+ )
1169
+ }
1170
+ );
1171
+ }
1172
+ ), Vn = i.forwardRef(
1173
+ (e, t) => {
1174
+ const n = D(M, e.__scopeDialog), r = i.useRef(!1), o = i.useRef(!1);
1175
+ return /* @__PURE__ */ l(
1176
+ at,
1177
+ {
1178
+ ...e,
1179
+ ref: t,
1180
+ trapFocus: !1,
1181
+ disableOutsidePointerEvents: !1,
1182
+ onCloseAutoFocus: (a) => {
1183
+ e.onCloseAutoFocus?.(a), a.defaultPrevented || (r.current || n.triggerRef.current?.focus(), a.preventDefault()), r.current = !1, o.current = !1;
1184
+ },
1185
+ onInteractOutside: (a) => {
1186
+ e.onInteractOutside?.(a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
1187
+ const c = a.target;
1188
+ n.triggerRef.current?.contains(c) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
1189
+ }
1190
+ }
1191
+ );
1192
+ }
1193
+ ), at = i.forwardRef(
1194
+ (e, t) => {
1195
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, s = D(M, n), v = i.useRef(null), d = L(t, v);
1196
+ return en(), /* @__PURE__ */ O(Ee, { children: [
1197
+ /* @__PURE__ */ l(
1198
+ Be,
1199
+ {
1200
+ asChild: !0,
1201
+ loop: !0,
1202
+ trapped: r,
1203
+ onMountAutoFocus: o,
1204
+ onUnmountAutoFocus: a,
1205
+ children: /* @__PURE__ */ l(
1206
+ Fe,
1207
+ {
1208
+ role: "dialog",
1209
+ id: s.contentId,
1210
+ "aria-describedby": s.descriptionId,
1211
+ "aria-labelledby": s.titleId,
1212
+ "data-state": he(s.open),
1213
+ ...c,
1214
+ ref: d,
1215
+ onDismiss: () => s.onOpenChange(!1)
1216
+ }
1217
+ )
1218
+ }
1219
+ ),
1220
+ /* @__PURE__ */ O(Ee, { children: [
1221
+ /* @__PURE__ */ l(Yn, { titleId: s.titleId }),
1222
+ /* @__PURE__ */ l(Zn, { contentRef: v, descriptionId: s.descriptionId })
1223
+ ] })
1224
+ ] });
1225
+ }
1226
+ ), ge = "DialogTitle", it = i.forwardRef(
1227
+ (e, t) => {
1228
+ const { __scopeDialog: n, ...r } = e, o = D(ge, n);
1229
+ return /* @__PURE__ */ l(k.h2, { id: o.titleId, ...r, ref: t });
1230
+ }
1231
+ );
1232
+ it.displayName = ge;
1233
+ var st = "DialogDescription", ct = i.forwardRef(
1234
+ (e, t) => {
1235
+ const { __scopeDialog: n, ...r } = e, o = D(st, n);
1236
+ return /* @__PURE__ */ l(k.p, { id: o.descriptionId, ...r, ref: t });
1237
+ }
1238
+ );
1239
+ ct.displayName = st;
1240
+ var ut = "DialogClose", lt = i.forwardRef(
1241
+ (e, t) => {
1242
+ const { __scopeDialog: n, ...r } = e, o = D(ut, n);
1243
+ return /* @__PURE__ */ l(
1244
+ k.button,
1245
+ {
1246
+ type: "button",
1247
+ ...r,
1248
+ ref: t,
1249
+ onClick: I(e.onClick, () => o.onOpenChange(!1))
1250
+ }
1251
+ );
1252
+ }
1253
+ );
1254
+ lt.displayName = ut;
1255
+ function he(e) {
1256
+ return e ? "open" : "closed";
1257
+ }
1258
+ var dt = "DialogTitleWarning", [Tr, ft] = Nt(dt, {
1259
+ contentName: M,
1260
+ titleName: ge,
1261
+ docsSlug: "dialog"
1262
+ }), Yn = ({ titleId: e }) => {
1263
+ const t = ft(dt), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1264
+
1265
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1266
+
1267
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
1268
+ return i.useEffect(() => {
1269
+ e && (document.getElementById(e) || console.error(n));
1270
+ }, [n, e]), null;
1271
+ }, Xn = "DialogDescriptionWarning", Zn = ({ contentRef: e, descriptionId: t }) => {
1272
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ft(Xn).contentName}}.`;
1273
+ return i.useEffect(() => {
1274
+ const o = e.current?.getAttribute("aria-describedby");
1275
+ t && o && (document.getElementById(t) || console.warn(r));
1276
+ }, [r, e, t]), null;
1277
+ }, qn = Qe, Qn = et, Jn = nt, er = rt, tr = ot, nr = it, rr = ct, be = lt;
1278
+ function or({
1279
+ ...e
1280
+ }) {
1281
+ return /* @__PURE__ */ l(qn, { "data-slot": "dialog", ...e });
1282
+ }
1283
+ function Ir({
1284
+ ...e
1285
+ }) {
1286
+ return /* @__PURE__ */ l(Qn, { "data-slot": "dialog-trigger", ...e });
1287
+ }
1288
+ function ar({
1289
+ ...e
1290
+ }) {
1291
+ return /* @__PURE__ */ l(Jn, { "data-slot": "dialog-portal", ...e });
1292
+ }
1293
+ function Ar({
1294
+ ...e
1295
+ }) {
1296
+ return /* @__PURE__ */ l(be, { "data-slot": "dialog-close", ...e });
1297
+ }
1298
+ function ir({
1299
+ className: e,
1300
+ ...t
1301
+ }) {
1302
+ return /* @__PURE__ */ l(
1303
+ er,
1304
+ {
1305
+ "data-slot": "dialog-overlay",
1306
+ className: S("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-[var(--z-modal-backdrop)]", e),
1307
+ ...t
1308
+ }
1309
+ );
1310
+ }
1311
+ function sr({
1312
+ className: e,
1313
+ children: t,
1314
+ showCloseButton: n = !0,
1315
+ ...r
1316
+ }) {
1317
+ return /* @__PURE__ */ O(ar, { children: [
1318
+ /* @__PURE__ */ l(ir, {}),
1319
+ /* @__PURE__ */ O(
1320
+ tr,
1321
+ {
1322
+ "data-slot": "dialog-content",
1323
+ className: S(
1324
+ "bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-[var(--z-modal)] w-full -translate-x-1/2 -translate-y-1/2",
1325
+ e
1326
+ ),
1327
+ ...r,
1328
+ children: [
1329
+ t,
1330
+ n && /* @__PURE__ */ l(be, { "data-slot": "dialog-close", asChild: !0, children: /* @__PURE__ */ O(me, { variant: "ghost", className: "absolute top-2 right-2", size: "icon", children: [
1331
+ /* @__PURE__ */ l(ve, { icon: pt, strokeWidth: 2 }),
1332
+ /* @__PURE__ */ l("span", { className: "sr-only", children: "Close" })
1333
+ ] }) })
1334
+ ]
1335
+ }
1336
+ )
1337
+ ] });
1338
+ }
1339
+ function cr({ className: e, ...t }) {
1340
+ return /* @__PURE__ */ l(
1341
+ "div",
1342
+ {
1343
+ "data-slot": "dialog-header",
1344
+ className: S("gap-1 flex flex-col", e),
1345
+ ...t
1346
+ }
1347
+ );
1348
+ }
1349
+ function Mr({
1350
+ className: e,
1351
+ showCloseButton: t = !1,
1352
+ children: n,
1353
+ ...r
1354
+ }) {
1355
+ return /* @__PURE__ */ O(
1356
+ "div",
1357
+ {
1358
+ "data-slot": "dialog-footer",
1359
+ className: S(
1360
+ "gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
1361
+ e
1362
+ ),
1363
+ ...r,
1364
+ children: [
1365
+ n,
1366
+ t && /* @__PURE__ */ l(be, { asChild: !0, children: /* @__PURE__ */ l(me, { variant: "outline", children: "Close" }) })
1367
+ ]
1368
+ }
1369
+ );
1370
+ }
1371
+ function ur({
1372
+ className: e,
1373
+ ...t
1374
+ }) {
1375
+ return /* @__PURE__ */ l(
1376
+ nr,
1377
+ {
1378
+ "data-slot": "dialog-title",
1379
+ className: S("text-sm font-medium", e),
1380
+ ...t
1381
+ }
1382
+ );
1383
+ }
1384
+ function lr({
1385
+ className: e,
1386
+ ...t
1387
+ }) {
1388
+ return /* @__PURE__ */ l(
1389
+ rr,
1390
+ {
1391
+ "data-slot": "dialog-description",
1392
+ className: S("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3", e),
1393
+ ...t
1394
+ }
1395
+ );
1396
+ }
1397
+ const mt = i.forwardRef(
1398
+ ({ className: e, type: t, ...n }, r) => /* @__PURE__ */ l(
1399
+ "input",
1400
+ {
1401
+ type: t,
1402
+ className: S(
1403
+ "flex h-7 w-full rounded-md border border-input bg-background px-3 py-1.5 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1404
+ e
1405
+ ),
1406
+ ref: r,
1407
+ ...n
1408
+ }
1409
+ )
1410
+ );
1411
+ mt.displayName = "Input";
1412
+ function dr({ className: e, ...t }) {
1413
+ return /* @__PURE__ */ l(
1414
+ "textarea",
1415
+ {
1416
+ "data-slot": "textarea",
1417
+ className: S(
1418
+ "border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-sm transition-colors focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",
1419
+ e
1420
+ ),
1421
+ ...t
1422
+ }
1423
+ );
1424
+ }
1425
+ function fr({ className: e, ...t }) {
1426
+ return /* @__PURE__ */ l(
1427
+ "div",
1428
+ {
1429
+ "data-slot": "input-group",
1430
+ role: "group",
1431
+ className: S(
1432
+ "border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot][aria-invalid=true]]:ring-[2px] has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-3 has-[>[data-align=inline-start]]:[&>input]:pl-3 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto",
1433
+ e
1434
+ ),
1435
+ ...t
1436
+ }
1437
+ );
1438
+ }
1439
+ const mr = _e(
1440
+ "text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-1.5 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5 flex cursor-text items-center justify-center select-none shrink-0",
1441
+ {
1442
+ variants: {
1443
+ align: {
1444
+ "inline-start": "px-3 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem] order-first",
1445
+ "inline-end": "px-3 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem] order-last",
1446
+ "block-start": "px-3 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start",
1447
+ "block-end": "px-3 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start"
1448
+ }
1449
+ },
1450
+ defaultVariants: {
1451
+ align: "inline-start"
1452
+ }
1453
+ }
1454
+ );
1455
+ function vr({
1456
+ className: e,
1457
+ align: t = "inline-start",
1458
+ ...n
1459
+ }) {
1460
+ return /* @__PURE__ */ l(
1461
+ "div",
1462
+ {
1463
+ role: "group",
1464
+ "data-slot": "input-group-addon",
1465
+ "data-align": t,
1466
+ className: S(mr({ align: t }), e),
1467
+ onClick: (r) => {
1468
+ r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
1469
+ },
1470
+ ...n
1471
+ }
1472
+ );
1473
+ }
1474
+ const pr = _e(
1475
+ "gap-2 rounded-md text-xs/relaxed shadow-none flex items-center",
1476
+ {
1477
+ variants: {
1478
+ size: {
1479
+ xs: "h-5 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1 [&>svg:not([class*='size-'])]:size-3",
1480
+ sm: "",
1481
+ "icon-xs": "size-6 p-0 has-[>svg]:p-0",
1482
+ "icon-sm": "size-8 p-0 has-[>svg]:p-0"
1483
+ }
1484
+ },
1485
+ defaultVariants: {
1486
+ size: "xs"
1487
+ }
1488
+ }
1489
+ );
1490
+ function _r({
1491
+ className: e,
1492
+ type: t = "button",
1493
+ variant: n = "ghost",
1494
+ size: r = "xs",
1495
+ ...o
1496
+ }) {
1497
+ return /* @__PURE__ */ l(
1498
+ me,
1499
+ {
1500
+ type: t,
1501
+ "data-size": r,
1502
+ variant: n,
1503
+ className: S(pr({ size: r }), e),
1504
+ ...o
1505
+ }
1506
+ );
1507
+ }
1508
+ function Lr({ className: e, ...t }) {
1509
+ return /* @__PURE__ */ l(
1510
+ "span",
1511
+ {
1512
+ className: S(
1513
+ "text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
1514
+ e
1515
+ ),
1516
+ ...t
1517
+ }
1518
+ );
1519
+ }
1520
+ const gr = i.forwardRef(
1521
+ ({ className: e, ...t }, n) => /* @__PURE__ */ l(
1522
+ mt,
1523
+ {
1524
+ ref: n,
1525
+ "data-slot": "input-group-control",
1526
+ className: S("rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 aria-invalid:ring-0 dark:bg-transparent flex-1", e),
1527
+ ...t
1528
+ }
1529
+ )
1530
+ );
1531
+ gr.displayName = "InputGroupInput";
1532
+ function Fr({
1533
+ className: e,
1534
+ ...t
1535
+ }) {
1536
+ return /* @__PURE__ */ l(
1537
+ dr,
1538
+ {
1539
+ "data-slot": "input-group-control",
1540
+ className: S("rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none", e),
1541
+ ...t
1542
+ }
1543
+ );
1544
+ }
1545
+ function hr({
1546
+ className: e,
1547
+ ...t
1548
+ }) {
1549
+ return /* @__PURE__ */ l(
1550
+ _,
1551
+ {
1552
+ "data-slot": "command",
1553
+ className: S(
1554
+ "bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden",
1555
+ e
1556
+ ),
1557
+ ...t
1558
+ }
1559
+ );
1560
+ }
1561
+ function br({
1562
+ title: e = "Command Palette",
1563
+ description: t = "Search for a command to run...",
1564
+ children: n,
1565
+ className: r,
1566
+ showCloseButton: o = !1,
1567
+ ...a
1568
+ }) {
1569
+ return /* @__PURE__ */ O(or, { ...a, children: [
1570
+ /* @__PURE__ */ O(cr, { className: "sr-only", children: [
1571
+ /* @__PURE__ */ l(ur, { children: e }),
1572
+ /* @__PURE__ */ l(lr, { children: t })
1573
+ ] }),
1574
+ /* @__PURE__ */ l(
1575
+ sr,
1576
+ {
1577
+ className: S("rounded-xl! p-0 overflow-hidden p-0", r),
1578
+ showCloseButton: o,
1579
+ children: n
1580
+ }
1581
+ )
1582
+ ] });
1583
+ }
1584
+ function Wr({
1585
+ className: e,
1586
+ ...t
1587
+ }) {
1588
+ return /* @__PURE__ */ l("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ O(fr, { className: "bg-input/20 dark:bg-input/30", children: [
1589
+ /* @__PURE__ */ l(
1590
+ _.Input,
1591
+ {
1592
+ "data-slot": "command-input",
1593
+ className: S(
1594
+ "w-full text-xs/relaxed outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
1595
+ e
1596
+ ),
1597
+ ...t
1598
+ }
1599
+ ),
1600
+ /* @__PURE__ */ l(vr, { children: /* @__PURE__ */ l(ve, { icon: gt, strokeWidth: 2, className: "size-3.5 shrink-0 opacity-50" }) })
1601
+ ] }) });
1602
+ }
1603
+ function Br({
1604
+ className: e,
1605
+ ...t
1606
+ }) {
1607
+ return /* @__PURE__ */ l(
1608
+ _.List,
1609
+ {
1610
+ "data-slot": "command-list",
1611
+ className: S(
1612
+ "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
1613
+ e
1614
+ ),
1615
+ ...t
1616
+ }
1617
+ );
1618
+ }
1619
+ function Ur({
1620
+ className: e,
1621
+ ...t
1622
+ }) {
1623
+ return /* @__PURE__ */ l(
1624
+ _.Empty,
1625
+ {
1626
+ "data-slot": "command-empty",
1627
+ className: S("py-6 text-center text-xs/relaxed", e),
1628
+ ...t
1629
+ }
1630
+ );
1631
+ }
1632
+ function zr({
1633
+ className: e,
1634
+ ...t
1635
+ }) {
1636
+ return /* @__PURE__ */ l(
1637
+ _.Group,
1638
+ {
1639
+ "data-slot": "command-group",
1640
+ className: S("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", e),
1641
+ ...t
1642
+ }
1643
+ );
1644
+ }
1645
+ function $r({
1646
+ className: e,
1647
+ ...t
1648
+ }) {
1649
+ return /* @__PURE__ */ l(
1650
+ _.Separator,
1651
+ {
1652
+ "data-slot": "command-separator",
1653
+ className: S("bg-border/50 -mx-1 my-1 h-px", e),
1654
+ ...t
1655
+ }
1656
+ );
1657
+ }
1658
+ function Gr({
1659
+ className: e,
1660
+ children: t,
1661
+ ...n
1662
+ }) {
1663
+ return /* @__PURE__ */ O(
1664
+ _.Item,
1665
+ {
1666
+ "data-slot": "command-item",
1667
+ className: S(
1668
+ "data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2.5 py-1.5 text-xs/relaxed outline-hidden select-none [&_svg:not([class*='size-'])]:size-3.5 [[data-slot=dialog-content]_&]:rounded-md group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
1669
+ e
1670
+ ),
1671
+ ...n,
1672
+ children: [
1673
+ t,
1674
+ /* @__PURE__ */ l(ve, { icon: ht, strokeWidth: 2, className: "ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
1675
+ ]
1676
+ }
1677
+ );
1678
+ }
1679
+ function jr({
1680
+ className: e,
1681
+ ...t
1682
+ }) {
1683
+ return /* @__PURE__ */ l(
1684
+ "span",
1685
+ {
1686
+ "data-slot": "command-shortcut",
1687
+ className: S("text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest", e),
1688
+ ...t
1689
+ }
1690
+ );
1691
+ }
1692
+ function Hr({
1693
+ title: e = "Command Palette",
1694
+ description: t = "Search for a command to run...",
1695
+ shortcutEnabled: n = !0,
1696
+ open: r,
1697
+ onOpenChange: o,
1698
+ children: a,
1699
+ ...c
1700
+ }) {
1701
+ const [s, v] = i.useState(!1), d = r !== void 0, f = d ? r : s, m = d ? o : v, p = i.useRef(f);
1702
+ return i.useEffect(() => {
1703
+ p.current = f;
1704
+ }, [f]), i.useEffect(() => {
1705
+ if (!n) return;
1706
+ const g = (y) => {
1707
+ Et(y.target) || y.key === Ct.commandPalette && wt(y) && (y.preventDefault(), m?.(!p.current));
1708
+ };
1709
+ return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
1710
+ }, [n, m]), /* @__PURE__ */ l(
1711
+ br,
1712
+ {
1713
+ ...c,
1714
+ title: e,
1715
+ description: t,
1716
+ open: f,
1717
+ onOpenChange: m,
1718
+ children: /* @__PURE__ */ l(hr, { children: a })
1719
+ }
1720
+ );
1721
+ }
1722
+ export {
1723
+ Lr as $,
1724
+ en as A,
1725
+ Xe as B,
1726
+ hr as C,
1727
+ rr as D,
1728
+ Fe as E,
1729
+ Be as F,
1730
+ gr as G,
1731
+ vr as H,
1732
+ fr as I,
1733
+ _r as J,
1734
+ mt as K,
1735
+ dr as L,
1736
+ or as M,
1737
+ Ir as N,
1738
+ er as O,
1739
+ k as P,
1740
+ Ar as Q,
1741
+ qn as R,
1742
+ sr as S,
1743
+ Qn as T,
1744
+ cr as U,
1745
+ Mr as V,
1746
+ Tr as W,
1747
+ ur as X,
1748
+ lr as Y,
1749
+ ir as Z,
1750
+ ar as _,
1751
+ br as a,
1752
+ Fr as a0,
1753
+ Wr as b,
1754
+ Br as c,
1755
+ Ur as d,
1756
+ zr as e,
1757
+ Gr as f,
1758
+ jr as g,
1759
+ $r as h,
1760
+ Hr as i,
1761
+ Rt as j,
1762
+ kt as k,
1763
+ re as l,
1764
+ I as m,
1765
+ ee as n,
1766
+ G as o,
1767
+ kr as p,
1768
+ tr as q,
1769
+ nr as r,
1770
+ be as s,
1771
+ Jn as t,
1772
+ L as u,
1773
+ j as v,
1774
+ ze as w,
1775
+ Pt as x,
1776
+ zn as y,
1777
+ St as z
1778
+ };