@adyen/adyen-platform-experience-web 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/da-DK-a148e492.cjs +2 -0
  4. package/dist/da-DK-a148e492.cjs.map +1 -0
  5. package/dist/de-DE-a39a50e8.cjs +2 -0
  6. package/dist/de-DE-a39a50e8.cjs.map +1 -0
  7. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +41 -41
  8. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +93 -94
  9. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +76 -69
  10. package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +25 -0
  11. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +112 -0
  12. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +4 -0
  13. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/constants.js +5 -0
  14. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +30 -0
  15. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.js +4 -0
  16. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +149 -0
  17. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +4 -0
  18. package/dist/es/components/external/ReportsOverview/components/ReportsTable/constants.js +7 -0
  19. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +67 -46
  20. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +28 -17
  21. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +13 -13
  22. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +19 -14
  23. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +1 -1
  24. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +10 -10
  25. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +11 -11
  26. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +1 -1
  27. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +183 -164
  28. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +31 -24
  29. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +95 -89
  30. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -5
  31. package/dist/es/components/hooks/useCustomColumnsData.js +29 -0
  32. package/dist/es/components/hooks/useFreezePeriod.js +18 -0
  33. package/dist/es/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.js +2 -2
  34. package/dist/es/components/hooks/useTableColumns.js +46 -0
  35. package/dist/es/components/internal/Accordion/Accordion.js +15 -15
  36. package/dist/es/components/internal/Alert/Alert.js +62 -0
  37. package/dist/es/components/internal/Alert/Alert.scss.js +4 -0
  38. package/dist/es/components/internal/Alert/types.js +4 -0
  39. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +81 -0
  40. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +4 -0
  41. package/dist/es/components/internal/Button/DownloadButton/useDownload.js +18 -0
  42. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +221 -211
  43. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +103 -94
  44. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +201 -200
  45. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +19 -18
  46. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +18 -17
  47. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +17 -20
  48. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -12
  49. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -43
  50. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
  51. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +25 -26
  52. package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
  53. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +40 -38
  54. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
  55. package/dist/es/components/internal/Card/Card.js +15 -15
  56. package/dist/es/components/internal/DataGrid/DataGrid.js +4 -4
  57. package/dist/es/components/internal/DataGrid/DataGridCell.js +12 -12
  58. package/dist/es/components/internal/DataGrid/components/Icon.js +17 -0
  59. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +7 -7
  60. package/dist/es/components/internal/DataGrid/components/TableCells.js +54 -37
  61. package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
  62. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +54 -54
  63. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +45 -0
  64. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +4 -0
  65. package/dist/es/components/internal/DataOverviewDisplay/constants.js +30 -24
  66. package/dist/es/components/internal/DatePicker/DatePicker.js +17 -16
  67. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +13 -13
  68. package/dist/es/components/internal/FilterBar/FilterBar.js +50 -42
  69. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +7 -7
  70. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +14 -14
  71. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +58 -52
  72. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +1 -1
  73. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +81 -76
  74. package/dist/es/components/internal/FormFields/InputBase.js +25 -25
  75. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +1 -1
  76. package/dist/es/components/internal/FormFields/Select/Select.js +5 -5
  77. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +5 -5
  78. package/dist/es/components/internal/Image/Image.js +6 -6
  79. package/dist/es/components/internal/Img/Img.js +4 -4
  80. package/dist/es/components/internal/Modal/Modal.js +6 -6
  81. package/dist/es/components/internal/Pagination/Pagination.js +17 -17
  82. package/dist/es/components/internal/Popover/Popover.js +11 -11
  83. package/dist/es/components/internal/SVGIcons/Download.js +21 -0
  84. package/dist/es/components/internal/SVGIcons/Warning.js +23 -0
  85. package/dist/es/components/internal/SVGIcons/WarningFilled.js +18 -0
  86. package/dist/es/components/internal/StructuredList/StructuredList.js +8 -8
  87. package/dist/es/components/internal/Tag/Tag.js +8 -8
  88. package/dist/es/components/internal/Tooltip/Tooltip.js +20 -20
  89. package/dist/es/components/internal/Typography/Typography.js +12 -12
  90. package/dist/es/components/utils/getLabel.js +6 -3
  91. package/dist/es/core/Http/http.js +34 -31
  92. package/dist/es/core/Http/utils.js +39 -30
  93. package/dist/es/core/Localization/Localization.js +74 -76
  94. package/dist/es/core/Localization/constants/localization.js +9 -6
  95. package/dist/es/core/Localization/datetime/restamper/utils.js +26 -26
  96. package/dist/es/core/Localization/localization-utils.js +11 -12
  97. package/dist/es/core/Localization/utils.js +45 -47
  98. package/dist/es/core/core.js +1 -1
  99. package/dist/es/index.js +14 -12
  100. package/dist/es/primitives/time/today/main.js +38 -43
  101. package/dist/es/translations/da-DK.json.js +2 -218
  102. package/dist/es/translations/de-DE.json.js +2 -218
  103. package/dist/es/translations/en-US.json.js +2 -218
  104. package/dist/es/translations/es-ES.json.js +2 -218
  105. package/dist/es/translations/fr-FR.json.js +2 -218
  106. package/dist/es/translations/index.js +39 -45
  107. package/dist/es/translations/it-IT.json.js +2 -218
  108. package/dist/es/translations/nl-NL.json.js +2 -218
  109. package/dist/es/translations/no-NO.json.js +2 -218
  110. package/dist/es/translations/pt-BR.json.js +2 -218
  111. package/dist/es/translations/sv-SE.json.js +2 -218
  112. package/dist/es/utils/preact/className.js +3 -3
  113. package/dist/es-ES-153e5f15.cjs +2 -0
  114. package/dist/es-ES-153e5f15.cjs.map +1 -0
  115. package/dist/fr-FR-69b3df0d.cjs +2 -0
  116. package/dist/fr-FR-69b3df0d.cjs.map +1 -0
  117. package/dist/it-IT-efca230f.cjs +2 -0
  118. package/dist/it-IT-efca230f.cjs.map +1 -0
  119. package/dist/nl-NL-ffbb8184.cjs +2 -0
  120. package/dist/nl-NL-ffbb8184.cjs.map +1 -0
  121. package/dist/no-NO-eaf65f6f.cjs +2 -0
  122. package/dist/no-NO-eaf65f6f.cjs.map +1 -0
  123. package/dist/pt-BR-590ccc53.cjs +2 -0
  124. package/dist/pt-BR-590ccc53.cjs.map +1 -0
  125. package/dist/style.css +1 -1
  126. package/dist/sv-SE-18f4e86e.cjs +2 -0
  127. package/dist/sv-SE-18f4e86e.cjs.map +1 -0
  128. package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
  129. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +2 -2
  130. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
  131. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +9 -0
  132. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -0
  133. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +8 -0
  134. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -0
  135. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts +3 -0
  136. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts.map +1 -0
  137. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts +4 -0
  138. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts.map +1 -0
  139. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts +2 -0
  140. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts.map +1 -0
  141. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +15 -0
  142. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -0
  143. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts +5 -0
  144. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts.map +1 -0
  145. package/dist/types/components/external/ReportsOverview/index.d.ts +2 -0
  146. package/dist/types/components/external/ReportsOverview/index.d.ts.map +1 -0
  147. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +20 -2
  148. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  149. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  150. package/dist/types/components/external/TransactionDetails/types.d.ts +5 -1
  151. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
  152. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
  153. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +1 -1
  154. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
  155. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
  156. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  157. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +1 -1
  158. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +3 -1
  159. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
  160. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +1 -0
  161. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -1
  162. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +5 -0
  163. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
  164. package/dist/types/components/external/index.d.ts +1 -0
  165. package/dist/types/components/external/index.d.ts.map +1 -1
  166. package/dist/types/components/hooks/useCustomColumnsData.d.ts +13 -0
  167. package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +1 -0
  168. package/dist/types/components/hooks/useFreezePeriod.d.ts +6 -0
  169. package/dist/types/components/hooks/useFreezePeriod.d.ts.map +1 -0
  170. package/dist/types/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
  171. package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +1 -0
  172. package/dist/types/components/hooks/useTableColumns.d.ts +20 -0
  173. package/dist/types/components/hooks/useTableColumns.d.ts.map +1 -0
  174. package/dist/types/components/internal/Alert/Alert.d.ts +5 -0
  175. package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -0
  176. package/dist/types/components/internal/Alert/types.d.ts +17 -0
  177. package/dist/types/components/internal/Alert/types.d.ts.map +1 -0
  178. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts +16 -0
  179. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts.map +1 -0
  180. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +143 -0
  181. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -0
  182. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
  183. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
  184. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
  185. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
  186. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
  187. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
  188. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
  189. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
  190. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
  191. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
  192. package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
  193. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +0 -5
  194. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  195. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
  196. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
  197. package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
  198. package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
  199. package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
  200. package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
  201. package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -1
  202. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
  203. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
  204. package/dist/types/components/internal/Calendar/types.d.ts +1 -0
  205. package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
  206. package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -5
  207. package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
  208. package/dist/types/components/internal/DataGrid/components/Icon.d.ts +7 -0
  209. package/dist/types/components/internal/DataGrid/components/Icon.d.ts.map +1 -0
  210. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  211. package/dist/types/components/internal/DataGrid/types.d.ts +4 -3
  212. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
  213. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts +1 -1
  214. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts.map +1 -1
  215. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
  216. package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -2
  217. package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
  218. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts +13 -0
  219. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts.map +1 -0
  220. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +3 -0
  221. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +1 -0
  222. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +5 -2
  223. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
  224. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
  225. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
  226. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
  227. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +1 -1
  228. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
  229. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
  230. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  231. package/dist/types/components/internal/FilterBar/FilterBar.d.ts +9 -2
  232. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
  233. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  234. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
  235. package/dist/types/components/internal/FilterBar/index.d.ts +1 -0
  236. package/dist/types/components/internal/FilterBar/index.d.ts.map +1 -1
  237. package/dist/types/components/internal/FilterBar/types.d.ts +11 -1
  238. package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
  239. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  240. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  241. package/dist/types/components/internal/SVGIcons/Download.d.ts +4 -0
  242. package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -0
  243. package/dist/types/components/internal/SVGIcons/Warning.d.ts +4 -0
  244. package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -0
  245. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +4 -0
  246. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +1 -0
  247. package/dist/types/components/internal/StructuredList/types.d.ts +1 -1
  248. package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
  249. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +2 -2
  250. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
  251. package/dist/types/components/types.d.ts +33 -1
  252. package/dist/types/components/types.d.ts.map +1 -1
  253. package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
  254. package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
  255. package/dist/types/components/utils/getErrorMessage.d.ts +1 -1
  256. package/dist/types/components/utils/getErrorMessage.d.ts.map +1 -1
  257. package/dist/types/components/utils/getLabel.d.ts +4 -1
  258. package/dist/types/components/utils/getLabel.d.ts.map +1 -1
  259. package/dist/types/core/Auth/context.d.ts +8 -6
  260. package/dist/types/core/Auth/context.d.ts.map +1 -1
  261. package/dist/types/core/Auth/session/AuthSession.d.ts +8 -6
  262. package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
  263. package/dist/types/core/Auth/session/AuthSetupContext.d.ts +8 -6
  264. package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
  265. package/dist/types/core/Http/http.d.ts.map +1 -1
  266. package/dist/types/core/Http/utils.d.ts +2 -0
  267. package/dist/types/core/Http/utils.d.ts.map +1 -1
  268. package/dist/types/core/Localization/Localization.d.ts +8 -10
  269. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  270. package/dist/types/core/Localization/constants/localization.d.ts +5 -2
  271. package/dist/types/core/Localization/constants/localization.d.ts.map +1 -1
  272. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  273. package/dist/types/core/Localization/localization-utils.d.ts +4 -4
  274. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  275. package/dist/types/core/Localization/types.d.ts +0 -19
  276. package/dist/types/core/Localization/types.d.ts.map +1 -1
  277. package/dist/types/core/Localization/utils.d.ts +7 -271
  278. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  279. package/dist/types/core/core.d.ts +2 -3
  280. package/dist/types/core/core.d.ts.map +1 -1
  281. package/dist/types/core/types.d.ts +5 -4
  282. package/dist/types/core/types.d.ts.map +1 -1
  283. package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
  284. package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
  285. package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
  286. package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
  287. package/dist/types/index.d.ts +2 -3
  288. package/dist/types/index.d.ts.map +1 -1
  289. package/dist/types/primitives/time/today/main.d.ts.map +1 -1
  290. package/dist/types/translations/index.d.ts +44 -2529
  291. package/dist/types/translations/index.d.ts.map +1 -1
  292. package/dist/types/types/api/models/reports.d.ts +1 -1
  293. package/dist/types/types/api/models/reports.d.ts.map +1 -1
  294. package/dist/types/types/api/resources/ReportsResource.d.ts +18 -19
  295. package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
  296. package/dist/types/utils/types.d.ts +3 -0
  297. package/dist/types/utils/types.d.ts.map +1 -1
  298. package/package.json +8 -5
  299. package/dist/es/core/Localization/constants/locale.js +0 -7
  300. package/dist/types/components/external/TransactionsOverview/hooks/useResponsiveViewport.d.ts.map +0 -1
  301. package/dist/types/core/Localization/constants/locale.d.ts +0 -139
  302. package/dist/types/core/Localization/constants/locale.d.ts.map +0 -1
