@adyen/adyen-platform-experience-web 0.1.2 → 1.0.0-beta

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 (784) hide show
  1. package/README.md +13 -13
  2. package/dist/AmountSkeleton.css +23 -0
  3. package/dist/BalanceAccountSelector.css +4 -0
  4. package/dist/BaseButton.css +14 -0
  5. package/dist/BaseList.css +5 -0
  6. package/dist/Button.css +114 -0
  7. package/dist/ButtonActions-eb064f69.mjs +46 -0
  8. package/dist/ButtonActions.css +28 -0
  9. package/dist/CalendarGrid.css +113 -0
  10. package/dist/CopyText.css +18 -0
  11. package/dist/DatePicker.css +64 -0
  12. package/dist/ErrorMessageDisplay.css +20 -0
  13. package/dist/ErrorPanel.css +15 -0
  14. package/dist/ExpandableCard.css +71 -0
  15. package/dist/FilterBar.css +40 -0
  16. package/dist/FilterButton.css +48 -0
  17. package/dist/Img.css +7 -0
  18. package/dist/InputBase.css +175 -0
  19. package/dist/Modal.css +110 -0
  20. package/dist/Pagination.css +25 -0
  21. package/dist/Popover.css +127 -0
  22. package/dist/PopoverDismissButton.css +12 -0
  23. package/dist/RangeSelection.css +26 -0
  24. package/dist/Select.css +149 -0
  25. package/dist/SkeletonBody.css +154 -0
  26. package/dist/Spinner.css +50 -0
  27. package/dist/SummaryItem.css +37 -0
  28. package/dist/Tag-6d02fd64.mjs +32 -0
  29. package/dist/Tag.css +34 -0
  30. package/dist/Tooltip.css +7 -0
  31. package/dist/TotalsCard.css +14 -0
  32. package/dist/TransactionDetails.css +74 -0
  33. package/dist/TransactionsDisplay.css +4 -0
  34. package/dist/TransactionsOverview.css +29 -0
  35. package/dist/TransactionsOverviewContainer.css +3 -0
  36. package/dist/TransactionsTable.css +18 -0
  37. package/dist/Typography-11b95870.mjs +68 -0
  38. package/dist/Typography.css +57 -0
  39. package/dist/cjs/ModalContent-f4990141.js +10 -0
  40. package/dist/cjs/ModalContent-f4990141.js.map +1 -0
  41. package/dist/cjs/index-8c098f20.js +10401 -0
  42. package/dist/cjs/index-8c098f20.js.map +1 -0
  43. package/dist/cjs/index.css +1709 -0
  44. package/dist/cjs/index.js +35 -1
  45. package/dist/cjs/index.js.map +1 -1
  46. package/dist/compat.module-a4d537ff.mjs +237 -0
  47. package/dist/en-US-1daadfc1.mjs +371 -0
  48. package/dist/es/components/external/BaseElement.js +89 -49
  49. package/dist/es/components/external/EventEmitter.js +28 -17
  50. package/dist/es/components/external/FormElement.js +78 -0
  51. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +20 -15
  52. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +43 -42
  53. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -10
  54. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +39 -28
  55. package/dist/es/components/external/TransactionDetails/index.js +4 -0
  56. package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +35 -0
  57. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +12 -0
  58. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +8 -0
  59. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +31 -0
  60. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +6 -0
  61. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +25 -0
  62. package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +41 -0
  63. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +56 -0
  64. package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +4 -0
  65. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +12 -0
  66. package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +12 -0
  67. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +33 -0
  68. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +15 -0
  69. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +27 -0
  70. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +13 -0
  71. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +31 -0
  72. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +11 -0
  73. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +60 -0
  74. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +22 -0
  75. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +16 -0
  76. package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +21 -0
  77. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +61 -0
  78. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +50 -0
  79. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +66 -0
  80. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +6 -0
  81. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +91 -0
  82. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +6 -0
  83. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +179 -0
  84. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +8 -0
  85. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +52 -0
  86. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +6 -0
  87. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +71 -0
  88. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +112 -0
  89. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +12 -0
  90. package/dist/es/components/external/{Transactions → TransactionsOverview}/components/utils.js +13 -7
  91. package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +41 -0
  92. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +16 -0
  93. package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +37 -0
  94. package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +33 -0
  95. package/dist/es/components/external/TransactionsOverview/index.js +6 -0
  96. package/dist/es/components/external/UIElement.js +51 -39
  97. package/dist/es/components/external/index.js +8 -0
  98. package/dist/es/components/index.js +11 -0
  99. package/dist/es/components/internal/BaseButton/BaseButton.js +22 -13
  100. package/dist/es/components/internal/BaseButton/constants.js +2 -2
  101. package/dist/es/components/internal/BaseButton/index.js +4 -0
  102. package/dist/es/components/internal/BaseList/BaseList.js +8 -5
  103. package/dist/es/components/internal/BaseList/constants.js +2 -2
  104. package/dist/es/components/internal/Button/Button.js +41 -39
  105. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +8 -27
  106. package/dist/es/components/internal/Button/constants.js +16 -9
  107. package/dist/es/components/internal/Button/hooks/useButton.js +16 -12
  108. package/dist/es/components/internal/Button/index.js +4 -0
  109. package/dist/es/components/internal/Calendar/Calendar.js +21 -20
  110. package/dist/es/components/internal/Calendar/calendar/constants.js +70 -35
  111. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +554 -317
  112. package/dist/es/components/internal/Calendar/calendar/facade/index.js +46 -37
  113. package/dist/es/components/internal/Calendar/calendar/index.js +4 -0
  114. package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +46 -34
  115. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +5 -31
  116. package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +16 -14
  117. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +221 -122
  118. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +418 -238
  119. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +197 -0
  120. package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +8 -0
  121. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +63 -40
  122. package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +139 -0
  123. package/dist/es/components/internal/Calendar/calendar/timerange/index.js +4 -0
  124. package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +14 -0
  125. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
  126. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +69 -0
  127. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +27 -16
  128. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +69 -0
  129. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
  130. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +108 -0
  131. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +23 -14
  132. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +29 -21
  133. package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +15 -0
  134. package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +19 -0
  135. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
  136. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +46 -0
  137. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
  138. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +85 -0
  139. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +13 -9
  140. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +49 -0
  141. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +83 -49
  142. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +61 -38
  143. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +21 -17
  144. package/dist/es/components/internal/Calendar/calendar/utils.js +22 -15
  145. package/dist/es/components/internal/Calendar/clock/clock.js +41 -23
  146. package/dist/es/components/internal/Calendar/clock/clock.test.js +43 -0
  147. package/dist/es/components/internal/Calendar/clock/index.js +7 -0
  148. package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +60 -0
  149. package/dist/es/components/internal/Calendar/clock/today.js +57 -37
  150. package/dist/es/components/internal/Calendar/clock/today.test.js +98 -0
  151. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +12 -7
  152. package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +4 -0
  153. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +29 -27
  154. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +58 -33
  155. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +40 -30
  156. package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +4 -0
  157. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +49 -44
  158. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +115 -84
  159. package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +40 -35
  160. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +45 -23
  161. package/dist/es/components/internal/Calendar/index.js +4 -0
  162. package/dist/es/components/internal/CopyText/CopyText.js +41 -0
  163. package/dist/es/components/internal/DataGrid/DataGrid.js +10 -84
  164. package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
  165. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -31
  166. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +16 -14
  167. package/dist/es/components/internal/DataGrid/components/TableBody.js +26 -9
  168. package/dist/es/components/internal/DataGrid/components/TableCells.js +25 -17
  169. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +5 -76
  170. package/dist/es/components/internal/DataGrid/index.js +4 -0
  171. package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +190 -0
  172. package/dist/es/components/internal/DatePicker/DatePicker.js +62 -45
  173. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +46 -19
  174. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +7 -0
  175. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +85 -56
  176. package/dist/es/components/internal/DatePicker/index.js +4 -0
  177. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +53 -40
  178. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +74 -51
  179. package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +45 -0
  180. package/dist/es/components/internal/ExpandableCard/constants.js +20 -11
  181. package/dist/es/components/internal/FilterBar/FilterBar.js +46 -11
  182. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +17 -15
  183. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +68 -29
  184. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +68 -60
  185. package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +4 -0
  186. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +155 -99
  187. package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +4 -0
  188. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +10 -107
  189. package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +4 -0
  190. package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +8 -0
  191. package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +4 -0
  192. package/dist/es/components/internal/FilterBar/index.js +4 -0
  193. package/dist/es/components/internal/FormFields/InputBase.js +67 -54
  194. package/dist/es/components/internal/FormFields/InputText.js +6 -6
  195. package/dist/es/components/internal/FormFields/Select/Select.js +246 -182
  196. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +73 -69
  197. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +71 -49
  198. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +41 -37
  199. package/dist/es/components/internal/FormFields/Select/constants.js +49 -27
  200. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +35 -27
  201. package/dist/es/components/internal/FormFields/Select/index.js +4 -0
  202. package/dist/es/components/internal/FormFields/index.js +18 -0
  203. package/dist/es/components/internal/FormFields/utils.js +4 -0
  204. package/dist/es/components/internal/Image/Image.js +10 -10
  205. package/dist/es/components/internal/Img/Img.js +33 -19
  206. package/dist/es/components/internal/Img/index.js +4 -0
  207. package/dist/es/components/internal/Modal/Modal.js +78 -66
  208. package/dist/es/components/internal/Modal/index.js +4 -0
  209. package/dist/es/components/internal/Pagination/Pagination.js +61 -45
  210. package/dist/es/components/internal/Pagination/components/LimitSelect.js +1 -0
  211. package/dist/es/components/internal/Pagination/constants.js +6 -4
  212. package/dist/es/components/internal/Pagination/hooks/index.js +6 -0
  213. package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +8 -7
  214. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +30 -18
  215. package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +10 -0
  216. package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +21 -14
  217. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +60 -52
  218. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +11 -78
  219. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +13 -12
  220. package/dist/es/components/internal/Pagination/hooks/usePagination.js +87 -41
  221. package/dist/es/components/internal/Pagination/index.js +4 -0
  222. package/dist/es/components/internal/Pagination/utils.js +5 -5
  223. package/dist/es/components/internal/Popover/Popover.js +160 -102
  224. package/dist/es/components/internal/Popover/Popover.test.js +119 -0
  225. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +22 -18
  226. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +10 -8
  227. package/dist/es/components/internal/Popover/constants.js +16 -7
  228. package/dist/es/components/internal/Popover/utils/popoverUtil.js +51 -0
  229. package/dist/es/components/internal/Popover/utils/utils.js +28 -22
  230. package/dist/es/components/internal/SVGIcons/CheckedBox.js +5 -5
  231. package/dist/es/components/internal/SVGIcons/Checkmark.js +6 -6
  232. package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
  233. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
  234. package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
  235. package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
  236. package/dist/es/components/internal/SVGIcons/Close.js +13 -0
  237. package/dist/es/components/internal/SVGIcons/Copy.js +5 -0
  238. package/dist/es/components/internal/SVGIcons/Filter.js +11 -0
  239. package/dist/es/components/internal/SVGIcons/UncheckedBox.js +5 -5
  240. package/dist/es/components/internal/Spinner/Spinner.js +5 -4
  241. package/dist/es/components/internal/Spinner/index.js +4 -0
  242. package/dist/es/components/internal/Tag/Tag.js +5 -19
  243. package/dist/es/components/internal/Tooltip/Tooltip.js +48 -0
  244. package/dist/es/components/internal/Tooltip/useTooltipListeners.js +31 -0
  245. package/dist/es/components/internal/Typography/Typography.js +7 -33
  246. package/dist/es/components/internal/Typography/constants.js +2 -2
  247. package/dist/es/components/utils/transactionResourceErrorCodes.js +17 -13
  248. package/dist/es/components/utils/utils.js +34 -0
  249. package/dist/es/constants.js +8 -0
  250. package/dist/es/core/Analytics/Analytics.js +63 -0
  251. package/dist/es/core/Analytics/EventsQueue.js +22 -0
  252. package/dist/es/core/Analytics/index.js +4 -0
  253. package/dist/es/core/Auth/AuthContext.js +7 -5
  254. package/dist/es/core/Auth/AuthProvider.js +24 -5
  255. package/dist/es/core/Auth/useAuthContext.js +4 -4
  256. package/dist/es/core/Context/CoreContext.js +5 -5
  257. package/dist/es/core/Context/CoreProvider.js +23 -17
  258. package/dist/es/core/Context/useCoreContext.js +4 -4
  259. package/dist/es/core/Errors/AdyenPlatformExperienceError.js +21 -0
  260. package/dist/es/core/Errors/ErrorPanel.js +19 -0
  261. package/dist/es/core/Errors/constants.js +4 -2
  262. package/dist/es/core/Localization/Localization.js +12 -146
  263. package/dist/es/core/Localization/Localization.test.js +70 -0
  264. package/dist/es/core/Localization/amount/amount-util.js +42 -19
  265. package/dist/es/core/Localization/amount/amount-util.test.js +54 -0
  266. package/dist/es/core/Localization/constants/currency-codes.js +3 -3
  267. package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
  268. package/dist/es/core/Localization/constants/locale.js +7 -5
  269. package/dist/es/core/Localization/constants/localization.js +9 -6
  270. package/dist/es/core/Localization/datetime/restamper/constants.js +29 -20
  271. package/dist/es/core/Localization/datetime/restamper/index.js +9 -0
  272. package/dist/es/core/Localization/datetime/restamper/restamper.js +44 -32
  273. package/dist/es/core/Localization/datetime/restamper/restamper.test.js +179 -0
  274. package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +21 -0
  275. package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +27 -0
  276. package/dist/es/core/Localization/datetime/restamper/utils.js +44 -26
  277. package/dist/es/core/Localization/index.js +32 -0
  278. package/dist/es/core/Localization/localization-utils.js +7 -31
  279. package/dist/es/core/Localization/translations/index.js +356 -79
  280. package/dist/es/core/Localization/utils.js +72 -44
  281. package/dist/es/core/Localization/utils.test.js +215 -0
  282. package/dist/es/core/ProcessResponse/index.js +4 -0
  283. package/dist/es/core/ProcessResponse/process-response.js +40 -0
  284. package/dist/es/core/Services/analytics/collect-id.js +37 -0
  285. package/dist/es/core/Services/analytics/log-event.js +14 -0
  286. package/dist/es/core/Services/analytics/post-telemetry.js +22 -0
  287. package/dist/es/core/Services/data-set.js +1 -0
  288. package/dist/es/core/Services/get-dataset.js +13 -0
  289. package/dist/es/core/Services/requests/endpoints.js +9 -0
  290. package/dist/es/core/Services/requests/http.js +55 -28
  291. package/dist/es/core/Services/requests/utils.js +49 -34
  292. package/dist/es/core/Services/sessions/constants.js +2 -2
  293. package/dist/es/core/Services/sessions/setup-session.js +9 -9
  294. package/dist/es/core/Session/Session.js +38 -23
  295. package/dist/es/core/Session/index.js +4 -0
  296. package/dist/es/core/Session/utils.js +5 -5
  297. package/dist/es/core/config.js +6 -2
  298. package/dist/es/core/core.js +87 -45
  299. package/dist/es/core/index.js +36 -0
  300. package/dist/es/core/utils.js +10 -8
  301. package/dist/es/hooks/element/useClickOutside.js +75 -18
  302. package/dist/es/hooks/element/useDetachedRender.js +17 -15
  303. package/dist/es/hooks/element/useFocusCursor.js +18 -13
  304. package/dist/es/hooks/element/useFocusTrap.js +90 -47
  305. package/dist/es/hooks/element/useIdentifierString.js +61 -0
  306. package/dist/es/hooks/element/usePopoverPositioner.js +5 -69
  307. package/dist/es/hooks/element/useUniqueIdentifier.js +16 -12
  308. package/dist/es/hooks/useBooleanState/index.js +4 -0
  309. package/dist/es/hooks/useBooleanState/useBooleanState.js +8 -6
  310. package/dist/es/hooks/useCommitAction/index.js +6 -0
  311. package/dist/es/hooks/useCommitAction/useCommitAction.js +38 -27
  312. package/dist/es/hooks/useDefinedValue/index.js +4 -0
  313. package/dist/es/hooks/useDefinedValue/useDefinedValue.js +16 -0
  314. package/dist/es/hooks/useFetch/useFetch.js +37 -27
  315. package/dist/es/hooks/useImageUrl/useImageUrl.js +26 -22
  316. package/dist/es/hooks/useModalDetails/useModalDetails.js +37 -28
  317. package/dist/es/hooks/useMounted/index.js +4 -0
  318. package/dist/es/hooks/useMounted/useMounted.js +14 -8
  319. package/dist/es/hooks/useReactiveState/index.js +4 -0
  320. package/dist/es/hooks/useReactiveState/useReactiveState.js +53 -27
  321. package/dist/es/hooks/useReflex/constants.js +2 -2
  322. package/dist/es/hooks/useReflex/core/reflex.js +66 -47
  323. package/dist/es/hooks/useReflex/core/reflex.test.js +170 -0
  324. package/dist/es/hooks/useReflex/core/registry.js +68 -46
  325. package/dist/es/hooks/useReflex/core/registry.test.js +114 -0
  326. package/dist/es/hooks/useReflex/core/utils.js +18 -16
  327. package/dist/es/hooks/useReflex/core/utils.test.js +59 -0
  328. package/dist/es/hooks/useReflex/errors.js +6 -6
  329. package/dist/es/hooks/useReflex/hooks/useReflex.js +12 -7
  330. package/dist/es/hooks/useReflex/index.js +8 -0
  331. package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +37 -20
  332. package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +26 -20
  333. package/dist/es/index.js +45 -41
  334. package/dist/es/utils/Storage.js +21 -17
  335. package/dist/es/utils/Validator/ValidationRuleResult.js +28 -0
  336. package/dist/es/utils/Validator/Validator.js +67 -0
  337. package/dist/es/utils/Validator/Validator.test.js +27 -0
  338. package/dist/es/utils/Validator/defaultRules.js +12 -0
  339. package/dist/es/utils/Validator/index.js +4 -0
  340. package/dist/es/utils/class-name-utils.js +11 -5
  341. package/dist/es/utils/common/constants.js +10 -6
  342. package/dist/es/utils/common/index.js +59 -32
  343. package/dist/es/utils/fixedForwardRef.js +3 -3
  344. package/dist/es/utils/get-image.js +12 -11
  345. package/dist/es/utils/get-image.test.js +38 -0
  346. package/dist/es/utils/idGenerator.js +6 -3
  347. package/dist/es/utils/memoComparator/index.js +4 -0
  348. package/dist/es/utils/memoComparator/memoComparator.js +26 -17
  349. package/dist/es/utils/regex.js +6 -0
  350. package/dist/es/utils/tabbable.js +109 -70
  351. package/dist/es/utils/useForm/index.js +4 -0
  352. package/dist/es/utils/useForm/reducer.js +153 -0
  353. package/dist/es/utils/useForm/useForm.js +85 -0
  354. package/dist/es/utils/useForm/useForm.test.js +107 -0
  355. package/dist/es/utils/uuid.js +5 -5
  356. package/dist/es/utils/uuid.test.js +13 -0
  357. package/dist/es/utils/validator-utils.js +44 -3
  358. package/dist/es/utils/watchable/constants.js +2 -2
  359. package/dist/es/utils/watchable/core/Watchable.js +83 -45
  360. package/dist/es/utils/watchable/core/Watchable.test.js +103 -0
  361. package/dist/es/utils/watchable/core/helpers.js +26 -19
  362. package/dist/es/utils/watchable/core/helpers.test.js +106 -0
  363. package/dist/es/utils/watchable/core/syncEffect.js +19 -15
  364. package/dist/es/utils/watchable/core/syncEffect.test.js +103 -0
  365. package/dist/es/utils/watchable/index.js +17 -16
  366. package/dist/flags-41c36e13.mjs +83 -0
  367. package/dist/hooks.module-8565d716.mjs +161 -0
  368. package/dist/index-2c0f6175.mjs +12069 -0
  369. package/dist/index-6e47f755.mjs +231 -0
  370. package/dist/index-944be685.mjs +6609 -0
  371. package/dist/index-c88cd37e.mjs +243 -0
  372. package/dist/index-f5bc0382.mjs +155 -0
  373. package/dist/index.css +65 -0
  374. package/dist/index2.css +4 -0
  375. package/dist/jsxRuntime.module-69493d81.mjs +15 -0
  376. package/dist/magic-string.es-219c273f.mjs +1146 -0
  377. package/dist/preact.module-38e5a571.mjs +323 -0
  378. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  379. package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -0
  380. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
  381. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -0
  382. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/constants.d.ts +4 -0
  383. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/constants.d.ts.map +1 -0
  384. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/types.d.ts.map +1 -0
  385. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/BalanceAccountSelector.d.ts +1 -0
  386. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -0
  387. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/index.d.ts.map +1 -0
  388. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -0
  389. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceItem/BalanceItem.d.ts +1 -1
  390. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -0
  391. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -0
  392. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/Balances/Balances.d.ts +4 -4
  393. package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -0
  394. package/dist/types/components/external/TransactionsOverview/components/Balances/constants.d.ts +2 -0
  395. package/dist/types/components/external/TransactionsOverview/components/Balances/constants.d.ts.map +1 -0
  396. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +4 -0
  397. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -0
  398. package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +7 -0
  399. package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -0
  400. package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -0
  401. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -0
  402. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/index.d.ts.map +1 -0
  403. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -0
  404. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts.map +1 -0
  405. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -0
  406. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -0
  407. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -0
  408. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +4 -0
  409. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -0
  410. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +14 -0
  411. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -0
  412. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/constants.d.ts +8 -0
  413. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/constants.d.ts.map +1 -0
  414. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +36 -0
  415. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -0
  416. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +7 -0
  417. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -0
  418. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +3 -0
  419. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -0
  420. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionTotalItem/types.d.ts +2 -0
  421. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -0
  422. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +11 -0
  423. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -0
  424. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionTotals/TransactionTotals.d.ts +3 -1
  425. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -0
  426. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/constants.d.ts +3 -0
  427. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/constants.d.ts.map +1 -0
  428. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +5 -0
  429. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -0
  430. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/constants.d.ts +3 -0
  431. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/constants.d.ts.map +1 -0
  432. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +5 -0
  433. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -0
  434. package/dist/types/components/external/{Transactions/components → TransactionsOverview/components/TransactionsOverview}/TransactionsOverview.d.ts +2 -1
  435. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -0
  436. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/constants.d.ts +4 -0
  437. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/constants.d.ts.map +1 -0
  438. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.d.ts +6 -0
  439. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.d.ts.map +1 -0
  440. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.d.ts +3 -0
  441. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.d.ts.map +1 -0
  442. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -0
  443. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +5 -0
  444. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -0
  445. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +6 -0
  446. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -0
  447. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +18 -0
  448. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -0
  449. package/dist/types/components/external/{Transactions → TransactionsOverview}/components/utils.d.ts +2 -2
  450. package/dist/types/components/external/TransactionsOverview/components/utils.d.ts.map +1 -0
  451. package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -0
  452. package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -0
  453. package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +26 -0
  454. package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -0
  455. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -0
  456. package/dist/types/components/external/TransactionsOverview/index.d.ts +3 -0
  457. package/dist/types/components/external/TransactionsOverview/index.d.ts.map +1 -0
  458. package/dist/types/components/external/{Transactions → TransactionsOverview}/types.d.ts +2 -15
  459. package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -0
  460. package/dist/types/components/external/index.d.ts +1 -1
  461. package/dist/types/components/external/index.d.ts.map +1 -1
  462. package/dist/types/components/internal/BaseButton/BaseButton.d.ts.map +1 -1
  463. package/dist/types/components/internal/BaseButton/constants.d.ts +1 -1
  464. package/dist/types/components/internal/BaseButton/types.d.ts +1 -0
  465. package/dist/types/components/internal/BaseButton/types.d.ts.map +1 -1
  466. package/dist/types/components/internal/BaseList/constants.d.ts +1 -1
  467. package/dist/types/components/internal/Button/constants.d.ts +1 -1
  468. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
  469. package/dist/types/components/internal/CopyText/CopyText.d.ts +6 -0
  470. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -0
  471. package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -0
  472. package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
  473. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
  474. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
  475. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
  476. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
  477. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -1
  478. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  479. package/dist/types/components/internal/DataGrid/types.d.ts +2 -0
  480. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
  481. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
  482. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +5 -1
  483. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  484. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts +1 -1
  485. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
  486. package/dist/types/components/internal/ExpandableCard/constants.d.ts +1 -1
  487. package/dist/types/components/internal/ExpandableCard/types.d.ts +5 -0
  488. package/dist/types/components/internal/ExpandableCard/types.d.ts.map +1 -1
  489. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
  490. package/dist/types/components/internal/FilterBar/filters/AmountFilter/AmountFilter.d.ts.map +1 -1
  491. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts +1 -1
  492. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  493. package/dist/types/components/internal/FilterBar/filters/AmountFilter/constants.d.ts +2 -0
  494. package/dist/types/components/internal/FilterBar/filters/AmountFilter/constants.d.ts.map +1 -0
  495. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +0 -2
  496. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
  497. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts +0 -1
  498. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts.map +1 -1
  499. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
  500. package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
  501. package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
  502. package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts.map +1 -1
  503. package/dist/types/components/internal/FormFields/Select/constants.d.ts +1 -1
  504. package/dist/types/components/internal/FormFields/Select/types.d.ts +9 -0
  505. package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
  506. package/dist/types/components/internal/FormFields/index.d.ts +3 -18
  507. package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
  508. package/dist/types/components/internal/Img/types.d.ts +1 -1
  509. package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
  510. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  511. package/dist/types/components/internal/Pagination/constants.d.ts.map +1 -1
  512. package/dist/types/components/internal/Pagination/hooks/types.d.ts +3 -3
  513. package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
  514. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
  515. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
  516. package/dist/types/components/internal/Pagination/types.d.ts +2 -1
  517. package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
  518. package/dist/types/components/internal/Popover/Popover.d.ts +1 -2
  519. package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
  520. package/dist/types/components/internal/Popover/constants.d.ts +3 -1
  521. package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
  522. package/dist/types/components/internal/Popover/types.d.ts +6 -0
  523. package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
  524. package/dist/types/components/internal/Popover/utils/popoverUtil.d.ts +7 -0
  525. package/dist/types/components/internal/Popover/utils/popoverUtil.d.ts.map +1 -0
  526. package/dist/types/components/internal/SVGIcons/Close.d.ts +4 -0
  527. package/dist/types/components/internal/SVGIcons/Close.d.ts.map +1 -0
  528. package/dist/types/components/internal/SVGIcons/Copy.d.ts +4 -0
  529. package/dist/types/components/internal/SVGIcons/Copy.d.ts.map +1 -0
  530. package/dist/types/components/internal/SVGIcons/Filter.d.ts +4 -0
  531. package/dist/types/components/internal/SVGIcons/Filter.d.ts.map +1 -0
  532. package/dist/types/components/internal/Tooltip/Tooltip.d.ts +5 -0
  533. package/dist/types/components/internal/Tooltip/Tooltip.d.ts.map +1 -0
  534. package/dist/types/components/internal/Tooltip/types.d.ts +13 -0
  535. package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -0
  536. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts +12 -0
  537. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -0
  538. package/dist/types/components/internal/Typography/constants.d.ts +1 -1
  539. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +6 -2
  540. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
  541. package/dist/types/constants.d.ts +6 -0
  542. package/dist/types/constants.d.ts.map +1 -0
  543. package/dist/types/core/Auth/AuthContext.d.ts +2 -2
  544. package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
  545. package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
  546. package/dist/types/core/Auth/types.d.ts +9 -2
  547. package/dist/types/core/Auth/types.d.ts.map +1 -1
  548. package/dist/types/core/Auth/useAuthContext.d.ts +1 -1
  549. package/dist/types/core/Auth/useAuthContext.d.ts.map +1 -1
  550. package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +9 -0
  551. package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -0
  552. package/dist/types/core/Localization/Localization.d.ts +7 -0
  553. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  554. package/dist/types/core/Localization/constants/locale.d.ts +17 -7
  555. package/dist/types/core/Localization/constants/locale.d.ts.map +1 -1
  556. package/dist/types/core/Localization/localization-utils.d.ts +1 -0
  557. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  558. package/dist/types/core/Localization/translations/index.d.ts +17 -7
  559. package/dist/types/core/Localization/translations/index.d.ts.map +1 -1
  560. package/dist/types/core/Localization/utils.d.ts +17 -7
  561. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  562. package/dist/types/core/Services/requests/http.d.ts.map +1 -1
  563. package/dist/types/core/Services/requests/types.d.ts +2 -0
  564. package/dist/types/core/Services/requests/types.d.ts.map +1 -1
  565. package/dist/types/core/Services/requests/utils.d.ts +2 -1
  566. package/dist/types/core/Services/requests/utils.d.ts.map +1 -1
  567. package/dist/types/core/core.d.ts +1 -0
  568. package/dist/types/core/core.d.ts.map +1 -1
  569. package/dist/types/core/types.d.ts +1 -0
  570. package/dist/types/core/types.d.ts.map +1 -1
  571. package/dist/types/hooks/element/useClickOutside.d.ts +5 -1
  572. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
  573. package/dist/types/hooks/element/usePopoverPositioner.d.ts +2 -2
  574. package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
  575. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
  576. package/dist/types/index.d.ts +1 -1
  577. package/dist/types/index.d.ts.map +1 -1
  578. package/dist/types/utils/types.d.ts +1 -1
  579. package/dist/types/utils/types.d.ts.map +1 -1
  580. package/dist/types-0027b7c2.mjs +9 -0
  581. package/dist/types-0aaff3aa.mjs +19 -0
  582. package/dist/types-7ad6576a.mjs +10 -0
  583. package/dist/types-e4bbd37f.mjs +13 -0
  584. package/dist/types-e6a6a3ff.mjs +9 -0
  585. package/dist/usePaginatedRecords-63a69bf1.mjs +131 -0
  586. package/dist/usePopoverPositioner-882fea89.mjs +182 -0
  587. package/dist/vendor-vi.a3ff54b1-5e924357.mjs +22389 -0
  588. package/package.json +9 -8
  589. package/dist/ModalContent-e2777391.js +0 -2
  590. package/dist/ModalContent-e2777391.js.map +0 -1
  591. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +0 -4
  592. package/dist/es/components/external/Transactions/TransactionsOverviewElement.js +0 -28
  593. package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.js +0 -9
  594. package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.scss.js +0 -4
  595. package/dist/es/components/external/Transactions/components/AmountSkeleton/constants.js +0 -6
  596. package/dist/es/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.js +0 -23
  597. package/dist/es/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.js +0 -17
  598. package/dist/es/components/external/Transactions/components/BalanceItem/BalanceItem.js +0 -35
  599. package/dist/es/components/external/Transactions/components/Balances/Balances.js +0 -49
  600. package/dist/es/components/external/Transactions/components/Balances/constants.js +0 -4
  601. package/dist/es/components/external/Transactions/components/ModalContent.js +0 -12
  602. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.js +0 -25
  603. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +0 -24
  604. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +0 -21
  605. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +0 -9
  606. package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.js +0 -42
  607. package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.scss.js +0 -4
  608. package/dist/es/components/external/Transactions/components/SummaryItem/constants.js +0 -8
  609. package/dist/es/components/external/Transactions/components/TransactionList.js +0 -130
  610. package/dist/es/components/external/Transactions/components/TransactionList.scss.js +0 -4
  611. package/dist/es/components/external/Transactions/components/TransactionListError/TransactionListError.js +0 -20
  612. package/dist/es/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.js +0 -48
  613. package/dist/es/components/external/Transactions/components/TransactionTotals/TransactionTotals.js +0 -66
  614. package/dist/es/components/external/Transactions/components/TransactionTotals/constants.js +0 -4
  615. package/dist/es/components/external/Transactions/components/TransactionsOverview.js +0 -151
  616. package/dist/es/components/external/Transactions/components/TransactionsOverviewContainer.js +0 -36
  617. package/dist/es/components/external/Transactions/components/TransactionsOverviewDateFilter.js +0 -61
  618. package/dist/es/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.js +0 -22
  619. package/dist/es/components/external/Transactions/hooks/useMaxWidths.js +0 -15
  620. package/dist/es/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.js +0 -29
  621. package/dist/es/components/external/Transactions/types.js +0 -4
  622. package/dist/es/components/internal/BaseButton/BaseButton.scss.js +0 -4
  623. package/dist/es/components/internal/BaseList/BaseList.scss.js +0 -4
  624. package/dist/es/components/internal/Button/Button.scss.js +0 -4
  625. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +0 -4
  626. package/dist/es/components/internal/Button/ButtonActions/types.js +0 -7
  627. package/dist/es/components/internal/Button/types.js +0 -4
  628. package/dist/es/components/internal/Calendar/Calendar.scss.js +0 -4
  629. package/dist/es/components/internal/Calendar/calendar/types.js +0 -15
  630. package/dist/es/components/internal/Calendar/types.js +0 -4
  631. package/dist/es/components/internal/DataGrid/DataGrid.scss.js +0 -4
  632. package/dist/es/components/internal/DataGrid/types.js +0 -4
  633. package/dist/es/components/internal/DatePicker/DatePicker.scss.js +0 -4
  634. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +0 -4
  635. package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +0 -4
  636. package/dist/es/components/internal/FilterBar/FilterBar.scss.js +0 -4
  637. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +0 -4
  638. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +0 -4
  639. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.scss.js +0 -4
  640. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +0 -4
  641. package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +0 -4
  642. package/dist/es/components/internal/FormFields/FormFields.scss.js +0 -4
  643. package/dist/es/components/internal/FormFields/Select/Select.scss.js +0 -4
  644. package/dist/es/components/internal/Img/Img.scss.js +0 -4
  645. package/dist/es/components/internal/Modal/Modal.scss.js +0 -4
  646. package/dist/es/components/internal/Pagination/Pagination.scss.js +0 -4
  647. package/dist/es/components/internal/Pagination/types.js +0 -5
  648. package/dist/es/components/internal/Popover/Popover.scss.js +0 -4
  649. package/dist/es/components/internal/Popover/PopoverContainer.scss.js +0 -4
  650. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +0 -4
  651. package/dist/es/components/internal/Popover/types.js +0 -6
  652. package/dist/es/components/internal/Spinner/Spinner.scss.js +0 -4
  653. package/dist/es/components/internal/Tag/Tag.scss.js +0 -4
  654. package/dist/es/components/internal/Tag/types.js +0 -4
  655. package/dist/es/components/internal/Typography/Typography.scss.js +0 -4
  656. package/dist/es/components/internal/Typography/types.js +0 -6
  657. package/dist/es/components/shared.scss.js +0 -4
  658. package/dist/es/components/types.js +0 -4
  659. package/dist/es/core/Errors/AdyenFPError.js +0 -15
  660. package/dist/es/core/Localization/translations/ar.json.js +0 -4
  661. package/dist/es/core/Localization/translations/cs-CZ.json.js +0 -4
  662. package/dist/es/core/Localization/translations/da-DK.json.js +0 -4
  663. package/dist/es/core/Localization/translations/de-DE.json.js +0 -4
  664. package/dist/es/core/Localization/translations/el-GR.json.js +0 -4
  665. package/dist/es/core/Localization/translations/en-US.json.js +0 -358
  666. package/dist/es/core/Localization/translations/es-ES.json.js +0 -255
  667. package/dist/es/core/Localization/translations/fi-FI.json.js +0 -4
  668. package/dist/es/core/Localization/translations/fr-FR.json.js +0 -4
  669. package/dist/es/core/Localization/translations/hr-HR.json.js +0 -4
  670. package/dist/es/core/Localization/translations/hu-HU.json.js +0 -4
  671. package/dist/es/core/Localization/translations/it-IT.json.js +0 -4
  672. package/dist/es/core/Localization/translations/ja-JP.json.js +0 -4
  673. package/dist/es/core/Localization/translations/ko-KR.json.js +0 -4
  674. package/dist/es/core/Localization/translations/nl-NL.json.js +0 -4
  675. package/dist/es/core/Localization/translations/no-NO.json.js +0 -4
  676. package/dist/es/core/Localization/translations/pl-PL.json.js +0 -4
  677. package/dist/es/core/Localization/translations/pt-BR.json.js +0 -4
  678. package/dist/es/core/Localization/translations/pt-PT.json.js +0 -4
  679. package/dist/es/core/Localization/translations/ro-RO.json.js +0 -4
  680. package/dist/es/core/Localization/translations/ru-RU.json.js +0 -4
  681. package/dist/es/core/Localization/translations/sk-SK.json.js +0 -4
  682. package/dist/es/core/Localization/translations/sl-SI.json.js +0 -4
  683. package/dist/es/core/Localization/translations/sv-SE.json.js +0 -4
  684. package/dist/es/core/Localization/translations/zh-CN.json.js +0 -4
  685. package/dist/es/core/Localization/translations/zh-TW.json.js +0 -4
  686. package/dist/es/external/preact/compat/dist/compat.module.js +0 -253
  687. package/dist/es/external/preact/dist/preact.module.js +0 -309
  688. package/dist/es/external/preact/hooks/dist/hooks.module.js +0 -161
  689. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -19
  690. package/dist/es/hooks/useCommitAction/types.js +0 -4
  691. package/dist/es/hooks/useModalDetails/types.js +0 -6
  692. package/dist/es/images/no-data-female.svg.js +0 -4
  693. package/dist/es/images/no-results.svg.js +0 -4
  694. package/dist/es/style/index.scss.js +0 -4
  695. package/dist/index-0c9f4def.js +0 -12
  696. package/dist/index-0c9f4def.js.map +0 -1
  697. package/dist/style.css +0 -1
  698. package/dist/types/components/external/Transactions/TransactionsOverviewElement.d.ts.map +0 -1
  699. package/dist/types/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.d.ts.map +0 -1
  700. package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts +0 -4
  701. package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts.map +0 -1
  702. package/dist/types/components/external/Transactions/components/AmountSkeleton/types.d.ts.map +0 -1
  703. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +0 -1
  704. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/index.d.ts.map +0 -1
  705. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +0 -1
  706. package/dist/types/components/external/Transactions/components/BalanceItem/BalanceItem.d.ts.map +0 -1
  707. package/dist/types/components/external/Transactions/components/BalanceItem/types.d.ts.map +0 -1
  708. package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts.map +0 -1
  709. package/dist/types/components/external/Transactions/components/Balances/constants.d.ts +0 -2
  710. package/dist/types/components/external/Transactions/components/Balances/constants.d.ts.map +0 -1
  711. package/dist/types/components/external/Transactions/components/ModalContent.d.ts.map +0 -1
  712. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +0 -1
  713. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/index.d.ts.map +0 -1
  714. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +0 -1
  715. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts.map +0 -1
  716. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +0 -1
  717. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +0 -1
  718. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +0 -1
  719. package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts +0 -4
  720. package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts.map +0 -1
  721. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts +0 -6
  722. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts.map +0 -1
  723. package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts +0 -20
  724. package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts.map +0 -1
  725. package/dist/types/components/external/Transactions/components/TransactionList.d.ts +0 -6
  726. package/dist/types/components/external/Transactions/components/TransactionList.d.ts.map +0 -1
  727. package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts +0 -7
  728. package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts.map +0 -1
  729. package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts +0 -3
  730. package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +0 -1
  731. package/dist/types/components/external/Transactions/components/TransactionTotalItem/types.d.ts.map +0 -1
  732. package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts.map +0 -1
  733. package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts +0 -2
  734. package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts.map +0 -1
  735. package/dist/types/components/external/Transactions/components/TransactionsOverview.d.ts.map +0 -1
  736. package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts +0 -6
  737. package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts.map +0 -1
  738. package/dist/types/components/external/Transactions/components/TransactionsOverviewDateFilter.d.ts.map +0 -1
  739. package/dist/types/components/external/Transactions/components/utils.d.ts.map +0 -1
  740. package/dist/types/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +0 -1
  741. package/dist/types/components/external/Transactions/hooks/useMaxWidths.d.ts.map +0 -1
  742. package/dist/types/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +0 -1
  743. package/dist/types/components/external/Transactions/index.d.ts +0 -3
  744. package/dist/types/components/external/Transactions/index.d.ts.map +0 -1
  745. package/dist/types/components/external/Transactions/types.d.ts.map +0 -1
  746. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +0 -22
  747. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts.map +0 -1
  748. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +0 -2
  749. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts.map +0 -1
  750. package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +0 -3
  751. package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts.map +0 -1
  752. package/dist/types/components/internal/FormFields/InputDate/index.d.ts +0 -2
  753. package/dist/types/components/internal/FormFields/InputDate/index.d.ts.map +0 -1
  754. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +0 -22
  755. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts.map +0 -1
  756. package/dist/types/components/internal/FormFields/InputEmail.d.ts +0 -3
  757. package/dist/types/components/internal/FormFields/InputEmail.d.ts.map +0 -1
  758. package/dist/types/components/internal/FormFields/InputTelephone.d.ts +0 -3
  759. package/dist/types/components/internal/FormFields/InputTelephone.d.ts.map +0 -1
  760. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +0 -11
  761. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts.map +0 -1
  762. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +0 -2
  763. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts.map +0 -1
  764. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +0 -19
  765. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts.map +0 -1
  766. package/dist/types/core/Errors/AdyenFPError.d.ts +0 -8
  767. package/dist/types/core/Errors/AdyenFPError.d.ts.map +0 -1
  768. /package/dist/types/components/external/{Transactions → TransactionsOverview}/TransactionsOverviewElement.d.ts +0 -0
  769. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/AmountSkeleton/types.d.ts +0 -0
  770. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/index.d.ts +0 -0
  771. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +0 -0
  772. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceItem/types.d.ts +0 -0
  773. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/ModalContent.d.ts +0 -0
  774. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +0 -0
  775. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/index.d.ts +0 -0
  776. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +0 -0
  777. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts +0 -0
  778. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +0 -0
  779. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +0 -0
  780. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +0 -0
  781. /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionsOverviewDateFilter.d.ts +0 -0
  782. /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +0 -0
  783. /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useMaxWidths.d.ts +0 -0
  784. /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +0 -0
