@adyen/adyen-platform-experience-web 1.0.1 → 1.0.3

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 (451) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/es/components/external/BaseElement.js +12 -3
  5. package/dist/es/components/external/PayoutDetails/PayoutDetails.js +18 -14
  6. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +200 -85
  7. package/dist/es/components/external/PayoutDetails/components/constants.js +8 -7
  8. package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +14 -20
  9. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +137 -116
  10. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverviewContainer/PayoutsOverviewContainer.js +22 -14
  11. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +92 -56
  12. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +16 -12
  13. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +81 -57
  14. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +12 -9
  15. package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +17 -23
  16. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +16 -4
  17. package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +35 -34
  18. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +52 -26
  19. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +17 -4
  20. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +20 -25
  21. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +1 -13
  22. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +12 -7
  23. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +4 -1
  24. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +47 -20
  25. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +22 -13
  26. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +23 -28
  27. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +30 -30
  28. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +72 -41
  29. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +215 -186
  30. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +22 -14
  31. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +21 -14
  32. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +116 -83
  33. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -6
  34. package/dist/es/components/external/UIElement/UIElement.js +39 -24
  35. package/dist/es/components/hooks/useBalanceAccountSelection.js +20 -11
  36. package/dist/es/components/hooks/useBalanceAccounts.js +22 -19
  37. package/dist/es/components/hooks/useDefaultOverviewFilterParams.js +28 -16
  38. package/dist/es/components/hooks/useTimezoneAwareDateFormatting.js +31 -0
  39. package/dist/es/components/internal/Accordion/Accordion.js +58 -0
  40. package/dist/es/components/internal/Accordion/Accordion.scss.js +4 -0
  41. package/dist/es/components/internal/Accordion/constants.js +8 -0
  42. package/dist/es/components/internal/BaseButton/BaseButton.js +26 -12
  43. package/dist/es/components/internal/BaseList/BaseList.js +8 -3
  44. package/dist/es/components/internal/Button/Button.js +31 -18
  45. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +19 -13
  46. package/dist/es/components/internal/Button/ButtonActions/types.js +4 -1
  47. package/dist/es/components/internal/Button/hooks/useButton.js +7 -10
  48. package/dist/es/components/internal/Calendar/Calendar.js +16 -15
  49. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +301 -292
  50. package/dist/es/components/internal/Calendar/calendar/facade/index.js +40 -13
  51. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +17 -18
  52. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +125 -100
  53. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +209 -200
  54. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +14 -9
  55. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +23 -19
  56. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +23 -14
  57. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +26 -22
  58. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +11 -10
  59. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -41
  60. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
  61. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +26 -17
  62. package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
  63. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +11 -3
  64. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +46 -19
  65. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +57 -39
  66. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +44 -26
  67. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +26 -12
  68. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +82 -72
  69. package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +33 -38
  70. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +25 -9
  71. package/dist/es/components/internal/Card/Card.js +28 -17
  72. package/dist/es/components/internal/CopyText/CopyText.js +15 -11
  73. package/dist/es/components/internal/DataGrid/DataGrid.js +104 -68
  74. package/dist/es/components/internal/DataGrid/DataGridCell.js +24 -23
  75. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +20 -12
  76. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +24 -14
  77. package/dist/es/components/internal/DataGrid/components/TableBody.js +14 -9
  78. package/dist/es/components/internal/DataGrid/components/TableCells.js +31 -10
  79. package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +23 -16
  80. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +75 -68
  81. package/dist/es/components/internal/DataGrid/utils/DataGridProvider.js +23 -18
  82. package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +15 -15
  83. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +80 -39
  84. package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +19 -18
  85. package/dist/es/components/internal/DataOverviewDisplay/constants.js +20 -1
  86. package/dist/es/components/internal/DataOverviewError/DataOverviewError.js +13 -16
  87. package/dist/es/components/internal/DatePicker/DatePicker.js +52 -33
  88. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +24 -15
  89. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +25 -29
  90. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +48 -27
  91. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +59 -34
  92. package/dist/es/components/internal/FilterBar/FilterBar.js +29 -28
  93. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +26 -5
  94. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +54 -49
  95. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +64 -55
  96. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +83 -90
  97. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +40 -44
  98. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +123 -103
  99. package/dist/es/components/internal/FormFields/InputBase.js +63 -54
  100. package/dist/es/components/internal/FormFields/InputText.js +11 -5
  101. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +30 -33
  102. package/dist/es/components/internal/FormFields/Select/Select.js +142 -149
  103. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +81 -61
  104. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +59 -54
  105. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +51 -31
  106. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -28
  107. package/dist/es/components/internal/Image/Image.js +21 -8
  108. package/dist/es/components/internal/Img/Img.js +25 -9
  109. package/dist/es/components/internal/Modal/Modal.js +61 -81
  110. package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +23 -4
  111. package/dist/es/components/internal/Pagination/Pagination.js +58 -51
  112. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +11 -4
  113. package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +12 -5
  114. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +30 -27
  115. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +104 -67
  116. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +7 -1
  117. package/dist/es/components/internal/Pagination/hooks/usePagination.js +34 -13
  118. package/dist/es/components/internal/Popover/Popover.js +118 -128
  119. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +27 -20
  120. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +13 -6
  121. package/dist/es/components/internal/Popover/utils/popoverUtil.js +15 -7
  122. package/dist/es/components/internal/Popover/utils/utils.js +9 -8
  123. package/dist/es/components/internal/SVGIcons/CheckedBox.js +18 -10
  124. package/dist/es/components/internal/SVGIcons/Checkmark.js +20 -12
  125. package/dist/es/components/internal/SVGIcons/ChevronDown.js +20 -12
  126. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +18 -10
  127. package/dist/es/components/internal/SVGIcons/ChevronRight.js +18 -10
  128. package/dist/es/components/internal/SVGIcons/ChevronUp.js +20 -12
  129. package/dist/es/components/internal/SVGIcons/Close.js +11 -5
  130. package/dist/es/components/internal/SVGIcons/Copy.js +13 -1
  131. package/dist/es/components/internal/SVGIcons/Filter.js +12 -5
  132. package/dist/es/components/internal/SVGIcons/UncheckedBox.js +18 -4
  133. package/dist/es/components/internal/Spinner/Spinner.js +14 -0
  134. package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
  135. package/dist/es/components/internal/StructuredList/StructuredList.js +24 -19
  136. package/dist/es/components/internal/StructuredList/useStructuredListItem.js +14 -15
  137. package/dist/es/components/internal/Tag/Tag.js +16 -16
  138. package/dist/es/components/internal/Tooltip/Tooltip.js +35 -18
  139. package/dist/es/components/internal/Tooltip/useTooltipListeners.js +7 -10
  140. package/dist/es/components/internal/Typography/Typography.js +38 -28
  141. package/dist/es/components/utils/getCommonErrorCode.js +4 -1
  142. package/dist/es/components/utils/getErrorMessage.js +7 -5
  143. package/dist/es/core/Auth/context.js +14 -8
  144. package/dist/es/core/Auth/session/AuthSession.js +53 -73
  145. package/dist/es/core/Auth/session/AuthSessionSpecification.js +54 -39
  146. package/dist/es/core/Auth/session/AuthSetupContext.js +67 -43
  147. package/dist/es/core/Auth/session/constants.js +8 -11
  148. package/dist/es/core/Context/CoreProvider.js +21 -11
  149. package/dist/es/core/Http/http.js +43 -33
  150. package/dist/es/core/Http/utils.js +18 -12
  151. package/dist/es/core/Localization/Localization.js +98 -82
  152. package/dist/es/core/Localization/constants/localization.js +5 -1
  153. package/dist/es/core/Localization/datetime/restamper/constants.js +12 -2
  154. package/dist/es/core/Localization/datetime/restamper/restamper.js +18 -5
  155. package/dist/es/core/Localization/datetime/restamper/utils.js +28 -25
  156. package/dist/es/core/Localization/localization-utils.js +30 -18
  157. package/dist/es/core/Localization/utils.js +6 -1
  158. package/dist/es/core/core.js +26 -17
  159. package/dist/es/hooks/element/useClickOutside.js +29 -35
  160. package/dist/es/hooks/element/useDetachedRender.js +7 -10
  161. package/dist/es/hooks/element/useFocusCursor.js +10 -18
  162. package/dist/es/hooks/element/useFocusTrap.js +3 -6
  163. package/dist/es/hooks/element/usePopoverPositioner.js +43 -65
  164. package/dist/es/hooks/element/useUniqueIdentifier.js +3 -9
  165. package/dist/es/hooks/useCommitAction/useCommitAction.js +25 -19
  166. package/dist/es/hooks/useFetch/useFetch.js +29 -7
  167. package/dist/es/hooks/useImageUrl/useImageUrl.js +12 -10
  168. package/dist/es/hooks/useModalDetails/useModalDetails.js +15 -15
  169. package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -9
  170. package/dist/es/index.js +1 -1
  171. package/dist/es/primitives/async/abortable/main.js +19 -16
  172. package/dist/es/primitives/async/promisor/main.js +13 -12
  173. package/dist/es/primitives/auxiliary/indexed/main.js +18 -22
  174. package/dist/es/primitives/context/session/SessionContext.js +41 -129
  175. package/dist/es/primitives/context/session/constants.js +9 -6
  176. package/dist/es/primitives/context/session/internal/autofresher.js +34 -0
  177. package/dist/es/primitives/context/session/internal/constants.js +7 -0
  178. package/dist/es/primitives/context/session/internal/deadline.js +62 -0
  179. package/dist/es/primitives/context/session/internal/refresher.js +66 -0
  180. package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -1
  181. package/dist/es/primitives/reactive/eventEmitter/main.js +11 -19
  182. package/dist/es/primitives/reactive/reflex/main.js +33 -19
  183. package/dist/es/primitives/reactive/reflex/register.js +9 -3
  184. package/dist/es/primitives/reactive/watchlist/helpers.js +12 -8
  185. package/dist/es/primitives/reactive/watchlist/main.js +4 -5
  186. package/dist/es/primitives/time/clock/main.js +6 -1
  187. package/dist/es/primitives/time/interval/main.js +1 -1
  188. package/dist/es/primitives/time/today/main.js +41 -39
  189. package/dist/es/translations/da-DK.json.js +48 -42
  190. package/dist/es/translations/de-DE.json.js +100 -94
  191. package/dist/es/translations/es-ES.json.js +48 -42
  192. package/dist/es/translations/fr-FR.json.js +35 -29
  193. package/dist/es/translations/index.js +21 -1
  194. package/dist/es/translations/it-IT.json.js +27 -21
  195. package/dist/es/translations/nl-NL.json.js +35 -29
  196. package/dist/es/translations/no-NO.json.js +58 -52
  197. package/dist/es/translations/pt-BR.json.js +27 -21
  198. package/dist/es/translations/sv-SE.json.js +53 -47
  199. package/dist/es/utils/abort/constants.js +5 -0
  200. package/dist/es/utils/abort/internals.js +29 -0
  201. package/dist/es/utils/abort/main.js +51 -0
  202. package/dist/es/utils/preact/memoComparator/main.js +3 -1
  203. package/dist/es/utils/struct/main.js +5 -1
  204. package/dist/style.css +1 -1
  205. package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts.map +1 -1
  206. package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts +40 -3
  207. package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
  208. package/dist/types/components/external/PayoutDetails/components/constants.d.ts +1 -0
  209. package/dist/types/components/external/PayoutDetails/components/constants.d.ts.map +1 -1
  210. package/dist/types/components/external/PayoutsOverview/PayoutsOverviewElement.d.ts.map +1 -1
  211. package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts +1 -1
  212. package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
  213. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +1 -2
  214. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
  215. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +2 -2
  216. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
  217. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
  218. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  219. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
  220. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  221. package/dist/types/components/external/TransactionDetails/index.d.ts +1 -1
  222. package/dist/types/components/external/TransactionDetails/index.d.ts.map +1 -1
  223. package/dist/types/components/external/TransactionDetails/types.d.ts +2 -5
  224. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
  225. package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -1
  226. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +5 -1
  227. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
  228. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
  229. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
  230. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
  231. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  232. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +1 -1
  233. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
  234. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +1 -1
  235. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
  236. package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
  237. package/dist/types/components/external/UIElement/UIElement.d.ts.map +1 -1
  238. package/dist/types/components/hooks/useBalanceAccounts.d.ts +1 -1
  239. package/dist/types/components/hooks/useBalanceAccounts.d.ts.map +1 -1
  240. package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts +2 -1
  241. package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts.map +1 -1
  242. package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts +6 -0
  243. package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts.map +1 -0
  244. package/dist/types/components/internal/Accordion/Accordion.d.ts +6 -0
  245. package/dist/types/components/internal/Accordion/Accordion.d.ts.map +1 -0
  246. package/dist/types/components/internal/Accordion/constants.d.ts +6 -0
  247. package/dist/types/components/internal/Accordion/constants.d.ts.map +1 -0
  248. package/dist/types/components/internal/Accordion/types.d.ts +7 -0
  249. package/dist/types/components/internal/Accordion/types.d.ts.map +1 -0
  250. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
  251. package/dist/types/components/internal/Calendar/calendar/timeframe/common/utils.d.ts +1 -1
  252. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
  253. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
  254. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
  255. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
  256. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
  257. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
  258. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
  259. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
  260. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
  261. package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
  262. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -6
  263. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  264. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
  265. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
  266. package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
  267. package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
  268. package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
  269. package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
  270. package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -1
  271. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
  272. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
  273. package/dist/types/components/internal/Calendar/types.d.ts +1 -0
  274. package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
  275. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
  276. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
  277. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
  278. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -1
  279. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
  280. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
  281. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +1 -1
  282. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  283. package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts +1 -1
  284. package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts.map +1 -1
  285. package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
  286. package/dist/types/components/internal/DataGrid/utils/DataGridProvider.d.ts.map +1 -1
  287. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
  288. package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -6
  289. package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
  290. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +4 -1
  291. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
  292. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
  293. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
  294. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
  295. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
  296. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
  297. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +2 -2
  298. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  299. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts +7 -1
  300. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
  301. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
  302. package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
  303. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
  304. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +12 -3
  305. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
  306. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  307. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
  308. package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
  309. package/dist/types/components/internal/Modal/Modal.d.ts +1 -1
  310. package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
  311. package/dist/types/components/internal/Pagination/hooks/types.d.ts +0 -1
  312. package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
  313. package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
  314. package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
  315. package/dist/types/components/internal/Pagination/hooks/useOffsetPagination.d.ts.map +1 -1
  316. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts +1 -1
  317. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
  318. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
  319. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
  320. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
  321. package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
  322. package/dist/types/components/internal/Spinner/Spinner.d.ts +18 -0
  323. package/dist/types/components/internal/Spinner/Spinner.d.ts.map +1 -0
  324. package/dist/types/components/internal/Spinner/index.d.ts +2 -0
  325. package/dist/types/components/internal/Spinner/index.d.ts.map +1 -0
  326. package/dist/types/components/internal/StructuredList/types.d.ts +3 -2
  327. package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
  328. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +9 -133
  329. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
  330. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
  331. package/dist/types/components/types.d.ts +7 -15
  332. package/dist/types/components/types.d.ts.map +1 -1
  333. package/dist/types/components/utils/getLabel.d.ts +1 -1
  334. package/dist/types/core/Auth/context.d.ts +56 -42
  335. package/dist/types/core/Auth/context.d.ts.map +1 -1
  336. package/dist/types/core/Auth/session/AuthSession.d.ts +62 -53
  337. package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
  338. package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts +7 -4
  339. package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts.map +1 -1
  340. package/dist/types/core/Auth/session/AuthSetupContext.d.ts +58 -43
  341. package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
  342. package/dist/types/core/Auth/session/constants.d.ts +0 -3
  343. package/dist/types/core/Auth/session/constants.d.ts.map +1 -1
  344. package/dist/types/core/Auth/types.d.ts +6 -6
  345. package/dist/types/core/Auth/types.d.ts.map +1 -1
  346. package/dist/types/core/Context/CoreProvider.d.ts +1 -1
  347. package/dist/types/core/Context/CoreProvider.d.ts.map +1 -1
  348. package/dist/types/core/Context/types.d.ts +2 -0
  349. package/dist/types/core/Context/types.d.ts.map +1 -1
  350. package/dist/types/core/Http/http.d.ts.map +1 -1
  351. package/dist/types/core/Http/utils.d.ts.map +1 -1
  352. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  353. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  354. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  355. package/dist/types/core/Localization/utils.d.ts +4 -4
  356. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  357. package/dist/types/core/core.d.ts +3 -2
  358. package/dist/types/core/core.d.ts.map +1 -1
  359. package/dist/types/core/types.d.ts +4 -6
  360. package/dist/types/core/types.d.ts.map +1 -1
  361. package/dist/types/hooks/element/useClickOutside.d.ts +2 -1
  362. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
  363. package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
  364. package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
  365. package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
  366. package/dist/types/hooks/useMediaQuery/useMediaQuery.d.ts.map +1 -1
  367. package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
  368. package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
  369. package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
  370. package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
  371. package/dist/types/hooks/useReflex/useReflex.d.ts.map +1 -1
  372. package/dist/types/primitives/async/abortable/main.d.ts +1 -1
  373. package/dist/types/primitives/async/abortable/main.d.ts.map +1 -1
  374. package/dist/types/primitives/async/promisor/main.d.ts.map +1 -1
  375. package/dist/types/primitives/auxiliary/indexed/helpers.d.ts.map +1 -1
  376. package/dist/types/primitives/auxiliary/indexed/main.d.ts.map +1 -1
  377. package/dist/types/primitives/context/session/SessionContext.d.ts +6 -27
  378. package/dist/types/primitives/context/session/SessionContext.d.ts.map +1 -1
  379. package/dist/types/primitives/context/session/constants.d.ts +6 -3
  380. package/dist/types/primitives/context/session/constants.d.ts.map +1 -1
  381. package/dist/types/primitives/context/session/internal/autofresher.d.ts +7 -0
  382. package/dist/types/primitives/context/session/internal/autofresher.d.ts.map +1 -0
  383. package/dist/types/primitives/context/session/internal/constants.d.ts +5 -0
  384. package/dist/types/primitives/context/session/internal/constants.d.ts.map +1 -0
  385. package/dist/types/primitives/context/session/internal/deadline.d.ts +6 -0
  386. package/dist/types/primitives/context/session/internal/deadline.d.ts.map +1 -0
  387. package/dist/types/primitives/context/session/internal/refresher.d.ts +6 -0
  388. package/dist/types/primitives/context/session/internal/refresher.d.ts.map +1 -0
  389. package/dist/types/primitives/context/session/internal/types.d.ts +27 -0
  390. package/dist/types/primitives/context/session/internal/types.d.ts.map +1 -0
  391. package/dist/types/primitives/context/session/types.d.ts +8 -4
  392. package/dist/types/primitives/context/session/types.d.ts.map +1 -1
  393. package/dist/types/primitives/reactive/effectStack/main.d.ts.map +1 -1
  394. package/dist/types/primitives/reactive/reflex/helpers.d.ts.map +1 -1
  395. package/dist/types/primitives/reactive/reflex/main.d.ts.map +1 -1
  396. package/dist/types/primitives/reactive/watchlist/helpers.d.ts.map +1 -1
  397. package/dist/types/primitives/reactive/watchlist/main.d.ts +1 -1
  398. package/dist/types/primitives/reactive/watchlist/main.d.ts.map +1 -1
  399. package/dist/types/primitives/time/interval/main.d.ts.map +1 -1
  400. package/dist/types/primitives/time/today/main.d.ts.map +1 -1
  401. package/dist/types/translations/index.d.ts +108 -0
  402. package/dist/types/translations/index.d.ts.map +1 -1
  403. package/dist/types/types/api/endpoints.d.ts +18 -2
  404. package/dist/types/types/api/endpoints.d.ts.map +1 -1
  405. package/dist/types/types/api/models/index.d.ts +1 -0
  406. package/dist/types/types/api/models/index.d.ts.map +1 -1
  407. package/dist/types/types/api/models/reports.d.ts +4 -0
  408. package/dist/types/types/api/models/reports.d.ts.map +1 -0
  409. package/dist/types/types/api/resources/BalanceAccountsResource.d.ts +8 -8
  410. package/dist/types/types/api/resources/BalanceAccountsResource.d.ts.map +1 -1
  411. package/dist/types/types/api/resources/PayoutsResource.d.ts +19 -19
  412. package/dist/types/types/api/resources/PayoutsResource.d.ts.map +1 -1
  413. package/dist/types/types/api/resources/ReportsResource.d.ts +92 -0
  414. package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -0
  415. package/dist/types/types/api/resources/SetupResource.d.ts +1 -1
  416. package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
  417. package/dist/types/types/api/resources/TransactionsResource.d.ts +25 -25
  418. package/dist/types/types/api/resources/TransactionsResource.d.ts.map +1 -1
  419. package/dist/types/utils/abort/constants.d.ts +5 -0
  420. package/dist/types/utils/abort/constants.d.ts.map +1 -0
  421. package/dist/types/utils/abort/internals.d.ts +4 -0
  422. package/dist/types/utils/abort/internals.d.ts.map +1 -0
  423. package/dist/types/utils/abort/main.d.ts +9 -0
  424. package/dist/types/utils/abort/main.d.ts.map +1 -0
  425. package/dist/types/utils/async/main.d.ts.map +1 -1
  426. package/dist/types/utils/collection/main.d.ts +1 -1
  427. package/dist/types/utils/collection/main.d.ts.map +1 -1
  428. package/dist/types/utils/common.d.ts +2 -2
  429. package/dist/types/utils/common.d.ts.map +1 -1
  430. package/dist/types/utils/index.d.ts +1 -0
  431. package/dist/types/utils/index.d.ts.map +1 -1
  432. package/dist/types/utils/preact/fixedForwardRef.d.ts +3 -3
  433. package/dist/types/utils/preact/fixedForwardRef.d.ts.map +1 -1
  434. package/dist/types/utils/struct/main.d.ts +1 -1
  435. package/dist/types/utils/struct/main.d.ts.map +1 -1
  436. package/dist/types/utils/struct/property.d.ts.map +1 -1
  437. package/dist/types/utils/value/is.d.ts +2 -2
  438. package/dist/types/utils/value/is.d.ts.map +1 -1
  439. package/dist/types/utils/value/number.d.ts.map +1 -1
  440. package/package.json +159 -106
  441. package/dist/es/primitives/auxiliary/abortSink/main.js +0 -42
  442. package/dist/types/core/Analytics/types.d.ts +0 -28
  443. package/dist/types/core/Analytics/types.d.ts.map +0 -1
  444. package/dist/types/primitives/auxiliary/abortSink/index.d.ts +0 -3
  445. package/dist/types/primitives/auxiliary/abortSink/index.d.ts.map +0 -1
  446. package/dist/types/primitives/auxiliary/abortSink/main.d.ts +0 -5
  447. package/dist/types/primitives/auxiliary/abortSink/main.d.ts.map +0 -1
  448. package/dist/types/primitives/auxiliary/abortSink/types.d.ts +0 -7
  449. package/dist/types/primitives/auxiliary/abortSink/types.d.ts.map +0 -1
  450. package/dist/types/types/api/resources/PaymentInstrumentsResource.d.ts +0 -70
  451. package/dist/types/types/api/resources/PaymentInstrumentsResource.d.ts.map +0 -1