@@ -1,79 +1,81 @@
1
- var ri = Object.defineProperty;
2
- var oi = (m, i, e) => i in m ? ri(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e;
3
- var It = (m, i, e) => (oi(m, typeof i != "symbol" ? i + "" : i, e), e), Dt = (m, i, e) => {
1
+ var li = Object.defineProperty;
2
+ var fi = (m, i, e) => i in m ? li(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e;
3
+ var _t = (m, i, e) => (fi(m, typeof i != "symbol" ? i + "" : i, e), e), Ht = (m, i, e) => {
4
4
  if (!i.has(m))
5
5
  throw TypeError("Cannot " + e);
6
6
  };
7
- var t = (m, i, e) => (Dt(m, i, "read from private field"), e ? e.call(m) : i.get(m)), h = (m, i, e) => {
7
+ var t = (m, i, e) => (Ht(m, i, "read from private field"), e ? e.call(m) : i.get(m)), h = (m, i, e) => {
8
8
  if (i.has(m))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  i instanceof WeakSet ? i.add(m) : i.set(m, e);
11
- }, r = (m, i, e, o) => (Dt(m, i, "write to private field"), o ? o.call(m, e) : i.set(m, e), e);
12
- var c = (m, i, e) => (Dt(m, i, "access private method"), e);
11
+ }, r = (m, i, e, o) => (Ht(m, i, "write to private field"), o ? o.call(m, e) : i.set(m, e), e);
12
+ var l = (m, i, e) => (Ht(m, i, "access private method"), e);
13
13
  import { InteractionKeyCode as g } from "../../../../types.js";
14
- import { SELECT_NONE as ot, CALENDAR_CONTROLS as xt, SHIFT_BLOCK as ai, SHIFT_PERIOD as Lt, SHIFT_FRAME as ni, CALENDAR_SELECTIONS as ci, SELECT_MANY as j, FRAME_SIZES as li, FIRST_WEEK_DAYS as fi, CURSOR_NEXT_BLOCK as ui, CURSOR_PREV_BLOCK as mi, CURSOR_BLOCK_END as di, CURSOR_LINE_END as Si, CURSOR_BLOCK_START as Ei, CURSOR_LINE_START as Oi, CURSOR_DOWNWARD as Ri, CURSOR_UPWARD as gi, CURSOR_FORWARD as Ci, CURSOR_BACKWARD as ki, SELECT_ONE as at, SELECTION_FROM as O, SELECTION_TO as N, CONTROLS_NONE as Ti, CONTROLS_MINIMAL as pi, CONTROLS_ALL as Fi, SELECTION_COLLAPSE as bi } from "../constants.js";
15
- import { CalendarShiftControlsFlag as vt, CalendarShiftControlFlag as V } from "../types.js";
16
- import Ni from "../../../../../primitives/time/today/main.js";
17
- import { createIndexed as _t } from "../../../../../primitives/auxiliary/indexed/main.js";
18
- import { createWatchlist as yi, isWatchlistUnsubscribeToken as Ai } from "../../../../../primitives/reactive/watchlist/main.js";
19
- import { pickFrom as G } from "../../../../../utils/collection/main.js";
20
- import { boolify as z, boolOrTrue as Yt } from "../../../../../utils/value/bool.js";
21
- import { createEffectStack as jt } from "../../../../../primitives/reactive/effectStack/main.js";
22
- import Ii from "../timeframe/frames/MonthFrame.js";
14
+ import { SELECT_NONE as nt, CALENDAR_CONTROLS as jt, SHIFT_BLOCK as ui, SHIFT_PERIOD as wt, SHIFT_FRAME as mi, CALENDAR_SELECTIONS as di, SELECT_MANY as Y, FRAME_SIZES as Si, FIRST_WEEK_DAYS as Ei, CURSOR_NEXT_BLOCK as Oi, CURSOR_PREV_BLOCK as Ri, CURSOR_BLOCK_END as gi, CURSOR_LINE_END as Ci, CURSOR_BLOCK_START as Ti, CURSOR_LINE_START as pi, CURSOR_DOWNWARD as ki, CURSOR_UPWARD as Fi, CURSOR_FORWARD as bi, CURSOR_BACKWARD as yi, SELECT_ONE as ct, SELECTION_FROM as O, SELECTION_TO as N, CONTROLS_NONE as Ni, CONTROLS_MINIMAL as Ai, CONTROLS_ALL as Di, SELECTION_COLLAPSE as Ii } from "../constants.js";
15
+ import { withTimezone as Wt } from "../utils.js";
16
+ import { CalendarShiftControlsFlag as Vt, CalendarShiftControlFlag as j } from "../types.js";
17
+ import Gt from "../../../../../primitives/time/today/main.js";
18
+ import { createIndexed as Mt } from "../../../../../primitives/auxiliary/indexed/main.js";
19
+ import { createWatchlist as Li, isWatchlistUnsubscribeToken as _i } from "../../../../../primitives/reactive/watchlist/main.js";
20
+ import { pickFrom as V } from "../../../../../utils/collection/main.js";
21
+ import { boolify as G, boolOrTrue as Xt } from "../../../../../utils/value/bool.js";
22
+ import { createEffectStack as qt } from "../../../../../primitives/reactive/effectStack/main.js";
23
+ import Hi from "../timeframe/frames/MonthFrame.js";
24
+ import { timezoneToSystem as lt, systemToTimezone as ft } from "../../../../../core/Localization/datetime/restamper/utils.js";
23
25
  import { EMPTY_OBJECT as X } from "../../../../../utils/value/constants.js";
24
- import { withFreezeProxyHandlers as Di, structFrom as Li, struct as _i } from "../../../../../utils/struct/main.js";
25
- import { isNullish as nt, isFunction as D, isString as Vt, isUndefined as Gt } from "../../../../../utils/value/is.js";
26
- import { noop as zt } from "../../../../../utils/common.js";
27
- import { isBitSafeInteger as Hi } from "../../../../../utils/value/number.js";
28
- var qt, Jt, f, p, s, F, C, b, E, w, R, K, A, I, k, y, U, ft, L, T, ut, _, x, M, Z, mt, dt, St, Et, Ot, Rt, gt, Ct, Zt, kt, $t, Tt, Qt, pt, v, ct, P, q, $, Ht, Ft, ti, bt, ii, Nt, si, yt, ei, Q, Wt, At, hi, B, J, tt, wt, Y, lt, it, Mt, st, Pt, et, Bt, ht, Kt;
29
- const l = class l {
26
+ import { withFreezeProxyHandlers as wi, structFrom as Wi, struct as Mi } from "../../../../../utils/struct/main.js";
27
+ import { isNullish as ut, isFunction as L, isString as Jt, isUndefined as Zt } from "../../../../../utils/value/is.js";
28
+ import { noop as $t } from "../../../../../utils/common.js";
29
+ import { isBitSafeInteger as Pi } from "../../../../../utils/value/number.js";
30
+ var ti, ii, u, F, s, b, C, y, E, W, R, K, D, I, T, A, U, Z, _, p, St, H, x, M, $, Et, Ot, Rt, gt, Ct, Tt, pt, kt, si, Ft, ei, bt, hi, yt, z, mt, P, q, Q, Pt, Nt, ri, At, oi, Dt, ai, It, ni, tt, Bt, Lt, ci, B, J, it, Kt, v, dt, st, Ut, et, xt, ht, zt, rt, vt;
31
+ const f = class f {
30
32
  constructor() {
31
33
  h(this, P);
32
- h(this, $);
33
- h(this, Ft);
34
- h(this, bt);
35
- h(this, Nt);
36
- h(this, yt);
37
34
  h(this, Q);
35
+ h(this, Nt);
38
36
  h(this, At);
39
- h(this, B);
37
+ h(this, Dt);
38
+ h(this, It);
40
39
  h(this, tt);
41
- h(this, Y);
40
+ h(this, Lt);
41
+ h(this, B);
42
42
  h(this, it);
43
+ h(this, v);
43
44
  h(this, st);
44
45
  h(this, et);
45
46
  h(this, ht);
46
- It(this, "grid");
47
- It(this, "kill");
48
- h(this, f, X);
49
- h(this, p, !1);
47
+ h(this, rt);
48
+ _t(this, "grid");
49
+ _t(this, "kill");
50
+ h(this, u, X);
51
+ h(this, F, !1);
50
52
  h(this, s, void 0);
51
- h(this, F, void 0);
53
+ h(this, b, void 0);
52
54
  h(this, C, void 0);
53
- h(this, b, !1);
54
- h(this, E, ot);
55
- h(this, w, !1);
55
+ h(this, y, !1);
56
+ h(this, E, nt);
57
+ h(this, W, !1);
56
58
  h(this, R, void 0);
57
- h(this, K, (qt = t(this, R)) == null ? void 0 : qt.join(" "));
58
- h(this, A, void 0);
59
+ h(this, K, (ti = t(this, R)) == null ? void 0 : ti.join(" "));
60
+ h(this, D, void 0);
59
61
  h(this, I, void 0);
60
- h(this, k, void 0);
61
- h(this, y, void 0);
62
- h(this, U, void 0);
63
- h(this, ft, Ni());
64
- h(this, L, []);
65
62
  h(this, T, void 0);
66
- h(this, ut, new Proxy(_t(() => {
63
+ h(this, A, void 0);
64
+ h(this, U, void 0);
65
+ h(this, Z, Gt());
66
+ h(this, _, []);
67
+ h(this, p, void 0);
68
+ h(this, St, new Proxy(Mt(() => {
67
69
  var i;
68
- return ((i = t(this, T)) == null ? void 0 : i.length) ?? 0;
69
- }, c(this, Q, Wt).bind(this)), Di({
70
+ return ((i = t(this, p)) == null ? void 0 : i.length) ?? 0;
71
+ }, l(this, tt, Bt).bind(this)), wi({
70
72
  get: (i, e, o) => {
71
- var n, u;
72
- const a = ((n = t(this, T)) == null ? void 0 : n.indexOf(e)) ?? -1;
73
- return a >= 0 ? (u = c(this, Q, Wt).call(this, a)) == null ? void 0 : u[1] : Reflect.get(i, e, o);
73
+ var a, c;
74
+ const n = ((a = t(this, p)) == null ? void 0 : a.indexOf(e)) ?? -1;
75
+ return n >= 0 ? (c = l(this, tt, Bt).call(this, n)) == null ? void 0 : c[1] : Reflect.get(i, e, o);
74
76
  }
75
77
  })));
76
- h(this, _, yi({
78
+ h(this, H, Li({
77
79
  blocks: () => {
78
80
  var i;
79
81
  return (i = t(this, s)) == null ? void 0 : i.size;
@@ -82,7 +84,7 @@ const l = class l {
82
84
  var i;
83
85
  return (i = t(this, s)) == null ? void 0 : i.units;
84
86
  },
85
- controls: () => G(xt, t(this, f).controls),
87
+ controls: () => V(jt, t(this, u).controls),
86
88
  cursor: () => {
87
89
  var i;
88
90
  return (i = t(this, s)) == null ? void 0 : i.cursor;
@@ -96,27 +98,31 @@ const l = class l {
96
98
  var i;
97
99
  return (i = t(this, s)) == null ? void 0 : i.locale;
98
100
  },
99
- minified: () => z(t(this, f).minified),
101
+ minified: () => G(t(this, u).minified),
100
102
  origin: () => {
101
103
  var i;
102
104
  return (i = t(this, s)) == null ? void 0 : i.getTimestampAtIndex(0);
103
105
  },
106
+ timezone: () => {
107
+ var i;
108
+ return (i = t(this, s)) == null ? void 0 : i.timezone;
109
+ },
104
110
  to: () => {
105
111
  var i;
106
112
  return (i = t(this, s)) == null ? void 0 : i.selectionEnd;
107
113
  },
108
- today: () => t(this, ft).timestamp
114
+ today: () => t(this, Z).timestamp
109
115
  }));
110
- h(this, x, (Jt = t(this, _)) == null ? void 0 : Jt.snapshot);
111
- h(this, M, jt(() => {
116
+ h(this, x, (ii = t(this, H)) == null ? void 0 : ii.snapshot);
117
+ h(this, M, qt(() => {
112
118
  var i;
113
- return t(this, k) && ((i = t(this, _)) == null ? void 0 : i.requestNotification());
119
+ return t(this, T) && ((i = t(this, H)) == null ? void 0 : i.requestNotification());
114
120
  }));
115
- h(this, Z, jt(() => {
121
+ h(this, $, qt(() => {
116
122
  var i;
117
- return (i = t(this, k)) == null ? void 0 : i.call(t(this, P, q));
123
+ return (i = t(this, T)) == null ? void 0 : i.call(t(this, P, q));
118
124
  }));
119
- h(this, mt, Li(_t(() => {
125
+ h(this, Et, Wi(Mt(() => {
120
126
  var i;
121
127
  return ((i = t(this, s)) == null ? void 0 : i.size) ?? 0;
122
128
  }, (i) => {
@@ -124,43 +130,43 @@ const l = class l {
124
130
  return (e = t(this, s)) == null ? void 0 : e.frameBlocks[i];
125
131
  }), {
126
132
  config: {
127
- value: Object.defineProperties((i) => (i && c(this, bt, ii).call(this, i), t(this, P, q)), {
133
+ value: Object.defineProperties((i) => (i && l(this, At, oi).call(this, i), t(this, P, q)), {
128
134
  cursorIndex: {
129
- get: () => t(this, A),
135
+ get: () => t(this, D),
130
136
  set: (i) => {
131
- t(this, p) || (nt(i) ? r(this, A, void 0) : D(i) && r(this, A, i));
137
+ t(this, F) || (ut(i) ? r(this, D, void 0) : L(i) && r(this, D, i));
132
138
  }
133
139
  },
134
140
  shiftFactor: {
135
141
  get: () => t(this, I),
136
142
  set: (i) => {
137
- t(this, p) || (nt(i) ? r(this, I, void 0) : D(i) && r(this, I, i));
143
+ t(this, F) || (ut(i) ? r(this, I, void 0) : L(i) && r(this, I, i));
138
144
  }
139
145
  },
140
146
  watch: {
141
- get: () => t(this, k),
147
+ get: () => t(this, T),
142
148
  set: (i) => {
143
- var e, o, a, n, u;
144
- if (!t(this, p))
145
- if (D(i)) {
146
- if (r(this, k, i), !t(this, y)) {
147
- const d = (e = t(this, M)) == null ? void 0 : e.bind(t(l, pt).bind(this));
148
- d && (r(this, y, (o = t(this, M)) == null ? void 0 : o.bind(zt)), r(this, U, (n = t(this, _)) == null ? void 0 : n.subscribe((a = t(this, Z)) == null ? void 0 : a.bind(d))), t(this, s) && (t(this, s).effect = t(this, y)));
149
+ var e, o, n, a, c;
150
+ if (!t(this, F))
151
+ if (L(i)) {
152
+ if (r(this, T, i), !t(this, A)) {
153
+ const d = (e = t(this, M)) == null ? void 0 : e.bind(t(f, yt).bind(this));
154
+ d && (r(this, A, (o = t(this, M)) == null ? void 0 : o.bind($t)), r(this, U, (a = t(this, H)) == null ? void 0 : a.subscribe((n = t(this, $)) == null ? void 0 : n.bind(d))), t(this, s) && (t(this, s).effect = t(this, A)));
149
155
  }
150
- if (!t(this, w))
156
+ if (!t(this, W))
151
157
  return;
152
- r(this, w, !1), (u = t(this, y)) == null || u.call(this);
158
+ r(this, W, !1), (c = t(this, A)) == null || c.call(this);
153
159
  } else
154
- nt(i) && r(this, k, void 0);
160
+ ut(i) && r(this, T, void 0);
155
161
  }
156
162
  }
157
163
  })
158
164
  },
159
165
  controls: {
160
- value: t(this, ut)
166
+ value: t(this, St)
161
167
  },
162
168
  cursor: {
163
- value: Object.defineProperties((i) => c(l, v, ct).call(this, (e) => !!(e && c(this, Nt, si).call(this, e)))(i), {
169
+ value: Object.defineProperties((i) => l(f, z, mt).call(this, (e) => !!(e && l(this, Dt, ai).call(this, e)))(i), {
164
170
  valueOf: {
165
171
  value: () => {
166
172
  var i;
@@ -171,22 +177,22 @@ const l = class l {
171
177
  },
172
178
  highlight: {
173
179
  value: (() => {
174
- const i = () => t(this, F) === t(this, C) && Gt(t(this, C)), e = (o) => (a) => c(l, v, ct).call(this, (n) => {
175
- var u, d, S, H, W;
176
- if (!(t(this, p) || !t(this, E) || t(this, E) === ot)) {
177
- if (nt(n))
178
- return c(this, tt, wt).call(this);
179
- i() ? (d = t(this, s)) == null || d.updateSelection(n, bi) : ((u = t(this, s)) == null || u.updateSelection(n, o), t(this, E) === j && t(this, R) && c(this, Y, lt).call(this, n, o === O ? N : O, t(this, R))), r(this, F, (S = t(this, s)) == null ? void 0 : S.selectionStart), r(this, C, (H = t(this, s)) == null ? void 0 : H.selectionEnd), (W = t(this, s)) == null || W.shiftFrameToTimestamp(o === O ? t(this, F) : t(this, C));
180
+ const i = () => t(this, b) === t(this, C) && Zt(t(this, C)), e = (o) => (n) => l(f, z, mt).call(this, (a) => {
181
+ var c, d, S, k, w;
182
+ if (!(t(this, F) || !t(this, E) || t(this, E) === nt)) {
183
+ if (ut(a))
184
+ return l(this, it, Kt).call(this);
185
+ i() ? (d = t(this, s)) == null || d.updateSelection(a, Ii) : ((c = t(this, s)) == null || c.updateSelection(a, o), t(this, E) === Y && t(this, R) && l(this, v, dt).call(this, a, o === O ? N : O, t(this, R))), r(this, b, (S = t(this, s)) == null ? void 0 : S.selectionStart), r(this, C, (k = t(this, s)) == null ? void 0 : k.selectionEnd), (w = t(this, s)) == null || w.shiftFrameToTimestamp(o === O ? t(this, b) : t(this, C));
180
186
  }
181
- })(a);
182
- return _i({
187
+ })(n);
188
+ return Mi({
183
189
  blank: {
184
190
  get: i
185
191
  },
186
192
  from: {
187
193
  get: () => {
188
194
  var o;
189
- return ((o = t(this, s)) == null ? void 0 : o.selectionStart) ?? t(this, F);
195
+ return ((o = t(this, s)) == null ? void 0 : o.selectionStart) ?? t(this, b);
190
196
  },
191
197
  set: e(O)
192
198
  },
@@ -209,231 +215,235 @@ const l = class l {
209
215
  weekdays: {
210
216
  get: () => {
211
217
  var i;
212
- return ((i = t(this, s)) == null ? void 0 : i.daysOfWeek) ?? t(l, Et);
218
+ return ((i = t(this, s)) == null ? void 0 : i.daysOfWeek) ?? t(f, gt);
213
219
  }
214
220
  }
215
221
  }));
216
- this.grid = t(this, mt), this.kill = c(this, yt, ei).bind(this);
222
+ this.grid = t(this, Et), this.kill = l(this, It, ni).bind(this);
217
223
  }
218
224
  };
219
- f = new WeakMap(), p = new WeakMap(), s = new WeakMap(), F = new WeakMap(), C = new WeakMap(), b = new WeakMap(), E = new WeakMap(), w = new WeakMap(), R = new WeakMap(), K = new WeakMap(), A = new WeakMap(), I = new WeakMap(), k = new WeakMap(), y = new WeakMap(), U = new WeakMap(), ft = new WeakMap(), L = new WeakMap(), T = new WeakMap(), ut = new WeakMap(), _ = new WeakMap(), x = new WeakMap(), M = new WeakMap(), Z = new WeakMap(), mt = new WeakMap(), dt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), gt = new WeakMap(), Ct = new WeakSet(), Zt = function(i) {
220
- if (!Vt(i) || !t(l, dt).test(i))
225
+ u = new WeakMap(), F = new WeakMap(), s = new WeakMap(), b = new WeakMap(), C = new WeakMap(), y = new WeakMap(), E = new WeakMap(), W = new WeakMap(), R = new WeakMap(), K = new WeakMap(), D = new WeakMap(), I = new WeakMap(), T = new WeakMap(), A = new WeakMap(), U = new WeakMap(), Z = new WeakMap(), _ = new WeakMap(), p = new WeakMap(), St = new WeakMap(), H = new WeakMap(), x = new WeakMap(), M = new WeakMap(), $ = new WeakMap(), Et = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), gt = new WeakMap(), Ct = new WeakMap(), Tt = new WeakMap(), pt = new WeakMap(), kt = new WeakSet(), si = function(i) {
226
+ if (!Jt(i) || !t(f, Ot).test(i))
221
227
  return;
222
228
  const e = i.split(/\s+/);
223
229
  return Array.from({
224
230
  length: 6
225
- }, (o, a) => parseInt(e[a] ?? "0"));
226
- }, kt = new WeakSet(), $t = function(i) {
227
- switch (i & ~V.PREV) {
228
- case V.FRAME:
229
- return ni;
230
- case V.PERIOD:
231
- return Lt;
232
- case V.BLOCK:
231
+ }, (o, n) => parseInt(e[n] ?? "0"));
232
+ }, Ft = new WeakSet(), ei = function(i) {
233
+ switch (i & ~j.PREV) {
234
+ case j.FRAME:
235
+ return mi;
236
+ case j.PERIOD:
237
+ return wt;
238
+ case j.BLOCK:
233
239
  default:
234
- return ai;
240
+ return ui;
235
241
  }
236
- }, Tt = new WeakSet(), Qt = function(i) {
237
- return i & V.PREV ? -1 : 1;
238
- }, pt = new WeakMap(), v = new WeakSet(), ct = function(i) {
242
+ }, bt = new WeakSet(), hi = function(i) {
243
+ return i & j.PREV ? -1 : 1;
244
+ }, yt = new WeakMap(), z = new WeakSet(), mt = function(i) {
239
245
  var e;
240
246
  return ((e = t(this, M)) == null ? void 0 : e.bind(i)) ?? i;
241
247
  }, P = new WeakSet(), q = function() {
242
248
  return {
243
- ...t(this, f)
249
+ ...t(this, u)
244
250
  };
245
- }, $ = new WeakSet(), Ht = function() {
246
- return new Ii();
247
- }, Ft = new WeakSet(), ti = function(i) {
251
+ }, Q = new WeakSet(), Pt = function() {
252
+ return new Hi();
253
+ }, Nt = new WeakSet(), ri = function(i) {
248
254
  return !!t(this, s) && !(i > 0 ? t(this, s).isAtEnd : t(this, s).isAtStart);
249
- }, bt = new WeakSet(), ii = function(i) {
250
- var a, n;
251
- if (t(this, p))
255
+ }, At = new WeakSet(), oi = function(i) {
256
+ var n, a;
257
+ if (t(this, F))
252
258
  return;
253
259
  r(this, R, void 0);
254
- const e = i == null ? void 0 : i.highlight, o = z(t(this, f).minified);
255
- if (Vt(e) ? r(this, R, c(a = l, Ct, Zt).call(a, e)) && r(this, E, j) : r(this, E, G(ci, e, t(this, E))), r(this, f, {
256
- ...t(this, f),
260
+ const e = i == null ? void 0 : i.highlight, o = G(t(this, u).minified);
261
+ if (Jt(e) ? r(this, R, l(n = f, kt, si).call(n, e)) && r(this, E, Y) : r(this, E, V(di, e, t(this, E))), r(this, u, {
262
+ ...t(this, u),
257
263
  ...i,
258
- blocks: G(li, i == null ? void 0 : i.blocks, t(this, f).blocks),
259
- controls: G(xt, i == null ? void 0 : i.controls, t(this, f).controls),
260
- firstWeekDay: G(fi, i == null ? void 0 : i.firstWeekDay, t(this, f).firstWeekDay),
261
- fixedBlockHeight: z(i == null ? void 0 : i.fixedBlockHeight, t(this, f).fixedBlockHeight),
264
+ blocks: V(Si, i == null ? void 0 : i.blocks, t(this, u).blocks),
265
+ controls: V(jt, i == null ? void 0 : i.controls, t(this, u).controls),
266
+ firstWeekDay: V(Ei, i == null ? void 0 : i.firstWeekDay, t(this, u).firstWeekDay),
267
+ fixedBlockHeight: G(i == null ? void 0 : i.fixedBlockHeight, t(this, u).fixedBlockHeight),
262
268
  highlight: t(this, E),
263
- minified: z(i == null ? void 0 : i.minified, t(this, f).minified),
264
- trackCurrentDay: z(i == null ? void 0 : i.trackCurrentDay, t(this, f).trackCurrentDay)
265
- }), !D(t(this, k))) {
266
- t(this, s) ? r(this, w, !0) : (r(this, s, t(this, $, Ht)), c(this, st, Pt).call(this), c(this, ht, Kt).call(this), c(this, et, Bt).call(this));
269
+ minified: G(i == null ? void 0 : i.minified, t(this, u).minified),
270
+ trackCurrentDay: G(i == null ? void 0 : i.trackCurrentDay, t(this, u).trackCurrentDay)
271
+ }), !L(t(this, T))) {
272
+ t(this, s) ? r(this, W, !0) : (r(this, s, t(this, Q, Pt)), l(this, et, xt).call(this), l(this, rt, vt).call(this), l(this, ht, zt).call(this));
267
273
  return;
268
274
  }
269
- (!t(this, s) || o !== t(this, f).minified) && (r(this, s, t(this, $, Ht)), t(this, s).effect = t(this, y)), c(this, st, Pt).call(this), (n = t(this, y)) == null || n.call(this);
270
- }, Nt = new WeakSet(), si = function(i) {
271
- if (i && t(this, s) && D(t(this, k))) {
275
+ (!t(this, s) || o !== t(this, u).minified) && (r(this, s, t(this, Q, Pt)), t(this, s).effect = t(this, A)), l(this, et, xt).call(this), (a = t(this, A)) == null || a.call(this);
276
+ }, Dt = new WeakSet(), ai = function(i) {
277
+ if (i && t(this, s) && L(t(this, T))) {
272
278
  if (i instanceof KeyboardEvent) {
273
279
  switch (i.code) {
274
280
  case g.ARROW_LEFT:
275
- t(this, s).shiftFrameCursor(ki);
281
+ t(this, s).shiftFrameCursor(yi);
276
282
  break;
277
283
  case g.ARROW_RIGHT:
278
- t(this, s).shiftFrameCursor(Ci);
284
+ t(this, s).shiftFrameCursor(bi);
279
285
  break;
280
286
  case g.ARROW_UP:
281
- t(this, s).shiftFrameCursor(gi);
287
+ t(this, s).shiftFrameCursor(Fi);
282
288
  break;
283
289
  case g.ARROW_DOWN:
284
- t(this, s).shiftFrameCursor(Ri);
290
+ t(this, s).shiftFrameCursor(ki);
285
291
  break;
286
292
  case g.HOME:
287
- t(this, s).shiftFrameCursor(i.ctrlKey ? Ei : Oi);
293
+ t(this, s).shiftFrameCursor(i.ctrlKey ? Ti : pi);
288
294
  break;
289
295
  case g.END:
290
- t(this, s).shiftFrameCursor(i.ctrlKey ? di : Si);
296
+ t(this, s).shiftFrameCursor(i.ctrlKey ? gi : Ci);
291
297
  break;
292
298
  case g.PAGE_UP:
293
- i.shiftKey ? t(this, s).shiftFrameByOffset(-1, Lt) : t(this, s).shiftFrameCursor(mi);
299
+ i.shiftKey ? t(this, s).shiftFrameByOffset(-1, wt) : t(this, s).shiftFrameCursor(Ri);
294
300
  break;
295
301
  case g.PAGE_DOWN:
296
- i.shiftKey ? t(this, s).shiftFrameByOffset(1, Lt) : t(this, s).shiftFrameCursor(ui);
302
+ i.shiftKey ? t(this, s).shiftFrameByOffset(1, wt) : t(this, s).shiftFrameCursor(Oi);
297
303
  break;
298
304
  case g.SPACE:
299
305
  case g.ENTER:
300
- return c(this, B, J).call(this), !0;
306
+ return l(this, B, J).call(this), !0;
301
307
  default:
302
308
  return;
303
309
  }
304
- return t(this, b) && c(this, B, J).call(this, X), !0;
310
+ return t(this, y) && l(this, B, J).call(this, X), !0;
305
311
  }
306
- if (i instanceof MouseEvent && t(l, St).includes(i.type) && D(t(this, A))) {
307
- const e = t(this, A).call(t(this, P, q), i);
308
- if (!Hi(e))
312
+ if (i instanceof MouseEvent && t(f, Rt).includes(i.type) && L(t(this, D))) {
313
+ const e = t(this, D).call(t(this, P, q), i);
314
+ if (!Pi(e))
309
315
  return;
310
316
  const o = i.type === "click";
311
- if (!(o || t(this, b)))
317
+ if (!(o || t(this, y)))
312
318
  return;
313
319
  if (t(this, s).shiftFrameCursor(e), t(this, s).cursor === e)
314
- return o ? c(this, B, J).call(this) : c(this, B, J).call(this, X), !0;
320
+ return o ? l(this, B, J).call(this) : l(this, B, J).call(this, X), !0;
315
321
  }
316
322
  }
317
- }, yt = new WeakSet(), ei = function() {
323
+ }, It = new WeakSet(), ni = function() {
318
324
  var i;
319
- t(this, p) || ((i = t(this, U)) == null || i.call(this), r(this, M, r(this, Z, r(this, A, r(this, s, r(this, E, r(this, K, r(this, x, r(this, R, r(this, I, r(this, U, r(this, _, r(this, y, r(this, k, void 0))))))))))))), r(this, f, X), r(this, b, r(this, w, !1)), r(this, p, !0));
320
- }, Q = new WeakSet(), Wt = function(i) {
321
- var o, a;
322
- if (!t(this, T) || i < 0 || i >= t(this, T).length)
325
+ t(this, F) || ((i = t(this, U)) == null || i.call(this), r(this, M, r(this, $, r(this, D, r(this, s, r(this, E, r(this, K, r(this, x, r(this, R, r(this, I, r(this, U, r(this, H, r(this, A, r(this, T, void 0))))))))))))), r(this, u, X), r(this, y, r(this, W, !1)), r(this, F, !0));
326
+ }, tt = new WeakSet(), Bt = function(i) {
327
+ var o, n;
328
+ if (!t(this, p) || i < 0 || i >= t(this, p).length)
323
329
  return;
324
- const e = t(this, T)[i];
325
- if (!t(this, L)[i]) {
326
- const n = vt[e], u = c(o = l, kt, $t).call(o, n), d = c(a = l, Tt, Qt).call(a, n);
327
- t(this, L)[i] = (...S) => c(l, v, ct).call(this, (...H) => {
328
- var Ut;
329
- const W = c(this, Ft, ti).call(this, d);
330
- if (!(W && H.length))
331
- return W;
332
- const rt = c(this, At, hi).call(this, e, H[0]);
333
- return Gt(rt) ? !1 : ((Ut = t(this, s)) == null || Ut.shiftFrameByOffset(d * rt, u), !0);
330
+ const e = t(this, p)[i];
331
+ if (!t(this, _)[i]) {
332
+ const a = Vt[e], c = l(o = f, Ft, ei).call(o, a), d = l(n = f, bt, hi).call(n, a);
333
+ t(this, _)[i] = (...S) => l(f, z, mt).call(this, (...k) => {
334
+ var at;
335
+ const w = l(this, Nt, ri).call(this, d);
336
+ if (!(w && k.length))
337
+ return w;
338
+ const ot = l(this, Lt, ci).call(this, e, k[0]);
339
+ return Zt(ot) ? !1 : ((at = t(this, s)) == null || at.shiftFrameByOffset(d * ot, c), !0);
334
340
  })(...S);
335
341
  }
336
- return [e, t(this, L)[i]];
337
- }, At = new WeakSet(), hi = function(i, e) {
338
- if (!(t(this, s) && D(t(this, k))))
342
+ return [e, t(this, _)[i]];
343
+ }, Lt = new WeakSet(), ci = function(i, e) {
344
+ if (!(t(this, s) && L(t(this, T))))
339
345
  return;
340
346
  if (e instanceof MouseEvent) {
341
347
  if (e.type !== "click")
342
348
  return;
343
349
  } else if (e instanceof KeyboardEvent) {
344
- if (!t(l, Ot).includes(e.code))
350
+ if (!t(f, Ct).includes(e.code))
345
351
  return;
346
352
  } else
347
353
  return;
348
354
  let o = 1;
349
- if (D(t(this, I))) {
350
- const a = Number(t(this, I).call(t(this, P, q), e, i));
351
- o = Number.isInteger(a) && a >= 1 ? a : o;
355
+ if (L(t(this, I))) {
356
+ const n = Number(t(this, I).call(t(this, P, q), e, i));
357
+ o = Number.isInteger(n) && n >= 1 ? n : o;
352
358
  }
353
359
  return o;
354
360
  }, B = new WeakSet(), J = function(i) {
355
- if (t(this, p) || !t(this, s))
361
+ if (t(this, F) || !t(this, s))
356
362
  return;
357
363
  switch (t(this, E)) {
358
- case j:
359
- case at:
364
+ case Y:
365
+ case ct:
360
366
  break;
361
- case ot:
367
+ case nt:
362
368
  default:
363
369
  return;
364
370
  }
365
- const e = t(this, s).cursor, o = Math.max(t(this, s).getTimestampAtIndex(e), t(this, s).timeslice.from), a = Math.min(t(this, s).getTimestampAtIndex(e + 1) - 1, t(this, s).timeslice.to), n = t(this, R);
366
- if (t(this, E) === at || t(this, s).blankSelection || n)
367
- if (r(this, b, !(t(this, E) === at || n)), t(this, E) === j && n) {
368
- const u = a >= t(this, s).selectionEnd ? O : N;
369
- u === O ? t(this, s).updateSelection(a, N) : t(this, s).updateSelection(o, O), c(this, Y, lt).call(this, u === O ? t(this, s).selectionEnd : t(this, s).selectionStart, u, n);
371
+ const e = t(this, s).cursor, o = Math.max(t(this, s).getTimestampAtIndex(e), t(this, s).timeslice.from), n = Math.min(t(this, s).getTimestampAtIndex(e + 1) - 1, t(this, s).timeslice.to), a = t(this, R);
372
+ if (t(this, E) === ct || t(this, s).blankSelection || a)
373
+ if (r(this, y, !(t(this, E) === ct || a)), t(this, E) === Y && a) {
374
+ const c = n >= t(this, s).selectionEnd ? O : N;
375
+ c === O ? t(this, s).updateSelection(n, N) : t(this, s).updateSelection(o, O), l(this, v, dt).call(this, c === O ? t(this, s).selectionEnd : t(this, s).selectionStart, c, a);
370
376
  } else
371
- t(this, s).updateSelection(o, O), t(this, s).updateSelection(a, N);
377
+ t(this, s).updateSelection(o, O), t(this, s).updateSelection(n, N);
372
378
  else {
373
- const u = i === X;
374
- if (u || r(this, b, !1), o <= t(this, s).selectionStart) {
375
- const d = new Date(t(this, s).selectionStart), S = Math.min(d.setDate(d.getDate() + 1) - 1, t(this, s).timeslice.to);
376
- o === t(this, s).selectionStart && a <= S && t(this, s).updateSelection(a, N), t(this, s).updateSelection(o, O);
379
+ const c = i === X, d = Wt(t(this, s).timezone);
380
+ if (c || r(this, y, !1), o <= t(this, s).selectionStart) {
381
+ const S = new Date(lt(d, t(this, s).selectionStart)), k = Math.min(ft(d, S.setDate(S.getDate() + 1) - 1), t(this, s).timeslice.to);
382
+ o === t(this, s).selectionStart && n <= k && t(this, s).updateSelection(n, N), t(this, s).updateSelection(o, O);
377
383
  } else {
378
- const d = new Date(t(this, s).selectionEnd), S = Math.max(d.setHours(0, 0, 0, 0), t(this, s).timeslice.from);
379
- o <= t(this, s).selectionEnd && o >= S && t(this, s).updateSelection(o, O), t(this, s).updateSelection(a, N);
384
+ const S = new Date(lt(d, t(this, s).selectionEnd)), k = Math.max(ft(d, S.setHours(0, 0, 0, 0)), t(this, s).timeslice.from);
385
+ o <= t(this, s).selectionEnd && o >= k && t(this, s).updateSelection(o, O), t(this, s).updateSelection(n, N);
380
386
  }
381
- if (u)
387
+ if (c)
382
388
  return;
383
389
  }
384
- r(this, F, t(this, s).selectionStart), r(this, C, t(this, s).selectionEnd);
385
- }, tt = new WeakSet(), wt = function() {
390
+ r(this, b, t(this, s).selectionStart), r(this, C, t(this, s).selectionEnd);
391
+ }, it = new WeakSet(), Kt = function() {
386
392
  var i;
387
- (i = t(this, s)) == null || i.clearSelection(), r(this, b, !1), r(this, F, r(this, C, void 0));
388
- }, Y = new WeakSet(), lt = function(i, e, o) {
393
+ (i = t(this, s)) == null || i.clearSelection(), r(this, y, !1), r(this, b, r(this, C, void 0));
394
+ }, v = new WeakSet(), dt = function(i, e, o) {
395
+ var Yt;
389
396
  if (!t(this, s))
390
397
  return;
391
- const a = new Date(i), n = e === O ? -1 : 1, [u = 0, d = 0, S = 0, H = 0, W = 0, rt = 0] = o ?? [];
392
- a.setFullYear(a.getFullYear() + u * n, a.getMonth() + d * n, a.getDate() + S * n), a.setHours(a.getHours() + H * n, a.getMinutes() + W * n, a.getSeconds() + rt * n), t(this, s).updateSelection(a.getTime() - n, e);
393
- }, it = new WeakSet(), Mt = function() {
398
+ const n = Wt((Yt = t(this, s)) == null ? void 0 : Yt.timezone), a = new Date(lt(n, i)), c = e === O ? -1 : 1, [d = 0, S = 0, k = 0, w = 0, ot = 0, at = 0] = o ?? [];
399
+ a.setFullYear(a.getFullYear() + d * c, a.getMonth() + S * c, a.getDate() + k * c), a.setHours(a.getHours() + w * c, a.getMinutes() + ot * c, a.getSeconds() + at * c), t(this, s).updateSelection(ft(n, a.getTime() - c), e);
400
+ }, st = new WeakSet(), Ut = function() {
394
401
  var i, e;
395
- t(this, F) && ((i = t(this, s)) == null || i.updateSelection(t(this, F), O)), t(this, C) && ((e = t(this, s)) == null || e.updateSelection(t(this, C), N)), r(this, b, !1);
396
- }, st = new WeakSet(), Pt = function() {
397
- t(this, s) && (t(this, s).timeslice = t(this, f).timeslice, t(this, s).dynamicBlockHeight = !t(this, f).fixedBlockHeight, t(this, s).firstWeekDay = t(this, f).firstWeekDay, t(this, s).locale = t(this, f).locale, t(this, s).size = t(this, f).blocks, t(this, s).trackCurrentDay = t(this, f).trackCurrentDay, c(this, it, Mt).call(this));
398
- }, et = new WeakSet(), Bt = function() {
399
- var i, e, o, a, n;
402
+ t(this, b) && ((i = t(this, s)) == null || i.updateSelection(t(this, b), O)), t(this, C) && ((e = t(this, s)) == null || e.updateSelection(t(this, C), N)), r(this, y, !1);
403
+ }, et = new WeakSet(), xt = function() {
404
+ t(this, s) && (t(this, s).timeslice = t(this, u).timeslice, t(this, s).dynamicBlockHeight = !t(this, u).fixedBlockHeight, t(this, s).firstWeekDay = t(this, u).firstWeekDay, t(this, s).locale = t(this, u).locale, t(this, s).size = t(this, u).blocks, t(this, s).timezone = t(this, u).timezone, t(this, s).trackCurrentDay = t(this, u).trackCurrentDay, r(this, Z, Gt(t(this, s).timezone)), l(this, st, Ut).call(this));
405
+ }, ht = new WeakSet(), zt = function() {
406
+ var i, e, o, n, a, c;
400
407
  switch (t(this, E)) {
401
- case j:
402
- !Yt((i = t(this, s)) == null ? void 0 : i.blankSelection) && t(this, R) && c(this, Y, lt).call(this, (e = t(this, s)) == null ? void 0 : e.selectionStart, N, t(this, R));
408
+ case Y:
409
+ !Xt((i = t(this, s)) == null ? void 0 : i.blankSelection) && t(this, R) && l(this, v, dt).call(this, (e = t(this, s)) == null ? void 0 : e.selectionStart, N, t(this, R));
403
410
  break;
404
- case at:
405
- Yt((o = t(this, s)) == null ? void 0 : o.blankSelection) || (n = t(this, s)) == null || n.updateSelection(new Date((a = t(this, s)) == null ? void 0 : a.selectionStart).setHours(23, 59, 59, 999), N);
411
+ case ct:
412
+ if (!Xt((o = t(this, s)) == null ? void 0 : o.blankSelection)) {
413
+ const d = Wt((n = t(this, s)) == null ? void 0 : n.timezone), S = new Date(lt(d, (a = t(this, s)) == null ? void 0 : a.selectionStart));
414
+ (c = t(this, s)) == null || c.updateSelection(ft(d, S.setHours(23, 59, 59, 999)), N);
415
+ }
406
416
  break;
407
- case ot:
417
+ case nt:
408
418
  default:
409
- c(this, tt, wt).call(this);
419
+ l(this, it, Kt).call(this);
410
420
  return;
411
421
  }
412
- }, ht = new WeakSet(), Kt = function() {
422
+ }, rt = new WeakSet(), vt = function() {
413
423
  var i, e;
414
- switch ((i = t(this, _)) == null ? void 0 : i.snapshot.controls) {
415
- case Fi:
416
- r(this, T, t(l, Rt));
424
+ switch ((i = t(this, H)) == null ? void 0 : i.snapshot.controls) {
425
+ case Di:
426
+ r(this, p, t(f, Tt));
417
427
  break;
418
- case pi:
419
- r(this, T, t(l, gt));
428
+ case Ai:
429
+ r(this, p, t(f, pt));
420
430
  break;
421
- case Ti:
431
+ case Ni:
422
432
  default:
423
- r(this, T, void 0);
433
+ r(this, p, void 0);
424
434
  }
425
- t(this, L).length = 0, t(this, L).length = ((e = t(this, T)) == null ? void 0 : e.length) ?? 0;
426
- }, h(l, Ct), h(l, kt), h(l, Tt), h(l, v), h(l, dt, /^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/), h(l, St, ["click", "mouseover", "pointerover"]), h(l, Et, _t(0, zt)), h(l, Ot, [g.ENTER, g.SPACE]), h(l, Rt, Object.keys(vt).filter((i) => isNaN(+i))), h(l, gt, ["PREV", "NEXT"]), h(l, pt, function(i) {
427
- var u, d;
428
- if (Ai(i))
435
+ t(this, _).length = 0, t(this, _).length = ((e = t(this, p)) == null ? void 0 : e.length) ?? 0;
436
+ }, h(f, kt), h(f, Ft), h(f, bt), h(f, z), h(f, Ot, /^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/), h(f, Rt, ["click", "mouseover", "pointerover"]), h(f, gt, Mt(0, $t)), h(f, Ct, [g.ENTER, g.SPACE]), h(f, Tt, Object.keys(Vt).filter((i) => isNaN(+i))), h(f, pt, ["PREV", "NEXT"]), h(f, yt, function(i) {
437
+ var c, d;
438
+ if (_i(i))
429
439
  return;
430
- let e = !1, o = !1, a = !1;
431
- const n = (u = t(this, R)) == null ? void 0 : u.join(" ");
440
+ let e = !1, o = !1, n = !1;
441
+ const a = (c = t(this, R)) == null ? void 0 : c.join(" ");
432
442
  for (const S of Object.keys(i))
433
- i[S] !== ((d = t(this, x)) == null ? void 0 : d[S]) && (S === "controls" ? e = !0 : S === "highlight" ? o = !0 : (S === "from" || S === "to") && (a = !0));
434
- t(this, K) !== n && (r(this, K, n), o = !0), r(this, x, i), t(this, b) && !a && c(this, it, Mt).call(this), e && c(this, ht, Kt).call(this), o && c(this, et, Bt).call(this);
443
+ i[S] !== ((d = t(this, x)) == null ? void 0 : d[S]) && (S === "controls" ? e = !0 : S === "highlight" ? o = !0 : (S === "from" || S === "to") && (n = !0));
444
+ t(this, K) !== a && (r(this, K, a), o = !0), r(this, x, i), t(this, y) && !n && l(this, st, Ut).call(this), e && l(this, rt, vt).call(this), o && l(this, ht, zt).call(this);
435
445
  });
436
- let Xt = l;
446
+ let Qt = f;
437
447
  export {
438
- Xt as default
448
+ Qt as default
439
449
  };