prometeo-design-system 3.1.5 → 3.1.7

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 (465) hide show
  1. package/dist/Avatar.d.ts +4 -0
  2. package/dist/Avatar.es.js +94 -0
  3. package/dist/Button.d.ts +6 -0
  4. package/dist/Button.es.js +400 -0
  5. package/dist/CardProfile-y9Knsg26.js +280 -0
  6. package/dist/CardProfile.d.ts +6 -0
  7. package/dist/CardProfile.es.js +5 -0
  8. package/dist/CheckBox.d.ts +6 -0
  9. package/dist/CheckBox.es.js +112 -0
  10. package/dist/DatePicker-6eb-0Ns5.js +3733 -0
  11. package/dist/DatePicker.d.ts +6 -0
  12. package/dist/DatePicker.es.js +5 -0
  13. package/dist/DialogModal.d.ts +6 -0
  14. package/dist/DialogModal.es.js +75 -0
  15. package/dist/DrawerDesktop.d.ts +6 -0
  16. package/dist/DrawerDesktop.es.js +217 -0
  17. package/dist/DrawerMobile.d.ts +6 -0
  18. package/dist/DrawerMobile.es.js +243 -0
  19. package/dist/DropZone.d.ts +6 -0
  20. package/dist/DropZone.es.js +88 -0
  21. package/dist/FAButton.d.ts +4 -0
  22. package/dist/FAButton.es.js +111 -0
  23. package/dist/Header.d.ts +6 -0
  24. package/dist/Header.es.js +32 -0
  25. package/dist/HelperComponent-ljsn0xD6.js +26 -0
  26. package/dist/Icons/AccountCircle.d.ts +6 -0
  27. package/dist/Icons/AccountCircle.es.js +21 -0
  28. package/dist/Icons/Add.d.ts +6 -0
  29. package/dist/Icons/Add.es.js +19 -0
  30. package/dist/Icons/ArrowLeft.d.ts +6 -0
  31. package/dist/Icons/ArrowLeft.es.js +19 -0
  32. package/dist/Icons/ArrowUpDown.d.ts +6 -0
  33. package/dist/Icons/ArrowUpDown.es.js +21 -0
  34. package/dist/Icons/AttachFile.d.ts +6 -0
  35. package/dist/Icons/AttachFile.es.js +19 -0
  36. package/dist/Icons/Boards.d.ts +6 -0
  37. package/dist/Icons/Boards.es.js +19 -0
  38. package/dist/Icons/Calendar.d.ts +6 -0
  39. package/dist/Icons/Calendar.es.js +19 -0
  40. package/dist/Icons/Cancel.d.ts +6 -0
  41. package/dist/Icons/Cancel.es.js +19 -0
  42. package/dist/Icons/Check.d.ts +6 -0
  43. package/dist/Icons/Check.es.js +19 -0
  44. package/dist/Icons/CheckCircle.d.ts +6 -0
  45. package/dist/Icons/CheckCircle.es.js +21 -0
  46. package/dist/Icons/CheckList.d.ts +6 -0
  47. package/dist/Icons/CheckList.es.js +25 -0
  48. package/dist/Icons/ChevronDown.d.ts +6 -0
  49. package/dist/Icons/ChevronDown.es.js +21 -0
  50. package/dist/Icons/Clock.d.ts +6 -0
  51. package/dist/Icons/Clock.es.js +19 -0
  52. package/dist/Icons/Close.d.ts +6 -0
  53. package/dist/Icons/Close.es.js +19 -0
  54. package/dist/Icons/CloseNavBarDesktop.d.ts +6 -0
  55. package/dist/Icons/CloseNavBarDesktop.es.js +36 -0
  56. package/dist/Icons/Collapse.d.ts +6 -0
  57. package/dist/Icons/Collapse.es.js +19 -0
  58. package/dist/Icons/Company.d.ts +6 -0
  59. package/dist/Icons/Company.es.js +25 -0
  60. package/dist/Icons/Copy.d.ts +6 -0
  61. package/dist/Icons/Copy.es.js +19 -0
  62. package/dist/Icons/CrevronLeft.d.ts +6 -0
  63. package/dist/Icons/CrevronLeft.es.js +21 -0
  64. package/dist/Icons/CrevronRight.d.ts +6 -0
  65. package/dist/Icons/CrevronRight.es.js +21 -0
  66. package/dist/Icons/DocumentFill.d.ts +6 -0
  67. package/dist/Icons/DocumentFill.es.js +27 -0
  68. package/dist/Icons/Download.d.ts +6 -0
  69. package/dist/Icons/Download.es.js +25 -0
  70. package/dist/Icons/Edit.d.ts +6 -0
  71. package/dist/Icons/Edit.es.js +19 -0
  72. package/dist/Icons/EditFill.d.ts +6 -0
  73. package/dist/Icons/EditFill.es.js +25 -0
  74. package/dist/Icons/Email.d.ts +6 -0
  75. package/dist/Icons/Email.es.js +25 -0
  76. package/dist/Icons/Error.d.ts +6 -0
  77. package/dist/Icons/Error.es.js +19 -0
  78. package/dist/Icons/EyeVisibility.d.ts +6 -0
  79. package/dist/Icons/EyeVisibility.es.js +21 -0
  80. package/dist/Icons/EyeVisibilityOff.d.ts +6 -0
  81. package/dist/Icons/EyeVisibilityOff.es.js +21 -0
  82. package/dist/Icons/FaLock.d.ts +6 -0
  83. package/dist/Icons/FaLock.es.js +19 -0
  84. package/dist/Icons/FastForward.d.ts +6 -0
  85. package/dist/Icons/FastForward.es.js +27 -0
  86. package/dist/Icons/File.d.ts +6 -0
  87. package/dist/Icons/File.es.js +25 -0
  88. package/dist/Icons/Filter.d.ts +6 -0
  89. package/dist/Icons/Filter.es.js +19 -0
  90. package/dist/Icons/FormatColorText.d.ts +6 -0
  91. package/dist/Icons/FormatColorText.es.js +26 -0
  92. package/dist/Icons/Help.d.ts +6 -0
  93. package/dist/Icons/Help.es.js +19 -0
  94. package/dist/Icons/HistoryActivity.d.ts +6 -0
  95. package/dist/Icons/HistoryActivity.es.js +21 -0
  96. package/dist/Icons/Home.d.ts +6 -0
  97. package/dist/Icons/Home.es.js +19 -0
  98. package/dist/Icons/Image.d.ts +6 -0
  99. package/dist/Icons/Image.es.js +25 -0
  100. package/dist/Icons/Info.d.ts +6 -0
  101. package/dist/Icons/Info.es.js +19 -0
  102. package/dist/Icons/Logout.d.ts +6 -0
  103. package/dist/Icons/Logout.es.js +19 -0
  104. package/dist/Icons/MessageSquare.d.ts +6 -0
  105. package/dist/Icons/MessageSquare.es.js +21 -0
  106. package/dist/Icons/MessageSquareFill.d.ts +6 -0
  107. package/dist/Icons/MessageSquareFill.es.js +27 -0
  108. package/dist/Icons/MoreVert.d.ts +6 -0
  109. package/dist/Icons/MoreVert.es.js +19 -0
  110. package/dist/Icons/Notifications.d.ts +6 -0
  111. package/dist/Icons/Notifications.es.js +21 -0
  112. package/dist/Icons/Pause.d.ts +6 -0
  113. package/dist/Icons/Pause.es.js +19 -0
  114. package/dist/Icons/Reassignment.d.ts +6 -0
  115. package/dist/Icons/Reassignment.es.js +22 -0
  116. package/dist/Icons/ReassignmentFill.d.ts +6 -0
  117. package/dist/Icons/ReassignmentFill.es.js +52 -0
  118. package/dist/Icons/Reload.d.ts +6 -0
  119. package/dist/Icons/Reload.es.js +25 -0
  120. package/dist/Icons/Search.d.ts +6 -0
  121. package/dist/Icons/Search.es.js +19 -0
  122. package/dist/Icons/Send.d.ts +6 -0
  123. package/dist/Icons/Send.es.js +24 -0
  124. package/dist/Icons/Settings.d.ts +6 -0
  125. package/dist/Icons/Settings.es.js +19 -0
  126. package/dist/Icons/Shared.d.ts +6 -0
  127. package/dist/Icons/Shared.es.js +19 -0
  128. package/dist/Icons/Sort.d.ts +6 -0
  129. package/dist/Icons/Sort.es.js +19 -0
  130. package/dist/Icons/Stars.d.ts +6 -0
  131. package/dist/Icons/Stars.es.js +19 -0
  132. package/dist/Icons/Ticket.d.ts +6 -0
  133. package/dist/Icons/Ticket.es.js +19 -0
  134. package/dist/Icons/TicketFilled.d.ts +6 -0
  135. package/dist/Icons/TicketFilled.es.js +21 -0
  136. package/dist/Icons/Trash.d.ts +6 -0
  137. package/dist/Icons/Trash.es.js +19 -0
  138. package/dist/Icons/TrashFill.d.ts +6 -0
  139. package/dist/Icons/TrashFill.es.js +25 -0
  140. package/dist/Icons/Upload.d.ts +6 -0
  141. package/dist/Icons/Upload.es.js +19 -0
  142. package/dist/Icons/UploadCloud.d.ts +6 -0
  143. package/dist/Icons/UploadCloud.es.js +21 -0
  144. package/dist/Icons/UserAdd.d.ts +6 -0
  145. package/dist/Icons/UserAdd.es.js +19 -0
  146. package/dist/Icons/UserAddFill.d.ts +6 -0
  147. package/dist/Icons/UserAddFill.es.js +27 -0
  148. package/dist/Icons/UserPerson.d.ts +6 -0
  149. package/dist/Icons/UserPerson.es.js +19 -0
  150. package/dist/Icons/WhatsApp.d.ts +6 -0
  151. package/dist/Icons/WhatsApp.es.js +76 -0
  152. package/dist/Icons/components/AccountCircle.d.ts +4 -0
  153. package/dist/Icons/components/Add.d.ts +4 -0
  154. package/dist/Icons/components/ArrowLeft.d.ts +4 -0
  155. package/dist/Icons/components/ArrowUpDown.d.ts +4 -0
  156. package/dist/Icons/components/AttachFile.d.ts +4 -0
  157. package/dist/Icons/components/Boards.d.ts +4 -0
  158. package/dist/Icons/components/Calendar.d.ts +4 -0
  159. package/dist/Icons/components/Cancel.d.ts +4 -0
  160. package/dist/Icons/components/Check.d.ts +4 -0
  161. package/dist/Icons/components/CheckCircle.d.ts +4 -0
  162. package/dist/Icons/components/CheckList.d.ts +4 -0
  163. package/dist/Icons/components/ChevronDown.d.ts +4 -0
  164. package/dist/Icons/components/Clock.d.ts +4 -0
  165. package/dist/Icons/components/Close.d.ts +4 -0
  166. package/dist/Icons/components/CloseNavBarDesktop.d.ts +4 -0
  167. package/dist/Icons/components/Collapse.d.ts +4 -0
  168. package/dist/Icons/components/Company.d.ts +4 -0
  169. package/dist/Icons/components/Copy.d.ts +4 -0
  170. package/dist/Icons/components/CrevronLeft.d.ts +4 -0
  171. package/dist/Icons/components/CrevronRight.d.ts +4 -0
  172. package/dist/Icons/components/DocumentFill.d.ts +4 -0
  173. package/dist/Icons/components/Download.d.ts +4 -0
  174. package/dist/Icons/components/Edit.d.ts +4 -0
  175. package/dist/Icons/components/EditFill.d.ts +4 -0
  176. package/dist/Icons/components/Email.d.ts +4 -0
  177. package/dist/Icons/components/Error.d.ts +4 -0
  178. package/dist/Icons/components/EyeVisibility.d.ts +4 -0
  179. package/dist/Icons/components/EyeVisibilityOff.d.ts +4 -0
  180. package/dist/Icons/components/FaLock.d.ts +4 -0
  181. package/dist/Icons/components/FastForward.d.ts +4 -0
  182. package/dist/Icons/components/File.d.ts +4 -0
  183. package/dist/Icons/components/Filter.d.ts +4 -0
  184. package/dist/Icons/components/FormatColorText.d.ts +4 -0
  185. package/dist/Icons/components/Help.d.ts +4 -0
  186. package/dist/Icons/components/HistoryActivity.d.ts +4 -0
  187. package/dist/Icons/components/Home.d.ts +4 -0
  188. package/dist/Icons/components/Image.d.ts +4 -0
  189. package/dist/Icons/components/Info.d.ts +4 -0
  190. package/dist/Icons/components/Logout.d.ts +4 -0
  191. package/dist/Icons/components/MessageSquare.d.ts +4 -0
  192. package/dist/Icons/components/MessageSquareFill.d.ts +4 -0
  193. package/dist/Icons/components/MoreVert.d.ts +4 -0
  194. package/dist/Icons/components/Notifications.d.ts +4 -0
  195. package/dist/Icons/components/Pause.d.ts +4 -0
  196. package/dist/Icons/components/Reassignment.d.ts +4 -0
  197. package/dist/Icons/components/ReassignmentFill.d.ts +4 -0
  198. package/dist/Icons/components/Reload.d.ts +4 -0
  199. package/dist/Icons/components/Search.d.ts +4 -0
  200. package/dist/Icons/components/Send.d.ts +4 -0
  201. package/dist/Icons/components/Settings.d.ts +4 -0
  202. package/dist/Icons/components/Shared.d.ts +4 -0
  203. package/dist/Icons/components/Sort.d.ts +4 -0
  204. package/dist/Icons/components/Stars.d.ts +4 -0
  205. package/dist/Icons/components/Ticket.d.ts +4 -0
  206. package/dist/Icons/components/TicketFilled.d.ts +4 -0
  207. package/dist/Icons/components/Trash.d.ts +4 -0
  208. package/dist/Icons/components/TrashFill.d.ts +4 -0
  209. package/dist/Icons/components/Upload.d.ts +4 -0
  210. package/dist/Icons/components/UploadCloud.d.ts +4 -0
  211. package/dist/Icons/components/UserAdd.d.ts +4 -0
  212. package/dist/Icons/components/UserAddFill.d.ts +4 -0
  213. package/dist/Icons/components/UserPerson.d.ts +4 -0
  214. package/dist/Icons/components/WhatsApp.d.ts +4 -0
  215. package/dist/Icons/iconUtils.d.ts +7 -0
  216. package/dist/Icons/index.d.ts +65 -0
  217. package/dist/Icons/types.d.ts +130 -0
  218. package/dist/Icons.d.ts +2 -0
  219. package/dist/Icons.es.js +128 -0
  220. package/dist/Image.d.ts +4 -0
  221. package/dist/Image.es.js +91 -0
  222. package/dist/ImageGallery-DG9ovlQ-.js +319 -0
  223. package/dist/ImageGallery.d.ts +6 -0
  224. package/dist/ImageGallery.es.js +23 -0
  225. package/dist/Input.d.ts +6 -0
  226. package/dist/Input.es.js +220 -0
  227. package/dist/InputMultiple.d.ts +6 -0
  228. package/dist/InputMultiple.es.js +265 -0
  229. package/dist/LayoutGeneric-CfWhV1ov.js +26 -0
  230. package/dist/LayoutGeneric.d.ts +6 -0
  231. package/dist/LayoutGeneric.es.js +4 -0
  232. package/dist/Logo.d.ts +4 -0
  233. package/dist/Logo.es.js +9 -0
  234. package/dist/Menu.d.ts +6 -0
  235. package/dist/Menu.es.js +77 -0
  236. package/dist/NotificationCard.d.ts +6 -0
  237. package/dist/NotificationCard.es.js +50 -0
  238. package/dist/OtpInput.d.ts +6 -0
  239. package/dist/OtpInput.es.js +302 -0
  240. package/dist/Pagination.d.ts +6 -0
  241. package/dist/Pagination.es.js +97 -0
  242. package/dist/ProfilePictureUpload.d.ts +6 -0
  243. package/dist/ProfilePictureUpload.es.js +189 -0
  244. package/dist/ProgressBar.d.ts +6 -0
  245. package/dist/ProgressBar.es.js +70 -0
  246. package/dist/PyrionNavigationDrawer.d.ts +6 -0
  247. package/dist/PyrionNavigationDrawer.es.js +962 -0
  248. package/dist/RadioButton.d.ts +6 -0
  249. package/dist/RadioButton.es.js +78 -0
  250. package/dist/RecurrentDatePicker.d.ts +2 -0
  251. package/dist/RecurrentDatePicker.es.js +694 -0
  252. package/dist/RecurrentDatePickerRRule.d.ts +2 -0
  253. package/dist/RecurrentDatePickerRRule.es.js +1682 -0
  254. package/dist/Scrollable.d.ts +2 -0
  255. package/dist/Scrollable.es.js +260 -0
  256. package/dist/SegmentedButton.d.ts +6 -0
  257. package/dist/SegmentedButton.es.js +185 -0
  258. package/dist/Select.d.ts +6 -0
  259. package/dist/Select.es.js +1061 -0
  260. package/dist/SelectSearch.d.ts +6 -0
  261. package/dist/SelectSearch.es.js +284 -0
  262. package/dist/Skeleton.d.ts +6 -0
  263. package/dist/Skeleton.es.js +74 -0
  264. package/dist/Spinner.d.ts +6 -0
  265. package/dist/Spinner.es.js +178 -0
  266. package/dist/Steps.d.ts +6 -0
  267. package/dist/Steps.es.js +214 -0
  268. package/dist/SwipeContainer.d.ts +4 -0
  269. package/dist/SwipeContainer.es.js +185 -0
  270. package/dist/Switch.d.ts +6 -0
  271. package/dist/Switch.es.js +97 -0
  272. package/dist/TabLinks.d.ts +4 -0
  273. package/dist/TabLinks.es.js +94 -0
  274. package/dist/Table.d.ts +2 -0
  275. package/dist/Table.es.js +121 -0
  276. package/dist/TextArea.d.ts +4 -0
  277. package/dist/TextArea.es.js +66 -0
  278. package/dist/TicketCard.d.ts +6 -0
  279. package/dist/TicketCard.es.js +130 -0
  280. package/dist/Toast.d.ts +6 -0
  281. package/dist/Toast.es.js +150 -0
  282. package/dist/ToastProvider.d.ts +6 -0
  283. package/dist/ToastProvider.es.js +6 -0
  284. package/dist/Tooltip.d.ts +6 -0
  285. package/dist/Tooltip.es.js +62 -0
  286. package/dist/assets/psmlogo.png +0 -0
  287. package/dist/badge-B1IK_-i5.js +87 -0
  288. package/dist/cn-B6yFEsav.js +8 -0
  289. package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
  290. package/dist/components/Autocomplete/useAutocomplete.d.ts +43 -0
  291. package/dist/components/Avatar/Avatar.d.ts +11 -0
  292. package/dist/components/Avatar/index.d.ts +1 -0
  293. package/dist/components/Button/Button.d.ts +23 -0
  294. package/dist/components/Button/index.d.ts +2 -0
  295. package/dist/components/Card/Card.d.ts +12 -0
  296. package/dist/components/CardProfile/CardProfile.d.ts +55 -0
  297. package/dist/components/CheckBox/CheckBox.d.ts +11 -0
  298. package/dist/components/DatePicker/DatePicker.d.ts +82 -0
  299. package/dist/components/Dialog/Dialog.d.ts +35 -0
  300. package/dist/components/Dialog/DialogV2.d.ts +35 -0
  301. package/dist/components/Dialog/useDialogControl.d.ts +8 -0
  302. package/dist/components/Drawer/DrawerDesktop.d.ts +21 -0
  303. package/dist/components/Drawer/DrawerMobile.d.ts +24 -0
  304. package/dist/components/Drawer/useDrawerDesktop.d.ts +8 -0
  305. package/dist/components/Drawer/useDrawerMobile.d.ts +8 -0
  306. package/dist/components/DropZone/DropZone.d.ts +16 -0
  307. package/dist/components/DropZone/DropzoneCompossable.d.ts +54 -0
  308. package/dist/components/DropZone/useFileDropzone.d.ts +21 -0
  309. package/dist/components/FAB/FAButton.d.ts +21 -0
  310. package/dist/components/FileCard/FileCard.d.ts +52 -0
  311. package/dist/components/Header/Header.d.ts +11 -0
  312. package/dist/components/Image/GalleryPreview.d.ts +8 -0
  313. package/dist/components/Image/Image.d.ts +23 -0
  314. package/dist/components/Image/ImageGallery.d.ts +18 -0
  315. package/dist/components/Image/LightBox.d.ts +14 -0
  316. package/dist/components/Image/index.d.ts +5 -0
  317. package/dist/components/Image/useImageGallery.d.ts +10 -0
  318. package/dist/components/Input/Input.d.ts +34 -0
  319. package/dist/components/InputMultiple/InputMultiple.d.ts +25 -0
  320. package/dist/components/Layout/LayoutGeneric.d.ts +6 -0
  321. package/dist/components/Logo/Logo.d.ts +2 -0
  322. package/dist/components/Menu/MenuComposable.d.ts +15 -0
  323. package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +10 -0
  324. package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +49 -0
  325. package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +16 -0
  326. package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +9 -0
  327. package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +18 -0
  328. package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +30 -0
  329. package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +11 -0
  330. package/dist/components/NavigationDrawer/index.d.ts +2 -0
  331. package/dist/components/NotificationCard/NotificationCard.d.ts +25 -0
  332. package/dist/components/NotificationCard/index.d.ts +3 -0
  333. package/dist/components/OtpInput/OtpInput.d.ts +30 -0
  334. package/dist/components/Pagination/Pagination.d.ts +6 -0
  335. package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +19 -0
  336. package/dist/components/ProgressBar/ProgressBar.d.ts +18 -0
  337. package/dist/components/PyrionNavigationDrawer/PyrionHelpSection.d.ts +8 -0
  338. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +130 -0
  339. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerMobileAppSwitcher.d.ts +10 -0
  340. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerSystemLogo.d.ts +7 -0
  341. package/dist/components/PyrionNavigationDrawer/PyrionNotificationsList.d.ts +8 -0
  342. package/dist/components/PyrionNavigationDrawer/SidebarContent.d.ts +13 -0
  343. package/dist/components/PyrionNavigationDrawer/SystemSessions.d.ts +12 -0
  344. package/dist/components/PyrionNavigationDrawer/index.d.ts +3 -0
  345. package/dist/components/RadioButton/RadioButton.d.ts +14 -0
  346. package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +40 -0
  347. package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +13 -0
  348. package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +35 -0
  349. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +5 -0
  350. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +39 -0
  351. package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +13 -0
  352. package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +13 -0
  353. package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +9 -0
  354. package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +21 -0
  355. package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +69 -0
  356. package/dist/components/Scrollable/Scrollable.d.ts +31 -0
  357. package/dist/components/SegmentedButton/SegmentedButton.d.ts +20 -0
  358. package/dist/components/Select/Select.d.ts +123 -0
  359. package/dist/components/SelectSearch/SelectSearch.d.ts +40 -0
  360. package/dist/components/Shared/Chip.d.ts +15 -0
  361. package/dist/components/Shared/HelperComponent.d.ts +13 -0
  362. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +32 -0
  363. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +2 -0
  364. package/dist/components/Sidebar/SecondaryBar/index.d.ts +1 -0
  365. package/dist/components/Sidebar/SidebarComposable.d.ts +43 -0
  366. package/dist/components/Sidebar/components/NavigationLink.d.ts +11 -0
  367. package/dist/components/Sidebar/components/badge.d.ts +10 -0
  368. package/dist/components/Sidebar/components/changue-account.d.ts +5 -0
  369. package/dist/components/Sidebar/components/collapse-button.d.ts +5 -0
  370. package/dist/components/Sidebar/components/company-logo.d.ts +5 -0
  371. package/dist/components/Sidebar/components/nav-actions.d.ts +7 -0
  372. package/dist/components/Sidebar/components/nav-links.d.ts +7 -0
  373. package/dist/components/Sidebar/context/SidebarContext.d.ts +13 -0
  374. package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +3 -0
  375. package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +9 -0
  376. package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +4 -0
  377. package/dist/components/Sidebar/hooks/useNavLinks.d.ts +32 -0
  378. package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +13 -0
  379. package/dist/components/Sidebar/index.d.ts +12 -0
  380. package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +2 -0
  381. package/dist/components/Skeleton/Skeleton.d.ts +13 -0
  382. package/dist/components/Spinner/Spinner.d.ts +12 -0
  383. package/dist/components/Steps/Steps.d.ts +21 -0
  384. package/dist/components/SwipeContainer/SwipeContainer.d.ts +19 -0
  385. package/dist/components/Switch/Switch.d.ts +11 -0
  386. package/dist/components/TabLinks/TabLinks.d.ts +23 -0
  387. package/dist/components/TabSwitch/TabSwitch.d.ts +16 -0
  388. package/dist/components/Table/Table.d.ts +14 -0
  389. package/dist/components/Table/TableWithPagination.d.ts +11 -0
  390. package/dist/components/TextArea/TextArea.d.ts +15 -0
  391. package/dist/components/TicketCard/TicketCard.d.ts +32 -0
  392. package/dist/components/TicketCard/index.d.ts +3 -0
  393. package/dist/components/Toaster/ToastProvider.d.ts +5 -0
  394. package/dist/components/Toaster/Toaster.d.ts +36 -0
  395. package/dist/components/Tooltip/Tootip.d.ts +10 -0
  396. package/dist/components/UserCard/UserCard.d.ts +12 -0
  397. package/dist/exports/Autocomplete.d.ts +1 -0
  398. package/dist/exports/Avatar.d.ts +1 -0
  399. package/dist/exports/Button.d.ts +2 -0
  400. package/dist/exports/CardProfile.d.ts +3 -0
  401. package/dist/exports/CheckBox.d.ts +2 -0
  402. package/dist/exports/DatePicker.d.ts +3 -0
  403. package/dist/exports/DialogModal.d.ts +2 -0
  404. package/dist/exports/DrawerDesktop.d.ts +4 -0
  405. package/dist/exports/DrawerMobile.d.ts +4 -0
  406. package/dist/exports/DropZone.d.ts +3 -0
  407. package/dist/exports/FAButton.d.ts +1 -0
  408. package/dist/exports/Header.d.ts +2 -0
  409. package/dist/exports/Icons.d.ts +1 -0
  410. package/dist/exports/Image.d.ts +1 -0
  411. package/dist/exports/ImageGallery.d.ts +2 -0
  412. package/dist/exports/Input.d.ts +2 -0
  413. package/dist/exports/InputMultiple.d.ts +3 -0
  414. package/dist/exports/LayoutGeneric.d.ts +2 -0
  415. package/dist/exports/Logo.d.ts +1 -0
  416. package/dist/exports/Menu.d.ts +3 -0
  417. package/dist/exports/NotificationCard.d.ts +2 -0
  418. package/dist/exports/OtpInput.d.ts +2 -0
  419. package/dist/exports/Pagination.d.ts +2 -0
  420. package/dist/exports/ProfilePictureUpload.d.ts +3 -0
  421. package/dist/exports/ProgressBar.d.ts +2 -0
  422. package/dist/exports/PyrionNavigationDrawer.d.ts +2 -0
  423. package/dist/exports/RadioButton.d.ts +3 -0
  424. package/dist/exports/RecurrentDatePicker.d.ts +5 -0
  425. package/dist/exports/RecurrentDatePickerRRule.d.ts +2 -0
  426. package/dist/exports/Scrollable.d.ts +2 -0
  427. package/dist/exports/SegmentedButton.d.ts +3 -0
  428. package/dist/exports/Select.d.ts +5 -0
  429. package/dist/exports/SelectSearch.d.ts +3 -0
  430. package/dist/exports/Skeleton.d.ts +3 -0
  431. package/dist/exports/Spinner.d.ts +3 -0
  432. package/dist/exports/Steps.d.ts +3 -0
  433. package/dist/exports/SwipeContainer.d.ts +1 -0
  434. package/dist/exports/Switch.d.ts +3 -0
  435. package/dist/exports/TabLinks.d.ts +1 -0
  436. package/dist/exports/Table.d.ts +1 -0
  437. package/dist/exports/TextArea.d.ts +1 -0
  438. package/dist/exports/TicketCard.d.ts +2 -0
  439. package/dist/exports/Toast.d.ts +3 -0
  440. package/dist/exports/ToastProvider.d.ts +2 -0
  441. package/dist/exports/Tooltip.d.ts +2 -0
  442. package/dist/exports/useDevice.d.ts +1 -0
  443. package/dist/exports/usePyrionNavigation.d.ts +1 -0
  444. package/dist/hooks/useClickOutside.d.ts +8 -0
  445. package/dist/hooks/useDevice.d.ts +1 -0
  446. package/dist/hooks/useDragScroll.d.ts +29 -0
  447. package/dist/hooks/useLabelBackground.d.ts +6 -0
  448. package/dist/iconUtils-D0lVAgGT.js +5 -0
  449. package/dist/index-BOQuZ0gG.js +34 -0
  450. package/dist/index.d.ts +104 -0
  451. package/dist/jsx-runtime-GkKLlHH4.js +263 -0
  452. package/dist/lib/cn.d.ts +2 -0
  453. package/dist/lib/utils.d.ts +3 -0
  454. package/dist/prometeo-design-system.es.js +918 -0
  455. package/dist/styles.css +1 -0
  456. package/dist/styles.d.ts +1 -0
  457. package/dist/useDevice.d.ts +2 -0
  458. package/dist/useDevice.es.js +13 -0
  459. package/dist/useDragScroll-CHN9OMwn.js +165 -0
  460. package/dist/useLabelBackground-BDIHUdND.js +26 -0
  461. package/dist/usePyrionNavigation.d.ts +4 -0
  462. package/dist/usePyrionNavigation.es.js +4 -0
  463. package/dist/utils-X4-h3cum.js +54 -0
  464. package/dist/vite.svg +1 -0
  465. package/package.json +1 -1