@@ -1,100 +1,104 @@
1
- var Et = Object.defineProperty;
2
- var Rt = (m, s, e) => s in m ? Et(m, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[s] = e;
3
- var tt = (m, s, e) => (Rt(m, typeof s != "symbol" ? s + "" : s, e), e), at = (m, s, e) => {
4
- if (!s.has(m))
5
- throw TypeError("Cannot " + e);
1
+ var _t = Object.defineProperty;
2
+ var bt = (a, s, i) => s in a ? _t(a, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[s] = i;
3
+ var st = (a, s, i) => (bt(a, typeof s != "symbol" ? s + "" : s, i), i), ot = (a, s, i) => {
4
+ if (!s.has(a))
5
+ throw TypeError("Cannot " + i);
6
6
  };
7
- var t = (m, s, e) => (at(m, s, "read from private field"), e ? e.call(m) : s.get(m)), r = (m, s, e) => {
8
- if (s.has(m))
7
+ var t = (a, s, i) => (ot(a, s, "read from private field"), i ? i.call(a) : s.get(a)), r = (a, s, i) => {
8
+ if (s.has(a))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
- s instanceof WeakSet ? s.add(m) : s.set(m, e);
11
- }, i = (m, s, e, h) => (at(m, s, "write to private field"), h ? h.call(m, e) : s.set(m, e), e);
12
- var v = (m, s, e, h) => ({
10
+ s instanceof WeakSet ? s.add(a) : s.set(a, i);
11
+ }, e = (a, s, i, h) => (ot(a, s, "write to private field"), h ? h.call(a, i) : s.set(a, i), i);
12
+ var K = (a, s, i, h) => ({
13
13
  set _(o) {
14
- i(m, s, o, e);
14
+ e(a, s, o, i);
15
15
  },
16
16
  get _() {
17
- return t(m, s, h);
18
- }
19
- }), n = (m, s, e) => (at(m, s, "access private method"), e);
20
- import { resolveTimeFrameBlockSize as yt, downsizeTimeFrame as ut } from "../common/utils.js";
21
- import { UNBOUNDED_SLICE as dt } from "../../timeslice/index.js";
22
- import { computeTimestampOffset as Dt } from "../../utils.js";
23
- import { FIRST_WEEK_DAYS as At, SHIFT_FRAME as mt, SHIFT_PERIOD as _t, SHIFT_BLOCK as Ut, CURSOR_NEXT_BLOCK as xt, CURSOR_PREV_BLOCK as bt, CURSOR_LINE_END as wt, CURSOR_LINE_START as Nt, CURSOR_BLOCK_END as Lt, CURSOR_BLOCK_START as Wt, CURSOR_DOWNWARD as Mt, CURSOR_UPWARD as Ht, CURSOR_FORWARD as vt, CURSOR_BACKWARD as zt, SELECTION_TO as ot, SELECTION_FROM as st, SELECTION_COLLAPSE as Kt, SELECTION_NEAREST as gt, SELECTION_FARTHEST as pt } from "../../constants.js";
24
- import $t from "../common/flags.js";
25
- import Vt from "../../../../../../primitives/time/today/main.js";
26
- import { createIndexed as et } from "../../../../../../primitives/auxiliary/indexed/main.js";
27
- import { isUndefined as z, isNullish as D, isBoolean as Ot, isFunction as Xt } from "../../../../../../utils/value/is.js";
28
- import { isInfinity as ft, clamp as ct, mid as Yt, isBitSafeInteger as Ft, mod as jt } from "../../../../../../utils/value/number.js";
29
- import { enumerable as k } from "../../../../../../utils/struct/property.js";
30
- import { struct as qt } from "../../../../../../utils/struct/main.js";
31
- var w, g, $, V, X, Y, T, F, _, N, L, W, U, S, j, l, c, u, E, M, R, q, G, y, B, J, P, it, rt, ht, kt, C, A, nt, It, p, O, x, K, Q, lt;
32
- const b = class b {
17
+ return t(a, s, h);
18
+ }
19
+ }), n = (a, s, i) => (ot(a, s, "access private method"), i);
20
+ import { resolveTimeFrameBlockSize as xt, downsizeTimeFrame as gt } from "../common/utils.js";
21
+ import Lt, { UNBOUNDED_SLICE as ft } from "../../timeslice/index.js";
22
+ import { computeTimestampOffset as Ut } from "../../utils.js";
23
+ import { FIRST_WEEK_DAYS as Nt, DAY_MS as pt, SHIFT_FRAME as ct, SHIFT_PERIOD as wt, SHIFT_BLOCK as zt, CURSOR_NEXT_BLOCK as Wt, CURSOR_PREV_BLOCK as Mt, CURSOR_LINE_END as Ht, CURSOR_LINE_START as Kt, CURSOR_BLOCK_END as vt, CURSOR_BLOCK_START as Yt, CURSOR_DOWNWARD as Vt, CURSOR_UPWARD as Xt, CURSOR_FORWARD as jt, CURSOR_BACKWARD as qt, SELECTION_COLLAPSE as Gt, SELECTION_NEAREST as Ot, SELECTION_FARTHEST as Ft, SELECTION_TO as kt, SELECTION_FROM as Tt } from "../../constants.js";
24
+ import Jt from "../common/flags.js";
25
+ import { BASE_LOCALE as Pt } from "../../../../../../core/Localization/datetime/restamper/constants.js";
26
+ import It from "../../../../../../primitives/time/today/main.js";
27
+ import { createIndexed as it } from "../../../../../../primitives/auxiliary/indexed/main.js";
28
+ import { isUndefined as et, isNullish as D, isBoolean as Bt, isFunction as Qt } from "../../../../../../utils/value/is.js";
29
+ import { isInfinity as lt, clamp as ut, mid as Zt, isBitSafeInteger as St, mod as $t } from "../../../../../../utils/value/number.js";
30
+ import { enumerable as I } from "../../../../../../utils/struct/property.js";
31
+ import { struct as ts } from "../../../../../../utils/struct/main.js";
32
+ var N, g, Y, V, X, j, k, F, B, w, z, W, _, S, q, l, f, c, M, E, b, H, T, G, J, R, C, P, Q, rt, ht, nt, Ct, at, Rt, y, L, mt, yt, p, O, x, v, Z, dt;
33
+ const U = class U {
33
34
  constructor() {
34
- r(this, ht);
35
- r(this, C);
36
35
  r(this, nt);
36
+ r(this, at);
37
+ r(this, y);
38
+ r(this, mt);
37
39
  r(this, p);
38
40
  r(this, x);
39
- r(this, Q);
41
+ r(this, Z);
40
42
  r(this, g, 0);
41
- r(this, $, void 0);
43
+ r(this, Y, void 0);
42
44
  r(this, V, void 0);
43
45
  r(this, X, -1);
44
- r(this, Y, -1);
45
- r(this, T, void 0);
46
+ r(this, j, -1);
47
+ r(this, k, void 0);
46
48
  r(this, F, void 0);
47
- r(this, _, void 0);
48
- r(this, N, !1);
49
- r(this, L, void 0);
49
+ r(this, B, void 0);
50
+ r(this, w, !1);
51
+ r(this, z, void 0);
50
52
  r(this, W, 0);
51
- r(this, U, []);
52
- r(this, S, t(b, w));
53
- r(this, j, 12);
53
+ r(this, _, []);
54
+ r(this, S, t(U, N));
55
+ r(this, q, 12);
54
56
  r(this, l, void 0);
55
- r(this, c, void 0);
56
- r(this, u, 1);
57
+ r(this, f, void 0);
58
+ r(this, c, 1);
59
+ r(this, M, void 0);
57
60
  r(this, E, void 0);
58
- r(this, M, Vt());
59
- r(this, R, void 0);
60
- r(this, q, -1 / 0);
61
- r(this, G, 1 / 0);
62
- r(this, y, -1 / 0);
63
- r(this, B, 1 / 0);
61
+ r(this, b, void 0);
62
+ r(this, H, It());
63
+ r(this, T, void 0);
64
+ r(this, G, -1 / 0);
64
65
  r(this, J, 1 / 0);
65
- r(this, P, 0);
66
- tt(this, "daysInWeek", 0);
67
- tt(this, "origin");
68
- tt(this, "originTimestamp");
69
- r(this, it, et(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
70
- r(this, rt, et(() => t(this, u), n(this, nt, It).bind(this)));
66
+ r(this, R, -1 / 0);
67
+ r(this, C, 1 / 0);
68
+ r(this, P, 1 / 0);
69
+ r(this, Q, 0);
70
+ st(this, "daysInWeek", 0);
71
+ st(this, "origin");
72
+ st(this, "originTimestamp");
73
+ r(this, rt, it(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
74
+ r(this, ht, it(() => t(this, c), n(this, mt, yt).bind(this)));
71
75
  }
72
76
  get fromTimestamp() {
73
- return t(this, q);
77
+ return t(this, G);
74
78
  }
75
79
  get toTimestamp() {
76
- return t(this, G);
80
+ return t(this, J);
77
81
  }
78
82
  get numberOfBlocks() {
79
- return t(this, J);
83
+ return t(this, P);
80
84
  }
81
85
  get blankSelection() {
82
- return t(this, l) === t(this, c) && z(t(this, c));
86
+ return t(this, l) === t(this, f) && et(t(this, f));
83
87
  }
84
88
  get cursor() {
85
- return t(this, T) ?? -1;
89
+ return t(this, k) ?? -1;
86
90
  }
87
91
  get daysOfWeek() {
88
- return t(this, it);
92
+ return t(this, rt);
89
93
  }
90
94
  get dynamicBlockHeight() {
91
- return t(this, N);
95
+ return t(this, w);
92
96
  }
93
97
  set dynamicBlockHeight(s) {
94
- D(s) ? i(this, N, !!s) : Ot(s) && i(this, N, s);
98
+ D(s) ? e(this, w, !!s) : Bt(s) && e(this, w, s);
95
99
  }
96
100
  set effect(s) {
97
- D(s) ? i(this, L, void 0) : Xt(s) && i(this, L, s);
101
+ D(s) ? e(this, z, void 0) : Qt(s) && e(this, z, s);
98
102
  }
99
103
  get firstWeekDay() {
100
104
  return t(this, W);
@@ -102,217 +106,222 @@ const b = class b {
102
106
  set firstWeekDay(s) {
103
107
  if (D(s))
104
108
  this.firstWeekDay = 0;
105
- else if (!At.includes(s) || t(this, W) === i(this, W, s))
109
+ else if (!Nt.includes(s) || t(this, W) === e(this, W, s))
106
110
  return;
107
111
  }
108
112
  get frameBlocks() {
109
- return t(this, rt);
113
+ return t(this, ht);
110
114
  }
111
115
  get isAtEnd() {
112
- return !ft(t(this, B)) && t(this, B) === t(this, u) - 1;
116
+ return !lt(t(this, C)) && t(this, C) === t(this, c) - 1;
113
117
  }
114
118
  get isAtStart() {
115
- return !ft(t(this, y)) && t(this, y) === 0;
119
+ return !lt(t(this, R)) && t(this, R) === 0;
116
120
  }
117
121
  get locale() {
118
122
  return t(this, S);
119
123
  }
120
124
  set locale(s) {
121
- const e = t(this, S);
125
+ const i = t(this, S);
122
126
  if (D(s))
123
- i(this, S, t(b, w));
127
+ e(this, S, t(U, N));
124
128
  else if (typeof Intl < "u")
125
129
  try {
126
- i(this, S, new Intl.Locale(s).toString());
130
+ e(this, S, new Intl.Locale(s).toString());
127
131
  } catch {
128
- i(this, S, t(b, w));
132
+ e(this, S, t(U, N));
129
133
  }
130
- t(this, S) !== e && this.refreshFrame(!0);
134
+ t(this, S) !== i && this.refreshFrame(!0);
131
135
  }
132
136
  get selectionStart() {
133
137
  return t(this, l);
134
138
  }
135
139
  get selectionEnd() {
136
- return t(this, c);
140
+ return t(this, f);
137
141
  }
138
142
  get size() {
139
- return t(this, u);
143
+ return t(this, c);
140
144
  }
141
145
  set size(s) {
142
- const e = Math.min(!D(s) && yt(s) || 1, t(this, j));
143
- t(this, u) !== i(this, u, e) && (n(this, Q, lt).call(this), this.refreshFrame());
146
+ const i = Math.min(!D(s) && xt(s) || 1, t(this, q));
147
+ t(this, c) !== e(this, c, i) && (n(this, Z, dt).call(this), this.refreshFrame());
144
148
  }
145
149
  get timeslice() {
146
150
  return t(this, E);
147
151
  }
148
152
  set timeslice(s) {
149
- if (s === t(this, E) || D(s) && t(this, E) === dt)
153
+ if (s === t(this, M) || D(s) && t(this, M) === ft)
150
154
  return;
151
- const { from: e, to: h, span: o, offsets: a } = s;
152
- i(this, E, s), i(this, q, e - a.from), i(this, G, h - a.to), i(this, J, o);
153
- const d = z(t(this, l)) ? t(this, l) : Math.max(t(this, l), e), f = z(t(this, c)) ? t(this, c) : Math.min(t(this, c), h);
154
- d === t(this, l) || f === t(this, c) ? (i(this, l, d), i(this, c, f)) : i(this, l, i(this, c, void 0)), this.reslice(), i(this, j, ut(12, this.numberOfBlocks)), i(this, u, ut(t(this, u), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, _));
155
+ const {
156
+ from: i,
157
+ to: h,
158
+ timezone: o
159
+ } = e(this, M, s ?? ft);
160
+ e(this, E, Lt(i, h)), this.timezone = o;
161
+ }
162
+ get timezone() {
163
+ return t(this, b);
164
+ }
165
+ set timezone(s) {
166
+ t(this, E).timezone = s, e(this, b, t(this, E).timezone), e(this, H, It(t(this, b))), t(this, T) && (t(this, T).call(this), e(this, T, t(this, H).subscribe(this.refreshFrame.bind(this, !0)))), n(this, nt, Ct).call(this);
155
167
  }
156
168
  set trackCurrentDay(s) {
157
- Ot(s) ? s && !t(this, R) ? i(this, R, t(this, M).subscribe(this.refreshFrame.bind(this, !0))) : !s && t(this, R) && (t(this, R).call(this), i(this, R, void 0)) : D(s) && (this.trackCurrentDay = !1);
169
+ Bt(s) ? s && !t(this, T) ? e(this, T, t(this, H).subscribe(this.refreshFrame.bind(this, !0))) : !s && t(this, T) && (t(this, T).call(this), e(this, T, void 0)) : D(s) && (this.trackCurrentDay = !1);
158
170
  }
159
171
  get units() {
160
- return t(this, P);
172
+ return t(this, Q);
161
173
  }
162
174
  initialize() {
163
- this.withCurrentDayTimestamp(t(this, M).timestamp), this.timeslice = dt;
175
+ this.timeslice = ft;
164
176
  }
165
177
  refreshFrame(s = !1) {
166
- var e;
167
- if (t(this, U).length = 0, !(z(t(this, F)) || s)) {
168
- const h = this.getFrameBlockAtIndex(t(this, g)), { from: o, to: a } = h.inner, [d] = n(this, C, A).call(this, this.getTimestampAtIndex(o + t(this, F)), !1);
169
- i(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o), d));
170
- const f = o + t(this, F), I = ct(o, f, a);
171
- if (I > f)
172
- return i(this, F, this.getUnitsForFrameBlockAtIndex(--v(this, g)._) + f - I), t(this, g) >= 0 ? this.refreshFrame() : (i(this, g, t(this, u) - 1), this.shiftFrameByOffset(-1, mt));
173
- if (I < f)
174
- return i(this, F, f - I - 1), ++v(this, g)._ < t(this, u) ? this.refreshFrame() : (i(this, g, 0), this.shiftFrameByOffset(1, mt));
175
- i(this, $, o), i(this, V, a), i(this, _, n(this, C, A).call(this, this.getTimestampAtIndex(f), !1)[0]), i(this, F, this.getCursorBlockOriginTimestampOffset(t(this, _))), i(this, T, o + t(this, F));
176
- const Z = t(this, g) > 0 ? this.getFrameBlockAtIndex(0) : h, H = t(this, g) < t(this, u) - 1 ? this.getFrameBlockAtIndex(t(this, u) - 1) : h;
177
- i(this, X, Z.inner.from), i(this, Y, H.inner.to), i(this, P, H.outer.to);
178
+ var i;
179
+ if (t(this, _).length = 0, !(et(t(this, F)) || s)) {
180
+ const h = this.getFrameBlockAtIndex(t(this, g)), {
181
+ from: o,
182
+ to: m
183
+ } = h.inner, [d] = n(this, y, L).call(this, this.getTimestampAtIndex(o + t(this, F)), !1);
184
+ e(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o), d));
185
+ const u = o + t(this, F), A = ut(o, u, m);
186
+ if (A > u)
187
+ return e(this, F, this.getUnitsForFrameBlockAtIndex(--K(this, g)._) + u - A), t(this, g) >= 0 ? this.refreshFrame() : (e(this, g, t(this, c) - 1), this.shiftFrameByOffset(-1, ct));
188
+ if (A < u)
189
+ return e(this, F, u - A - 1), ++K(this, g)._ < t(this, c) ? this.refreshFrame() : (e(this, g, 0), this.shiftFrameByOffset(1, ct));
190
+ e(this, Y, o), e(this, V, m), e(this, B, n(this, y, L).call(this, this.getTimestampAtIndex(u), !1)[0]), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), e(this, k, o + t(this, F));
191
+ const $ = t(this, g) > 0 ? this.getFrameBlockAtIndex(0) : h, tt = t(this, g) < t(this, c) - 1 ? this.getFrameBlockAtIndex(t(this, c) - 1) : h;
192
+ e(this, X, $.inner.from), e(this, j, tt.inner.to), e(this, Q, tt.outer.to + 1);
178
193
  }
179
- this.withCurrentDayTimestamp(t(this, M).timestamp), (e = t(this, L)) == null || e.call(this);
180
- }
181
- shiftFrameByOffset(s, e) {
182
- if (s && Ft(s))
183
- switch (e) {
184
- case Ut:
185
- return n(this, x, K).call(this, s);
186
- case _t:
187
- return n(this, x, K).call(this, s * 12);
188
- case mt:
194
+ this.withCurrentDayTimestamp(), (i = t(this, z)) == null || i.call(this);
195
+ }
196
+ shiftFrameByOffset(s, i) {
197
+ if (s && St(s))
198
+ switch (i) {
199
+ case zt:
200
+ return n(this, x, v).call(this, s);
201
+ case wt:
202
+ return n(this, x, v).call(this, s * 12);
203
+ case ct:
189
204
  default:
190
- return n(this, x, K).call(this, s * t(this, u));
205
+ return n(this, x, v).call(this, s * t(this, c));
191
206
  }
192
207
  }
193
208
  shiftFrameCursor(s) {
194
209
  switch (s) {
195
- case zt:
210
+ case qt:
196
211
  return n(this, p, O).call(this, -1);
197
- case vt:
212
+ case jt:
198
213
  return n(this, p, O).call(this, 1);
199
- case Ht:
214
+ case Xt:
200
215
  return n(this, p, O).call(this, -this.rowspan);
201
- case Mt:
216
+ case Vt:
202
217
  return n(this, p, O).call(this, this.rowspan);
203
- case Wt:
204
- return n(this, p, O).call(this, t(this, $) - t(this, T));
205
- case Lt:
206
- return n(this, p, O).call(this, t(this, V) - t(this, T));
207
- case Nt:
208
- return n(this, p, O).call(this, -(t(this, T) % this.rowspan));
209
- case wt:
210
- return n(this, p, O).call(this, this.rowspan - (t(this, T) % this.rowspan + 1));
211
- case bt:
218
+ case Yt:
219
+ return n(this, p, O).call(this, t(this, Y) - t(this, k));
220
+ case vt:
221
+ return n(this, p, O).call(this, t(this, V) - t(this, k));
222
+ case Kt:
223
+ return n(this, p, O).call(this, -(t(this, k) % this.rowspan));
224
+ case Ht:
225
+ return n(this, p, O).call(this, this.rowspan - (t(this, k) % this.rowspan + 1));
226
+ case Mt:
212
227
  return n(this, p, O).call(this, -this.getUnitsForFrameBlockAtIndex((t(this, g) ?? 0) - 1));
213
- case xt:
228
+ case Wt:
214
229
  return n(this, p, O).call(this, this.getUnitsForFrameBlockAtIndex(t(this, g) ?? 0));
215
230
  }
216
- if (!(s < 0) && s >= t(this, X) && s <= t(this, Y))
217
- return n(this, p, O).call(this, s - t(this, T));
231
+ if (!(s < 0) && s >= t(this, X) && s <= t(this, j))
232
+ return n(this, p, O).call(this, s - t(this, k));
218
233
  }
219
234
  shiftFrameToTimestamp(s) {
220
- const e = n(this, C, A).call(this, s, !1)[0];
221
- i(this, F, this.getCursorBlockOriginTimestampOffset(i(this, _, this.originTimestamp = e))), this.reoriginate(), [v(this, y)._, v(this, B)._] = this.getEdgeBlockOffsetsFromOrigin(), n(this, Q, lt).call(this), this.refreshFrame(), n(this, p, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, T)), e));
235
+ e(this, B, this.originTimestamp = n(this, y, L).call(this, s, !1).reduce((i, h) => i + h)), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), this.reoriginate(), [K(this, R)._, K(this, C)._] = this.getEdgeBlockOffsetsFromOrigin(), n(this, Z, dt).call(this), this.refreshFrame(), n(this, p, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, k)), t(this, B)));
222
236
  }
