@max-ts/kit 0.26.0 → 0.27.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 (293) hide show
  1. package/lib/components/Accordion/Accordion.d.ts +4 -4
  2. package/lib/components/Accordion/Accordion.d.ts.map +1 -1
  3. package/lib/components/Accordion/styles.css.d.ts.map +1 -1
  4. package/lib/components/AlertDialog/AlertDialog.d.ts +11 -11
  5. package/lib/components/AlertDialog/AlertDialog.d.ts.map +1 -1
  6. package/lib/components/AlertDialog/styles.css.d.ts.map +1 -1
  7. package/lib/components/Avatar/Avatar.d.ts +6 -6
  8. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  9. package/lib/components/Breadcrumb/Breadcrumb.d.ts +6 -6
  10. package/lib/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  11. package/lib/components/Button/Button.d.ts +1 -1
  12. package/lib/components/Button/Button.d.ts.map +1 -1
  13. package/lib/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  14. package/lib/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  15. package/lib/components/ButtonGroup/styles.css.d.ts.map +1 -1
  16. package/lib/components/Calendar/Calendar.d.ts +1 -1
  17. package/lib/components/Calendar/Calendar.d.ts.map +1 -1
  18. package/lib/components/Calendar/DayButton/DayButton.d.ts +1 -1
  19. package/lib/components/Calendar/DayButton/DayButton.d.ts.map +1 -1
  20. package/lib/components/Calendar/Dropdown/Dropdown.d.ts +1 -1
  21. package/lib/components/Calendar/Dropdown/Dropdown.d.ts.map +1 -1
  22. package/lib/components/Card/Card.d.ts +6 -6
  23. package/lib/components/Carousel/Buttons/Buttons.d.ts +1 -1
  24. package/lib/components/Carousel/Buttons/Buttons.d.ts.map +1 -1
  25. package/lib/components/Carousel/Carousel.d.ts +1 -1
  26. package/lib/components/Carousel/Carousel.d.ts.map +1 -1
  27. package/lib/components/Carousel/Content/Content.d.ts +1 -1
  28. package/lib/components/Carousel/Content/Content.d.ts.map +1 -1
  29. package/lib/components/Carousel/Dots/Dots.d.ts +1 -1
  30. package/lib/components/Carousel/Dots/Dots.d.ts.map +1 -1
  31. package/lib/components/Carousel/Item/Item.d.ts +1 -1
  32. package/lib/components/Carousel/Item/Item.d.ts.map +1 -1
  33. package/lib/components/Checkbox/Checkbox.d.ts +1 -1
  34. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  35. package/lib/components/Collapsible/Collapsible.d.ts +3 -3
  36. package/lib/components/Collapsible/Collapsible.d.ts.map +1 -1
  37. package/lib/components/ConfirmAction/ConfirmAction.d.ts +1 -1
  38. package/lib/components/ConfirmAction/ConfirmAction.d.ts.map +1 -1
  39. package/lib/components/ContentState/ContentState.d.ts +1 -1
  40. package/lib/components/ContentState/ContentState.d.ts.map +1 -1
  41. package/lib/components/CopyTypography/CopyTypography.d.ts +1 -1
  42. package/lib/components/CopyTypography/CopyTypography.d.ts.map +1 -1
  43. package/lib/components/DashboardLayout/DashboardLayout.d.ts +3 -3
  44. package/lib/components/DashboardLayout/Main/Main.d.ts +1 -1
  45. package/lib/components/DashboardLayout/Main/Main.d.ts.map +1 -1
  46. package/lib/components/DashboardLayout/Sidebar/Sidebar.d.ts +1 -1
  47. package/lib/components/DashboardLayout/Sidebar/Sidebar.d.ts.map +1 -1
  48. package/lib/components/DataGrid/Body/Body.d.ts +1 -1
  49. package/lib/components/DataGrid/Body/Body.d.ts.map +1 -1
  50. package/lib/components/DataGrid/Cell/Cell.d.ts +1 -1
  51. package/lib/components/DataGrid/Cell/Cell.d.ts.map +1 -1
  52. package/lib/components/DataGrid/DataGrid.d.ts +1 -1
  53. package/lib/components/DataGrid/DataGrid.d.ts.map +1 -1
  54. package/lib/components/DataGrid/Footer/Footer.d.ts +1 -1
  55. package/lib/components/DataGrid/Footer/Footer.d.ts.map +1 -1
  56. package/lib/components/DataGrid/Header/Header.d.ts +1 -1
  57. package/lib/components/DataGrid/Header/Header.d.ts.map +1 -1
  58. package/lib/components/DataGrid/HeaderCell/HeaderCell.d.ts +1 -1
  59. package/lib/components/DataGrid/HeaderCell/HeaderCell.d.ts.map +1 -1
  60. package/lib/components/DataGrid/Row/Row.d.ts +1 -1
  61. package/lib/components/DataGrid/Row/Row.d.ts.map +1 -1
  62. package/lib/components/DataGrid/State/State.d.ts +1 -1
  63. package/lib/components/DataGrid/State/State.d.ts.map +1 -1
  64. package/lib/components/DataGridActionCell/DataGridActionCell.d.ts +1 -1
  65. package/lib/components/DataGridActionCell/DataGridActionCell.d.ts.map +1 -1
  66. package/lib/components/DataGridActionCell/MainAction/MainAction.d.ts +1 -1
  67. package/lib/components/DataGridActionCell/MainAction/MainAction.d.ts.map +1 -1
  68. package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +1 -1
  69. package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts.map +1 -1
  70. package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +1 -1
  71. package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts.map +1 -1
  72. package/lib/components/DataGridSortHeader/DataGridSortHeader.d.ts +1 -1
  73. package/lib/components/DataGridSortHeader/DataGridSortHeader.d.ts.map +1 -1
  74. package/lib/components/DataList/DataList.d.ts +1 -1
  75. package/lib/components/DataList/DataList.d.ts.map +1 -1
  76. package/lib/components/DataList/EndData/EndData.d.ts +1 -1
  77. package/lib/components/DataList/EndData/EndData.d.ts.map +1 -1
  78. package/lib/components/DataList/ErrorState/ErrorState.d.ts +1 -1
  79. package/lib/components/DataList/ErrorState/ErrorState.d.ts.map +1 -1
  80. package/lib/components/DataList/Loader/Loader.d.ts +1 -1
  81. package/lib/components/DataList/Loader/Loader.d.ts.map +1 -1
  82. package/lib/components/DataList/NoData/NoData.d.ts +1 -1
  83. package/lib/components/DataList/NoData/NoData.d.ts.map +1 -1
  84. package/lib/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts +1 -1
  85. package/lib/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts.map +1 -1
  86. package/lib/components/DatePicker/DatePicker.d.ts +1 -1
  87. package/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
  88. package/lib/components/Description/Description.d.ts +3 -3
  89. package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +1 -1
  90. package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts.map +1 -1
  91. package/lib/components/Description/Name/Name.d.ts +1 -1
  92. package/lib/components/Description/Name/Name.d.ts.map +1 -1
  93. package/lib/components/Description/Value/Value.d.ts +1 -1
  94. package/lib/components/Description/Value/Value.d.ts.map +1 -1
  95. package/lib/components/Dialog/Dialog.d.ts +10 -10
  96. package/lib/components/Dialog/Dialog.d.ts.map +1 -1
  97. package/lib/components/Dialog/styles.css.d.ts.map +1 -1
  98. package/lib/components/Drawer/Drawer.d.ts +1 -1
  99. package/lib/components/Drawer/Drawer.d.ts.map +1 -1
  100. package/lib/components/DropdownMenu/DropdownMenu.d.ts +15 -15
  101. package/lib/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  102. package/lib/components/DropdownMenu/styles.css.d.ts.map +1 -1
  103. package/lib/components/Empty/Empty.d.ts +6 -6
  104. package/lib/components/Empty/Empty.d.ts.map +1 -1
  105. package/lib/components/Empty/styles.css.d.ts.map +1 -1
  106. package/lib/components/ImageCarousel/ImageCarousel.d.ts +1 -1
  107. package/lib/components/ImageCarousel/ImageCarousel.d.ts.map +1 -1
  108. package/lib/components/Input/Input.d.ts +1 -1
  109. package/lib/components/Input/Input.d.ts.map +1 -1
  110. package/lib/components/Input/styles.css.d.ts.map +1 -1
  111. package/lib/components/InputOTP/InputOTP.d.ts +1 -1
  112. package/lib/components/InputOTP/InputOTP.d.ts.map +1 -1
  113. package/lib/components/InputOTP/Separator/Separator.d.ts +1 -1
  114. package/lib/components/InputOTP/Separator/Separator.d.ts.map +1 -1
  115. package/lib/components/InputOTP/Slot/Slot.d.ts +1 -1
  116. package/lib/components/InputOTP/Slot/Slot.d.ts.map +1 -1
  117. package/lib/components/Label/Label.d.ts +1 -1
  118. package/lib/components/Label/Label.d.ts.map +1 -1
  119. package/lib/components/MaskField/MaskField.d.ts +1 -1
  120. package/lib/components/MaskField/MaskField.d.ts.map +1 -1
  121. package/lib/components/Notification/NotificationContainer/NotificationContainer.d.ts +1 -1
  122. package/lib/components/Notification/NotificationContainer/NotificationContainer.d.ts.map +1 -1
  123. package/lib/components/OverflowTypography/OverflowTypography.d.ts +1 -1
  124. package/lib/components/OverflowTypography/OverflowTypography.d.ts.map +1 -1
  125. package/lib/components/PageLayout/Aside/Aside.d.ts +1 -1
  126. package/lib/components/PageLayout/Aside/Aside.d.ts.map +1 -1
  127. package/lib/components/PageLayout/Content/Content.d.ts +1 -1
  128. package/lib/components/PageLayout/Content/Content.d.ts.map +1 -1
  129. package/lib/components/PageLayout/Footer/Footer.d.ts +1 -1
  130. package/lib/components/PageLayout/Footer/Footer.d.ts.map +1 -1
  131. package/lib/components/PageLayout/Header/Header.d.ts +1 -1
  132. package/lib/components/PageLayout/Header/Header.d.ts.map +1 -1
  133. package/lib/components/PageLayout/PageLayout.d.ts +5 -5
  134. package/lib/components/Pagination/Pagination.d.ts +1 -1
  135. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  136. package/lib/components/PeriodPicker/PeriodPicker.d.ts +1 -1
  137. package/lib/components/PeriodPicker/PeriodPicker.d.ts.map +1 -1
  138. package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts +1 -1
  139. package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts.map +1 -1
  140. package/lib/components/Placeholder/Image/Image.d.ts +1 -1
  141. package/lib/components/Placeholder/Image/Image.d.ts.map +1 -1
  142. package/lib/components/Placeholder/Placeholder.d.ts +1 -1
  143. package/lib/components/Placeholder/Placeholder.d.ts.map +1 -1
  144. package/lib/components/Popover/Popover.d.ts +3 -3
  145. package/lib/components/RadioGroup/RadioGroup.d.ts +1 -1
  146. package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  147. package/lib/components/RadioGroup/RadioGroupItem.d.ts +1 -1
  148. package/lib/components/RadioGroup/RadioGroupItem.d.ts.map +1 -1
  149. package/lib/components/RangeInput/RangeInput.d.ts +1 -1
  150. package/lib/components/RangeInput/RangeInput.d.ts.map +1 -1
  151. package/lib/components/ScrollTopButton/ScrollTopButton.d.ts +1 -1
  152. package/lib/components/ScrollTopButton/ScrollTopButton.d.ts.map +1 -1
  153. package/lib/components/Select/Select.d.ts +7 -7
  154. package/lib/components/Select/Select.d.ts.map +1 -1
  155. package/lib/components/Select/styles.css.d.ts.map +1 -1
  156. package/lib/components/Sheet/Sheet.d.ts +10 -10
  157. package/lib/components/Sheet/Sheet.d.ts.map +1 -1
  158. package/lib/components/Sheet/styles.css.d.ts.map +1 -1
  159. package/lib/components/Sidebar/Sidebar.d.ts +19 -19
  160. package/lib/components/Sidebar/Sidebar.d.ts.map +1 -1
  161. package/lib/components/Sidebar/constants.d.ts +7 -0
  162. package/lib/components/Sidebar/constants.d.ts.map +1 -0
  163. package/lib/components/Sidebar/styles.css.d.ts.map +1 -1
  164. package/lib/components/Slider/Slider.d.ts +2 -1
  165. package/lib/components/Slider/Slider.d.ts.map +1 -1
  166. package/lib/components/Tabs/Tabs.d.ts +4 -4
  167. package/lib/components/Tabs/TabsContent.d.ts +1 -1
  168. package/lib/components/Tabs/TabsContent.d.ts.map +1 -1
  169. package/lib/components/Tabs/TabsList.d.ts +1 -1
  170. package/lib/components/Tabs/TabsList.d.ts.map +1 -1
  171. package/lib/components/Tabs/TabsTrigger.d.ts +1 -1
  172. package/lib/components/Tabs/TabsTrigger.d.ts.map +1 -1
  173. package/lib/components/TextField/TextField.d.ts +1 -1
  174. package/lib/components/TextField/TextField.d.ts.map +1 -1
  175. package/lib/components/ToggleGroup/ToggleGroup.d.ts +1 -1
  176. package/lib/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
  177. package/lib/components/Tooltip/Tooltip.d.ts +1 -1
  178. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  179. package/lib/components/Typography/Typography.d.ts +1 -1
  180. package/lib/components/Typography/Typography.d.ts.map +1 -1
  181. package/lib/form/Form/Form.d.ts +1 -1
  182. package/lib/form/Form/Form.d.ts.map +1 -1
  183. package/lib/form/FormMaskField/FormMaskField.d.ts +1 -1
  184. package/lib/form/FormMaskField/FormMaskField.d.ts.map +1 -1
  185. package/lib/form/FormSubmitButton/FormSubmitButton.d.ts +1 -1
  186. package/lib/form/FormSubmitButton/FormSubmitButton.d.ts.map +1 -1
  187. package/lib/form/FormTextField/FormTextField.d.ts +1 -1
  188. package/lib/form/FormTextField/FormTextField.d.ts.map +1 -1
  189. package/lib/hooks/index.d.ts +1 -0
  190. package/lib/hooks/index.d.ts.map +1 -1
  191. package/lib/hooks/useIsMobile/constants.d.ts +2 -0
  192. package/lib/hooks/useIsMobile/constants.d.ts.map +1 -0
  193. package/lib/hooks/useIsMobile/index.d.ts +2 -0
  194. package/lib/hooks/useIsMobile/index.d.ts.map +1 -0
  195. package/lib/hooks/useIsMobile/useIsMobile.d.ts +2 -0
  196. package/lib/hooks/useIsMobile/useIsMobile.d.ts.map +1 -0
  197. package/lib/index.d.ts +0 -3
  198. package/lib/index.d.ts.map +1 -1
  199. package/lib/index.mjs +4457 -1
  200. package/lib/stories/Accordion.stories.d.ts +1 -1
  201. package/lib/stories/Accordion.stories.d.ts.map +1 -1
  202. package/lib/stories/AlertDialog.stories.d.ts +4 -4
  203. package/lib/stories/AlertDialog.stories.d.ts.map +1 -1
  204. package/lib/stories/Badge.stories.d.ts +1 -1
  205. package/lib/stories/Badge.stories.d.ts.map +1 -1
  206. package/lib/stories/Breadcrumb.stories.d.ts +4 -4
  207. package/lib/stories/Breadcrumb.stories.d.ts.map +1 -1
  208. package/lib/stories/Button.stories.d.ts +12 -12
  209. package/lib/stories/Button.stories.d.ts.map +1 -1
  210. package/lib/stories/ButtonGroup.stories.d.ts +5 -5
  211. package/lib/stories/ButtonGroup.stories.d.ts.map +1 -1
  212. package/lib/stories/Calendar.stories.d.ts +6 -6
  213. package/lib/stories/Calendar.stories.d.ts.map +1 -1
  214. package/lib/stories/Card.stories.d.ts +7 -7
  215. package/lib/stories/Card.stories.d.ts.map +1 -1
  216. package/lib/stories/Carousel.stories.d.ts +2 -2
  217. package/lib/stories/Carousel.stories.d.ts.map +1 -1
  218. package/lib/stories/Checkbox.stories.d.ts +2 -2
  219. package/lib/stories/Checkbox.stories.d.ts.map +1 -1
  220. package/lib/stories/CircularProgress.stories.d.ts +2 -2
  221. package/lib/stories/CircularProgress.stories.d.ts.map +1 -1
  222. package/lib/stories/ConfirmAction.stories.d.ts +5 -5
  223. package/lib/stories/ConfirmAction.stories.d.ts.map +1 -1
  224. package/lib/stories/CopyTypography.stories.d.ts +5 -5
  225. package/lib/stories/CopyTypography.stories.d.ts.map +1 -1
  226. package/lib/stories/DashboardLayout.stories.d.ts +4 -4
  227. package/lib/stories/DashboardLayout.stories.d.ts.map +1 -1
  228. package/lib/stories/DataGrid.stories.d.ts +7 -7
  229. package/lib/stories/DataGrid.stories.d.ts.map +1 -1
  230. package/lib/stories/DataGridActionCell.stories.d.ts +4 -4
  231. package/lib/stories/DataGridActionCell.stories.d.ts.map +1 -1
  232. package/lib/stories/DataList.stories.d.ts +9 -7
  233. package/lib/stories/DataList.stories.d.ts.map +1 -1
  234. package/lib/stories/DatePicker.stories.d.ts +1 -1
  235. package/lib/stories/DatePicker.stories.d.ts.map +1 -1
  236. package/lib/stories/Description.stories.d.ts +15 -15
  237. package/lib/stories/Description.stories.d.ts.map +1 -1
  238. package/lib/stories/Dialog.stories.d.ts +5 -5
  239. package/lib/stories/Dialog.stories.d.ts.map +1 -1
  240. package/lib/stories/Drawer.stories.d.ts +2 -1
  241. package/lib/stories/Drawer.stories.d.ts.map +1 -1
  242. package/lib/stories/DropdownMenu.stories.d.ts +5 -5
  243. package/lib/stories/DropdownMenu.stories.d.ts.map +1 -1
  244. package/lib/stories/Empty.stories.d.ts +3 -3
  245. package/lib/stories/Empty.stories.d.ts.map +1 -1
  246. package/lib/stories/Input.stories.d.ts +6 -6
  247. package/lib/stories/Input.stories.d.ts.map +1 -1
  248. package/lib/stories/InputOTP.stories.d.ts +1 -1
  249. package/lib/stories/InputOTP.stories.d.ts.map +1 -1
  250. package/lib/stories/MaskField.stories.d.ts +2 -2
  251. package/lib/stories/MaskField.stories.d.ts.map +1 -1
  252. package/lib/stories/OverflowTypography.stories.d.ts +5 -5
  253. package/lib/stories/OverflowTypography.stories.d.ts.map +1 -1
  254. package/lib/stories/Pagination.stories.d.ts +1 -1
  255. package/lib/stories/Pagination.stories.d.ts.map +1 -1
  256. package/lib/stories/PeriodPicker.stories.d.ts +2 -2
  257. package/lib/stories/PeriodPicker.stories.d.ts.map +1 -1
  258. package/lib/stories/Popover.stories.d.ts +1 -1
  259. package/lib/stories/Popover.stories.d.ts.map +1 -1
  260. package/lib/stories/RadioGroup.stories.d.ts +1 -1
  261. package/lib/stories/RadioGroup.stories.d.ts.map +1 -1
  262. package/lib/stories/RangeInput.stories.d.ts +2 -1
  263. package/lib/stories/RangeInput.stories.d.ts.map +1 -1
  264. package/lib/stories/Select.stories.d.ts +3 -3
  265. package/lib/stories/Select.stories.d.ts.map +1 -1
  266. package/lib/stories/Sheet.stories.d.ts +3 -3
  267. package/lib/stories/Sheet.stories.d.ts.map +1 -1
  268. package/lib/stories/Sidebar/Sidebar.stories.d.ts +38 -0
  269. package/lib/stories/Sidebar/Sidebar.stories.d.ts.map +1 -0
  270. package/lib/stories/{sidebarDemo.css.d.ts → Sidebar/sidebarDemo.css.d.ts} +4 -0
  271. package/lib/stories/Sidebar/sidebarDemo.css.d.ts.map +1 -0
  272. package/lib/stories/Slider.stories.d.ts +5 -5
  273. package/lib/stories/Slider.stories.d.ts.map +1 -1
  274. package/lib/stories/Tabs.stories.d.ts +3 -3
  275. package/lib/stories/Tabs.stories.d.ts.map +1 -1
  276. package/lib/stories/TextField.stories.d.ts +4 -4
  277. package/lib/stories/TextField.stories.d.ts.map +1 -1
  278. package/lib/stories/ToggleGroup.stories.d.ts +4 -4
  279. package/lib/stories/ToggleGroup.stories.d.ts.map +1 -1
  280. package/lib/stories/Tooltip.stories.d.ts +2 -2
  281. package/lib/stories/Tooltip.stories.d.ts.map +1 -1
  282. package/lib/stories/Typography.stories.d.ts +12 -12
  283. package/lib/stories/Typography.stories.d.ts.map +1 -1
  284. package/lib/styles.css +4924 -1
  285. package/lib/theme/index.d.ts +1 -0
  286. package/lib/theme/index.d.ts.map +1 -1
  287. package/lib/{utils.d.ts → theme/utils.d.ts} +1 -1
  288. package/lib/theme/utils.d.ts.map +1 -0
  289. package/package.json +21 -21
  290. package/lib/stories/Sidebar.stories.d.ts +0 -38
  291. package/lib/stories/Sidebar.stories.d.ts.map +0 -1
  292. package/lib/stories/sidebarDemo.css.d.ts.map +0 -1
  293. package/lib/utils.d.ts.map +0 -1