@@ -0,0 +1,962 @@
1
+ import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { useIsMobile as Me } from "./useDevice.es.js";
3
+ import { g as te } from "./utils-X4-h3cum.js";
4
+ import q, { memo as A, forwardRef as ae, useState as se, useEffect as W, useRef as O, useCallback as N, useMemo as Fe, Children as ze, isValidElement as ue, useImperativeHandle as we, useContext as Be, createContext as Ue } from "react";
5
+ import { useNavigate as Ve } from "react-router";
6
+ import { c as j } from "./cn-B6yFEsav.js";
7
+ import { CloseNavBarDesktop as He } from "./Icons/CloseNavBarDesktop.es.js";
8
+ import { c as pe } from "./index-BOQuZ0gG.js";
9
+ import { B as $e, T as qe } from "./badge-B1IK_-i5.js";
10
+ import { CrevronLeft as We } from "./Icons/CrevronLeft.es.js";
11
+ import { Scrollable as le } from "./Scrollable.es.js";
12
+ import H from "./TicketCard.es.js";
13
+ import Ge from "./Avatar.es.js";
14
+ import Je from "./NotificationCard.es.js";
15
+ import { Notifications as Ne } from "./Icons/Notifications.es.js";
16
+ import ne from "./Button.es.js";
17
+ import { Close as je } from "./Icons/Close.es.js";
18
+ import { Help as ye } from "./Icons/Help.es.js";
19
+ import { Logout as Ke } from "./Icons/Logout.es.js";
20
+ import { Settings as Qe } from "./Icons/Settings.es.js";
21
+ const Q = (a, l) => typeof a == "function" ? l ? a(l) : null : a, Xe = (a) => {
22
+ const { children: l, classNameDrawer: s, classNameSidebar: n } = a, d = O(null), o = O(null), i = O(null), f = O(null), b = O(!1), x = O(!1), v = O("drawer"), y = O(/* @__PURE__ */ new Set()), g = O(/* @__PURE__ */ new Set()), u = N((r) => {
23
+ const p = o.current;
24
+ p && (p.classList.toggle("collapsed", r), p.classList.toggle("expanded", !r));
25
+ }, []), S = N((r) => {
26
+ const p = f.current;
27
+ p && (p.classList.toggle("collapsed", r), p.classList.toggle("expanded", !r));
28
+ }, []), D = N(
29
+ (r, { notify: p = !0 } = {}) => {
30
+ const t = b.current !== r;
31
+ b.current = r, u(r), p && t && y.current.forEach((c) => c(r));
32
+ },
33
+ [u]
34
+ ), T = N(
35
+ (r, { notify: p = !0 } = {}) => {
36
+ const t = x.current !== r;
37
+ if (x.current = r, S(r), p && t) {
38
+ const c = !r;
39
+ g.current.forEach((h) => h(c));
40
+ }
41
+ },
42
+ [S]
43
+ ), m = N(
44
+ (r, { notify: p = !0 } = {}) => {
45
+ const t = v.current, c = t !== r;
46
+ v.current = r, window.matchMedia("(min-width: 768px)").matches || D(r !== "drawer", { notify: p });
47
+ const h = t === "sidebar", w = r === "sidebar";
48
+ p && c && h !== w && g.current.forEach((_) => _(w));
49
+ },
50
+ [D]
51
+ ), I = N((r) => {
52
+ const p = d.current;
53
+ if (!p || window.matchMedia("(min-width: 768px)").matches) return;
54
+ const t = i.current?.offsetLeft ?? 0, c = f.current?.offsetLeft ?? t, h = r === "drawer" ? 0 : r === "sidebar" ? c : t;
55
+ p.scrollTo({ left: h, behavior: "smooth" });
56
+ }, []), E = N(() => {
57
+ const r = d.current, p = i.current;
58
+ if (!r || !p || window.matchMedia("(min-width: 768px)").matches) return;
59
+ const t = [
60
+ { panel: "drawer", offset: 0 },
61
+ { panel: "outlet", offset: p.offsetLeft }
62
+ ], c = f.current;
63
+ c && t.push({ panel: "sidebar", offset: c.offsetLeft });
64
+ const h = r.scrollLeft;
65
+ let w = t[0], _ = Math.abs(h - w.offset);
66
+ for (let P = 1; P < t.length; P++) {
67
+ const Z = Math.abs(h - t[P].offset);
68
+ Z < _ && (w = t[P], _ = Z);
69
+ }
70
+ m(w.panel);
71
+ }, [m]);
72
+ W(() => {
73
+ const r = d.current, p = i.current;
74
+ if (!r || !p) return;
75
+ if (window.matchMedia("(min-width: 768px)").matches) {
76
+ D(!1, { notify: !1 }), T(!0, { notify: !1 });
77
+ return;
78
+ }
79
+ requestAnimationFrame(() => {
80
+ r.scrollLeft = p.offsetLeft, m("outlet");
81
+ });
82
+ }, [m, D]), W(() => {
83
+ const r = d.current;
84
+ if (!r) return;
85
+ let p = !1;
86
+ const t = () => {
87
+ window.matchMedia("(min-width: 768px)").matches || p || (p = !0, requestAnimationFrame(() => {
88
+ E(), p = !1;
89
+ }));
90
+ };
91
+ return r.addEventListener("scroll", t, { passive: !0 }), () => r.removeEventListener("scroll", t);
92
+ }, [E]);
93
+ const F = N(() => {
94
+ const r = window.matchMedia("(min-width: 768px)").matches, p = !b.current;
95
+ if (r) {
96
+ D(p);
97
+ return;
98
+ }
99
+ const t = p ? "outlet" : "drawer";
100
+ m(t), I(t);
101
+ }, [I, m, D]), R = Fe(
102
+ () => ({
103
+ toggleCollapse: F,
104
+ getIsCollapsed: () => b.current,
105
+ subscribeToCollapse: (r) => (y.current.add(r), () => {
106
+ y.current.delete(r);
107
+ }),
108
+ openSidebar: () => {
109
+ if (f.current) {
110
+ if (window.matchMedia("(min-width: 768px)").matches) {
111
+ T(!1);
112
+ return;
113
+ }
114
+ m("sidebar"), I("sidebar");
115
+ }
116
+ },
117
+ closeSidebar: () => {
118
+ if (window.matchMedia("(min-width: 768px)").matches) {
119
+ T(!0);
120
+ return;
121
+ }
122
+ m("outlet"), I("outlet");
123
+ },
124
+ toggleSidebar: () => {
125
+ if (!f.current) return;
126
+ if (window.matchMedia("(min-width: 768px)").matches) {
127
+ T(!x.current);
128
+ return;
129
+ }
130
+ const r = v.current === "sidebar" ? "outlet" : "sidebar";
131
+ m(r), I(r);
132
+ },
133
+ getIsSidebarOpen: () => f.current ? window.matchMedia("(min-width: 768px)").matches ? !x.current : v.current === "sidebar" : !1,
134
+ subscribeToSidebarOpen: (r) => (g.current.add(r), () => {
135
+ g.current.delete(r);
136
+ })
137
+ }),
138
+ [F, I, m, T]
139
+ ), z = typeof l == "function" ? l(R) : l, X = ze.toArray(z);
140
+ let B = null, U = null, k = null;
141
+ const C = [];
142
+ let L = null, G = null;
143
+ X.forEach((r) => {
144
+ if (!ue(r)) {
145
+ C.push(r);
146
+ return;
147
+ }
148
+ if (r.type === ke && !B) {
149
+ B = q.cloneElement(r, { context: R });
150
+ return;
151
+ }
152
+ if (r.type === re && !U) {
153
+ U = q.cloneElement(r, { context: R });
154
+ return;
155
+ }
156
+ if (r.type === fe && !k) {
157
+ k = q.cloneElement(r, { context: R });
158
+ return;
159
+ }
160
+ if (r.type === me && !L) {
161
+ L = q.cloneElement(r, { context: R });
162
+ return;
163
+ }
164
+ if (r.type === Se && !G) {
165
+ G = q.cloneElement(r, { context: R });
166
+ return;
167
+ }
168
+ C.push(r);
169
+ });
170
+ const oe = !!U, ie = U ?? (C.length ? /* @__PURE__ */ e.jsx(re, { context: R, children: C }) : null), ce = oe ? C : [], V = L ?? (!!L ? /* @__PURE__ */ e.jsx(me, { context: R, children: z }) : null), K = k ?? (!!k ? /* @__PURE__ */ e.jsx(fe, { context: R, children: k }) : null), J = !!G, $ = G;
171
+ return /* @__PURE__ */ e.jsxs("div", { ref: d, className: j("w-full h-full overflow-y-hidden", J ? "navigation-drawer-with-sidebar" : "navigation-drawer"), children: [
172
+ /* @__PURE__ */ e.jsxs(
173
+ "div",
174
+ {
175
+ ref: o,
176
+ className: j(
177
+ "bg-neutral-default-default border-r border-neutral-strong-default h-dvh md:h-screen p-4 overflow-hidden drawer flex flex-col gap-4",
178
+ "expanded w-min",
179
+ s
180
+ ),
181
+ children: [
182
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col flex-1 gap-4 overflow-hidden", children: [
183
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
184
+ /* @__PURE__ */ e.jsx(Ce, { onToggleCollapse: F }),
185
+ B
186
+ ] }),
187
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 overflow-hidden relative flex-col", children: [
188
+ ce,
189
+ ie
190
+ ] })
191
+ ] }),
192
+ K
193
+ ]
194
+ }
195
+ ),
196
+ V && ue(V) ? q.cloneElement(V, { ref: i }) : V,
197
+ $ && ue($) ? q.cloneElement($, {
198
+ ref: f,
199
+ className: j("sidebar", "collapsed", $.props?.className, n)
200
+ }) : $
201
+ ] });
202
+ }, be = A(Xe), Ce = A(({ onToggleCollapse: a }) => /* @__PURE__ */ e.jsx(
203
+ "button",
204
+ {
205
+ type: "button",
206
+ onClick: a,
207
+ className: "collapse-button cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300 w-max",
208
+ children: /* @__PURE__ */ e.jsx(He, { size: 32, className: "transition-transform duration-300 p-1" })
209
+ }
210
+ ));
211
+ Ce.displayName = "NavigationDrawerCollapseButton";
212
+ const ke = A(({ children: a, className: l, context: s }) => {
213
+ const n = Q(a, s);
214
+ return /* @__PURE__ */ e.jsx("div", { className: j("flex items-center justify-between", l), children: n });
215
+ }), re = A(({ children: a, className: l, context: s, ...n }) => {
216
+ const d = Q(a, s);
217
+ return /* @__PURE__ */ e.jsx("div", { ...n, className: j("w-full flex-1 drawer-content", l), children: d });
218
+ });
219
+ re.displayName = "NavigationDrawerContent";
220
+ const fe = A(({ children: a, className: l, context: s }) => {
221
+ const n = Q(a, s);
222
+ return /* @__PURE__ */ e.jsx("div", { className: j("flex items-center justify-between", l), children: n });
223
+ }), Ye = A(({ className: a }) => /* @__PURE__ */ e.jsx("div", { className: j("w-full border-t border-neutral-strong-default ", a) })), me = A(ae(({ children: a, className: l, context: s }, n) => {
224
+ const d = Q(a, s);
225
+ return /* @__PURE__ */ e.jsx("div", { ref: n, className: j("flex-1 overflow-auto ", l), children: d });
226
+ })), Se = A(ae(({ children: a, className: l, context: s, modal: n = !1, closeOnOverlayClick: d = !1, unmountChildrenOnClose: o = !0 }, i) => {
227
+ const f = Q(a, s), b = typeof window < "u" && window.matchMedia("(min-width: 768px)").matches, [x, v] = se(() => !o), [y, g] = se(!1);
228
+ return W(() => {
229
+ o && s?.subscribeToSidebarOpen((u) => {
230
+ u ? (g(!1), v(!0)) : g(!0);
231
+ });
232
+ }, [o]), W(() => {
233
+ const u = i && typeof i == "object" && "current" in i ? i.current : null;
234
+ if (!u) return;
235
+ const S = () => {
236
+ y && (v(!1), g(!1));
237
+ };
238
+ return u.addEventListener("transitionend", S), () => u.removeEventListener("transitionend", S);
239
+ }, [y]), /* @__PURE__ */ e.jsxs("div", { ref: i, className: j("sidebar", b ? "collapsed" : "expanded", "h-full overflow-auto", l), "aria-modal": n || void 0, children: [
240
+ n && b && /* @__PURE__ */ e.jsx(
241
+ "div",
242
+ {
243
+ className: j("navigation-drawer-sidebar-overlay"),
244
+ onClick: (u) => {
245
+ u.preventDefault(), u.stopPropagation(), d && s?.closeSidebar?.();
246
+ },
247
+ "aria-hidden": "true"
248
+ }
249
+ ),
250
+ /* @__PURE__ */ e.jsxs("div", { className: j("navigation-drawer-sidebar-inner"), children: [
251
+ /* @__PURE__ */ e.jsx("div", { className: "secure-click-margin" }),
252
+ x && f
253
+ ] })
254
+ ] });
255
+ })), M = Object.assign(be, {
256
+ Root: be,
257
+ Header: ke,
258
+ Content: re,
259
+ Footer: fe,
260
+ Spacer: Ye,
261
+ Outlet: me,
262
+ Sidebar: Se
263
+ });
264
+ M.displayName = "NavigationDrawer";
265
+ const Ze = "hover:bg-neutral-medium-hover", et = pe("", {
266
+ variants: {
267
+ isSelected: {
268
+ true: "bg-neutral-medium-selected ",
269
+ false: ""
270
+ },
271
+ disabled: {
272
+ true: "bg-transparent hover:bg-transparent active:bg-transparent focus:bg-transparent",
273
+ false: "cursor-pointer"
274
+ }
275
+ }
276
+ }), tt = pe(
277
+ j(
278
+ "select-none",
279
+ "prometeo-fonts-label-large transition-colors duration-300 ease-out"
280
+ ),
281
+ {
282
+ variants: {
283
+ isSelected: {
284
+ true: "text-primary-default-default",
285
+ false: "text-neutral-default-default"
286
+ },
287
+ disabled: {
288
+ true: "text-primary-default-disabled",
289
+ false: "cursor-pointer"
290
+ }
291
+ },
292
+ compoundVariants: [
293
+ { isSelected: !0, disabled: !0, className: "text-neutral-strong-disabled hover:text-neutral-strong-disabled focus:text-neutral-strong-disabled active:text-neutral-strong-disabled" },
294
+ { isSelected: !1, disabled: !0, className: "text-neutral-strong-disabled hover:text-neutral-strong-disabled focus:text-neutral-strong-disabled active:text-neutral-strong-disabled" },
295
+ { isSelected: !0, disabled: !1, className: " text-primary-default-default group-active:text-neutral-default-pressed group-focus:text-neutral-default-pressed" },
296
+ { isSelected: !1, disabled: !1, className: " text-neutral-default-default group-active:text-neutral-default-pressed group-focus:text-neutral-default-pressed" }
297
+ ]
298
+ }
299
+ ), ge = pe(
300
+ j(
301
+ "transition-colors duration-300 ease-out"
302
+ ),
303
+ {
304
+ variants: {
305
+ isSelected: {
306
+ true: "",
307
+ false: ""
308
+ },
309
+ disabled: {
310
+ true: "",
311
+ false: "cursor-pointer"
312
+ }
313
+ },
314
+ compoundVariants: [
315
+ { isSelected: !0, disabled: !0, className: "text-neutral-strong-disabled hover:text-neutral-strong-disabled focus:text-neutral-strong-disabled active:text-neutral-strong-disabled" },
316
+ { isSelected: !1, disabled: !0, className: "text-neutral-strong-disabled hover:text-neutral-strong-disabled focus:text-neutral-strong-disabled active:text-neutral-strong-disabled" },
317
+ { isSelected: !0, disabled: !1, className: "text-primary-default-default group-active:text-neutral-default-pressed group-focus:text-neutral-default-pressed" },
318
+ { isSelected: !1, disabled: !1, className: "text-neutral-default-default group-active:text-neutral-default-pressed group-focus:text-neutral-default-pressed" }
319
+ ]
320
+ }
321
+ ), st = (a) => {
322
+ const {
323
+ title: l,
324
+ icon: s,
325
+ count: n,
326
+ className: d,
327
+ isSelected: o = !1,
328
+ hasSublinks: i,
329
+ subLinksCollapsed: f,
330
+ onToggleSublinks: b,
331
+ as: x = "div",
332
+ onClick: v,
333
+ onAuxClick: y,
334
+ disabled: g = !1
335
+ } = a, u = (m) => {
336
+ g || v?.(m);
337
+ }, S = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
338
+ /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center", children: [
339
+ s && /* @__PURE__ */ e.jsx(s, { size: 24, className: ge({ disabled: g, isSelected: o }) }),
340
+ /* @__PURE__ */ e.jsx("label", { className: tt({ disabled: g, isSelected: o }), children: l })
341
+ ] }),
342
+ /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1 items-center", children: [
343
+ n && n ? /* @__PURE__ */ e.jsx($e, { count: n, maxCount: 9, className: "badge", disabled: g }) : "",
344
+ i && /* @__PURE__ */ e.jsx(
345
+ "div",
346
+ {
347
+ className: j(
348
+ "sublinks-toggle",
349
+ "transition-all duration-200",
350
+ "rounded-full relative grid place-items-center size-6",
351
+ o && "text-primary-default-default",
352
+ `${f ? "-rotate-90" : "rotate-90"}`
353
+ ),
354
+ children: /* @__PURE__ */ e.jsx(
355
+ "button",
356
+ {
357
+ disabled: g,
358
+ type: "button",
359
+ onClick: b,
360
+ className: j("absolute cursor-pointer hover:text-primary-default-hover top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 p-2 z-100 select-none", ge({ disabled: g, isSelected: o }), g && "pointer-events-none"),
361
+ children: /* @__PURE__ */ e.jsx(We, {})
362
+ }
363
+ )
364
+ }
365
+ )
366
+ ] })
367
+ ] }), D = j(
368
+ "group navitem",
369
+ "h-12 flex-1 flex items-center p-3 rounded-lg justify-between w-full",
370
+ "transition-all duration-300",
371
+ Ze,
372
+ et({ isSelected: o, disabled: g }),
373
+ d
374
+ );
375
+ if (x === "a") {
376
+ const m = {
377
+ onClick: u,
378
+ onAuxClick: y,
379
+ className: D
380
+ };
381
+ return /* @__PURE__ */ e.jsx("a", { ...m, children: S });
382
+ }
383
+ if (x === "button") {
384
+ const m = {
385
+ onClick: u,
386
+ type: "button",
387
+ className: D
388
+ };
389
+ return /* @__PURE__ */ e.jsx("button", { ...m, children: S });
390
+ }
391
+ const T = {
392
+ onClick: u,
393
+ className: D
394
+ };
395
+ return /* @__PURE__ */ e.jsx("div", { ...T, children: S });
396
+ }, xe = A(st);
397
+ xe.displayName = "NavigationDrawerItemBase";
398
+ const nt = (a) => {
399
+ const { title: l, icon: s, count: n, className: d, isActive: o, onClick: i, isView: f = !0, disabled: b } = a;
400
+ return f ? /* @__PURE__ */ e.jsx(
401
+ xe,
402
+ {
403
+ as: "button",
404
+ title: l,
405
+ icon: s,
406
+ count: n,
407
+ className: d,
408
+ isSelected: o,
409
+ onClick: i,
410
+ disabled: b
411
+ }
412
+ ) : null;
413
+ }, De = A(nt);
414
+ De.displayName = "NavigationDrawerActionItem";
415
+ const rt = ({ actions: a, activeActionId: l, onActionClick: s, className: n }) => /* @__PURE__ */ e.jsx(le, { className: j("flex flex-col gap-2 w-full ", n), scrollbarProps: { hide: !0 }, indicators: {
416
+ top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
417
+ bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
418
+ }, children: a?.map((d) => {
419
+ const { id: o, onClick: i, isView: f = !0, ...b } = d, x = o === l, v = () => {
420
+ s?.(o), i?.();
421
+ };
422
+ return f ? /* @__PURE__ */ e.jsx(
423
+ De,
424
+ {
425
+ ...b,
426
+ id: o,
427
+ isActive: x,
428
+ onClick: v
429
+ },
430
+ o
431
+ ) : null;
432
+ }) }), Ae = A(rt);
433
+ Ae.displayName = "NavigationDrawerActions";
434
+ const at = (a) => {
435
+ const { className: l, title: s, path: n, onClick: d, isSelected: o, parentPath: i } = a, f = N(() => {
436
+ d?.(n);
437
+ }, [n]), b = N(() => {
438
+ if (n.startsWith("./")) {
439
+ if (!i) return;
440
+ const x = i + n.slice(2);
441
+ window.open(x, "_blank");
442
+ } else
443
+ window.open(n, "_blank");
444
+ }, [n]);
445
+ return /* @__PURE__ */ e.jsx(
446
+ "a",
447
+ {
448
+ onClick: f,
449
+ onAuxClick: b,
450
+ className: j(
451
+ "group",
452
+ "transition-all duration-300 ease-in-out cursor-pointer",
453
+ "h-10 w-full rounded-lg py-[11px] px-3",
454
+ "hover:bg-neutral-medium-hover",
455
+ o && "bg-neutral-medium-selected hover:bg-neutral-medium-hover active:bg-transparent focus:bg-transparent",
456
+ l
457
+ ),
458
+ children: /* @__PURE__ */ e.jsx("p", { className: j(
459
+ "prometeo-fonts-label-large text-neutral-medium-default",
460
+ "group-active:text-neutral-default-focused group-focus:text-neutral-default-focused",
461
+ o && "text-primary-default-default group-hover:text-primary-default-hover group-focus:text-primary-default-focused group-active:text-primary-default-focused"
462
+ ), children: s })
463
+ }
464
+ );
465
+ }, Oe = A(at);
466
+ Oe.displayName = "NavItemSecondary";
467
+ const lt = ae((a, l) => {
468
+ const [s, n] = se(!0), d = O(null), { path: o, title: i, icon: f, count: b, className: x, isSelected: v = !1, onClick: y, sublinks: g, toggleCollapse: u, getIsCollapsed: S, subscribeToCollapse: D, isView: T = !0, disabled: m } = a;
469
+ W(() => D ? D((C) => {
470
+ C && n(!0);
471
+ }) : void 0, [D]);
472
+ const I = N(() => {
473
+ n((k) => !k);
474
+ }, []), E = N((k) => {
475
+ n(k);
476
+ }, []), F = {
477
+ toggle: I,
478
+ setIsCollapsed: E,
479
+ get isCollapsed() {
480
+ return s;
481
+ },
482
+ get isDrawerCollapsed() {
483
+ return S?.() ?? !1;
484
+ },
485
+ toggleDrawerCollapse: u,
486
+ subscribeToCollapse: D
487
+ };
488
+ we(l, () => F, [F, s, S, u]);
489
+ const R = f, z = N(() => {
490
+ const k = S?.() ?? !1;
491
+ if (g && g.length > 0 && k) {
492
+ E(!1), u?.();
493
+ return;
494
+ }
495
+ y?.(o);
496
+ }, [o, y, g, u, E, S]), X = N(() => {
497
+ window.open(o, "_blank");
498
+ }, [o]), B = () => {
499
+ if (!g || m) return null;
500
+ if (a.subLinksRender && g)
501
+ return a.subLinksRender(g, F);
502
+ const k = N((C) => {
503
+ if (C.startsWith("./")) {
504
+ const L = o + C.slice(2);
505
+ y?.(L);
506
+ } else
507
+ y?.(C);
508
+ }, [o]);
509
+ return W(() => {
510
+ const C = d.current;
511
+ if (!C) return;
512
+ const L = C.scrollHeight;
513
+ C.style.setProperty("--sublinks-max-height", `${L}px`);
514
+ }, []), /* @__PURE__ */ e.jsx("div", { ref: d, className: `sublinks flex flex-col gap-1 ml-8 ${s ? "collapsed" : "expanded"}`, children: g.map((C) => /* @__PURE__ */ e.jsx(Oe, { ...C, onClick: k, parentPath: o }, `${C.title}-${C.path}`)) });
515
+ }, U = (k) => {
516
+ k.stopPropagation(), k.preventDefault(), I();
517
+ };
518
+ return T ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
519
+ /* @__PURE__ */ e.jsx(
520
+ xe,
521
+ {
522
+ as: "a",
523
+ title: i,
524
+ icon: R,
525
+ count: b,
526
+ className: x,
527
+ isSelected: v,
528
+ hasSublinks: !!g,
529
+ subLinksCollapsed: s,
530
+ onToggleSublinks: U,
531
+ onClick: z,
532
+ onAuxClick: X,
533
+ disabled: m
534
+ }
535
+ ),
536
+ B()
537
+ ] }) : null;
538
+ }), Te = A(lt);
539
+ Te.displayName = "NavigationDrawerLinkItem";
540
+ const ot = ({ navlinks: a, handleNavigation: l, className: s, getIsCollapsed: n, toggleCollapse: d, subscribeToCollapse: o }) => (
541
+ // <div className={cn("flex flex-col gap-2 h-full",className)}>
542
+ /* @__PURE__ */ e.jsx(le, { className: j("flex flex-col gap-2 w-full ", s), scrollbarProps: { hide: !0 }, indicators: {
543
+ top: { type: "shadow", behavior: "scroll-on-hover", show: !0 },
544
+ bottom: { type: "shadow", behavior: "scroll-on-hover", show: !0 }
545
+ }, children: a?.map((i, f) => {
546
+ const b = i.isSelected || i.path === window.location.pathname || (i.relatedPaths?.some((x) => window.location.pathname.startsWith(x)) ?? !1);
547
+ return /* @__PURE__ */ e.jsx(
548
+ Te,
549
+ {
550
+ className: "",
551
+ ...i,
552
+ isSelected: b,
553
+ onClick: l,
554
+ toggleCollapse: d,
555
+ getIsCollapsed: n,
556
+ subscribeToCollapse: o,
557
+ disabled: i.disabled,
558
+ isView: i.isView
559
+ },
560
+ f
561
+ );
562
+ }) })
563
+ ), Ie = A(ot);
564
+ Ie.displayName = "NavigationDrawerNavlinks";
565
+ const it = ({ name: a, imageUrl: l, avatarSize: s = "xxs", subImageUrl: n, className: d, mainSlot: o = a, secondarySlot: i }) => {
566
+ const f = N(() => o ? typeof o == "string" ? /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-label-large text-neutral-default-default line-clamp-1 select-text", children: o }) : typeof o == "function" ? o() : o : null, [o]), b = N(() => i ? typeof i == "string" ? /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-body-small text-neutral-default-default line-clamp-1 whitespace-pre text-ellipsis select-text", children: i }) : typeof i == "function" ? i() : i : null, [i]);
567
+ return /* @__PURE__ */ e.jsxs("div", { className: j("flex items-center gap-2 p-3 rounded-lg max-w-full max-h-full select-none ", d), children: [
568
+ /* @__PURE__ */ e.jsx(
569
+ Ge,
570
+ {
571
+ fallbackText: a,
572
+ sizeImage: s,
573
+ sizeFallback: s,
574
+ imageUrl: l,
575
+ subImageUrl: n
576
+ }
577
+ ),
578
+ /* @__PURE__ */ e.jsxs("div", { className: j("usercard-content flex flex-col gap-0 flex-1 overflow-hidden w-full transition-all duration-300 ease-in-out ", i && "gap-1"), children: [
579
+ /* @__PURE__ */ e.jsx("div", { className: "w-full", children: f() }),
580
+ /* @__PURE__ */ e.jsx("div", { className: "flex gap-1 justify-between overflow-hidden relative w-full", children: b() })
581
+ ] })
582
+ ] });
583
+ }, he = A(it);
584
+ he.displayName = "UserCard";
585
+ const ct = ({ tabs: a, content: l, controls: s }) => /* @__PURE__ */ e.jsxs(H, { controls: s, children: [
586
+ /* @__PURE__ */ e.jsx(H.Content, { children: typeof l == "function" ? l() : l }),
587
+ /* @__PURE__ */ e.jsxs(H.Options, { children: [
588
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col p-2 pl-4 gap-2", children: [
589
+ /* @__PURE__ */ e.jsx("p", { className: " prometeo-fonts-label-medium text-neutral-medium-default", children: "Cambiar módulo" }),
590
+ /* @__PURE__ */ e.jsx(le, { className: "max-h-52", scrollbarProps: { hide: !0 }, children: a?.map((n) => {
591
+ const d = typeof n.thumbnail == "string" ? /* @__PURE__ */ e.jsx(
592
+ "img",
593
+ {
594
+ src: n.thumbnail,
595
+ alt: n.description,
596
+ className: "size-8 aspect-square rounded",
597
+ draggable: !1
598
+ }
599
+ ) : n.thumbnail, o = () => {
600
+ n.disabled || n.onClick && n.onClick(n.name);
601
+ };
602
+ return /* @__PURE__ */ e.jsxs("div", { onClick: o, className: "flex gap-2 p-2 rounded-lg h-12", children: [
603
+ d,
604
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center h-full justify-center ", children: [
605
+ /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-label-large text-neutral-default-default line-clamp-1", children: n.name }),
606
+ n.description && /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-body-small text-neutral-medium-default line-clamp-1", children: n.description })
607
+ ] })
608
+ ] });
609
+ }) })
610
+ ] }),
611
+ /* @__PURE__ */ e.jsx("div", {})
612
+ ] })
613
+ ] }), ve = A(({ enabled_systems: a, onClick: l, currentSystemId: s }) => {
614
+ const n = N(() => {
615
+ if (a) {
616
+ if (s) {
617
+ const f = a.find((b) => b._id === s);
618
+ if (f) return { coverImage: f.coverImage, thumbnail: f.thumbnail };
619
+ }
620
+ const o = window.location.origin, i = a.find((f) => f.url === o);
621
+ if (i) return { coverImage: i.coverImage, thumbnail: i.thumbnail };
622
+ }
623
+ return { coverImage: "", thumbnail: "" };
624
+ }, [a]), d = !!l;
625
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
626
+ /* @__PURE__ */ e.jsx(
627
+ "img",
628
+ {
629
+ src: n().coverImage,
630
+ alt: "System Logo",
631
+ className: j("w-full h-12 rounded object-contain system-cover-image ", d && "cursor-pointer"),
632
+ draggable: !1,
633
+ onClick: l
634
+ }
635
+ ),
636
+ /* @__PURE__ */ e.jsx(
637
+ "img",
638
+ {
639
+ src: n().thumbnail,
640
+ alt: "System Logo",
641
+ className: j("w-12 h-12 rounded object-cover system-thumbnail ", d && "cursor-pointer"),
642
+ draggable: !1,
643
+ onClick: l
644
+ }
645
+ )
646
+ ] });
647
+ }), dt = ({ onCloseClick: a, onMarkAllAsRead: l, notifications: s }) => /* @__PURE__ */ e.jsxs(
648
+ "section",
649
+ {
650
+ className: "w-full md:w-[479px] bg-neutral-default-default border-l-0 md:border-l border-neutral-strong-default",
651
+ children: [
652
+ /* @__PURE__ */ e.jsxs("div", { className: "w-full h-max flex gap-2 items-center justify-between pt-8 pb-2 pr-2 pl-4 border-b border-neutral-strong-default sticky top-0 z-50 bg-neutral-default-default", children: [
653
+ /* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
654
+ /* @__PURE__ */ e.jsx(Ne, { className: "text-neutral-strong-default", size: 24 }),
655
+ /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-headline-small text-neutral-strong-default", children: "Notificaciones" })
656
+ ] }),
657
+ /* @__PURE__ */ e.jsx(ne, { onClick: () => a?.(), icon: /* @__PURE__ */ e.jsx(je, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
658
+ ] }),
659
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-3 pb-8 pt-4 px-4", children: [
660
+ l && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(ne, { onClick: l, label: "Marcar todas como leidas", variant: "text", animate: !1, animateIcon: !1, size: "small" }) }),
661
+ s?.map((n, d) => /* @__PURE__ */ e.jsx(Je, { ...n, className: " border-b border-neutral-strong-default rounded-b-none last:border-b-0" }, d))
662
+ ] })
663
+ ]
664
+ }
665
+ ), ut = ({ onCloseClick: a, children: l, title: s = "Ayuda" }) => /* @__PURE__ */ e.jsxs(
666
+ "section",
667
+ {
668
+ className: "w-full md:w-[479px] bg-neutral-default-default border-l-0 md:border-l border-neutral-strong-default h-full",
669
+ children: [
670
+ /* @__PURE__ */ e.jsxs("div", { className: "w-full h-max flex gap-2 items-center justify-between pt-8 pb-2 pr-2 pl-4 border-b border-neutral-strong-default sticky top-0 z-50 bg-neutral-default-default", children: [
671
+ /* @__PURE__ */ e.jsxs("span", { className: "flex gap-2 items-center", children: [
672
+ /* @__PURE__ */ e.jsx(ye, { className: "text-neutral-strong-default", size: 24 }),
673
+ /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-headline-small text-neutral-strong-default", children: s })
674
+ ] }),
675
+ /* @__PURE__ */ e.jsx(ne, { onClick: () => a?.(), icon: /* @__PURE__ */ e.jsx(je, {}), variant: "text", animate: !1, animateIcon: !1, color: "secondary", className: "size-12" })
676
+ ] }),
677
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3 pb-8 pt-4 px-4", children: l })
678
+ ]
679
+ }
680
+ ), Re = ae(({ closeSidebar: a, options: l, state: s, helpSection: n, initialSection: d }, o) => {
681
+ const [i, f] = se(d ?? "notifications");
682
+ we(o, () => ({
683
+ setActiveSection: f
684
+ }));
685
+ const b = () => {
686
+ a();
687
+ };
688
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
689
+ i === "notifications" && !l?.notificationsDrawerOptions?.hide && /* @__PURE__ */ e.jsx(
690
+ dt,
691
+ {
692
+ onCloseClick: b,
693
+ onMarkAllAsRead: l?.notificationsDrawerOptions?.onMarkAllAsRead,
694
+ notifications: s.notifications
695
+ }
696
+ ),
697
+ i === "help" && n && !l?.helpSectionDrawerOptions?.hide && /* @__PURE__ */ e.jsx(ut, { onCloseClick: b, children: typeof n == "function" ? n() : n })
698
+ ] });
699
+ });
700
+ Re.displayName = "SidebarContent";
701
+ const ft = (a) => {
702
+ const { sessions: l, onSessionClick: s, secondarySlot: n, currentSystemId: d, subImageUrlAccessor: o } = a;
703
+ if (!l || l.length === 0)
704
+ return null;
705
+ const i = (x) => {
706
+ s && s(x);
707
+ }, f = (x) => {
708
+ if (!o)
709
+ return;
710
+ const v = x.systems?.find((g) => g._id === d)?.metadata;
711
+ return v ? te(v, o) : void 0;
712
+ }, b = N((x) => typeof n == "function" ? n(x) : n, [n]);
713
+ return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: l?.map((x) => {
714
+ const { userHub: v } = x;
715
+ return /* @__PURE__ */ e.jsx(H, { className: " shrink-0 h-max", children: /* @__PURE__ */ e.jsx(H.Content, { onClick: () => i(x), className: "p-0 group-data-[expanded=true]/ticketcard:border-none", children: /* @__PURE__ */ e.jsx(
716
+ he,
717
+ {
718
+ name: v.name,
719
+ avatarSize: "xxs",
720
+ secondarySlot: b(x),
721
+ subImageUrl: f(x),
722
+ imageUrl: v.profile_picture,
723
+ className: "pyrion-navigation-drawer-user-card"
724
+ },
725
+ x.token
726
+ ) }) });
727
+ }) });
728
+ }, _e = Ue(null), _t = () => {
729
+ const a = Be(_e);
730
+ if (!a)
731
+ throw new Error("usePyrionNavigation debe usarse dentro de PyrionNavigationDrawer");
732
+ return a;
733
+ }, Et = ({ children: a, helpSection: l, state: s, links: n, onLinkClick: d, onNavigate: o, onLogoutClick: i, actions: f, activeActionId: b, onActionClick: x, tabsProps: v, currentSystemId: y, onSessionClick: g, options: u, onSystemLogoClick: S }) => {
734
+ const D = Ve(), T = Me(), m = O({}), I = O(null), E = O("notifications"), R = N((t) => {
735
+ if (d) {
736
+ d(t);
737
+ return;
738
+ }
739
+ const c = window.location.pathname;
740
+ D(t), o && o(c, t);
741
+ }, [d, o, window.location.pathname]), z = (t) => {
742
+ t && window.open(t, "_blank");
743
+ }, B = {
744
+ system: {
745
+ mobile: z,
746
+ desktop: (t) => {
747
+ typeof window < "u" && t && (window.location.href = t);
748
+ }
749
+ },
750
+ product: {
751
+ mobile: z,
752
+ desktop: z
753
+ }
754
+ }, U = (t) => {
755
+ const c = T ? "mobile" : "desktop", h = s.enabled_systems.find((w) => w.name === t)?.url;
756
+ B.system[c](h), v?.onTabClick?.(t);
757
+ }, k = (t) => {
758
+ const c = T ? "mobile" : "desktop", h = s.company.products?.find((w) => w.name === t)?.domain;
759
+ B.product[c](h), v?.onTabClick?.(t);
760
+ }, C = (t, c) => {
761
+ if (c) {
762
+ c(t), v?.onTabClick?.(t);
763
+ return;
764
+ } else
765
+ v?.onTabClick?.(t);
766
+ }, L = s.enabled_systems.map((t) => ({ name: t.name, thumbnail: t.thumbnail, onClick: U })) || [], G = v?.customTabs?.map((t) => ({ ...t, onClick: () => C(t.name, t?.onClick) })) || [], oe = s.company.products?.map((t) => ({ name: t.name, thumbnail: t.thumbnail, onClick: k })) || [], ie = () => {
767
+ const t = {};
768
+ s.enabled_systems.forEach((h) => {
769
+ t[h.url] = h.name;
770
+ });
771
+ const c = window.location.origin;
772
+ for (const [h, w] of Object.entries(t))
773
+ if (c === h)
774
+ return w;
775
+ return "";
776
+ }, ce = v?.currentTabName || ie(), Y = [
777
+ ...L,
778
+ ...G,
779
+ ...oe
780
+ ], V = O(null), de = O(null), K = s.sessions?.filter((t) => t.systems?.some((c) => c._id === y)), J = N((t, c) => {
781
+ if (!t) return null;
782
+ if (Array.isArray(t)) {
783
+ const h = t?.[0] ? te(c, t[0]) : null, w = t?.[1] ? te(c, t[1]) : null;
784
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
785
+ /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-body-small text-neutral-default-default line-clamp-1 whitespace-break-spaces min-w-1/2", children: h }),
786
+ w && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1 flex-1 grow shrink-0 min-w-[40%] overflow-hidden", children: [
787
+ /* @__PURE__ */ e.jsx("span", { className: "size-0.5 bg-[--neutral-300] rounded-full" }),
788
+ /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-body-small text-neutral-default-default line-clamp-1 whitespace-pre text-ellipsis", children: w })
789
+ ] })
790
+ ] });
791
+ }
792
+ return typeof t == "string" ? te(c, t) : typeof t == "function" ? t(c) : null;
793
+ }, []), $ = N(
794
+ (t) => {
795
+ const c = u?.userCardOptions?.secondarySlot;
796
+ if (!c) return null;
797
+ const h = s.enabled_systems?.find((_) => _._id === y), w = { company: s.company, user: s.user, system: h, metadata: t };
798
+ return J(c, w);
799
+ },
800
+ [y, u?.userCardOptions?.secondarySlot, J, s.company, s.enabled_systems, s.user]
801
+ ), r = N(
802
+ (t) => {
803
+ const c = u?.sessionCardOptions?.secondarySlot || u?.userCardOptions?.secondarySlot;
804
+ if (!c) return null;
805
+ const h = t.systems?.find((_) => _._id === y), w = { company: s.company, user: t.userHub, system: h, metadata: h?.metadata };
806
+ return J(c, w);
807
+ },
808
+ [y, u?.sessionCardOptions?.secondarySlot, u?.userCardOptions?.secondarySlot, J, s.company]
809
+ ), p = ({ children: t }) => /* @__PURE__ */ e.jsx(_e.Provider, { value: m.current, children: /* @__PURE__ */ e.jsxs(M, { children: [
810
+ /* @__PURE__ */ e.jsx(M.Header, { className: "flex flex-col relative select-none", children: ({ getIsCollapsed: c }) => {
811
+ const h = N(() => {
812
+ if (S) {
813
+ const w = c();
814
+ S(w);
815
+ }
816
+ }, [S, c]);
817
+ return T ? /* @__PURE__ */ e.jsx(
818
+ ct,
819
+ {
820
+ controls: de,
821
+ tabs: Y,
822
+ content: /* @__PURE__ */ e.jsx(ve, { enabled_systems: s.enabled_systems, onClick: h, currentSystemId: y })
823
+ }
824
+ ) : /* @__PURE__ */ e.jsx(ve, { enabled_systems: s.enabled_systems, onClick: h, currentSystemId: y });
825
+ } }),
826
+ /* @__PURE__ */ e.jsx(M.Content, { className: "overflow-hidden flex flex-col relative flex-1 w-[285px] md:w-auto", children: ({ toggleCollapse: c, getIsCollapsed: h, subscribeToCollapse: w, openSidebar: _, closeSidebar: P, toggleSidebar: Z, getIsSidebarOpen: Ee, subscribeToSidebarOpen: Le }) => {
827
+ m.current.toggleCollapse = c, m.current.getIsCollapsed = h, m.current.subscribeToCollapse = w, m.current.openSidebar = _, m.current.closeSidebar = P, m.current.toggleSidebar = Z, m.current.getIsSidebarOpen = Ee, m.current.subscribeToSidebarOpen = Le, m.current.openNotifications = () => {
828
+ E.current = "notifications", m.current.openSidebar?.(), I.current?.setActiveSection("notifications");
829
+ }, m.current.openHelp = () => {
830
+ E.current = "help", m.current.openSidebar?.(), I.current?.setActiveSection("help");
831
+ };
832
+ const ee = [];
833
+ !u?.notificationsDrawerOptions?.hideActionButton && !u?.notificationsDrawerOptions?.hideActionButton && ee.push({
834
+ id: "notifications",
835
+ title: "Notificaciones",
836
+ icon: Ne,
837
+ onClick: m.current.openNotifications
838
+ }), !u?.helpSectionDrawerOptions?.hideActionButton && l && !u?.helpSectionDrawerOptions?.hide && ee.push({
839
+ id: "help",
840
+ title: "Ayuda",
841
+ icon: ye,
842
+ onClick: m.current.openHelp
843
+ }), u?.configurationActionOptions?.onClick && !u?.configurationActionOptions?.hideActionButton && ee.push({
844
+ id: "configuration",
845
+ title: "Configuracion",
846
+ icon: Qe,
847
+ onClick: () => {
848
+ u.configurationActionOptions?.onClick?.(), x?.("configuration");
849
+ }
850
+ });
851
+ const Pe = [...ee, ...f || []];
852
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
853
+ /* @__PURE__ */ e.jsx(M.Spacer, { className: "pb-3" }),
854
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col overflow-hidden h-full gap-4", children: [
855
+ /* @__PURE__ */ e.jsx(
856
+ Ie,
857
+ {
858
+ getIsCollapsed: h,
859
+ toggleCollapse: c,
860
+ subscribeToCollapse: w,
861
+ navlinks: n,
862
+ handleNavigation: R,
863
+ className: "flex flex-1 "
864
+ }
865
+ ),
866
+ /* @__PURE__ */ e.jsx(
867
+ Ae,
868
+ {
869
+ actions: Pe,
870
+ activeActionId: b,
871
+ onActionClick: x,
872
+ className: " max-h-[35vh] min-h-max"
873
+ }
874
+ )
875
+ ] })
876
+ ] });
877
+ } }),
878
+ /* @__PURE__ */ e.jsx(M.Footer, { className: "md:min-h-max flex flex-col w-full overflow-hidden max-w-full", children: ({ getIsCollapsed: c, subscribeToCollapse: h, toggleCollapse: w }) => {
879
+ const _ = N(
880
+ () => {
881
+ c() && (w(), V.current?.open());
882
+ },
883
+ [c]
884
+ );
885
+ return W(() => {
886
+ h((P) => {
887
+ P && (V.current?.close(), de.current?.close());
888
+ });
889
+ }, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
890
+ /* @__PURE__ */ e.jsx(M.Spacer, { className: "mb-3" }),
891
+ /* @__PURE__ */ e.jsxs(H, { className: "", controls: V, children: [
892
+ /* @__PURE__ */ e.jsx(H.Content, { onClick: _, children: /* @__PURE__ */ e.jsx(
893
+ he,
894
+ {
895
+ className: "pyrion-navigation-drawer-user-card p-0 ",
896
+ name: s.user.name,
897
+ secondarySlot: $(s.metadata),
898
+ imageUrl: s.user.profile_picture,
899
+ subImageUrl: s.company.icon,
900
+ avatarSize: "xxs"
901
+ }
902
+ ) }),
903
+ /* @__PURE__ */ e.jsxs(H.Options, { className: "min-h-max flex flex-col gap-3 pl-3 mt-3 pt-2", children: [
904
+ K && K.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
905
+ /* @__PURE__ */ e.jsx("p", { className: "prometeo-fonts-label-medium text-neutral-medium-default select-none", children: "Cambiar cuenta" }),
906
+ /* @__PURE__ */ e.jsx(le, { className: "flex flex-col gap-2 max-h-[165px] flex-1", scrollbarProps: { hide: !0 }, children: /* @__PURE__ */ e.jsx(
907
+ ft,
908
+ {
909
+ sessions: K,
910
+ onSessionClick: g,
911
+ secondarySlot: r,
912
+ subImageUrlAccessor: u?.sessionCardOptions?.subImageUrlAccessor,
913
+ currentSystemId: y
914
+ }
915
+ ) })
916
+ ] }),
917
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-2", children: i && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
918
+ /* @__PURE__ */ e.jsx("span", { className: " border-t border-neutral-strong-default w-full bg-neutral-strong-default " }),
919
+ /* @__PURE__ */ e.jsx(ne, { onClick: i, animate: !1, animateIcon: !1, variant: "text", label: "Cerrar sesión", icon: /* @__PURE__ */ e.jsx(Ke, {}), size: "small", color: "secondary" })
920
+ ] }) })
921
+ ] })
922
+ ] })
923
+ ] });
924
+ } }),
925
+ /* @__PURE__ */ e.jsx(M.Outlet, { children: t }),
926
+ /* @__PURE__ */ e.jsx(
927
+ M.Sidebar,
928
+ {
929
+ className: "bg-neutral-default-default",
930
+ modal: u?.sidebarOptions?.modal,
931
+ closeOnOverlayClick: u?.sidebarOptions?.closeOnOverlayClick,
932
+ children: ({ closeSidebar: c }) => /* @__PURE__ */ e.jsx(
933
+ Re,
934
+ {
935
+ ref: I,
936
+ closeSidebar: c,
937
+ options: u,
938
+ state: s,
939
+ helpSection: l,
940
+ initialSection: E.current
941
+ }
942
+ )
943
+ }
944
+ )
945
+ ] }) });
946
+ return T ? /* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx(e.Fragment, { children: a }) }) : /* @__PURE__ */ e.jsxs("div", { className: "flex h-screen", children: [
947
+ Y.length > 0 && /* @__PURE__ */ e.jsx(
948
+ qe,
949
+ {
950
+ className: "hidden md:flex",
951
+ tabs: Y,
952
+ activeColor: "var(--neutral-900)",
953
+ currentTabName: ce
954
+ }
955
+ ),
956
+ /* @__PURE__ */ e.jsx(p, { children: a })
957
+ ] });
958
+ };
959
+ export {
960
+ Et as default,
961
+ _t as u
962
+ };