@adyen/adyen-platform-experience-web 1.4.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/adyen-platform-experience-web.css +1 -1
  2. package/dist/{angle-right-C1JIrQTg.cjs → angle-right-B2I_t62j.cjs} +2 -2
  3. package/dist/{angle-right-C1JIrQTg.cjs.map → angle-right-B2I_t62j.cjs.map} +1 -1
  4. package/dist/{checkmark-B8DhX3p1.cjs → checkmark-CIwP_FdK.cjs} +2 -2
  5. package/dist/{checkmark-B8DhX3p1.cjs.map → checkmark-CIwP_FdK.cjs.map} +1 -1
  6. package/dist/{checkmark-circle-fill-CMpIlMCC.cjs → checkmark-circle-fill-Cw5UXqzN.cjs} +2 -2
  7. package/dist/{checkmark-circle-fill-CMpIlMCC.cjs.map → checkmark-circle-fill-Cw5UXqzN.cjs.map} +1 -1
  8. package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs → checkmark-square-fill-BwkQfKCG.cjs} +2 -2
  9. package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs.map → checkmark-square-fill-BwkQfKCG.cjs.map} +1 -1
  10. package/dist/{chevron-down-CB77LxQY.cjs → chevron-down-BuYiZOY7.cjs} +2 -2
  11. package/dist/{chevron-down-CB77LxQY.cjs.map → chevron-down-BuYiZOY7.cjs.map} +1 -1
  12. package/dist/{chevron-left-DMAmIvLF.cjs → chevron-left-DhRCcHqQ.cjs} +2 -2
  13. package/dist/{chevron-left-DMAmIvLF.cjs.map → chevron-left-DhRCcHqQ.cjs.map} +1 -1
  14. package/dist/{chevron-right-BxLJu7Zf.cjs → chevron-right-DvPR8FD2.cjs} +2 -2
  15. package/dist/{chevron-right-BxLJu7Zf.cjs.map → chevron-right-DvPR8FD2.cjs.map} +1 -1
  16. package/dist/{chevron-up-CT79XJdh.cjs → chevron-up-DFrrO8PJ.cjs} +2 -2
  17. package/dist/{chevron-up-CT79XJdh.cjs.map → chevron-up-DFrrO8PJ.cjs.map} +1 -1
  18. package/dist/cjs/index.js +1 -1
  19. package/dist/{copy-7UpFtMvt.cjs → copy-Bl3l133y.cjs} +2 -2
  20. package/dist/{copy-7UpFtMvt.cjs.map → copy-Bl3l133y.cjs.map} +1 -1
  21. package/dist/{cross-DtVirgrN.cjs → cross-BtdvCTEP.cjs} +2 -2
  22. package/dist/{cross-DtVirgrN.cjs.map → cross-BtdvCTEP.cjs.map} +1 -1
  23. package/dist/{cross-circle-fill-C47yImD2.cjs → cross-circle-fill-BBjJLOad.cjs} +2 -2
  24. package/dist/{cross-circle-fill-C47yImD2.cjs.map → cross-circle-fill-BBjJLOad.cjs.map} +1 -1
  25. package/dist/da-DK-qSZWEjaU.cjs +2 -0
  26. package/dist/da-DK-qSZWEjaU.cjs.map +1 -0
  27. package/dist/de-DE-Dngq7NwF.cjs +2 -0
  28. package/dist/de-DE-Dngq7NwF.cjs.map +1 -0
  29. package/dist/{download-A1m1wB_K.cjs → download-Cqu4yqTE.cjs} +2 -2
  30. package/dist/{download-A1m1wB_K.cjs.map → download-Cqu4yqTE.cjs.map} +1 -1
  31. package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +14 -14
  32. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +20 -20
  33. package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +73 -62
  34. package/dist/es/components/external/CapitalOffer/components/utils/utils.js +16 -16
  35. package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js +3 -3
  36. package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js +3 -3
  37. package/dist/es/components/external/CapitalOverview/components/AccountDetails/utils.js +3 -3
  38. package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +6 -6
  39. package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.js +0 -1
  40. package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +2 -2
  41. package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +14 -14
  42. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +2 -2
  43. package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +4 -4
  44. package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +1 -1
  45. package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +13 -13
  46. package/dist/es/components/external/CapitalOverview/components/Unqualified.js +2 -2
  47. package/dist/es/components/external/CapitalOverview/constants.js +0 -1
  48. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +21 -21
  49. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +17 -17
  50. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +4 -4
  51. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +16 -16
  52. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +1 -1
  53. package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +20 -20
  54. package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +4 -4
  55. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +8 -8
  56. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +1 -1
  57. package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +2 -2
  58. package/dist/es/components/external/TransactionDetails/context/details/context.js +10 -10
  59. package/dist/es/components/external/TransactionDetails/context/refund/context.js +1 -1
  60. package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +2 -2
  61. package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +20 -20
  62. package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +3 -3
  63. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
  64. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +4 -4
  65. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
  66. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +8 -8
  67. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +66 -66
  68. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +19 -19
  69. package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +3 -3
  70. package/dist/es/components/internal/Accordion/Accordion.js +10 -10
  71. package/dist/es/components/internal/Alert/Alert.js +1 -1
  72. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +5 -5
  73. package/dist/es/components/internal/Button/hooks/useButton.js +7 -7
  74. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +104 -104
  75. package/dist/es/components/internal/Calendar/calendar/facade/index.js +12 -12
  76. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +14 -14
  77. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +4 -4
  78. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +58 -58
  79. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +4 -4
  80. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +3 -3
  81. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +2 -2
  82. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +7 -7
  83. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +6 -6
  84. package/dist/es/components/internal/Calendar/calendar/utils.js +22 -22
  85. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +11 -11
  86. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +22 -22
  87. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +7 -7
  88. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +12 -12
  89. package/dist/es/components/internal/CapitalHeader/constants.js +4 -4
  90. package/dist/es/components/internal/CapitalHeader/helpers.js +14 -12
  91. package/dist/es/components/internal/Card/Card.js +9 -9
  92. package/dist/es/components/internal/DataGrid/DataGridCell.js +8 -8
  93. package/dist/es/components/internal/DataGrid/components/TableCells.js +16 -16
  94. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +13 -13
  95. package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +8 -8
  96. package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +5 -5
  97. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +3 -3
  98. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
  99. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +1 -2
  100. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +23 -23
  101. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +2 -2
  102. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +31 -31
  103. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +33 -33
  104. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +15 -15
  105. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +2 -2
  106. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +9 -9
  107. package/dist/es/components/internal/FormFields/InputBase.js +5 -5
  108. package/dist/es/components/internal/FormFields/Select/Select.js +15 -15
  109. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +43 -43
  110. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +14 -14
  111. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +5 -5
  112. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +2 -2
  113. package/dist/es/components/internal/Header/Header.js +4 -4
  114. package/dist/es/components/internal/Icon/Icon.js +3 -3
  115. package/dist/es/components/internal/Img/Img.js +2 -2
  116. package/dist/es/components/internal/Link/Link.js +2 -2
  117. package/dist/es/components/internal/Modal/Modal.js +4 -4
  118. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +12 -12
  119. package/dist/es/components/internal/Pagination/hooks/usePagination.js +22 -22
  120. package/dist/es/components/internal/Popover/Popover.js +4 -4
  121. package/dist/es/components/internal/ProgressBar/ProgressBar.js +3 -3
  122. package/dist/es/components/internal/SVGIcons/Checkmark.js +3 -3
  123. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +12 -10
  124. package/dist/es/components/internal/SVGIcons/ChevronRight.js +12 -10
  125. package/dist/es/components/internal/SVGIcons/CloseCircle.js +1 -1
  126. package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +13 -13
  127. package/dist/es/components/internal/StructuredList/StructuredList.js +4 -4
  128. package/dist/es/components/internal/Translation/Translation.js +15 -15
  129. package/dist/es/components/utils/getErrorMessage.js +2 -2
  130. package/dist/es/constants/dateFormats.js +3 -3
  131. package/dist/es/core/ConfigContext/context.js +18 -18
  132. package/dist/es/core/ConfigContext/session/AuthSession.js +36 -36
  133. package/dist/es/core/ConfigContext/session/AuthSessionSpecification.js +7 -7
  134. package/dist/es/core/ConfigContext/session/SetupContext.js +5 -5
  135. package/dist/es/core/ConfigContext/session/constants.js +8 -8
  136. package/dist/es/core/ConfigContext/session/utils/sessionReady.js +5 -5
  137. package/dist/es/core/Http/utils.js +1 -1
  138. package/dist/es/core/Localization/Localization.js +32 -32
  139. package/dist/es/core/Localization/datetime/restamper/constants.js +3 -3
  140. package/dist/es/core/Localization/datetime/restamper/restamper.js +1 -1
  141. package/dist/es/core/Localization/utils.js +1 -1
  142. package/dist/es/core/core.js +1 -1
  143. package/dist/es/external/preact/compat/dist/compat.module.js +40 -40
  144. package/dist/es/external/preact/dist/preact.module.js +197 -195
  145. package/dist/es/external/preact/hooks/dist/hooks.module.js +71 -67
  146. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +9 -9
  147. package/dist/es/hooks/element/useDetachedRender.js +11 -11
  148. package/dist/es/hooks/element/useFocusTrap.js +5 -5
  149. package/dist/es/hooks/useBalanceAccountSelection.js +10 -10
  150. package/dist/es/hooks/useCommitAction/useCommitAction.js +7 -7
  151. package/dist/es/hooks/useContainerQuery.js +4 -4
  152. package/dist/es/hooks/useCustomColumnsData.js +2 -2
  153. package/dist/es/hooks/useDefaultOverviewFilterParams.js +18 -18
  154. package/dist/es/hooks/useFetch.js +22 -22
  155. package/dist/es/hooks/useModalDetails/useModalDetails.js +7 -7
  156. package/dist/es/hooks/useMutation/useMutation.js +3 -3
  157. package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -21
  158. package/dist/es/hooks/useResponsiveContainer.js +7 -10
  159. package/dist/es/hooks/useTabbedControl.js +9 -9
  160. package/dist/es/primitives/async/abortable/main.js +9 -9
  161. package/dist/es/primitives/async/deferred/main.js +1 -1
  162. package/dist/es/primitives/auxiliary/errorContainer/main.js +9 -9
  163. package/dist/es/primitives/auxiliary/indexed/helpers.js +4 -4
  164. package/dist/es/primitives/auxiliary/indexed/main.js +7 -7
  165. package/dist/es/primitives/context/session/internal/autofresher.js +15 -15
  166. package/dist/es/primitives/context/session/internal/deadline.js +22 -22
  167. package/dist/es/primitives/context/session/internal/refresher.js +19 -19
  168. package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -3
  169. package/dist/es/primitives/reactive/eventEmitter/main.js +3 -3
  170. package/dist/es/primitives/reactive/reflex/main.js +22 -22
  171. package/dist/es/primitives/reactive/reflex/register.js +25 -25
  172. package/dist/es/primitives/reactive/watchlist/main.js +24 -24
  173. package/dist/es/primitives/time/clock/main.js +6 -6
  174. package/dist/es/primitives/time/interval/main.js +9 -9
  175. package/dist/es/translations/da-DK.json.js +55 -46
  176. package/dist/es/translations/de-DE.json.js +67 -58
  177. package/dist/es/translations/en-US.json.js +33 -30
  178. package/dist/es/translations/es-ES.json.js +91 -82
  179. package/dist/es/translations/fi-FI.json.js +93 -84
  180. package/dist/es/translations/fr-FR.json.js +75 -66
  181. package/dist/es/translations/it-IT.json.js +95 -86
  182. package/dist/es/translations/nl-NL.json.js +92 -83
  183. package/dist/es/translations/no-NO.json.js +71 -62
  184. package/dist/es/translations/pt-BR.json.js +67 -58
  185. package/dist/es/translations/sv-SE.json.js +95 -86
  186. package/dist/es/utils/abort/internals.js +3 -3
  187. package/dist/es/utils/abort/main.js +19 -19
  188. package/dist/es/utils/collection/main.js +14 -14
  189. package/dist/es/utils/datetime/main.js +3 -3
  190. package/dist/es/utils/preact/className.js +2 -2
  191. package/dist/es/utils/struct/main.js +8 -8
  192. package/dist/es/utils/value/is.js +9 -9
  193. package/dist/es/utils/value/number.js +2 -2
  194. package/dist/es-ES-Bjddx94n.cjs +2 -0
  195. package/dist/es-ES-Bjddx94n.cjs.map +1 -0
  196. package/dist/{external-link-Ct-WlQoY.cjs → external-link-CqDz5BtK.cjs} +2 -2
  197. package/dist/{external-link-Ct-WlQoY.cjs.map → external-link-CqDz5BtK.cjs.map} +1 -1
  198. package/dist/fi-FI-CNpmToDG.cjs +2 -0
  199. package/dist/fi-FI-CNpmToDG.cjs.map +1 -0
  200. package/dist/{filter-DwSaMAG7.cjs → filter-DLAt7sYb.cjs} +2 -2
  201. package/dist/{filter-DwSaMAG7.cjs.map → filter-DLAt7sYb.cjs.map} +1 -1
  202. package/dist/fr-FR-CUUHB8JU.cjs +2 -0
  203. package/dist/fr-FR-CUUHB8JU.cjs.map +1 -0
  204. package/dist/index-DbNUA_xB.cjs +12 -0
  205. package/dist/index-DbNUA_xB.cjs.map +1 -0
  206. package/dist/{info-filled-bhD2VGA2.cjs → info-filled-B9fmmNGT.cjs} +2 -2
  207. package/dist/{info-filled-bhD2VGA2.cjs.map → info-filled-B9fmmNGT.cjs.map} +1 -1
  208. package/dist/it-IT-B-E80zCo.cjs +2 -0
  209. package/dist/it-IT-B-E80zCo.cjs.map +1 -0
  210. package/dist/{minus-circle-outline-pNXlRjce.cjs → minus-circle-outline-JkeH7g3f.cjs} +2 -2
  211. package/dist/{minus-circle-outline-pNXlRjce.cjs.map → minus-circle-outline-JkeH7g3f.cjs.map} +1 -1
  212. package/dist/nl-NL--CGhOJhH.cjs +2 -0
  213. package/dist/nl-NL--CGhOJhH.cjs.map +1 -0
  214. package/dist/no-NO-D0UNXgzr.cjs +2 -0
  215. package/dist/no-NO-D0UNXgzr.cjs.map +1 -0
  216. package/dist/{plus-circle-outline-B3Ttq6A2.cjs → plus-circle-outline-Cmz1Lb00.cjs} +2 -2
  217. package/dist/{plus-circle-outline-B3Ttq6A2.cjs.map → plus-circle-outline-Cmz1Lb00.cjs.map} +1 -1
  218. package/dist/pt-BR-Du4cDUgf.cjs +2 -0
  219. package/dist/pt-BR-Du4cDUgf.cjs.map +1 -0
  220. package/dist/{square-C3hb1Bxz.cjs → square-Bow_5TP1.cjs} +2 -2
  221. package/dist/{square-C3hb1Bxz.cjs.map → square-Bow_5TP1.cjs.map} +1 -1
  222. package/dist/sv-SE-C92aO-iv.cjs +2 -0
  223. package/dist/sv-SE-C92aO-iv.cjs.map +1 -0
  224. package/dist/{trash-can-D2GRVBnJ.cjs → trash-can-DLEmgXUG.cjs} +2 -2
  225. package/dist/{trash-can-D2GRVBnJ.cjs.map → trash-can-DLEmgXUG.cjs.map} +1 -1
  226. package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -1
  227. package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts +1 -1
  228. package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts.map +1 -1
  229. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +71 -0
  230. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
  231. package/dist/types/components/internal/CapitalHeader/constants.d.ts +2 -1
  232. package/dist/types/components/internal/CapitalHeader/constants.d.ts.map +1 -1
  233. package/dist/types/components/internal/CapitalHeader/helpers.d.ts.map +1 -1
  234. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -3
  235. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  236. package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +1 -1
  237. package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +1 -1
  238. package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +1 -1
  239. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +1 -1
  240. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
  241. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +1 -1
  242. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
  243. package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +1 -1
  244. package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +1 -1
  245. package/dist/types/components/internal/SVGIcons/Download.d.ts +1 -1
  246. package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -1
  247. package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +1 -1
  248. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
  249. package/dist/types/core/ConfigContext/context.d.ts +2 -0
  250. package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
  251. package/dist/types/core/ConfigContext/session/AuthSession.d.ts +4 -0
  252. package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
  253. package/dist/types/core/ConfigContext/session/SetupContext.d.ts +2 -0
  254. package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
  255. package/dist/types/translations/index.d.ts +3 -0
  256. package/dist/types/translations/index.d.ts.map +1 -1
  257. package/dist/types/types/api/resources/CapitalResource.d.ts +1 -0
  258. package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -1
  259. package/dist/{upload-CeUcEWmW.cjs → upload-DWOtVcWc.cjs} +2 -2
  260. package/dist/{upload-CeUcEWmW.cjs.map → upload-DWOtVcWc.cjs.map} +1 -1
  261. package/dist/{warning-C2NpcmL8.cjs → warning-DNUR39rT.cjs} +2 -2
  262. package/dist/{warning-C2NpcmL8.cjs.map → warning-DNUR39rT.cjs.map} +1 -1
  263. package/dist/{warning-filled-Bo82QPPc.cjs → warning-filled-qxDqTfWV.cjs} +2 -2
  264. package/dist/{warning-filled-Bo82QPPc.cjs.map → warning-filled-qxDqTfWV.cjs.map} +1 -1
  265. package/package.json +15 -14
  266. package/dist/da-DK-DHGqGo8Q.cjs +0 -2
  267. package/dist/da-DK-DHGqGo8Q.cjs.map +0 -1
  268. package/dist/de-DE-k_BRPv7a.cjs +0 -2
  269. package/dist/de-DE-k_BRPv7a.cjs.map +0 -1
  270. package/dist/es-ES-Cy-9bm8z.cjs +0 -2
  271. package/dist/es-ES-Cy-9bm8z.cjs.map +0 -1
  272. package/dist/fi-FI-C7ICLuS8.cjs +0 -2
  273. package/dist/fi-FI-C7ICLuS8.cjs.map +0 -1
  274. package/dist/fr-FR-DH8euUOp.cjs +0 -2
  275. package/dist/fr-FR-DH8euUOp.cjs.map +0 -1
  276. package/dist/index-CpBGZ2AH.cjs +0 -12
  277. package/dist/index-CpBGZ2AH.cjs.map +0 -1
  278. package/dist/it-IT-DsfPVAun.cjs +0 -2
  279. package/dist/it-IT-DsfPVAun.cjs.map +0 -1
  280. package/dist/nl-NL-DP_t6EpF.cjs +0 -2
  281. package/dist/nl-NL-DP_t6EpF.cjs.map +0 -1
  282. package/dist/no-NO-ARsXLWv0.cjs +0 -2
  283. package/dist/no-NO-ARsXLWv0.cjs.map +0 -1
  284. package/dist/pt-BR-CuTqntp7.cjs +0 -2
  285. package/dist/pt-BR-CuTqntp7.cjs.map +0 -1
  286. package/dist/sv-SE-DDAIHLKD.cjs +0 -2
  287. package/dist/sv-SE-DDAIHLKD.cjs.map +0 -1