223
237
  clearSelection() {
224
- this.blankSelection || (i(this, l, i(this, c, void 0)), this.refreshFrame(!0));
238
+ this.blankSelection || (e(this, l, e(this, f, void 0)), this.refreshFrame(!0));
225
239
  }
226
- getCursorOrderForTimeRelativeToSelectionEdge(s, e = st) {
227
- let h, o = !1;
228
- switch (e) {
229
- case st:
230
- h = t(this, l);
231
- break;
232
- case ot:
233
- h = t(this, c), o = !0;
240
+ updateSelection(s, i) {
241
+ const h = t(this, l), o = t(this, f), m = n(this, y, L).call(this, s, !1).reduce((d, u) => d + u);
242
+ switch (i === Ft && (m <= h ? i = kt : m >= o && (i = Tt)), i) {
243
+ case Tt:
244
+ e(this, l, m), e(this, f, Math.max(t(this, l), o ?? m));
234
245
  break;
235
- }
236
- if (z(h))
237
- return 0;
238
- const a = n(this, C, A).call(this, s, !1).reduce((f, I) => f + I, 0), d = this.getUnitsOffsetForTimestamp(h, a) * (o ? -1 : 1);
239
- return d && (d > 0 ? 1 : -1);
240
- }
241
- updateSelection(s, e) {
242
- const h = t(this, l), o = t(this, c), a = n(this, C, A).call(this, s, !1).reduce((d, f) => d + f, 0);
243
- switch (e === pt && (a <= h ? e = ot : a >= o && (e = st)), e) {
244
- case st:
245
- i(this, l, a), i(this, c, Math.max(t(this, l), o ?? a));
246
- break;
247
- case ot:
248
- i(this, c, a), i(this, l, Math.min(h ?? a, t(this, c)));
246
+ case kt:
247
+ e(this, f, m), e(this, l, Math.min(h ?? m, t(this, f)));
249
248
  break;
250
- case pt:
251
- case gt: {
252
- let d = Math.abs(a - (h ?? a)), f = Math.abs(a - (o ?? a));
253
- e === gt && ([d, f] = [f, d]), d > f ? i(this, l, a) : i(this, c, a);
249
+ case Ft:
250
+ case Ot: {
251
+ let d = Math.abs(m - (h ?? m)), u = Math.abs(m - (o ?? m));
252
+ i === Ot && ([d, u] = [u, d]), d > u ? e(this, l, m) : e(this, f, m);
254
253
  break;
255
254
  }
256
- case Kt:
255
+ case Gt:
257
256
  default:
258
- i(this, l, i(this, c, a));
257
+ e(this, l, e(this, f, m));
259
258
  break;
260
259
  }
261
- (t(this, l) !== h || t(this, c) !== o) && this.refreshFrame(!0);
260
+ (t(this, l) !== h || t(this, f) !== o) && this.refreshFrame(!0);
262
261
  }
263
262
  };
264
- w = new WeakMap(), g = new WeakMap(), $ = new WeakMap(), V = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), T = new WeakMap(), F = new WeakMap(), _ = new WeakMap(), N = new WeakMap(), L = new WeakMap(), W = new WeakMap(), U = new WeakMap(), S = new WeakMap(), j = new WeakMap(), l = new WeakMap(), c = new WeakMap(), u = new WeakMap(), E = new WeakMap(), M = new WeakMap(), R = new WeakMap(), q = new WeakMap(), G = new WeakMap(), y = new WeakMap(), B = new WeakMap(), J = new WeakMap(), P = new WeakMap(), it = new WeakMap(), rt = new WeakMap(), ht = new WeakSet(), kt = function(s) {
265
- return ct(t(this, y), s || 0, t(this, B) - t(this, u) + 1);
266
- }, C = new WeakSet(), A = function(s, e = !0) {
263
+ N = new WeakMap(), g = new WeakMap(), Y = new WeakMap(), V = new WeakMap(), X = new WeakMap(), j = new WeakMap(), k = new WeakMap(), F = new WeakMap(), B = new WeakMap(), w = new WeakMap(), z = new WeakMap(), W = new WeakMap(), _ = new WeakMap(), S = new WeakMap(), q = new WeakMap(), l = new WeakMap(), f = new WeakMap(), c = new WeakMap(), M = new WeakMap(), E = new WeakMap(), b = new WeakMap(), H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), J = new WeakMap(), R = new WeakMap(), C = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), rt = new WeakMap(), ht = new WeakMap(), nt = new WeakSet(), Ct = function() {
264
+ const {
265
+ from: s,
266
+ to: i,
267
+ span: h,
268
+ offsets: o
269
+ } = t(this, E);
270
+ e(this, G, s - o.from), e(this, J, i - o.to), e(this, P, h);
271
+ const m = et(t(this, l)) ? t(this, l) : Math.max(t(this, l), s), d = et(t(this, f)) ? t(this, f) : Math.min(t(this, f), i);
272
+ m === t(this, l) || d === t(this, f) ? (e(this, l, m), e(this, f, d)) : e(this, l, e(this, f, void 0)), this.reslice(), e(this, q, gt(12, this.numberOfBlocks)), e(this, c, gt(t(this, c), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, B));
273
+ }, at = new WeakSet(), Rt = function(s) {
274
+ return ut(t(this, R), s || 0, t(this, C) - t(this, c) + 1);
275
+ }, y = new WeakSet(), L = function(s, i = !0) {
267
276
  let h = new Date(s).getTime();
268
277
  if (isNaN(h))
269
- return n(this, C, A).call(this, Date.now());
270
- const { from: o, to: a } = t(this, E), d = ct(o, h, a);
271
- d !== h && e ? (h = Yt(o, a), (isNaN(h) || ft(h)) && (h = d)) : h = d;
272
- const f = Dt(h);
273
- return [h - f, f];
274
- }, nt = new WeakSet(), It = function(s) {
275
- if (Ft(s) && s >= 0 && s < t(this, u)) {
276
- if (!t(this, U)[s]) {
277
- const e = this.getFrameBlockAtIndex(s);
278
- if (!e)
278
+ return n(this, y, L).call(this, Date.now());
279
+ const {
280
+ from: o,
281
+ to: m
282
+ } = t(this, E), d = ut(o, h, m);
283
+ d !== h && i ? (h = Zt(o, m), (isNaN(h) || lt(h)) && (h = d)) : h = d;
284
+ const u = Ut(h, t(this, b));
285
+ return [h - u, u];
286
+ }, mt = new WeakSet(), yt = function(s) {
287
+ if (St(s) && s >= 0 && s < t(this, c)) {
288
+ if (!t(this, _)[s]) {
289
+ const i = this.getFrameBlockAtIndex(s);
290
+ if (!i)
279
291
  return;
280
- const h = `${e.year}-${`0${1 + e.month}`.slice(-2)}-01`, [o, a] = this.getFormattedDataForFrameBlock(new Date(h).setHours(12)), d = e.outer.from;
281
- t(this, U)[s] = et(
282
- {
283
- datetime: k(a),
284
- label: k(o),
285
- length: k(Math.ceil(e.outer.units / this.rowspan)),
286
- month: k(e.month),
287
- year: k(e.year)
288
- },
289
- (f) => {
290
- const I = f * this.rowspan;
291
- return et(this.rowspan, (Z) => {
292
- const [H, St] = e[Z + I], [Bt, Ct] = this.getFormattedDataForBlockCell(new Date(H).setHours(12));
293
- return qt({
294
- datetime: k(Ct),
295
- flags: k($t(St)),
296
- index: k(d + Z + I),
297
- label: k(Bt),
298
- timestamp: k(H)
299
- });
292
+ const [h, o] = this.getFormattedDataForFrameBlock(i[i.inner.from][0] + pt / 2), m = i.outer.from;
293
+ t(this, _)[s] = it({
294
+ datetime: I(o),
295
+ label: I(h),
296
+ length: I(Math.ceil(i.outer.units / this.rowspan)),
297
+ month: I(i.month),
298
+ year: I(i.year)
299
+ }, (d) => {
300
+ const u = d * this.rowspan;
301
+ return it(this.rowspan, (A) => {
302
+ const [$, tt] = i[A + u], [At, Dt] = this.getFormattedDataForBlockCell($ + pt / 2);
303
+ return ts({
304
+ datetime: I(Dt),
305
+ flags: I(Jt(tt)),
306
+ index: I(m + A + u),
307
+ label: I(At),
308
+ timestamp: I($)
300
309
  });
301
- }
302
- );
310
+ });
311
+ });
303
312
  }
304
- return t(this, U)[s];
313
+ return t(this, _)[s];
305
314
  }
306
315
  }, p = new WeakSet(), O = function(s) {
307
- s !== 0 && (i(this, F, t(this, F) + s), this.refreshFrame());
308
- }, x = new WeakSet(), K = function(s) {
309
- const e = n(this, ht, kt).call(this, s);
310
- e && (this.shiftOrigin(e), i(this, y, t(this, y) - e), i(this, B, t(this, B) - e), i(this, g, jt(t(this, g) - e, t(this, u))), this.refreshFrame());
311
- }, Q = new WeakSet(), lt = function() {
312
- const s = t(this, u) - 1, e = Math.min(s - this.origin % t(this, u), t(this, B)) - s;
313
- e && n(this, x, K).call(this, e);
314
- }, r(b, w, "en-US");
315
- let Tt = b;
316
+ s !== 0 && (e(this, F, t(this, F) + s), this.refreshFrame());
317
+ }, x = new WeakSet(), v = function(s) {
318
+ const i = n(this, at, Rt).call(this, s);
319
+ i && (this.shiftOrigin(i), e(this, R, t(this, R) - i), e(this, C, t(this, C) - i), e(this, g, $t(t(this, g) - i, t(this, c))), this.refreshFrame());
320
+ }, Z = new WeakSet(), dt = function() {
321
+ const s = t(this, c) - 1, i = Math.min(s - this.origin % t(this, c), t(this, C)) - s;
322
+ i && n(this, x, v).call(this, i);
323
+ }, r(U, N, Pt);
324
+ let Et = U;
316
325
  export {
317
- Tt as default
326
+ Et as default
318
327
  };
@@ -11,7 +11,11 @@ const $ = (C = u, D = u) => {
11
11
  timezone: T,
12
12
  ...W(i)
13
13
  }), m = E(s, f);
14
- let { from: n, to: r, now: o } = u;
14
+ let {
15
+ from: n,
16
+ to: r,
17
+ now: o
18
+ } = u;
15
19
  const g = (p) => {
16
20
  o = a(p ?? Date.now()) ?? o;
17
21
  t: {
@@ -22,12 +26,7 @@ const $ = (C = u, D = u) => {
22
26
  let t, e, w;
23
27
  (w = b(s)) ? (t = new Date(n = a(m(s.from)) ?? o), e = 1) : (t = new Date(r = a(m(s.to)) ?? o), e = -1), t = new Date(f.timezoneToSystem(t));
24
28
  const [F = 0, O = 0, x = 0, M = 0, S = 0, _ = 0, P = 0] = m(s.offsets);
25
- t.setFullYear(t.getFullYear() + F * e, t.getMonth() + O * e, t.getDate() + x * e), t.setHours(
26
- t.getHours() + M * e,
27
- t.getMinutes() + S * e,
28
- t.getSeconds() + _ * e,
29
- t.getMilliseconds() + P * e
30
- );
29
+ t.setFullYear(t.getFullYear() + F * e, t.getMonth() + O * e, t.getDate() + x * e), t.setHours(t.getHours() + M * e, t.getMinutes() + S * e, t.getSeconds() + _ * e, t.getMilliseconds() + P * e);
31
30
  const z = a(f.systemToTimezone(t)) ?? o;
32
31
  w ? r = z : n = z;
33
32
  }
@@ -39,8 +38,14 @@ const $ = (C = u, D = u) => {
39
38
  return g(), R({
40
39
  ...h,
41
40
  from: c(() => n),
42
- now: { ...l, set: g },
43
- timezone: { ...T, set: y },
41
+ now: {
42
+ ...l,
43
+ set: g
44
+ },
45
+ timezone: {
46
+ ...T,
47
+ set: y
48
+ },
44
49
  to: c(() => r)
45
50
  });
46
51
  };
@@ -1,22 +1,26 @@
1
- import c from "../factory.js";
2
- import { startOfDay as f, nowTimestamp as p, getRangeTimestampsContextIntegerPropertyFactory as y } from "../utils.js";
3
- const g = 365, i = 1, u = 1, N = y(i, g, u), _ = (r) => {
4
- const a = N(r);
5
- return c(
6
- {
7
- from: ({ now: s, systemToTimezone: n, timezoneToSystem: D }) => {
8
- const t = new Date(s), m = new Date(D(s)), e = t.getDate() - m.getDate();
9
- let o = a.value - 1;
10
- return e && (o += e > 1 ? -1 : e < -1 ? 1 : e), f(t), t.setDate(t.getDate() - o), n(t);
11
- },
12
- to: p
1
+ import m from "../factory.js";
2
+ import { nowTimestamp as D, getRangeTimestampsContextIntegerPropertyFactory as c } from "../utils.js";
3
+ import { startOfDay as f } from "../../utils.js";
4
+ const p = 365, y = 1, i = 1, u = c(y, p, i), N = (o) => {
5
+ const e = u(o);
6
+ return m({
7
+ from: ({
8
+ now: a,
9
+ timezone: r,
10
+ systemToTimezone: s,
11
+ timezoneToSystem: n
12
+ }) => {
13
+ const t = new Date(n(f(a, r)));
14
+ return t.setDate(t.getDate() - e.value + 1), s(t);
13
15
  },
14
- { numberOfDays: a.descriptor }
15
- )();
16
- }, A = _;
16
+ to: D
17
+ }, {
18
+ numberOfDays: e.descriptor
19
+ })();
20
+ }, M = N;
17
21
  export {
18
- u as DEFAULT_NUM_DAYS,
19
- g as MAX_NUM_DAYS,
20
- i as MIN_NUM_DAYS,
21
- A as default
22
+ i as DEFAULT_NUM_DAYS,
23
+ p as MAX_NUM_DAYS,
24
+ y as MIN_NUM_DAYS,
25
+ M as default
22
26
  };