package/lib/index.mjs CHANGED
@@ -1 +1,4457 @@
1
- import{Fragment as e,jsx as t,jsxs as a}from"react/jsx-runtime";import{Accordion as r,Checkbox as l}from"@base-ui/react";import n,{clsx as s}from"clsx";import{ArrowDownNarrowWide as o,ArrowDownUp as i,ArrowDownWideNarrow as d,Calendar1 as c,Check as u,CheckIcon as _,ChevronDown as m,ChevronLeft as h,ChevronRight as p,ChevronRightIcon as g,ChevronUp as y,CircleCheck as b,CircleIcon as f,Copy as v,Ellipsis as N,EllipsisVertical as w,Info as k,MoreHorizontalIcon as x,OctagonAlert as C,PanelLeftClose as z,PanelLeftIcon as S,PanelLeftOpen as T,TriangleAlert as P,XIcon as D}from"lucide-react";import{AlertDialog as I}from"@base-ui/react/alert-dialog";import{Button as A}from"@base-ui/react/button";import{Avatar as L}from"@base-ui/react/avatar";import{mergeProps as R}from"@base-ui/react/merge-props";import{useRender as M}from"@base-ui/react/use-render";import{Separator as j}from"@base-ui/react/separator";import{DayPicker as F}from"react-day-picker";import{ru as O}from"react-day-picker/locale";import q,{createContext as B,createElement as E,useCallback as $,useContext as H,useEffect as G,useId as V,useLayoutEffect as W,useMemo as Y,useRef as K,useState as U}from"react";import X from"embla-carousel-react";import{Collapsible as J}from"@base-ui/react/collapsible";import{Popover as Q}from"@base-ui/react/popover";import{Arrow as Z,Content as ee,Portal as et,Provider as ea,Root as er,Trigger as el}from"@radix-ui/react-tooltip";import{Menu as en}from"@base-ui/react/menu";import{Virtuoso as es}from"react-virtuoso";import{useMask as eo}from"@react-input/mask";import{Root as ei}from"@radix-ui/react-label";import{Dialog as ed}from"@base-ui/react/dialog";import{Drawer as ec,Root as eu}from"vaul";import{OTPInput as e_}from"input-otp";import{Toaster as em,toast as eh}from"sonner";import{Indicator as ep,Item as eg,Root as ey}from"@radix-ui/react-radio-group";import{Slider as eb}from"@base-ui/react/slider";import{Content as ef,Group as ev,Icon as eN,Item as ew,ItemIndicator as ek,ItemText as ex,Label as eC,Portal as ez,Root as eS,ScrollDownButton as eT,ScrollUpButton as eP,Separator as eD,Trigger as eI,Value as eA,Viewport as eL}from"@radix-ui/react-select";import{Content as eR,List as eM,Tabs as ej,Trigger as eF}from"@radix-ui/react-tabs";import{Controller as eO,FormProvider as eq,useController as eB,useFieldArray as eE,useForm as e$,useFormContext as eH,useWatch as eG}from"react-hook-form";import*as eV from"react";var eW,eY={};eY.d=(e,t)=>{for(var a in t)eY.o(t,a)&&!eY.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},eY.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),eY.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var eK={};function eU({className:e,...a}){return t(r.Root,{"data-slot":"accordion",className:s("style__1b0hb6s2",e),...a})}eY.r(eK),eY.d(eK,{e:()=>eX,dK:()=>eJ,ru:()=>eQ,ik:()=>eZ,Fu:()=>e1,Lq:()=>e0,PM:()=>e2}),eU.Item=function({className:e,...a}){return t(r.Item,{"data-slot":"accordion-item",className:s("style__1b0hb6s3",e),...a})},eU.Trigger=function({className:e,children:l,...n}){return t(r.Header,{className:"style__1b0hb6s4",children:a(r.Trigger,{"data-slot":"accordion-trigger",className:s("style__1b0hb6s5",e),...n,children:[l,t(m,{"data-slot":"accordion-trigger-icon",size:16,className:"style__1b0hb6s7 style__1b0hb6s6"}),t(y,{"data-slot":"accordion-trigger-icon",size:16,className:"style__1b0hb6s8 style__1b0hb6s6"})]})})},eU.Content=function({className:e,children:a,...l}){return t(r.Panel,{"data-slot":"accordion-content",className:s("style__1b0hb6s9",e),...l,children:t("div",{className:s("style__1b0hb6sa",e),children:a})})};var eX="style__1ersxw10",eJ={sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},eQ={default:"default__1ersxw14",destructive:"destructive__1ersxw15",outline:"outline__1ersxw16",ghost:"ghost__1ersxw17",link:"link__1ersxw18"},eZ="style__1ersxw1f",e1="style__1ersxw13",e0="style__1ersxw12",e2="style__1ersxw1e";let e6=({className:e,variant:r="default",size:l="md",startAdornment:n,endAdornment:o,isLoading:i=!1,fullWidth:d,children:c,...u})=>a(A,{nativeButton:u.nativeButton??!u.render,className:s(eX,eQ[r],eJ[l],{[e1]:d,[e0]:i},e),...u,children:[n&&t("span",{className:e2,children:n}),c,o&&t("span",{className:eZ,children:o})]}),{ru:e5,dK:e9}=eK;function e4({...e}){return t(I.Portal,{"data-slot":"alert-dialog-portal",...e})}function e8({className:e,...a}){return t(I.Backdrop,{"data-slot":"alert-dialog-overlay",className:s("style__qmtpwy4",e),...a})}function e3({...e}){return t(I.Root,{"data-slot":"alert-dialog",...e})}function e7({className:e,size:a="default",...r}){return t(L.Root,{"data-slot":"avatar","data-size":a,className:s("style__hhcrfl0",e),...r})}e3.Trigger=function({...e}){return t(I.Trigger,{"data-slot":"alert-dialog-trigger",...e})},e3.Overlay=e8,e3.Content=function({className:e,size:r="default",...l}){return a(e4,{children:[t(e8,{}),t(I.Popup,{"data-slot":"alert-dialog-content","data-size":r,className:s("style__qmtpwy5",e),...l})]})},e3.Header=function({className:e,...a}){return t("div",{"data-slot":"alert-dialog-header",className:s("style__qmtpwy6",e),...a})},e3.Footer=function({className:e,...a}){return t("div",{"data-slot":"alert-dialog-footer",className:s("style__qmtpwy7",e),...a})},e3.Media=function({className:e,...a}){return t("div",{"data-slot":"alert-dialog-media",className:s("style__qmtpwy8",e),...a})},e3.Title=function({className:e,...a}){return t(I.Title,{"data-slot":"alert-dialog-title",className:s("style__qmtpwy9",e),...a})},e3.Description=function({className:e,...a}){return t(I.Description,{"data-slot":"alert-dialog-description",className:s("style__qmtpwya",e),...a})},e3.Action=function({className:e,...a}){return t(e6,{"data-slot":"alert-dialog-action",className:e,...a})},e3.Cancel=function({className:e,variant:a="outline",size:r="md",...l}){return t(I.Close,{"data-slot":"alert-dialog-cancel",className:e,render:t(e6,{variant:a,size:r}),...l})},e7.Image=function({className:e,...a}){return t(L.Image,{"data-slot":"avatar-image",className:s("style__hhcrfl1",e),...a})},e7.Fallback=function({className:e,...a}){return t(L.Fallback,{"data-slot":"avatar-fallback",className:s("style__hhcrfl2",e),...a})},e7.Badge=function({className:e,...a}){return t("span",{"data-slot":"avatar-badge",className:s("style__hhcrfl3",e),...a})},e7.Group=function({className:e,...a}){return t("div",{"data-slot":"avatar-group",className:s("style__hhcrfl4",e),...a})},e7.GroupCount=function({className:e,...a}){return t("div",{"data-slot":"avatar-group-count",className:s("style__hhcrfl5",e),...a})};var te={default:"default__1af895x1",secondary:"secondary__1af895x2",destructive:"destructive__1af895x3",outline:"outline__1af895x4"};function tt({className:e,variant:t="default",render:a,...r}){return M({defaultTagName:"span",props:R({className:s("style__1af895x0",te[t],e)},r),render:a,state:{slot:"badge",variant:t}})}function ta({className:e,...a}){return t("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:e,...a})}function tr({className:e,orientation:a="horizontal",...r}){return t("fieldset",{"data-slot":"button-group","data-orientation":a,className:s("style__1mf3lgr0",e),...r})}ta.List=function({className:e,...a}){return t("ol",{"data-slot":"breadcrumb-list",className:s("style__1dceszz0",e),...a})},ta.Item=function({className:e,...a}){return t("li",{"data-slot":"breadcrumb-item",className:s("style__1dceszz1",e),...a})},ta.Link=function({className:e,render:t,...a}){return M({defaultTagName:"a",props:R({className:s("style__1dceszz2",e)},a),render:t,state:{slot:"breadcrumb-link"}})},ta.Page=function({className:e,...a}){return t("span",{"data-slot":"breadcrumb-page","aria-current":"page",className:s("style__1dceszz3",e),...a})},ta.Separator=function({children:e,className:a,...r}){return t("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:s("style__1dceszz4",a),...r,children:e??t(g,{})})},ta.Ellipsis=function({className:e,...r}){return a("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:s("style__1dceszz5",e),...r,children:[t(x,{}),t("span",{className:"style__1dceszz6",children:"More"})]})},tr.Text=function({className:e,render:t,...a}){return M({defaultTagName:"div",props:R({className:s("style__1mf3lgr1",e)},a),render:t,state:{slot:"button-group-text"}})},tr.Separator=function({className:e,orientation:a="vertical",...r}){return t(j,{"data-slot":"button-group-separator","data-orientation":a,orientation:a,className:s("style__1mf3lgr2",e),...r})};var tl={left:"left__1sba6zok",center:"center__1sba6zol",right:"right__1sba6zom",justify:"justify__1sba6zon"},tn={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi",muted:"muted__1sba6zoj"},ts={none:"none__1sba6zox",underline:"underline__1sba6zoy",lineThrough:"lineThrough__1sba6zoz"},to={block:"block__1sba6zoo",inline:"inline__1sba6zop"},ti={lowercase:"lowercase__1sba6zou",uppercase:"uppercase__1sba6zov",capitalize:"capitalize__1sba6zow"},td={h1:"h1__1sba6zo0",h2:"h2__1sba6zo1",h3:"h3__1sba6zo2",h4:"h4__1sba6zo3",h5:"h5__1sba6zo4",h6:"h6__1sba6zo5",subtitle1:"subtitle1__1sba6zo6",subtitle2:"subtitle2__1sba6zo7",body1:"body1__1sba6zo8",body2:"body2__1sba6zo9",caption:"caption__1sba6zoa",overline:"overline__1sba6zob"},tc={normal:"normal__1sba6zoq",medium:"medium__1sba6zor",semibold:"semibold__1sba6zos",bold:"bold__1sba6zot"};let tu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},t_=({className:e,variant:a="body1",component:r,color:l="primary",align:n="left",display:o="inline",weight:i="normal",transform:d,decoration:c="none",gutterBottom:u,children:_,...m})=>t(r||tu[a||"body1"],{className:s(ts[c],td[a],tn[l],tc[i],d&&ti[d],to[o],tl[n],{style__1sba6zo10:u},e),...m,children:_}),tm=e=>{let{modifiers:a,className:r,...l}=e,n=K(null);return G(()=>{a.focused&&n.current?.focus()},[a.focused]),t(e6,{ref:n,className:s("dayButton__hxs6pw0",{outside__hxs6pw2:a.outside,today__hxs6pw1:a.today},r),variant:a.selected?"default":"ghost",...l})};function th(e){let{options:r,onChange:l,...n}=e,s=r?.find(({value:e})=>e===n.value);return a(rd,{value:s?.value.toString(),onValueChange:e=>{l&&l({target:{value:e}})},children:[t(r_,{className:"style__1e2msjb0",children:t(ru,{placeholder:s?.label})}),t(rp,{children:r?.map(({value:e,label:a,disabled:r})=>t(ry,{value:e.toString(),disabled:r,children:t(t_,{align:"center",transform:"capitalize",children:a})},e))})]})}var tp="monthButton__14q7je21";let tg=({className:e,classNames:a,showOutsideDays:r=!0,...l})=>t(F,{locale:O,showOutsideDays:r,classNames:{month:"month__14q7je23",months:"months__14q7je22",nav:"nav__14q7je20",month_caption:"monthCaption__14q7je24",dropdown:"dropdownNav__14q7je26",dropdowns:"dropdowns__14q7je25"},components:{DayButton:tm,Dropdown:th,PreviousMonthButton:({className:e,color:a,...r})=>t(e6,{className:n(tp,e),variant:"ghost",...r}),NextMonthButton:({className:e,color:a,...r})=>t(e6,{className:n(tp,e),variant:"ghost",...r}),CaptionLabel:({className:e,color:a,...r})=>t(t_,{transform:"capitalize",className:e,...r})},...l});var ty={colors:{primary:"var(--colors-primary)",secondary:"var(--colors-secondary)",warning:"var(--colors-warning)",error:"var(--colors-error)",success:"var(--colors-success)",border:"var(--colors-border)",info:"var(--colors-info)",background:{tooltip:"var(--colors-background-tooltip)",paper:"var(--colors-background-paper)",element:"var(--colors-background-element)",elementHover:"var(--colors-background-elementHover)",sidebar:"var(--colors-background-sidebar)"},foreground:{primary:"var(--colors-foreground-primary)",secondary:"var(--colors-foreground-secondary)"},text:{primary:"var(--colors-text-primary)",secondary:"var(--colors-text-secondary)",disabled:"var(--colors-text-disabled)",hint:"var(--colors-text-hint)"}},spacing:{1:"var(--spacing-1)",2:"var(--spacing-2)",3:"var(--spacing-3)",4:"var(--spacing-4)",5:"var(--spacing-5)",6:"var(--spacing-6)",8:"var(--spacing-8)",10:"var(--spacing-10)",12:"var(--spacing-12)",16:"var(--spacing-16)",20:"var(--spacing-20)"},elevation:{1:"var(--elevation-1)",2:"var(--elevation-2)",3:"var(--elevation-3)",4:"var(--elevation-4)",6:"var(--elevation-5)"},fontSize:{xs:"var(--fontSize-xs)",sm:"var(--fontSize-sm)",base:"var(--fontSize-base)",lg:"var(--fontSize-lg)",xl:"var(--fontSize-xl)","2xl":"var(--fontSize-2xl)","3xl":"var(--fontSize-3xl)","4xl":"var(--fontSize-4xl)"},fontWeight:{normal:"var(--fontWeight-normal)",medium:"var(--fontWeight-medium)",semibold:"var(--fontWeight-semibold)",bold:"var(--fontWeight-bold)"},lineHeight:{none:"var(--lineHeight-none)",tight:"var(--lineHeight-tight)",snug:"var(--lineHeight-snug)",normal:"var(--lineHeight-normal)",relaxed:"var(--lineHeight-relaxed)",loose:"var(--lineHeight-loose)"},borderRadius:{sm:"var(--borderRadius-sm)",md:"var(--borderRadius-md)",lg:"var(--borderRadius-lg)"}};let tb=({className:e,elevation:a=2,...r})=>t("div",{style:{boxShadow:ty.elevation[a]},className:s("style__oyalw00",e),...r});tb.Footer=({className:e,...a})=>t("div",{className:s("style__oyalw05",e),...a}),tb.Header=({className:e,...a})=>t("div",{className:s("style__oyalw01",e),...a}),tb.Title=({className:e,...a})=>t("h3",{className:s("style__oyalw02",e),...a}),tb.Description=({className:e,...a})=>t("p",{className:s("style__oyalw03",e),...a}),tb.Content=({className:e,...a})=>t("div",{className:s("style__oyalw04",e),...a});let tf=q.createContext(null);function tv(){let e=q.useContext(tf);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}var tN={horizontal:"horizontal__2d6ocq3",vertical:"vertical__2d6ocq4"};function tw({className:r,...l}){let{orientation:n="horizontal",canScrollNext:o,scrollNext:i,canScrollPrev:d,scrollPrev:c}=tv();return a(e,{children:[t("button",{className:s("style__2d6ocq1 style__2d6ocq0",tN[n]),type:"button","data-slot":"carousel-next",disabled:!o,onClick:i,...l,children:"horizontal"===n?t(p,{}):t(m,{})}),t("button",{type:"button",className:s("style__2d6ocq2 style__2d6ocq0",tN[n]),"data-slot":"carousel-previous",disabled:!d,onClick:c,...l,children:"horizontal"===n?t(h,{}):t(y,{})})]})}var tk={horizontal:"horizontal__i1lems1",vertical:"vertical__i1lems2"};function tx(e){let{carouselRef:a,orientation:r="horizontal"}=tv();return t("div",{className:"style__i1lems0",ref:a,"data-slot":"carousel-content",children:t("div",{className:tk[r],...e})})}var tC={horizontal:"horizontal__e2zpp64 style__e2zpp63",vertical:"vertical__e2zpp65 style__e2zpp63"},tz={horizontal:"horizontal__e2zpp61 style__e2zpp60",vertical:"vertical__e2zpp62 style__e2zpp60"};let tS=({api:e,orientation:a})=>{let{selectedIndex:r,scrollSnaps:l,onDotButtonClick:n}=(e=>{let[t,a]=U(0),[r,l]=U([]),n=$(t=>{e&&e.scrollTo(t)},[e]),s=$(e=>{e&&l(e.scrollSnapList())},[]),o=$(e=>{e&&a(e.selectedScrollSnap())},[]);return G(()=>{e&&(s(e),o(e),e.on("reInit",s).on("reInit",o).on("select",o))},[e,s,o]),{selectedIndex:t,scrollSnaps:r,onDotButtonClick:n}})(e);return t("div",{className:tz[a],children:l.map((e,l)=>t("button",{type:"button",className:s(tC[a],{style__e2zpp66:l===r}),onClick:()=>n(l)},e))})};function tT(e){return t("div",{className:"style__1gif6yr0",role:"presentation","aria-roledescription":"slide","data-slot":"carousel-item",...e})}function tP({width:e="100%",height:r="100%",...l}){let{canScrollNext:n,canScrollPrev:o,scrollNext:i,scrollPrev:d,api:c,opts:u,orientation:_,carouselRef:m,handleKeyDown:h,data:p,isShowButtons:g,isShowDots:y}=(({orientation:e="horizontal",opts:t,setApi:a,plugins:r,data:l,showDots:n,showArrows:s})=>{let[o,i]=X({...t,axis:"horizontal"===e?"x":"y"},r),[d,c]=U(!1),[u,_]=U(!1),m=!!(s&&l.length>1),h=!!(n&&l.length>1),p=$(e=>{e&&(c(e.canScrollPrev()),_(e.canScrollNext()))},[]),g=$(e=>{i&&i.scrollTo(e)},[i]),y=$(()=>{i?.scrollPrev()},[i]),b=$(()=>{i?.scrollNext()},[i]),f=$(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[y,b]);return G(()=>{i&&a&&a(i)},[i,a]),G(()=>{if(i)return p(i),i.on("reInit",p),i.on("select",p),()=>{i?.off("select",p)}},[i,p]),{carouselRef:o,api:i,scrollPrev:y,scrollNext:b,canScrollPrev:d,canScrollNext:u,handleKeyDown:f,opts:t,orientation:e,onDotButtonClick:g,isShowButtons:m,isShowDots:h,data:l}})(l);return t(tf.Provider,{value:{carouselRef:m,api:c,opts:u,orientation:_||(u?.axis==="y"?"vertical":"horizontal"),scrollPrev:d,scrollNext:i,canScrollPrev:o,canScrollNext:n},children:a("div",{onKeyDownCapture:h,className:s("Carousel__1jbydv50",l.className),"data-slot":"carousel",style:{width:e,height:r},children:[t(tx,{style:{width:e,height:r},children:p.map(e=>t(tT,{children:l.renderItem(e)},`${e[l.keyId]}`))}),g&&t(tw,{}),y&&t(tS,{api:c,orientation:_})]})})}let tD=({className:e,...a})=>t(l.Root,{"data-slot":"checkbox",className:s("style__b7yo4k0",e),...a,children:t(l.Indicator,{className:"style__b7yo4k1",children:t(u,{className:"style__b7yo4k2"})})});var tI={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"},tA={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"};let tL=({size:e=30,thickness:r=2.6,color:l="primary",value:s=0,variant:o="indeterminate",className:i})=>{let d=(e-r)/2,c=2*Math.PI*d;return t("div",{className:n("style__m6b9n22",tA[o],tI[l],i),style:{width:e,height:e},children:a("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[t("title",{children:"Progress bar"}),t("circle",{className:n("style__m6b9n24","determinate"===o&&tA.determinate),cx:e/2,cy:e/2,r:d,fill:"none",strokeWidth:r,strokeDasharray:c,strokeDashoffset:"determinate"===o?c*(1-s/100):.25*c})]})})};function tR({...e}){return t(J.Root,{"data-slot":"collapsible",...e})}tR.Trigger=function({...e}){return t(J.Trigger,{"data-slot":"collapsible-trigger",...e})},tR.Content=function({...e}){return t(J.Panel,{"data-slot":"collapsible-content",...e})};let tM=Q.createHandle,tj=({...e})=>t(Q.Root,{"data-slot":"popover",...e});tj.Trigger=({...e})=>t(Q.Trigger,{"data-slot":"popover-trigger",...e}),tj.Content=({className:e,align:a="center",alignOffset:r=0,side:l="bottom",sideOffset:n=4,...o})=>t(Q.Portal,{children:t(Q.Positioner,{align:a,alignOffset:r,side:l,sideOffset:n,className:"style__1xy4jvu3",children:t(Q.Popup,{"data-slot":"popover-content",className:s("style__1xy4jvu2",e),...o})})}),tj.Root=tj;let tF=e=>{let{open:r,onActionComponentClick:l,onCancel:n,confirmButtonProps:o,onOpenChange:i}=(({skipConfirm:e,onConfirm:t,confirmButtonProps:a})=>{let[r,l]=U(!1);return{open:r,onActionComponentClick:()=>{e?t():l(!0)},confirmButtonProps:{variant:a?.isAccented?"destructive":"default",size:"sm",onClick:()=>{l(!1),t()}},onCancel:()=>{l(!1)},onOpenChange:e=>{l(e)}}})(e),{text:d,confirmButtonProps:c,popoverProps:u,actionComponent:_}=e,{text:m="Подтвердить"}=c||{},{side:h="bottom",align:p="center"}=u||{};return a(tj,{open:r,onOpenChange:i,children:[t(tj.Trigger,{children:_({onClick:l})}),t(tj.Content,{side:h,align:p,className:s("style__1q1uhgp2",{style__1q1uhgp3:!!d}),children:a("div",{className:"style__1q1uhgp1",children:[d&&t(t_,{children:d}),a("div",{className:"style__1q1uhgp0",children:[t(e6,{size:"sm",variant:"ghost",onClick:n,children:"Отмена"}),t(e6,{...o,children:m})]})]})})]})};var tO={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let tq=e=>t("img",{alt:e.alt,src:e.src,className:n("style__1o97kvm0",tO[e.size||"md"],e.className),width:e.width,height:e.height}),tB={sm:"239px",md:"323px",lg:"458px"},tE={sm:"119px",md:"161px",lg:"229px"},t$={sm:"384px",md:"400px",lg:"460px"},tH={sm:"subtitle1",md:"h6",lg:"h5"};var tG={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let tV=({className:e,title:r,imgSrc:l,imgAlt:s,description:o,actions:i,size:d="sm",renderImage:c})=>{let u=Y(()=>c||tq,[c]);return a("div",{className:n("style__1nenzg00",tG[d],e),children:[a("div",{className:"style__1nenzg04",style:{maxWidth:t$[d]},children:[l&&t(u,{src:l,alt:s,width:tB[d],height:tE[d],size:d}),t(t_,{align:"center",color:"secondary",variant:tH[d],children:r}),o&&t(t_,{className:"style__1nenzg05",component:"div",variant:"body1",children:o})]}),i&&t("footer",{className:"style__1nenzg06",children:i})]})},tW=({isLoading:e,isError:a,isCustom:r,errorState:l,customState:n,children:s,loadingContent:o=t(tL,{color:"primary"})})=>{if(e)return t("div",{className:"style__nan0ao0",children:o});if(r&&n)return t(tV,{...n});if(a&&l){let{title:e="Произошла ошибка",imgAlt:a,imgSrc:r,errorList:n,onRetry:s,actions:o=t(e6,{onClick:s,children:"Попробовать снова"})}=l,i=n.map(e=>t(t_,{component:"p",children:e},e));return t(tV,{title:e,description:i,imgAlt:a,imgSrc:r,actions:o})}return s},tY=({sideOffset:e=4,alignOffset:a,ref:r,...l})=>t(ee,{ref:r,sideOffset:e,...l}),tK=({text:e,content:r,children:l,side:s="top",sideOffset:o=10,alignOffset:i,delayDuration:d=0,className:c,ref:u,..._})=>t(ea,{delayDuration:d,children:a(er,{..._,children:[t(el,{ref:u,asChild:!0,children:l}),r||e?t(et,{children:a(tY,{className:n("style__izacrl2",c),alignOffset:i,sideOffset:o,hideWhenDetached:!0,side:s,children:[r??t("p",{className:"style__izacrl3",children:e}),_.arrow&&t(Z,{className:"style__izacrl4"})]})}):null]})}),tU=e=>{let{children:r,copyPosition:l="right",copyText:n,isShowCopyText:o,color:i,className:d,...c}=e,u=()=>t(v,{className:"style__1wpx85c1"}),{tooltipOpen:_,handleMouseEnter:m,handleMouseLeave:h,handleClick:p,tooltipTitle:g,isIconOnLeft:y}=(({children:e,copyText:t,isShowCopyText:a,copyPosition:r})=>{let[l,n]=U("Скопировать"),[s,o]=U(!1);return{handleMouseLeave:()=>{"Скопировать"!==l&&setTimeout(()=>{n("Скопировать")},100),o(!1)},handleClick:a=>{a.stopPropagation(),navigator.clipboard.writeText(t||("string"==typeof e?e:"")).then(()=>n("Скопировано")).catch(()=>n("Ошибка копирования"))},tooltipTitle:a?`${l}: ${t}`:l,isIconOnLeft:"left"===r,tooltipOpen:s,handleMouseEnter:()=>{o(!0)}}})(e);return t(tK,{open:_,arrow:!0,text:g,side:"bottom",children:a(t_,{onMouseLeave:h,onMouseEnter:m,onClick:p,component:"div",color:i,className:s("style__1wpx85c0",d),...c,children:[y&&u(),r,!y&&u()]})})},tX=B({pinned:!0,hovered:!1,togglePinned:()=>{}}),tJ=()=>H(tX),tQ="dashboard::pinned",tZ=({children:e,className:a})=>{let{pinned:r,togglePinned:l}=(()=>{let[e,t]=U("true"===window.localStorage.getItem(tQ));return{pinned:e,togglePinned:()=>{t(!e),window.localStorage.setItem(tQ,String(!e))}}})();return t(tX.Provider,{value:{pinned:r,togglePinned:l},children:t("div",{className:s("DashboardLayout__113u7x50",a),children:e})})};function t1({row:e,column:a,rowIndex:r,height:l}){let{align:n,cellColor:o,isDisabled:i}=a;return t("td",{align:n??"left",style:{backgroundColor:o?.(e),height:l,width:a.width},className:s("style__1047swj0",{style__1047swj1:i},a.cellClassName?.(e)),children:t(()=>a.renderCell?a.renderCell(e,r):a.format?a.format(e)||"—":a.field?`${e[a.field]||"—"}`:"—",{})})}function t0({row:e,rowHeight:a,onRowClick:r,columns:l,rowIndex:n,rowId:o}){let i=$(()=>{r?.(e)},[r,e]);return t("tr",{onClick:i,onKeyDown:i,className:s("style__gsm9mv0",{style__gsm9mv1:!!r}),children:l.map((r,l)=>t(t1,{row:e,rowIndex:n,column:r,height:a},`${o}-${l}`))})}function t2({isLoading:e,isEmpty:a,columnsLength:r,emptyState:l={text:"Нет данных"},errorState:n={text:"Произошла ошибка"},isError:s,onRetry:o}){let i=({children:e})=>t("tr",{className:"style__15m2ib80",children:t("td",{colSpan:r,align:"center",children:e})});if(e)return t(i,{children:t("span",{className:"style__15m2ib81",children:t(tL,{})})});if(a){let{imgSrc:e,imgAlt:a,text:r}=l;return t(i,{children:t(tV,{title:r,imgSrc:e,imgAlt:a})})}if(s){let{imgSrc:e,imgAlt:a,text:r}=n;return t(i,{children:t(tV,{title:r,imgSrc:e,imgAlt:a,actions:o?t(e6,{variant:"outline",onClick:o,children:"Попробовать снова"}):void 0})})}return null}tZ.Sidebar=({width:e="16rem",header:r,footer:l,content:n,className:o})=>{let{pinned:i}=tJ();return a("div",{style:{width:i?e:0},className:"style__1low90p0",children:[t("span",{className:"SidebarTrigger__1low90p1"}),a("aside",{style:{width:e},className:s("SidebarContainer__1low90p2",{style__1low90p3:!i},o),children:[r&&t("header",{className:"SidebarHeader__1low90p4",children:r}),t("div",{className:"SidebarContent__1low90p6",children:n}),l&&t("footer",{className:"SidebarFooter__1low90p5",children:l})]})]})},tZ.Main=({children:e,className:a})=>t("main",{className:s("style__whkxou0",a),children:e});var t6="style__82af400";function t5({isError:e,isLoading:a,emptyState:r,errorState:l,columns:n,rows:s,rowHeight:o,keyId:i,onRowClick:d}){let c=0===s.length;return e||a||c?t("tbody",{className:t6,children:t(t2,{emptyState:r,errorState:l,isEmpty:c,isError:e,isLoading:a,columnsLength:n.length})}):t("tbody",{className:t6,children:s.map((e,a)=>{let r=String(e[i]);return t(t0,{row:e,rowId:r,rowHeight:o,columns:n,onRowClick:d,rowIndex:a},e[i])})})}function t9({children:e,className:a}){return t("footer",{className:s("style__2s55b60",a),children:e})}function t4({column:e,height:a,width:r}){return t("th",{style:{color:e.color,height:a,width:r},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function t8({columns:e,height:a,sticky:r}){return t("thead",{children:t("tr",{className:s({style__fkgoub0:r}),children:e.map(e=>t(t4,{column:e,height:a,width:e.width},e.title))})})}function t3({rows:e,columns:r,height:l="100%",className:n,rowHeight:o=40,headerHeight:i=40,keyId:d,onRowClick:c,isLoading:u,isDisabled:_,isError:m,emptyState:h,errorState:p,footer:g,title:y,stickyHeader:b,onRetry:f}){let v=u||m||0===e.length;return a("div",{"data-slot":"data-grid",style:{height:l},className:s("style__1gqvluf0",n),children:[a("table",{className:s("style__1gqvluf1",{style__1gqvluf3:_,style__1gqvluf4:u,style__1gqvluf2:v},n),children:[y&&t("caption",{className:"style__1gqvluf5",children:y}),t(t8,{columns:r,height:i,sticky:b}),t(t5,{rows:e,columns:r,rowHeight:o,keyId:d,onRowClick:c,isLoading:u,emptyState:h,errorState:p,isError:m,onRetry:f})]}),g&&t(t9,{children:g})]})}var t7="style__1ib8wkth",ae="style__1ib8wktf";function at({...e}){return t(en.Root,{"data-slot":"dropdown-menu",...e})}function aa({align:e="start",alignOffset:a=0,side:r="bottom",sideOffset:l=4,className:n,...o}){return t(en.Portal,{children:t(en.Positioner,{align:e,alignOffset:a,side:r,sideOffset:l,className:"style__1ib8wkt6",children:t(en.Popup,{"data-slot":"dropdown-menu-content",className:s("style__1ib8wkt7",n),...o})})})}at.Portal=function({...e}){return t(en.Portal,{"data-slot":"dropdown-menu-portal",...e})},at.Trigger=function({...e}){return t(en.Trigger,{"data-slot":"dropdown-menu-trigger",...e})},at.Content=aa,at.Group=function({...e}){return t(en.Group,{"data-slot":"dropdown-menu-group",...e})},at.Label=function({className:e,inset:a,...r}){return t(en.GroupLabel,{"data-slot":"dropdown-menu-label","data-inset":a?"":void 0,className:s("style__1ib8wkt9",e),...r})},at.Item=function({className:e,inset:a,variant:r="default",...l}){return t(en.Item,{"data-slot":"dropdown-menu-item","data-inset":a?"":void 0,"data-variant":r,className:s("style__1ib8wkta",e),...l})},at.Sub=function({...e}){return t(en.SubmenuRoot,{"data-slot":"dropdown-menu-sub",...e})},at.SubTrigger=function({className:e,inset:r,children:l,...n}){return a(en.SubmenuTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":r?"":void 0,className:s("style__1ib8wktc style__1ib8wkta",e),...n,children:[l,t(g,{className:"style__1ib8wktg"})]})},at.SubContent=function({align:e="start",alignOffset:a=-3,side:r="right",sideOffset:l=0,className:n,...o}){return t(aa,{"data-slot":"dropdown-menu-sub-content",className:s("style__1ib8wkt8",n),align:e,alignOffset:a,side:r,sideOffset:l,...o})},at.Shortcut=function({className:e,...a}){return t("span",{"data-slot":"dropdown-menu-shortcut",className:s("style__1ib8wktj",e),...a})},at.Separator=function({className:e,...a}){return t(en.Separator,{"data-slot":"dropdown-menu-separator",className:s("style__1ib8wkti",e),...a})},at.RadioGroup=function({...e}){return t(en.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})},at.RadioItem=function({className:e,children:r,inset:l,...n}){return a(en.RadioItem,{"data-slot":"dropdown-menu-radio-item","data-inset":l?"":void 0,className:s("style__1ib8wkte style__1ib8wkta",e),...n,children:[t("span",{className:ae,"data-slot":"dropdown-menu-radio-item-indicator",children:t(en.RadioItemIndicator,{children:t(_,{className:t7})})}),r]})},at.CheckboxItem=function({className:e,children:r,checked:l,inset:n,...o}){return a(en.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item","data-inset":n?"":void 0,className:s("style__1ib8wktd style__1ib8wkta",e),checked:l,...o,children:[t("span",{className:ae,"data-slot":"dropdown-menu-checkbox-item-indicator",children:t(en.CheckboxItemIndicator,{children:t(_,{className:t7})})}),r]})};let ar=a=>{let{tooltipProps:r}=(({action:e})=>{let{isLoading:t,disabledReason:a,name:r}=e,[l,n]=U(!1);return G(()=>{t&&n(!1)},[t]),{tooltipProps:{text:a||r,open:l,onOpenChange:e=>n(e)}}})(a),{action:l,onActionClick:n,isDisabled:s,tooltipPlacement:o}=a,{name:i,icon:d,needConfirm:c,confirmText:u,confirmButtonProps:_,disabled:m,isLoading:h,onClick:p}=l,g=e=>t(tK,{arrow:!0,side:o,...r,children:t(e6,{disabled:s||m,isLoading:h,variant:"ghost",size:"icon",...e,children:d})},i);return t(e,{children:c?t(tF,{text:u,confirmButtonProps:_,actionComponent:e=>g(e),onConfirm:n(p)}):g({onClick:n(p)})})},al=({action:e,onActionClick:r,isDisabled:l,tooltipPlacement:n})=>{if("actions"in e){let{disabled:s,icon:o,name:i,disabledReason:d,actions:c,isLoading:u}=e;return a(at,{children:[t(tK,{text:d||i,side:n,arrow:!0,children:t(at.Trigger,{render:t(e6,{variant:"ghost",size:"icon",isLoading:u,disabled:l||s,children:o})})},i),t(at.Content,{children:c.map(({name:e,onClick:a,...l})=>E(at.Item,{...l,key:e,render:t(e6,{size:"sm",onClick:r(a),children:e})}))})]})}return t(ar,{action:e,onActionClick:r,isDisabled:l,tooltipPlacement:n})},an=({actions:e,onActionClick:r,tooltipPlacement:l,isDisabled:n})=>a(at,{children:[t(at.Trigger,{render:t(e6,{disabled:n,variant:"ghost",size:"icon",children:t(w,{})})}),t(at.Content,{children:e.map(e=>{let{onClick:a,name:n,disabledReason:s,isLoading:o}=e;return t(tK,{arrow:!0,side:l,text:s,children:t(at.Item,{render:t(e6,{onClick:r(a),isLoading:o,variant:"ghost",size:"sm",fullWidth:!0,children:n})})},n)})})]}),as=e=>{let{isDisabledAction:r,handleWrapperClick:l,handleActionClick:n}=(({row:e,actions:t})=>{let{main:a,secondary:r}=t,l=[...a,...r||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!l,handleActionClick:$(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:s}=e,{main:o,secondary:i}=s;return a("div",{onClick:l,onKeyDown:l,className:"style__y44ln70",children:[o.map(e=>t(al,{action:e,onActionClick:n,isDisabled:r,tooltipPlacement:"top"},e.name)),i&&t(an,{actions:i,onActionClick:n,tooltipPlacement:"left",isDisabled:r})]})};var ao={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function ai({sorting:e,setSorting:r,column:{title:l,field:n,align:c="left"},className:u}){return n?a("button",{type:"button",className:s("style__o752f00",ao[c],u),onClick:()=>{e.key===n?r({key:n,order:"asc"===e.order?"desc":"asc"}):r({key:n,order:"asc"})},children:[l,e.key===n?"asc"===e.order?t(o,{size:16}):t(d,{size:16}):t(i,{size:16})]}):null}let ad="Вы достигли конца списка",ac=({endOfScrollMsg:e=ad})=>t("li",{className:"style__1syvw5e0",children:t(t_,{children:e})}),au=({onRetry:e})=>a("li",{className:"style__qlujai0",children:[t(t_,{align:"center",children:"Ошибка загрузки"}),t(e6,{size:"sm",onClick:e,children:"Попробовать снова"})]}),a_=()=>t("li",{className:"style__111czea0",children:t(tL,{color:"primary"})}),am=({noDataImgSrc:e})=>t(tV,{title:"Нет данных",imgSrc:e}),ah=({onClick:e,isVisible:a})=>t(e6,{onClick:e,size:"icon",variant:"outline",className:s("style__1jg5nd90",{style__1jg5nd91:a}),children:t(y,{})}),ap=({data:r,keyId:l,className:n,itemContent:o,noDataPlaceholder:i,endOfScrollMsg:d,errorState:c,isLoading:u,isError:_,isEndReached:m,onRetry:h,onEndReached:p,ref:g})=>{let y=K(null),b=g||y,[f,v]=U(!1),N=$(e=>{e.startIndex>2?v(!0):v(!1)},[]),w=$(()=>b.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[b]),k=$(()=>{!m&&p&&p()},[m,p]),x=!!r?.length;return x||u||_?a(tW,{isLoading:u&&!x,isError:_&&!x,errorState:c,children:[t(es,{className:s("style__1ezen7g0",n),style:{height:"100%"},data:r,ref:b,overscan:30,endReached:k,rangeChanged:N,itemContent:(e,a)=>t("li",{children:o?.(a,{index:e,className:s("style__1ezen7g1","datalist_item")})},a[l]),components:{Footer:()=>a(e,{children:[u&&t(a_,{}),_&&t(au,{onRetry:h}),m&&t(ac,{endOfScrollMsg:d})]})}}),t(ah,{isVisible:f,onClick:w})]}):i?t(e,{children:i}):t(am,{})};var ag="style__1blk89uc",ay="style__1blk89u6",ab={sm:"sm__1blk89u9",md:"md__1blk89ua",lg:"lg__1blk89ub"},af={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"};let av=({error:e,variant:r="outlined",size:l="md",startAdornment:n,endAdornment:o,className:i,disabled:d,fullWidth:c,value:u,ref:_,...m})=>a("div",{className:s("Input__1blk89u0",af[r],{style__1blk89u7:e},{[ay]:d},{style__1blk89u3:c},i),children:[n&&t("span",{className:ag,children:n}),t("input",{className:s("style__1blk89u8",ab[l],{[ay]:d,style__1blk89ud:!!n,style__1blk89ue:!!o}),ref:_,disabled:d,value:u||"",...m}),o&&t("span",{className:ag,children:o})]}),aN=({className:e,disabled:a,...r})=>t(ei,{className:s("Label__c31e140",{style__c31e141:a,style__c31e142:r.error,style__c31e143:r.required},e),...r}),aw=({label:e,helperText:r,className:l,disabled:n,fullWidth:o,ref:i,labelClassName:d,...c})=>a("div",{className:s("style__kqu4y20",{style__kqu4y25:o},l),children:[e&&t(aN,{htmlFor:c.id||e,disabled:n,required:c.required,error:c.error,className:s("style__kqu4y21",d),children:e}),t(av,{ref:i,disabled:n,fullWidth:o,id:c.id||e,...c}),r&&t(t_,{variant:"caption",className:s("style__kqu4y22",{style__kqu4y24:c.error,style__kqu4y23:n}),children:r})]}),ak=({maskProps:e,ref:a,...r})=>{let l=eo(e);return t(aw,{ref:$(e=>{l.current=e,"function"==typeof a?a(e):a&&(a.current=e)},[l,a]),...r})},ax=e=>{let{label:r,disabled:l=!1,selected:n,onSelect:s,selectMonth:o,selectYear:i,error:d,helperText:u,className:_,fullWidth:m,size:h,name:p,...g}=e,[y,b]=U(null),[f,v]=U(!1),[N,w]=U(new Date),[k,x]=U("");return G(()=>{n?(x(n.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})),w(n)):x("")},[n]),a(tj,{open:f,onOpenChange:v,children:[t(ak,{value:k,onChange:e=>{b(null),x(e.target.value);let[t,a,r]=e.target.value.split(".").map(Number);if(Number.isNaN(t)||Number.isNaN(a)||Number.isNaN(r)||t<1||t>31||a<1||a>12||r<1e3)return void b("Некорректная дата");let l=new Date(r,a-1,t);s?.(l),w(l)},label:r,disabled:l,className:_,fullWidth:m,size:h,name:p,endAdornment:t(tj.Trigger,{render:t(e6,{variant:"ghost",size:"icon",onClick:()=>{v(!0)},children:t(c,{})})}),maskProps:{mask:"__.__.____",replacement:{_:/\d/},showMask:!0},placeholder:"дд.мм.гггг",error:!!y||d,helperText:y||u}),t(tj.Content,{align:"end",alignOffset:-10,side:"bottom",children:t(tg,{month:N,onMonthChange:w,selected:n,onSelect:e=>{e?(s?.(e),w(e),x(e.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"}))):(x(""),s?.(void 0)),v(!1)},...g,mode:"single",captionLayout:o&&i?"dropdown":o?"dropdown-months":i?"dropdown-years":"label"})})]})},aC="descriptionRoot",az=B({leader:!1,separator:":",direction:"default"}),aS=({children:e,leader:a,separator:r,direction:l})=>t(az.Provider,{value:{leader:a,separator:r,direction:l},children:e});var aT={row:"row__1lociyw1",column:"column__1lociyw2"},aP={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"},aD="style__sdcsnp2";let aI=e=>{let{descriptionContextProviderProps:a,direction:r}=(({direction:e="row",separator:t=":"})=>({descriptionContextProviderProps:{separator:"column"===e?"":t},direction:e}))(e),{justifyContent:l="start",component:n="dl",children:o,leader:i=!1,className:d}=e;return t(aS,{leader:i,direction:r,...a,children:t(n,{className:s("style__1lociyw0",aT[r],aP[l],aC,d),children:o})})};function aA({...e}){return t(ed.Root,{"data-slot":"dialog",...e})}function aL({...e}){return t(ed.Portal,{"data-slot":"dialog-portal",...e})}function aR({className:e,...a}){return t(ed.Backdrop,{"data-slot":"dialog-overlay",className:s("style__8bkmbe4",e),...a})}aI.Name=({children:r,color:l="secondary",...n})=>{let{leader:o,separator:i}=H(az);return a(e,{children:[t("dt",{className:s("style__1tsgk1i0",{style__1tsgk1i1:o}),children:a(t_,{...n,color:l,children:[r,!o&&i]})}),o&&t("div",{className:"style__1tsgk1i2"})]})},aI.Value=e=>{let{valueToRender:a,isDefaultValueRender:r,leader:l}=(({canCopy:e,children:t,stub:a="—"})=>{let{leader:r,direction:l}=H(az);return{valueToRender:t||a,isDefaultValueRender:!e||!t,leader:r,direction:l}})(e),{copyPosition:s="right",copyText:o,canCopy:i,children:d,stub:c,...u}=e;return r?t(t_,{className:n("style__sdcsnp1",{[aD]:l}),component:"dd",...u,children:a}):t("dd",{className:"style__sdcsnp0",children:t(tU,{className:n({[aD]:l}),copyPosition:s,copyText:o,...u,children:a})})},aA.Trigger=function({...e}){return t(ed.Trigger,{"data-slot":"dialog-trigger",...e})},aA.Portal=aL,aA.Close=function({...e}){return t(ed.Close,{"data-slot":"dialog-close",...e})},aA.Overlay=aR,aA.Content=function({className:e,children:r,showCloseButton:l=!0,...n}){return a(aL,{children:[t(aR,{}),a(ed.Popup,{"data-slot":"dialog-content",className:s("style__8bkmbe5",e),...n,children:[r,l&&a(ed.Close,{"data-slot":"dialog-close",render:t(e6,{variant:"ghost",size:"iconSm",className:"style__8bkmbe6"}),children:[t(D,{}),t("span",{className:"style__8bkmbe7",children:"Close"})]})]})]})},aA.Header=function({className:e,...a}){return t("div",{"data-slot":"dialog-header",className:s("style__8bkmbe8",e),...a})},aA.Footer=function({className:e,showCloseButton:r=!1,children:l,...n}){return a("div",{"data-slot":"dialog-footer",className:s("style__8bkmbe9",e),...n,children:[l,r&&t(ed.Close,{render:t(e6,{variant:"outline"}),children:"Close"})]})},aA.Title=function({className:e,...a}){return t(ed.Title,{"data-slot":"dialog-title",className:s("style__8bkmbea",e),...a})},aA.Description=function({className:e,...a}){return t(ed.Description,{"data-slot":"dialog-description",className:s("style__8bkmbeb",e),...a})};let aM=({children:e,trigger:r,className:l,title:n,description:o="",footer:i,closeButton:d,...c})=>a(eu,{...c,children:[r&&t(ec.Trigger,{"data-slot":"drawer-trigger",asChild:!0,children:r}),a(ec.Portal,{"data-slot":"drawer-portal",children:[t(ec.Overlay,{"data-slot":"drawer-overlay",className:"style__ccss502"}),a(ec.Content,{"data-slot":"drawer-content",className:s("group/drawer-content","style__ccss503",l),children:[t("div",{className:"style__ccss504"}),a("div",{"data-slot":"drawer-header",className:"style__ccss505",children:[t(ec.Title,{"data-slot":"drawer-title",className:"style__ccss507",children:n}),t(ec.Description,{"data-slot":"drawer-description",className:"style__ccss508",children:o})]}),e,a("div",{"data-slot":"drawer-footer",className:"style__ccss506",children:[i,d&&t(ec.Close,{"data-slot":"drawer-close",asChild:!0,children:d})]})]})]})]});var aj={default:"default__e4li7y3",icon:"icon__e4li7y4"};function aF({className:e,...a}){return t("div",{"data-slot":"empty",className:s("style__e4li7y0",e),...a})}aF.Header=function({className:e,...a}){return t("div",{"data-slot":"empty-header",className:s("style__e4li7y1",e),...a})},aF.Media=function({className:e,variant:a="default",...r}){return t("div",{"data-slot":"empty-media","data-variant":a,className:s("style__e4li7y2",aj[a],e),...r})},aF.Title=function({className:e,...a}){return t("div",{"data-slot":"empty-title",className:s("style__e4li7y5",e),...a})},aF.Description=function({className:e,...a}){return t("div",{"data-slot":"empty-description",className:s("style__e4li7y6",e),...a})},aF.Content=function({className:e,...a}){return t("div",{"data-slot":"empty-content",className:s("style__e4li7y7",e),...a})};var aO="style__a5l83v4",aq="style__a5l83v0";let aB=({images:r=[],autoPlay:l=!1,interval:n=5e3})=>{let[o,i]=U(0);return(G(()=>{if(!l)return;let e=setInterval(()=>{i(e=>e===r.length-1?0:e+1)},n);return()=>clearInterval(e)},[l,r.length,n]),0===r.length)?t("div",{className:aq,children:"Нет изображений для отображения"}):a("div",{className:aq,children:[t("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*o}%)`},children:r.map((e,a)=>t("div",{className:"style__a5l83v2",children:t("img",{src:e.src,alt:e.alt||`Slide ${a+1}`,className:"style__a5l83v3"})},e.src))}),r.length>1&&a(e,{children:[t("button",{type:"button",className:s(aO,"style__a5l83v5"),onClick:()=>{i(e=>0===e?r.length-1:e-1)},children:t(h,{size:24})}),t("button",{type:"button",className:s(aO,"style__a5l83v6"),onClick:()=>{i(e=>e===r.length-1?0:e+1)},children:t(p,{size:24})}),t("div",{className:"style__a5l83v7",children:r.map(({src:e},a)=>t("button",{type:"button",className:`style__a5l83v8 ${o===a?"active":""}`,onClick:()=>{i(a)}},e))})]})]})},aE=({separator:e="•",...a})=>t("div",{...a,children:t("span",{className:"style__te1pgr0",children:e})}),a$=({char:e,hasFakeCaret:r,isActive:l,...n})=>a("div",{className:s("style__rtks2g0",{style__rtks2g1:l}),...n,children:[e,r&&t("div",{className:"style__rtks2g2",children:t("div",{className:"style__rtks2g4"})})]});var aH="style__1iixe0l2";let aG=({className:r,containerClassName:l,disabled:n,...o})=>t(e_,{containerClassName:s("style__1iixe0l0",{style__1iixe0l3:n},l),className:s("style__1iixe0l1",r),render:({slots:r})=>r.length%2!=0?t("div",{className:aH,children:r.map((e,a)=>t(a$,{...e},`${a.toString()}-${e.char}`))}):a(e,{children:[t("div",{className:aH,children:r.slice(0,r.length/2).map((e,a)=>t(a$,{...e},`${a.toString()}-${e.char}`))}),t(aE,{}),t("div",{className:aH,children:r.slice(r.length/2).map((e,a)=>t(a$,{...e},`${a.toString()}-${e.char}`))})]}),...o});var aV=((eW={}).info="info",eW.success="success",eW.warning="warning",eW.error="error",eW);let aW={topRight:"top-right",topLeft:"top-left",bottomRight:"bottom-right",bottomLeft:"bottom-left",topCenter:"top-center",bottomCenter:"bottom-center"};class aY{service;constructor(e){this.service=e}message(e,t){return this.service.message(e,{description:t})}success=e=>this.service.success(e);error=e=>this.service.error(e);info=e=>this.service.info(e);warning=e=>this.service.warning(e);loading=e=>this.service.loading(e);dismiss=e=>this.service.dismiss(e);custom=e=>this.service(e);action=({title:e,buttonLabel:t,onClick:a})=>this.service(e,{action:{label:t,onClick:a}})}let aK=new aY(eh),aU=({position:e="bottomRight",...a})=>t(em,{duration:3e3,icons:{error:t(C,{size:20,color:ty.colors.error}),success:t(b,{size:20,color:ty.colors.success}),warning:t(P,{size:20,color:ty.colors.warning}),info:t(k,{size:20,color:ty.colors.info})},position:aW[e],...a});var aX="style__t5ji060",aJ={left:"left__t5ji063",center:"center__t5ji064",right:"right__t5ji065",justify:"justify__t5ji066"};let aQ=(e,t=!1)=>{let a=K(null),r=K(void 0),[l,n]=U(!1),s=$(([{target:e,contentRect:a}])=>{let r=e.scrollHeight>Math.round(a.height),l=e.scrollWidth>Math.round(a.width),s=t?l||r:l;n(e=>e===s?e:s)},[t]),o=$(t=>{a.current=t,((e,t)=>{if(e){if("function"==typeof e)return e(t);e.current=t}})(e,t)},[e]),i=$(e=>{let t=a.current;t&&s([{target:t,contentRect:t.getBoundingClientRect()}])},[s]);return W(()=>{let e=a.current;if(!e)return;i();let t=new ResizeObserver(e=>{clearTimeout(r.current),r.current=setTimeout(()=>{s(e)},500)});return t.observe(e),()=>{clearTimeout(r.current),t.unobserve(e),t.disconnect()}},[i,s]),{check:i,isOverflowed:l,ref:o}},aZ=e=>{let{label:r,hasVisibleLastSymbols:l,hasMultipleRows:n,overflowRef:o,tooltipContent:i,restTooltipProps:d,style:c,visibleLastSymbolsCount:u}=(({text:e,children:t,tooltipProps:a,visibleLastSymbolsCount:r=0,rowsCount:l=1,ref:n,style:s})=>{let o={...s,"--rows-count":l},i=e??("string"==typeof t?t:void 0),d=!!(i&&r>0),c=!d&&l>1,u=[i,l,r,d].join("|"),{check:_,isOverflowed:m,ref:h}=aQ(n,c),{content:p,text:g,...y}=a||{},b=m?p??g??i:void 0;return W(()=>{_(u)},[_,u]),{label:i,hasVisibleLastSymbols:d,hasMultipleRows:c,overflowRef:h,tooltipContent:b,restTooltipProps:y,style:o,visibleLastSymbolsCount:r}})(e),{align:_="left",className:m,text:h,children:p}=e;if(l&&r){let{firstPartLabel:l,secondPartLabel:n}={firstPartLabel:r.slice(0,-u),secondPartLabel:r.slice(-u)};return t(tK,{...d,arrow:!0,content:i,children:a("div",{className:s("style__t5ji062",aJ[_]),"data-slot":"overflow-typography",children:[t(t_,{...e,align:_,className:s(aX,m),component:"span","data-slot":"overflow-typography-start",display:"block",ref:o,style:c,children:l}),t(t_,{...e,align:_,className:m,component:"span","data-slot":"overflow-typography-end",style:c,children:n})]})})}return t(tK,{...d,arrow:!0,content:i,children:t(t_,{...e,align:_,className:s(aX,n&&"style__t5ji061",m),"data-slot":"overflow-typography",display:"block",ref:o,style:c,children:h??p})})},a1=({children:e,className:a})=>t("div",{className:s("style__adrl250",a),children:e});a1.Header=e=>{let{title:r,subtitle:l,breadcrumbs:n,actions:o,backButton:i,className:d}=e,{pinned:c,togglePinned:u}=tJ();return G(()=>{"string"==typeof r&&(document.title=r)},[r]),a("header",{className:s("page_header","style__nvcxbd1",d),children:[a("div",{className:"style__nvcxbd2",children:[t(tK,{text:c?"Развернуть":"Свернуть",children:t(e6,{variant:"ghost",size:"icon",onClick:u,children:c?t(T,{}):t(z,{})})}),i&&t(tK,{text:"Назад",children:t(e6,{...i,variant:"ghost",children:t(h,{})})})]}),n&&t("div",{className:"Breadcrumbs__nvcxbd0",children:n}),t("div",{className:"style__nvcxbd3",children:o}),"string"==typeof r?t(t_,{className:"style__nvcxbd4",component:"h1",variant:"h3","aria-level":1,children:r}):t("div",{className:"style__nvcxbd5",children:r}),l&&"string"==typeof l&&t(t_,{className:"style__nvcxbd6","aria-level":2,children:l}),l&&"string"!=typeof l&&t("div",{className:"style__nvcxbd7",children:l})]})},a1.Content=e=>{let{className:a,children:r,isFullHeight:l=!0}=e;return t("article",{className:s("page-content","style__1hr0uh00",{style__1hr0uh01:l},a),children:r})},a1.Footer=e=>{let{children:a,className:r}=e;return t("footer",{className:s("style__1bd8jnw0",r),children:a})},a1.Aside=({children:e,className:a})=>t("aside",{className:s("PageLayoutAside__1un4hm80",a,"page_aside"),children:e});let a0=(e,t)=>Array.from({length:t-e+1},(t,a)=>a+e);function a2(e){let{onPageChange:r,totalCount:l,siblingCount:n=1,currentPage:s,pageSize:o,size:i="icon"}=e,d=(({totalCount:e,pageSize:t,siblingCount:a=1,currentPage:r})=>Y(()=>{if(t<=0||e<=0)return[];let l=Math.ceil(e/t);if(a+5>=l)return a0(1,l);let n=Math.max(r-a,1),s=Math.min(r+a,l),o=n>2,i=s<l-2;return!o&&i?[...a0(1,3+2*a),null,l]:o&&!i?[1,null,...a0(l-(3+2*a)+1,l)]:o&&i?[1,null,...a0(n,s),null,l]:[]},[e,t,a,r]))({currentPage:s,totalCount:l,siblingCount:n,pageSize:o});if(0===s||d&&d.length<2)return null;let c=d.at(-1);return a("nav",{className:"style__p708oq0",children:[t(e6,{variant:"ghost",size:i,onClick:()=>{r(s-1)},disabled:1===s,children:t(h,{})}),d?.map((e,a)=>e?t(e6,{size:i,variant:e===s?"default":"outline",onClick:()=>r(+e),children:e},`${e}${a.toString()}`):t("span",{className:"style__p708oq1",children:t(N,{})})),t(e6,{variant:"ghost",size:i,onClick:()=>{r(s+1)},disabled:s===c,children:t(p,{})})]})}let a6=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],a5=["I квартал","II квартал","III квартал","IV квартал"],a9=e=>Math.ceil(e/3);function a4({year:e,onSelect:r,minDate:l,maxDate:n}){let s=Array.from({length:n.getFullYear()-l.getFullYear()+1},(e,t)=>l.getFullYear()+t);return a(rd,{onValueChange:e=>{r?.(Number(e))},value:e.toString(),children:[t(r_,{children:t(ru,{placeholder:e.toString()})}),t(rp,{children:s.map(e=>t(ry,{value:e.toString(),children:t(t_,{align:"center",variant:"subtitle1",transform:"capitalize",children:e})},e))})]})}let a8=e=>{let{label:r,disabled:l=!1,value:n,onSelect:s,type:o="month",placeholder:i="month"===o?"Выберите месяц":"Выберите квартал",error:d,helperText:u,max:_=new Date(2050,0,1),min:m=new Date(2e3,0,1),className:h,size:p,fullWidth:g,name:y}=e,b=new Date,[f,v]=U(!1),[N,w]=U(b.getFullYear()),k=e=>{s?.(e),v(!1)},x="month"===o?n?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):n?`${a5[a9(n.getMonth())]} ${n.getFullYear()}`:"";return G(()=>{n&&w(n.getFullYear())},[n]),a(tj,{open:f,onOpenChange:v,children:[t(aw,{label:r,value:x,disabled:l,size:p,fullWidth:g,name:y,endAdornment:t(tj.Trigger,{render:t(e6,{disabled:l,variant:"ghost",size:"icon",children:t(c,{})})}),placeholder:i,error:d,helperText:u,className:h}),t(tj.Content,{align:"end",alignOffset:-10,side:"bottom",children:a("div",{className:"style__1izfmw30",children:[t(a4,{year:N,onSelect:w,minDate:m,maxDate:_}),"month"===o?t("div",{className:"style__1izfmw31",children:a6.map((e,a)=>{let r=new Date(N,a,n?.getDate()||1);return t(e6,{variant:n?.getMonth()===a&&n.getFullYear()===r.getFullYear()?"default":"ghost",disabled:r<m||r>_,onClick:()=>k(r),children:e},e)})}):t("div",{className:"style__1izfmw32",children:a5.map((e,a)=>{let r=new Date(N,3*a,1);return t(e6,{variant:n&&[a9(n.getMonth())===a,n.getFullYear()===r.getFullYear()].every(Boolean)?"default":"ghost",disabled:r<m||r>_,onClick:()=>k(r),children:e},e)})})]})})]})},a3=({className:e,...a})=>t(ey,{"data-slot":"radio-group",className:n("RadioGroup__ia95d10",e),...a}),a7=({className:e,label:r,...l})=>a("div",{className:"style__ia95d11",children:[t(eg,{"data-slot":"radio-group-item",id:l.id||l.value,className:s("style__ia95d12",e),...l,children:t(ep,{"data-slot":"radio-group-indicator",className:"style__ia95d13",children:t(f,{className:"style__ia95d14"})})}),t(aN,{htmlFor:l.id||l.value,"data-slot":"radio-group-label",children:r})]});function re({className:e,defaultValue:r,value:l,min:n=0,max:o=100,onValueCommit:i,onValueCommitted:d,...c}){let u=eV.useMemo(()=>Array.isArray(l)?l:Array.isArray(r)?r:[n,o],[l,r,n,o]),_=eV.useMemo(()=>Array.from({length:u.length},(e,t)=>({key:`slider-thumb-${t}`,index:t})),[u.length]);return t(eb.Root,{"data-slot":"slider",className:s("style__h9oy580",e),defaultValue:r,value:l,min:n,max:o,thumbAlignment:"edge",onValueCommitted:(e,t)=>{d?.(e,t),i?.(e)},...c,children:a(eb.Control,{className:"style__h9oy581",children:[t(eb.Track,{"data-slot":"slider-track",className:"style__h9oy582",children:t(eb.Indicator,{"data-slot":"slider-range",className:"style__h9oy583"})}),_.map(e=>t(eb.Thumb,{"data-slot":"slider-thumb",index:e.index,className:"style__h9oy584"},e.key))]})})}var rt="style__1pnwkko6",ra={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},rr="style__1pnwkko5";function rl({min:e,max:r,onChange:l,minValue:n,maxValue:o,width:i=150,unit:d="",size:c="md",className:u,isActive:_,minInputRef:m,maxInputRef:h}){let{onMinValueChange:p,onMaxValueChange:g,minVal:y,maxVal:b,onKeyDown:f,onValueChange:v,onConfirm:N,minId:w,maxId:k}=(({min:e,max:t,maxValue:a,minValue:r,onChange:l})=>{let n=V(),s=V(),[o,i]=U(e),[d,c]=U(t);return G(()=>{i(r||e),c(a||t)},[r,a,e,t]),{maxId:s,minId:n,minVal:o,maxVal:d,onValueChange:e=>{e[0]===e[1]?l(e[0],e[1]):(i(e[0]),c(e[1]))},onMinValueChange:e=>{let{value:t}=e.target;Number.isNaN(+t)||i(+t)},onMaxValueChange:e=>{let{value:t}=e.target;Number.isNaN(t)||c(+t)},onKeyDown:a=>{"Enter"===a.key&&l(o>=e&&o<=t?o:e,d>=e&&d<=t?d:t)},onConfirm:e=>{l(e[0],e[1])}}})({min:e,max:r,maxValue:o,minValue:n,onChange:l});return a("div",{className:s("style__1pnwkko0",ra[c],{style__1pnwkko1:_},u),style:{width:i},children:[t(t_,{className:rr,color:"disabled",variant:"caption",children:"от"}),t("input",{className:rt,type:"text",id:w,value:y,onChange:p,onKeyDown:f,ref:m}),t(t_,{className:rr,color:"disabled",variant:"caption",children:"до"}),t("input",{className:rt,type:"text",id:k,value:b,onChange:g,onKeyDown:f,ref:h}),t(t_,{className:rr,color:"disabled",variant:"caption",children:d}),t("div",{className:"style__1pnwkko7",children:t(re,{min:e,max:r,value:[Number(y),Number(b)],onValueChange:v,onValueCommit:N})})]})}function rn({onClick:e,variant:a="outline",...r}){let[l,n]=U(!1);return G(()=>{let e=()=>{window.scrollY>400?n(!0):n(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),t(e6,{type:"button",variant:a,className:s("style__1ou2vjc0",{style__1ou2vjc1:l}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),...r,children:t(y,{})})}var rs="style__5ilg7od",ro="style__5ilg7o6",ri={sm:"sm__5ilg7o3",md:"md__5ilg7o4",lg:"lg__5ilg7o5"};let rd=eS,rc=ev,ru=eA,r_=({className:e,children:r,size:l="md",...n})=>a(eI,{className:s("style__5ilg7o2",ri[l],e),...n,children:[r,t(eN,{asChild:!0,children:t(m,{className:"style__5ilg7oe"})})]}),rm=({className:e,...a})=>t(eP,{className:s(ro,e),...a,children:t(y,{className:rs})}),rh=({className:e,...a})=>t(eT,{className:s(ro,e),...a,children:t(m,{className:rs})}),rp=({className:e,children:r,position:l="popper",...n})=>t(ez,{children:a(ef,{className:s("style__5ilg7o7",e),position:l,...n,children:[t(rm,{}),t(eL,{className:"style__5ilg7o8",children:r}),t(rh,{})]})}),rg=({className:e,...a})=>t(eC,{className:`style__5ilg7o9 ${e||""}`,...a}),ry=({className:e,children:r,...l})=>a(ew,{className:`style__5ilg7oa ${e||""}`,...l,children:[t("span",{className:"style__5ilg7ob",children:t(ek,{children:t(u,{className:rs})})}),t(ex,{children:r})]}),rb=({className:e,...a})=>t(eD,{className:`style__5ilg7oc ${e||""}`,...a});function rf({...e}){return t(ed.Root,{"data-slot":"sheet",...e})}function rv({...e}){return t(ed.Portal,{"data-slot":"sheet-portal",...e})}function rN({className:e,...a}){return t(ed.Backdrop,{"data-slot":"sheet-overlay",className:s("style__5dkj2fa",e),...a})}rf.Trigger=function({...e}){return t(ed.Trigger,{"data-slot":"sheet-trigger",...e})},rf.Close=function({...e}){return t(ed.Close,{"data-slot":"sheet-close",...e})},rf.Portal=rv,rf.Overlay=rN,rf.Content=function({className:e,children:r,side:l="right",showCloseButton:n=!0,...o}){return a(rv,{children:[t(rN,{}),a(ed.Popup,{"data-slot":"sheet-content","data-side":l,className:s("style__5dkj2fb",e),...o,children:[r,n&&a(ed.Close,{"data-slot":"sheet-close",render:t(e6,{variant:"ghost",className:"style__5dkj2fc",size:"iconSm"}),children:[t(D,{}),t("span",{className:"style__5dkj2fd",children:"Close"})]})]})]})},rf.Header=function({className:e,...a}){return t("div",{"data-slot":"sheet-header",className:s("style__5dkj2fe",e),...a})},rf.Footer=function({className:e,...a}){return t("div",{"data-slot":"sheet-footer",className:s("style__5dkj2ff",e),...a})},rf.Title=function({className:e,...a}){return t(ed.Title,{"data-slot":"sheet-title",className:s("style__5dkj2fg",e),...a})},rf.Description=function({className:e,...a}){return t(ed.Description,{"data-slot":"sheet-description",className:s("style__5dkj2fh",e),...a})};var rw={default:"default__1xiua9nr",sm:"sm__1xiua9ns",lg:"lg__1xiua9nt"},rk={default:"default__1xiua9np",outline:"outline__1xiua9nq"},rx={sm:"sm__1xiua9n13",md:"md__1xiua9n14"},rC="style__1xiua9nx",rz="style__1xiua9n9";let rS=eV.createContext(null);function rT(){let e=eV.useContext(rS);if(!e)throw Error("useSidebar must be used within a Sidebar.Provider.");return e}let rP=Object.assign(function({side:e="left",variant:r="sidebar",collapsible:l="offcanvas",className:n,style:o,children:i,...d}){let{isMobile:c,state:u,openMobile:_,setOpenMobile:m}=rT();return"none"===l?t("div",{"data-slot":"sidebar",style:o,className:s("style__1xiua9n5",n),...d,children:i}):c?t(rf,{open:_,onOpenChange:m,children:a(rf.Content,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",side:e,showCloseButton:!1,style:{"--sidebar-width":"18rem",...o},className:s("style__1xiua9n7",n),...d,children:[a(rf.Header,{className:rz,children:[t(rf.Title,{children:"Sidebar"}),t(rf.Description,{children:"Displays the mobile sidebar."})]}),t("div",{className:"style__1xiua9n8",children:i})]})}):a("div",{"data-state":u,"data-collapsible":"collapsed"===u?l:void 0,"data-variant":r,"data-side":e,"data-slot":"sidebar",className:"style__1xiua9n2",children:[t("div",{"data-slot":"sidebar-gap",className:"style__1xiua9n3"}),t("div",{"data-slot":"sidebar-container",className:s("style__1xiua9n4",n),style:o,...d,children:t("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"style__1xiua9n6",children:i})})]})},{Provider:function({defaultOpen:e=!0,open:a,onOpenChange:r,className:l,style:n,children:o,...i}){let d=function(){let[e,t]=eV.useState(void 0);return eV.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),a=()=>{t(window.innerWidth<768)};return e.addEventListener("change",a),t(window.innerWidth<768),()=>e.removeEventListener("change",a)},[]),!!e}(),[c,u]=eV.useState(!1),[_,m]=eV.useState(e),h=a??_,p=eV.useCallback(e=>{let t="function"==typeof e?e(h):e;r?r(t):m(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[r,h]),g=eV.useCallback(()=>{d?u(e=>!e):p(e=>!e)},[d,p]);eV.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);let y=h?"expanded":"collapsed",b=eV.useMemo(()=>({state:y,open:h,setOpen:p,isMobile:d,openMobile:c,setOpenMobile:u,toggleSidebar:g}),[y,h,p,d,c,g]);return t(rS.Provider,{value:b,children:t("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...n},className:s("style__1xiua9n1",l),...i,children:o})})},Trigger:function({className:r,onClick:l,children:n,...o}){let{toggleSidebar:i}=rT();return t(e6,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:s("style__1xiua9na",r),onClick:e=>{l?.(e),i()},...o,children:n??a(e,{children:[t(S,{}),t("span",{className:rz,children:"Toggle Sidebar"})]})})},Rail:function({className:e,...a}){let{toggleSidebar:r}=rT();return t("button",{type:"button","data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,title:"Toggle Sidebar",className:s("style__1xiua9nb",e),onClick:r,...a})},Inset:function({className:e,...a}){return t("main",{"data-slot":"sidebar-inset",className:s("style__1xiua9nc",e),...a})},Input:function({className:e,...a}){return t(av,{"data-slot":"sidebar-input","data-sidebar":"input",className:s("style__1xiua9nd",e),...a})},Header:function({className:e,...a}){return t("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:s("style__1xiua9ne",e),...a})},Footer:function({className:e,...a}){return t("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:s("style__1xiua9nf",e),...a})},Separator:function({className:e,orientation:a="horizontal",...r}){return t(j,{"data-slot":"sidebar-separator","data-sidebar":"separator",orientation:a,className:s("style__1xiua9ng",e),...r})},Content:function({className:e,...a}){return t("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:s("style__1xiua9nh",e),...a})},Group:function({className:e,...a}){return t("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:s("style__1xiua9ni",e),...a})},GroupLabel:function({className:e,render:t,...a}){return M({defaultTagName:"div",render:t,props:R({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:s("style__1xiua9nj",e)},a)})},GroupAction:function({className:e,render:t,...a}){return M({defaultTagName:"button",render:t,props:R({type:"button","data-slot":"sidebar-group-action","data-sidebar":"group-action",className:s("style__1xiua9nk",e)},a)})},GroupContent:function({className:e,...a}){return t("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:s("style__1xiua9nl",e),...a})},Menu:function({className:e,...a}){return t("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:s("style__1xiua9nm",e),...a})},MenuItem:function({className:e,...a}){return t("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:s("style__1xiua9nn",e),...a})},MenuButton:function({isActive:e=!1,variant:a="default",size:r="default",tooltip:l,className:n,render:o,...i}){let{isMobile:d,state:c}=rT(),u=M({defaultTagName:"button",render:o,props:R({type:"button","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":e?"true":"false",className:s("style__1xiua9no",rk[a],rw[r],n)},i)});return!l||"collapsed"!==c||d?u:t(tK,{side:"right",...function(e){if("string"==typeof e)return{text:e};let{children:t,...a}=e;return{content:t,...a}}(l),children:u})},MenuAction:function({className:e,showOnHover:t=!1,render:a,...r}){return M({defaultTagName:"button",render:a,props:R({type:"button","data-slot":"sidebar-menu-action","data-sidebar":"menu-action","data-show-on-hover":t?"true":void 0,className:s("style__1xiua9nu",e)},r)})},MenuBadge:function({className:e,...a}){return t("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:s("style__1xiua9nv",e),...a})},MenuSkeleton:function({className:e,showIcon:r=!1,...l}){let n=eV.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return a("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:s("style__1xiua9nw",e),...l,children:[r&&t("div",{className:s(rC,"style__1xiua9ny"),"data-sidebar":"menu-skeleton-icon"}),t("div",{className:s(rC,"style__1xiua9nz"),"data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})},MenuSub:function({className:e,...a}){return t("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:s("style__1xiua9n10",e),...a})},MenuSubItem:function({className:e,...a}){return t("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:s("style__1xiua9n11",e),...a})},MenuSubButton:function({size:e="md",isActive:t=!1,className:a,render:r,...l}){return M({defaultTagName:"a",render:r,props:R({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":e,"data-active":t?"true":"false",className:s("style__1xiua9n12",rx[e],a)},l)})}});var rD={sm:"sm__hworoa2",md:"md__hworoa3",lg:"lg__hworoa4"};let rI=e=>t(ej,{...e});rI.Content=({className:e,...a})=>t(eR,{className:s("style__hworoa5",e),...a}),rI.List=({className:e,...a})=>t(eM,{className:s("style__hworoa0",e),...a}),rI.Trigger=({className:e,size:a="md",...r})=>t(eF,{className:s("style__hworoa1",rD[a],e),...r});let rA=({value:e,onChange:r,options:l,size:n,className:o,label:i,multiple:d})=>{let c=!0===d;return a("div",{className:s("style__10hvn8a0",o),children:[i&&t(aN,{className:"style__10hvn8a3",children:i}),t("div",{className:"style__10hvn8a1",children:l.map(a=>{var l;return t(tK,{arrow:!0,text:a.title,children:t(e6,{size:n,className:"style__10hvn8a2",disabled:a.disabled,onClick:()=>{var t;return t=a.value,void(c?e.includes(t)?r(e.filter(e=>e!==t)):r([...e,t]):r(t))},startAdornment:a.startAdornment,endAdornment:a.endAdornment,variant:(l=a.value,c?e.includes(l):e===l)?"default":"outline",children:a.label},a.value)},a.value)})})]})},rL=({form:e,children:a,...r})=>t(eq,{...e,children:t("form",{noValidate:!0,...r,children:a})});function rR({name:e,control:a,...r}){return t(eO,{control:a,name:e,render:({field:e,fieldState:a})=>t(ak,{...r,...e,error:!!a.error,helperText:a.error?.message})})}let rM=({mode:e="onBlur",...t}={})=>e$({...t,mode:e}),rj=({children:e,isLoading:a,...r})=>{let{formState:l}=eH();return t(e6,{type:"submit",isLoading:a||l.isSubmitting,...r,children:e})};function rF({name:e,control:a,gridArea:r,...l}){return t(eO,{control:a,name:e,render:({field:e,fieldState:a})=>t(aw,{...l,...e,style:{gridArea:r},value:e.value||"",error:!!a.error,helperText:a.error?.message})})}var rO=":",rq="—",rB="notify";export{eU as Accordion,e3 as AlertDialog,e7 as Avatar,tt as Badge,ta as Breadcrumb,tr as ButtonGroup,e6 as Button,e9 as buttonSizes,e5 as buttonVariants,tg as Calendar,tb as Card,tP as Carousel,tD as Checkbox,tL as CircularProgress,tR as Collapsible,tF as ConfirmAction,tW as ContentState,eO as FormController,tU as CopyTypography,aC as DESCRIPTION_ROOT_CLASSNAME,tZ as DashboardLayout,t3 as DataGrid,as as DataGridActionCell,ai as DataGridSortHeader,ap as DataList,ax as DatePicker,aI as Description,aA as Dialog,aM as Drawer,at as DropdownMenu,aF as Empty,rL as Form,rR as FormMaskField,eq as FormProvider,rj as FormSubmitButton,rF as FormTextField,aB as ImageCarousel,tq as Image,av as Input,aG as InputOTP,aN as Label,ak as MaskField,aW as NOTIFICATION_POSITIONS,aY as Notification,aU as NotificationContainer,aZ as OverflowTypography,a1 as PageLayout,a2 as Pagination,a8 as PeriodPicker,tV as Placeholder,tj as Popover,a7 as RadioGroupItem,a3 as RadioGroup,rl as RangeInput,rn as ScrollTopButton,rd as Select,rp as SelectContent,rc as SelectGroup,ry as SelectItem,rg as SelectLabel,rh as SelectScrollDownButton,rm as SelectScrollUpButton,rb as SelectSeparator,r_ as SelectTrigger,ru as SelectValue,rf as Sheet,rP as Sidebar,re as Slider,rI as Tabs,aw as TextField,rA as ToggleGroup,tK as Tooltip,t_ as Typography,tl as alignments,te as badgeVariants,tn as colors,aV as NotificationVariantTypes,tM as createHandle,to as displays,aK as notification,rO as DEFAULT_SEPARATOR,rq as DEFAULT_SYMBOL,rB as NOTIFY_CLASSNAME,ty as theme,ti as transforms,eB as useFormController,tJ as useDashboard,eE as useFormFieldArray,eH as useFormContext,rM as useForm,aQ as useOverflowed,rT as useSidebar,eG as useFormWatch,td as variants,tc as weights};
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { Accordion, Checkbox } from "@base-ui/react";
3
+ import clsx_0, { clsx } from "clsx";
4
+ import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, CheckIcon, ChevronDown, ChevronLeft, ChevronRight, ChevronRightIcon, ChevronUp, CircleCheck, CircleIcon, Copy, Ellipsis as external_lucide_react_Ellipsis, EllipsisVertical, Info, MoreHorizontalIcon, OctagonAlert, PanelLeftClose, PanelLeftIcon, PanelLeftOpen, TriangleAlert, XIcon } from "lucide-react";
5
+ import { AlertDialog } from "@base-ui/react/alert-dialog";
6
+ import { Button } from "@base-ui/react/button";
7
+ import { Avatar } from "@base-ui/react/avatar";
8
+ import { mergeProps } from "@base-ui/react/merge-props";
9
+ import { useRender } from "@base-ui/react/use-render";
10
+ import { Separator as separator_Separator } from "@base-ui/react/separator";
11
+ import { DayPicker } from "react-day-picker";
12
+ import { ru } from "react-day-picker/locale";
13
+ import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
14
+ import embla_carousel_react from "embla-carousel-react";
15
+ import { Collapsible } from "@base-ui/react/collapsible";
16
+ import { Popover } from "@base-ui/react/popover";
17
+ import { Arrow, Content as react_tooltip_Content, Portal as react_tooltip_Portal, Provider, Root, Trigger as react_tooltip_Trigger } from "@radix-ui/react-tooltip";
18
+ import { Menu } from "@base-ui/react/menu";
19
+ import { Virtuoso } from "react-virtuoso";
20
+ import { useMask } from "@react-input/mask";
21
+ import { Root as react_label_Root } from "@radix-ui/react-label";
22
+ import { Dialog } from "@base-ui/react/dialog";
23
+ import { Drawer, Root as external_vaul_Root } from "vaul";
24
+ import { OTPInput } from "input-otp";
25
+ import { Toaster, toast } from "sonner";
26
+ import { Indicator, Item as react_radio_group_Item, Root as react_radio_group_Root } from "@radix-ui/react-radio-group";
27
+ import { Slider } from "@base-ui/react/slider";
28
+ import { Content as react_select_Content, Group as react_select_Group, Icon, Item as react_select_Item, ItemIndicator, ItemText, Label as react_select_Label, Portal as react_select_Portal, Root as react_select_Root, ScrollDownButton, ScrollUpButton, Separator as react_select_Separator, Trigger as react_select_Trigger, Value as react_select_Value, Viewport } from "@radix-ui/react-select";
29
+ import { Content as react_tabs_Content, List as react_tabs_List, Tabs, Trigger as react_tabs_Trigger } from "@radix-ui/react-tabs";
30
+ import * as __rspack_external_react from "react";
31
+ var __webpack_require__ = {};
32
+ (()=>{
33
+ __webpack_require__.d = (exports, getters, values)=>{
34
+ var define = (defs, kind)=>{
35
+ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
36
+ enumerable: true,
37
+ [kind]: defs[key]
38
+ });
39
+ };
40
+ define(getters, "get");
41
+ define(values, "value");
42
+ };
43
+ })();
44
+ (()=>{
45
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
46
+ })();
47
+ (()=>{
48
+ __webpack_require__.r = (exports)=>{
49
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
50
+ value: 'Module'
51
+ });
52
+ Object.defineProperty(exports, '__esModule', {
53
+ value: true
54
+ });
55
+ };
56
+ })();
57
+ var button_css_namespaceObject = {};
58
+ __webpack_require__.r(button_css_namespaceObject);
59
+ __webpack_require__.d(button_css_namespaceObject, {
60
+ e: ()=>buttonBase,
61
+ dK: ()=>buttonSizes,
62
+ ru: ()=>buttonVariants,
63
+ ik: ()=>button_css_endAdornment,
64
+ Fu: ()=>fullWidthStyle,
65
+ Lq: ()=>loading,
66
+ PM: ()=>button_css_startAdornment
67
+ });
68
+ var styles_css_header = 'style__1b0hb6s4';
69
+ var styles_css_item = 'style__1b0hb6s3';
70
+ var panel = 'style__1b0hb6s9';
71
+ var panelContent = 'style__1b0hb6sa';
72
+ var root = 'style__1b0hb6s2';
73
+ var styles_css_trigger = 'style__1b0hb6s5';
74
+ var triggerIconDown = 'style__1b0hb6s7 style__1b0hb6s6';
75
+ var triggerIconUp = 'style__1b0hb6s8 style__1b0hb6s6';
76
+ function Accordion_Accordion({ className, ...props }) {
77
+ return /*#__PURE__*/ jsx(Accordion.Root, {
78
+ "data-slot": "accordion",
79
+ className: clsx(root, className),
80
+ ...props
81
+ });
82
+ }
83
+ function Item({ className, ...props }) {
84
+ return /*#__PURE__*/ jsx(Accordion.Item, {
85
+ "data-slot": "accordion-item",
86
+ className: clsx(styles_css_item, className),
87
+ ...props
88
+ });
89
+ }
90
+ function Trigger({ className, children, ...props }) {
91
+ return /*#__PURE__*/ jsx(Accordion.Header, {
92
+ className: styles_css_header,
93
+ children: /*#__PURE__*/ jsxs(Accordion.Trigger, {
94
+ "data-slot": "accordion-trigger",
95
+ className: clsx(styles_css_trigger, className),
96
+ ...props,
97
+ children: [
98
+ children,
99
+ /*#__PURE__*/ jsx(ChevronDown, {
100
+ "data-slot": "accordion-trigger-icon",
101
+ size: 16,
102
+ className: triggerIconDown
103
+ }),
104
+ /*#__PURE__*/ jsx(ChevronUp, {
105
+ "data-slot": "accordion-trigger-icon",
106
+ size: 16,
107
+ className: triggerIconUp
108
+ })
109
+ ]
110
+ })
111
+ });
112
+ }
113
+ function Accordion_Content({ className, children, ...props }) {
114
+ return /*#__PURE__*/ jsx(Accordion.Panel, {
115
+ "data-slot": "accordion-content",
116
+ className: clsx(panel, className),
117
+ ...props,
118
+ children: /*#__PURE__*/ jsx("div", {
119
+ className: clsx(panelContent, className),
120
+ children: children
121
+ })
122
+ });
123
+ }
124
+ Accordion_Accordion.Item = Item;
125
+ Accordion_Accordion.Trigger = Trigger;
126
+ Accordion_Accordion.Content = Accordion_Content;
127
+ var buttonBase = 'style__1ersxw10';
128
+ var buttonSizes = {
129
+ sm: 'sm__1ersxw19',
130
+ md: 'md__1ersxw1a',
131
+ lg: 'lg__1ersxw1b',
132
+ icon: 'icon__1ersxw1c',
133
+ iconSm: 'iconSm__1ersxw1d'
134
+ };
135
+ var buttonVariants = {
136
+ default: 'default__1ersxw14',
137
+ destructive: 'destructive__1ersxw15',
138
+ outline: 'outline__1ersxw16',
139
+ ghost: 'ghost__1ersxw17',
140
+ link: 'link__1ersxw18'
141
+ };
142
+ var button_css_endAdornment = 'style__1ersxw1f';
143
+ var fullWidthStyle = 'style__1ersxw13';
144
+ var loading = 'style__1ersxw12';
145
+ var button_css_startAdornment = 'style__1ersxw1e';
146
+ const Button_Button = ({ className, variant = 'default', size = 'md', startAdornment, endAdornment, isLoading = false, fullWidth, children, ...props })=>/*#__PURE__*/ jsxs(Button, {
147
+ nativeButton: props.nativeButton ?? !props.render,
148
+ className: clsx(buttonBase, buttonVariants[variant], buttonSizes[size], {
149
+ [fullWidthStyle]: fullWidth,
150
+ [loading]: isLoading
151
+ }, className),
152
+ ...props,
153
+ children: [
154
+ startAdornment && /*#__PURE__*/ jsx("span", {
155
+ className: button_css_startAdornment,
156
+ children: startAdornment
157
+ }),
158
+ children,
159
+ endAdornment && /*#__PURE__*/ jsx("span", {
160
+ className: button_css_endAdornment,
161
+ children: endAdornment
162
+ })
163
+ ]
164
+ });
165
+ const { ru: Button_buttonVariants, dK: Button_buttonSizes } = button_css_namespaceObject;
166
+ var styles_css_content = 'style__qmtpwy5';
167
+ var styles_css_description = 'style__qmtpwya';
168
+ var styles_css_footer = 'style__qmtpwy7';
169
+ var AlertDialog_styles_css_header = 'style__qmtpwy6';
170
+ var media = 'style__qmtpwy8';
171
+ var overlay = 'style__qmtpwy4';
172
+ var styles_css_title = 'style__qmtpwy9';
173
+ function AlertDialog_Trigger({ ...props }) {
174
+ return /*#__PURE__*/ jsx(AlertDialog.Trigger, {
175
+ "data-slot": "alert-dialog-trigger",
176
+ ...props
177
+ });
178
+ }
179
+ function Portal({ ...props }) {
180
+ return /*#__PURE__*/ jsx(AlertDialog.Portal, {
181
+ "data-slot": "alert-dialog-portal",
182
+ ...props
183
+ });
184
+ }
185
+ function Overlay({ className, ...props }) {
186
+ return /*#__PURE__*/ jsx(AlertDialog.Backdrop, {
187
+ "data-slot": "alert-dialog-overlay",
188
+ className: clsx(overlay, className),
189
+ ...props
190
+ });
191
+ }
192
+ function AlertDialog_Content({ className, size = 'default', ...props }) {
193
+ return /*#__PURE__*/ jsxs(Portal, {
194
+ children: [
195
+ /*#__PURE__*/ jsx(Overlay, {}),
196
+ /*#__PURE__*/ jsx(AlertDialog.Popup, {
197
+ "data-slot": "alert-dialog-content",
198
+ "data-size": size,
199
+ className: clsx(styles_css_content, className),
200
+ ...props
201
+ })
202
+ ]
203
+ });
204
+ }
205
+ function Header({ className, ...props }) {
206
+ return /*#__PURE__*/ jsx("div", {
207
+ "data-slot": "alert-dialog-header",
208
+ className: clsx(AlertDialog_styles_css_header, className),
209
+ ...props
210
+ });
211
+ }
212
+ function Footer({ className, ...props }) {
213
+ return /*#__PURE__*/ jsx("div", {
214
+ "data-slot": "alert-dialog-footer",
215
+ className: clsx(styles_css_footer, className),
216
+ ...props
217
+ });
218
+ }
219
+ function Media({ className, ...props }) {
220
+ return /*#__PURE__*/ jsx("div", {
221
+ "data-slot": "alert-dialog-media",
222
+ className: clsx(media, className),
223
+ ...props
224
+ });
225
+ }
226
+ function Title({ className, ...props }) {
227
+ return /*#__PURE__*/ jsx(AlertDialog.Title, {
228
+ "data-slot": "alert-dialog-title",
229
+ className: clsx(styles_css_title, className),
230
+ ...props
231
+ });
232
+ }
233
+ function Description({ className, ...props }) {
234
+ return /*#__PURE__*/ jsx(AlertDialog.Description, {
235
+ "data-slot": "alert-dialog-description",
236
+ className: clsx(styles_css_description, className),
237
+ ...props
238
+ });
239
+ }
240
+ function Action({ className, ...props }) {
241
+ return /*#__PURE__*/ jsx(Button_Button, {
242
+ "data-slot": "alert-dialog-action",
243
+ className: className,
244
+ ...props
245
+ });
246
+ }
247
+ function Cancel({ className, variant = 'outline', size = 'md', ...props }) {
248
+ return /*#__PURE__*/ jsx(AlertDialog.Close, {
249
+ "data-slot": "alert-dialog-cancel",
250
+ className: className,
251
+ render: /*#__PURE__*/ jsx(Button_Button, {
252
+ variant: variant,
253
+ size: size
254
+ }),
255
+ ...props
256
+ });
257
+ }
258
+ function AlertDialog_AlertDialog({ ...props }) {
259
+ return /*#__PURE__*/ jsx(AlertDialog.Root, {
260
+ "data-slot": "alert-dialog",
261
+ ...props
262
+ });
263
+ }
264
+ AlertDialog_AlertDialog.Trigger = AlertDialog_Trigger;
265
+ AlertDialog_AlertDialog.Overlay = Overlay;
266
+ AlertDialog_AlertDialog.Content = AlertDialog_Content;
267
+ AlertDialog_AlertDialog.Header = Header;
268
+ AlertDialog_AlertDialog.Footer = Footer;
269
+ AlertDialog_AlertDialog.Media = Media;
270
+ AlertDialog_AlertDialog.Title = Title;
271
+ AlertDialog_AlertDialog.Description = Description;
272
+ AlertDialog_AlertDialog.Action = Action;
273
+ AlertDialog_AlertDialog.Cancel = Cancel;
274
+ var badge = 'style__hhcrfl3';
275
+ var fallback = 'style__hhcrfl2';
276
+ var group = 'style__hhcrfl4';
277
+ var groupCount = 'style__hhcrfl5';
278
+ var styles_css_image = 'style__hhcrfl1';
279
+ var styles_css_root = 'style__hhcrfl0';
280
+ function Avatar_Avatar({ className, size = 'default', ...props }) {
281
+ return /*#__PURE__*/ jsx(Avatar.Root, {
282
+ "data-slot": "avatar",
283
+ "data-size": size,
284
+ className: clsx(styles_css_root, className),
285
+ ...props
286
+ });
287
+ }
288
+ function Image({ className, ...props }) {
289
+ return /*#__PURE__*/ jsx(Avatar.Image, {
290
+ "data-slot": "avatar-image",
291
+ className: clsx(styles_css_image, className),
292
+ ...props
293
+ });
294
+ }
295
+ function Fallback({ className, ...props }) {
296
+ return /*#__PURE__*/ jsx(Avatar.Fallback, {
297
+ "data-slot": "avatar-fallback",
298
+ className: clsx(fallback, className),
299
+ ...props
300
+ });
301
+ }
302
+ function Badge({ className, ...props }) {
303
+ return /*#__PURE__*/ jsx("span", {
304
+ "data-slot": "avatar-badge",
305
+ className: clsx(badge, className),
306
+ ...props
307
+ });
308
+ }
309
+ function Group({ className, ...props }) {
310
+ return /*#__PURE__*/ jsx("div", {
311
+ "data-slot": "avatar-group",
312
+ className: clsx(group, className),
313
+ ...props
314
+ });
315
+ }
316
+ function GroupCount({ className, ...props }) {
317
+ return /*#__PURE__*/ jsx("div", {
318
+ "data-slot": "avatar-group-count",
319
+ className: clsx(groupCount, className),
320
+ ...props
321
+ });
322
+ }
323
+ Avatar_Avatar.Image = Image;
324
+ Avatar_Avatar.Fallback = Fallback;
325
+ Avatar_Avatar.Badge = Badge;
326
+ Avatar_Avatar.Group = Group;
327
+ Avatar_Avatar.GroupCount = GroupCount;
328
+ var badgeVariants = {
329
+ default: 'default__1af895x1',
330
+ secondary: 'secondary__1af895x2',
331
+ destructive: 'destructive__1af895x3',
332
+ outline: 'outline__1af895x4'
333
+ };
334
+ var rootClass = 'style__1af895x0';
335
+ function Badge_Badge({ className, variant = 'default', render, ...props }) {
336
+ return useRender({
337
+ defaultTagName: 'span',
338
+ props: mergeProps({
339
+ className: clsx(rootClass, badgeVariants[variant], className)
340
+ }, props),
341
+ render,
342
+ state: {
343
+ slot: 'badge',
344
+ variant
345
+ }
346
+ });
347
+ }
348
+ var ellipsis = 'style__1dceszz5';
349
+ var Breadcrumb_styles_css_item = 'style__1dceszz1';
350
+ var styles_css_link = 'style__1dceszz2';
351
+ var list = 'style__1dceszz0';
352
+ var page = 'style__1dceszz3';
353
+ var styles_css_separator = 'style__1dceszz4';
354
+ var visuallyHidden = 'style__1dceszz6';
355
+ function Breadcrumb({ className, ...props }) {
356
+ return /*#__PURE__*/ jsx("nav", {
357
+ "aria-label": "breadcrumb",
358
+ "data-slot": "breadcrumb",
359
+ className: className,
360
+ ...props
361
+ });
362
+ }
363
+ function List({ className, ...props }) {
364
+ return /*#__PURE__*/ jsx("ol", {
365
+ "data-slot": "breadcrumb-list",
366
+ className: clsx(list, className),
367
+ ...props
368
+ });
369
+ }
370
+ function Breadcrumb_Item({ className, ...props }) {
371
+ return /*#__PURE__*/ jsx("li", {
372
+ "data-slot": "breadcrumb-item",
373
+ className: clsx(Breadcrumb_styles_css_item, className),
374
+ ...props
375
+ });
376
+ }
377
+ function Link({ className, render, ...props }) {
378
+ return useRender({
379
+ defaultTagName: 'a',
380
+ props: mergeProps({
381
+ className: clsx(styles_css_link, className)
382
+ }, props),
383
+ render,
384
+ state: {
385
+ slot: 'breadcrumb-link'
386
+ }
387
+ });
388
+ }
389
+ function Page({ className, ...props }) {
390
+ return /*#__PURE__*/ jsx("span", {
391
+ "data-slot": "breadcrumb-page",
392
+ "aria-current": "page",
393
+ className: clsx(page, className),
394
+ ...props
395
+ });
396
+ }
397
+ function Separator({ children, className, ...props }) {
398
+ return /*#__PURE__*/ jsx("li", {
399
+ "data-slot": "breadcrumb-separator",
400
+ role: "presentation",
401
+ "aria-hidden": "true",
402
+ className: clsx(styles_css_separator, className),
403
+ ...props,
404
+ children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
405
+ });
406
+ }
407
+ function Ellipsis({ className, ...props }) {
408
+ return /*#__PURE__*/ jsxs("span", {
409
+ "data-slot": "breadcrumb-ellipsis",
410
+ role: "presentation",
411
+ "aria-hidden": "true",
412
+ className: clsx(ellipsis, className),
413
+ ...props,
414
+ children: [
415
+ /*#__PURE__*/ jsx(MoreHorizontalIcon, {}),
416
+ /*#__PURE__*/ jsx("span", {
417
+ className: visuallyHidden,
418
+ children: "More"
419
+ })
420
+ ]
421
+ });
422
+ }
423
+ Breadcrumb.List = List;
424
+ Breadcrumb.Item = Breadcrumb_Item;
425
+ Breadcrumb.Link = Link;
426
+ Breadcrumb.Page = Page;
427
+ Breadcrumb.Separator = Separator;
428
+ Breadcrumb.Ellipsis = Ellipsis;
429
+ var ButtonGroup_styles_css_root = 'style__1mf3lgr0';
430
+ var ButtonGroup_styles_css_separator = 'style__1mf3lgr2';
431
+ var styles_css_text = 'style__1mf3lgr1';
432
+ function ButtonGroup({ className, orientation = 'horizontal', ...props }) {
433
+ return /*#__PURE__*/ jsx("fieldset", {
434
+ "data-slot": "button-group",
435
+ "data-orientation": orientation,
436
+ className: clsx(ButtonGroup_styles_css_root, className),
437
+ ...props
438
+ });
439
+ }
440
+ function Text({ className, render, ...props }) {
441
+ return useRender({
442
+ defaultTagName: 'div',
443
+ props: mergeProps({
444
+ className: clsx(styles_css_text, className)
445
+ }, props),
446
+ render,
447
+ state: {
448
+ slot: 'button-group-text'
449
+ }
450
+ });
451
+ }
452
+ function ButtonGroup_Separator({ className, orientation = 'vertical', ...props }) {
453
+ return /*#__PURE__*/ jsx(separator_Separator, {
454
+ "data-slot": "button-group-separator",
455
+ "data-orientation": orientation,
456
+ orientation: orientation,
457
+ className: clsx(ButtonGroup_styles_css_separator, className),
458
+ ...props
459
+ });
460
+ }
461
+ ButtonGroup.Text = Text;
462
+ ButtonGroup.Separator = ButtonGroup_Separator;
463
+ var alignments = {
464
+ left: 'left__1sba6zok',
465
+ center: 'center__1sba6zol',
466
+ right: 'right__1sba6zom',
467
+ justify: 'justify__1sba6zon'
468
+ };
469
+ var colors = {
470
+ primary: 'primary__1sba6zoc',
471
+ secondary: 'secondary__1sba6zod',
472
+ disabled: 'disabled__1sba6zoe',
473
+ success: 'success__1sba6zof',
474
+ error: 'error__1sba6zog',
475
+ warning: 'warning__1sba6zoh',
476
+ info: 'info__1sba6zoi',
477
+ muted: 'muted__1sba6zoj'
478
+ };
479
+ var decorations = {
480
+ none: 'none__1sba6zox',
481
+ underline: 'underline__1sba6zoy',
482
+ lineThrough: 'lineThrough__1sba6zoz'
483
+ };
484
+ var displays = {
485
+ block: 'block__1sba6zoo',
486
+ inline: 'inline__1sba6zop'
487
+ };
488
+ var gutterBottomClass = 'style__1sba6zo10';
489
+ var transforms = {
490
+ lowercase: 'lowercase__1sba6zou',
491
+ uppercase: 'uppercase__1sba6zov',
492
+ capitalize: 'capitalize__1sba6zow'
493
+ };
494
+ var variants = {
495
+ h1: 'h1__1sba6zo0',
496
+ h2: 'h2__1sba6zo1',
497
+ h3: 'h3__1sba6zo2',
498
+ h4: 'h4__1sba6zo3',
499
+ h5: 'h5__1sba6zo4',
500
+ h6: 'h6__1sba6zo5',
501
+ subtitle1: 'subtitle1__1sba6zo6',
502
+ subtitle2: 'subtitle2__1sba6zo7',
503
+ body1: 'body1__1sba6zo8',
504
+ body2: 'body2__1sba6zo9',
505
+ caption: 'caption__1sba6zoa',
506
+ overline: 'overline__1sba6zob'
507
+ };
508
+ var weights = {
509
+ normal: 'normal__1sba6zoq',
510
+ medium: 'medium__1sba6zor',
511
+ semibold: 'semibold__1sba6zos',
512
+ bold: 'bold__1sba6zot'
513
+ };
514
+ const VARIANT_COMPONENT_MAP = {
515
+ h1: 'h1',
516
+ h2: 'h2',
517
+ h3: 'h3',
518
+ h4: 'h4',
519
+ h5: 'h5',
520
+ h6: 'h6',
521
+ subtitle1: 'h6',
522
+ subtitle2: 'h6',
523
+ body1: 'p',
524
+ body2: 'p',
525
+ caption: 'span',
526
+ overline: 'span'
527
+ };
528
+ const Typography = ({ className, variant = 'body1', component, color = 'primary', align = 'left', display = 'inline', weight = 'normal', transform, decoration = 'none', gutterBottom, children, ...props })=>{
529
+ const Component = component || VARIANT_COMPONENT_MAP[variant || 'body1'];
530
+ return /*#__PURE__*/ jsx(Component, {
531
+ className: clsx(decorations[decoration], variants[variant], colors[color], weights[weight], transform && transforms[transform], displays[display], alignments[align], {
532
+ [gutterBottomClass]: gutterBottom
533
+ }, className),
534
+ ...props,
535
+ children: children
536
+ });
537
+ };
538
+ var styles_css_button = 'dayButton__hxs6pw0';
539
+ var outside = 'outside__hxs6pw2';
540
+ var today = 'today__hxs6pw1';
541
+ const DayButton = (props)=>{
542
+ const { modifiers, className, ...buttonProps } = props;
543
+ const ref = useRef(null);
544
+ useEffect(()=>{
545
+ if (modifiers.focused) ref.current?.focus();
546
+ }, [
547
+ modifiers.focused
548
+ ]);
549
+ return /*#__PURE__*/ jsx(Button_Button, {
550
+ ref: ref,
551
+ className: clsx(styles_css_button, {
552
+ [outside]: modifiers.outside,
553
+ [today]: modifiers.today
554
+ }, className),
555
+ variant: modifiers.selected ? 'default' : 'ghost',
556
+ ...buttonProps
557
+ });
558
+ };
559
+ var Dropdown_styles_css_trigger = 'style__1e2msjb0';
560
+ function Dropdown(props) {
561
+ const { options, onChange, ...restProps } = props;
562
+ const selectedOption = options?.find(({ value })=>value === restProps.value);
563
+ const handleChange = (value)=>{
564
+ if (onChange) onChange({
565
+ target: {
566
+ value
567
+ }
568
+ });
569
+ };
570
+ return /*#__PURE__*/ jsxs(Select, {
571
+ value: selectedOption?.value.toString(),
572
+ onValueChange: handleChange,
573
+ children: [
574
+ /*#__PURE__*/ jsx(SelectTrigger, {
575
+ className: Dropdown_styles_css_trigger,
576
+ children: /*#__PURE__*/ jsx(SelectValue, {
577
+ placeholder: selectedOption?.label
578
+ })
579
+ }),
580
+ /*#__PURE__*/ jsx(SelectContent, {
581
+ children: options?.map(({ value, label, disabled })=>/*#__PURE__*/ jsx(SelectItem, {
582
+ value: value.toString(),
583
+ disabled: disabled,
584
+ children: /*#__PURE__*/ jsx(Typography, {
585
+ align: "center",
586
+ transform: "capitalize",
587
+ children: label
588
+ })
589
+ }, value))
590
+ })
591
+ ]
592
+ });
593
+ }
594
+ var dropdownNav = 'dropdownNav__14q7je26';
595
+ var dropdowns = 'dropdowns__14q7je25';
596
+ var styles_css_month = 'month__14q7je23';
597
+ var monthButton = 'monthButton__14q7je21';
598
+ var monthCaption = 'monthCaption__14q7je24';
599
+ var months = 'months__14q7je22';
600
+ var nav = 'nav__14q7je20';
601
+ const Calendar = ({ className, classNames, showOutsideDays = true, ...props })=>/*#__PURE__*/ jsx(DayPicker, {
602
+ locale: ru,
603
+ showOutsideDays: showOutsideDays,
604
+ classNames: {
605
+ month: styles_css_month,
606
+ months: months,
607
+ nav: nav,
608
+ month_caption: monthCaption,
609
+ dropdown: dropdownNav,
610
+ dropdowns: dropdowns
611
+ },
612
+ components: {
613
+ DayButton: DayButton,
614
+ Dropdown: Dropdown,
615
+ PreviousMonthButton: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Button_Button, {
616
+ className: clsx_0(monthButton, className),
617
+ variant: "ghost",
618
+ ...props
619
+ }),
620
+ NextMonthButton: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Button_Button, {
621
+ className: clsx_0(monthButton, className),
622
+ variant: "ghost",
623
+ ...props
624
+ }),
625
+ CaptionLabel: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Typography, {
626
+ transform: "capitalize",
627
+ className: className,
628
+ ...props
629
+ })
630
+ },
631
+ ...props
632
+ });
633
+ var theme_css_theme = {
634
+ colors: {
635
+ primary: 'var(--colors-primary)',
636
+ secondary: 'var(--colors-secondary)',
637
+ warning: 'var(--colors-warning)',
638
+ error: 'var(--colors-error)',
639
+ success: 'var(--colors-success)',
640
+ border: 'var(--colors-border)',
641
+ info: 'var(--colors-info)',
642
+ background: {
643
+ tooltip: 'var(--colors-background-tooltip)',
644
+ paper: 'var(--colors-background-paper)',
645
+ element: 'var(--colors-background-element)',
646
+ elementHover: 'var(--colors-background-elementHover)',
647
+ sidebar: 'var(--colors-background-sidebar)'
648
+ },
649
+ foreground: {
650
+ primary: 'var(--colors-foreground-primary)',
651
+ secondary: 'var(--colors-foreground-secondary)'
652
+ },
653
+ text: {
654
+ primary: 'var(--colors-text-primary)',
655
+ secondary: 'var(--colors-text-secondary)',
656
+ disabled: 'var(--colors-text-disabled)',
657
+ hint: 'var(--colors-text-hint)'
658
+ }
659
+ },
660
+ spacing: {
661
+ 1: 'var(--spacing-1)',
662
+ 2: 'var(--spacing-2)',
663
+ 3: 'var(--spacing-3)',
664
+ 4: 'var(--spacing-4)',
665
+ 5: 'var(--spacing-5)',
666
+ 6: 'var(--spacing-6)',
667
+ 8: 'var(--spacing-8)',
668
+ 10: 'var(--spacing-10)',
669
+ 12: 'var(--spacing-12)',
670
+ 16: 'var(--spacing-16)',
671
+ 20: 'var(--spacing-20)'
672
+ },
673
+ elevation: {
674
+ 1: 'var(--elevation-1)',
675
+ 2: 'var(--elevation-2)',
676
+ 3: 'var(--elevation-3)',
677
+ 4: 'var(--elevation-4)',
678
+ 6: 'var(--elevation-5)'
679
+ },
680
+ fontSize: {
681
+ xs: 'var(--fontSize-xs)',
682
+ sm: 'var(--fontSize-sm)',
683
+ base: 'var(--fontSize-base)',
684
+ lg: 'var(--fontSize-lg)',
685
+ xl: 'var(--fontSize-xl)',
686
+ '2xl': 'var(--fontSize-2xl)',
687
+ '3xl': 'var(--fontSize-3xl)',
688
+ '4xl': 'var(--fontSize-4xl)'
689
+ },
690
+ fontWeight: {
691
+ normal: 'var(--fontWeight-normal)',
692
+ medium: 'var(--fontWeight-medium)',
693
+ semibold: 'var(--fontWeight-semibold)',
694
+ bold: 'var(--fontWeight-bold)'
695
+ },
696
+ lineHeight: {
697
+ none: 'var(--lineHeight-none)',
698
+ tight: 'var(--lineHeight-tight)',
699
+ snug: 'var(--lineHeight-snug)',
700
+ normal: 'var(--lineHeight-normal)',
701
+ relaxed: 'var(--lineHeight-relaxed)',
702
+ loose: 'var(--lineHeight-loose)'
703
+ },
704
+ borderRadius: {
705
+ sm: 'var(--borderRadius-sm)',
706
+ md: 'var(--borderRadius-md)',
707
+ lg: 'var(--borderRadius-lg)'
708
+ }
709
+ };
710
+ var card_css_content = 'style__oyalw04';
711
+ var card_css_description = 'style__oyalw03';
712
+ var card_css_footer = 'style__oyalw05';
713
+ var card_css_header = 'style__oyalw01';
714
+ var card_css_root = 'style__oyalw00';
715
+ var card_css_title = 'style__oyalw02';
716
+ const Card = ({ className, elevation = 2, ...props })=>/*#__PURE__*/ jsx("div", {
717
+ style: {
718
+ boxShadow: theme_css_theme.elevation[elevation]
719
+ },
720
+ className: clsx(card_css_root, className),
721
+ ...props
722
+ });
723
+ const Card_Header = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
724
+ className: clsx(card_css_header, className),
725
+ ...props
726
+ });
727
+ const Card_Title = ({ className, ...props })=>/*#__PURE__*/ jsx("h3", {
728
+ className: clsx(card_css_title, className),
729
+ ...props
730
+ });
731
+ const Card_Description = ({ className, ...props })=>/*#__PURE__*/ jsx("p", {
732
+ className: clsx(card_css_description, className),
733
+ ...props
734
+ });
735
+ const Card_Content = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
736
+ className: clsx(card_css_content, className),
737
+ ...props
738
+ });
739
+ const Card_Footer = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
740
+ className: clsx(card_css_footer, className),
741
+ ...props
742
+ });
743
+ Card.Footer = Card_Footer;
744
+ Card.Header = Card_Header;
745
+ Card.Title = Card_Title;
746
+ Card.Description = Card_Description;
747
+ Card.Content = Card_Content;
748
+ const CarouselContext = react.createContext(null);
749
+ function useCarousel() {
750
+ const context = react.useContext(CarouselContext);
751
+ if (!context) throw new Error('useCarousel must be used within a <Carousel />');
752
+ return context;
753
+ }
754
+ var next = 'style__2d6ocq1 style__2d6ocq0';
755
+ var orientations = {
756
+ horizontal: 'horizontal__2d6ocq3',
757
+ vertical: 'vertical__2d6ocq4'
758
+ };
759
+ var prev = 'style__2d6ocq2 style__2d6ocq0';
760
+ function Buttons({ className, ...props }) {
761
+ const { orientation = 'horizontal', canScrollNext, scrollNext, canScrollPrev, scrollPrev } = useCarousel();
762
+ return /*#__PURE__*/ jsxs(Fragment, {
763
+ children: [
764
+ /*#__PURE__*/ jsx("button", {
765
+ className: clsx(next, orientations[orientation]),
766
+ type: "button",
767
+ "data-slot": "carousel-next",
768
+ disabled: !canScrollNext,
769
+ onClick: scrollNext,
770
+ ...props,
771
+ children: 'horizontal' === orientation ? /*#__PURE__*/ jsx(ChevronRight, {}) : /*#__PURE__*/ jsx(ChevronDown, {})
772
+ }),
773
+ /*#__PURE__*/ jsx("button", {
774
+ type: "button",
775
+ className: clsx(prev, orientations[orientation]),
776
+ "data-slot": "carousel-previous",
777
+ disabled: !canScrollPrev,
778
+ onClick: scrollPrev,
779
+ ...props,
780
+ children: 'horizontal' === orientation ? /*#__PURE__*/ jsx(ChevronLeft, {}) : /*#__PURE__*/ jsx(ChevronUp, {})
781
+ })
782
+ ]
783
+ });
784
+ }
785
+ var styles_css_orientations = {
786
+ horizontal: 'horizontal__i1lems1',
787
+ vertical: 'vertical__i1lems2'
788
+ };
789
+ var wrapper = 'style__i1lems0';
790
+ function Content_Content(props) {
791
+ const { carouselRef, orientation = 'horizontal' } = useCarousel();
792
+ return /*#__PURE__*/ jsx("div", {
793
+ className: wrapper,
794
+ ref: carouselRef,
795
+ "data-slot": "carousel-content",
796
+ children: /*#__PURE__*/ jsx("div", {
797
+ className: styles_css_orientations[orientation],
798
+ ...props
799
+ })
800
+ });
801
+ }
802
+ var dotButton = {
803
+ horizontal: 'horizontal__e2zpp64 style__e2zpp63',
804
+ vertical: 'vertical__e2zpp65 style__e2zpp63'
805
+ };
806
+ var styles_css_selected = 'style__e2zpp66';
807
+ var styles_css_wrapper = {
808
+ horizontal: 'horizontal__e2zpp61 style__e2zpp60',
809
+ vertical: 'vertical__e2zpp62 style__e2zpp60'
810
+ };
811
+ const useLogic = (api)=>{
812
+ const [selectedIndex, setSelectedIndex] = useState(0);
813
+ const [scrollSnaps, setScrollSnaps] = useState([]);
814
+ const onDotButtonClick = useCallback((index)=>{
815
+ if (!api) return;
816
+ api.scrollTo(index);
817
+ }, [
818
+ api
819
+ ]);
820
+ const onInit = useCallback((api)=>{
821
+ if (!api) return;
822
+ setScrollSnaps(api.scrollSnapList());
823
+ }, []);
824
+ const onSelect = useCallback((api)=>{
825
+ if (!api) return;
826
+ setSelectedIndex(api.selectedScrollSnap());
827
+ }, []);
828
+ useEffect(()=>{
829
+ if (!api) return;
830
+ onInit(api);
831
+ onSelect(api);
832
+ api.on('reInit', onInit).on('reInit', onSelect).on('select', onSelect);
833
+ }, [
834
+ api,
835
+ onInit,
836
+ onSelect
837
+ ]);
838
+ return {
839
+ selectedIndex,
840
+ scrollSnaps,
841
+ onDotButtonClick
842
+ };
843
+ };
844
+ const Dots = ({ api, orientation })=>{
845
+ const { selectedIndex, scrollSnaps, onDotButtonClick } = useLogic(api);
846
+ return /*#__PURE__*/ jsx("div", {
847
+ className: styles_css_wrapper[orientation],
848
+ children: scrollSnaps.map((number, index)=>/*#__PURE__*/ jsx("button", {
849
+ type: "button",
850
+ className: clsx(dotButton[orientation], {
851
+ [styles_css_selected]: index === selectedIndex
852
+ }),
853
+ onClick: ()=>onDotButtonClick(index)
854
+ }, number))
855
+ });
856
+ };
857
+ var Item_styles_css_item = 'style__1gif6yr0';
858
+ function Item_Item(props) {
859
+ return /*#__PURE__*/ jsx("div", {
860
+ className: Item_styles_css_item,
861
+ role: "presentation",
862
+ "aria-roledescription": "slide",
863
+ "data-slot": "carousel-item",
864
+ ...props
865
+ });
866
+ }
867
+ var styles_css_rootClass = 'Carousel__1jbydv50';
868
+ const useLogic_useLogic = ({ orientation = 'horizontal', opts, setApi, plugins, data, showDots, showArrows })=>{
869
+ const [carouselRef, api] = embla_carousel_react({
870
+ ...opts,
871
+ axis: 'horizontal' === orientation ? 'x' : 'y'
872
+ }, plugins);
873
+ const [canScrollPrev, setCanScrollPrev] = useState(false);
874
+ const [canScrollNext, setCanScrollNext] = useState(false);
875
+ const isShowButtons = Boolean(showArrows && data.length > 1);
876
+ const isShowDots = Boolean(showDots && data.length > 1);
877
+ const onSelect = useCallback((api)=>{
878
+ if (!api) return;
879
+ setCanScrollPrev(api.canScrollPrev());
880
+ setCanScrollNext(api.canScrollNext());
881
+ }, []);
882
+ const onDotButtonClick = useCallback((index)=>{
883
+ if (!api) return;
884
+ api.scrollTo(index);
885
+ }, [
886
+ api
887
+ ]);
888
+ const scrollPrev = useCallback(()=>{
889
+ api?.scrollPrev();
890
+ }, [
891
+ api
892
+ ]);
893
+ const scrollNext = useCallback(()=>{
894
+ api?.scrollNext();
895
+ }, [
896
+ api
897
+ ]);
898
+ const handleKeyDown = useCallback((event)=>{
899
+ if ('ArrowLeft' === event.key) {
900
+ event.preventDefault();
901
+ scrollPrev();
902
+ } else if ('ArrowRight' === event.key) {
903
+ event.preventDefault();
904
+ scrollNext();
905
+ }
906
+ }, [
907
+ scrollPrev,
908
+ scrollNext
909
+ ]);
910
+ useEffect(()=>{
911
+ if (!api || !setApi) return;
912
+ setApi(api);
913
+ }, [
914
+ api,
915
+ setApi
916
+ ]);
917
+ useEffect(()=>{
918
+ if (!api) return;
919
+ onSelect(api);
920
+ api.on('reInit', onSelect);
921
+ api.on('select', onSelect);
922
+ return ()=>{
923
+ api?.off('select', onSelect);
924
+ };
925
+ }, [
926
+ api,
927
+ onSelect
928
+ ]);
929
+ return {
930
+ carouselRef,
931
+ api,
932
+ scrollPrev,
933
+ scrollNext,
934
+ canScrollPrev,
935
+ canScrollNext,
936
+ handleKeyDown,
937
+ opts,
938
+ orientation,
939
+ onDotButtonClick,
940
+ isShowButtons,
941
+ isShowDots,
942
+ data
943
+ };
944
+ };
945
+ function Carousel({ width = '100%', height = '100%', ...props }) {
946
+ const { canScrollNext, canScrollPrev, scrollNext, scrollPrev, api, opts, orientation, carouselRef, handleKeyDown, data, isShowButtons, isShowDots } = useLogic_useLogic(props);
947
+ return /*#__PURE__*/ jsx(CarouselContext.Provider, {
948
+ value: {
949
+ carouselRef,
950
+ api,
951
+ opts,
952
+ orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),
953
+ scrollPrev,
954
+ scrollNext,
955
+ canScrollPrev,
956
+ canScrollNext
957
+ },
958
+ children: /*#__PURE__*/ jsxs("div", {
959
+ onKeyDownCapture: handleKeyDown,
960
+ className: clsx(styles_css_rootClass, props.className),
961
+ "data-slot": "carousel",
962
+ style: {
963
+ width,
964
+ height
965
+ },
966
+ children: [
967
+ /*#__PURE__*/ jsx(Content_Content, {
968
+ style: {
969
+ width,
970
+ height
971
+ },
972
+ children: data.map((item)=>/*#__PURE__*/ jsx(Item_Item, {
973
+ children: props.renderItem(item)
974
+ }, `${item[props.keyId]}`))
975
+ }),
976
+ isShowButtons && /*#__PURE__*/ jsx(Buttons, {}),
977
+ isShowDots && /*#__PURE__*/ jsx(Dots, {
978
+ api: api,
979
+ orientation: orientation
980
+ })
981
+ ]
982
+ })
983
+ });
984
+ }
985
+ var checkbox_css_icon = 'style__b7yo4k2';
986
+ var indicator = 'style__b7yo4k1';
987
+ var checkbox_css_root = 'style__b7yo4k0';
988
+ const Checkbox_Checkbox = ({ className, ...props })=>/*#__PURE__*/ jsx(Checkbox.Root, {
989
+ "data-slot": "checkbox",
990
+ className: clsx(checkbox_css_root, className),
991
+ ...props,
992
+ children: /*#__PURE__*/ jsx(Checkbox.Indicator, {
993
+ className: indicator,
994
+ children: /*#__PURE__*/ jsx(Check, {
995
+ className: checkbox_css_icon
996
+ })
997
+ })
998
+ });
999
+ var circle = 'style__m6b9n24';
1000
+ var styles_css_colors = {
1001
+ primary: 'primary__m6b9n27',
1002
+ secondary: 'secondary__m6b9n28',
1003
+ inherit: 'inherit__m6b9n29'
1004
+ };
1005
+ var CircularProgress_styles_css_root = 'style__m6b9n22';
1006
+ var svg = 'style__m6b9n23';
1007
+ var styles_css_variants = {
1008
+ determinate: 'determinate__m6b9n25',
1009
+ indeterminate: 'indeterminate__m6b9n26'
1010
+ };
1011
+ const CircularProgress = ({ size = 30, thickness = 2.6, color = 'primary', value = 0, variant = 'indeterminate', className })=>{
1012
+ const radius = (size - thickness) / 2;
1013
+ const circumference = 2 * Math.PI * radius;
1014
+ const dashOffset = 'determinate' === variant ? circumference * (1 - value / 100) : 0.25 * circumference;
1015
+ return /*#__PURE__*/ jsx("div", {
1016
+ className: clsx_0(CircularProgress_styles_css_root, styles_css_variants[variant], styles_css_colors[color], className),
1017
+ style: {
1018
+ width: size,
1019
+ height: size
1020
+ },
1021
+ children: /*#__PURE__*/ jsxs("svg", {
1022
+ className: svg,
1023
+ viewBox: `0 0 ${size} ${size}`,
1024
+ children: [
1025
+ /*#__PURE__*/ jsx("title", {
1026
+ children: "Progress bar"
1027
+ }),
1028
+ /*#__PURE__*/ jsx("circle", {
1029
+ className: clsx_0(circle, 'determinate' === variant && styles_css_variants.determinate),
1030
+ cx: size / 2,
1031
+ cy: size / 2,
1032
+ r: radius,
1033
+ fill: "none",
1034
+ strokeWidth: thickness,
1035
+ strokeDasharray: circumference,
1036
+ strokeDashoffset: dashOffset
1037
+ })
1038
+ ]
1039
+ })
1040
+ });
1041
+ };
1042
+ function Collapsible_Collapsible({ ...props }) {
1043
+ return /*#__PURE__*/ jsx(Collapsible.Root, {
1044
+ "data-slot": "collapsible",
1045
+ ...props
1046
+ });
1047
+ }
1048
+ function Collapsible_Trigger({ ...props }) {
1049
+ return /*#__PURE__*/ jsx(Collapsible.Trigger, {
1050
+ "data-slot": "collapsible-trigger",
1051
+ ...props
1052
+ });
1053
+ }
1054
+ function Collapsible_Content({ ...props }) {
1055
+ return /*#__PURE__*/ jsx(Collapsible.Panel, {
1056
+ "data-slot": "collapsible-content",
1057
+ ...props
1058
+ });
1059
+ }
1060
+ Collapsible_Collapsible.Trigger = Collapsible_Trigger;
1061
+ Collapsible_Collapsible.Content = Collapsible_Content;
1062
+ var Popover_styles_css_content = 'style__1xy4jvu2';
1063
+ var positioner = 'style__1xy4jvu3';
1064
+ const createHandle = Popover.createHandle;
1065
+ const Popover_Popover = ({ ...props })=>/*#__PURE__*/ jsx(Popover.Root, {
1066
+ "data-slot": "popover",
1067
+ ...props
1068
+ });
1069
+ const Popover_Trigger = ({ ...props })=>/*#__PURE__*/ jsx(Popover.Trigger, {
1070
+ "data-slot": "popover-trigger",
1071
+ ...props
1072
+ });
1073
+ const Popover_Content = ({ className, align = 'center', alignOffset = 0, side = 'bottom', sideOffset = 4, ...props })=>/*#__PURE__*/ jsx(Popover.Portal, {
1074
+ children: /*#__PURE__*/ jsx(Popover.Positioner, {
1075
+ align: align,
1076
+ alignOffset: alignOffset,
1077
+ side: side,
1078
+ sideOffset: sideOffset,
1079
+ className: positioner,
1080
+ children: /*#__PURE__*/ jsx(Popover.Popup, {
1081
+ "data-slot": "popover-content",
1082
+ className: clsx(Popover_styles_css_content, className),
1083
+ ...props
1084
+ })
1085
+ })
1086
+ });
1087
+ Popover_Popover.Trigger = Popover_Trigger;
1088
+ Popover_Popover.Content = Popover_Content;
1089
+ Popover_Popover.Root = Popover_Popover;
1090
+ var actionsClass = 'style__1q1uhgp0';
1091
+ var hasTextClass = 'style__1q1uhgp3';
1092
+ var popoverClass = 'style__1q1uhgp2';
1093
+ var wrapperClass = 'style__1q1uhgp1';
1094
+ const ConfirmAction_useLogic_useLogic = ({ skipConfirm, onConfirm, confirmButtonProps: externalConfirmButtonProps })=>{
1095
+ const [open, setOpen] = useState(false);
1096
+ const handleConfirm = ()=>{
1097
+ setOpen(false);
1098
+ onConfirm();
1099
+ };
1100
+ const confirmButtonProps = {
1101
+ variant: externalConfirmButtonProps?.isAccented ? 'destructive' : 'default',
1102
+ size: 'sm',
1103
+ onClick: handleConfirm
1104
+ };
1105
+ const onActionComponentClick = ()=>{
1106
+ if (skipConfirm) onConfirm();
1107
+ else setOpen(true);
1108
+ };
1109
+ const onOpenChange = (open)=>{
1110
+ setOpen(open);
1111
+ };
1112
+ const onCancel = ()=>{
1113
+ setOpen(false);
1114
+ };
1115
+ return {
1116
+ open,
1117
+ onActionComponentClick,
1118
+ confirmButtonProps,
1119
+ onCancel,
1120
+ onOpenChange
1121
+ };
1122
+ };
1123
+ const ConfirmAction = (props)=>{
1124
+ const { open, onActionComponentClick, onCancel, confirmButtonProps, onOpenChange } = ConfirmAction_useLogic_useLogic(props);
1125
+ const { text, confirmButtonProps: externalConfirmButtonProps, popoverProps: externalPopoverProps, actionComponent } = props;
1126
+ const { text: confirmButtonText = 'Подтвердить' } = externalConfirmButtonProps || {};
1127
+ const { side = 'bottom', align = 'center' } = externalPopoverProps || {};
1128
+ return /*#__PURE__*/ jsxs(Popover_Popover, {
1129
+ open: open,
1130
+ onOpenChange: onOpenChange,
1131
+ children: [
1132
+ /*#__PURE__*/ jsx(Popover_Popover.Trigger, {
1133
+ children: actionComponent({
1134
+ onClick: onActionComponentClick
1135
+ })
1136
+ }),
1137
+ /*#__PURE__*/ jsx(Popover_Popover.Content, {
1138
+ side: side,
1139
+ align: align,
1140
+ className: clsx(popoverClass, {
1141
+ [hasTextClass]: Boolean(text)
1142
+ }),
1143
+ children: /*#__PURE__*/ jsxs("div", {
1144
+ className: wrapperClass,
1145
+ children: [
1146
+ text && /*#__PURE__*/ jsx(Typography, {
1147
+ children: text
1148
+ }),
1149
+ /*#__PURE__*/ jsxs("div", {
1150
+ className: actionsClass,
1151
+ children: [
1152
+ /*#__PURE__*/ jsx(Button_Button, {
1153
+ size: "sm",
1154
+ variant: "ghost",
1155
+ onClick: onCancel,
1156
+ children: "Отмена"
1157
+ }),
1158
+ /*#__PURE__*/ jsx(Button_Button, {
1159
+ ...confirmButtonProps,
1160
+ children: confirmButtonText
1161
+ })
1162
+ ]
1163
+ })
1164
+ ]
1165
+ })
1166
+ })
1167
+ ]
1168
+ });
1169
+ };
1170
+ var sizes = {
1171
+ sm: 'sm__1o97kvm1',
1172
+ md: 'md__1o97kvm2',
1173
+ lg: 'lg__1o97kvm3'
1174
+ };
1175
+ var Image_styles_css_wrapper = 'style__1o97kvm0';
1176
+ const Image_Image = (props)=>/*#__PURE__*/ jsx("img", {
1177
+ alt: props.alt,
1178
+ src: props.src,
1179
+ className: clsx_0(Image_styles_css_wrapper, sizes[props.size || 'md'], props.className),
1180
+ width: props.width,
1181
+ height: props.height
1182
+ });
1183
+ const SIZE = {
1184
+ sm: 'sm',
1185
+ md: 'md',
1186
+ lg: 'lg'
1187
+ };
1188
+ const IMAGE_WIDTH = {
1189
+ [SIZE.sm]: '239px',
1190
+ [SIZE.md]: '323px',
1191
+ [SIZE.lg]: '458px'
1192
+ };
1193
+ const IMAGE_HEIGHT = {
1194
+ [SIZE.sm]: '119px',
1195
+ [SIZE.md]: '161px',
1196
+ [SIZE.lg]: '229px'
1197
+ };
1198
+ const MAX_INNER_WIDTH = {
1199
+ [SIZE.sm]: '384px',
1200
+ [SIZE.md]: '400px',
1201
+ [SIZE.lg]: '460px'
1202
+ };
1203
+ const TITLE_HEADER_LEVEL = {
1204
+ [SIZE.sm]: 'subtitle1',
1205
+ [SIZE.md]: 'h6',
1206
+ [SIZE.lg]: 'h5'
1207
+ };
1208
+ var descriptionClass = 'style__1nenzg05';
1209
+ var footerClass = 'style__1nenzg06';
1210
+ var innerContainer = 'style__1nenzg04';
1211
+ var styles_css_sizes = {
1212
+ sm: 'sm__1nenzg01',
1213
+ md: 'md__1nenzg02',
1214
+ lg: 'lg__1nenzg03'
1215
+ };
1216
+ var Placeholder_styles_css_wrapper = 'style__1nenzg00';
1217
+ const Placeholder = ({ className, title, imgSrc, imgAlt, description, actions, size = 'sm', renderImage })=>{
1218
+ const RenderImage = useMemo(()=>renderImage || Image_Image, [
1219
+ renderImage
1220
+ ]);
1221
+ return /*#__PURE__*/ jsxs("div", {
1222
+ className: clsx_0(Placeholder_styles_css_wrapper, styles_css_sizes[size], className),
1223
+ children: [
1224
+ /*#__PURE__*/ jsxs("div", {
1225
+ className: innerContainer,
1226
+ style: {
1227
+ maxWidth: MAX_INNER_WIDTH[size]
1228
+ },
1229
+ children: [
1230
+ imgSrc && /*#__PURE__*/ jsx(RenderImage, {
1231
+ src: imgSrc,
1232
+ alt: imgAlt,
1233
+ width: IMAGE_WIDTH[size],
1234
+ height: IMAGE_HEIGHT[size],
1235
+ size: size
1236
+ }),
1237
+ /*#__PURE__*/ jsx(Typography, {
1238
+ align: "center",
1239
+ color: "secondary",
1240
+ variant: TITLE_HEADER_LEVEL[size],
1241
+ children: title
1242
+ }),
1243
+ description && /*#__PURE__*/ jsx(Typography, {
1244
+ className: descriptionClass,
1245
+ component: "div",
1246
+ variant: "body1",
1247
+ children: description
1248
+ })
1249
+ ]
1250
+ }),
1251
+ actions && /*#__PURE__*/ jsx("footer", {
1252
+ className: footerClass,
1253
+ children: actions
1254
+ })
1255
+ ]
1256
+ });
1257
+ };
1258
+ var loadingContainer = 'style__nan0ao0';
1259
+ const ContentState = ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent: LoadingContent = /*#__PURE__*/ jsx(CircularProgress, {
1260
+ color: "primary"
1261
+ }) })=>{
1262
+ if (isLoading) return /*#__PURE__*/ jsx("div", {
1263
+ className: loadingContainer,
1264
+ children: LoadingContent
1265
+ });
1266
+ if (isCustom && customState) return /*#__PURE__*/ jsx(Placeholder, {
1267
+ ...customState
1268
+ });
1269
+ if (isError && errorState) {
1270
+ const { title = 'Произошла ошибка', imgAlt, imgSrc, errorList, onRetry, actions = /*#__PURE__*/ jsx(Button_Button, {
1271
+ onClick: onRetry,
1272
+ children: "Попробовать снова"
1273
+ }) } = errorState;
1274
+ const description = errorList.map((errorMessage)=>/*#__PURE__*/ jsx(Typography, {
1275
+ component: "p",
1276
+ children: errorMessage
1277
+ }, errorMessage));
1278
+ return /*#__PURE__*/ jsx(Placeholder, {
1279
+ title: title,
1280
+ description: description,
1281
+ imgAlt: imgAlt,
1282
+ imgSrc: imgSrc,
1283
+ actions: actions
1284
+ });
1285
+ }
1286
+ return children;
1287
+ };
1288
+ var arrowClass = 'style__izacrl4';
1289
+ var contentClass = 'style__izacrl2';
1290
+ var textClass = 'style__izacrl3';
1291
+ const TooltipProvider = Provider;
1292
+ const TooltipRoot = Root;
1293
+ const TooltipTrigger = react_tooltip_Trigger;
1294
+ const TooltipContent = ({ sideOffset = 4, alignOffset, ref, ...props })=>/*#__PURE__*/ jsx(react_tooltip_Content, {
1295
+ ref: ref,
1296
+ sideOffset: sideOffset,
1297
+ ...props
1298
+ });
1299
+ const Tooltip = ({ text, content, children, side = 'top', sideOffset = 10, alignOffset, delayDuration = 0, className, ref, ...props })=>/*#__PURE__*/ jsx(TooltipProvider, {
1300
+ delayDuration: delayDuration,
1301
+ children: /*#__PURE__*/ jsxs(TooltipRoot, {
1302
+ ...props,
1303
+ children: [
1304
+ /*#__PURE__*/ jsx(TooltipTrigger, {
1305
+ ref: ref,
1306
+ asChild: true,
1307
+ children: children
1308
+ }),
1309
+ content || text ? /*#__PURE__*/ jsx(react_tooltip_Portal, {
1310
+ children: /*#__PURE__*/ jsxs(TooltipContent, {
1311
+ className: clsx_0(contentClass, className),
1312
+ alignOffset: alignOffset,
1313
+ sideOffset: sideOffset,
1314
+ hideWhenDetached: true,
1315
+ side: side,
1316
+ children: [
1317
+ content ?? /*#__PURE__*/ jsx("p", {
1318
+ className: textClass,
1319
+ children: text
1320
+ }),
1321
+ props.arrow && /*#__PURE__*/ jsx(Arrow, {
1322
+ className: arrowClass
1323
+ })
1324
+ ]
1325
+ })
1326
+ }) : null
1327
+ ]
1328
+ })
1329
+ });
1330
+ var copyIconClass = 'style__1wpx85c1';
1331
+ var CopyTypography_styles_css_wrapper = 'style__1wpx85c0';
1332
+ const useLogic_useLogic_useLogic = ({ children, copyText, isShowCopyText, copyPosition })=>{
1333
+ const [status, setStatus] = useState("Скопировать");
1334
+ const [tooltipOpen, setTooltipOpen] = useState(false);
1335
+ const handleMouseEnter = ()=>{
1336
+ setTooltipOpen(true);
1337
+ };
1338
+ const handleMouseLeave = ()=>{
1339
+ if ("Скопировать" !== status) setTimeout(()=>{
1340
+ setStatus("Скопировать");
1341
+ }, 100);
1342
+ setTooltipOpen(false);
1343
+ };
1344
+ const handleClick = (event)=>{
1345
+ event.stopPropagation();
1346
+ navigator.clipboard.writeText(copyText || ('string' == typeof children ? children : '')).then(()=>setStatus("Скопировано")).catch(()=>setStatus("Ошибка копирования"));
1347
+ };
1348
+ const tooltipTitle = isShowCopyText ? `${status}: ${copyText}` : status;
1349
+ const isIconOnLeft = 'left' === copyPosition;
1350
+ return {
1351
+ handleMouseLeave,
1352
+ handleClick,
1353
+ tooltipTitle,
1354
+ isIconOnLeft,
1355
+ tooltipOpen,
1356
+ handleMouseEnter
1357
+ };
1358
+ };
1359
+ const CopyTypography = (props)=>{
1360
+ const { children, copyPosition = 'right', copyText, isShowCopyText, color, className, ...restProps } = props;
1361
+ const renderIcon = ()=>/*#__PURE__*/ jsx(Copy, {
1362
+ className: copyIconClass
1363
+ });
1364
+ const { tooltipOpen, handleMouseEnter, handleMouseLeave, handleClick, tooltipTitle, isIconOnLeft } = useLogic_useLogic_useLogic(props);
1365
+ return /*#__PURE__*/ jsx(Tooltip, {
1366
+ open: tooltipOpen,
1367
+ arrow: true,
1368
+ text: tooltipTitle,
1369
+ side: "bottom",
1370
+ children: /*#__PURE__*/ jsxs(Typography, {
1371
+ onMouseLeave: handleMouseLeave,
1372
+ onMouseEnter: handleMouseEnter,
1373
+ onClick: handleClick,
1374
+ component: "div",
1375
+ color: color,
1376
+ className: clsx(CopyTypography_styles_css_wrapper, className),
1377
+ ...restProps,
1378
+ children: [
1379
+ isIconOnLeft && renderIcon(),
1380
+ children,
1381
+ !isIconOnLeft && renderIcon()
1382
+ ]
1383
+ })
1384
+ });
1385
+ };
1386
+ const DashboardContext = createContext({
1387
+ pinned: true,
1388
+ hovered: false,
1389
+ togglePinned: ()=>{}
1390
+ });
1391
+ const useDashboard = ()=>useContext(DashboardContext);
1392
+ const LOCAL_STORAGE_KEY = 'dashboard::pinned';
1393
+ const hooks_useLogic_useLogic = ()=>{
1394
+ const [pinned, setPinned] = useState('true' === window.localStorage.getItem(LOCAL_STORAGE_KEY));
1395
+ const togglePinned = ()=>{
1396
+ setPinned(!pinned);
1397
+ window.localStorage.setItem(LOCAL_STORAGE_KEY, String(!pinned));
1398
+ };
1399
+ return {
1400
+ pinned,
1401
+ togglePinned
1402
+ };
1403
+ };
1404
+ var Main_styles_css_rootClass = 'style__whkxou0';
1405
+ const Main = ({ children, className })=>/*#__PURE__*/ jsx("main", {
1406
+ className: clsx(Main_styles_css_rootClass, className),
1407
+ children: children
1408
+ });
1409
+ var styles_css_contentClass = 'SidebarContent__1low90p6';
1410
+ var styles_css_footerClass = 'SidebarFooter__1low90p5';
1411
+ var headerClass = 'SidebarHeader__1low90p4';
1412
+ var Sidebar_styles_css_rootClass = 'SidebarContainer__1low90p2';
1413
+ var triggerClass = 'SidebarTrigger__1low90p1';
1414
+ var unpinnedClass = 'style__1low90p3';
1415
+ var styles_css_wrapperClass = 'style__1low90p0';
1416
+ const Sidebar = ({ width = "16rem", header, footer, content, className })=>{
1417
+ const { pinned } = useDashboard();
1418
+ return /*#__PURE__*/ jsxs("div", {
1419
+ style: {
1420
+ width: pinned ? width : 0
1421
+ },
1422
+ className: styles_css_wrapperClass,
1423
+ children: [
1424
+ /*#__PURE__*/ jsx("span", {
1425
+ className: triggerClass
1426
+ }),
1427
+ /*#__PURE__*/ jsxs("aside", {
1428
+ style: {
1429
+ width
1430
+ },
1431
+ className: clsx(Sidebar_styles_css_rootClass, {
1432
+ [unpinnedClass]: !pinned
1433
+ }, className),
1434
+ children: [
1435
+ header && /*#__PURE__*/ jsx("header", {
1436
+ className: headerClass,
1437
+ children: header
1438
+ }),
1439
+ /*#__PURE__*/ jsx("div", {
1440
+ className: styles_css_contentClass,
1441
+ children: content
1442
+ }),
1443
+ footer && /*#__PURE__*/ jsx("footer", {
1444
+ className: styles_css_footerClass,
1445
+ children: footer
1446
+ })
1447
+ ]
1448
+ })
1449
+ ]
1450
+ });
1451
+ };
1452
+ var containerClass = 'DashboardLayout__113u7x50';
1453
+ const DashboardLayout = ({ children, className })=>{
1454
+ const { pinned, togglePinned } = hooks_useLogic_useLogic();
1455
+ return /*#__PURE__*/ jsx(DashboardContext.Provider, {
1456
+ value: {
1457
+ pinned,
1458
+ togglePinned
1459
+ },
1460
+ children: /*#__PURE__*/ jsx("div", {
1461
+ className: clsx(containerClass, className),
1462
+ children: children
1463
+ })
1464
+ });
1465
+ };
1466
+ DashboardLayout.Sidebar = Sidebar;
1467
+ DashboardLayout.Main = Main;
1468
+ var cellClass = 'style__1047swj0';
1469
+ var disabledClass = 'style__1047swj1';
1470
+ function Cell({ row, column, rowIndex, height }) {
1471
+ const { align, cellColor, isDisabled } = column;
1472
+ const Content = ()=>{
1473
+ if (column.renderCell) return column.renderCell(row, rowIndex);
1474
+ if (column.format) return column.format(row) || '—';
1475
+ if (column.field) return `${row[column.field] || '—'}`;
1476
+ return '—';
1477
+ };
1478
+ return /*#__PURE__*/ jsx("td", {
1479
+ align: align ?? 'left',
1480
+ style: {
1481
+ backgroundColor: cellColor?.(row),
1482
+ height,
1483
+ width: column.width
1484
+ },
1485
+ className: clsx(cellClass, {
1486
+ [disabledClass]: isDisabled
1487
+ }, column.cellClassName?.(row)),
1488
+ children: /*#__PURE__*/ jsx(Content, {})
1489
+ });
1490
+ }
1491
+ var rowClass = 'style__gsm9mv0';
1492
+ var selectableClass = 'style__gsm9mv1';
1493
+ function Row({ row, rowHeight, onRowClick, columns, rowIndex, rowId }) {
1494
+ const handleSelect = useCallback(()=>{
1495
+ onRowClick?.(row);
1496
+ }, [
1497
+ onRowClick,
1498
+ row
1499
+ ]);
1500
+ return /*#__PURE__*/ jsx("tr", {
1501
+ onClick: handleSelect,
1502
+ onKeyDown: handleSelect,
1503
+ className: clsx(rowClass, {
1504
+ [selectableClass]: Boolean(onRowClick)
1505
+ }),
1506
+ children: columns.map((column, index)=>{
1507
+ const cellId = `${rowId}-${index}`;
1508
+ return /*#__PURE__*/ jsx(Cell, {
1509
+ row: row,
1510
+ rowIndex: rowIndex,
1511
+ column: column,
1512
+ height: rowHeight
1513
+ }, cellId);
1514
+ })
1515
+ });
1516
+ }
1517
+ var container = 'style__15m2ib80';
1518
+ var loader = 'style__15m2ib81';
1519
+ function State({ isLoading, isEmpty, columnsLength, emptyState = {
1520
+ text: 'Нет данных'
1521
+ }, errorState = {
1522
+ text: 'Произошла ошибка'
1523
+ }, isError, onRetry }) {
1524
+ const Container = ({ children })=>/*#__PURE__*/ jsx("tr", {
1525
+ className: container,
1526
+ children: /*#__PURE__*/ jsx("td", {
1527
+ colSpan: columnsLength,
1528
+ align: "center",
1529
+ children: children
1530
+ })
1531
+ });
1532
+ if (isLoading) return /*#__PURE__*/ jsx(Container, {
1533
+ children: /*#__PURE__*/ jsx("span", {
1534
+ className: loader,
1535
+ children: /*#__PURE__*/ jsx(CircularProgress, {})
1536
+ })
1537
+ });
1538
+ if (isEmpty) {
1539
+ const { imgSrc, imgAlt, text } = emptyState;
1540
+ return /*#__PURE__*/ jsx(Container, {
1541
+ children: /*#__PURE__*/ jsx(Placeholder, {
1542
+ title: text,
1543
+ imgSrc: imgSrc,
1544
+ imgAlt: imgAlt
1545
+ })
1546
+ });
1547
+ }
1548
+ if (isError) {
1549
+ const { imgSrc, imgAlt, text } = errorState;
1550
+ return /*#__PURE__*/ jsx(Container, {
1551
+ children: /*#__PURE__*/ jsx(Placeholder, {
1552
+ title: text,
1553
+ imgSrc: imgSrc,
1554
+ imgAlt: imgAlt,
1555
+ actions: onRetry ? /*#__PURE__*/ jsx(Button_Button, {
1556
+ variant: "outline",
1557
+ onClick: onRetry,
1558
+ children: "Попробовать снова"
1559
+ }) : void 0
1560
+ })
1561
+ });
1562
+ }
1563
+ return null;
1564
+ }
1565
+ var styles_css_container = 'style__82af400';
1566
+ function Body({ isError, isLoading, emptyState, errorState, columns, rows, rowHeight, keyId, onRowClick }) {
1567
+ const isEmpty = 0 === rows.length;
1568
+ const isStateVisible = isError || isLoading || isEmpty;
1569
+ return isStateVisible ? /*#__PURE__*/ jsx("tbody", {
1570
+ className: styles_css_container,
1571
+ children: /*#__PURE__*/ jsx(State, {
1572
+ emptyState: emptyState,
1573
+ errorState: errorState,
1574
+ isEmpty: isEmpty,
1575
+ isError: isError,
1576
+ isLoading: isLoading,
1577
+ columnsLength: columns.length
1578
+ })
1579
+ }) : /*#__PURE__*/ jsx("tbody", {
1580
+ className: styles_css_container,
1581
+ children: rows.map((row, index)=>{
1582
+ const rowId = String(row[keyId]);
1583
+ return /*#__PURE__*/ jsx(Row, {
1584
+ row: row,
1585
+ rowId: rowId,
1586
+ rowHeight: rowHeight,
1587
+ columns: columns,
1588
+ onRowClick: onRowClick,
1589
+ rowIndex: index
1590
+ }, row[keyId]);
1591
+ })
1592
+ });
1593
+ }
1594
+ var Footer_styles_css_footerClass = 'style__2s55b60';
1595
+ function Footer_Footer({ children, className }) {
1596
+ return /*#__PURE__*/ jsx("footer", {
1597
+ className: clsx(Footer_styles_css_footerClass, className),
1598
+ children: children
1599
+ });
1600
+ }
1601
+ var headerCellClass = 'style__uma6hu0';
1602
+ function HeaderCell({ column, height, width }) {
1603
+ return /*#__PURE__*/ jsx("th", {
1604
+ style: {
1605
+ color: column.color,
1606
+ height,
1607
+ width
1608
+ },
1609
+ align: column.align ?? 'left',
1610
+ title: column.title,
1611
+ className: headerCellClass,
1612
+ children: column.renderHeaderCell?.(column) || column.title
1613
+ });
1614
+ }
1615
+ var stickyClass = 'style__fkgoub0';
1616
+ function Header_Header({ columns, height, sticky }) {
1617
+ return /*#__PURE__*/ jsx("thead", {
1618
+ children: /*#__PURE__*/ jsx("tr", {
1619
+ className: clsx({
1620
+ [stickyClass]: sticky
1621
+ }),
1622
+ children: columns.map((col)=>/*#__PURE__*/ jsx(HeaderCell, {
1623
+ column: col,
1624
+ height: height,
1625
+ width: col.width
1626
+ }, col.title))
1627
+ })
1628
+ });
1629
+ }
1630
+ var DataGrid_styles_css_container = 'style__1gqvluf0';
1631
+ var styles_css_disabled = 'style__1gqvluf3';
1632
+ var fullHeight = 'style__1gqvluf2';
1633
+ var styles_css_loading = 'style__1gqvluf4';
1634
+ var table = 'style__1gqvluf1';
1635
+ var titleClass = 'style__1gqvluf5';
1636
+ function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, headerHeight = 40, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title, stickyHeader, onRetry }) {
1637
+ const isFullHeight = isLoading || isError || 0 === rows.length;
1638
+ return /*#__PURE__*/ jsxs("div", {
1639
+ "data-slot": "data-grid",
1640
+ style: {
1641
+ height
1642
+ },
1643
+ className: clsx(DataGrid_styles_css_container, className),
1644
+ children: [
1645
+ /*#__PURE__*/ jsxs("table", {
1646
+ className: clsx(table, {
1647
+ [styles_css_disabled]: isDisabled,
1648
+ [styles_css_loading]: isLoading,
1649
+ [fullHeight]: isFullHeight
1650
+ }, className),
1651
+ children: [
1652
+ title && /*#__PURE__*/ jsx("caption", {
1653
+ className: titleClass,
1654
+ children: title
1655
+ }),
1656
+ /*#__PURE__*/ jsx(Header_Header, {
1657
+ columns: columns,
1658
+ height: headerHeight,
1659
+ sticky: stickyHeader
1660
+ }),
1661
+ /*#__PURE__*/ jsx(Body, {
1662
+ rows: rows,
1663
+ columns: columns,
1664
+ rowHeight: rowHeight,
1665
+ keyId: keyId,
1666
+ onRowClick: onRowClick,
1667
+ isLoading: isLoading,
1668
+ emptyState: emptyState,
1669
+ errorState: errorState,
1670
+ isError: isError,
1671
+ onRetry: onRetry
1672
+ })
1673
+ ]
1674
+ }),
1675
+ footer && /*#__PURE__*/ jsx(Footer_Footer, {
1676
+ children: footer
1677
+ })
1678
+ ]
1679
+ });
1680
+ }
1681
+ var checkboxItem = 'style__1ib8wktd style__1ib8wkta';
1682
+ var DropdownMenu_styles_css_content = 'style__1ib8wkt7';
1683
+ var styles_css_icon = 'style__1ib8wkth';
1684
+ var DropdownMenu_styles_css_item = 'style__1ib8wkta';
1685
+ var itemIndicator = 'style__1ib8wktf';
1686
+ var styles_css_label = 'style__1ib8wkt9';
1687
+ var styles_css_positioner = 'style__1ib8wkt6';
1688
+ var radioItem = 'style__1ib8wkte style__1ib8wkta';
1689
+ var DropdownMenu_styles_css_separator = 'style__1ib8wkti';
1690
+ var shortcut = 'style__1ib8wktj';
1691
+ var subContent = 'style__1ib8wkt8';
1692
+ var subTrigger = 'style__1ib8wktc style__1ib8wkta';
1693
+ var subTriggerIcon = 'style__1ib8wktg';
1694
+ function DropdownMenu({ ...props }) {
1695
+ return /*#__PURE__*/ jsx(Menu.Root, {
1696
+ "data-slot": "dropdown-menu",
1697
+ ...props
1698
+ });
1699
+ }
1700
+ function DropdownMenu_Portal({ ...props }) {
1701
+ return /*#__PURE__*/ jsx(Menu.Portal, {
1702
+ "data-slot": "dropdown-menu-portal",
1703
+ ...props
1704
+ });
1705
+ }
1706
+ function DropdownMenu_Trigger({ ...props }) {
1707
+ return /*#__PURE__*/ jsx(Menu.Trigger, {
1708
+ "data-slot": "dropdown-menu-trigger",
1709
+ ...props
1710
+ });
1711
+ }
1712
+ function DropdownMenu_Content({ align = 'start', alignOffset = 0, side = 'bottom', sideOffset = 4, className, ...props }) {
1713
+ return /*#__PURE__*/ jsx(Menu.Portal, {
1714
+ children: /*#__PURE__*/ jsx(Menu.Positioner, {
1715
+ align: align,
1716
+ alignOffset: alignOffset,
1717
+ side: side,
1718
+ sideOffset: sideOffset,
1719
+ className: styles_css_positioner,
1720
+ children: /*#__PURE__*/ jsx(Menu.Popup, {
1721
+ "data-slot": "dropdown-menu-content",
1722
+ className: clsx(DropdownMenu_styles_css_content, className),
1723
+ ...props
1724
+ })
1725
+ })
1726
+ });
1727
+ }
1728
+ function DropdownMenu_Group({ ...props }) {
1729
+ return /*#__PURE__*/ jsx(Menu.Group, {
1730
+ "data-slot": "dropdown-menu-group",
1731
+ ...props
1732
+ });
1733
+ }
1734
+ function Label({ className, inset, ...props }) {
1735
+ return /*#__PURE__*/ jsx(Menu.GroupLabel, {
1736
+ "data-slot": "dropdown-menu-label",
1737
+ "data-inset": inset ? '' : void 0,
1738
+ className: clsx(styles_css_label, className),
1739
+ ...props
1740
+ });
1741
+ }
1742
+ function DropdownMenu_Item({ className, inset, variant = 'default', ...props }) {
1743
+ return /*#__PURE__*/ jsx(Menu.Item, {
1744
+ "data-slot": "dropdown-menu-item",
1745
+ "data-inset": inset ? '' : void 0,
1746
+ "data-variant": variant,
1747
+ className: clsx(DropdownMenu_styles_css_item, className),
1748
+ ...props
1749
+ });
1750
+ }
1751
+ function Sub({ ...props }) {
1752
+ return /*#__PURE__*/ jsx(Menu.SubmenuRoot, {
1753
+ "data-slot": "dropdown-menu-sub",
1754
+ ...props
1755
+ });
1756
+ }
1757
+ function SubTrigger({ className, inset, children, ...props }) {
1758
+ return /*#__PURE__*/ jsxs(Menu.SubmenuTrigger, {
1759
+ "data-slot": "dropdown-menu-sub-trigger",
1760
+ "data-inset": inset ? '' : void 0,
1761
+ className: clsx(subTrigger, className),
1762
+ ...props,
1763
+ children: [
1764
+ children,
1765
+ /*#__PURE__*/ jsx(ChevronRightIcon, {
1766
+ className: subTriggerIcon
1767
+ })
1768
+ ]
1769
+ });
1770
+ }
1771
+ function SubContent({ align = 'start', alignOffset = -3, side = 'right', sideOffset = 0, className, ...props }) {
1772
+ return /*#__PURE__*/ jsx(DropdownMenu_Content, {
1773
+ "data-slot": "dropdown-menu-sub-content",
1774
+ className: clsx(subContent, className),
1775
+ align: align,
1776
+ alignOffset: alignOffset,
1777
+ side: side,
1778
+ sideOffset: sideOffset,
1779
+ ...props
1780
+ });
1781
+ }
1782
+ function CheckboxItem({ className, children, checked, inset, ...props }) {
1783
+ return /*#__PURE__*/ jsxs(Menu.CheckboxItem, {
1784
+ "data-slot": "dropdown-menu-checkbox-item",
1785
+ "data-inset": inset ? '' : void 0,
1786
+ className: clsx(checkboxItem, className),
1787
+ checked: checked,
1788
+ ...props,
1789
+ children: [
1790
+ /*#__PURE__*/ jsx("span", {
1791
+ className: itemIndicator,
1792
+ "data-slot": "dropdown-menu-checkbox-item-indicator",
1793
+ children: /*#__PURE__*/ jsx(Menu.CheckboxItemIndicator, {
1794
+ children: /*#__PURE__*/ jsx(CheckIcon, {
1795
+ className: styles_css_icon
1796
+ })
1797
+ })
1798
+ }),
1799
+ children
1800
+ ]
1801
+ });
1802
+ }
1803
+ function RadioGroup({ ...props }) {
1804
+ return /*#__PURE__*/ jsx(Menu.RadioGroup, {
1805
+ "data-slot": "dropdown-menu-radio-group",
1806
+ ...props
1807
+ });
1808
+ }
1809
+ function RadioItem({ className, children, inset, ...props }) {
1810
+ return /*#__PURE__*/ jsxs(Menu.RadioItem, {
1811
+ "data-slot": "dropdown-menu-radio-item",
1812
+ "data-inset": inset ? '' : void 0,
1813
+ className: clsx(radioItem, className),
1814
+ ...props,
1815
+ children: [
1816
+ /*#__PURE__*/ jsx("span", {
1817
+ className: itemIndicator,
1818
+ "data-slot": "dropdown-menu-radio-item-indicator",
1819
+ children: /*#__PURE__*/ jsx(Menu.RadioItemIndicator, {
1820
+ children: /*#__PURE__*/ jsx(CheckIcon, {
1821
+ className: styles_css_icon
1822
+ })
1823
+ })
1824
+ }),
1825
+ children
1826
+ ]
1827
+ });
1828
+ }
1829
+ function DropdownMenu_Separator({ className, ...props }) {
1830
+ return /*#__PURE__*/ jsx(Menu.Separator, {
1831
+ "data-slot": "dropdown-menu-separator",
1832
+ className: clsx(DropdownMenu_styles_css_separator, className),
1833
+ ...props
1834
+ });
1835
+ }
1836
+ function Shortcut({ className, ...props }) {
1837
+ return /*#__PURE__*/ jsx("span", {
1838
+ "data-slot": "dropdown-menu-shortcut",
1839
+ className: clsx(shortcut, className),
1840
+ ...props
1841
+ });
1842
+ }
1843
+ DropdownMenu.Portal = DropdownMenu_Portal;
1844
+ DropdownMenu.Trigger = DropdownMenu_Trigger;
1845
+ DropdownMenu.Content = DropdownMenu_Content;
1846
+ DropdownMenu.Group = DropdownMenu_Group;
1847
+ DropdownMenu.Label = Label;
1848
+ DropdownMenu.Item = DropdownMenu_Item;
1849
+ DropdownMenu.Sub = Sub;
1850
+ DropdownMenu.SubTrigger = SubTrigger;
1851
+ DropdownMenu.SubContent = SubContent;
1852
+ DropdownMenu.Shortcut = Shortcut;
1853
+ DropdownMenu.Separator = DropdownMenu_Separator;
1854
+ DropdownMenu.RadioGroup = RadioGroup;
1855
+ DropdownMenu.RadioItem = RadioItem;
1856
+ DropdownMenu.CheckboxItem = CheckboxItem;
1857
+ const MainIconButton_useLogic_useLogic_useLogic = ({ action })=>{
1858
+ const { isLoading, disabledReason, name } = action;
1859
+ const [isVisibleTooltip, setVisibleTooltip] = useState(false);
1860
+ const handleOpenChange = (open)=>setVisibleTooltip(open);
1861
+ useEffect(()=>{
1862
+ if (isLoading) setVisibleTooltip(false);
1863
+ }, [
1864
+ isLoading
1865
+ ]);
1866
+ const text = disabledReason || name;
1867
+ return {
1868
+ tooltipProps: {
1869
+ text,
1870
+ open: isVisibleTooltip,
1871
+ onOpenChange: handleOpenChange
1872
+ }
1873
+ };
1874
+ };
1875
+ const MainIconButton = (props)=>{
1876
+ const { tooltipProps } = MainIconButton_useLogic_useLogic_useLogic(props);
1877
+ const { action, onActionClick, isDisabled, tooltipPlacement } = props;
1878
+ const { name, icon, needConfirm, confirmText, confirmButtonProps, disabled, isLoading, onClick } = action;
1879
+ const renderButton = (renderProps)=>/*#__PURE__*/ jsx(Tooltip, {
1880
+ arrow: true,
1881
+ side: tooltipPlacement,
1882
+ ...tooltipProps,
1883
+ children: /*#__PURE__*/ jsx(Button_Button, {
1884
+ disabled: isDisabled || disabled,
1885
+ isLoading: isLoading,
1886
+ variant: "ghost",
1887
+ size: "icon",
1888
+ ...renderProps,
1889
+ children: icon
1890
+ })
1891
+ }, name);
1892
+ return /*#__PURE__*/ jsx(Fragment, {
1893
+ children: needConfirm ? /*#__PURE__*/ jsx(ConfirmAction, {
1894
+ text: confirmText,
1895
+ confirmButtonProps: confirmButtonProps,
1896
+ actionComponent: (renderProps)=>renderButton(renderProps),
1897
+ onConfirm: onActionClick(onClick)
1898
+ }) : renderButton({
1899
+ onClick: onActionClick(onClick)
1900
+ })
1901
+ });
1902
+ };
1903
+ const MainAction = ({ action, onActionClick, isDisabled, tooltipPlacement })=>{
1904
+ if ('actions' in action) {
1905
+ const { disabled, icon, name, disabledReason, actions, isLoading } = action;
1906
+ return /*#__PURE__*/ jsxs(DropdownMenu, {
1907
+ children: [
1908
+ /*#__PURE__*/ jsx(Tooltip, {
1909
+ text: disabledReason || name,
1910
+ side: tooltipPlacement,
1911
+ arrow: true,
1912
+ children: /*#__PURE__*/ jsx(DropdownMenu.Trigger, {
1913
+ render: /*#__PURE__*/ jsx(Button_Button, {
1914
+ variant: "ghost",
1915
+ size: "icon",
1916
+ isLoading: isLoading,
1917
+ disabled: isDisabled || disabled,
1918
+ children: icon
1919
+ })
1920
+ })
1921
+ }, name),
1922
+ /*#__PURE__*/ jsx(DropdownMenu.Content, {
1923
+ children: actions.map(({ name: nestedActionName, onClick: onClickNested, ...props })=>/*#__PURE__*/ createElement(DropdownMenu.Item, {
1924
+ ...props,
1925
+ key: nestedActionName,
1926
+ render: /*#__PURE__*/ jsx(Button_Button, {
1927
+ size: "sm",
1928
+ onClick: onActionClick(onClickNested),
1929
+ children: nestedActionName
1930
+ })
1931
+ }))
1932
+ })
1933
+ ]
1934
+ });
1935
+ }
1936
+ return /*#__PURE__*/ jsx(MainIconButton, {
1937
+ action: action,
1938
+ onActionClick: onActionClick,
1939
+ isDisabled: isDisabled,
1940
+ tooltipPlacement: tooltipPlacement
1941
+ });
1942
+ };
1943
+ const SecondaryActions = ({ actions, onActionClick, tooltipPlacement, isDisabled })=>/*#__PURE__*/ jsxs(DropdownMenu, {
1944
+ children: [
1945
+ /*#__PURE__*/ jsx(DropdownMenu.Trigger, {
1946
+ render: /*#__PURE__*/ jsx(Button_Button, {
1947
+ disabled: isDisabled,
1948
+ variant: "ghost",
1949
+ size: "icon",
1950
+ children: /*#__PURE__*/ jsx(EllipsisVertical, {})
1951
+ })
1952
+ }),
1953
+ /*#__PURE__*/ jsx(DropdownMenu.Content, {
1954
+ children: actions.map((action)=>{
1955
+ const { onClick, name, disabledReason, isLoading } = action;
1956
+ return /*#__PURE__*/ jsx(Tooltip, {
1957
+ arrow: true,
1958
+ side: tooltipPlacement,
1959
+ text: disabledReason,
1960
+ children: /*#__PURE__*/ jsx(DropdownMenu.Item, {
1961
+ render: /*#__PURE__*/ jsx(Button_Button, {
1962
+ onClick: onActionClick(onClick),
1963
+ isLoading: isLoading,
1964
+ variant: "ghost",
1965
+ size: "sm",
1966
+ fullWidth: true,
1967
+ children: name
1968
+ })
1969
+ })
1970
+ }, name);
1971
+ })
1972
+ })
1973
+ ]
1974
+ });
1975
+ var DataGridActionCell_styles_css_wrapper = 'style__y44ln70';
1976
+ const DataGridActionCell_useLogic_useLogic_useLogic = ({ row, actions })=>{
1977
+ const { main, secondary } = actions;
1978
+ const blockingAction = [
1979
+ ...main,
1980
+ ...secondary || []
1981
+ ].find((action)=>action.isBlockingOperation && action.isLoading);
1982
+ const isDisabledAction = Boolean(blockingAction);
1983
+ const handleActionClick = useCallback((onClick)=>()=>{
1984
+ onClick?.(row);
1985
+ }, [
1986
+ row
1987
+ ]);
1988
+ const handleWrapperClick = (event)=>{
1989
+ event.stopPropagation();
1990
+ };
1991
+ return {
1992
+ isDisabledAction,
1993
+ handleActionClick,
1994
+ handleWrapperClick
1995
+ };
1996
+ };
1997
+ const TOOLTIP_PLACEMENT = {
1998
+ mainAction: 'top',
1999
+ secondaryAction: 'left'
2000
+ };
2001
+ const DataGridActionCell = (props)=>{
2002
+ const { isDisabledAction, handleWrapperClick, handleActionClick } = DataGridActionCell_useLogic_useLogic_useLogic(props);
2003
+ const { actions } = props;
2004
+ const { main, secondary } = actions;
2005
+ return /*#__PURE__*/ jsxs("div", {
2006
+ onClick: handleWrapperClick,
2007
+ onKeyDown: handleWrapperClick,
2008
+ className: DataGridActionCell_styles_css_wrapper,
2009
+ children: [
2010
+ main.map((action)=>/*#__PURE__*/ jsx(MainAction, {
2011
+ action: action,
2012
+ onActionClick: handleActionClick,
2013
+ isDisabled: isDisabledAction,
2014
+ tooltipPlacement: TOOLTIP_PLACEMENT.mainAction
2015
+ }, action.name)),
2016
+ secondary && /*#__PURE__*/ jsx(SecondaryActions, {
2017
+ actions: secondary,
2018
+ onActionClick: handleActionClick,
2019
+ tooltipPlacement: TOOLTIP_PLACEMENT.secondaryAction,
2020
+ isDisabled: isDisabledAction
2021
+ })
2022
+ ]
2023
+ });
2024
+ };
2025
+ var styles_css_alignments = {
2026
+ left: 'left__o752f01',
2027
+ center: 'center__o752f02',
2028
+ right: 'right__o752f03',
2029
+ justify: 'justify__o752f04'
2030
+ };
2031
+ var DataGridSortHeader_styles_css_wrapper = 'style__o752f00';
2032
+ function DataGridSortHeader({ sorting, setSorting, column: { title, field, align = 'left' }, className }) {
2033
+ if (!field) return null;
2034
+ const handleClick = ()=>{
2035
+ sorting.key === field ? setSorting({
2036
+ key: field,
2037
+ order: 'asc' === sorting.order ? 'desc' : 'asc'
2038
+ }) : setSorting({
2039
+ key: field,
2040
+ order: 'asc'
2041
+ });
2042
+ };
2043
+ return /*#__PURE__*/ jsxs("button", {
2044
+ type: "button",
2045
+ className: clsx(DataGridSortHeader_styles_css_wrapper, styles_css_alignments[align], className),
2046
+ onClick: handleClick,
2047
+ children: [
2048
+ title,
2049
+ sorting.key === field ? 'asc' === sorting.order ? /*#__PURE__*/ jsx(ArrowDownNarrowWide, {
2050
+ size: 16
2051
+ }) : /*#__PURE__*/ jsx(ArrowDownWideNarrow, {
2052
+ size: 16
2053
+ }) : /*#__PURE__*/ jsx(ArrowDownUp, {
2054
+ size: 16
2055
+ })
2056
+ ]
2057
+ });
2058
+ }
2059
+ const ITEM_CLASSNAME = 'datalist_item';
2060
+ const END_OF_SCROLL_MESSAGE = 'Вы достигли конца списка';
2061
+ var EndData_styles_css_item = 'style__1syvw5e0';
2062
+ const EndData = ({ endOfScrollMsg = END_OF_SCROLL_MESSAGE })=>/*#__PURE__*/ jsx("li", {
2063
+ className: EndData_styles_css_item,
2064
+ children: /*#__PURE__*/ jsx(Typography, {
2065
+ children: endOfScrollMsg
2066
+ })
2067
+ });
2068
+ const ERROR_MESSAGE = 'Ошибка загрузки';
2069
+ var ErrorState_styles_css_item = 'style__qlujai0';
2070
+ const ErrorState = ({ onRetry })=>/*#__PURE__*/ jsxs("li", {
2071
+ className: ErrorState_styles_css_item,
2072
+ children: [
2073
+ /*#__PURE__*/ jsx(Typography, {
2074
+ align: "center",
2075
+ children: ERROR_MESSAGE
2076
+ }),
2077
+ /*#__PURE__*/ jsx(Button_Button, {
2078
+ size: "sm",
2079
+ onClick: onRetry,
2080
+ children: "Попробовать снова"
2081
+ })
2082
+ ]
2083
+ });
2084
+ var Loader_styles_css_item = 'style__111czea0';
2085
+ const Loader = ()=>/*#__PURE__*/ jsx("li", {
2086
+ className: Loader_styles_css_item,
2087
+ children: /*#__PURE__*/ jsx(CircularProgress, {
2088
+ color: "primary"
2089
+ })
2090
+ });
2091
+ const NO_DATA_TEXT = 'Нет данных';
2092
+ const NoData = ({ noDataImgSrc })=>/*#__PURE__*/ jsx(Placeholder, {
2093
+ title: NO_DATA_TEXT,
2094
+ imgSrc: noDataImgSrc
2095
+ });
2096
+ var buttonClass = 'style__1jg5nd90';
2097
+ var visible = 'style__1jg5nd91';
2098
+ const ScrollToTopButton = ({ onClick, isVisible })=>/*#__PURE__*/ jsx(Button_Button, {
2099
+ onClick: onClick,
2100
+ size: "icon",
2101
+ variant: "outline",
2102
+ className: clsx(buttonClass, {
2103
+ [visible]: isVisible
2104
+ }),
2105
+ children: /*#__PURE__*/ jsx(ChevronUp, {})
2106
+ });
2107
+ var itemClass = 'style__1ezen7g1';
2108
+ var styles_css_list = 'style__1ezen7g0';
2109
+ const DataList = ({ data, keyId, className, itemContent, noDataPlaceholder, endOfScrollMsg, errorState, isLoading, isError, isEndReached, onRetry, onEndReached, ref })=>{
2110
+ const innerRef = useRef(null);
2111
+ const virtuoso = ref || innerRef;
2112
+ const [isStickyButtonActive, setIsStickyButtonActive] = useState(false);
2113
+ const handleRangeChanged = useCallback((range)=>{
2114
+ range.startIndex > 2 ? setIsStickyButtonActive(true) : setIsStickyButtonActive(false);
2115
+ }, []);
2116
+ const handleScrollToTop = useCallback(()=>virtuoso.current?.scrollToIndex({
2117
+ index: 0,
2118
+ align: 'start',
2119
+ behavior: 'smooth'
2120
+ }), [
2121
+ virtuoso
2122
+ ]);
2123
+ const handleEndReach = useCallback(()=>{
2124
+ if (!isEndReached && onEndReached) onEndReached();
2125
+ }, [
2126
+ isEndReached,
2127
+ onEndReached
2128
+ ]);
2129
+ const isDataExist = Boolean(data?.length);
2130
+ if (!isDataExist && !isLoading && !isError) return noDataPlaceholder ? /*#__PURE__*/ jsx(Fragment, {
2131
+ children: noDataPlaceholder
2132
+ }) : /*#__PURE__*/ jsx(NoData, {});
2133
+ return /*#__PURE__*/ jsxs(ContentState, {
2134
+ isLoading: isLoading && !isDataExist,
2135
+ isError: isError && !isDataExist,
2136
+ errorState: errorState,
2137
+ children: [
2138
+ /*#__PURE__*/ jsx(Virtuoso, {
2139
+ className: clsx(styles_css_list, className),
2140
+ style: {
2141
+ height: '100%'
2142
+ },
2143
+ data: data,
2144
+ ref: virtuoso,
2145
+ overscan: 30,
2146
+ endReached: handleEndReach,
2147
+ rangeChanged: handleRangeChanged,
2148
+ itemContent: (index, item)=>/*#__PURE__*/ jsx("li", {
2149
+ children: itemContent?.(item, {
2150
+ index,
2151
+ className: clsx(itemClass, ITEM_CLASSNAME)
2152
+ })
2153
+ }, item[keyId]),
2154
+ components: {
2155
+ Footer: ()=>/*#__PURE__*/ jsxs(Fragment, {
2156
+ children: [
2157
+ isLoading && /*#__PURE__*/ jsx(Loader, {}),
2158
+ isError && /*#__PURE__*/ jsx(ErrorState, {
2159
+ onRetry: onRetry
2160
+ }),
2161
+ isEndReached && /*#__PURE__*/ jsx(EndData, {
2162
+ endOfScrollMsg: endOfScrollMsg
2163
+ })
2164
+ ]
2165
+ })
2166
+ }
2167
+ }),
2168
+ /*#__PURE__*/ jsx(ScrollToTopButton, {
2169
+ isVisible: isStickyButtonActive,
2170
+ onClick: handleScrollToTop
2171
+ })
2172
+ ]
2173
+ });
2174
+ };
2175
+ var adornment = 'style__1blk89uc';
2176
+ var Input_styles_css_container = 'Input__1blk89u0';
2177
+ var styles_css_disabledClass = 'style__1blk89u6';
2178
+ var errorClass = 'style__1blk89u7';
2179
+ var fullWidthClass = 'style__1blk89u3';
2180
+ var input = 'style__1blk89u8';
2181
+ var Input_styles_css_sizes = {
2182
+ sm: 'sm__1blk89u9',
2183
+ md: 'md__1blk89ua',
2184
+ lg: 'lg__1blk89ub'
2185
+ };
2186
+ var Input_styles_css_variants = {
2187
+ outlined: 'outlined__1blk89u1',
2188
+ standard: 'standard__1blk89u2'
2189
+ };
2190
+ var withEndAdornment = 'style__1blk89ue';
2191
+ var withStartAdornment = 'style__1blk89ud';
2192
+ const Input = ({ error, variant = 'outlined', size = 'md', startAdornment, endAdornment, className, disabled, fullWidth, value, ref, ...props })=>/*#__PURE__*/ jsxs("div", {
2193
+ className: clsx(Input_styles_css_container, Input_styles_css_variants[variant], {
2194
+ [errorClass]: error
2195
+ }, {
2196
+ [styles_css_disabledClass]: disabled
2197
+ }, {
2198
+ [fullWidthClass]: fullWidth
2199
+ }, className),
2200
+ children: [
2201
+ startAdornment && /*#__PURE__*/ jsx("span", {
2202
+ className: adornment,
2203
+ children: startAdornment
2204
+ }),
2205
+ /*#__PURE__*/ jsx("input", {
2206
+ className: clsx(input, Input_styles_css_sizes[size], {
2207
+ [styles_css_disabledClass]: disabled,
2208
+ [withStartAdornment]: Boolean(startAdornment),
2209
+ [withEndAdornment]: Boolean(endAdornment)
2210
+ }),
2211
+ ref: ref,
2212
+ disabled: disabled,
2213
+ value: value || '',
2214
+ ...props
2215
+ }),
2216
+ endAdornment && /*#__PURE__*/ jsx("span", {
2217
+ className: adornment,
2218
+ children: endAdornment
2219
+ })
2220
+ ]
2221
+ });
2222
+ var label_css_disabled = 'style__c31e141';
2223
+ var label_css_error = 'style__c31e142';
2224
+ var required = 'style__c31e143';
2225
+ var label_css_root = 'Label__c31e140';
2226
+ const Label_Label = ({ className, disabled, ...props })=>/*#__PURE__*/ jsx(react_label_Root, {
2227
+ className: clsx(label_css_root, {
2228
+ [label_css_disabled]: disabled,
2229
+ [label_css_error]: props.error,
2230
+ [required]: props.required
2231
+ }, className),
2232
+ ...props
2233
+ });
2234
+ var TextField_styles_css_container = 'style__kqu4y20';
2235
+ var TextField_styles_css_disabledClass = 'style__kqu4y23';
2236
+ var styles_css_errorClass = 'style__kqu4y24';
2237
+ var styles_css_fullWidthClass = 'style__kqu4y25';
2238
+ var helperTextClass = 'style__kqu4y22';
2239
+ var labelClass = 'style__kqu4y21';
2240
+ const TextField = ({ label, helperText, className, disabled, fullWidth, ref, labelClassName, ...props })=>/*#__PURE__*/ jsxs("div", {
2241
+ className: clsx(TextField_styles_css_container, {
2242
+ [styles_css_fullWidthClass]: fullWidth
2243
+ }, className),
2244
+ children: [
2245
+ label && /*#__PURE__*/ jsx(Label_Label, {
2246
+ htmlFor: props.id || label,
2247
+ disabled: disabled,
2248
+ required: props.required,
2249
+ error: props.error,
2250
+ className: clsx(labelClass, labelClassName),
2251
+ children: label
2252
+ }),
2253
+ /*#__PURE__*/ jsx(Input, {
2254
+ ref: ref,
2255
+ disabled: disabled,
2256
+ fullWidth: fullWidth,
2257
+ id: props.id || label,
2258
+ ...props
2259
+ }),
2260
+ helperText && /*#__PURE__*/ jsx(Typography, {
2261
+ variant: "caption",
2262
+ className: clsx(helperTextClass, {
2263
+ [styles_css_errorClass]: props.error,
2264
+ [TextField_styles_css_disabledClass]: disabled
2265
+ }),
2266
+ children: helperText
2267
+ })
2268
+ ]
2269
+ });
2270
+ const MaskField = ({ maskProps, ref, ...textFieldProps })=>{
2271
+ const maskInputRef = useMask(maskProps);
2272
+ const mergedRef = useCallback((element)=>{
2273
+ maskInputRef.current = element;
2274
+ if ('function' == typeof ref) ref(element);
2275
+ else if (ref) ref.current = element;
2276
+ }, [
2277
+ maskInputRef,
2278
+ ref
2279
+ ]);
2280
+ return /*#__PURE__*/ jsx(TextField, {
2281
+ ref: mergedRef,
2282
+ ...textFieldProps
2283
+ });
2284
+ };
2285
+ const DatePicker = (props)=>{
2286
+ const { label, disabled = false, selected, onSelect, selectMonth, selectYear, error, helperText, className, fullWidth, size, name, ...rest } = props;
2287
+ const [innerError, setInnerError] = useState(null);
2288
+ const [isOpen, setIsOpen] = useState(false);
2289
+ const [month, setMonth] = useState(new Date());
2290
+ const [inputValue, setInputValue] = useState('');
2291
+ const getLayout = ()=>{
2292
+ if (selectMonth && selectYear) return 'dropdown';
2293
+ if (selectMonth) return 'dropdown-months';
2294
+ if (selectYear) return 'dropdown-years';
2295
+ return 'label';
2296
+ };
2297
+ const handleClick = ()=>{
2298
+ setIsOpen(true);
2299
+ };
2300
+ const handleClose = ()=>{
2301
+ setIsOpen(false);
2302
+ };
2303
+ const handleDayPickerSelect = (date)=>{
2304
+ if (date) {
2305
+ onSelect?.(date);
2306
+ setMonth(date);
2307
+ setInputValue(date.toLocaleString('ru-RU', {
2308
+ day: '2-digit',
2309
+ month: '2-digit',
2310
+ year: 'numeric'
2311
+ }));
2312
+ } else {
2313
+ setInputValue('');
2314
+ onSelect?.(void 0);
2315
+ }
2316
+ handleClose();
2317
+ };
2318
+ const handleInputChange = (e)=>{
2319
+ setInnerError(null);
2320
+ setInputValue(e.target.value);
2321
+ const [day, month, year] = e.target.value.split('.').map(Number);
2322
+ if (Number.isNaN(day) || Number.isNaN(month) || Number.isNaN(year) || day < 1 || day > 31 || month < 1 || month > 12 || year < 1000) return void setInnerError('Некорректная дата');
2323
+ const parsedDate = new Date(year, month - 1, day);
2324
+ onSelect?.(parsedDate);
2325
+ setMonth(parsedDate);
2326
+ };
2327
+ useEffect(()=>{
2328
+ if (selected) {
2329
+ setInputValue(selected.toLocaleString('ru-RU', {
2330
+ day: '2-digit',
2331
+ month: '2-digit',
2332
+ year: 'numeric'
2333
+ }));
2334
+ setMonth(selected);
2335
+ } else setInputValue('');
2336
+ }, [
2337
+ selected
2338
+ ]);
2339
+ return /*#__PURE__*/ jsxs(Popover_Popover, {
2340
+ open: isOpen,
2341
+ onOpenChange: setIsOpen,
2342
+ children: [
2343
+ /*#__PURE__*/ jsx(MaskField, {
2344
+ value: inputValue,
2345
+ onChange: handleInputChange,
2346
+ label: label,
2347
+ disabled: disabled,
2348
+ className: className,
2349
+ fullWidth: fullWidth,
2350
+ size: size,
2351
+ name: name,
2352
+ endAdornment: /*#__PURE__*/ jsx(Popover_Popover.Trigger, {
2353
+ render: /*#__PURE__*/ jsx(Button_Button, {
2354
+ variant: "ghost",
2355
+ size: "icon",
2356
+ onClick: handleClick,
2357
+ children: /*#__PURE__*/ jsx(Calendar1, {})
2358
+ })
2359
+ }),
2360
+ maskProps: {
2361
+ mask: '__.__.____',
2362
+ replacement: {
2363
+ _: /\d/
2364
+ },
2365
+ showMask: true
2366
+ },
2367
+ placeholder: "дд.мм.гггг",
2368
+ error: !!innerError || error,
2369
+ helperText: innerError || helperText
2370
+ }),
2371
+ /*#__PURE__*/ jsx(Popover_Popover.Content, {
2372
+ align: "end",
2373
+ alignOffset: -10,
2374
+ side: "bottom",
2375
+ children: /*#__PURE__*/ jsx(Calendar, {
2376
+ month: month,
2377
+ onMonthChange: setMonth,
2378
+ selected: selected,
2379
+ onSelect: handleDayPickerSelect,
2380
+ ...rest,
2381
+ mode: "single",
2382
+ captionLayout: getLayout()
2383
+ })
2384
+ })
2385
+ ]
2386
+ });
2387
+ };
2388
+ const DEFAULT_SEPARATOR = ':';
2389
+ const DEFAULT_SYMBOL = '—';
2390
+ const DESCRIPTION_ROOT_CLASSNAME = "descriptionRoot";
2391
+ const DescriptionContext = /*#__PURE__*/ createContext({
2392
+ leader: false,
2393
+ separator: ":",
2394
+ direction: 'default'
2395
+ });
2396
+ const DescriptionContextProvider = ({ children, leader, separator, direction })=>/*#__PURE__*/ jsx(DescriptionContext.Provider, {
2397
+ value: {
2398
+ leader,
2399
+ separator,
2400
+ direction
2401
+ },
2402
+ children: children
2403
+ });
2404
+ var dashedSeparator = 'style__1tsgk1i2';
2405
+ var styles_css_leader = 'style__1tsgk1i1';
2406
+ var Name_styles_css_wrapper = 'style__1tsgk1i0';
2407
+ const Name = ({ children, color = 'secondary', ...props })=>{
2408
+ const { leader, separator } = useContext(DescriptionContext);
2409
+ return /*#__PURE__*/ jsxs(Fragment, {
2410
+ children: [
2411
+ /*#__PURE__*/ jsx("dt", {
2412
+ className: clsx(Name_styles_css_wrapper, {
2413
+ [styles_css_leader]: leader
2414
+ }),
2415
+ children: /*#__PURE__*/ jsxs(Typography, {
2416
+ ...props,
2417
+ color: color,
2418
+ children: [
2419
+ children,
2420
+ !leader && separator
2421
+ ]
2422
+ })
2423
+ }),
2424
+ leader && /*#__PURE__*/ jsx("div", {
2425
+ className: dashedSeparator
2426
+ })
2427
+ ]
2428
+ });
2429
+ };
2430
+ var directions = {
2431
+ row: 'row__1lociyw1',
2432
+ column: 'column__1lociyw2'
2433
+ };
2434
+ var justify = {
2435
+ spaceBetween: 'spaceBetween__1lociyw3',
2436
+ start: 'start__1lociyw4'
2437
+ };
2438
+ var Description_styles_css_wrapper = 'style__1lociyw0';
2439
+ const Description_useLogic_useLogic_useLogic = ({ direction = 'row', separator = ":" })=>{
2440
+ const hasSeparator = 'column' === direction;
2441
+ const descriptionContextProviderProps = {
2442
+ separator: hasSeparator ? '' : separator
2443
+ };
2444
+ return {
2445
+ descriptionContextProviderProps,
2446
+ direction
2447
+ };
2448
+ };
2449
+ var Value_styles_css_leader = 'style__sdcsnp2';
2450
+ var Value_styles_css_text = 'style__sdcsnp1';
2451
+ var Value_styles_css_wrapper = 'style__sdcsnp0';
2452
+ const Value_useLogic_useLogic_useLogic = ({ canCopy, children, stub = '—' })=>{
2453
+ const { leader, direction } = useContext(DescriptionContext);
2454
+ const valueToRender = children || stub;
2455
+ const isDefaultValueRender = !canCopy || !children;
2456
+ return {
2457
+ valueToRender,
2458
+ isDefaultValueRender,
2459
+ leader,
2460
+ direction
2461
+ };
2462
+ };
2463
+ const Value = (props)=>{
2464
+ const { valueToRender, isDefaultValueRender, leader } = Value_useLogic_useLogic_useLogic(props);
2465
+ const { copyPosition = 'right', copyText, canCopy, children, stub, ...restProps } = props;
2466
+ if (isDefaultValueRender) return /*#__PURE__*/ jsx(Typography, {
2467
+ className: clsx_0(Value_styles_css_text, {
2468
+ [Value_styles_css_leader]: leader
2469
+ }),
2470
+ component: "dd",
2471
+ ...restProps,
2472
+ children: valueToRender
2473
+ });
2474
+ return /*#__PURE__*/ jsx("dd", {
2475
+ className: Value_styles_css_wrapper,
2476
+ children: /*#__PURE__*/ jsx(CopyTypography, {
2477
+ className: clsx_0({
2478
+ [Value_styles_css_leader]: leader
2479
+ }),
2480
+ copyPosition: copyPosition,
2481
+ copyText: copyText,
2482
+ ...restProps,
2483
+ children: valueToRender
2484
+ })
2485
+ });
2486
+ };
2487
+ const Description_Description = (props)=>{
2488
+ const { descriptionContextProviderProps, direction } = Description_useLogic_useLogic_useLogic(props);
2489
+ const { justifyContent = 'start', component: Component = 'dl', children, leader = false, className } = props;
2490
+ return /*#__PURE__*/ jsx(DescriptionContextProvider, {
2491
+ leader: leader,
2492
+ direction: direction,
2493
+ ...descriptionContextProviderProps,
2494
+ children: /*#__PURE__*/ jsx(Component, {
2495
+ className: clsx(Description_styles_css_wrapper, directions[direction], justify[justifyContent], DESCRIPTION_ROOT_CLASSNAME, className),
2496
+ children: children
2497
+ })
2498
+ });
2499
+ };
2500
+ Description_Description.Name = Name;
2501
+ Description_Description.Value = Value;
2502
+ var styles_css_closeButton = 'style__8bkmbe6';
2503
+ var closeText = 'style__8bkmbe7';
2504
+ var Dialog_styles_css_content = 'style__8bkmbe5';
2505
+ var Dialog_styles_css_description = 'style__8bkmbeb';
2506
+ var Dialog_styles_css_footer = 'style__8bkmbe9';
2507
+ var Dialog_styles_css_header = 'style__8bkmbe8';
2508
+ var styles_css_overlay = 'style__8bkmbe4';
2509
+ var Dialog_styles_css_title = 'style__8bkmbea';
2510
+ function Dialog_Dialog({ ...props }) {
2511
+ return /*#__PURE__*/ jsx(Dialog.Root, {
2512
+ "data-slot": "dialog",
2513
+ ...props
2514
+ });
2515
+ }
2516
+ function Dialog_Trigger({ ...props }) {
2517
+ return /*#__PURE__*/ jsx(Dialog.Trigger, {
2518
+ "data-slot": "dialog-trigger",
2519
+ ...props
2520
+ });
2521
+ }
2522
+ function Dialog_Portal({ ...props }) {
2523
+ return /*#__PURE__*/ jsx(Dialog.Portal, {
2524
+ "data-slot": "dialog-portal",
2525
+ ...props
2526
+ });
2527
+ }
2528
+ function Close({ ...props }) {
2529
+ return /*#__PURE__*/ jsx(Dialog.Close, {
2530
+ "data-slot": "dialog-close",
2531
+ ...props
2532
+ });
2533
+ }
2534
+ function Dialog_Overlay({ className, ...props }) {
2535
+ return /*#__PURE__*/ jsx(Dialog.Backdrop, {
2536
+ "data-slot": "dialog-overlay",
2537
+ className: clsx(styles_css_overlay, className),
2538
+ ...props
2539
+ });
2540
+ }
2541
+ function Dialog_Content({ className, children, showCloseButton = true, ...props }) {
2542
+ return /*#__PURE__*/ jsxs(Dialog_Portal, {
2543
+ children: [
2544
+ /*#__PURE__*/ jsx(Dialog_Overlay, {}),
2545
+ /*#__PURE__*/ jsxs(Dialog.Popup, {
2546
+ "data-slot": "dialog-content",
2547
+ className: clsx(Dialog_styles_css_content, className),
2548
+ ...props,
2549
+ children: [
2550
+ children,
2551
+ showCloseButton && /*#__PURE__*/ jsxs(Dialog.Close, {
2552
+ "data-slot": "dialog-close",
2553
+ render: /*#__PURE__*/ jsx(Button_Button, {
2554
+ variant: "ghost",
2555
+ size: "iconSm",
2556
+ className: styles_css_closeButton
2557
+ }),
2558
+ children: [
2559
+ /*#__PURE__*/ jsx(XIcon, {}),
2560
+ /*#__PURE__*/ jsx("span", {
2561
+ className: closeText,
2562
+ children: "Close"
2563
+ })
2564
+ ]
2565
+ })
2566
+ ]
2567
+ })
2568
+ ]
2569
+ });
2570
+ }
2571
+ function Dialog_Header({ className, ...props }) {
2572
+ return /*#__PURE__*/ jsx("div", {
2573
+ "data-slot": "dialog-header",
2574
+ className: clsx(Dialog_styles_css_header, className),
2575
+ ...props
2576
+ });
2577
+ }
2578
+ function Dialog_Footer({ className, showCloseButton = false, children, ...props }) {
2579
+ return /*#__PURE__*/ jsxs("div", {
2580
+ "data-slot": "dialog-footer",
2581
+ className: clsx(Dialog_styles_css_footer, className),
2582
+ ...props,
2583
+ children: [
2584
+ children,
2585
+ showCloseButton && /*#__PURE__*/ jsx(Dialog.Close, {
2586
+ render: /*#__PURE__*/ jsx(Button_Button, {
2587
+ variant: "outline"
2588
+ }),
2589
+ children: "Close"
2590
+ })
2591
+ ]
2592
+ });
2593
+ }
2594
+ function Dialog_Title({ className, ...props }) {
2595
+ return /*#__PURE__*/ jsx(Dialog.Title, {
2596
+ "data-slot": "dialog-title",
2597
+ className: clsx(Dialog_styles_css_title, className),
2598
+ ...props
2599
+ });
2600
+ }
2601
+ function Dialog_Description({ className, ...props }) {
2602
+ return /*#__PURE__*/ jsx(Dialog.Description, {
2603
+ "data-slot": "dialog-description",
2604
+ className: clsx(Dialog_styles_css_description, className),
2605
+ ...props
2606
+ });
2607
+ }
2608
+ Dialog_Dialog.Trigger = Dialog_Trigger;
2609
+ Dialog_Dialog.Portal = Dialog_Portal;
2610
+ Dialog_Dialog.Close = Close;
2611
+ Dialog_Dialog.Overlay = Dialog_Overlay;
2612
+ Dialog_Dialog.Content = Dialog_Content;
2613
+ Dialog_Dialog.Header = Dialog_Header;
2614
+ Dialog_Dialog.Footer = Dialog_Footer;
2615
+ Dialog_Dialog.Title = Dialog_Title;
2616
+ Dialog_Dialog.Description = Dialog_Description;
2617
+ var Drawer_styles_css_content = 'style__ccss503';
2618
+ var Drawer_styles_css_description = 'style__ccss508';
2619
+ var dragHandle = 'style__ccss504';
2620
+ var Drawer_styles_css_footer = 'style__ccss506';
2621
+ var Drawer_styles_css_header = 'style__ccss505';
2622
+ var Drawer_styles_css_overlay = 'style__ccss502';
2623
+ var Drawer_styles_css_title = 'style__ccss507';
2624
+ const Drawer_Drawer = ({ children, trigger, className, title, description = '', footer, closeButton, ...props })=>/*#__PURE__*/ jsxs(external_vaul_Root, {
2625
+ ...props,
2626
+ children: [
2627
+ trigger && /*#__PURE__*/ jsx(Drawer.Trigger, {
2628
+ "data-slot": "drawer-trigger",
2629
+ asChild: true,
2630
+ children: trigger
2631
+ }),
2632
+ /*#__PURE__*/ jsxs(Drawer.Portal, {
2633
+ "data-slot": "drawer-portal",
2634
+ children: [
2635
+ /*#__PURE__*/ jsx(Drawer.Overlay, {
2636
+ "data-slot": "drawer-overlay",
2637
+ className: Drawer_styles_css_overlay
2638
+ }),
2639
+ /*#__PURE__*/ jsxs(Drawer.Content, {
2640
+ "data-slot": "drawer-content",
2641
+ className: clsx('group/drawer-content', Drawer_styles_css_content, className),
2642
+ children: [
2643
+ /*#__PURE__*/ jsx("div", {
2644
+ className: dragHandle
2645
+ }),
2646
+ /*#__PURE__*/ jsxs("div", {
2647
+ "data-slot": "drawer-header",
2648
+ className: Drawer_styles_css_header,
2649
+ children: [
2650
+ /*#__PURE__*/ jsx(Drawer.Title, {
2651
+ "data-slot": "drawer-title",
2652
+ className: Drawer_styles_css_title,
2653
+ children: title
2654
+ }),
2655
+ /*#__PURE__*/ jsx(Drawer.Description, {
2656
+ "data-slot": "drawer-description",
2657
+ className: Drawer_styles_css_description,
2658
+ children: description
2659
+ })
2660
+ ]
2661
+ }),
2662
+ children,
2663
+ /*#__PURE__*/ jsxs("div", {
2664
+ "data-slot": "drawer-footer",
2665
+ className: Drawer_styles_css_footer,
2666
+ children: [
2667
+ footer,
2668
+ closeButton && /*#__PURE__*/ jsx(Drawer.Close, {
2669
+ "data-slot": "drawer-close",
2670
+ asChild: true,
2671
+ children: closeButton
2672
+ })
2673
+ ]
2674
+ })
2675
+ ]
2676
+ })
2677
+ ]
2678
+ })
2679
+ ]
2680
+ });
2681
+ var Empty_styles_css_content = 'style__e4li7y7';
2682
+ var Empty_styles_css_description = 'style__e4li7y6';
2683
+ var Empty_styles_css_header = 'style__e4li7y1';
2684
+ var styles_css_media = 'style__e4li7y2';
2685
+ var mediaVariants = {
2686
+ default: 'default__e4li7y3',
2687
+ icon: 'icon__e4li7y4'
2688
+ };
2689
+ var Empty_styles_css_root = 'style__e4li7y0';
2690
+ var Empty_styles_css_title = 'style__e4li7y5';
2691
+ function Empty({ className, ...props }) {
2692
+ return /*#__PURE__*/ jsx("div", {
2693
+ "data-slot": "empty",
2694
+ className: clsx(Empty_styles_css_root, className),
2695
+ ...props
2696
+ });
2697
+ }
2698
+ function Empty_Header({ className, ...props }) {
2699
+ return /*#__PURE__*/ jsx("div", {
2700
+ "data-slot": "empty-header",
2701
+ className: clsx(Empty_styles_css_header, className),
2702
+ ...props
2703
+ });
2704
+ }
2705
+ function Empty_Media({ className, variant = 'default', ...props }) {
2706
+ return /*#__PURE__*/ jsx("div", {
2707
+ "data-slot": "empty-media",
2708
+ "data-variant": variant,
2709
+ className: clsx(styles_css_media, mediaVariants[variant], className),
2710
+ ...props
2711
+ });
2712
+ }
2713
+ function Empty_Title({ className, ...props }) {
2714
+ return /*#__PURE__*/ jsx("div", {
2715
+ "data-slot": "empty-title",
2716
+ className: clsx(Empty_styles_css_title, className),
2717
+ ...props
2718
+ });
2719
+ }
2720
+ function Empty_Description({ className, ...props }) {
2721
+ return /*#__PURE__*/ jsx("div", {
2722
+ "data-slot": "empty-description",
2723
+ className: clsx(Empty_styles_css_description, className),
2724
+ ...props
2725
+ });
2726
+ }
2727
+ function Empty_Content({ className, ...props }) {
2728
+ return /*#__PURE__*/ jsx("div", {
2729
+ "data-slot": "empty-content",
2730
+ className: clsx(Empty_styles_css_content, className),
2731
+ ...props
2732
+ });
2733
+ }
2734
+ Empty.Header = Empty_Header;
2735
+ Empty.Media = Empty_Media;
2736
+ Empty.Title = Empty_Title;
2737
+ Empty.Description = Empty_Description;
2738
+ Empty.Content = Empty_Content;
2739
+ var arrow = 'style__a5l83v4';
2740
+ var arrowLeft = 'style__a5l83v5';
2741
+ var arrowRight = 'style__a5l83v6';
2742
+ var carousel = 'style__a5l83v0';
2743
+ var carouselInner = 'style__a5l83v1';
2744
+ var ImageCarousel_styles_css_image = 'style__a5l83v3';
2745
+ var styles_css_indicator = 'style__a5l83v8';
2746
+ var indicators = 'style__a5l83v7';
2747
+ var slide = 'style__a5l83v2';
2748
+ const ImageCarousel = ({ images = [], autoPlay = false, interval = 5000 })=>{
2749
+ const [currentIndex, setCurrentIndex] = useState(0);
2750
+ const goToPrevious = ()=>{
2751
+ setCurrentIndex((prevIndex)=>0 === prevIndex ? images.length - 1 : prevIndex - 1);
2752
+ };
2753
+ const goToNext = ()=>{
2754
+ setCurrentIndex((prevIndex)=>prevIndex === images.length - 1 ? 0 : prevIndex + 1);
2755
+ };
2756
+ const goToSlide = (index)=>{
2757
+ setCurrentIndex(index);
2758
+ };
2759
+ useEffect(()=>{
2760
+ if (!autoPlay) return;
2761
+ const timer = setInterval(()=>{
2762
+ setCurrentIndex((prevIndex)=>prevIndex === images.length - 1 ? 0 : prevIndex + 1);
2763
+ }, interval);
2764
+ return ()=>clearInterval(timer);
2765
+ }, [
2766
+ autoPlay,
2767
+ images.length,
2768
+ interval
2769
+ ]);
2770
+ if (0 === images.length) return /*#__PURE__*/ jsx("div", {
2771
+ className: carousel,
2772
+ children: "Нет изображений для отображения"
2773
+ });
2774
+ return /*#__PURE__*/ jsxs("div", {
2775
+ className: carousel,
2776
+ children: [
2777
+ /*#__PURE__*/ jsx("div", {
2778
+ className: carouselInner,
2779
+ style: {
2780
+ transform: `translateX(-${100 * currentIndex}%)`
2781
+ },
2782
+ children: images.map((image, index)=>/*#__PURE__*/ jsx("div", {
2783
+ className: slide,
2784
+ children: /*#__PURE__*/ jsx("img", {
2785
+ src: image.src,
2786
+ alt: image.alt || `Slide ${index + 1}`,
2787
+ className: ImageCarousel_styles_css_image
2788
+ })
2789
+ }, image.src))
2790
+ }),
2791
+ images.length > 1 && /*#__PURE__*/ jsxs(Fragment, {
2792
+ children: [
2793
+ /*#__PURE__*/ jsx("button", {
2794
+ type: "button",
2795
+ className: clsx(arrow, arrowLeft),
2796
+ onClick: goToPrevious,
2797
+ children: /*#__PURE__*/ jsx(ChevronLeft, {
2798
+ size: 24
2799
+ })
2800
+ }),
2801
+ /*#__PURE__*/ jsx("button", {
2802
+ type: "button",
2803
+ className: clsx(arrow, arrowRight),
2804
+ onClick: goToNext,
2805
+ children: /*#__PURE__*/ jsx(ChevronRight, {
2806
+ size: 24
2807
+ })
2808
+ }),
2809
+ /*#__PURE__*/ jsx("div", {
2810
+ className: indicators,
2811
+ children: images.map(({ src }, index)=>/*#__PURE__*/ jsx("button", {
2812
+ type: "button",
2813
+ className: `${styles_css_indicator} ${currentIndex === index ? 'active' : ''}`,
2814
+ onClick: ()=>goToSlide(index)
2815
+ }, src))
2816
+ })
2817
+ ]
2818
+ })
2819
+ ]
2820
+ });
2821
+ };
2822
+ var separatorClass = 'style__te1pgr0';
2823
+ const Separator_Separator = ({ separator = '•', ...props })=>/*#__PURE__*/ jsx("div", {
2824
+ ...props,
2825
+ children: /*#__PURE__*/ jsx("span", {
2826
+ className: separatorClass,
2827
+ children: separator
2828
+ })
2829
+ });
2830
+ var active = 'style__rtks2g1';
2831
+ var caret = 'style__rtks2g4';
2832
+ var caretContainer = 'style__rtks2g2';
2833
+ var styles_css_slot = 'style__rtks2g0';
2834
+ const Slot = ({ char, hasFakeCaret, isActive, ...props })=>/*#__PURE__*/ jsxs("div", {
2835
+ className: clsx(styles_css_slot, {
2836
+ [active]: isActive
2837
+ }),
2838
+ ...props,
2839
+ children: [
2840
+ char,
2841
+ hasFakeCaret && /*#__PURE__*/ jsx("div", {
2842
+ className: caretContainer,
2843
+ children: /*#__PURE__*/ jsx("div", {
2844
+ className: caret
2845
+ })
2846
+ })
2847
+ ]
2848
+ });
2849
+ var InputOTP_styles_css_container = 'style__1iixe0l0';
2850
+ var InputOTP_styles_css_disabled = 'style__1iixe0l3';
2851
+ var styles_css_group = 'style__1iixe0l2';
2852
+ var styles_css_input = 'style__1iixe0l1';
2853
+ const InputOTP = ({ className, containerClassName, disabled, ...props })=>/*#__PURE__*/ jsx(OTPInput, {
2854
+ containerClassName: clsx(InputOTP_styles_css_container, {
2855
+ [InputOTP_styles_css_disabled]: disabled
2856
+ }, containerClassName),
2857
+ className: clsx(styles_css_input, className),
2858
+ render: ({ slots })=>{
2859
+ if (slots.length % 2 !== 0) return /*#__PURE__*/ jsx("div", {
2860
+ className: styles_css_group,
2861
+ children: slots.map((slot, index)=>/*#__PURE__*/ jsx(Slot, {
2862
+ ...slot
2863
+ }, `${index.toString()}-${slot.char}`))
2864
+ });
2865
+ return /*#__PURE__*/ jsxs(Fragment, {
2866
+ children: [
2867
+ /*#__PURE__*/ jsx("div", {
2868
+ className: styles_css_group,
2869
+ children: slots.slice(0, slots.length / 2).map((slot, idx)=>/*#__PURE__*/ jsx(Slot, {
2870
+ ...slot
2871
+ }, `${idx.toString()}-${slot.char}`))
2872
+ }),
2873
+ /*#__PURE__*/ jsx(Separator_Separator, {}),
2874
+ /*#__PURE__*/ jsx("div", {
2875
+ className: styles_css_group,
2876
+ children: slots.slice(slots.length / 2).map((slot, idx)=>/*#__PURE__*/ jsx(Slot, {
2877
+ ...slot
2878
+ }, `${idx.toString()}-${slot.char}`))
2879
+ })
2880
+ ]
2881
+ });
2882
+ },
2883
+ ...props
2884
+ });
2885
+ var constants_NotificationVariantTypes = /*#__PURE__*/ function(NotificationVariantTypes) {
2886
+ NotificationVariantTypes["info"] = "info";
2887
+ NotificationVariantTypes["success"] = "success";
2888
+ NotificationVariantTypes["warning"] = "warning";
2889
+ NotificationVariantTypes["error"] = "error";
2890
+ return NotificationVariantTypes;
2891
+ }({});
2892
+ const NOTIFICATION_POSITIONS = {
2893
+ topRight: 'top-right',
2894
+ topLeft: 'top-left',
2895
+ bottomRight: 'bottom-right',
2896
+ bottomLeft: 'bottom-left',
2897
+ topCenter: 'top-center',
2898
+ bottomCenter: 'bottom-center'
2899
+ };
2900
+ const NOTIFY_CLASSNAME = 'notify';
2901
+ class Notification {
2902
+ service;
2903
+ constructor(sonner){
2904
+ this.service = sonner;
2905
+ }
2906
+ message(title, message) {
2907
+ return this.service.message(title, {
2908
+ description: message
2909
+ });
2910
+ }
2911
+ success = (title)=>this.service.success(title);
2912
+ error = (title)=>this.service.error(title);
2913
+ info = (title)=>this.service.info(title);
2914
+ warning = (title)=>this.service.warning(title);
2915
+ loading = (title)=>this.service.loading(title);
2916
+ dismiss = (id)=>this.service.dismiss(id);
2917
+ custom = (node)=>this.service(node);
2918
+ action = ({ title, buttonLabel, onClick })=>this.service(title, {
2919
+ action: {
2920
+ label: buttonLabel,
2921
+ onClick
2922
+ }
2923
+ });
2924
+ }
2925
+ const notification = new Notification(toast);
2926
+ const NotificationContainer = ({ position = 'bottomRight', ...props })=>/*#__PURE__*/ jsx(Toaster, {
2927
+ duration: 3000,
2928
+ icons: {
2929
+ error: /*#__PURE__*/ jsx(OctagonAlert, {
2930
+ size: 20,
2931
+ color: theme_css_theme.colors.error
2932
+ }),
2933
+ success: /*#__PURE__*/ jsx(CircleCheck, {
2934
+ size: 20,
2935
+ color: theme_css_theme.colors.success
2936
+ }),
2937
+ warning: /*#__PURE__*/ jsx(TriangleAlert, {
2938
+ size: 20,
2939
+ color: theme_css_theme.colors.warning
2940
+ }),
2941
+ info: /*#__PURE__*/ jsx(Info, {
2942
+ size: 20,
2943
+ color: theme_css_theme.colors.info
2944
+ })
2945
+ },
2946
+ position: NOTIFICATION_POSITIONS[position],
2947
+ ...props
2948
+ });
2949
+ var multipleRows = 'style__t5ji061';
2950
+ var truncate = 'style__t5ji060';
2951
+ var OverflowTypography_styles_css_wrapper = 'style__t5ji062';
2952
+ var wrapperAlignments = {
2953
+ left: 'left__t5ji063',
2954
+ center: 'center__t5ji064',
2955
+ right: 'right__t5ji065',
2956
+ justify: 'justify__t5ji066'
2957
+ };
2958
+ function useIsMobile() {
2959
+ const [isMobile, setIsMobile] = useState(void 0);
2960
+ useEffect(()=>{
2961
+ const mediaQuery = window.matchMedia("(max-width: 767px)");
2962
+ const onChange = ()=>{
2963
+ setIsMobile(window.innerWidth < 768);
2964
+ };
2965
+ mediaQuery.addEventListener('change', onChange);
2966
+ setIsMobile(window.innerWidth < 768);
2967
+ return ()=>mediaQuery.removeEventListener('change', onChange);
2968
+ }, []);
2969
+ return Boolean(isMobile);
2970
+ }
2971
+ const RESIZE_DEBOUNCE_MS = 500;
2972
+ const setRef = (ref, node)=>{
2973
+ if (!ref) return;
2974
+ if ('function' == typeof ref) return void ref(node);
2975
+ ref.current = node;
2976
+ };
2977
+ const useOverflowed = (forwardedRef, hasMultipleRows = false)=>{
2978
+ const localRef = useRef(null);
2979
+ const resizeTimer = useRef(void 0);
2980
+ const [isOverflowed, setOverflowed] = useState(false);
2981
+ const checkOverflow = useCallback(([{ target, contentRect }])=>{
2982
+ const isScrollHeightBigger = target.scrollHeight > Math.round(contentRect.height);
2983
+ const isScrollWidthBigger = target.scrollWidth > Math.round(contentRect.width);
2984
+ const nextIsOverflowed = hasMultipleRows ? isScrollWidthBigger || isScrollHeightBigger : isScrollWidthBigger;
2985
+ setOverflowed((current)=>current === nextIsOverflowed ? current : nextIsOverflowed);
2986
+ }, [
2987
+ hasMultipleRows
2988
+ ]);
2989
+ const ref = useCallback((node)=>{
2990
+ localRef.current = node;
2991
+ setRef(forwardedRef, node);
2992
+ }, [
2993
+ forwardedRef
2994
+ ]);
2995
+ const check = useCallback((_checkKey)=>{
2996
+ const node = localRef.current;
2997
+ if (!node) return;
2998
+ checkOverflow([
2999
+ {
3000
+ target: node,
3001
+ contentRect: node.getBoundingClientRect()
3002
+ }
3003
+ ]);
3004
+ }, [
3005
+ checkOverflow
3006
+ ]);
3007
+ useLayoutEffect(()=>{
3008
+ const node = localRef.current;
3009
+ if (!node) return;
3010
+ check();
3011
+ const resizeObserver = new ResizeObserver((entries)=>{
3012
+ clearTimeout(resizeTimer.current);
3013
+ resizeTimer.current = setTimeout(()=>{
3014
+ checkOverflow(entries);
3015
+ }, RESIZE_DEBOUNCE_MS);
3016
+ });
3017
+ resizeObserver.observe(node);
3018
+ return ()=>{
3019
+ clearTimeout(resizeTimer.current);
3020
+ resizeObserver.unobserve(node);
3021
+ resizeObserver.disconnect();
3022
+ };
3023
+ }, [
3024
+ check,
3025
+ checkOverflow
3026
+ ]);
3027
+ return {
3028
+ check,
3029
+ isOverflowed,
3030
+ ref
3031
+ };
3032
+ };
3033
+ const truncateString = (visibleLastSymbolsCount, label)=>{
3034
+ const firstPartLabel = label.slice(0, -visibleLastSymbolsCount);
3035
+ const secondPartLabel = label.slice(-visibleLastSymbolsCount);
3036
+ return {
3037
+ firstPartLabel,
3038
+ secondPartLabel
3039
+ };
3040
+ };
3041
+ const getRowsCountStyle = (rowsCount, style)=>({
3042
+ ...style,
3043
+ '--rows-count': rowsCount
3044
+ });
3045
+ const OverflowTypography_useLogic_useLogic = ({ text, children, tooltipProps, visibleLastSymbolsCount = 0, rowsCount = 1, ref, style: styleProp })=>{
3046
+ const style = getRowsCountStyle(rowsCount, styleProp);
3047
+ const label = text ?? ('string' == typeof children ? children : void 0);
3048
+ const hasVisibleLastSymbols = Boolean(label && visibleLastSymbolsCount > 0);
3049
+ const hasMultipleRows = hasVisibleLastSymbols ? false : rowsCount > 1;
3050
+ const overflowCheckKey = [
3051
+ label,
3052
+ rowsCount,
3053
+ visibleLastSymbolsCount,
3054
+ hasVisibleLastSymbols
3055
+ ].join('|');
3056
+ const { check, isOverflowed, ref: overflowRef } = useOverflowed(ref, hasMultipleRows);
3057
+ const { content: tooltipContent, text: tooltipText, ...restTooltipProps } = tooltipProps || {};
3058
+ const resolvedTooltipContent = isOverflowed ? tooltipContent ?? tooltipText ?? label : void 0;
3059
+ useLayoutEffect(()=>{
3060
+ check(overflowCheckKey);
3061
+ }, [
3062
+ check,
3063
+ overflowCheckKey
3064
+ ]);
3065
+ return {
3066
+ label,
3067
+ hasVisibleLastSymbols,
3068
+ hasMultipleRows,
3069
+ overflowRef,
3070
+ tooltipContent: resolvedTooltipContent,
3071
+ restTooltipProps,
3072
+ style,
3073
+ visibleLastSymbolsCount
3074
+ };
3075
+ };
3076
+ const OverflowTypography = (props)=>{
3077
+ const { label, hasVisibleLastSymbols, hasMultipleRows, overflowRef, tooltipContent, restTooltipProps, style, visibleLastSymbolsCount } = OverflowTypography_useLogic_useLogic(props);
3078
+ const { align = 'left', className, text, children } = props;
3079
+ if (hasVisibleLastSymbols && label) {
3080
+ const { firstPartLabel, secondPartLabel } = truncateString(visibleLastSymbolsCount, label);
3081
+ return /*#__PURE__*/ jsx(Tooltip, {
3082
+ ...restTooltipProps,
3083
+ arrow: true,
3084
+ content: tooltipContent,
3085
+ children: /*#__PURE__*/ jsxs("div", {
3086
+ className: clsx(OverflowTypography_styles_css_wrapper, wrapperAlignments[align]),
3087
+ "data-slot": "overflow-typography",
3088
+ children: [
3089
+ /*#__PURE__*/ jsx(Typography, {
3090
+ ...props,
3091
+ align: align,
3092
+ className: clsx(truncate, className),
3093
+ component: "span",
3094
+ "data-slot": "overflow-typography-start",
3095
+ display: "block",
3096
+ ref: overflowRef,
3097
+ style: style,
3098
+ children: firstPartLabel
3099
+ }),
3100
+ /*#__PURE__*/ jsx(Typography, {
3101
+ ...props,
3102
+ align: align,
3103
+ className: className,
3104
+ component: "span",
3105
+ "data-slot": "overflow-typography-end",
3106
+ style: style,
3107
+ children: secondPartLabel
3108
+ })
3109
+ ]
3110
+ })
3111
+ });
3112
+ }
3113
+ return /*#__PURE__*/ jsx(Tooltip, {
3114
+ ...restTooltipProps,
3115
+ arrow: true,
3116
+ content: tooltipContent,
3117
+ children: /*#__PURE__*/ jsx(Typography, {
3118
+ ...props,
3119
+ align: align,
3120
+ className: clsx(truncate, hasMultipleRows && multipleRows, className),
3121
+ "data-slot": "overflow-typography",
3122
+ display: "block",
3123
+ ref: overflowRef,
3124
+ style: style,
3125
+ children: text ?? children
3126
+ })
3127
+ });
3128
+ };
3129
+ const PAGE_CONTENT_CLASSNAME = 'page-content';
3130
+ const PAGE_HEADER_CLASSNAME = 'page_header';
3131
+ const PAGE_ASIDE_CLASSNAME = 'page_aside';
3132
+ var Aside_styles_css_rootClass = 'PageLayoutAside__1un4hm80';
3133
+ const Aside = ({ children, className })=>/*#__PURE__*/ jsx("aside", {
3134
+ className: clsx(Aside_styles_css_rootClass, className, PAGE_ASIDE_CLASSNAME),
3135
+ children: children
3136
+ });
3137
+ var fullHeightClass = 'style__1hr0uh01';
3138
+ var Content_styles_css_rootClass = 'style__1hr0uh00';
3139
+ const Content_Content_Content = (props)=>{
3140
+ const { className, children, isFullHeight = true } = props;
3141
+ return /*#__PURE__*/ jsx("article", {
3142
+ className: clsx(PAGE_CONTENT_CLASSNAME, Content_styles_css_rootClass, {
3143
+ [fullHeightClass]: isFullHeight
3144
+ }, className),
3145
+ children: children
3146
+ });
3147
+ };
3148
+ var Footer_styles_css_rootClass = 'style__1bd8jnw0';
3149
+ const Footer_Footer_Footer = (props)=>{
3150
+ const { children, className } = props;
3151
+ return /*#__PURE__*/ jsx("footer", {
3152
+ className: clsx(Footer_styles_css_rootClass, className),
3153
+ children: children
3154
+ });
3155
+ };
3156
+ var styles_css_actionsClass = 'style__nvcxbd3';
3157
+ var breadcrumbsClass = 'Breadcrumbs__nvcxbd0';
3158
+ var buttonsClass = 'style__nvcxbd2';
3159
+ var Header_styles_css_rootClass = 'style__nvcxbd1';
3160
+ var subtitleClass = 'style__nvcxbd6';
3161
+ var subtitleContainerClass = 'style__nvcxbd7';
3162
+ var styles_css_titleClass = 'style__nvcxbd4';
3163
+ var titleContainerClass = 'style__nvcxbd5';
3164
+ const Header_Header_Header = (props)=>{
3165
+ const { title, subtitle, breadcrumbs, actions, backButton, className } = props;
3166
+ const { pinned, togglePinned } = useDashboard();
3167
+ useEffect(()=>{
3168
+ if ('string' == typeof title) document.title = title;
3169
+ }, [
3170
+ title
3171
+ ]);
3172
+ return /*#__PURE__*/ jsxs("header", {
3173
+ className: clsx(PAGE_HEADER_CLASSNAME, Header_styles_css_rootClass, className),
3174
+ children: [
3175
+ /*#__PURE__*/ jsxs("div", {
3176
+ className: buttonsClass,
3177
+ children: [
3178
+ /*#__PURE__*/ jsx(Tooltip, {
3179
+ text: pinned ? 'Развернуть' : 'Свернуть',
3180
+ children: /*#__PURE__*/ jsx(Button_Button, {
3181
+ variant: "ghost",
3182
+ size: "icon",
3183
+ onClick: togglePinned,
3184
+ children: pinned ? /*#__PURE__*/ jsx(PanelLeftOpen, {}) : /*#__PURE__*/ jsx(PanelLeftClose, {})
3185
+ })
3186
+ }),
3187
+ backButton && /*#__PURE__*/ jsx(Tooltip, {
3188
+ text: "Назад",
3189
+ children: /*#__PURE__*/ jsx(Button_Button, {
3190
+ ...backButton,
3191
+ variant: "ghost",
3192
+ children: /*#__PURE__*/ jsx(ChevronLeft, {})
3193
+ })
3194
+ })
3195
+ ]
3196
+ }),
3197
+ breadcrumbs && /*#__PURE__*/ jsx("div", {
3198
+ className: breadcrumbsClass,
3199
+ children: breadcrumbs
3200
+ }),
3201
+ /*#__PURE__*/ jsx("div", {
3202
+ className: styles_css_actionsClass,
3203
+ children: actions
3204
+ }),
3205
+ 'string' == typeof title ? /*#__PURE__*/ jsx(Typography, {
3206
+ className: styles_css_titleClass,
3207
+ component: "h1",
3208
+ variant: "h3",
3209
+ "aria-level": 1,
3210
+ children: title
3211
+ }) : /*#__PURE__*/ jsx("div", {
3212
+ className: titleContainerClass,
3213
+ children: title
3214
+ }),
3215
+ subtitle && 'string' == typeof subtitle && /*#__PURE__*/ jsx(Typography, {
3216
+ className: subtitleClass,
3217
+ "aria-level": 2,
3218
+ children: subtitle
3219
+ }),
3220
+ subtitle && 'string' != typeof subtitle && /*#__PURE__*/ jsx("div", {
3221
+ className: subtitleContainerClass,
3222
+ children: subtitle
3223
+ })
3224
+ ]
3225
+ });
3226
+ };
3227
+ var PageLayout_styles_css_rootClass = 'style__adrl250';
3228
+ const PageLayout = ({ children, className })=>/*#__PURE__*/ jsx("div", {
3229
+ className: clsx(PageLayout_styles_css_rootClass, className),
3230
+ children: children
3231
+ });
3232
+ PageLayout.Header = Header_Header_Header;
3233
+ PageLayout.Content = Content_Content_Content;
3234
+ PageLayout.Footer = Footer_Footer_Footer;
3235
+ PageLayout.Aside = Aside;
3236
+ var ellipsisSpan = 'style__p708oq1';
3237
+ var paginationContainer = 'style__p708oq0';
3238
+ const useLogic_range = (start, end)=>{
3239
+ const length = end - start + 1;
3240
+ return Array.from({
3241
+ length
3242
+ }, (_, idx)=>idx + start);
3243
+ };
3244
+ const Pagination_useLogic_useLogic = ({ totalCount, pageSize, siblingCount = 1, currentPage })=>{
3245
+ const paginationRange = useMemo(()=>{
3246
+ if (pageSize <= 0 || totalCount <= 0) return [];
3247
+ const totalPageCount = Math.ceil(totalCount / pageSize);
3248
+ const totalPageNumbersToShow = siblingCount + 5;
3249
+ if (totalPageNumbersToShow >= totalPageCount) return useLogic_range(1, totalPageCount);
3250
+ const leftSibling = Math.max(currentPage - siblingCount, 1);
3251
+ const rightSibling = Math.min(currentPage + siblingCount, totalPageCount);
3252
+ const showLeftDots = leftSibling > 2;
3253
+ const showRightDots = rightSibling < totalPageCount - 2;
3254
+ const firstPage = 1;
3255
+ const lastPage = totalPageCount;
3256
+ if (!showLeftDots && showRightDots) {
3257
+ const visiblePageCountBeforeDots = 3 + 2 * siblingCount;
3258
+ const leftRange = useLogic_range(1, visiblePageCountBeforeDots);
3259
+ return [
3260
+ ...leftRange,
3261
+ null,
3262
+ totalPageCount
3263
+ ];
3264
+ }
3265
+ if (showLeftDots && !showRightDots) {
3266
+ const visiblePageCountAfterDots = 3 + 2 * siblingCount;
3267
+ const rightRange = useLogic_range(totalPageCount - visiblePageCountAfterDots + 1, totalPageCount);
3268
+ return [
3269
+ firstPage,
3270
+ null,
3271
+ ...rightRange
3272
+ ];
3273
+ }
3274
+ if (showLeftDots && showRightDots) {
3275
+ const middleRange = useLogic_range(leftSibling, rightSibling);
3276
+ return [
3277
+ firstPage,
3278
+ null,
3279
+ ...middleRange,
3280
+ null,
3281
+ lastPage
3282
+ ];
3283
+ }
3284
+ return [];
3285
+ }, [
3286
+ totalCount,
3287
+ pageSize,
3288
+ siblingCount,
3289
+ currentPage
3290
+ ]);
3291
+ return paginationRange;
3292
+ };
3293
+ function Pagination(props) {
3294
+ const { onPageChange, totalCount, siblingCount = 1, currentPage, pageSize, size = 'icon' } = props;
3295
+ const paginationRange = Pagination_useLogic_useLogic({
3296
+ currentPage,
3297
+ totalCount,
3298
+ siblingCount,
3299
+ pageSize
3300
+ });
3301
+ if (0 === currentPage || paginationRange && paginationRange.length < 2) return null;
3302
+ const onNext = ()=>{
3303
+ onPageChange(currentPage + 1);
3304
+ };
3305
+ const onPrevious = ()=>{
3306
+ onPageChange(currentPage - 1);
3307
+ };
3308
+ const lastPage = paginationRange.at(-1);
3309
+ return /*#__PURE__*/ jsxs("nav", {
3310
+ className: paginationContainer,
3311
+ children: [
3312
+ /*#__PURE__*/ jsx(Button_Button, {
3313
+ variant: "ghost",
3314
+ size: size,
3315
+ onClick: onPrevious,
3316
+ disabled: 1 === currentPage,
3317
+ children: /*#__PURE__*/ jsx(ChevronLeft, {})
3318
+ }),
3319
+ paginationRange?.map((pageNumber, index)=>{
3320
+ if (!pageNumber) return /*#__PURE__*/ jsx("span", {
3321
+ className: ellipsisSpan,
3322
+ children: /*#__PURE__*/ jsx(external_lucide_react_Ellipsis, {})
3323
+ });
3324
+ return /*#__PURE__*/ jsx(Button_Button, {
3325
+ size: size,
3326
+ variant: pageNumber === currentPage ? 'default' : 'outline',
3327
+ onClick: ()=>onPageChange(+pageNumber),
3328
+ children: pageNumber
3329
+ }, `${pageNumber}${index.toString()}`);
3330
+ }),
3331
+ /*#__PURE__*/ jsx(Button_Button, {
3332
+ variant: "ghost",
3333
+ size: size,
3334
+ onClick: onNext,
3335
+ disabled: currentPage === lastPage,
3336
+ children: /*#__PURE__*/ jsx(ChevronRight, {})
3337
+ })
3338
+ ]
3339
+ });
3340
+ }
3341
+ const MONTHS = [
3342
+ 'Янв.',
3343
+ 'Фев.',
3344
+ 'Мар.',
3345
+ 'Апр.',
3346
+ 'Май',
3347
+ 'Июн.',
3348
+ 'Июл.',
3349
+ 'Авг.',
3350
+ 'Сен.',
3351
+ 'Окт.',
3352
+ 'Ноя.',
3353
+ 'Дек.'
3354
+ ];
3355
+ const QUARTERS = [
3356
+ 'I квартал',
3357
+ 'II квартал',
3358
+ 'III квартал',
3359
+ 'IV квартал'
3360
+ ];
3361
+ var styles_css_months = 'style__1izfmw31';
3362
+ var quarters = 'style__1izfmw32';
3363
+ var PeriodPicker_styles_css_wrapper = 'style__1izfmw30';
3364
+ const getQuarter = (month)=>Math.ceil(month / 3);
3365
+ const getQuarterLabel = (date)=>{
3366
+ if (!date) return '';
3367
+ return `${QUARTERS[getQuarter(date.getMonth())]} ${date.getFullYear()}`;
3368
+ };
3369
+ function YearsDropdown({ year, onSelect, minDate, maxDate }) {
3370
+ const years = Array.from({
3371
+ length: maxDate.getFullYear() - minDate.getFullYear() + 1
3372
+ }, (_, index)=>minDate.getFullYear() + index);
3373
+ const onChange = (year)=>{
3374
+ onSelect?.(Number(year));
3375
+ };
3376
+ return /*#__PURE__*/ jsxs(Select, {
3377
+ onValueChange: onChange,
3378
+ value: year.toString(),
3379
+ children: [
3380
+ /*#__PURE__*/ jsx(SelectTrigger, {
3381
+ children: /*#__PURE__*/ jsx(SelectValue, {
3382
+ placeholder: year.toString()
3383
+ })
3384
+ }),
3385
+ /*#__PURE__*/ jsx(SelectContent, {
3386
+ children: years.map((value)=>/*#__PURE__*/ jsx(SelectItem, {
3387
+ value: value.toString(),
3388
+ children: /*#__PURE__*/ jsx(Typography, {
3389
+ align: "center",
3390
+ variant: "subtitle1",
3391
+ transform: "capitalize",
3392
+ children: value
3393
+ })
3394
+ }, value))
3395
+ })
3396
+ ]
3397
+ });
3398
+ }
3399
+ const PeriodPicker = (props)=>{
3400
+ const { label, disabled = false, value, onSelect, type = 'month', placeholder = 'month' === type ? 'Выберите месяц' : 'Выберите квартал', error, helperText, max = new Date(2050, 0, 1), min = new Date(2000, 0, 1), className, size, fullWidth, name } = props;
3401
+ const now = new Date();
3402
+ const [isOpen, setIsOpen] = useState(false);
3403
+ const [year, setYear] = useState(now.getFullYear());
3404
+ const handleClose = ()=>{
3405
+ setIsOpen(false);
3406
+ };
3407
+ const handleSelect = (date)=>{
3408
+ onSelect?.(date);
3409
+ handleClose();
3410
+ };
3411
+ const textValue = 'month' === type ? value?.toLocaleDateString('ru-RU', {
3412
+ month: 'long',
3413
+ year: 'numeric'
3414
+ }) : getQuarterLabel(value);
3415
+ useEffect(()=>{
3416
+ if (value) setYear(value.getFullYear());
3417
+ }, [
3418
+ value
3419
+ ]);
3420
+ return /*#__PURE__*/ jsxs(Popover_Popover, {
3421
+ open: isOpen,
3422
+ onOpenChange: setIsOpen,
3423
+ children: [
3424
+ /*#__PURE__*/ jsx(TextField, {
3425
+ label: label,
3426
+ value: textValue,
3427
+ disabled: disabled,
3428
+ size: size,
3429
+ fullWidth: fullWidth,
3430
+ name: name,
3431
+ endAdornment: /*#__PURE__*/ jsx(Popover_Popover.Trigger, {
3432
+ render: /*#__PURE__*/ jsx(Button_Button, {
3433
+ disabled: disabled,
3434
+ variant: "ghost",
3435
+ size: "icon",
3436
+ children: /*#__PURE__*/ jsx(Calendar1, {})
3437
+ })
3438
+ }),
3439
+ placeholder: placeholder,
3440
+ error: error,
3441
+ helperText: helperText,
3442
+ className: className
3443
+ }),
3444
+ /*#__PURE__*/ jsx(Popover_Popover.Content, {
3445
+ align: "end",
3446
+ alignOffset: -10,
3447
+ side: "bottom",
3448
+ children: /*#__PURE__*/ jsxs("div", {
3449
+ className: PeriodPicker_styles_css_wrapper,
3450
+ children: [
3451
+ /*#__PURE__*/ jsx(YearsDropdown, {
3452
+ year: year,
3453
+ onSelect: setYear,
3454
+ minDate: min,
3455
+ maxDate: max
3456
+ }),
3457
+ 'month' === type ? /*#__PURE__*/ jsx("div", {
3458
+ className: styles_css_months,
3459
+ children: MONTHS.map((label, index)=>{
3460
+ const date = new Date(year, index, value?.getDate() || 1);
3461
+ return /*#__PURE__*/ jsx(Button_Button, {
3462
+ variant: value?.getMonth() === index && value.getFullYear() === date.getFullYear() ? 'default' : 'ghost',
3463
+ disabled: date < min || date > max,
3464
+ onClick: ()=>handleSelect(date),
3465
+ children: label
3466
+ }, label);
3467
+ })
3468
+ }) : /*#__PURE__*/ jsx("div", {
3469
+ className: quarters,
3470
+ children: QUARTERS.map((label, index)=>{
3471
+ const monthIndex = 3 * index;
3472
+ const date = new Date(year, monthIndex, 1);
3473
+ return /*#__PURE__*/ jsx(Button_Button, {
3474
+ variant: value && [
3475
+ getQuarter(value.getMonth()) === index,
3476
+ value.getFullYear() === date.getFullYear()
3477
+ ].every(Boolean) ? 'default' : 'ghost',
3478
+ disabled: date < min || date > max,
3479
+ onClick: ()=>handleSelect(date),
3480
+ children: label
3481
+ }, label);
3482
+ })
3483
+ })
3484
+ ]
3485
+ })
3486
+ })
3487
+ ]
3488
+ });
3489
+ };
3490
+ var iconClass = 'style__ia95d14';
3491
+ var indicatorClass = 'style__ia95d13';
3492
+ var styles_css_itemClass = 'style__ia95d12';
3493
+ var itemWrapperClass = 'style__ia95d11';
3494
+ var radioGroupClass = 'RadioGroup__ia95d10';
3495
+ const RadioGroup_RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(react_radio_group_Root, {
3496
+ "data-slot": "radio-group",
3497
+ className: clsx_0(radioGroupClass, className),
3498
+ ...props
3499
+ });
3500
+ const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div", {
3501
+ className: itemWrapperClass,
3502
+ children: [
3503
+ /*#__PURE__*/ jsx(react_radio_group_Item, {
3504
+ "data-slot": "radio-group-item",
3505
+ id: props.id || props.value,
3506
+ className: clsx(styles_css_itemClass, className),
3507
+ ...props,
3508
+ children: /*#__PURE__*/ jsx(Indicator, {
3509
+ "data-slot": "radio-group-indicator",
3510
+ className: indicatorClass,
3511
+ children: /*#__PURE__*/ jsx(CircleIcon, {
3512
+ className: iconClass
3513
+ })
3514
+ })
3515
+ }),
3516
+ /*#__PURE__*/ jsx(Label_Label, {
3517
+ htmlFor: props.id || props.value,
3518
+ "data-slot": "radio-group-label",
3519
+ children: label
3520
+ })
3521
+ ]
3522
+ });
3523
+ var control = 'style__h9oy581';
3524
+ var styles_css_range = 'style__h9oy583';
3525
+ var Slider_styles_css_root = 'style__h9oy580';
3526
+ var styles_css_thumb = 'style__h9oy584';
3527
+ var track = 'style__h9oy582';
3528
+ function Slider_Slider({ className, defaultValue, value, min = 0, max = 100, onValueCommit, onValueCommitted, ...props }) {
3529
+ const values = __rspack_external_react.useMemo(()=>Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [
3530
+ min,
3531
+ max
3532
+ ], [
3533
+ value,
3534
+ defaultValue,
3535
+ min,
3536
+ max
3537
+ ]);
3538
+ const thumbs = __rspack_external_react.useMemo(()=>Array.from({
3539
+ length: values.length
3540
+ }, (_, thumbIndex)=>({
3541
+ key: `slider-thumb-${thumbIndex}`,
3542
+ index: thumbIndex
3543
+ })), [
3544
+ values.length
3545
+ ]);
3546
+ return /*#__PURE__*/ jsx(Slider.Root, {
3547
+ "data-slot": "slider",
3548
+ className: clsx(Slider_styles_css_root, className),
3549
+ defaultValue: defaultValue,
3550
+ value: value,
3551
+ min: min,
3552
+ max: max,
3553
+ thumbAlignment: "edge",
3554
+ onValueCommitted: (committedValue, eventDetails)=>{
3555
+ onValueCommitted?.(committedValue, eventDetails);
3556
+ onValueCommit?.(committedValue);
3557
+ },
3558
+ ...props,
3559
+ children: /*#__PURE__*/ jsxs(Slider.Control, {
3560
+ className: control,
3561
+ children: [
3562
+ /*#__PURE__*/ jsx(Slider.Track, {
3563
+ "data-slot": "slider-track",
3564
+ className: track,
3565
+ children: /*#__PURE__*/ jsx(Slider.Indicator, {
3566
+ "data-slot": "slider-range",
3567
+ className: styles_css_range
3568
+ })
3569
+ }),
3570
+ thumbs.map((thumb)=>/*#__PURE__*/ jsx(Slider.Thumb, {
3571
+ "data-slot": "slider-thumb",
3572
+ index: thumb.index,
3573
+ className: styles_css_thumb
3574
+ }, thumb.key))
3575
+ ]
3576
+ })
3577
+ });
3578
+ }
3579
+ var activeClass = 'style__1pnwkko1';
3580
+ var RangeInput_styles_css_container = 'style__1pnwkko0';
3581
+ var inputClass = 'style__1pnwkko6';
3582
+ var RangeInput_styles_css_sizes = {
3583
+ sm: 'sm__1pnwkko2',
3584
+ md: 'md__1pnwkko3',
3585
+ lg: 'lg__1pnwkko4'
3586
+ };
3587
+ var sliderClass = 'style__1pnwkko7';
3588
+ var styles_css_textClass = 'style__1pnwkko5';
3589
+ const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, onChange })=>{
3590
+ const minId = useId();
3591
+ const maxId = useId();
3592
+ const [minVal, setMinVal] = useState(min);
3593
+ const [maxVal, setMaxVal] = useState(max);
3594
+ const onValueChange = (newValue)=>{
3595
+ if (newValue[0] === newValue[1]) return void onChange(newValue[0], newValue[1]);
3596
+ setMinVal(newValue[0]);
3597
+ setMaxVal(newValue[1]);
3598
+ };
3599
+ const onMinValueChange = (event)=>{
3600
+ const { value } = event.target;
3601
+ if (!Number.isNaN(+value)) setMinVal(+value);
3602
+ };
3603
+ const onMaxValueChange = (event)=>{
3604
+ const { value } = event.target;
3605
+ if (!Number.isNaN(value)) setMaxVal(+value);
3606
+ };
3607
+ const onKeyDown = (event)=>{
3608
+ if ('Enter' === event.key) {
3609
+ const minValue = minVal >= min && minVal <= max ? minVal : min;
3610
+ const maxValue = maxVal >= min && maxVal <= max ? maxVal : max;
3611
+ onChange(minValue, maxValue);
3612
+ }
3613
+ };
3614
+ const onConfirm = (value)=>{
3615
+ onChange(value[0], value[1]);
3616
+ };
3617
+ useEffect(()=>{
3618
+ setMinVal(minValue ? minValue : min);
3619
+ setMaxVal(maxValue ? maxValue : max);
3620
+ }, [
3621
+ minValue,
3622
+ maxValue,
3623
+ min,
3624
+ max
3625
+ ]);
3626
+ return {
3627
+ maxId,
3628
+ minId,
3629
+ minVal,
3630
+ maxVal,
3631
+ onValueChange,
3632
+ onMinValueChange,
3633
+ onMaxValueChange,
3634
+ onKeyDown,
3635
+ onConfirm
3636
+ };
3637
+ };
3638
+ function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit = '', size = 'md', className, isActive, minInputRef, maxInputRef }) {
3639
+ const { onMinValueChange, onMaxValueChange, minVal, maxVal, onKeyDown, onValueChange, onConfirm, minId, maxId } = RangeInput_useLogic_useLogic_useLogic({
3640
+ min,
3641
+ max,
3642
+ maxValue,
3643
+ minValue,
3644
+ onChange
3645
+ });
3646
+ return /*#__PURE__*/ jsxs("div", {
3647
+ className: clsx(RangeInput_styles_css_container, RangeInput_styles_css_sizes[size], {
3648
+ [activeClass]: isActive
3649
+ }, className),
3650
+ style: {
3651
+ width
3652
+ },
3653
+ children: [
3654
+ /*#__PURE__*/ jsx(Typography, {
3655
+ className: styles_css_textClass,
3656
+ color: "disabled",
3657
+ variant: "caption",
3658
+ children: "от"
3659
+ }),
3660
+ /*#__PURE__*/ jsx("input", {
3661
+ className: inputClass,
3662
+ type: "text",
3663
+ id: minId,
3664
+ value: minVal,
3665
+ onChange: onMinValueChange,
3666
+ onKeyDown: onKeyDown,
3667
+ ref: minInputRef
3668
+ }),
3669
+ /*#__PURE__*/ jsx(Typography, {
3670
+ className: styles_css_textClass,
3671
+ color: "disabled",
3672
+ variant: "caption",
3673
+ children: "до"
3674
+ }),
3675
+ /*#__PURE__*/ jsx("input", {
3676
+ className: inputClass,
3677
+ type: "text",
3678
+ id: maxId,
3679
+ value: maxVal,
3680
+ onChange: onMaxValueChange,
3681
+ onKeyDown: onKeyDown,
3682
+ ref: maxInputRef
3683
+ }),
3684
+ /*#__PURE__*/ jsx(Typography, {
3685
+ className: styles_css_textClass,
3686
+ color: "disabled",
3687
+ variant: "caption",
3688
+ children: unit
3689
+ }),
3690
+ /*#__PURE__*/ jsx("div", {
3691
+ className: sliderClass,
3692
+ children: /*#__PURE__*/ jsx(Slider_Slider, {
3693
+ min: min,
3694
+ max: max,
3695
+ value: [
3696
+ Number(minVal),
3697
+ Number(maxVal)
3698
+ ],
3699
+ onValueChange: onValueChange,
3700
+ onValueCommit: onConfirm
3701
+ })
3702
+ })
3703
+ ]
3704
+ });
3705
+ }
3706
+ var ScrollTopButton_styles_css_button = 'style__1ou2vjc0';
3707
+ var styles_css_visible = 'style__1ou2vjc1';
3708
+ function ScrollTopButton({ onClick, variant = 'outline', ...props }) {
3709
+ const [isVisible, setIsVisible] = useState(false);
3710
+ const scrollToTop = ()=>{
3711
+ window.scrollTo({
3712
+ top: 0,
3713
+ left: 0,
3714
+ behavior: 'smooth'
3715
+ });
3716
+ };
3717
+ useEffect(()=>{
3718
+ const toggleVisibility = ()=>{
3719
+ window.scrollY > 400 ? setIsVisible(true) : setIsVisible(false);
3720
+ };
3721
+ window.addEventListener('scroll', toggleVisibility);
3722
+ return ()=>{
3723
+ window.removeEventListener('scroll', toggleVisibility);
3724
+ };
3725
+ }, []);
3726
+ return /*#__PURE__*/ jsx(Button_Button, {
3727
+ type: "button",
3728
+ variant: variant,
3729
+ className: clsx(ScrollTopButton_styles_css_button, {
3730
+ [styles_css_visible]: isVisible
3731
+ }),
3732
+ onClick: onClick || scrollToTop,
3733
+ ...props,
3734
+ children: /*#__PURE__*/ jsx(ChevronUp, {})
3735
+ });
3736
+ }
3737
+ var chevron = 'style__5ilg7oe';
3738
+ var Select_styles_css_content = 'style__5ilg7o7';
3739
+ var Select_styles_css_icon = 'style__5ilg7od';
3740
+ var Select_styles_css_item = 'style__5ilg7oa';
3741
+ var itemIndicatorWrapper = 'style__5ilg7ob';
3742
+ var Select_styles_css_label = 'style__5ilg7o9';
3743
+ var scrollButton = 'style__5ilg7o6';
3744
+ var Select_styles_css_separator = 'style__5ilg7oc';
3745
+ var Select_styles_css_sizes = {
3746
+ sm: 'sm__5ilg7o3',
3747
+ md: 'md__5ilg7o4',
3748
+ lg: 'lg__5ilg7o5'
3749
+ };
3750
+ var Select_styles_css_trigger = 'style__5ilg7o2';
3751
+ var viewport = 'style__5ilg7o8';
3752
+ const Select = react_select_Root;
3753
+ const SelectGroup = react_select_Group;
3754
+ const SelectValue = react_select_Value;
3755
+ const SelectTrigger = ({ className, children, size = 'md', ...props })=>/*#__PURE__*/ jsxs(react_select_Trigger, {
3756
+ className: clsx(Select_styles_css_trigger, Select_styles_css_sizes[size], className),
3757
+ ...props,
3758
+ children: [
3759
+ children,
3760
+ /*#__PURE__*/ jsx(Icon, {
3761
+ asChild: true,
3762
+ children: /*#__PURE__*/ jsx(ChevronDown, {
3763
+ className: chevron
3764
+ })
3765
+ })
3766
+ ]
3767
+ });
3768
+ const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(ScrollUpButton, {
3769
+ className: clsx(scrollButton, className),
3770
+ ...props,
3771
+ children: /*#__PURE__*/ jsx(ChevronUp, {
3772
+ className: Select_styles_css_icon
3773
+ })
3774
+ });
3775
+ const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(ScrollDownButton, {
3776
+ className: clsx(scrollButton, className),
3777
+ ...props,
3778
+ children: /*#__PURE__*/ jsx(ChevronDown, {
3779
+ className: Select_styles_css_icon
3780
+ })
3781
+ });
3782
+ const SelectContent = ({ className, children, position = 'popper', ...props })=>/*#__PURE__*/ jsx(react_select_Portal, {
3783
+ children: /*#__PURE__*/ jsxs(react_select_Content, {
3784
+ className: clsx(Select_styles_css_content, className),
3785
+ position: position,
3786
+ ...props,
3787
+ children: [
3788
+ /*#__PURE__*/ jsx(SelectScrollUpButton, {}),
3789
+ /*#__PURE__*/ jsx(Viewport, {
3790
+ className: viewport,
3791
+ children: children
3792
+ }),
3793
+ /*#__PURE__*/ jsx(SelectScrollDownButton, {})
3794
+ ]
3795
+ })
3796
+ });
3797
+ const SelectLabel = ({ className, ...props })=>/*#__PURE__*/ jsx(react_select_Label, {
3798
+ className: `${Select_styles_css_label} ${className || ''}`,
3799
+ ...props
3800
+ });
3801
+ const SelectItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(react_select_Item, {
3802
+ className: `${Select_styles_css_item} ${className || ''}`,
3803
+ ...props,
3804
+ children: [
3805
+ /*#__PURE__*/ jsx("span", {
3806
+ className: itemIndicatorWrapper,
3807
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
3808
+ children: /*#__PURE__*/ jsx(Check, {
3809
+ className: Select_styles_css_icon
3810
+ })
3811
+ })
3812
+ }),
3813
+ /*#__PURE__*/ jsx(ItemText, {
3814
+ children: children
3815
+ })
3816
+ ]
3817
+ });
3818
+ const SelectSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(react_select_Separator, {
3819
+ className: `${Select_styles_css_separator} ${className || ''}`,
3820
+ ...props
3821
+ });
3822
+ var Sheet_styles_css_closeButton = 'style__5dkj2fc';
3823
+ var styles_css_closeText = 'style__5dkj2fd';
3824
+ var Sheet_styles_css_content = 'style__5dkj2fb';
3825
+ var Sheet_styles_css_description = 'style__5dkj2fh';
3826
+ var Sheet_styles_css_footer = 'style__5dkj2ff';
3827
+ var Sheet_styles_css_header = 'style__5dkj2fe';
3828
+ var Sheet_styles_css_overlay = 'style__5dkj2fa';
3829
+ var Sheet_styles_css_title = 'style__5dkj2fg';
3830
+ function Sheet({ ...props }) {
3831
+ return /*#__PURE__*/ jsx(Dialog.Root, {
3832
+ "data-slot": "sheet",
3833
+ ...props
3834
+ });
3835
+ }
3836
+ function Sheet_Trigger({ ...props }) {
3837
+ return /*#__PURE__*/ jsx(Dialog.Trigger, {
3838
+ "data-slot": "sheet-trigger",
3839
+ ...props
3840
+ });
3841
+ }
3842
+ function Sheet_Close({ ...props }) {
3843
+ return /*#__PURE__*/ jsx(Dialog.Close, {
3844
+ "data-slot": "sheet-close",
3845
+ ...props
3846
+ });
3847
+ }
3848
+ function Sheet_Portal({ ...props }) {
3849
+ return /*#__PURE__*/ jsx(Dialog.Portal, {
3850
+ "data-slot": "sheet-portal",
3851
+ ...props
3852
+ });
3853
+ }
3854
+ function Sheet_Overlay({ className, ...props }) {
3855
+ return /*#__PURE__*/ jsx(Dialog.Backdrop, {
3856
+ "data-slot": "sheet-overlay",
3857
+ className: clsx(Sheet_styles_css_overlay, className),
3858
+ ...props
3859
+ });
3860
+ }
3861
+ function Sheet_Content({ className, children, side = 'right', showCloseButton = true, ...props }) {
3862
+ return /*#__PURE__*/ jsxs(Sheet_Portal, {
3863
+ children: [
3864
+ /*#__PURE__*/ jsx(Sheet_Overlay, {}),
3865
+ /*#__PURE__*/ jsxs(Dialog.Popup, {
3866
+ "data-slot": "sheet-content",
3867
+ "data-side": side,
3868
+ className: clsx(Sheet_styles_css_content, className),
3869
+ ...props,
3870
+ children: [
3871
+ children,
3872
+ showCloseButton && /*#__PURE__*/ jsxs(Dialog.Close, {
3873
+ "data-slot": "sheet-close",
3874
+ render: /*#__PURE__*/ jsx(Button_Button, {
3875
+ variant: "ghost",
3876
+ className: Sheet_styles_css_closeButton,
3877
+ size: "iconSm"
3878
+ }),
3879
+ children: [
3880
+ /*#__PURE__*/ jsx(XIcon, {}),
3881
+ /*#__PURE__*/ jsx("span", {
3882
+ className: styles_css_closeText,
3883
+ children: "Close"
3884
+ })
3885
+ ]
3886
+ })
3887
+ ]
3888
+ })
3889
+ ]
3890
+ });
3891
+ }
3892
+ function Sheet_Header({ className, ...props }) {
3893
+ return /*#__PURE__*/ jsx("div", {
3894
+ "data-slot": "sheet-header",
3895
+ className: clsx(Sheet_styles_css_header, className),
3896
+ ...props
3897
+ });
3898
+ }
3899
+ function Sheet_Footer({ className, ...props }) {
3900
+ return /*#__PURE__*/ jsx("div", {
3901
+ "data-slot": "sheet-footer",
3902
+ className: clsx(Sheet_styles_css_footer, className),
3903
+ ...props
3904
+ });
3905
+ }
3906
+ function Sheet_Title({ className, ...props }) {
3907
+ return /*#__PURE__*/ jsx(Dialog.Title, {
3908
+ "data-slot": "sheet-title",
3909
+ className: clsx(Sheet_styles_css_title, className),
3910
+ ...props
3911
+ });
3912
+ }
3913
+ function Sheet_Description({ className, ...props }) {
3914
+ return /*#__PURE__*/ jsx(Dialog.Description, {
3915
+ "data-slot": "sheet-description",
3916
+ className: clsx(Sheet_styles_css_description, className),
3917
+ ...props
3918
+ });
3919
+ }
3920
+ Sheet.Trigger = Sheet_Trigger;
3921
+ Sheet.Close = Sheet_Close;
3922
+ Sheet.Portal = Sheet_Portal;
3923
+ Sheet.Overlay = Sheet_Overlay;
3924
+ Sheet.Content = Sheet_Content;
3925
+ Sheet.Header = Sheet_Header;
3926
+ Sheet.Footer = Sheet_Footer;
3927
+ Sheet.Title = Sheet_Title;
3928
+ Sheet.Description = Sheet_Description;
3929
+ const SIDEBAR_COOKIE_NAME = 'sidebar_state';
3930
+ var Sidebar_styles_css_container = 'style__1xiua9n4';
3931
+ var Sidebar_styles_css_content = 'style__1xiua9nh';
3932
+ var desktopSidebar = 'style__1xiua9n2';
3933
+ var Sidebar_styles_css_footer = 'style__1xiua9nf';
3934
+ var gap = 'style__1xiua9n3';
3935
+ var Sidebar_styles_css_group = 'style__1xiua9ni';
3936
+ var groupAction = 'style__1xiua9nk';
3937
+ var groupContent = 'style__1xiua9nl';
3938
+ var groupLabel = 'style__1xiua9nj';
3939
+ var Sidebar_styles_css_header = 'style__1xiua9ne';
3940
+ var inner = 'style__1xiua9n6';
3941
+ var Sidebar_styles_css_input = 'style__1xiua9nd';
3942
+ var styles_css_inset = 'style__1xiua9nc';
3943
+ var menu = 'style__1xiua9nm';
3944
+ var menuAction = 'style__1xiua9nu';
3945
+ var menuBadge = 'style__1xiua9nv';
3946
+ var menuButton = 'style__1xiua9no';
3947
+ var menuButtonSizes = {
3948
+ default: 'default__1xiua9nr',
3949
+ sm: 'sm__1xiua9ns',
3950
+ lg: 'lg__1xiua9nt'
3951
+ };
3952
+ var menuButtonVariants = {
3953
+ default: 'default__1xiua9np',
3954
+ outline: 'outline__1xiua9nq'
3955
+ };
3956
+ var menuItem = 'style__1xiua9nn';
3957
+ var menuSkeleton = 'style__1xiua9nw';
3958
+ var menuSub = 'style__1xiua9n10';
3959
+ var menuSubButton = 'style__1xiua9n12';
3960
+ var menuSubButtonSizes = {
3961
+ sm: 'sm__1xiua9n13',
3962
+ md: 'md__1xiua9n14'
3963
+ };
3964
+ var menuSubItem = 'style__1xiua9n11';
3965
+ var mobileContent = 'style__1xiua9n7';
3966
+ var mobileInner = 'style__1xiua9n8';
3967
+ var rail = 'style__1xiua9nb';
3968
+ var Sidebar_styles_css_separator = 'style__1xiua9ng';
3969
+ var skeleton = 'style__1xiua9nx';
3970
+ var skeletonIcon = 'style__1xiua9ny';
3971
+ var skeletonText = 'style__1xiua9nz';
3972
+ var staticSidebar = 'style__1xiua9n5';
3973
+ var Sidebar_styles_css_trigger = 'style__1xiua9na';
3974
+ var styles_css_visuallyHidden = 'style__1xiua9n9';
3975
+ var Sidebar_styles_css_wrapper = 'style__1xiua9n1';
3976
+ const SidebarContext = /*#__PURE__*/ __rspack_external_react.createContext(null);
3977
+ function useSidebar() {
3978
+ const context = __rspack_external_react.useContext(SidebarContext);
3979
+ if (!context) throw new Error('useSidebar must be used within a Sidebar.Provider.');
3980
+ return context;
3981
+ }
3982
+ function Sidebar_Provider({ defaultOpen = true, open: openProp, onOpenChange, className, style, children, ...props }) {
3983
+ const isMobile = useIsMobile();
3984
+ const [openMobile, setOpenMobile] = __rspack_external_react.useState(false);
3985
+ const [_open, _setOpen] = __rspack_external_react.useState(defaultOpen);
3986
+ const open = openProp ?? _open;
3987
+ const setOpen = __rspack_external_react.useCallback((value)=>{
3988
+ const openState = 'function' == typeof value ? value(open) : value;
3989
+ if (onOpenChange) onOpenChange(openState);
3990
+ else _setOpen(openState);
3991
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=604800`;
3992
+ }, [
3993
+ onOpenChange,
3994
+ open
3995
+ ]);
3996
+ const toggleSidebar = __rspack_external_react.useCallback(()=>{
3997
+ if (isMobile) return void setOpenMobile((currentOpen)=>!currentOpen);
3998
+ setOpen((currentOpen)=>!currentOpen);
3999
+ }, [
4000
+ isMobile,
4001
+ setOpen
4002
+ ]);
4003
+ __rspack_external_react.useEffect(()=>{
4004
+ const handleKeyDown = (event)=>{
4005
+ if ("b" === event.key && (event.metaKey || event.ctrlKey)) {
4006
+ event.preventDefault();
4007
+ toggleSidebar();
4008
+ }
4009
+ };
4010
+ window.addEventListener('keydown', handleKeyDown);
4011
+ return ()=>window.removeEventListener('keydown', handleKeyDown);
4012
+ }, [
4013
+ toggleSidebar
4014
+ ]);
4015
+ const state = open ? 'expanded' : 'collapsed';
4016
+ const contextValue = __rspack_external_react.useMemo(()=>({
4017
+ state,
4018
+ open,
4019
+ setOpen,
4020
+ isMobile,
4021
+ openMobile,
4022
+ setOpenMobile,
4023
+ toggleSidebar
4024
+ }), [
4025
+ state,
4026
+ open,
4027
+ setOpen,
4028
+ isMobile,
4029
+ openMobile,
4030
+ toggleSidebar
4031
+ ]);
4032
+ return /*#__PURE__*/ jsx(SidebarContext.Provider, {
4033
+ value: contextValue,
4034
+ children: /*#__PURE__*/ jsx("div", {
4035
+ "data-slot": "sidebar-wrapper",
4036
+ style: {
4037
+ '--sidebar-width': "16rem",
4038
+ '--sidebar-width-icon': "3rem",
4039
+ ...style
4040
+ },
4041
+ className: clsx(Sidebar_styles_css_wrapper, className),
4042
+ ...props,
4043
+ children: children
4044
+ })
4045
+ });
4046
+ }
4047
+ function SidebarRoot({ side = 'left', variant = 'sidebar', collapsible = 'offcanvas', className, style, children, ...props }) {
4048
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
4049
+ if ('none' === collapsible) return /*#__PURE__*/ jsx("div", {
4050
+ "data-slot": "sidebar",
4051
+ style: style,
4052
+ className: clsx(staticSidebar, className),
4053
+ ...props,
4054
+ children: children
4055
+ });
4056
+ if (isMobile) return /*#__PURE__*/ jsx(Sheet, {
4057
+ open: openMobile,
4058
+ onOpenChange: setOpenMobile,
4059
+ children: /*#__PURE__*/ jsxs(Sheet.Content, {
4060
+ "data-sidebar": "sidebar",
4061
+ "data-slot": "sidebar",
4062
+ "data-mobile": "true",
4063
+ side: side,
4064
+ showCloseButton: false,
4065
+ style: {
4066
+ '--sidebar-width': "18rem",
4067
+ ...style
4068
+ },
4069
+ className: clsx(mobileContent, className),
4070
+ ...props,
4071
+ children: [
4072
+ /*#__PURE__*/ jsxs(Sheet.Header, {
4073
+ className: styles_css_visuallyHidden,
4074
+ children: [
4075
+ /*#__PURE__*/ jsx(Sheet.Title, {
4076
+ children: "Sidebar"
4077
+ }),
4078
+ /*#__PURE__*/ jsx(Sheet.Description, {
4079
+ children: "Displays the mobile sidebar."
4080
+ })
4081
+ ]
4082
+ }),
4083
+ /*#__PURE__*/ jsx("div", {
4084
+ className: mobileInner,
4085
+ children: children
4086
+ })
4087
+ ]
4088
+ })
4089
+ });
4090
+ return /*#__PURE__*/ jsxs("div", {
4091
+ "data-state": state,
4092
+ "data-collapsible": 'collapsed' === state ? collapsible : void 0,
4093
+ "data-variant": variant,
4094
+ "data-side": side,
4095
+ "data-slot": "sidebar",
4096
+ className: desktopSidebar,
4097
+ children: [
4098
+ /*#__PURE__*/ jsx("div", {
4099
+ "data-slot": "sidebar-gap",
4100
+ className: gap
4101
+ }),
4102
+ /*#__PURE__*/ jsx("div", {
4103
+ "data-slot": "sidebar-container",
4104
+ className: clsx(Sidebar_styles_css_container, className),
4105
+ style: style,
4106
+ ...props,
4107
+ children: /*#__PURE__*/ jsx("div", {
4108
+ "data-sidebar": "sidebar",
4109
+ "data-slot": "sidebar-inner",
4110
+ className: inner,
4111
+ children: children
4112
+ })
4113
+ })
4114
+ ]
4115
+ });
4116
+ }
4117
+ function Sidebar_Trigger({ className, onClick, children, ...props }) {
4118
+ const { toggleSidebar } = useSidebar();
4119
+ return /*#__PURE__*/ jsx(Button_Button, {
4120
+ "data-sidebar": "trigger",
4121
+ "data-slot": "sidebar-trigger",
4122
+ variant: "ghost",
4123
+ size: "icon",
4124
+ className: clsx(Sidebar_styles_css_trigger, className),
4125
+ onClick: (event)=>{
4126
+ onClick?.(event);
4127
+ toggleSidebar();
4128
+ },
4129
+ ...props,
4130
+ children: children ?? /*#__PURE__*/ jsxs(Fragment, {
4131
+ children: [
4132
+ /*#__PURE__*/ jsx(PanelLeftIcon, {}),
4133
+ /*#__PURE__*/ jsx("span", {
4134
+ className: styles_css_visuallyHidden,
4135
+ children: "Toggle Sidebar"
4136
+ })
4137
+ ]
4138
+ })
4139
+ });
4140
+ }
4141
+ function Rail({ className, ...props }) {
4142
+ const { toggleSidebar } = useSidebar();
4143
+ return /*#__PURE__*/ jsx("button", {
4144
+ type: "button",
4145
+ "data-sidebar": "rail",
4146
+ "data-slot": "sidebar-rail",
4147
+ "aria-label": "Toggle Sidebar",
4148
+ tabIndex: -1,
4149
+ title: "Toggle Sidebar",
4150
+ className: clsx(rail, className),
4151
+ onClick: toggleSidebar,
4152
+ ...props
4153
+ });
4154
+ }
4155
+ function Inset({ className, ...props }) {
4156
+ return /*#__PURE__*/ jsx("main", {
4157
+ "data-slot": "sidebar-inset",
4158
+ className: clsx(styles_css_inset, className),
4159
+ ...props
4160
+ });
4161
+ }
4162
+ function SidebarInput({ className, ...props }) {
4163
+ return /*#__PURE__*/ jsx(Input, {
4164
+ "data-slot": "sidebar-input",
4165
+ "data-sidebar": "input",
4166
+ className: clsx(Sidebar_styles_css_input, className),
4167
+ ...props
4168
+ });
4169
+ }
4170
+ function Sidebar_Header({ className, ...props }) {
4171
+ return /*#__PURE__*/ jsx("div", {
4172
+ "data-slot": "sidebar-header",
4173
+ "data-sidebar": "header",
4174
+ className: clsx(Sidebar_styles_css_header, className),
4175
+ ...props
4176
+ });
4177
+ }
4178
+ function Sidebar_Footer({ className, ...props }) {
4179
+ return /*#__PURE__*/ jsx("div", {
4180
+ "data-slot": "sidebar-footer",
4181
+ "data-sidebar": "footer",
4182
+ className: clsx(Sidebar_styles_css_footer, className),
4183
+ ...props
4184
+ });
4185
+ }
4186
+ function Sidebar_Separator({ className, orientation = 'horizontal', ...props }) {
4187
+ return /*#__PURE__*/ jsx(separator_Separator, {
4188
+ "data-slot": "sidebar-separator",
4189
+ "data-sidebar": "separator",
4190
+ orientation: orientation,
4191
+ className: clsx(Sidebar_styles_css_separator, className),
4192
+ ...props
4193
+ });
4194
+ }
4195
+ function Sidebar_Content({ className, ...props }) {
4196
+ return /*#__PURE__*/ jsx("div", {
4197
+ "data-slot": "sidebar-content",
4198
+ "data-sidebar": "content",
4199
+ className: clsx(Sidebar_styles_css_content, className),
4200
+ ...props
4201
+ });
4202
+ }
4203
+ function Sidebar_Group({ className, ...props }) {
4204
+ return /*#__PURE__*/ jsx("div", {
4205
+ "data-slot": "sidebar-group",
4206
+ "data-sidebar": "group",
4207
+ className: clsx(Sidebar_styles_css_group, className),
4208
+ ...props
4209
+ });
4210
+ }
4211
+ function GroupLabel({ className, render, ...props }) {
4212
+ return useRender({
4213
+ defaultTagName: 'div',
4214
+ render,
4215
+ props: mergeProps({
4216
+ 'data-slot': 'sidebar-group-label',
4217
+ 'data-sidebar': 'group-label',
4218
+ className: clsx(groupLabel, className)
4219
+ }, props)
4220
+ });
4221
+ }
4222
+ function GroupAction({ className, render, ...props }) {
4223
+ return useRender({
4224
+ defaultTagName: 'button',
4225
+ render,
4226
+ props: mergeProps({
4227
+ type: 'button',
4228
+ 'data-slot': 'sidebar-group-action',
4229
+ 'data-sidebar': 'group-action',
4230
+ className: clsx(groupAction, className)
4231
+ }, props)
4232
+ });
4233
+ }
4234
+ function GroupContent({ className, ...props }) {
4235
+ return /*#__PURE__*/ jsx("div", {
4236
+ "data-slot": "sidebar-group-content",
4237
+ "data-sidebar": "group-content",
4238
+ className: clsx(groupContent, className),
4239
+ ...props
4240
+ });
4241
+ }
4242
+ function Sidebar_Menu({ className, ...props }) {
4243
+ return /*#__PURE__*/ jsx("ul", {
4244
+ "data-slot": "sidebar-menu",
4245
+ "data-sidebar": "menu",
4246
+ className: clsx(menu, className),
4247
+ ...props
4248
+ });
4249
+ }
4250
+ function MenuItem({ className, ...props }) {
4251
+ return /*#__PURE__*/ jsx("li", {
4252
+ "data-slot": "sidebar-menu-item",
4253
+ "data-sidebar": "menu-item",
4254
+ className: clsx(menuItem, className),
4255
+ ...props
4256
+ });
4257
+ }
4258
+ function getTooltipProps(tooltip) {
4259
+ if ('string' == typeof tooltip) return {
4260
+ text: tooltip
4261
+ };
4262
+ const { children, ...props } = tooltip;
4263
+ return {
4264
+ content: children,
4265
+ ...props
4266
+ };
4267
+ }
4268
+ function MenuButton({ isActive = false, variant = 'default', size = 'default', tooltip, className, render, ...props }) {
4269
+ const { isMobile, state } = useSidebar();
4270
+ const button = useRender({
4271
+ defaultTagName: 'button',
4272
+ render,
4273
+ props: mergeProps({
4274
+ type: 'button',
4275
+ 'data-slot': 'sidebar-menu-button',
4276
+ 'data-sidebar': 'menu-button',
4277
+ 'data-size': size,
4278
+ 'data-active': isActive ? 'true' : 'false',
4279
+ className: clsx(menuButton, menuButtonVariants[variant], menuButtonSizes[size], className)
4280
+ }, props)
4281
+ });
4282
+ if (!tooltip || 'collapsed' !== state || isMobile) return button;
4283
+ return /*#__PURE__*/ jsx(Tooltip, {
4284
+ side: "right",
4285
+ ...getTooltipProps(tooltip),
4286
+ children: button
4287
+ });
4288
+ }
4289
+ function MenuAction({ className, showOnHover = false, render, ...props }) {
4290
+ return useRender({
4291
+ defaultTagName: 'button',
4292
+ render,
4293
+ props: mergeProps({
4294
+ type: 'button',
4295
+ 'data-slot': 'sidebar-menu-action',
4296
+ 'data-sidebar': 'menu-action',
4297
+ 'data-show-on-hover': showOnHover ? 'true' : void 0,
4298
+ className: clsx(menuAction, className)
4299
+ }, props)
4300
+ });
4301
+ }
4302
+ function MenuBadge({ className, ...props }) {
4303
+ return /*#__PURE__*/ jsx("div", {
4304
+ "data-slot": "sidebar-menu-badge",
4305
+ "data-sidebar": "menu-badge",
4306
+ className: clsx(menuBadge, className),
4307
+ ...props
4308
+ });
4309
+ }
4310
+ function MenuSkeleton({ className, showIcon = false, ...props }) {
4311
+ const width = __rspack_external_react.useMemo(()=>`${Math.floor(40 * Math.random()) + 50}%`, []);
4312
+ return /*#__PURE__*/ jsxs("div", {
4313
+ "data-slot": "sidebar-menu-skeleton",
4314
+ "data-sidebar": "menu-skeleton",
4315
+ className: clsx(menuSkeleton, className),
4316
+ ...props,
4317
+ children: [
4318
+ showIcon && /*#__PURE__*/ jsx("div", {
4319
+ className: clsx(skeleton, skeletonIcon),
4320
+ "data-sidebar": "menu-skeleton-icon"
4321
+ }),
4322
+ /*#__PURE__*/ jsx("div", {
4323
+ className: clsx(skeleton, skeletonText),
4324
+ "data-sidebar": "menu-skeleton-text",
4325
+ style: {
4326
+ '--skeleton-width': width
4327
+ }
4328
+ })
4329
+ ]
4330
+ });
4331
+ }
4332
+ function MenuSub({ className, ...props }) {
4333
+ return /*#__PURE__*/ jsx("ul", {
4334
+ "data-slot": "sidebar-menu-sub",
4335
+ "data-sidebar": "menu-sub",
4336
+ className: clsx(menuSub, className),
4337
+ ...props
4338
+ });
4339
+ }
4340
+ function MenuSubItem({ className, ...props }) {
4341
+ return /*#__PURE__*/ jsx("li", {
4342
+ "data-slot": "sidebar-menu-sub-item",
4343
+ "data-sidebar": "menu-sub-item",
4344
+ className: clsx(menuSubItem, className),
4345
+ ...props
4346
+ });
4347
+ }
4348
+ function MenuSubButton({ size = 'md', isActive = false, className, render, ...props }) {
4349
+ return useRender({
4350
+ defaultTagName: 'a',
4351
+ render,
4352
+ props: mergeProps({
4353
+ 'data-slot': 'sidebar-menu-sub-button',
4354
+ 'data-sidebar': 'menu-sub-button',
4355
+ 'data-size': size,
4356
+ 'data-active': isActive ? 'true' : 'false',
4357
+ className: clsx(menuSubButton, menuSubButtonSizes[size], className)
4358
+ }, props)
4359
+ });
4360
+ }
4361
+ const Sidebar_Sidebar = Object.assign(SidebarRoot, {
4362
+ Provider: Sidebar_Provider,
4363
+ Trigger: Sidebar_Trigger,
4364
+ Rail: Rail,
4365
+ Inset: Inset,
4366
+ Input: SidebarInput,
4367
+ Header: Sidebar_Header,
4368
+ Footer: Sidebar_Footer,
4369
+ Separator: Sidebar_Separator,
4370
+ Content: Sidebar_Content,
4371
+ Group: Sidebar_Group,
4372
+ GroupLabel: GroupLabel,
4373
+ GroupAction: GroupAction,
4374
+ GroupContent: GroupContent,
4375
+ Menu: Sidebar_Menu,
4376
+ MenuItem: MenuItem,
4377
+ MenuButton: MenuButton,
4378
+ MenuAction: MenuAction,
4379
+ MenuBadge: MenuBadge,
4380
+ MenuSkeleton: MenuSkeleton,
4381
+ MenuSub: MenuSub,
4382
+ MenuSubItem: MenuSubItem,
4383
+ MenuSubButton: MenuSubButton
4384
+ });
4385
+ var Tabs_styles_css_contentClass = 'style__hworoa5';
4386
+ var listClass = 'style__hworoa0';
4387
+ var Tabs_styles_css_sizes = {
4388
+ sm: 'sm__hworoa2',
4389
+ md: 'md__hworoa3',
4390
+ lg: 'lg__hworoa4'
4391
+ };
4392
+ var styles_css_triggerClass = 'style__hworoa1';
4393
+ const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(react_tabs_Content, {
4394
+ className: clsx(Tabs_styles_css_contentClass, className),
4395
+ ...props
4396
+ });
4397
+ const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(react_tabs_List, {
4398
+ className: clsx(listClass, className),
4399
+ ...props
4400
+ });
4401
+ const TabsTrigger = ({ className, size = 'md', ...props })=>/*#__PURE__*/ jsx(react_tabs_Trigger, {
4402
+ className: clsx(styles_css_triggerClass, Tabs_styles_css_sizes[size], className),
4403
+ ...props
4404
+ });
4405
+ const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs, {
4406
+ ...props
4407
+ });
4408
+ Tabs_Tabs.Content = TabsContent;
4409
+ Tabs_Tabs.List = TabsList;
4410
+ Tabs_Tabs.Trigger = TabsTrigger;
4411
+ var toggleGroup_css_buttonClass = 'style__10hvn8a2';
4412
+ var toggleGroup_css_buttonsClass = 'style__10hvn8a1';
4413
+ var toggleGroup_css_containerClass = 'style__10hvn8a0';
4414
+ var toggleGroup_css_labelClass = 'style__10hvn8a3';
4415
+ const ToggleGroup = ({ value, onChange, options, size, className, label, multiple })=>{
4416
+ const isMultiple = true === multiple;
4417
+ const isActive = (optionValue)=>{
4418
+ if (isMultiple) return value.includes(optionValue);
4419
+ return value === optionValue;
4420
+ };
4421
+ const handleChange = (optionValue)=>{
4422
+ if (isMultiple) {
4423
+ const currentValue = value;
4424
+ currentValue.includes(optionValue) ? onChange(currentValue.filter((v)=>v !== optionValue)) : onChange([
4425
+ ...currentValue,
4426
+ optionValue
4427
+ ]);
4428
+ } else onChange(optionValue);
4429
+ };
4430
+ return /*#__PURE__*/ jsxs("div", {
4431
+ className: clsx(toggleGroup_css_containerClass, className),
4432
+ children: [
4433
+ label && /*#__PURE__*/ jsx(Label_Label, {
4434
+ className: toggleGroup_css_labelClass,
4435
+ children: label
4436
+ }),
4437
+ /*#__PURE__*/ jsx("div", {
4438
+ className: toggleGroup_css_buttonsClass,
4439
+ children: options.map((option)=>/*#__PURE__*/ jsx(Tooltip, {
4440
+ arrow: true,
4441
+ text: option.title,
4442
+ children: /*#__PURE__*/ jsx(Button_Button, {
4443
+ size: size,
4444
+ className: toggleGroup_css_buttonClass,
4445
+ disabled: option.disabled,
4446
+ onClick: ()=>handleChange(option.value),
4447
+ startAdornment: option.startAdornment,
4448
+ endAdornment: option.endAdornment,
4449
+ variant: isActive(option.value) ? 'default' : 'outline',
4450
+ children: option.label
4451
+ }, option.value)
4452
+ }, option.value))
4453
+ })
4454
+ ]
4455
+ });
4456
+ };
4457
+ export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty, ImageCarousel, Image_Image as Image, Input, InputOTP, Label_Label as Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, ToggleGroup, Tooltip, Typography, alignments, badgeVariants, colors, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, notification, transforms, useDashboard, useSidebar, variants, weights };