@@ -1,54 +1,54 @@
1
1
  import { options as W } from "../../dist/preact.module.js";
2
- var s, e, p, A, l = 0, T = [], r = W, F = r.__b, k = r.__r, q = r.diffed, C = r.__c, b = r.unmount, g = r.__;
3
- function m(_, t) {
4
- r.__h && r.__h(e, _, l || t), l = 0;
5
- var u = e.__H || (e.__H = { __: [], __h: [] });
2
+ var s, r, H, A, l = 0, T = [], o = W, F = o.__b, k = o.__r, q = o.diffed, C = o.__c, b = o.unmount, g = o.__;
3
+ function v(_, t) {
4
+ o.__h && o.__h(r, _, l || t), l = 0;
5
+ var u = r.__H || (r.__H = { __: [], __h: [] });
6
6
  return _ >= u.__.length && u.__.push({}), u.__[_];
7
7
  }
8
8
  function I(_) {
9
9
  return l = 1, j(R, _);
10
10
  }
11
11
  function j(_, t, u) {
12
- var n = m(s++, 2);
13
- if (n.t = _, !n.__c && (n.__ = [u ? u(t) : R(void 0, t), function(o) {
14
- var c = n.__N ? n.__N[0] : n.__[0], f = n.t(c, o);
12
+ var n = v(s++, 2);
13
+ if (n.t = _, !n.__c && (n.__ = [u ? u(t) : R(void 0, t), function(i) {
14
+ var c = n.__N ? n.__N[0] : n.__[0], f = n.t(c, i);
15
15
  c !== f && (n.__N = [f, n.__[1]], n.__c.setState({}));
16
- }], n.__c = e, !e.u)) {
17
- var a = function(o, c, f) {
16
+ }], n.__c = r, !r.__f)) {
17
+ var a = function(i, c, f) {
18
18
  if (!n.__c.__H) return !0;
19
- var d = n.__c.__H.__.filter(function(i) {
20
- return !!i.__c;
19
+ var m = n.__c.__H.__.filter(function(e) {
20
+ return !!e.__c;
21
21
  });
22
- if (d.every(function(i) {
23
- return !i.__N;
24
- })) return !h || h.call(this, o, c, f);
25
- var y = n.__c.props !== o;
26
- return d.forEach(function(i) {
27
- if (i.__N) {
28
- var S = i.__[0];
29
- i.__ = i.__N, i.__N = void 0, S !== i.__[0] && (y = !0);
22
+ if (m.every(function(e) {
23
+ return !e.__N;
24
+ })) return !h || h.call(this, i, c, f);
25
+ var N = n.__c.props !== i;
26
+ return m.forEach(function(e) {
27
+ if (e.__N) {
28
+ var S = e.__[0];
29
+ e.__ = e.__N, e.__N = void 0, S !== e.__[0] && (N = !0);
30
30
  }
31
- }), h && h.call(this, o, c, f) || y;
31
+ }), h && h.call(this, i, c, f) || N;
32
32
  };
33
- e.u = !0;
34
- var h = e.shouldComponentUpdate, N = e.componentWillUpdate;
35
- e.componentWillUpdate = function(o, c, f) {
33
+ r.__f = !0;
34
+ var h = r.shouldComponentUpdate, E = r.componentWillUpdate;
35
+ r.componentWillUpdate = function(i, c, f) {
36
36
  if (this.__e) {
37
- var d = h;
38
- h = void 0, a(o, c, f), h = d;
37
+ var m = h;
38
+ h = void 0, a(i, c, f), h = m;
39
39
  }
40
- N && N.call(this, o, c, f);
41
- }, e.shouldComponentUpdate = a;
40
+ E && E.call(this, i, c, f);
41
+ }, r.shouldComponentUpdate = a;
42
42
  }
43
43
  return n.__N || n.__;
44
44
  }
45
45
  function L(_, t) {
46
- var u = m(s++, 3);
47
- !r.__s && E(u.__H, t) && (u.__ = _, u.i = t, e.__H.__h.push(u));
46
+ var u = v(s++, 3);
47
+ !o.__s && y(u.__H, t) && (u.__ = _, u.u = t, r.__H.__h.push(u));
48
48
  }
49
49
  function w(_, t) {
50
- var u = m(s++, 4);
51
- !r.__s && E(u.__H, t) && (u.__ = _, u.i = t, e.__h.push(u));
50
+ var u = v(s++, 4);
51
+ !o.__s && y(u.__H, t) && (u.__ = _, u.u = t, r.__h.push(u));
52
52
  }
53
53
  function M(_) {
54
54
  return l = 5, U(function() {
@@ -57,16 +57,20 @@ function M(_) {
57
57
  }
58
58
  function P(_, t, u) {
59
59
  l = 6, w(function() {
60
- return typeof _ == "function" ? (_(t()), function() {
61
- return _(null);
62
- }) : _ ? (_.current = t(), function() {
60
+ if (typeof _ == "function") {
61
+ var n = _(t());
62
+ return function() {
63
+ _(null), n && typeof n == "function" && n();
64
+ };
65
+ }
66
+ if (_) return _.current = t(), function() {
63
67
  return _.current = null;
64
- }) : void 0;
68
+ };
65
69
  }, u == null ? u : u.concat(_));
66
70
  }
67
71
  function U(_, t) {
68
- var u = m(s++, 7);
69
- return E(u.__H, t) && (u.__ = _(), u.__H = t, u.__h = _), u.__;
72
+ var u = v(s++, 7);
73
+ return y(u.__H, t) && (u.__ = _(), u.__H = t, u.__h = _), u.__;
70
74
  }
71
75
  function $(_, t) {
72
76
  return l = 8, U(function() {
@@ -74,54 +78,54 @@ function $(_, t) {
74
78
  }, t);
75
79
  }
76
80
  function G(_) {
77
- var t = e.context[_.__c], u = m(s++, 9);
78
- return u.c = _, t ? (u.__ == null && (u.__ = !0, t.sub(e)), t.props.value) : _.__;
81
+ var t = r.context[_.__c], u = v(s++, 9);
82
+ return u.c = _, t ? (u.__ == null && (u.__ = !0, t.sub(r)), t.props.value) : _.__;
79
83
  }
80
84
  function z() {
81
85
  for (var _; _ = T.shift(); ) if (_.__P && _.__H) try {
82
- _.__H.__h.forEach(v), _.__H.__h.forEach(H), _.__H.__h = [];
86
+ _.__H.__h.forEach(p), _.__H.__h.forEach(d), _.__H.__h = [];
83
87
  } catch (t) {
84
- _.__H.__h = [], r.__e(t, _.__v);
88
+ _.__H.__h = [], o.__e(t, _.__v);
85
89
  }
86
90
  }
87
- r.__b = function(_) {
88
- e = null, F && F(_);
89
- }, r.__ = function(_, t) {
91
+ o.__b = function(_) {
92
+ r = null, F && F(_);
93
+ }, o.__ = function(_, t) {
90
94
  _ && t.__k && t.__k.__m && (_.__m = t.__k.__m), g && g(_, t);
91
- }, r.__r = function(_) {
95
+ }, o.__r = function(_) {
92
96
  k && k(_), s = 0;
93
- var t = (e = _.__c).__H;
94
- t && (p === e ? (t.__h = [], e.__h = [], t.__.forEach(function(u) {
95
- u.__N && (u.__ = u.__N), u.i = u.__N = void 0;
96
- })) : (t.__h.forEach(v), t.__h.forEach(H), t.__h = [], s = 0)), p = e;
97
- }, r.diffed = function(_) {
97
+ var t = (r = _.__c).__H;
98
+ t && (H === r ? (t.__h = [], r.__h = [], t.__.forEach(function(u) {
99
+ u.__N && (u.__ = u.__N), u.u = u.__N = void 0;
100
+ })) : (t.__h.forEach(p), t.__h.forEach(d), t.__h = [], s = 0)), H = r;
101
+ }, o.diffed = function(_) {
98
102
  q && q(_);
99
103
  var t = _.__c;
100
- t && t.__H && (t.__H.__h.length && (T.push(t) !== 1 && A === r.requestAnimationFrame || ((A = r.requestAnimationFrame) || B)(z)), t.__H.__.forEach(function(u) {
101
- u.i && (u.__H = u.i), u.i = void 0;
102
- })), p = e = null;
103
- }, r.__c = function(_, t) {
104
+ t && t.__H && (t.__H.__h.length && (T.push(t) !== 1 && A === o.requestAnimationFrame || ((A = o.requestAnimationFrame) || B)(z)), t.__H.__.forEach(function(u) {
105
+ u.u && (u.__H = u.u), u.u = void 0;
106
+ })), H = r = null;
107
+ }, o.__c = function(_, t) {
104
108
  t.some(function(u) {
105
109
  try {
106
- u.__h.forEach(v), u.__h = u.__h.filter(function(n) {
107
- return !n.__ || H(n);
110
+ u.__h.forEach(p), u.__h = u.__h.filter(function(n) {
111
+ return !n.__ || d(n);
108
112
  });
109
113
  } catch (n) {
110
114
  t.some(function(a) {
111
115
  a.__h && (a.__h = []);
112
- }), t = [], r.__e(n, u.__v);
116
+ }), t = [], o.__e(n, u.__v);
113
117
  }
114
118
  }), C && C(_, t);
115
- }, r.unmount = function(_) {
119
+ }, o.unmount = function(_) {
116
120
  b && b(_);
117
121
  var t, u = _.__c;
118
122
  u && u.__H && (u.__H.__.forEach(function(n) {
119
123
  try {
120
- v(n);
124
+ p(n);
121
125
  } catch (a) {
122
126
  t = a;
123
127
  }
124
- }), u.__H = void 0, t && r.__e(t, u.__v));
128
+ }), u.__H = void 0, t && o.__e(t, u.__v));
125
129
  };
126
130
  var x = typeof requestAnimationFrame == "function";
127
131
  function B(_) {
@@ -130,15 +134,15 @@ function B(_) {
130
134
  }, n = setTimeout(u, 100);
131
135
  x && (t = requestAnimationFrame(u));
132
136
  }
133
- function v(_) {
134
- var t = e, u = _.__c;
135
- typeof u == "function" && (_.__c = void 0, u()), e = t;
137
+ function p(_) {
138
+ var t = r, u = _.__c;
139
+ typeof u == "function" && (_.__c = void 0, u()), r = t;
136
140
  }
137
- function H(_) {
138
- var t = e;
139
- _.__c = _.__(), e = t;
141
+ function d(_) {
142
+ var t = r;
143
+ _.__c = _.__(), r = t;
140
144
  }
141
- function E(_, t) {
145
+ function y(_, t) {
142
146
  return !_ || _.length !== t.length || t.some(function(u, n) {
143
147
  return u !== _[n];
144
148
  });
@@ -1,17 +1,17 @@
1
1
  import { options as s } from "../../dist/preact.module.js";
2
2
  import { Fragment as x } from "../../dist/preact.module.js";
3
3
  var a = 0;
4
- function c(e, r, u, p, i, l) {
4
+ function v(f, r, i, p, l, u) {
5
5
  r || (r = {});
6
- var _, n, o = r;
7
- if ("ref" in o) for (n in o = {}, r) n == "ref" ? _ = r[n] : o[n] = r[n];
8
- var f = { type: e, props: o, key: u, ref: _, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --a, __i: -1, __u: 0, __source: i, __self: l };
9
- if (typeof e == "function" && (_ = e.defaultProps)) for (n in _) o[n] === void 0 && (o[n] = _[n]);
10
- return s.vnode && s.vnode(f), f;
6
+ var n, o, _ = r;
7
+ if ("ref" in _) for (o in _ = {}, r) o == "ref" ? n = r[o] : _[o] = r[o];
8
+ var e = { type: f, props: _, key: i, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --a, __i: -1, __u: 0, __source: l, __self: u };
9
+ if (typeof f == "function" && (n = f.defaultProps)) for (o in n) _[o] === void 0 && (_[o] = n[o]);
10
+ return s.vnode && s.vnode(e), e;
11
11
  }
12
12
  export {
13
13
  x as Fragment,
14
- c as jsx,
15
- c as jsxDEV,
16
- c as jsxs
14
+ v as jsx,
15
+ v as jsxDEV,
16
+ v as jsxs
17
17
  };
@@ -1,16 +1,16 @@
1
- import { createPortal as a } from "../../external/preact/compat/dist/compat.module.js";
2
- import { useState as c, useMemo as i } from "../../external/preact/hooks/dist/hooks.module.js";
3
- import m from "../useReflex.js";
4
- const R = (r, n) => {
5
- const [t, s] = c(), d = m(
6
- i(() => {
7
- const u = (e) => (...f) => {
8
- const o = r(e, ...f);
9
- return o && a(o, e);
1
+ import { createPortal as c } from "../../external/preact/compat/dist/compat.module.js";
2
+ import { useState as i, useMemo as m } from "../../external/preact/hooks/dist/hooks.module.js";
3
+ import f from "../useReflex.js";
4
+ const R = (r, o) => {
5
+ const [t, s] = i(), d = f(
6
+ m(() => {
7
+ const u = (e) => (...a) => {
8
+ const n = r(e, ...a);
9
+ return n && c(n, e);
10
10
  };
11
11
  return s(void 0), (e) => s(e instanceof Element ? () => u(e) : void 0);
12
- }, [r, n]),
13
- n
12
+ }, [r, o]),
13
+ o
14
14
  );
15
15
  return [t, d];
16
16
  };
@@ -1,10 +1,10 @@
1
- import { useRef as c, useMemo as i, useCallback as l } from "../../external/preact/hooks/dist/hooks.module.js";
1
+ import { useRef as u, useMemo as i, useCallback as l } from "../../external/preact/hooks/dist/hooks.module.js";
2
2
  import { InteractionKeyCode as r } from "../../components/types.js";
3
3
  import { withTabbableRoot as T, isFocusable as p, focusIsWithin as L } from "../../primitives/dom/tabbableRoot/tabbable.js";
4
4
  import C from "../useReflex.js";
5
5
  import { isUndefined as O } from "../../utils/value/is.js";
6
6
  const w = (R, f) => {
7
- const s = c(!1), o = c(null), u = c(!1), a = i(T, []), m = i(() => {
7
+ const s = u(!1), o = u(null), c = u(!1), a = i(T, []), m = i(() => {
8
8
  let e = null, t;
9
9
  return (F) => {
10
10
  O(t) || cancelAnimationFrame(t);
@@ -25,7 +25,7 @@ const w = (R, f) => {
25
25
  }, []), d = l((e) => {
26
26
  a.current = o.current = e.target;
27
27
  }, []), E = l((e) => {
28
- a.tabbables.includes(e.relatedTarget) || L(e.currentTarget, e.relatedTarget) || u.current || (s.current = !0, requestAnimationFrame(() => {
28
+ a.tabbables.includes(e.relatedTarget) || L(e.currentTarget, e.relatedTarget) || c.current || (s.current = !0, requestAnimationFrame(() => {
29
29
  s.current && f(s.current = !1);
30
30
  }));
31
31
  }, []), A = i(() => {
@@ -44,9 +44,9 @@ const w = (R, f) => {
44
44
  case r.TAB:
45
45
  cancelAnimationFrame(e), e = requestAnimationFrame(() => {
46
46
  e = requestAnimationFrame(() => {
47
- u.current = !1, e = void 0;
47
+ c.current = !1, e = void 0;
48
48
  });
49
- }), u.current = !0;
49
+ }), c.current = !0;
50
50
  break;
51
51
  }
52
52
  t.code === r.TAB ? (t.preventDefault(), a.current = t.shiftKey ? -1 : 1) : t.code === r.ESCAPE && f(!0);
@@ -1,18 +1,18 @@
1
- import { useState as s, useCallback as f, useMemo as m } from "../external/preact/hooks/dist/hooks.module.js";
1
+ import { useState as s, useCallback as m, useMemo as r } from "../external/preact/hooks/dist/hooks.module.js";
2
2
  import { capitalize as x } from "../utils/value/string.js";
3
- const u = (e) => {
4
- const [d, t] = s(0), r = f(() => t(0), [t]), p = m(() => e == null ? void 0 : e[d], [e, d]), B = m(
5
- () => e && e.length > 1 ? Object.freeze(e.map(({ description: i, id: o }) => ({ id: o, name: x(i) }))) : void 0,
3
+ const z = (e) => {
4
+ const [d, o] = s(0), f = m(() => o(0), [o]), p = r(() => e == null ? void 0 : e[d], [e, d]), B = r(
5
+ () => e && e.length > 1 ? Object.freeze(e.map(({ description: i, id: t }) => ({ id: t, name: x(i) }))) : void 0,
6
6
  [e]
7
- ), S = f(
7
+ ), S = m(
8
8
  ({ target: i }) => {
9
- const o = i == null ? void 0 : i.value, n = e == null ? void 0 : e.findIndex(({ id: l }) => l === o);
10
- n >= 0 && t(n);
9
+ const t = i == null ? void 0 : i.value, n = e == null ? void 0 : e.findIndex(({ id: l }) => l === t);
10
+ n >= 0 && o(n);
11
11
  },
12
- [e, t]
12
+ [e, o]
13
13
  );
14
- return { activeBalanceAccount: p, balanceAccountSelectionOptions: B, onBalanceAccountSelection: S, resetBalanceAccountSelection: r };
14
+ return { activeBalanceAccount: p, balanceAccountSelectionOptions: B, onBalanceAccountSelection: S, resetBalanceAccountSelection: f };
15
15
  };
16
16
  export {
17
- u as default
17
+ z as default
18
18
  };
@@ -1,11 +1,11 @@
1
- import { useState as O, useCallback as r, useMemo as a, useEffect as g } from "../../external/preact/hooks/dist/hooks.module.js";
1
+ import { useState as O, useCallback as r, useMemo as a, useEffect as d } from "../../external/preact/hooks/dist/hooks.module.js";
2
2
  import { ButtonVariant as P } from "../../components/internal/Button/types.js";
3
3
  import { CommitAction as t } from "./types.js";
4
- import v from "../../core/Context/useCoreContext.js";
4
+ import g from "../../core/Context/useCoreContext.js";
5
+ import { EMPTY_OBJECT as v } from "../../utils/value/constants.js";
5
6
  import { boolOrFalse as B } from "../../utils/value/bool.js";
6
- import { EMPTY_OBJECT as L } from "../../utils/value/constants.js";
7
- const S = ({ applyDisabled: A, applyTitle: m, resetDisabled: e, resetTitle: c } = L) => {
8
- const { i18n: s } = v(), [n, o] = O(t.NONE), [R, u] = O(n !== t.NONE), C = r(() => o(t.APPLY), [o]), E = r(() => o(t.CLEAR), [o]), i = r(() => o(t.NONE), [o]), f = a(
7
+ const h = ({ applyDisabled: A, applyTitle: m, resetDisabled: e, resetTitle: c } = v) => {
8
+ const { i18n: s } = g(), [n, o] = O(t.NONE), [R, u] = O(n !== t.NONE), C = r(() => o(t.APPLY), [o]), E = r(() => o(t.CLEAR), [o]), i = r(() => o(t.NONE), [o]), f = a(
9
9
  () => ({
10
10
  disabled: B(A),
11
11
  event: C,
@@ -22,7 +22,7 @@ const S = ({ applyDisabled: A, applyTitle: m, resetDisabled: e, resetTitle: c }
22
22
  }),
23
23
  [s, E, e, c]
24
24
  ), Y = a(() => [f, N], [f, N]);
25
- return g(() => {
25
+ return d(() => {
26
26
  switch (u(n !== t.NONE), n) {
27
27
  case t.APPLY:
28
28
  case t.CLEAR:
@@ -32,5 +32,5 @@ const S = ({ applyDisabled: A, applyTitle: m, resetDisabled: e, resetTitle: c }
32
32
  }, [n, u, i]), { commitAction: n, commitActionButtons: Y, committing: R, resetCommitAction: i };
33
33
  };
34
34
  export {
35
- S as default
35
+ h as default
36
36
  };
@@ -1,8 +1,8 @@
1
- import { useState as d, useEffect as h } from "../external/preact/hooks/dist/hooks.module.js";
2
- import l from "../core/Context/useCoreContext.js";
1
+ import { useState as d, useEffect as l } from "../external/preact/hooks/dist/hooks.module.js";
2
+ import p from "../core/Context/useCoreContext.js";
3
3
  const k = (i) => {
4
4
  var c;
5
- const { componentRef: n } = l(), [r, f] = d(((c = n.current) == null ? void 0 : c.offsetWidth) || 0), [u, o, a] = i;
5
+ const { componentRef: n } = p(), [r, f] = d(((c = n.current) == null ? void 0 : c.offsetWidth) || 0), [u, o, a] = i;
6
6
  let s = !1;
7
7
  switch (u) {
8
8
  case "up":
@@ -19,7 +19,7 @@ const k = (i) => {
19
19
  s = r === o;
20
20
  break;
21
21
  }
22
- return h(() => {
22
+ return l(() => {
23
23
  const e = n.current;
24
24
  if (!e) return;
25
25
  const t = new ResizeObserver((m) => {
@@ -1,6 +1,6 @@
1
1
  import { useState as i, useCallback as u, useEffect as m } from "../external/preact/hooks/dist/hooks.module.js";
2
2
  import { isFunction as y } from "../utils/value/is.js";
3
- const R = ({
3
+ const g = ({
4
4
  records: s,
5
5
  hasCustomColumn: a = !1,
6
6
  onDataRetrieve: o,
@@ -25,5 +25,5 @@ const R = ({
25
25
  }, [n, s]), { customRecords: f, loadingCustomRecords: c };
26
26
  };
27
27
  export {
28
- R as useCustomColumnsData
28
+ g as useCustomColumnsData
29
29
  };
@@ -1,25 +1,25 @@
1
- import { useState as m, useRef as f, useCallback as u, useEffect as l } from "../external/preact/hooks/dist/hooks.module.js";
2
- import { FilterParam as e } from "../components/types.js";
3
- import { getTimeRangeSelectionDefaultPresetOptions as T } from "../components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js";
1
+ import { useState as m, useRef as f, useCallback as l, useEffect as T } from "../external/preact/hooks/dist/hooks.module.js";
2
+ import { FilterParam as t } from "../components/types.js";
3
+ import { getTimeRangeSelectionDefaultPresetOptions as u } from "../components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js";
4
4
  import { DEFAULT_TRANSACTIONS_OVERVIEW_MULTI_SELECTION_FILTER_PARAMS as c } from "../components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js";
5
- const A = (r) => {
6
- const t = T(), a = "rangePreset.last30Days", { from: s, to: n } = t[a];
5
+ const A = (o) => {
6
+ const e = u(), a = "rangePreset.last30Days", { from: s, to: r } = e[a];
7
7
  return { defaultFilterParams: {
8
- ...r === "transactions" && {
8
+ ...o === "transactions" && {
9
9
  ...c,
10
- [e.MIN_AMOUNT]: void 0,
11
- [e.MAX_AMOUNT]: void 0
10
+ [t.MIN_AMOUNT]: void 0,
11
+ [t.MAX_AMOUNT]: void 0
12
12
  },
13
- [e.BALANCE_ACCOUNT]: void 0,
14
- [e.CREATED_SINCE]: new Date(s).toISOString(),
15
- [e.CREATED_UNTIL]: new Date(n).toISOString()
16
- }, defaultTimeRange: a, timeRangeOptions: t };
17
- }, D = (r, t) => {
18
- const [a, s] = m(Date.now()), n = A(r), i = f(n), o = u(() => s(Date.now()), [s]);
19
- return l(() => {
20
- o();
21
- }, [t, o]), { defaultParams: i, nowTimestamp: a, refreshNowTimestamp: o };
13
+ [t.BALANCE_ACCOUNT]: void 0,
14
+ [t.CREATED_SINCE]: new Date(s).toISOString(),
15
+ [t.CREATED_UNTIL]: new Date(r).toISOString()
16
+ }, defaultTimeRange: a, timeRangeOptions: e };
17
+ }, O = (o, e) => {
18
+ const [a, s] = m(Date.now()), r = A(o), i = f(r), n = l(() => s(Date.now()), [s]);
19
+ return T(() => {
20
+ n();
21
+ }, [e, n]), { defaultParams: i, nowTimestamp: a, refreshNowTimestamp: n };
22
22
  };
23
23
  export {
24
- D as default
24
+ O as default
25
25
  };
@@ -1,39 +1,39 @@
1
- import { useRef as l, useReducer as h, useCallback as y, useEffect as g } from "../external/preact/hooks/dist/hooks.module.js";
2
- import { boolOrTrue as f } from "../utils/value/bool.js";
3
- function R({
4
- fetchOptions: { keepPrevData: s, onSuccess: t, enabled: i } = { keepPrevData: !0 },
5
- queryFn: u
1
+ import { useRef as l, useReducer as p, useCallback as y, useEffect as g } from "../external/preact/hooks/dist/hooks.module.js";
2
+ import { boolOrTrue as u } from "../utils/value/bool.js";
3
+ function F({
4
+ fetchOptions: { keepPrevData: d, onSuccess: e, enabled: c } = { keepPrevData: !0 },
5
+ queryFn: s
6
6
  }) {
7
7
  const r = l(!1), a = {
8
8
  error: void 0,
9
9
  data: void 0,
10
- isFetching: f(i)
11
- }, o = (e, c) => {
12
- switch (c.type) {
10
+ isFetching: u(c)
11
+ }, f = (t, o) => {
12
+ switch (o.type) {
13
13
  case "loading":
14
- return { ...a, isFetching: !0, data: s ? e.data : void 0 };
14
+ return { ...a, isFetching: !0, data: d ? t.data : void 0 };
15
15
  case "fetched":
16
- return { ...a, data: c.payload, isFetching: !1 };
16
+ return { ...a, data: o.payload, isFetching: !1 };
17
17
  case "error":
18
- return { ...a, error: c.payload, isFetching: !1 };
18
+ return { ...a, error: o.payload, isFetching: !1 };
19
19
  default:
20
- return e;
20
+ return t;
21
21
  }
22
- }, [p, n] = h(o, a), d = y(async () => {
23
- n({ type: "loading" });
22
+ }, [h, i] = p(f, a), n = y(async () => {
23
+ i({ type: "loading" });
24
24
  try {
25
25
  if (r.current) return;
26
- const e = await u();
27
- t == null || t(e), n({ type: "fetched", payload: e });
28
- } catch (e) {
26
+ const t = await s();
27
+ e == null || e(t), i({ type: "fetched", payload: t });
28
+ } catch (t) {
29
29
  if (r.current) return;
30
- n({ type: "error", payload: e });
30
+ i({ type: "error", payload: t });
31
31
  }
32
- }, [n, u, t]);
33
- return g(() => (r.current = !1, f(i) && d(), () => {
32
+ }, [i, s, e]);
33
+ return g(() => (r.current = !1, u(c) && n(), () => {
34
34
  r.current = !0;
35
- }), [i, d]), p;
35
+ }), [c, n]), h;
36
36
  }
37
37
  export {
38
- R as useFetch
38
+ F as useFetch
39
39
  };
@@ -1,10 +1,10 @@
1
- import { useState as f, useCallback as u, useMemo as h } from "../../external/preact/hooks/dist/hooks.module.js";
2
- import { hasCallback as k } from "./types.js";
1
+ import { useState as f, useCallback as u, useMemo as k } from "../../external/preact/hooks/dist/hooks.module.js";
2
+ import { hasCallback as D } from "./types.js";
3
3
  function o(l) {
4
- const [n, r] = f(null), d = u(
4
+ const [d, r] = f(null), n = u(
5
5
  (e) => {
6
6
  var c;
7
- return e && k(l[e.selection.type]) ? {
7
+ return e && D(l[e.selection.type]) ? {
8
8
  callback: (c = l == null ? void 0 : l[e.selection.type]) != null && c.callback ? (a) => {
9
9
  var s, t;
10
10
  return (t = (s = l[e.selection.type]) == null ? void 0 : s.callback) == null ? void 0 : t.call(s, { showModal: () => r(e), ...a });
@@ -15,7 +15,7 @@ function o(l) {
15
15
  } : (r(e), {});
16
16
  },
17
17
  [l]
18
- ), i = u(() => r(null), []), b = h(() => {
18
+ ), i = u(() => r(null), []), b = k(() => {
19
19
  const e = {};
20
20
  for (const c in l) {
21
21
  const a = l[c];
@@ -24,8 +24,8 @@ function o(l) {
24
24
  return e;
25
25
  }, [l]);
26
26
  return {
27
- selectedDetail: n,
28
- updateDetails: d,
27
+ selectedDetail: d,
28
+ updateDetails: n,
29
29
  detailsToShow: b,
30
30
  resetDetails: i
31
31
  };
@@ -1,14 +1,14 @@
1
1
  import { useState as p, useRef as g, useCallback as M, useEffect as P, useMemo as _ } from "../../external/preact/hooks/dist/hooks.module.js";
2
2
  import { isNumber as b, isFunction as k } from "../../utils/value/is.js";
3
+ import { EMPTY_OBJECT as I } from "../../utils/value/constants.js";
3
4
  import { ALREADY_RESOLVED_PROMISE as x } from "../../utils/async/constants.js";
4
5
  import { tryResolve as a } from "../../utils/async/main.js";
5
- import { EMPTY_OBJECT as I } from "../../utils/value/constants.js";
6
6
  const u = (e) => {
7
7
  setTimeout(() => {
8
8
  throw e;
9
9
  }, 0);
10
10
  };
11
- function j({
11
+ function V({
12
12
  queryFn: e,
13
13
  options: A
14
14
  }) {
@@ -55,5 +55,5 @@ function j({
55
55
  );
56
56
  }
57
57
  export {
58
- j as default
58
+ V as default
59
59
  };
@@ -1,32 +1,32 @@
1
- import { useRef as a, useMemo as h, useReducer as w, useEffect as P } from "../../external/preact/hooks/dist/hooks.module.js";
2
- import R from "../useMounted.js";
3
- import { EMPTY_OBJECT as V } from "../../utils/value/constants.js";
4
- const x = (o = V, f = !0) => {
5
- const c = a(f), e = a(Object.freeze({ ...o })), p = a(new Set(Object.keys(e.current))), u = a(/* @__PURE__ */ new Set()), S = R(), [d, j] = h(() => {
6
- const r = (n) => {
7
- S.current && E(n);
1
+ import { useRef as o, useMemo as b, useReducer as v, useEffect as w } from "../../external/preact/hooks/dist/hooks.module.js";
2
+ import P from "../useMounted.js";
3
+ import { EMPTY_OBJECT as R } from "../../utils/value/constants.js";
4
+ const x = (a = R, f = !0) => {
5
+ const n = o(f), e = o(Object.freeze({ ...a })), p = o(new Set(Object.keys(e.current))), u = o(/* @__PURE__ */ new Set()), S = P(), [d, j] = b(() => {
6
+ const r = (c) => {
7
+ S.current && E(c);
8
8
  };
9
9
  return [
10
10
  () => r("reset"),
11
- (n) => r(n)
11
+ (c) => r(c)
12
12
  ];
13
- }, [S]), [z, E] = w((r, n) => {
14
- if (n === "reset")
13
+ }, [S]), [z, E] = v((r, c) => {
14
+ if (c === "reset")
15
15
  return u.current.clear(), e.current;
16
- const s = { ...n }, i = [0];
17
- Object.keys(s).forEach((t, O) => {
16
+ const s = { ...c }, h = [0];
17
+ Object.keys(s).forEach((t, m) => {
18
18
  if (!p.current.has(t)) return;
19
- const $ = r[t] ?? void 0, b = e.current[t] ?? void 0, l = s[t] ?? b;
19
+ const $ = r[t] ?? void 0, O = e.current[t] ?? void 0, l = s[t] ?? O;
20
20
  if (l === $) return;
21
- const g = Math.floor(O / 32), M = 1 << O % 32;
22
- s[t] = l, i[g] |= M, u.current[l === b ? "delete" : "add"](t);
21
+ const g = Math.floor(m / 32), M = 1 << m % 32;
22
+ s[t] = l, h[g] |= M, u.current[l === O ? "delete" : "add"](t);
23
23
  });
24
- const m = i.some((t) => t) ? c.current && u.current.size === 0 ? e.current : Object.freeze({ ...r, ...s }) : r;
25
- return c.current || (e.current = m, c.current = !0), m;
26
- }, e.current), T = h(() => !!u.current.size, []);
27
- return P(() => {
28
- e.current = Object.freeze({ ...o }), p.current = new Set(Object.keys(e.current)), c.current = f, d();
29
- }, [f, o, d]), { canResetState: T, defaultState: e.current, resetState: d, state: z, updateState: j };
24
+ const i = h.some((t) => t) ? n.current && u.current.size === 0 ? e.current : Object.freeze({ ...r, ...s }) : r;
25
+ return n.current || (e.current = i, n.current = !0), i;
26
+ }, e.current), T = b(() => !!u.current.size, []);
27
+ return w(() => {
28
+ e.current = Object.freeze({ ...a }), p.current = new Set(Object.keys(e.current)), n.current = f, d();
29
+ }, [f, a, d]), { canResetState: T, defaultState: e.current, resetState: d, state: z, updateState: j };
30
30
  };
31
31
  export {
32
32
  x as default