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

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-DCDtBphj.cjs} +2 -2
  3. package/dist/{angle-right-C1JIrQTg.cjs.map → angle-right-DCDtBphj.cjs.map} +1 -1
  4. package/dist/{checkmark-B8DhX3p1.cjs → checkmark-BUtjcpAC.cjs} +2 -2
  5. package/dist/{checkmark-B8DhX3p1.cjs.map → checkmark-BUtjcpAC.cjs.map} +1 -1
  6. package/dist/{checkmark-circle-fill-CMpIlMCC.cjs → checkmark-circle-fill-CtUhQzOt.cjs} +2 -2
  7. package/dist/{checkmark-circle-fill-CMpIlMCC.cjs.map → checkmark-circle-fill-CtUhQzOt.cjs.map} +1 -1
  8. package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs → checkmark-square-fill-Cpdn8YWp.cjs} +2 -2
  9. package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs.map → checkmark-square-fill-Cpdn8YWp.cjs.map} +1 -1
  10. package/dist/{chevron-down-CB77LxQY.cjs → chevron-down-CEgNjZK_.cjs} +2 -2
  11. package/dist/{chevron-down-CB77LxQY.cjs.map → chevron-down-CEgNjZK_.cjs.map} +1 -1
  12. package/dist/{chevron-left-DMAmIvLF.cjs → chevron-left-BgN_rxGR.cjs} +2 -2
  13. package/dist/{chevron-left-DMAmIvLF.cjs.map → chevron-left-BgN_rxGR.cjs.map} +1 -1
  14. package/dist/{chevron-right-BxLJu7Zf.cjs → chevron-right-Jwt5BuB-.cjs} +2 -2
  15. package/dist/{chevron-right-BxLJu7Zf.cjs.map → chevron-right-Jwt5BuB-.cjs.map} +1 -1
  16. package/dist/{chevron-up-CT79XJdh.cjs → chevron-up-B_O0vmIX.cjs} +2 -2
  17. package/dist/{chevron-up-CT79XJdh.cjs.map → chevron-up-B_O0vmIX.cjs.map} +1 -1
  18. package/dist/cjs/index.js +1 -1
  19. package/dist/{copy-7UpFtMvt.cjs → copy-DztEPGun.cjs} +2 -2
  20. package/dist/{copy-7UpFtMvt.cjs.map → copy-DztEPGun.cjs.map} +1 -1
  21. package/dist/{cross-DtVirgrN.cjs → cross-B9ojc3kB.cjs} +2 -2
  22. package/dist/{cross-DtVirgrN.cjs.map → cross-B9ojc3kB.cjs.map} +1 -1
  23. package/dist/{cross-circle-fill-C47yImD2.cjs → cross-circle-fill-Dy_LlcFp.cjs} +2 -2
  24. package/dist/{cross-circle-fill-C47yImD2.cjs.map → cross-circle-fill-Dy_LlcFp.cjs.map} +1 -1
  25. package/dist/da-DK-DAJvnb2s.cjs +2 -0
  26. package/dist/da-DK-DAJvnb2s.cjs.map +1 -0
  27. package/dist/de-DE-DFMmcoWN.cjs +2 -0
  28. package/dist/de-DE-DFMmcoWN.cjs.map +1 -0
  29. package/dist/{download-A1m1wB_K.cjs → download-DsN3U6Xn.cjs} +2 -2
  30. package/dist/{download-A1m1wB_K.cjs.map → download-DsN3U6Xn.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 +71 -62
  177. package/dist/es/translations/en-US.json.js +41 -38
  178. package/dist/es/translations/es-ES.json.js +79 -70
  179. package/dist/es/translations/fi-FI.json.js +97 -88
  180. package/dist/es/translations/fr-FR.json.js +75 -66
  181. package/dist/es/translations/it-IT.json.js +107 -98
  182. package/dist/es/translations/nl-NL.json.js +80 -71
  183. package/dist/es/translations/no-NO.json.js +67 -58
  184. package/dist/es/translations/pt-BR.json.js +71 -62
  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-DWJu_JsZ.cjs +2 -0
  195. package/dist/es-ES-DWJu_JsZ.cjs.map +1 -0
  196. package/dist/{external-link-Ct-WlQoY.cjs → external-link-DgHiKqPL.cjs} +2 -2
  197. package/dist/{external-link-Ct-WlQoY.cjs.map → external-link-DgHiKqPL.cjs.map} +1 -1
  198. package/dist/fi-FI-MXUK5vu0.cjs +2 -0
  199. package/dist/fi-FI-MXUK5vu0.cjs.map +1 -0
  200. package/dist/{filter-DwSaMAG7.cjs → filter-C7stlLTD.cjs} +2 -2
  201. package/dist/{filter-DwSaMAG7.cjs.map → filter-C7stlLTD.cjs.map} +1 -1
  202. package/dist/fr-FR-NK-BqBuh.cjs +2 -0
  203. package/dist/fr-FR-NK-BqBuh.cjs.map +1 -0
  204. package/dist/index-ejbaSyzM.cjs +12 -0
  205. package/dist/index-ejbaSyzM.cjs.map +1 -0
  206. package/dist/{info-filled-bhD2VGA2.cjs → info-filled-Bk8waEjd.cjs} +2 -2
  207. package/dist/{info-filled-bhD2VGA2.cjs.map → info-filled-Bk8waEjd.cjs.map} +1 -1
  208. package/dist/it-IT-CckThmyL.cjs +2 -0
  209. package/dist/it-IT-CckThmyL.cjs.map +1 -0
  210. package/dist/{minus-circle-outline-pNXlRjce.cjs → minus-circle-outline-8LuhQHmx.cjs} +2 -2
  211. package/dist/{minus-circle-outline-pNXlRjce.cjs.map → minus-circle-outline-8LuhQHmx.cjs.map} +1 -1
  212. package/dist/nl-NL-73Hql9dE.cjs +2 -0
  213. package/dist/nl-NL-73Hql9dE.cjs.map +1 -0
  214. package/dist/no-NO-C5RVnfc6.cjs +2 -0
  215. package/dist/no-NO-C5RVnfc6.cjs.map +1 -0
  216. package/dist/{plus-circle-outline-B3Ttq6A2.cjs → plus-circle-outline-x53czuRo.cjs} +2 -2
  217. package/dist/{plus-circle-outline-B3Ttq6A2.cjs.map → plus-circle-outline-x53czuRo.cjs.map} +1 -1
  218. package/dist/pt-BR-DR3yYVRn.cjs +2 -0
  219. package/dist/pt-BR-DR3yYVRn.cjs.map +1 -0
  220. package/dist/{square-C3hb1Bxz.cjs → square-BzY0pIfq.cjs} +2 -2
  221. package/dist/{square-C3hb1Bxz.cjs.map → square-BzY0pIfq.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-oPrHRWRq.cjs} +2 -2
  225. package/dist/{trash-can-D2GRVBnJ.cjs.map → trash-can-oPrHRWRq.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-CEAJdOXV.cjs} +2 -2
  260. package/dist/{upload-CeUcEWmW.cjs.map → upload-CEAJdOXV.cjs.map} +1 -1
  261. package/dist/{warning-C2NpcmL8.cjs → warning-BzXJLvmN.cjs} +2 -2
  262. package/dist/{warning-C2NpcmL8.cjs.map → warning-BzXJLvmN.cjs.map} +1 -1
  263. package/dist/{warning-filled-Bo82QPPc.cjs → warning-filled-P8HTOKkP.cjs} +2 -2
  264. package/dist/{warning-filled-Bo82QPPc.cjs.map → warning-filled-P8HTOKkP.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,23 +1,23 @@
1
- import { useMemo as c, useRef as g, useState as d } from "../../../../external/preact/hooks/dist/hooks.module.js";
1
+ import { useMemo as c, useRef as d, useState as g } from "../../../../external/preact/hooks/dist/hooks.module.js";
2
2
  import { getTimezoneOffsetFromFormattedDateString as l, getGMTSuffixForTimezoneOffset as E } from "../../../../core/Localization/datetime/restamper/utils.js";
3
- import M from "../../../../core/Localization/datetime/restamper/restamper.js";
4
- import { clock as _ } from "../../../../primitives/time/clock/main.js";
5
- import { isWatchlistUnsubscribeToken as G } from "../../../../primitives/reactive/watchlist/main.js";
6
- import { boolOrFalse as O } from "../../../../utils/value/bool.js";
3
+ import { clock as M } from "../../../../primitives/time/clock/main.js";
4
+ import { isWatchlistUnsubscribeToken as _ } from "../../../../primitives/reactive/watchlist/main.js";
5
+ import G from "../../../../core/Localization/datetime/restamper/restamper.js";
6
+ import { EMPTY_OBJECT as O, EMPTY_ARRAY as S } from "../../../../utils/value/constants.js";
7
+ import { boolOrFalse as R } from "../../../../utils/value/bool.js";
7
8
  import { noop as a } from "../../../../utils/common.js";
8
- import { EMPTY_OBJECT as S, EMPTY_ARRAY as R } from "../../../../utils/value/constants.js";
9
9
  const { getTimezoneTime: U, getUsedTimezone: A } = (() => {
10
- const m = /\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i, n = /^GMT|0(?=\d:00)|:00/g, e = M();
10
+ const m = /\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i, n = /^GMT|0(?=\d:00)|:00/g, e = G();
11
11
  return { getTimezoneTime: (t, i = Date.now()) => {
12
12
  e.tz = t;
13
- const { formatted: o } = e(i), [f = "", s = ""] = (o == null ? void 0 : o.match(m)) ?? R, u = l(o), z = `${f}${s && ` ${s}`}`, p = E(u).replace(n, "");
13
+ const { formatted: o } = e(i), [f = "", s = ""] = (o == null ? void 0 : o.match(m)) ?? S, u = l(o), z = `${f}${s && ` ${s}`}`, p = E(u).replace(n, "");
14
14
  return [z, p];
15
15
  }, getUsedTimezone: (t) => (e.tz = t, e.tz.current) };
16
- })(), N = ({ timezone: m, withClock: n = !1 } = S) => {
17
- const e = c(() => O(n), [n]), r = c(() => A(m), [m]), T = g(a), [t, i] = d(Date.now()), [o, f] = c(() => U(r, t), [t, r]);
16
+ })(), N = ({ timezone: m, withClock: n = !1 } = O) => {
17
+ const e = c(() => R(n), [n]), r = c(() => A(m), [m]), T = d(a), [t, i] = g(Date.now()), [o, f] = c(() => U(r, t), [t, r]);
18
18
  return c(() => {
19
- T.current(), T.current = e ? _.subscribe((s) => {
20
- G(s) || i(s.now);
19
+ T.current(), T.current = e ? M.subscribe((s) => {
20
+ _(s) || i(s.now);
21
21
  }) : a;
22
22
  }, [i, e]), { clockTime: o, GMTOffset: f, timestamp: t, timezone: r };
23
23
  };
@@ -1,7 +1,7 @@
1
- var s = /* @__PURE__ */ ((U) => (U.AU = "AU", U.EU = "EU", U.GB = "GB", U.US = "US", U))(s || {});
2
- const r = ["AU", "GB", "US"], e = ["EU"];
1
+ var s = /* @__PURE__ */ ((U) => (U.AU = "AU", U.EU = "EU", U.GB = "GB", U.US = "US", U.CA = "CA", U))(s || {});
2
+ const A = ["AU", "GB", "US", "CA"], C = ["EU"];
3
3
  export {
4
4
  s as SupportedLocation,
5
- r as supportedCountries,
6
- e as supportedRegions
5
+ A as supportedCountries,
6
+ C as supportedRegions
7
7
  };
@@ -1,32 +1,34 @@
1
- import { supportedCountries as n, supportedRegions as s, SupportedLocation as r } from "./constants.js";
1
+ import { supportedCountries as n, supportedRegions as s, SupportedLocation as o } from "./constants.js";
2
2
  const u = (e) => {
3
- var o;
4
- const t = (o = e == null ? void 0 : e.regions) == null ? void 0 : o.find((c) => c.type === "capital");
3
+ var r;
4
+ const t = (r = e == null ? void 0 : e.regions) == null ? void 0 : r.find((c) => c.type === "capital");
5
5
  return (t == null ? void 0 : t.value) ?? "";
6
6
  }, p = (e) => {
7
7
  switch (e) {
8
- case r.EU:
8
+ case o.EU:
9
9
  return "capital.legalSubtitleEU";
10
10
  default:
11
11
  return null;
12
12
  }
13
- }, i = (e) => {
13
+ }, a = (e) => {
14
14
  switch (e) {
15
- case r.AU:
15
+ case o.AU:
16
16
  return "capital.legalSubtitleAU";
17
- case r.GB:
17
+ case o.GB:
18
18
  return "capital.legalSubtitleGB";
19
- case r.US:
19
+ case o.US:
20
20
  return "capital.legalSubtitleUS";
21
+ case o.CA:
22
+ return "capital.legalSubtitleCA";
21
23
  default:
22
24
  return null;
23
25
  }
24
26
  }, d = (e) => {
25
- const t = u(e), o = e == null ? void 0 : e.countryCode;
26
- return i(o) ?? p(t);
27
+ const t = u(e), r = e == null ? void 0 : e.countryCode;
28
+ return a(r) ?? p(t);
27
29
  }, S = (e) => {
28
- const t = u(e), o = (e == null ? void 0 : e.countryCode) ?? "";
29
- return n.includes(o) || s.includes(t);
30
+ const t = u(e), r = (e == null ? void 0 : e.countryCode) ?? "";
31
+ return n.includes(r) || s.includes(t);
30
32
  };
31
33
  export {
32
34
  d as getCapitalHeaderSubtitleByLegalEntity,
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import { CARD_BASE_CLASS as h, CARD_FILLED as o, CARD_NO_OUTLINE as I, CARD_NO_PADDING as L, CARD_HEADER as p, CARD_HEADER_CONTENT as n, CARD_TITLE as d, CARD_SUBTITLE as f, CARD_BODY as t, CARD_BODY_WITH_TITLE as B, CARD_FOOTER as S } from "./constants.js";
2
+ import { CARD_HEADER as h, CARD_HEADER_CONTENT as o, CARD_TITLE as I, CARD_SUBTITLE as L, CARD_BODY as p, CARD_BODY_WITH_TITLE as n, CARD_FOOTER as d, CARD_BASE_CLASS as f, CARD_NO_PADDING as t, CARD_NO_OUTLINE as B, CARD_FILLED as S } from "./constants.js";
3
3
  import m from "classnames";
4
4
  /* empty css */
5
5
  const Y = ({
@@ -21,26 +21,26 @@ const Y = ({
21
21
  "section",
22
22
  {
23
23
  className: m(
24
- h,
25
- { [o]: N, [I]: E, [L]: i },
24
+ f,
25
+ { [S]: N, [B]: E, [t]: i },
26
26
  T
27
27
  ),
28
28
  "data-testid": l,
29
29
  children: [
30
- (D || a) && /* @__PURE__ */ s(O, { className: p, children: (D || a) && /* @__PURE__ */ s("div", { className: n, children: [
31
- a || /* @__PURE__ */ s("span", { className: d, children: D }),
32
- _ && /* @__PURE__ */ s("div", { className: f, children: _ })
30
+ (D || a) && /* @__PURE__ */ s(O, { className: h, children: (D || a) && /* @__PURE__ */ s("div", { className: o, children: [
31
+ a || /* @__PURE__ */ s("span", { className: I, children: D }),
32
+ _ && /* @__PURE__ */ s("div", { className: L, children: _ })
33
33
  ] }) }),
34
34
  /* @__PURE__ */ s(
35
35
  "div",
36
36
  {
37
- className: m(t, {
38
- [B]: D || a
37
+ className: m(p, {
38
+ [n]: D || a
39
39
  }),
40
40
  children: C
41
41
  }
42
42
  ),
43
- (A || c) && /* @__PURE__ */ s("footer", { className: S, children: c || A })
43
+ (A || c) && /* @__PURE__ */ s("footer", { className: d, children: c || A })
44
44
  ]
45
45
  }
46
46
  );
@@ -1,20 +1,20 @@
1
1
  import { jsx as i } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import { useDataGridContext as n } from "./hooks/useDataGridContext.js";
3
3
  import { useRef as m, useEffect as d } from "../../../external/preact/hooks/dist/hooks.module.js";
4
- import { isValidElement as f, cloneElement as u } from "../../../external/preact/dist/preact.module.js";
4
+ import { cloneElement as f, isValidElement as u } from "../../../external/preact/dist/preact.module.js";
5
5
  import c from "classnames";
6
6
  function C({
7
- children: t,
7
+ children: e,
8
8
  column: r,
9
9
  position: a,
10
10
  ...o
11
11
  }) {
12
- const { registerCells: l } = n(), e = m(null);
12
+ const { registerCells: l } = n(), t = m(null);
13
13
  return d(() => {
14
14
  var s;
15
- e.current && l({
15
+ t.current && l({
16
16
  column: r,
17
- width: (s = e.current) == null ? void 0 : s.getBoundingClientRect().width
17
+ width: (s = t.current) == null ? void 0 : s.getBoundingClientRect().width
18
18
  });
19
19
  }, [r, l]), /* @__PURE__ */ i(
20
20
  "div",
@@ -25,9 +25,9 @@ function C({
25
25
  "adyen-pe-data-grid__cell--center": a === "center"
26
26
  }),
27
27
  ...o,
28
- children: t && f(t) ? u(t, {
29
- ...t == null ? void 0 : t.props,
30
- ref: e,
28
+ children: e && u(e) ? f(e, {
29
+ ...e == null ? void 0 : e.props,
30
+ ref: t,
31
31
  style: { width: "min-content" }
32
32
  }) : null
33
33
  }
@@ -8,40 +8,40 @@ import S from "../../Button/Button.js";
8
8
  import { Fragment as I } from "../../../../external/preact/dist/preact.module.js";
9
9
  const L = (o) => !!o && typeof o == "object" && "value" in o, _ = (o) => !!o && typeof o == "object" && o.type === "icon", O = (o) => !!o && typeof o == "object" && o.type === "button", w = (o) => !!o && typeof o == "object" && o.type === "link", Y = ({
10
10
  columns: o,
11
- customCells: i,
11
+ customCells: t,
12
12
  item: l,
13
13
  rowIndex: j
14
- }) => /* @__PURE__ */ c(I, { children: o.map(({ key: r, position: f }) => {
15
- var u, g, m, d, b, h, N;
16
- if (i != null && i[r])
17
- return /* @__PURE__ */ c(y, { "aria-labelledby": String(r), column: r, position: f, children: /* @__PURE__ */ c("div", {
14
+ }) => /* @__PURE__ */ c(I, { children: o.map(({ key: r, position: s }) => {
15
+ var g, u, m, b, d, h, v;
16
+ if (t != null && t[r])
17
+ return /* @__PURE__ */ c(y, { "aria-labelledby": String(r), column: r, position: s, children: /* @__PURE__ */ c("div", {
18
18
  style: { width: "min-content" },
19
19
  // TODO create safeguard to remove "as any" assertion
20
- children: i[r]({
20
+ children: t[r]({
21
21
  key: r,
22
22
  value: l[r],
23
23
  item: l,
24
24
  rowIndex: j
25
25
  })
26
26
  }) }, r);
27
- const n = l[r], { value: e, type: s } = L(n) ? n : { value: n, type: "text" }, t = _(n) ? { url: (u = n == null ? void 0 : n.config) == null ? void 0 : u.src, alt: ((g = n == null ? void 0 : n.config) == null ? void 0 : g.alt) !== void 0 && ((m = n == null ? void 0 : n.config) == null ? void 0 : m.alt) !== null ? (d = n == null ? void 0 : n.config) == null ? void 0 : d.alt : n.value } : void 0, p = O(n) ? (x) => {
28
- var v;
29
- x.stopPropagation(), (v = n == null ? void 0 : n.config) == null || v.action();
27
+ const n = l[r], { value: i, type: f } = L(n) ? n : { value: n, type: "text" }, e = _(n) ? { url: (g = n == null ? void 0 : n.config) == null ? void 0 : g.src, alt: ((u = n == null ? void 0 : n.config) == null ? void 0 : u.alt) !== void 0 && ((m = n == null ? void 0 : n.config) == null ? void 0 : m.alt) !== null ? (b = n == null ? void 0 : n.config) == null ? void 0 : b.alt : n.value } : void 0, p = O(n) ? (x) => {
28
+ var N;
29
+ x.stopPropagation(), (N = n == null ? void 0 : n.config) == null || N.action();
30
30
  } : void 0;
31
- return /* @__PURE__ */ c(y, { "aria-labelledby": String(r), column: r, position: f, children: /* @__PURE__ */ c("div", { className: "adyen-pe-data-grid__cell-value", children: [
32
- _(n) && n.config && (t == null ? void 0 : t.url) && /* @__PURE__ */ c("div", { className: a("adyen-pe-data-grid__icon-cell", (b = n == null ? void 0 : n.config) == null ? void 0 : b.className), children: [
33
- /* @__PURE__ */ c(T, { ...t }),
34
- e.trim() && /* @__PURE__ */ c("span", { children: e })
31
+ return /* @__PURE__ */ c(y, { "aria-labelledby": String(r), column: r, position: s, children: /* @__PURE__ */ c("div", { className: "adyen-pe-data-grid__cell-value", children: [
32
+ _(n) && n.config && (e == null ? void 0 : e.url) && /* @__PURE__ */ c("div", { className: a("adyen-pe-data-grid__icon-cell", (d = n == null ? void 0 : n.config) == null ? void 0 : d.className), children: [
33
+ /* @__PURE__ */ c(T, { ...e }),
34
+ i.trim() && /* @__PURE__ */ c("span", { children: i })
35
35
  ] }),
36
- s === "text" && /* @__PURE__ */ c("span", { className: a((h = n == null ? void 0 : n.config) == null ? void 0 : h.className), children: e }),
37
- s === "button" && n.config && p && /* @__PURE__ */ c(S, { className: a((N = n.config) == null ? void 0 : N.className), onClick: p, variant: D.SECONDARY, children: e }),
36
+ f === "text" && /* @__PURE__ */ c("span", { className: a((h = n == null ? void 0 : n.config) == null ? void 0 : h.className), children: i }),
37
+ f === "button" && n.config && p && /* @__PURE__ */ c(S, { className: a((v = n.config) == null ? void 0 : v.className), onClick: p, variant: D.SECONDARY, children: i }),
38
38
  w(n) && n.config && /* @__PURE__ */ c(
39
39
  B,
40
40
  {
41
41
  classNames: n.config.className ? [n.config.className] : [],
42
42
  href: n.config.href,
43
43
  target: n.config.target,
44
- children: e
44
+ children: i
45
45
  }
46
46
  )
47
47
  ] }) }, r);
@@ -19,8 +19,8 @@ const X = {
19
19
  payout: "getPayout"
20
20
  }, l = (t) => !("data" in t);
21
21
  function dt(t) {
22
- var v;
23
- const S = y(() => l(t) ? null : t.data, [t]), c = y(() => l(t) ? t.id : null, [t]), s = W().endpoints[X[t.type]], { hideTitle: _, title: w } = V(t), { data: e, error: o, isFetching: T } = O(
22
+ var f;
23
+ const S = y(() => l(t) ? null : t.data, [t]), c = y(() => l(t) ? t.id : null, [t]), s = W().endpoints[X[t.type]], { hideTitle: _, title: w } = V(t), { data: e, error: o, isFetching: D } = O(
24
24
  y(
25
25
  () => ({
26
26
  fetchOptions: { enabled: !!c && !!s },
@@ -35,10 +35,10 @@ function dt(t) {
35
35
  }),
36
36
  [c, s, t]
37
37
  )
38
- ), F = t.type === "payout" ? t.id : e == null ? void 0 : e.balanceAccountId, P = t.type === "payout" ? t == null ? void 0 : t.balanceAccountDescription : t == null ? void 0 : t.balanceAccount, { balanceAccounts: i } = Y(F, !P), D = y(() => {
38
+ ), F = t.type === "payout" ? t.id : e == null ? void 0 : e.balanceAccountId, P = t.type === "payout" ? t == null ? void 0 : t.balanceAccountDescription : t == null ? void 0 : t.balanceAccount, { balanceAccounts: i } = Y(F, !P), v = y(() => {
39
39
  if (o)
40
40
  return q(o, "weCouldNotLoadYourTransactions", t.onContactSupport);
41
- }, [o, t.onContactSupport]), r = S ?? e, [E, k] = x(), f = L(async () => {
41
+ }, [o, t.onContactSupport]), r = S ?? e, [T, k] = x(), E = L(async () => {
42
42
  var u, d, A, I, g;
43
43
  if (e && (l(t) && t.type === "transaction" || t.type === "payout")) {
44
44
  const m = await ((A = (d = (u = t.dataCustomization) == null ? void 0 : u.details) == null ? void 0 : d.onDataRetrieve) == null ? void 0 : A.call(d, e));
@@ -48,10 +48,10 @@ function dt(t) {
48
48
  }
49
49
  }, [e, t]), h = l(t) && t.type === "transaction" || t.type === "payout" ? t.dataCustomization : void 0;
50
50
  return N(() => {
51
- f();
52
- }, [f]), /* @__PURE__ */ n("div", { className: "adyen-pe-overview-details", children: [
51
+ E();
52
+ }, [E]), /* @__PURE__ */ n("div", { className: "adyen-pe-overview-details", children: [
53
53
  !_ && /* @__PURE__ */ n("div", { className: "adyen-pe-overview-details--title", children: /* @__PURE__ */ n(M, { variant: R.TITLE, medium: !0, children: w }) }),
54
- o && D && /* @__PURE__ */ n("div", { className: "adyen-pe-overview-details--error-container", children: /* @__PURE__ */ n(z, { withImage: !0, ...D }) }),
54
+ o && v && /* @__PURE__ */ n("div", { className: "adyen-pe-overview-details--error-container", children: /* @__PURE__ */ n(z, { withImage: !0, ...v }) }),
55
55
  t.type === "transaction" && /* @__PURE__ */ n(
56
56
  U,
57
57
  {
@@ -59,9 +59,9 @@ function dt(t) {
59
59
  ...r || b,
60
60
  balanceAccount: (t == null ? void 0 : t.balanceAccount) || (i == null ? void 0 : i[0])
61
61
  } : void 0,
62
- error: !!(o && D),
63
- isFetching: T,
64
- extraFields: E,
62
+ error: !!(o && v),
63
+ isFetching: D,
64
+ extraFields: T,
65
65
  dataCustomization: h
66
66
  }
67
67
  ),
@@ -70,9 +70,9 @@ function dt(t) {
70
70
  {
71
71
  balanceAccountId: c,
72
72
  payout: r,
73
- balanceAccountDescription: (t == null ? void 0 : t.balanceAccountDescription) || ((v = i == null ? void 0 : i[0]) == null ? void 0 : v.description),
74
- isFetching: T,
75
- extraFields: E,
73
+ balanceAccountDescription: (t == null ? void 0 : t.balanceAccountDescription) || ((f = i == null ? void 0 : i[0]) == null ? void 0 : f.description),
74
+ isFetching: D,
75
+ extraFields: T,
76
76
  dataCustomization: h
77
77
  }
78
78
  )
@@ -1,18 +1,18 @@
1
1
  import { useModalContext as c } from "../Modal/Modal.js";
2
- import { useState as u, useMemo as i, useEffect as f } from "../../../external/preact/hooks/dist/hooks.module.js";
3
- import m from "../../../core/Context/useCoreContext.js";
4
- import { boolOrFalse as d } from "../../../utils/value/bool.js";
2
+ import { useState as u, useMemo as i, useEffect as d } from "../../../external/preact/hooks/dist/hooks.module.js";
3
+ import f from "../../../core/Context/useCoreContext.js";
4
+ import { boolOrFalse as m } from "../../../utils/value/bool.js";
5
5
  const T = {
6
6
  transaction: "transactionDetails",
7
7
  payout: "payoutDetails"
8
- }, C = ({ hideTitle: t, type: e }) => {
9
- const { i18n: o } = m(), { withinModal: s } = c(), [a, r] = u(!1), n = i(() => a || d(t), [a, t]), l = i(() => o.get(T[e]), [o, e]);
10
- return f(() => {
8
+ }, E = ({ hideTitle: t, type: e }) => {
9
+ const { i18n: o } = f(), { withinModal: s } = c(), [a, r] = u(!1), n = i(() => a || m(t), [a, t]), l = i(() => o.get(T[e]), [o, e]);
10
+ return d(() => {
11
11
  r(s);
12
12
  }, [s]), { hideTitle: n, title: l };
13
13
  };
14
14
  export {
15
15
  T as TITLES_BY_TYPE,
16
- C as default,
17
- C as useDataOverviewDetailsTitle
16
+ E as default,
17
+ E as useDataOverviewDetailsTitle
18
18
  };
@@ -11,17 +11,17 @@ const O = ({
11
11
  resetDetails: f,
12
12
  dataCustomization: u
13
13
  }) => {
14
- const { i18n: n } = s(), m = !!o;
14
+ const { i18n: m } = s(), n = !!o;
15
15
  return C(() => {
16
- m && h.closeAll();
17
- }, [m]), /* @__PURE__ */ r("div", { className: p, children: [
16
+ n && h.closeAll();
17
+ }, [n]), /* @__PURE__ */ r("div", { className: p, children: [
18
18
  i,
19
19
  o && /* @__PURE__ */ r(
20
20
  a,
21
21
  {
22
- title: o != null && o.title ? n.get(o.title) : void 0,
22
+ title: o != null && o.title ? m.get(o.title) : void 0,
23
23
  isOpen: !!o,
24
- "aria-label": n.get("payoutDetails"),
24
+ "aria-label": m.get("payoutDetails"),
25
25
  onClose: f,
26
26
  isDismissible: !0,
27
27
  headerWithBorder: !1,
@@ -1,14 +1,14 @@
1
1
  import { jsx as r } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import a from "../../Typography/Typography.js";
3
3
  import m from "../../../../core/Context/useCoreContext.js";
4
- import { TypographyElement as d, TypographyVariant as c } from "../../Typography/types.js";
4
+ import { TypographyVariant as d, TypographyElement as c } from "../../Typography/types.js";
5
5
  /* empty css */
6
6
  const h = "adyen-pe-data-overview-header", u = ({ baseClassName: e = h, children: t, hideTitle: p, titleKey: i, descriptionKey: o }) => {
7
7
  const { i18n: n } = m();
8
8
  return /* @__PURE__ */ r("header", { className: e, children: [
9
9
  /* @__PURE__ */ r("div", { className: `${e}__headings`, children: [
10
- !p && i && /* @__PURE__ */ r("div", { className: `${e}__title`, children: /* @__PURE__ */ r(a, { el: d.SPAN, variant: c.TITLE, medium: !0, children: n.get(i) }) }),
11
- o && /* @__PURE__ */ r("p", { className: `${e}__description`, children: /* @__PURE__ */ r(a, { el: d.SPAN, variant: c.BODY, children: n.get(o) }) })
10
+ !p && i && /* @__PURE__ */ r("div", { className: `${e}__title`, children: /* @__PURE__ */ r(a, { el: c.SPAN, variant: d.TITLE, medium: !0, children: n.get(i) }) }),
11
+ o && /* @__PURE__ */ r("p", { className: `${e}__description`, children: /* @__PURE__ */ r(a, { el: c.SPAN, variant: d.BODY, children: n.get(o) }) })
12
12
  ] }),
13
13
  t && /* @__PURE__ */ r("div", { className: `${e}__controls`, children: t })
14
14
  ] });
@@ -1,59 +1,59 @@
1
1
  import { useState as i, useRef as k, useMemo as c, useCallback as C } from "../../../../../external/preact/hooks/dist/hooks.module.js";
2
- import N from "../../../../../core/Context/useCoreContext.js";
3
- import R from "../../../Calendar/calendar/timerange/presets/lastNDays.js";
4
- import q from "../../../Calendar/calendar/timerange/presets/thisWeek.js";
5
- import v from "../../../Calendar/calendar/timerange/presets/lastWeek.js";
2
+ import I from "../../../../../core/Context/useCoreContext.js";
3
+ import N from "../../../Calendar/calendar/timerange/presets/yearToDate.js";
4
+ import q from "../../../Calendar/calendar/timerange/presets/lastMonth.js";
6
5
  import A from "../../../Calendar/calendar/timerange/presets/thisMonth.js";
7
- import E from "../../../Calendar/calendar/timerange/presets/lastMonth.js";
8
- import K from "../../../Calendar/calendar/timerange/presets/yearToDate.js";
6
+ import E from "../../../Calendar/calendar/timerange/presets/lastWeek.js";
7
+ import K from "../../../Calendar/calendar/timerange/presets/thisWeek.js";
8
+ import R from "../../../Calendar/calendar/timerange/presets/lastNDays.js";
9
9
  const X = () => Object.freeze({
10
10
  "rangePreset.last7Days": R(7),
11
11
  "rangePreset.last30Days": R(30),
12
- "rangePreset.thisWeek": q(),
13
- "rangePreset.lastWeek": v(),
12
+ "rangePreset.thisWeek": K(),
13
+ "rangePreset.lastWeek": E(),
14
14
  "rangePreset.thisMonth": A(),
15
- "rangePreset.lastMonth": E(),
16
- "rangePreset.yearToDate": K()
15
+ "rangePreset.lastMonth": q(),
16
+ "rangePreset.yearToDate": N()
17
17
  }), Y = ({
18
18
  now: a = Date.now(),
19
- options: s,
19
+ options: n,
20
20
  selectedOption: m,
21
21
  timezone: u
22
22
  }) => {
23
- const { i18n: f } = N(), [W, h] = i(), [j, d] = i(), [l, g] = i(), S = k(), y = k(), [t, D, n] = c(() => {
24
- const o = f.get("rangePreset.custom"), e = Object.keys(s), r = Object.freeze(e.map((O) => f.get(O)));
23
+ const { i18n: l } = I(), [W, h] = i(), [j, d] = i(), [f, g] = i(), S = k(), y = k(), [e, D, s] = c(() => {
24
+ const o = l.get("rangePreset.custom"), t = Object.keys(n), r = Object.freeze(t.map((O) => l.get(O)));
25
25
  return [o, (O, F = r) => {
26
- const z = F.findIndex((I) => I === O);
27
- return s[e[z]];
26
+ const v = F.findIndex((z) => z === O);
27
+ return n[t[v]];
28
28
  }, r];
29
- }, [f, s]), [P, T] = i(m === t), b = c(() => Object.freeze([...n, t]), [t, n]), M = c(
30
- () => P ? b : n,
31
- [P, n, b]
29
+ }, [l, n]), [P, T] = i(m === e), b = c(() => Object.freeze([...s, e]), [e, s]), M = c(
30
+ () => P ? b : s,
31
+ [P, s, b]
32
32
  ), p = C(
33
33
  (o) => {
34
- const e = D(o, n);
35
- e && (h(e.from), d(e.to), T(!1), g(o));
34
+ const t = D(o, s);
35
+ t && (h(t.from), d(t.to), T(!1), g(o));
36
36
  },
37
- [t, D, l, n]
37
+ [e, D, f, s]
38
38
  ), x = C(() => {
39
- h(void 0), d(void 0), T(!0), g(t);
40
- }, [t]);
39
+ h(void 0), d(void 0), T(!0), g(e);
40
+ }, [e]);
41
41
  return c(() => {
42
- m === t ? g(t) : p(m);
42
+ m === e ? g(e) : p(m);
43
43
  }, []), c(() => {
44
44
  var o;
45
45
  if (S.current !== a || y.current !== u) {
46
- const e = Object.values(s);
47
- e.forEach((r) => {
46
+ const t = Object.values(n);
47
+ t.forEach((r) => {
48
48
  r.now = a, r.timezone = u;
49
- }), S.current = a, y.current = (o = e[0]) == null ? void 0 : o.timezone, p(l);
49
+ }), S.current = a, y.current = (o = t[0]) == null ? void 0 : o.timezone, p(f);
50
50
  }
51
- }, [a, u, s]), {
51
+ }, [a, u, n]), {
52
52
  customSelection: x,
53
53
  from: W,
54
54
  onSelection: p,
55
55
  options: M,
56
- selectedOption: l,
56
+ selectedOption: f,
57
57
  to: j
58
58
  };
59
59
  };
@@ -9,8 +9,7 @@ import k from "classnames";
9
9
  import { Fragment as p } from "../../../external/preact/dist/preact.module.js";
10
10
  import g from "../Button/Button.js";
11
11
  const f = {
12
- md: 680,
13
- lg: 1024
12
+ md: 680
14
13
  }, K = ({
15
14
  title: x,
16
15
  message: s,
@@ -6,41 +6,41 @@ import w from "../../../core/Context/useCoreContext.js";
6
6
  import z from "../SVGIcons/ChevronUp.js";
7
7
  import U from "../SVGIcons/ChevronDown.js";
8
8
  /* empty css */
9
- import { CARD_HEIGHT_PROPERTY as y, BASE_CLASS as j, CONTAINER_CLASS as p, CONTAINER_BUTTON_CLASS as g, CONTAINER_FILLED_CLASS as C, CONTAINER_OVERLAY_ID as N, CONTENT_CLASS as A, CONTENT_EXPANDABLE_CLASS as D, CHEVRON_CLASS as k, CONTAINER_OVERLAY_CLASS as q, CONTAINER_HIDDEN_CLASS as G, CONTAINER_IN_FLOW_CLASS as M } from "./constants.js";
9
+ import { CARD_HEIGHT_PROPERTY as y, BASE_CLASS as j, CONTAINER_OVERLAY_ID as f, CONTENT_CLASS as C, CONTENT_EXPANDABLE_CLASS as g, CHEVRON_CLASS as D, CONTAINER_CLASS as N, CONTAINER_BUTTON_CLASS as k, CONTAINER_FILLED_CLASS as A, CONTAINER_OVERLAY_CLASS as q, CONTAINER_IN_FLOW_CLASS as G, CONTAINER_HIDDEN_CLASS as M } from "./constants.js";
10
10
  import { Fragment as X } from "../../../external/preact/dist/preact.module.js";
11
11
  import B from "../BaseButton/BaseButton.js";
12
12
  const ne = ({ renderHeader: c, children: O, filled: d, fullWidth: E, inFlow: S, ...l }) => {
13
- const { i18n: _ } = w(), [e, h] = x(!1), [R, v] = x(0), a = F(() => S === !0, [S]), o = I(() => h((s) => !s), [h]), u = i(null), L = i(null), f = i(!1), T = i(e), m = Y(
13
+ const { i18n: _ } = w(), [e, h] = x(!1), [v, R] = x(0), a = F(() => S === !0, [S]), o = I(() => h((s) => !s), [h]), u = i(null), L = i(null), m = i(!1), T = i(e), p = Y(
14
14
  void 0,
15
15
  I(() => {
16
- e && (o(), f.current = !0);
16
+ e && (o(), m.current = !0);
17
17
  }, [e, o])
18
18
  );
19
19
  return V(() => {
20
20
  const s = L.current;
21
- s && (a ? s.style.setProperty(y, `${R}px`) : e || s.style.removeProperty(y));
22
- }, [R, a, e]), b(() => {
23
- if (!a) return void v(0);
21
+ s && (a ? s.style.setProperty(y, `${v}px`) : e || s.style.removeProperty(y));
22
+ }, [v, a, e]), b(() => {
23
+ if (!a) return void R(0);
24
24
  const s = u.current;
25
25
  if (!s) return;
26
26
  const t = new ResizeObserver((H) => {
27
27
  for (const P of H)
28
- P.target === s && v(s.offsetHeight || 0);
28
+ P.target === s && R(s.offsetHeight || 0);
29
29
  });
30
30
  return t.observe(s), () => {
31
31
  t.unobserve(s), t.disconnect();
32
32
  };
33
33
  }, [a]), b(() => {
34
34
  var s, t;
35
- e ? (s = m.current) == null || s.focus() : (T.current !== e && !f.current && ((t = u.current) == null || t.focus()), f.current = !1), T.current = e;
36
- }, [e, m]), /* @__PURE__ */ r("div", { ref: L, className: j, children: O ? /* @__PURE__ */ r(X, { children: [
35
+ e ? (s = p.current) == null || s.focus() : (T.current !== e && !m.current && ((t = u.current) == null || t.focus()), m.current = !1), T.current = e;
36
+ }, [e, p]), /* @__PURE__ */ r("div", { ref: L, className: j, children: O ? /* @__PURE__ */ r(X, { children: [
37
37
  /* @__PURE__ */ r(
38
38
  B,
39
39
  {
40
- className: n(p, g, { [C]: d }),
40
+ className: n(N, k, { [A]: d }),
41
41
  disabled: e,
42
42
  fullWidth: E,
43
- "aria-controls": N,
43
+ "aria-controls": f,
44
44
  "aria-expanded": e,
45
45
  "aria-hidden": e,
46
46
  onClick: o,
@@ -49,40 +49,40 @@ const ne = ({ renderHeader: c, children: O, filled: d, fullWidth: E, inFlow: S,
49
49
  ...l,
50
50
  children: [
51
51
  /* @__PURE__ */ r("span", { className: "adyen-pe-visually-hidden", children: _.get("expandableCard.expand") }),
52
- /* @__PURE__ */ r("div", { className: n(A, D), children: c }),
53
- /* @__PURE__ */ r("div", { className: k, children: /* @__PURE__ */ r(U, { role: "presentation" }) })
52
+ /* @__PURE__ */ r("div", { className: n(C, g), children: c }),
53
+ /* @__PURE__ */ r("div", { className: D, children: /* @__PURE__ */ r(U, { role: "presentation" }) })
54
54
  ]
55
55
  }
56
56
  ),
57
57
  /* @__PURE__ */ r(
58
58
  B,
59
59
  {
60
- id: N,
61
- className: n(p, g, q, {
62
- [C]: d,
63
- [G]: !e,
64
- [M]: a
60
+ id: f,
61
+ className: n(N, k, q, {
62
+ [A]: d,
63
+ [M]: !e,
64
+ [G]: a
65
65
  }),
66
66
  disabled: !e,
67
67
  fullWidth: E,
68
- "aria-controls": N,
68
+ "aria-controls": f,
69
69
  "aria-expanded": e,
70
70
  "aria-hidden": !e,
71
71
  onClick: o,
72
- ref: m,
72
+ ref: p,
73
73
  "data-testid": "collapse-button",
74
74
  ...l,
75
75
  children: [
76
76
  /* @__PURE__ */ r("span", { className: "adyen-pe-visually-hidden", children: _.get("expandableCard.collapse") }),
77
- /* @__PURE__ */ r("div", { className: n(A, D), children: [
77
+ /* @__PURE__ */ r("div", { className: n(C, g), children: [
78
78
  c,
79
79
  /* @__PURE__ */ r("div", { children: O })
80
80
  ] }),
81
- /* @__PURE__ */ r("div", { className: k, children: /* @__PURE__ */ r(z, { role: "presentation" }) })
81
+ /* @__PURE__ */ r("div", { className: D, children: /* @__PURE__ */ r(z, { role: "presentation" }) })
82
82
  ]
83
83
  }
84
84
  )
85
- ] }) : /* @__PURE__ */ r("div", { className: n(p, { [C]: d }), ...l, children: /* @__PURE__ */ r("div", { className: A, children: c }) }) });
85
+ ] }) : /* @__PURE__ */ r("div", { className: n(N, { [A]: d }), ...l, children: /* @__PURE__ */ r("div", { className: C, children: c }) }) });
86
86
  };
87
87
  export {
88
88
  ne as default
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import d from "../../../Button/hooks/useButton.js";
3
- import { TypographyElement as T, TypographyVariant as y } from "../../../Typography/types.js";
3
+ import { TypographyVariant as T, TypographyElement as y } from "../../../Typography/types.js";
4
4
  import N from "../../../Typography/Typography.js";
5
5
  import { useMemo as s } from "../../../../../external/preact/hooks/dist/hooks.module.js";
6
6
  /* empty css */
@@ -10,7 +10,7 @@ import { parseBooleanProp as h } from "../../../../../utils/preact/props.js";
10
10
  const F = "adyen-pe-filter-button";
11
11
  function g(o, a) {
12
12
  const { className: t, classNameModifiers: i = [], children: m, disabled: r, onClick: n, ...l } = o, c = s(() => b("", t) || "", [t]), p = s(() => h(r), [r]), { classes: u, click: f } = d(c, i, F, p, o, n);
13
- return /* @__PURE__ */ e("button", { className: u, ref: a, onClick: f, ...l, children: /* @__PURE__ */ e(N, { el: T.DIV, variant: y.BODY, stronger: !0, children: m }) });
13
+ return /* @__PURE__ */ e("button", { className: u, ref: a, onClick: f, ...l, children: /* @__PURE__ */ e(N, { el: y.DIV, variant: T.BODY, stronger: !0, children: m }) });
14
14
  }
15
15
  const _ = B(g);
16
16
  export {