@@ -1,433 +1,670 @@
1
- var si = Object.defineProperty;
2
- var ei = (d, i, e) => i in d ? si(d, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[i] = e;
3
- var At = (d, i, e) => (ei(d, typeof i != "symbol" ? i + "" : i, e), e), It = (d, i, e) => {
4
- if (!i.has(d))
5
- throw TypeError("Cannot " + e);
1
+ var __accessCheck = (obj, member, msg) => {
2
+ if (!member.has(obj))
3
+ throw TypeError("Cannot " + msg);
6
4
  };
7
- var t = (d, i, e) => (It(d, i, "read from private field"), e ? e.call(d) : i.get(d)), h = (d, i, e) => {
8
- if (i.has(d))
5
+ var __privateGet = (obj, member, getter) => {
6
+ __accessCheck(obj, member, "read from private field");
7
+ return getter ? getter.call(obj) : member.get(obj);
8
+ };
9
+ var __privateAdd = (obj, member, value) => {
10
+ if (member.has(obj))
9
11
  throw TypeError("Cannot add the same private member more than once");
10
- i instanceof WeakSet ? i.add(d) : i.set(d, e);
11
- }, r = (d, i, e, o) => (It(d, i, "write to private field"), o ? o.call(d, e) : i.set(d, e), e);
12
- var l = (d, i, e) => (It(d, i, "access private method"), e);
13
- import { InteractionKeyCode as R } from "../../../../types.js";
14
- import { SELECT_NONE as ot, CALENDAR_CONTROLS as vt, SHIFT_BLOCK as hi, SHIFT_PERIOD as Lt, SHIFT_FRAME as ri, CALENDAR_SELECTIONS as oi, SELECT_MANY as j, FRAME_SIZES as ai, FIRST_WEEK_DAYS as ci, CURSOR_NEXT_BLOCK as li, CURSOR_PREV_BLOCK as ni, CURSOR_BLOCK_END as fi, CURSOR_LINE_END as ui, CURSOR_BLOCK_START as di, CURSOR_LINE_START as Si, CURSOR_DOWNWARD as mi, CURSOR_UPWARD as Ei, CURSOR_FORWARD as Oi, CURSOR_BACKWARD as Ri, SELECT_ONE as at, SELECTION_FROM as C, SELECTION_TO as p, CONTROLS_NONE as Ci, CONTROLS_MINIMAL as gi, CONTROLS_ALL as ki, SELECTION_COLLAPSE as Ti } from "../constants.js";
15
- import _t from "../shared/indexed/index.js";
16
- import { pickFromCollection as V, boolify as G, structFrom as Fi, isFunction as L, noop as xt, struct as bi, isBitSafeInteger as yi } from "../../../../../utils/common/index.js";
17
- import { isString as Yt } from "../../../../../utils/validator-utils.js";
18
- import Dt from "../../../../../utils/watchable/index.js";
19
- import { CalendarShiftControlsFlag as jt, CalendarShiftControlFlag as z } from "../types.js";
20
- import Ni from "../../clock/today.js";
21
- import pi from "../timeframe/frames/MonthFrame.js";
22
- import { EMPTY_OBJECT as X, immutableProxyHandlers as Ai } from "../../../../../utils/common/constants.js";
23
- var Gt, zt, f, F, s, b, g, y, S, W, O, M, A, I, k, N, U, nt, _, T, ft, D, v, P, $, ut, dt, St, mt, Et, Ot, Rt, Ct, Xt, gt, Jt, kt, Zt, Tt, x, ct, B, J, q, Ht, Ft, $t, bt, qt, yt, Qt, Nt, ti, Q, wt, pt, ii, K, Z, tt, Wt, Y, lt, it, Pt, st, Bt, et, Kt, ht, Mt;
24
- const n = class n {
12
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
13
+ };
14
+ var __privateSet = (obj, member, value, setter) => {
15
+ __accessCheck(obj, member, "write to private field");
16
+ setter ? setter.call(obj, value) : member.set(obj, value);
17
+ return value;
18
+ };
19
+ var __privateMethod = (obj, member, method) => {
20
+ __accessCheck(obj, member, "access private method");
21
+ return method;
22
+ };
23
+ var _config, _destructed, _frame, _highlightFrom, _highlightTo, _highlightInProgress, _highlightSelection, _pendingWatchNotification, _rangeOffsets, _lastHighlightRange, _cursorIndexFromEvent, _shiftFactorFromEvent, _watchCallback, _watchableEffect, _unwatch, _today, _shiftControlsHandles, _shiftControlsList, _shiftControls, _watchable, _lastWatchableSnapshot, _chainedNotifyCallback, _chainedWatchCallback, _grid, _RANGE_OFFSETS_FORMAT_REGEX, _CURSOR_POINTER_INTERACTION_EVENTS, _DAYS_OF_WEEK_FALLBACK, _SHIFT_ACTIVATION_KEYS, _SHIFT_ALL_CONTROLS, _SHIFT_MINIMAL_CONTROLS, _getOffsetsFromRange, getOffsetsFromRange_fn, _getShiftOffsetType, getShiftOffsetType_fn, _getShiftOffsetUnit, getShiftOffsetUnit_fn, _watchableEffectCallback, _withNotifyEffect, withNotifyEffect_fn, _currentConfig, currentConfig_get, _timeframe, timeframe_get, _canShiftInDirection, canShiftInDirection_fn, _configure, configure_fn, _cursorHandle, cursorHandle_fn, _destruct, destruct_fn, _getShiftControlRecordAtIndex, getShiftControlRecordAtIndex_fn, _getShiftFactorFromEvent, getShiftFactorFromEvent_fn, _highlight, highlight_fn, _clearHighlight, clearHighlight_fn, _rangeHighlight, rangeHighlight_fn, _restoreHighlight, restoreHighlight_fn, _reframe, reframe_fn, _refreshHighlighting, refreshHighlighting_fn, _refreshShiftControls, refreshShiftControls_fn;
24
+ import { I as InteractionKeyCode } from "../../../../../../types-0aaff3aa.mjs";
25
+ import { SELECT_NONE, CALENDAR_CONTROLS, SHIFT_BLOCK, SHIFT_PERIOD, SHIFT_FRAME, CALENDAR_SELECTIONS, SELECT_MANY, FRAME_SIZES, FIRST_WEEK_DAYS, CURSOR_NEXT_BLOCK, CURSOR_PREV_BLOCK, CURSOR_BLOCK_END, CURSOR_LINE_END, CURSOR_BLOCK_START, CURSOR_LINE_START, CURSOR_DOWNWARD, CURSOR_UPWARD, CURSOR_FORWARD, CURSOR_BACKWARD, SELECT_ONE, SELECTION_FROM, SELECTION_TO, CONTROLS_NONE, CONTROLS_MINIMAL, CONTROLS_ALL, SELECTION_COLLAPSE } from "../constants.js";
26
+ import indexed from "../shared/indexed/index.js";
27
+ import { pickFromCollection, boolify, structFrom, isFunction, noop, struct, isBitSafeInteger } from "../../../../../utils/common/index.js";
28
+ import { isString } from "../../../../../utils/validator-utils.js";
29
+ import watchable from "../../../../../utils/watchable/index.js";
30
+ import MonthFrame from "../timeframe/frames/MonthFrame.js";
31
+ import "../timeslice/index.js";
32
+ import { C as CalendarShiftControlsFlag, a as CalendarShiftControlFlag } from "../../../../../../flags-41c36e13.mjs";
33
+ import "../../clock/clock.js";
34
+ import today from "../../clock/today.js";
35
+ import { EMPTY_OBJECT, immutableProxyHandlers } from "../../../../../utils/common/constants.js";
36
+ const _Calendar = class _Calendar {
25
37
  constructor() {
26
- h(this, B);
27
- h(this, q);
28
- h(this, Ft);
29
- h(this, bt);
30
- h(this, yt);
31
- h(this, Nt);
32
- h(this, Q);
33
- h(this, pt);
34
- h(this, K);
35
- h(this, tt);
36
- h(this, Y);
37
- h(this, it);
38
- h(this, st);
39
- h(this, et);
40
- h(this, ht);
41
- At(this, "grid");
42
- At(this, "kill");
43
- h(this, f, X);
44
- h(this, F, !1);
45
- h(this, s, void 0);
46
- h(this, b, void 0);
47
- h(this, g, void 0);
48
- h(this, y, !1);
49
- h(this, S, ot);
50
- h(this, W, !1);
51
- h(this, O, void 0);
52
- h(this, M, (Gt = t(this, O)) == null ? void 0 : Gt.join(" "));
53
- h(this, A, void 0);
54
- h(this, I, void 0);
55
- h(this, k, void 0);
56
- h(this, N, void 0);
57
- h(this, U, void 0);
58
- h(this, nt, Ni());
59
- h(this, _, []);
60
- h(this, T, void 0);
61
- h(this, ft, new Proxy(
62
- _t(() => {
63
- var i;
64
- return ((i = t(this, T)) == null ? void 0 : i.length) ?? 0;
65
- }, l(this, Q, wt).bind(this)),
38
+ __privateAdd(this, _currentConfig);
39
+ __privateAdd(this, _timeframe);
40
+ __privateAdd(this, _canShiftInDirection);
41
+ __privateAdd(this, _configure);
42
+ __privateAdd(this, _cursorHandle);
43
+ __privateAdd(this, _destruct);
44
+ __privateAdd(this, _getShiftControlRecordAtIndex);
45
+ __privateAdd(this, _getShiftFactorFromEvent);
46
+ __privateAdd(this, _highlight);
47
+ __privateAdd(this, _clearHighlight);
48
+ __privateAdd(this, _rangeHighlight);
49
+ __privateAdd(this, _restoreHighlight);
50
+ __privateAdd(this, _reframe);
51
+ __privateAdd(this, _refreshHighlighting);
52
+ __privateAdd(this, _refreshShiftControls);
53
+ __privateAdd(this, _config, void 0);
54
+ __privateAdd(this, _destructed, void 0);
55
+ __privateAdd(this, _frame, void 0);
56
+ __privateAdd(this, _highlightFrom, void 0);
57
+ __privateAdd(this, _highlightTo, void 0);
58
+ __privateAdd(this, _highlightInProgress, void 0);
59
+ __privateAdd(this, _highlightSelection, void 0);
60
+ __privateAdd(this, _pendingWatchNotification, void 0);
61
+ __privateAdd(this, _rangeOffsets, void 0);
62
+ __privateAdd(this, _lastHighlightRange, void 0);
63
+ __privateAdd(this, _cursorIndexFromEvent, void 0);
64
+ __privateAdd(this, _shiftFactorFromEvent, void 0);
65
+ __privateAdd(this, _watchCallback, void 0);
66
+ __privateAdd(this, _watchableEffect, void 0);
67
+ __privateAdd(this, _unwatch, void 0);
68
+ __privateAdd(this, _today, void 0);
69
+ __privateAdd(this, _shiftControlsHandles, void 0);
70
+ __privateAdd(this, _shiftControlsList, void 0);
71
+ __privateAdd(this, _shiftControls, void 0);
72
+ __privateAdd(this, _watchable, void 0);
73
+ __privateAdd(this, _lastWatchableSnapshot, void 0);
74
+ __privateAdd(this, _chainedNotifyCallback, void 0);
75
+ __privateAdd(this, _chainedWatchCallback, void 0);
76
+ __privateAdd(this, _grid, void 0);
77
+ var _a, _b;
78
+ __privateSet(this, _config, EMPTY_OBJECT);
79
+ __privateSet(this, _destructed, false);
80
+ __privateSet(this, _highlightInProgress, false);
81
+ __privateSet(this, _highlightSelection, SELECT_NONE);
82
+ __privateSet(this, _pendingWatchNotification, false);
83
+ __privateSet(this, _lastHighlightRange, (_a = __privateGet(this, _rangeOffsets)) == null ? void 0 : _a.join(" "));
84
+ __privateSet(this, _today, today());
85
+ __privateSet(this, _shiftControlsHandles, []);
86
+ __privateSet(this, _shiftControls, new Proxy(
87
+ indexed(() => {
88
+ var _a2;
89
+ return ((_a2 = __privateGet(this, _shiftControlsList)) == null ? void 0 : _a2.length) ?? 0;
90
+ }, __privateMethod(this, _getShiftControlRecordAtIndex, getShiftControlRecordAtIndex_fn).bind(this)),
66
91
  {
67
- ...Ai,
68
- get: (i, e, o) => {
69
- var c, u;
70
- const a = ((c = t(this, T)) == null ? void 0 : c.indexOf(e)) ?? -1;
71
- return a >= 0 ? (u = l(this, Q, wt).call(this, a)) == null ? void 0 : u[1] : Reflect.get(i, e, o);
92
+ ...immutableProxyHandlers,
93
+ get: (target, property, receiver) => {
94
+ var _a2, _b2;
95
+ const index = ((_a2 = __privateGet(this, _shiftControlsList)) == null ? void 0 : _a2.indexOf(property)) ?? -1;
96
+ return index >= 0 ? (_b2 = __privateMethod(this, _getShiftControlRecordAtIndex, getShiftControlRecordAtIndex_fn).call(this, index)) == null ? void 0 : _b2[1] : Reflect.get(target, property, receiver);
72
97
  }
73
98
  }
74
99
  ));
75
- h(this, D, Dt({
100
+ __privateSet(this, _watchable, watchable({
76
101
  blocks: () => {
77
- var i;
78
- return (i = t(this, s)) == null ? void 0 : i.size;
102
+ var _a2;
103
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.size;
79
104
  },
80
105
  cells: () => {
81
- var i;
82
- return (i = t(this, s)) == null ? void 0 : i.units;
106
+ var _a2;
107
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.units;
83
108
  },
84
- controls: () => V(vt, t(this, f).controls),
109
+ controls: () => pickFromCollection(CALENDAR_CONTROLS, __privateGet(this, _config).controls),
85
110
  cursor: () => {
86
- var i;
87
- return (i = t(this, s)) == null ? void 0 : i.cursor;
111
+ var _a2;
112
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.cursor;
88
113
  },
89
114
  from: () => {
90
- var i;
91
- return (i = t(this, s)) == null ? void 0 : i.selectionStart;
115
+ var _a2;
116
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionStart;
92
117
  },
93
- highlight: () => t(this, S),
118
+ highlight: () => __privateGet(this, _highlightSelection),
94
119
  locale: () => {
95
- var i;
96
- return (i = t(this, s)) == null ? void 0 : i.locale;
120
+ var _a2;
121
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.locale;
97
122
  },
98
- minified: () => G(t(this, f).minified),
123
+ minified: () => boolify(__privateGet(this, _config).minified),
99
124
  origin: () => {
100
- var i;
101
- return (i = t(this, s)) == null ? void 0 : i.getTimestampAtIndex(0);
125
+ var _a2;
126
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.getTimestampAtIndex(0);
102
127
  },
103
128
  to: () => {
104
- var i;
105
- return (i = t(this, s)) == null ? void 0 : i.selectionEnd;
129
+ var _a2;
130
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionEnd;
106
131
  },
107
- today: () => t(this, nt).timestamp
132
+ today: () => __privateGet(this, _today).timestamp
108
133
  }));
109
- h(this, v, (zt = t(this, D)) == null ? void 0 : zt.snapshot);
110
- h(this, P, Dt.withSyncEffect(
134
+ __privateSet(this, _lastWatchableSnapshot, (_b = __privateGet(this, _watchable)) == null ? void 0 : _b.snapshot);
135
+ __privateSet(this, _chainedNotifyCallback, watchable.withSyncEffect(
111
136
  () => {
112
- var i;
113
- return t(this, k) && ((i = t(this, D)) == null ? void 0 : i.notify());
137
+ var _a2;
138
+ return __privateGet(this, _watchCallback) && ((_a2 = __privateGet(this, _watchable)) == null ? void 0 : _a2.notify());
114
139
  }
115
140
  ));
116
- h(this, $, Dt.withSyncEffect(
141
+ __privateSet(this, _chainedWatchCallback, watchable.withSyncEffect(
117
142
  () => {
118
- var i;
119
- return (i = t(this, k)) == null ? void 0 : i.call(t(this, B, J));
143
+ var _a2;
144
+ return (_a2 = __privateGet(this, _watchCallback)) == null ? void 0 : _a2.call(__privateGet(this, _currentConfig, currentConfig_get));
120
145
  }
121
146
  ));
122
- h(this, ut, Fi(
123
- _t(
147
+ __privateSet(this, _grid, structFrom(
148
+ indexed(
124
149
  () => {
125
- var i;
126
- return ((i = t(this, s)) == null ? void 0 : i.size) ?? 0;
150
+ var _a2;
151
+ return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.size) ?? 0;
127
152
  },
128
- (i) => {
129
- var e;
130
- return (e = t(this, s)) == null ? void 0 : e.frameBlocks[i];
153
+ (index) => {
154
+ var _a2;
155
+ return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.frameBlocks[index];
131
156
  }
132
157
  ),
133
158
  {
134
159
  config: {
135
160
  value: Object.defineProperties(
136
- (i) => (i && l(this, bt, qt).call(this, i), t(this, B, J)),
161
+ (config) => {
162
+ config && __privateMethod(this, _configure, configure_fn).call(this, config);
163
+ return __privateGet(this, _currentConfig, currentConfig_get);
164
+ },
137
165
  {
138
166
  cursorIndex: {
139
- get: () => t(this, A),
140
- set: (i) => {
141
- t(this, F) || (i == null ? r(this, A, void 0) : L(i) && r(this, A, i));
167
+ get: () => __privateGet(this, _cursorIndexFromEvent),
168
+ set: (fn) => {
169
+ if (__privateGet(this, _destructed))
170
+ return;
171
+ if (fn == void 0)
172
+ __privateSet(this, _cursorIndexFromEvent, void 0);
173
+ else if (isFunction(fn))
174
+ __privateSet(this, _cursorIndexFromEvent, fn);
142
175
  }
143
176
  },
144
177
  shiftFactor: {
145
- get: () => t(this, I),
146
- set: (i) => {
147
- t(this, F) || (i == null ? r(this, I, void 0) : L(i) && r(this, I, i));
178
+ get: () => __privateGet(this, _shiftFactorFromEvent),
179
+ set: (fn) => {
180
+ if (__privateGet(this, _destructed))
181
+ return;
182
+ if (fn == void 0)
183
+ __privateSet(this, _shiftFactorFromEvent, void 0);
184
+ else if (isFunction(fn))
185
+ __privateSet(this, _shiftFactorFromEvent, fn);
148
186
  }
149
187
  },
150
188
  watch: {
151
- get: () => t(this, k),
152
- set: (i) => {
153
- var e, o, a, c, u;
154
- if (!t(this, F))
155
- if (L(i)) {
156
- if (r(this, k, i), !t(this, N)) {
157
- const m = (e = t(this, P)) == null ? void 0 : e.call(this, t(n, Tt).bind(this));
158
- m && (r(this, N, (o = t(this, P)) == null ? void 0 : o.call(this, xt)), r(this, U, (c = t(this, D)) == null ? void 0 : c.watch((a = t(this, $)) == null ? void 0 : a.call(this, m))), t(this, s) && (t(this, s).effect = t(this, N)));
189
+ get: () => __privateGet(this, _watchCallback),
190
+ set: (fn) => {
191
+ var _a2, _b2, _c, _d, _e;
192
+ if (__privateGet(this, _destructed))
193
+ return;
194
+ if (isFunction(fn)) {
195
+ __privateSet(this, _watchCallback, fn);
196
+ if (!__privateGet(this, _watchableEffect)) {
197
+ const watchCallback = (_a2 = __privateGet(this, _chainedNotifyCallback)) == null ? void 0 : _a2.call(this, __privateGet(_Calendar, _watchableEffectCallback).bind(this));
198
+ if (watchCallback) {
199
+ __privateSet(this, _watchableEffect, (_b2 = __privateGet(this, _chainedNotifyCallback)) == null ? void 0 : _b2.call(this, noop));
200
+ __privateSet(this, _unwatch, (_d = __privateGet(this, _watchable)) == null ? void 0 : _d.watch((_c = __privateGet(this, _chainedWatchCallback)) == null ? void 0 : _c.call(this, watchCallback)));
201
+ __privateGet(this, _frame) && (__privateGet(this, _frame).effect = __privateGet(this, _watchableEffect));
159
202
  }
160
- if (!t(this, W))
161
- return;
162
- r(this, W, !1), (u = t(this, N)) == null || u.call(this);
163
- } else
164
- i == null && r(this, k, void 0);
203
+ }
204
+ if (!__privateGet(this, _pendingWatchNotification))
205
+ return;
206
+ __privateSet(this, _pendingWatchNotification, false);
207
+ (_e = __privateGet(this, _watchableEffect)) == null ? void 0 : _e.call(this);
208
+ } else if (fn == void 0)
209
+ __privateSet(this, _watchCallback, void 0);
165
210
  }
166
211
  }
167
212
  }
168
213
  )
169
214
  },
170
- controls: { value: t(this, ft) },
215
+ controls: { value: __privateGet(this, _shiftControls) },
171
216
  cursor: {
172
217
  value: Object.defineProperties(
173
- (i) => l(n, x, ct).call(this, (e) => !!(e && l(this, yt, Qt).call(this, e)))(i),
218
+ (evt) => __privateMethod(_Calendar, _withNotifyEffect, withNotifyEffect_fn).call(this, (evt2) => !!(evt2 && __privateMethod(this, _cursorHandle, cursorHandle_fn).call(this, evt2)))(evt),
174
219
  {
175
220
  valueOf: { value: () => {
176
- var i;
177
- return ((i = t(this, s)) == null ? void 0 : i.cursor) ?? -1;
221
+ var _a2;
222
+ return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.cursor) ?? -1;
178
223
  } }
179
224
  }
180
225
  )
181
226
  },
182
227
  highlight: {
183
228
  value: (() => {
184
- const i = () => t(this, b) === t(this, g) && t(this, g) === void 0, e = (o) => (a) => l(n, x, ct).call(this, (c) => {
185
- var u, m, E, H, w;
186
- if (!(t(this, F) || !t(this, S) || t(this, S) === ot)) {
187
- if (c == null)
188
- return l(this, tt, Wt).call(this);
189
- i() ? (m = t(this, s)) == null || m.updateSelection(c, Ti) : ((u = t(this, s)) == null || u.updateSelection(c, o), t(this, S) === j && t(this, O) && l(this, Y, lt).call(this, c, o === C ? p : C, t(this, O))), r(this, b, (E = t(this, s)) == null ? void 0 : E.selectionStart), r(this, g, (H = t(this, s)) == null ? void 0 : H.selectionEnd), (w = t(this, s)) == null || w.shiftFrameToTimestamp(o === C ? t(this, b) : t(this, g));
190
- }
191
- })(a);
192
- return bi({
193
- blank: { get: i },
229
+ const blank = () => __privateGet(this, _highlightFrom) === __privateGet(this, _highlightTo) && __privateGet(this, _highlightTo) === void 0;
230
+ const setter = (selection) => (time) => __privateMethod(_Calendar, _withNotifyEffect, withNotifyEffect_fn).call(this, (time2) => {
231
+ var _a2, _b2, _c, _d, _e;
232
+ if (__privateGet(this, _destructed) || !__privateGet(this, _highlightSelection) || __privateGet(this, _highlightSelection) === SELECT_NONE)
233
+ return;
234
+ if (time2 == void 0)
235
+ return __privateMethod(this, _clearHighlight, clearHighlight_fn).call(this);
236
+ if (!blank()) {
237
+ (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.updateSelection(time2, selection);
238
+ if (__privateGet(this, _highlightSelection) === SELECT_MANY && __privateGet(this, _rangeOffsets)) {
239
+ __privateMethod(this, _rangeHighlight, rangeHighlight_fn).call(this, time2, selection === SELECTION_FROM ? SELECTION_TO : SELECTION_FROM, __privateGet(this, _rangeOffsets));
240
+ }
241
+ } else
242
+ (_b2 = __privateGet(this, _frame)) == null ? void 0 : _b2.updateSelection(time2, SELECTION_COLLAPSE);
243
+ __privateSet(this, _highlightFrom, (_c = __privateGet(this, _frame)) == null ? void 0 : _c.selectionStart);
244
+ __privateSet(this, _highlightTo, (_d = __privateGet(this, _frame)) == null ? void 0 : _d.selectionEnd);
245
+ (_e = __privateGet(this, _frame)) == null ? void 0 : _e.shiftFrameToTimestamp(selection === SELECTION_FROM ? __privateGet(this, _highlightFrom) : __privateGet(this, _highlightTo));
246
+ })(time);
247
+ return struct({
248
+ blank: { get: blank },
194
249
  from: {
195
250
  get: () => {
196
- var o;
197
- return ((o = t(this, s)) == null ? void 0 : o.selectionStart) ?? t(this, b);
251
+ var _a2;
252
+ return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionStart) ?? __privateGet(this, _highlightFrom);
198
253
  },
199
- set: e(C)
254
+ set: setter(SELECTION_FROM)
200
255
  },
201
256
  to: {
202
257
  get: () => {
203
- var o;
204
- return ((o = t(this, s)) == null ? void 0 : o.selectionEnd) ?? t(this, g);
258
+ var _a2;
259
+ return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionEnd) ?? __privateGet(this, _highlightTo);
205
260
  },
206
- set: e(p)
261
+ set: setter(SELECTION_TO)
207
262
  }
208
263
  });
209
264
  })()
210
265
  },
211
266
  rowspan: { get: () => {
212
- var i;
213
- return ((i = t(this, s)) == null ? void 0 : i.rowspan) ?? 0;
267
+ var _a2;
268
+ return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.rowspan) ?? 0;
214
269
  } },
215
270
  weekdays: { get: () => {
216
- var i;
217
- return ((i = t(this, s)) == null ? void 0 : i.daysOfWeek) ?? t(n, mt);
271
+ var _a2;
272
+ return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.daysOfWeek) ?? __privateGet(_Calendar, _DAYS_OF_WEEK_FALLBACK);
218
273
  } }
219
274
  }
220
275
  ));
221
- this.grid = t(this, ut), this.kill = l(this, Nt, ti).bind(this);
276
+ this.grid = __privateGet(this, _grid);
277
+ this.kill = __privateMethod(this, _destruct, destruct_fn).bind(this);
222
278
  }
223
279
  };
224
- f = new WeakMap(), F = new WeakMap(), s = new WeakMap(), b = new WeakMap(), g = new WeakMap(), y = new WeakMap(), S = new WeakMap(), W = new WeakMap(), O = new WeakMap(), M = new WeakMap(), A = new WeakMap(), I = new WeakMap(), k = new WeakMap(), N = new WeakMap(), U = new WeakMap(), nt = new WeakMap(), _ = new WeakMap(), T = new WeakMap(), ft = new WeakMap(), D = new WeakMap(), v = new WeakMap(), P = new WeakMap(), $ = new WeakMap(), ut = new WeakMap(), dt = new WeakMap(), St = new WeakMap(), mt = new WeakMap(), Et = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), Ct = new WeakSet(), Xt = function(i) {
225
- if (!Yt(i) || !t(n, dt).test(i))
280
+ _config = new WeakMap();
281
+ _destructed = new WeakMap();
282
+ _frame = new WeakMap();
283
+ _highlightFrom = new WeakMap();
284
+ _highlightTo = new WeakMap();
285
+ _highlightInProgress = new WeakMap();
286
+ _highlightSelection = new WeakMap();
287
+ _pendingWatchNotification = new WeakMap();
288
+ _rangeOffsets = new WeakMap();
289
+ _lastHighlightRange = new WeakMap();
290
+ _cursorIndexFromEvent = new WeakMap();
291
+ _shiftFactorFromEvent = new WeakMap();
292
+ _watchCallback = new WeakMap();
293
+ _watchableEffect = new WeakMap();
294
+ _unwatch = new WeakMap();
295
+ _today = new WeakMap();
296
+ _shiftControlsHandles = new WeakMap();
297
+ _shiftControlsList = new WeakMap();
298
+ _shiftControls = new WeakMap();
299
+ _watchable = new WeakMap();
300
+ _lastWatchableSnapshot = new WeakMap();
301
+ _chainedNotifyCallback = new WeakMap();
302
+ _chainedWatchCallback = new WeakMap();
303
+ _grid = new WeakMap();
304
+ _RANGE_OFFSETS_FORMAT_REGEX = new WeakMap();
305
+ _CURSOR_POINTER_INTERACTION_EVENTS = new WeakMap();
306
+ _DAYS_OF_WEEK_FALLBACK = new WeakMap();
307
+ _SHIFT_ACTIVATION_KEYS = new WeakMap();
308
+ _SHIFT_ALL_CONTROLS = new WeakMap();
309
+ _SHIFT_MINIMAL_CONTROLS = new WeakMap();
310
+ _getOffsetsFromRange = new WeakSet();
311
+ getOffsetsFromRange_fn = function(range) {
312
+ if (!isString(range))
226
313
  return;
227
- const e = i.split(/\s+/);
228
- return Array.from({ length: 6 }, (o, a) => parseInt(e[a] ?? "0"));
229
- }, gt = new WeakSet(), Jt = function(i) {
230
- switch (i & ~z.PREV) {
231
- case z.FRAME:
232
- return ri;
233
- case z.PERIOD:
234
- return Lt;
235
- case z.BLOCK:
314
+ if (!__privateGet(_Calendar, _RANGE_OFFSETS_FORMAT_REGEX).test(range))
315
+ return;
316
+ const offsets = range.split(/\s+/);
317
+ return Array.from({ length: 6 }, (_, index) => parseInt(offsets[index] ?? "0"));
318
+ };
319
+ _getShiftOffsetType = new WeakSet();
320
+ getShiftOffsetType_fn = function(flags) {
321
+ switch (flags & ~CalendarShiftControlFlag.PREV) {
322
+ case CalendarShiftControlFlag.FRAME:
323
+ return SHIFT_FRAME;
324
+ case CalendarShiftControlFlag.PERIOD:
325
+ return SHIFT_PERIOD;
326
+ case CalendarShiftControlFlag.BLOCK:
236
327
  default:
237
- return hi;
328
+ return SHIFT_BLOCK;
238
329
  }
239
- }, kt = new WeakSet(), Zt = function(i) {
240
- return i & z.PREV ? -1 : 1;
241
- }, Tt = new WeakMap(), x = new WeakSet(), ct = function(i) {
242
- var e;
243
- return ((e = t(this, P)) == null ? void 0 : e.call(this, i)) ?? i;
244
- }, B = new WeakSet(), J = function() {
245
- return { ...t(this, f) };
246
- }, q = new WeakSet(), Ht = function() {
247
- return new pi();
248
- }, Ft = new WeakSet(), $t = function(i) {
249
- return !!t(this, s) && !(i > 0 ? t(this, s).isAtEnd : t(this, s).isAtStart);
250
- }, bt = new WeakSet(), qt = function(i) {
251
- var a, c;
252
- if (t(this, F))
330
+ };
331
+ _getShiftOffsetUnit = new WeakSet();
332
+ getShiftOffsetUnit_fn = function(flags) {
333
+ return flags & CalendarShiftControlFlag.PREV ? -1 : 1;
334
+ };
335
+ _watchableEffectCallback = new WeakMap();
336
+ _withNotifyEffect = new WeakSet();
337
+ withNotifyEffect_fn = function(fn) {
338
+ var _a;
339
+ return ((_a = __privateGet(this, _chainedNotifyCallback)) == null ? void 0 : _a.call(this, fn)) ?? fn;
340
+ };
341
+ _currentConfig = new WeakSet();
342
+ currentConfig_get = function() {
343
+ return { ...__privateGet(this, _config) };
344
+ };
345
+ _timeframe = new WeakSet();
346
+ timeframe_get = function() {
347
+ return new MonthFrame();
348
+ };
349
+ _canShiftInDirection = new WeakSet();
350
+ canShiftInDirection_fn = function(shiftDirection) {
351
+ return !!__privateGet(this, _frame) && !(shiftDirection > 0 ? __privateGet(this, _frame).isAtEnd : __privateGet(this, _frame).isAtStart);
352
+ };
353
+ _configure = new WeakSet();
354
+ configure_fn = function(config) {
355
+ var _a, _b;
356
+ if (__privateGet(this, _destructed))
253
357
  return;
254
- r(this, O, void 0);
255
- const e = i == null ? void 0 : i.highlight, o = G(t(this, f).minified);
256
- if (Yt(e) ? r(this, O, l(a = n, Ct, Xt).call(a, e)) && r(this, S, j) : r(this, S, V(oi, e, t(this, S))), r(this, f, {
257
- ...t(this, f),
258
- ...i,
259
- blocks: V(ai, i == null ? void 0 : i.blocks, t(this, f).blocks),
260
- controls: V(vt, i == null ? void 0 : i.controls, t(this, f).controls),
261
- firstWeekDay: V(ci, i == null ? void 0 : i.firstWeekDay, t(this, f).firstWeekDay),
262
- fixedBlockHeight: G(i == null ? void 0 : i.fixedBlockHeight, t(this, f).fixedBlockHeight),
263
- highlight: t(this, S),
264
- minified: G(i == null ? void 0 : i.minified, t(this, f).minified),
265
- trackCurrentDay: G(i == null ? void 0 : i.trackCurrentDay, t(this, f).trackCurrentDay)
266
- }), !L(t(this, k))) {
267
- t(this, s) ? r(this, W, !0) : (r(this, s, t(this, q, Ht)), l(this, st, Bt).call(this), l(this, ht, Mt).call(this), l(this, et, Kt).call(this));
358
+ __privateSet(this, _rangeOffsets, void 0);
359
+ const highlight = config == null ? void 0 : config.highlight;
360
+ const minified = boolify(__privateGet(this, _config).minified);
361
+ if (!isString(highlight)) {
362
+ __privateSet(this, _highlightSelection, pickFromCollection(CALENDAR_SELECTIONS, highlight, __privateGet(this, _highlightSelection)));
363
+ } else if (__privateSet(this, _rangeOffsets, __privateMethod(_a = _Calendar, _getOffsetsFromRange, getOffsetsFromRange_fn).call(_a, highlight))) {
364
+ __privateSet(this, _highlightSelection, SELECT_MANY);
365
+ }
366
+ __privateSet(this, _config, {
367
+ ...__privateGet(this, _config),
368
+ ...config,
369
+ blocks: pickFromCollection(FRAME_SIZES, config == null ? void 0 : config.blocks, __privateGet(this, _config).blocks),
370
+ controls: pickFromCollection(CALENDAR_CONTROLS, config == null ? void 0 : config.controls, __privateGet(this, _config).controls),
371
+ firstWeekDay: pickFromCollection(FIRST_WEEK_DAYS, config == null ? void 0 : config.firstWeekDay, __privateGet(this, _config).firstWeekDay),
372
+ fixedBlockHeight: boolify(config == null ? void 0 : config.fixedBlockHeight, __privateGet(this, _config).fixedBlockHeight),
373
+ highlight: __privateGet(this, _highlightSelection),
374
+ minified: boolify(config == null ? void 0 : config.minified, __privateGet(this, _config).minified),
375
+ trackCurrentDay: boolify(config == null ? void 0 : config.trackCurrentDay, __privateGet(this, _config).trackCurrentDay)
376
+ });
377
+ if (!isFunction(__privateGet(this, _watchCallback))) {
378
+ if (!__privateGet(this, _frame)) {
379
+ __privateSet(this, _frame, __privateGet(this, _timeframe, timeframe_get));
380
+ __privateMethod(this, _reframe, reframe_fn).call(this);
381
+ __privateMethod(this, _refreshShiftControls, refreshShiftControls_fn).call(this);
382
+ __privateMethod(this, _refreshHighlighting, refreshHighlighting_fn).call(this);
383
+ } else
384
+ __privateSet(this, _pendingWatchNotification, true);
268
385
  return;
269
386
  }
270
- (!t(this, s) || o !== t(this, f).minified) && (r(this, s, t(this, q, Ht)), t(this, s).effect = t(this, N)), l(this, st, Bt).call(this), (c = t(this, N)) == null || c.call(this);
271
- }, yt = new WeakSet(), Qt = function(i) {
272
- if (i && t(this, s) && L(t(this, k))) {
273
- if (i instanceof KeyboardEvent) {
274
- switch (i.code) {
275
- case R.ARROW_LEFT:
276
- t(this, s).shiftFrameCursor(Ri);
277
- break;
278
- case R.ARROW_RIGHT:
279
- t(this, s).shiftFrameCursor(Oi);
280
- break;
281
- case R.ARROW_UP:
282
- t(this, s).shiftFrameCursor(Ei);
283
- break;
284
- case R.ARROW_DOWN:
285
- t(this, s).shiftFrameCursor(mi);
286
- break;
287
- case R.HOME:
288
- t(this, s).shiftFrameCursor(i.ctrlKey ? di : Si);
289
- break;
290
- case R.END:
291
- t(this, s).shiftFrameCursor(i.ctrlKey ? fi : ui);
292
- break;
293
- case R.PAGE_UP:
294
- i.shiftKey ? t(this, s).shiftFrameByOffset(-1, Lt) : t(this, s).shiftFrameCursor(ni);
295
- break;
296
- case R.PAGE_DOWN:
297
- i.shiftKey ? t(this, s).shiftFrameByOffset(1, Lt) : t(this, s).shiftFrameCursor(li);
298
- break;
299
- case R.SPACE:
300
- case R.ENTER:
301
- return l(this, K, Z).call(this), !0;
302
- default:
303
- return;
304
- }
305
- return t(this, y) && l(this, K, Z).call(this, X), !0;
306
- }
307
- if (i instanceof MouseEvent && t(n, St).includes(i.type) && L(t(this, A))) {
308
- const e = t(this, A).call(t(this, B, J), i);
309
- if (!yi(e))
310
- return;
311
- const o = i.type === "click";
312
- if (!(o || t(this, y)))
387
+ if (!__privateGet(this, _frame) || minified !== __privateGet(this, _config).minified) {
388
+ __privateSet(this, _frame, __privateGet(this, _timeframe, timeframe_get));
389
+ __privateGet(this, _frame).effect = __privateGet(this, _watchableEffect);
390
+ }
391
+ __privateMethod(this, _reframe, reframe_fn).call(this);
392
+ (_b = __privateGet(this, _watchableEffect)) == null ? void 0 : _b.call(this);
393
+ };
394
+ _cursorHandle = new WeakSet();
395
+ cursorHandle_fn = function(evt) {
396
+ if (!(evt && __privateGet(this, _frame) && isFunction(__privateGet(this, _watchCallback))))
397
+ return;
398
+ if (evt instanceof KeyboardEvent) {
399
+ switch (evt.code) {
400
+ case InteractionKeyCode.ARROW_LEFT:
401
+ __privateGet(this, _frame).shiftFrameCursor(CURSOR_BACKWARD);
402
+ break;
403
+ case InteractionKeyCode.ARROW_RIGHT:
404
+ __privateGet(this, _frame).shiftFrameCursor(CURSOR_FORWARD);
405
+ break;
406
+ case InteractionKeyCode.ARROW_UP:
407
+ __privateGet(this, _frame).shiftFrameCursor(CURSOR_UPWARD);
408
+ break;
409
+ case InteractionKeyCode.ARROW_DOWN:
410
+ __privateGet(this, _frame).shiftFrameCursor(CURSOR_DOWNWARD);
411
+ break;
412
+ case InteractionKeyCode.HOME:
413
+ __privateGet(this, _frame).shiftFrameCursor(evt.ctrlKey ? CURSOR_BLOCK_START : CURSOR_LINE_START);
414
+ break;
415
+ case InteractionKeyCode.END:
416
+ __privateGet(this, _frame).shiftFrameCursor(evt.ctrlKey ? CURSOR_BLOCK_END : CURSOR_LINE_END);
417
+ break;
418
+ case InteractionKeyCode.PAGE_UP:
419
+ evt.shiftKey ? __privateGet(this, _frame).shiftFrameByOffset(-1, SHIFT_PERIOD) : __privateGet(this, _frame).shiftFrameCursor(CURSOR_PREV_BLOCK);
420
+ break;
421
+ case InteractionKeyCode.PAGE_DOWN:
422
+ evt.shiftKey ? __privateGet(this, _frame).shiftFrameByOffset(1, SHIFT_PERIOD) : __privateGet(this, _frame).shiftFrameCursor(CURSOR_NEXT_BLOCK);
423
+ break;
424
+ case InteractionKeyCode.SPACE:
425
+ case InteractionKeyCode.ENTER:
426
+ __privateMethod(this, _highlight, highlight_fn).call(this);
427
+ return true;
428
+ default:
313
429
  return;
314
- if (t(this, s).shiftFrameCursor(e), t(this, s).cursor === e)
315
- return o ? l(this, K, Z).call(this) : l(this, K, Z).call(this, X), !0;
430
+ }
431
+ __privateGet(this, _highlightInProgress) && __privateMethod(this, _highlight, highlight_fn).call(this, EMPTY_OBJECT);
432
+ return true;
433
+ }
434
+ if (evt instanceof MouseEvent && __privateGet(_Calendar, _CURSOR_POINTER_INTERACTION_EVENTS).includes(evt.type) && isFunction(__privateGet(this, _cursorIndexFromEvent))) {
435
+ const cursorIndex = __privateGet(this, _cursorIndexFromEvent).call(__privateGet(this, _currentConfig, currentConfig_get), evt);
436
+ if (!isBitSafeInteger(cursorIndex))
437
+ return;
438
+ const isClick = evt.type === "click";
439
+ if (!(isClick || __privateGet(this, _highlightInProgress)))
440
+ return;
441
+ __privateGet(this, _frame).shiftFrameCursor(cursorIndex);
442
+ if (__privateGet(this, _frame).cursor === cursorIndex) {
443
+ isClick ? __privateMethod(this, _highlight, highlight_fn).call(this) : __privateMethod(this, _highlight, highlight_fn).call(this, EMPTY_OBJECT);
444
+ return true;
316
445
  }
317
446
  }
318
- }, Nt = new WeakSet(), ti = function() {
319
- var i;
320
- t(this, F) || ((i = t(this, U)) == null || i.call(this), r(this, P, r(this, $, r(this, A, r(this, s, r(this, S, r(this, M, r(this, v, r(this, O, r(this, I, r(this, U, r(this, D, r(this, N, r(this, k, void 0))))))))))))), r(this, f, X), r(this, y, r(this, W, !1)), r(this, F, !0));
321
- }, Q = new WeakSet(), wt = function(i) {
322
- var o, a;
323
- if (!t(this, T) || i < 0 || i >= t(this, T).length)
447
+ };
448
+ _destruct = new WeakSet();
449
+ destruct_fn = function() {
450
+ var _a;
451
+ if (__privateGet(this, _destructed))
324
452
  return;
325
- const e = t(this, T)[i];
326
- if (!t(this, _)[i]) {
327
- const c = jt[e], u = l(o = n, gt, Jt).call(o, c), m = l(a = n, kt, Zt).call(a, c);
328
- t(this, _)[i] = (...E) => l(n, x, ct).call(this, (...H) => {
329
- var Ut;
330
- const w = l(this, Ft, $t).call(this, m);
331
- if (!(w && H.length))
332
- return w;
333
- const rt = l(this, pt, ii).call(this, e, H[0]);
334
- return rt === void 0 ? !1 : ((Ut = t(this, s)) == null || Ut.shiftFrameByOffset(m * rt, u), !0);
335
- })(...E);
453
+ (_a = __privateGet(this, _unwatch)) == null ? void 0 : _a.call(this);
454
+ __privateSet(this, _chainedNotifyCallback, __privateSet(this, _chainedWatchCallback, __privateSet(this, _cursorIndexFromEvent, __privateSet(this, _frame, __privateSet(this, _highlightSelection, __privateSet(this, _lastHighlightRange, __privateSet(this, _lastWatchableSnapshot, __privateSet(this, _rangeOffsets, __privateSet(this, _shiftFactorFromEvent, __privateSet(this, _unwatch, __privateSet(this, _watchable, __privateSet(this, _watchableEffect, __privateSet(this, _watchCallback, void 0)))))))))))));
455
+ __privateSet(this, _config, EMPTY_OBJECT);
456
+ __privateSet(this, _highlightInProgress, __privateSet(this, _pendingWatchNotification, false));
457
+ __privateSet(this, _destructed, true);
458
+ };
459
+ _getShiftControlRecordAtIndex = new WeakSet();
460
+ getShiftControlRecordAtIndex_fn = function(index) {
461
+ var _a, _b;
462
+ if (!__privateGet(this, _shiftControlsList) || index < 0 || index >= __privateGet(this, _shiftControlsList).length)
463
+ return;
464
+ const control = __privateGet(this, _shiftControlsList)[index];
465
+ if (!__privateGet(this, _shiftControlsHandles)[index]) {
466
+ const flags = CalendarShiftControlsFlag[control];
467
+ const shiftOffsetType = __privateMethod(_a = _Calendar, _getShiftOffsetType, getShiftOffsetType_fn).call(_a, flags);
468
+ const shiftOffsetUnit = __privateMethod(_b = _Calendar, _getShiftOffsetUnit, getShiftOffsetUnit_fn).call(_b, flags);
469
+ __privateGet(this, _shiftControlsHandles)[index] = (...args) => __privateMethod(_Calendar, _withNotifyEffect, withNotifyEffect_fn).call(this, (...args2) => {
470
+ var _a2;
471
+ const canShift = __privateMethod(this, _canShiftInDirection, canShiftInDirection_fn).call(this, shiftOffsetUnit);
472
+ if (!(canShift && args2.length))
473
+ return canShift;
474
+ const shiftFactor = __privateMethod(this, _getShiftFactorFromEvent, getShiftFactorFromEvent_fn).call(this, control, args2[0]);
475
+ if (shiftFactor === void 0)
476
+ return false;
477
+ (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.shiftFrameByOffset(shiftOffsetUnit * shiftFactor, shiftOffsetType);
478
+ return true;
479
+ })(...args);
336
480
  }
337
- return [e, t(this, _)[i]];
338
- }, pt = new WeakSet(), ii = function(i, e) {
339
- if (!(t(this, s) && L(t(this, k))))
481
+ return [control, __privateGet(this, _shiftControlsHandles)[index]];
482
+ };
483
+ _getShiftFactorFromEvent = new WeakSet();
484
+ getShiftFactorFromEvent_fn = function(target, evt) {
485
+ if (!(__privateGet(this, _frame) && isFunction(__privateGet(this, _watchCallback))))
340
486
  return;
341
- if (e instanceof MouseEvent) {
342
- if (e.type !== "click")
487
+ if (evt instanceof MouseEvent) {
488
+ if (evt.type !== "click")
343
489
  return;
344
- } else if (e instanceof KeyboardEvent) {
345
- if (!t(n, Et).includes(e.code))
490
+ } else if (evt instanceof KeyboardEvent) {
491
+ if (!__privateGet(_Calendar, _SHIFT_ACTIVATION_KEYS).includes(evt.code))
346
492
  return;
347
493
  } else
348
494
  return;
349
- let o = 1;
350
- if (L(t(this, I))) {
351
- const a = Number(t(this, I).call(t(this, B, J), e, i));
352
- o = Number.isInteger(a) && a >= 1 ? a : o;
495
+ let shiftFactor = 1;
496
+ if (isFunction(__privateGet(this, _shiftFactorFromEvent))) {
497
+ const factor = Number(__privateGet(this, _shiftFactorFromEvent).call(__privateGet(this, _currentConfig, currentConfig_get), evt, target));
498
+ shiftFactor = Number.isInteger(factor) && factor >= 1 ? factor : shiftFactor;
353
499
  }
354
- return o;
355
- }, K = new WeakSet(), Z = function(i) {
356
- if (t(this, F) || !t(this, s))
500
+ return shiftFactor;
501
+ };
502
+ _highlight = new WeakSet();
503
+ highlight_fn = function(secretFauxHighlightingHint) {
504
+ if (__privateGet(this, _destructed) || !__privateGet(this, _frame))
357
505
  return;
358
- switch (t(this, S)) {
359
- case j:
360
- case at:
506
+ switch (__privateGet(this, _highlightSelection)) {
507
+ case SELECT_MANY:
508
+ case SELECT_ONE:
361
509
  break;
362
- case ot:
510
+ case SELECT_NONE:
363
511
  default:
364
512
  return;
365
513
  }
366
- const e = t(this, s).cursor, o = t(this, s).getTimestampAtIndex(e), a = t(this, s).getTimestampAtIndex(e + 1) - 1, c = t(this, O);
367
- if (t(this, S) === at || t(this, s).blankSelection || c)
368
- if (r(this, y, !(t(this, S) === at || c)), t(this, S) === j && c) {
369
- const u = a >= t(this, s).selectionEnd ? C : p;
370
- u === C ? t(this, s).updateSelection(a, p) : t(this, s).updateSelection(o, C), l(this, Y, lt).call(this, u === C ? t(this, s).selectionEnd : t(this, s).selectionStart, u, c);
371
- } else
372
- t(this, s).updateSelection(o, C), t(this, s).updateSelection(a, p);
373
- else {
374
- const u = i === X;
375
- if (u || r(this, y, !1), o <= t(this, s).selectionStart ? t(this, s).updateSelection(o, C) : t(this, s).updateSelection(a, p), u)
514
+ const cursor = __privateGet(this, _frame).cursor;
515
+ const fromTimestamp = __privateGet(this, _frame).getTimestampAtIndex(cursor);
516
+ const toTimestamp = __privateGet(this, _frame).getTimestampAtIndex(cursor + 1) - 1;
517
+ const range = __privateGet(this, _rangeOffsets);
518
+ if (__privateGet(this, _highlightSelection) === SELECT_ONE || __privateGet(this, _frame).blankSelection || range) {
519
+ __privateSet(this, _highlightInProgress, !(__privateGet(this, _highlightSelection) === SELECT_ONE || range));
520
+ if (__privateGet(this, _highlightSelection) === SELECT_MANY && range) {
521
+ const selectionDirection = toTimestamp >= __privateGet(this, _frame).selectionEnd ? SELECTION_FROM : SELECTION_TO;
522
+ selectionDirection === SELECTION_FROM ? __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO) : __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
523
+ __privateMethod(this, _rangeHighlight, rangeHighlight_fn).call(this, selectionDirection === SELECTION_FROM ? __privateGet(this, _frame).selectionEnd : __privateGet(this, _frame).selectionStart, selectionDirection, range);
524
+ } else {
525
+ __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
526
+ __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO);
527
+ }
528
+ } else {
529
+ const isFauxHighlighting = secretFauxHighlightingHint === EMPTY_OBJECT;
530
+ if (!isFauxHighlighting)
531
+ __privateSet(this, _highlightInProgress, false);
532
+ if (fromTimestamp <= __privateGet(this, _frame).selectionStart) {
533
+ const selectionStartDay = new Date(__privateGet(this, _frame).selectionStart);
534
+ const selectionStartDayEndTimestamp = selectionStartDay.setDate(selectionStartDay.getDate() + 1) - 1;
535
+ if (fromTimestamp === __privateGet(this, _frame).selectionStart && toTimestamp <= selectionStartDayEndTimestamp) {
536
+ __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO);
537
+ }
538
+ __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
539
+ } else {
540
+ const selectionEndDay = new Date(__privateGet(this, _frame).selectionEnd);
541
+ const selectionEndDayStartTimestamp = selectionEndDay.setHours(0, 0, 0, 0);
542
+ if (fromTimestamp <= __privateGet(this, _frame).selectionEnd && fromTimestamp >= selectionEndDayStartTimestamp) {
543
+ __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
544
+ }
545
+ __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO);
546
+ }
547
+ if (isFauxHighlighting)
376
548
  return;
377
549
  }
378
- r(this, b, t(this, s).selectionStart), r(this, g, t(this, s).selectionEnd);
379
- }, tt = new WeakSet(), Wt = function() {
380
- var i;
381
- (i = t(this, s)) == null || i.clearSelection(), r(this, y, !1), r(this, b, r(this, g, void 0));
382
- }, Y = new WeakSet(), lt = function(i, e, o) {
383
- if (!t(this, s))
550
+ __privateSet(this, _highlightFrom, __privateGet(this, _frame).selectionStart);
551
+ __privateSet(this, _highlightTo, __privateGet(this, _frame).selectionEnd);
552
+ };
553
+ _clearHighlight = new WeakSet();
554
+ clearHighlight_fn = function() {
555
+ var _a;
556
+ (_a = __privateGet(this, _frame)) == null ? void 0 : _a.clearSelection();
557
+ __privateSet(this, _highlightInProgress, false);
558
+ __privateSet(this, _highlightFrom, __privateSet(this, _highlightTo, void 0));
559
+ };
560
+ _rangeHighlight = new WeakSet();
561
+ rangeHighlight_fn = function(time, selectionDirection, rangeOffsets) {
562
+ if (!__privateGet(this, _frame))
563
+ return;
564
+ const date = new Date(time);
565
+ const direction = selectionDirection === SELECTION_FROM ? -1 : 1;
566
+ const [years = 0, months = 0, days = 0, hours = 0, minutes = 0, seconds = 0] = rangeOffsets ?? [];
567
+ date.setFullYear(date.getFullYear() + years * direction, date.getMonth() + months * direction, date.getDate() + days * direction);
568
+ date.setHours(date.getHours() + hours * direction, date.getMinutes() + minutes * direction, date.getSeconds() + seconds * direction);
569
+ __privateGet(this, _frame).updateSelection(date.getTime() - direction, selectionDirection);
570
+ };
571
+ _restoreHighlight = new WeakSet();
572
+ restoreHighlight_fn = function() {
573
+ var _a, _b;
574
+ __privateGet(this, _highlightFrom) && ((_a = __privateGet(this, _frame)) == null ? void 0 : _a.updateSelection(__privateGet(this, _highlightFrom), SELECTION_FROM));
575
+ __privateGet(this, _highlightTo) && ((_b = __privateGet(this, _frame)) == null ? void 0 : _b.updateSelection(__privateGet(this, _highlightTo), SELECTION_TO));
576
+ __privateSet(this, _highlightInProgress, false);
577
+ };
578
+ _reframe = new WeakSet();
579
+ reframe_fn = function() {
580
+ if (!__privateGet(this, _frame))
384
581
  return;
385
- const a = new Date(i), c = e === C ? -1 : 1, [u = 0, m = 0, E = 0, H = 0, w = 0, rt = 0] = o ?? [];
386
- a.setFullYear(a.getFullYear() + u * c, a.getMonth() + m * c, a.getDate() + E * c), a.setHours(a.getHours() + H * c, a.getMinutes() + w * c, a.getSeconds() + rt * c), t(this, s).updateSelection(a.getTime() - c, e);
387
- }, it = new WeakSet(), Pt = function() {
388
- var i, e;
389
- t(this, b) && ((i = t(this, s)) == null || i.updateSelection(t(this, b), C)), t(this, g) && ((e = t(this, s)) == null || e.updateSelection(t(this, g), p)), r(this, y, !1);
390
- }, st = new WeakSet(), Bt = function() {
391
- 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, l(this, it, Pt).call(this));
392
- }, et = new WeakSet(), Kt = function() {
393
- var i, e, o, a, c;
394
- switch (t(this, S)) {
395
- case j:
396
- ((i = t(this, s)) == null ? void 0 : i.blankSelection) === !1 && t(this, O) && l(this, Y, lt).call(this, (e = t(this, s)) == null ? void 0 : e.selectionStart, p, t(this, O));
582
+ __privateGet(this, _frame).timeslice = __privateGet(this, _config).timeslice;
583
+ __privateGet(this, _frame).dynamicBlockHeight = !__privateGet(this, _config).fixedBlockHeight;
584
+ __privateGet(this, _frame).firstWeekDay = __privateGet(this, _config).firstWeekDay;
585
+ __privateGet(this, _frame).locale = __privateGet(this, _config).locale;
586
+ __privateGet(this, _frame).size = __privateGet(this, _config).blocks;
587
+ __privateGet(this, _frame).trackCurrentDay = __privateGet(this, _config).trackCurrentDay;
588
+ __privateMethod(this, _restoreHighlight, restoreHighlight_fn).call(this);
589
+ };
590
+ _refreshHighlighting = new WeakSet();
591
+ refreshHighlighting_fn = function() {
592
+ var _a, _b, _c, _d, _e;
593
+ switch (__privateGet(this, _highlightSelection)) {
594
+ case SELECT_MANY:
595
+ if (((_a = __privateGet(this, _frame)) == null ? void 0 : _a.blankSelection) === false && __privateGet(this, _rangeOffsets)) {
596
+ __privateMethod(this, _rangeHighlight, rangeHighlight_fn).call(this, (_b = __privateGet(this, _frame)) == null ? void 0 : _b.selectionStart, SELECTION_TO, __privateGet(this, _rangeOffsets));
597
+ }
397
598
  break;
398
- case at:
399
- ((o = t(this, s)) == null ? void 0 : o.blankSelection) === !1 && ((c = t(this, s)) == null || c.updateSelection(new Date((a = t(this, s)) == null ? void 0 : a.selectionStart).setHours(23, 59, 59, 999), p));
599
+ case SELECT_ONE:
600
+ if (((_c = __privateGet(this, _frame)) == null ? void 0 : _c.blankSelection) === false) {
601
+ (_e = __privateGet(this, _frame)) == null ? void 0 : _e.updateSelection(new Date((_d = __privateGet(this, _frame)) == null ? void 0 : _d.selectionStart).setHours(23, 59, 59, 999), SELECTION_TO);
602
+ }
400
603
  break;
401
- case ot:
604
+ case SELECT_NONE:
402
605
  default:
403
- l(this, tt, Wt).call(this);
606
+ __privateMethod(this, _clearHighlight, clearHighlight_fn).call(this);
404
607
  return;
405
608
  }
406
- }, ht = new WeakSet(), Mt = function() {
407
- var i, e;
408
- switch ((i = t(this, D)) == null ? void 0 : i.snapshot.controls) {
409
- case ki:
410
- r(this, T, t(n, Ot));
609
+ };
610
+ _refreshShiftControls = new WeakSet();
611
+ refreshShiftControls_fn = function() {
612
+ var _a, _b;
613
+ switch ((_a = __privateGet(this, _watchable)) == null ? void 0 : _a.snapshot.controls) {
614
+ case CONTROLS_ALL:
615
+ __privateSet(this, _shiftControlsList, __privateGet(_Calendar, _SHIFT_ALL_CONTROLS));
411
616
  break;
412
- case gi:
413
- r(this, T, t(n, Rt));
617
+ case CONTROLS_MINIMAL:
618
+ __privateSet(this, _shiftControlsList, __privateGet(_Calendar, _SHIFT_MINIMAL_CONTROLS));
414
619
  break;
415
- case Ci:
620
+ case CONTROLS_NONE:
416
621
  default:
417
- r(this, T, void 0);
622
+ __privateSet(this, _shiftControlsList, void 0);
418
623
  }
419
- t(this, _).length = 0, t(this, _).length = ((e = t(this, T)) == null ? void 0 : e.length) ?? 0;
420
- }, h(n, Ct), h(n, gt), h(n, kt), h(n, x), h(n, dt, /^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/), h(n, St, ["click", "mouseover", "pointerover"]), h(n, mt, _t(0, xt)), h(n, Et, [R.ENTER, R.SPACE]), h(n, Ot, Object.keys(jt).filter((i) => isNaN(+i))), h(n, Rt, ["PREV", "NEXT"]), h(n, Tt, function(i) {
421
- var u, m;
422
- if (typeof i == "symbol")
624
+ __privateGet(this, _shiftControlsHandles).length = 0;
625
+ __privateGet(this, _shiftControlsHandles).length = ((_b = __privateGet(this, _shiftControlsList)) == null ? void 0 : _b.length) ?? 0;
626
+ };
627
+ __privateAdd(_Calendar, _getOffsetsFromRange);
628
+ __privateAdd(_Calendar, _getShiftOffsetType);
629
+ __privateAdd(_Calendar, _getShiftOffsetUnit);
630
+ __privateAdd(_Calendar, _withNotifyEffect);
631
+ __privateAdd(_Calendar, _RANGE_OFFSETS_FORMAT_REGEX, /^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/);
632
+ __privateAdd(_Calendar, _CURSOR_POINTER_INTERACTION_EVENTS, ["click", "mouseover", "pointerover"]);
633
+ __privateAdd(_Calendar, _DAYS_OF_WEEK_FALLBACK, indexed(0, noop));
634
+ __privateAdd(_Calendar, _SHIFT_ACTIVATION_KEYS, [InteractionKeyCode.ENTER, InteractionKeyCode.SPACE]);
635
+ __privateAdd(_Calendar, _SHIFT_ALL_CONTROLS, Object.keys(CalendarShiftControlsFlag).filter((control) => isNaN(+control)));
636
+ __privateAdd(_Calendar, _SHIFT_MINIMAL_CONTROLS, ["PREV", "NEXT"]);
637
+ __privateAdd(_Calendar, _watchableEffectCallback, function(signalOrSnapshot) {
638
+ var _a, _b;
639
+ if (typeof signalOrSnapshot === "symbol")
423
640
  return;
424
- let e = !1, o = !1, a = !1;
425
- const c = (u = t(this, O)) == null ? void 0 : u.join(" ");
426
- for (const E of Object.keys(i))
427
- i[E] !== ((m = t(this, v)) == null ? void 0 : m[E]) && (E === "controls" ? e = !0 : E === "highlight" ? o = !0 : (E === "from" || E === "to") && (a = !0));
428
- t(this, M) !== c && (r(this, M, c), o = !0), r(this, v, i), t(this, y) && !a && l(this, it, Pt).call(this), e && l(this, ht, Mt).call(this), o && l(this, et, Kt).call(this);
641
+ let controlsChanged = false;
642
+ let highlightChanged = false;
643
+ let selectionChanged = false;
644
+ const highlightRange = (_a = __privateGet(this, _rangeOffsets)) == null ? void 0 : _a.join(" ");
645
+ for (const key of Object.keys(signalOrSnapshot)) {
646
+ if (signalOrSnapshot[key] === ((_b = __privateGet(this, _lastWatchableSnapshot)) == null ? void 0 : _b[key]))
647
+ continue;
648
+ if (key === "controls")
649
+ controlsChanged = true;
650
+ else if (key === "highlight")
651
+ highlightChanged = true;
652
+ else if (key === "from" || key === "to")
653
+ selectionChanged = true;
654
+ }
655
+ if (__privateGet(this, _lastHighlightRange) !== highlightRange) {
656
+ __privateSet(this, _lastHighlightRange, highlightRange);
657
+ highlightChanged = true;
658
+ }
659
+ __privateSet(this, _lastWatchableSnapshot, signalOrSnapshot);
660
+ if (__privateGet(this, _highlightInProgress) && !selectionChanged)
661
+ __privateMethod(this, _restoreHighlight, restoreHighlight_fn).call(this);
662
+ if (controlsChanged)
663
+ __privateMethod(this, _refreshShiftControls, refreshShiftControls_fn).call(this);
664
+ if (highlightChanged)
665
+ __privateMethod(this, _refreshHighlighting, refreshHighlighting_fn).call(this);
429
666
  });
430
- let Vt = n;
667
+ let Calendar = _Calendar;
431
668
  export {
432
- Vt as default
669
+ Calendar as default
433
670
  };