@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,57 +1,57 @@
1
- import { jsx as I } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import { RangeSelection as P } from "./RangeSelection.js";
3
- import { useState as u, useMemo as w, useCallback as T } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
- import { PopoverContainerSize as z } from "../../../Popover/types.js";
5
- import B from "../../../../../core/Context/useCoreContext.js";
6
- import { AMOUNT_MULTIPLIER as E } from "./constants.js";
7
- import D from "../BaseFilter/BaseFilter.js";
1
+ import { jsx as P } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
+ import { RangeSelection as w } from "./RangeSelection.js";
3
+ import { useState as T, useMemo as z, useCallback as E } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
+ import { PopoverContainerSize as B } from "../../../Popover/types.js";
5
+ import D from "../../../../../core/Context/useCoreContext.js";
6
+ import { AMOUNT_MULTIPLIER as L } from "./constants.js";
7
+ import F from "../BaseFilter/BaseFilter.js";
8
+ import { EMPTY_OBJECT as O } from "../../../../../utils/value/constants.js";
8
9
  import { isUndefined as f } from "../../../../../utils/value/is.js";
9
- import { EMPTY_OBJECT as F } from "../../../../../utils/value/constants.js";
10
- const d = ({ updateFilters: $, selectedCurrencies: t, availableCurrencies: m, ...x }) => {
11
- const { i18n: g } = B(), [y, L] = u(), [p, h] = u(), M = w(() => (t == null ? void 0 : t.length) === 1 || (m == null ? void 0 : m.length) === 1, [m == null ? void 0 : m.length, t == null ? void 0 : t.length]), S = T(
10
+ const G = ({ updateFilters: $, selectedCurrencies: t, availableCurrencies: m, ...y }) => {
11
+ const { i18n: g } = D(), [h, U] = T(), [p, x] = T(), M = z(() => (t == null ? void 0 : t.length) === 1 || (m == null ? void 0 : m.length) === 1, [m == null ? void 0 : m.length, t == null ? void 0 : t.length]), S = E(
12
12
  (n, o) => {
13
- const A = (t == null ? void 0 : t[0]) || (m == null ? void 0 : m[0]), V = o && A ? {
13
+ const A = (t == null ? void 0 : t[0]) || (m == null ? void 0 : m[0]), I = o && A ? {
14
14
  style: "currency",
15
15
  currency: A,
16
16
  currencyDisplay: "symbol"
17
17
  } : void 0;
18
- return n.toLocaleString(g.locale, V);
18
+ return n.toLocaleString(g.locale, I);
19
19
  },
20
20
  [m, g, t]
21
- ), U = T(
21
+ ), V = E(
22
22
  (n) => {
23
- const { minAmount: o, maxAmount: A } = n ?? F;
24
- L({ minAmount: o, maxAmount: A }), f(o) && f(A) && h(void 0), $({
25
- minAmount: f(o) ? void 0 : String(Math.round(o * E)),
26
- maxAmount: f(A) ? void 0 : String(Math.round(A * E))
23
+ const { minAmount: o, maxAmount: A } = n ?? O;
24
+ U({ minAmount: o, maxAmount: A }), f(o) && f(A) && x(void 0), $({
25
+ minAmount: f(o) ? void 0 : String(Math.round(o * L)),
26
+ maxAmount: f(A) ? void 0 : String(Math.round(A * L))
27
27
  });
28
28
  },
29
29
  [$]
30
30
  );
31
- if (y && (y.minAmount || y.maxAmount)) {
32
- const { minAmount: n, maxAmount: o } = y ?? {};
33
- !f(n) && !f(o) && n <= o ? h(
31
+ if (h && (h.minAmount || h.maxAmount)) {
32
+ const { minAmount: n, maxAmount: o } = h ?? {};
33
+ !f(n) && !f(o) && n <= o ? x(
34
34
  `${S(n, M)} ${g.get("to").toLowerCase()} ${S(o, M)}`
35
- ) : !f(n) && f(o) && n >= 0 ? h(`${g.get("from")} ${S(n, M)}`) : f(n) && !f(o) ? h(`${g.get("to")} ${S(o, M)}`) : h(void 0);
35
+ ) : !f(n) && f(o) && n >= 0 ? x(`${g.get("from")} ${S(n, M)}`) : f(n) && !f(o) ? x(`${g.get("to")} ${S(o, M)}`) : x(void 0);
36
36
  }
37
- return /* @__PURE__ */ I(
38
- D,
37
+ return /* @__PURE__ */ P(
38
+ F,
39
39
  {
40
- ...x,
40
+ ...y,
41
41
  updateFilters: $,
42
- minAmount: x.minAmount,
43
- maxAmount: x.maxAmount,
44
- onChange: U,
42
+ minAmount: y.minAmount,
43
+ maxAmount: y.maxAmount,
44
+ onChange: V,
45
45
  value: p,
46
- label: p || x.label,
46
+ label: p || y.label,
47
47
  type: "text",
48
- containerSize: z.MEDIUM,
48
+ containerSize: B.MEDIUM,
49
49
  selectedCurrencies: t,
50
50
  availableCurrencies: m,
51
- render: P
51
+ render: w
52
52
  }
53
53
  );
54
54
  };
55
55
  export {
56
- d as AmountFilter
56
+ G as AmountFilter
57
57
  };
@@ -1,71 +1,71 @@
1
- import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
- import p from "../../../FormFields/InputBase.js";
1
+ import { jsx as n } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
+ import g from "../../../FormFields/InputBase.js";
3
3
  /* empty css */
4
- import { useState as v, useCallback as x, useEffect as T, useMemo as h } from "../../../../../external/preact/hooks/dist/hooks.module.js";
5
- import N from "../../../../../core/Context/useCoreContext.js";
4
+ import { useState as p, useCallback as x, useEffect as T, useMemo as N } from "../../../../../external/preact/hooks/dist/hooks.module.js";
5
+ import h from "../../../../../core/Context/useCoreContext.js";
6
6
  import { AMOUNT_MULTIPLIER as b } from "./constants.js";
7
7
  import { isUndefined as m } from "../../../../../utils/value/is.js";
8
8
  import { CommitAction as F } from "../../../../../hooks/useCommitAction/types.js";
9
9
  const S = ({
10
10
  onChange: i,
11
- editAction: l,
12
- onValueUpdated: o,
11
+ editAction: o,
12
+ onValueUpdated: u,
13
13
  selectedCurrencies: y,
14
14
  availableCurrencies: I,
15
15
  value: M,
16
- ...u
16
+ ...l
17
17
  }) => {
18
- const { i18n: r } = N(), [n, c] = v(
19
- m(u.minAmount) ? void 0 : parseFloat(u.minAmount) / b
20
- ), [t, d] = v(
21
- m(u.maxAmount) ? void 0 : parseFloat(u.maxAmount) / b
22
- ), f = x(() => {
23
- i({ minAmount: n, maxAmount: t });
24
- }, [t, n, i]), A = x(() => {
18
+ const { i18n: r } = h(), [t, c] = p(
19
+ m(l.minAmount) ? void 0 : parseFloat(l.minAmount) / b
20
+ ), [a, d] = p(
21
+ m(l.maxAmount) ? void 0 : parseFloat(l.maxAmount) / b
22
+ ), v = x(() => {
23
+ i({ minAmount: t, maxAmount: a });
24
+ }, [a, t, i]), f = x(() => {
25
25
  i({ minAmount: void 0, maxAmount: void 0 }), d(void 0), c(void 0);
26
26
  }, [i]);
27
27
  T(() => {
28
- l === F.APPLY && f(), l === F.CLEAR && A();
29
- }, [f, A, l]);
30
- const g = h(() => ({ minAmount: Number(n), maxAmount: Number(t) }), [t, n]);
28
+ o === F.APPLY && v(), o === F.CLEAR && f();
29
+ }, [v, f, o]);
30
+ const A = N(() => ({ minAmount: Number(t), maxAmount: Number(a) }), [a, t]);
31
31
  return T(() => {
32
- const { maxAmount: e, minAmount: s } = g;
33
- m(e) && m(s) || s > e ? o(null) : o(`${s}-${e}`);
34
- }, [g, o]), /* @__PURE__ */ a("div", { className: "adyen-pe-range-selection-filter", children: [
35
- /* @__PURE__ */ a("div", { className: "adyen-pe-range-selection-filter__input", children: [
36
- /* @__PURE__ */ a("label", { htmlFor: "minValue", children: `${r.get("from")}:` }),
37
- /* @__PURE__ */ a(
38
- p,
32
+ const { maxAmount: e, minAmount: s } = A;
33
+ m(e) && m(s) || s > e ? u(null) : u(`${s}-${e}`);
34
+ }, [A, u]), /* @__PURE__ */ n("div", { className: "adyen-pe-range-selection-filter", children: [
35
+ /* @__PURE__ */ n("div", { className: "adyen-pe-range-selection-filter__input", children: [
36
+ /* @__PURE__ */ n("label", { htmlFor: "minValue", children: `${r.get("from")}:` }),
37
+ /* @__PURE__ */ n(
38
+ g,
39
39
  {
40
40
  "data-testid": "minValueFilter",
41
41
  lang: r.locale,
42
42
  name: "minValue",
43
43
  type: "number",
44
- value: n,
44
+ value: t,
45
45
  onInput: (e) => {
46
46
  e.currentTarget && c(e.currentTarget.value !== "" ? e.currentTarget.value : void 0);
47
47
  },
48
48
  min: 0,
49
- isInvalid: n ? n < 0 : !1,
49
+ isInvalid: t ? t < 0 : !1,
50
50
  errorMessage: r.get("noNegativeNumbersAllowed")
51
51
  }
52
52
  )
53
53
  ] }),
54
- /* @__PURE__ */ a("div", { className: "adyen-pe-range-selection-filter__input", children: [
55
- /* @__PURE__ */ a("label", { htmlFor: "maxValue", children: `${r.get("to")}:` }),
56
- /* @__PURE__ */ a(
57
- p,
54
+ /* @__PURE__ */ n("div", { className: "adyen-pe-range-selection-filter__input", children: [
55
+ /* @__PURE__ */ n("label", { htmlFor: "maxValue", children: `${r.get("to")}:` }),
56
+ /* @__PURE__ */ n(
57
+ g,
58
58
  {
59
59
  "data-testid": "maxValueFilter",
60
60
  lang: r.locale,
61
61
  name: "maxValue",
62
62
  type: "number",
63
- value: t,
63
+ value: a,
64
64
  onInput: (e) => {
65
65
  e.currentTarget && d(e.currentTarget.value !== "" ? e.currentTarget.value : void 0);
66
66
  },
67
- min: n,
68
- isInvalid: !m(t) && !m(n) && t < n,
67
+ min: t,
68
+ isInvalid: !m(a) && !m(t) && a < t,
69
69
  errorMessage: r.get("toValueShouldBeGreaterThanTheFromValue")
70
70
  }
71
71
  )
@@ -2,8 +2,8 @@ import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRun
2
2
  import { useResponsiveContainer as g, containerQueries as C } from "../../../../../hooks/useResponsiveContainer.js";
3
3
  import $ from "../../components/FilterButton/FilterButton.js";
4
4
  import q from "../../../Popover/Popover.js";
5
- import { PopoverContainerVariant as z, PopoverContainerPosition as H } from "../../../Popover/types.js";
6
- import { TypographyElement as B, TypographyVariant as O } from "../../../Typography/types.js";
5
+ import { PopoverContainerPosition as z, PopoverContainerVariant as H } from "../../../Popover/types.js";
6
+ import { TypographyVariant as B, TypographyElement as O } from "../../../Typography/types.js";
7
7
  import S from "../../../Typography/Typography.js";
8
8
  import L from "../../../../../hooks/element/useUniqueIdentifier.js";
9
9
  import { memo as j } from "../../../../../external/preact/compat/dist/compat.module.js";
@@ -35,27 +35,27 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
35
35
  return (e) => /* @__PURE__ */ a(r, { ...e });
36
36
  })(), te = ({ render: r, ...e }) => {
37
37
  var N;
38
- const f = g(C.down.xs), [i, u] = c(!1), [s, l] = c(!1), n = E(() => e.isValueEmpty ?? Z, [e.isValueEmpty]), [m, t] = c(n(e.value)), [y, h] = c(!1), [T, v] = c(!1), [I, M] = c(n(e.value)), b = L(), w = E(() => r ?? ee, [r]), k = D(
38
+ const f = g(C.down.xs), [i, u] = c(!1), [s, l] = c(!1), n = E(() => e.isValueEmpty ?? Z, [e.isValueEmpty]), [m, t] = c(n(e.value)), [y, v] = c(!1), [T, h] = c(!1), [I, M] = c(n(e.value)), b = L(), w = E(() => r ?? ee, [r]), k = D(
39
39
  (o) => {
40
40
  const d = n(o ?? void 0);
41
- t(d), M(W(o)), v(y ? o !== e.value : !d);
41
+ t(d), M(W(o)), h(y ? o !== e.value : !d);
42
42
  },
43
- [n, t, M, v, y, e.value]
43
+ [n, t, M, h, y, e.value]
44
44
  ), { commitAction: x, commitActionButtons: R, committing: V, resetCommitAction: P } = J({
45
45
  applyDisabled: I || !T,
46
46
  resetDisabled: m
47
47
  }), [p, F] = E(() => {
48
48
  const o = (d) => () => {
49
- d !== i && (d && (P(), v(!1), h(!1)), u(d), l(d));
49
+ d !== i && (d && (P(), h(!1), v(!1)), u(d), l(d));
50
50
  };
51
51
  return [o(!1), o(!0)];
52
- }, [u, i, P, l, h, v]);
52
+ }, [u, i, P, l, v, h]);
53
53
  A(() => {
54
54
  if (s) {
55
55
  const o = n(e.value);
56
- l(!1), t(o), h(!o);
56
+ l(!1), t(o), v(!o);
57
57
  }
58
- }, [e.value, s, n, l, t, h]), A(() => {
58
+ }, [e.value, s, n, l, t, v]), A(() => {
59
59
  V && p(), t(m);
60
60
  }, [V, p, t, m]);
61
61
  const U = g(C.only.sm), Y = g(C.only.md);
@@ -77,8 +77,8 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
77
77
  /* @__PURE__ */ a(
78
78
  S,
79
79
  {
80
- el: B.SPAN,
81
- variant: O.BODY,
80
+ el: O.SPAN,
81
+ variant: B.BODY,
82
82
  stronger: !0,
83
83
  className: "adyen-pe-filter-button__label",
84
84
  children: e.label
@@ -87,8 +87,8 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
87
87
  !!e.appliedFilterAmount && /* @__PURE__ */ a("div", { className: "adyen-pe-filter-button__counter-wrapper", children: /* @__PURE__ */ a(
88
88
  S,
89
89
  {
90
- el: B.SPAN,
91
- variant: O.BODY,
90
+ el: O.SPAN,
91
+ variant: B.BODY,
92
92
  stronger: !0,
93
93
  className: "adyen-pe-filter-button__counter",
94
94
  children: e.appliedFilterAmount
@@ -113,7 +113,7 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
113
113
  {
114
114
  actions: R,
115
115
  title: (N = e.title) == null ? void 0 : N.trim(),
116
- variant: z.POPOVER,
116
+ variant: H.POPOVER,
117
117
  modifiers: ["filter"],
118
118
  open: i,
119
119
  "aria-label": `${e.label}`,
@@ -123,7 +123,7 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
123
123
  divider: !0,
124
124
  targetElement: b,
125
125
  disableFocusTrap: !1,
126
- position: H.BOTTOM,
126
+ position: z.BOTTOM,
127
127
  containerSize: e.containerSize,
128
128
  showOverlay: f,
129
129
  fitPosition: U || Y,
@@ -5,7 +5,7 @@ import { useMemo as C, useState as O, useCallback as P } from "../../../../../ex
5
5
  import _ from "../../../../../core/Context/useCoreContext.js";
6
6
  import { DateRangeFilterParam as T } from "./types.js";
7
7
  import { EMPTY_OBJECT as A } from "../../../../../utils/value/constants.js";
8
- const L = ({
8
+ const M = ({
9
9
  timezone: l,
10
10
  canResetFilters: s,
11
11
  defaultParams: r,
@@ -60,5 +60,5 @@ const L = ({
60
60
  );
61
61
  };
62
62
  export {
63
- L as default
63
+ M as default
64
64
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as S } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import B from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
3
- import { useState as C, useCallback as M, useMemo as T, useEffect as E, useRef as L } from "../../../../../external/preact/hooks/dist/hooks.module.js";
3
+ import { useState as T, useCallback as M, useMemo as h, useEffect as E, useRef as L } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
4
  import { BASE_LOCALE as x } from "../../../../../core/Localization/datetime/restamper/constants.js";
5
5
  import k from "../../../../../core/Context/useCoreContext.js";
6
6
  import { DateRangeFilterParam as b } from "./types.js";
@@ -39,20 +39,20 @@ const _ = {
39
39
  sinceDate: m,
40
40
  untilDate: y
41
41
  }) => {
42
- const { i18n: O } = k(), { fullDateFormat: d } = B(D), [g, R] = C(f), u = T(() => [new Date(n), new Date(o)], [n, o]), a = L(), P = M(
43
- (l, h) => {
44
- F(v(O, d, i(l), i(h)));
42
+ const { i18n: O } = k(), { fullDateFormat: d } = B(D), [g, R] = T(f), u = h(() => [new Date(n), new Date(o)], [n, o]), a = L(), P = M(
43
+ (l, C) => {
44
+ F(v(O, d, i(l), i(C)));
45
45
  },
46
46
  [O, d, F]
47
47
  );
48
48
  return E(() => {
49
- var l, h, A;
49
+ var l, C, A;
50
50
  switch (e) {
51
51
  case p.APPLY:
52
52
  r({
53
53
  selectedPresetOption: g,
54
54
  [b.FROM]: i((l = a.current) == null ? void 0 : l.from),
55
- [b.TO]: i((h = a.current) == null ? void 0 : h.to)
55
+ [b.TO]: i((C = a.current) == null ? void 0 : C.to)
56
56
  });
57
57
  break;
58
58
  case p.CLEAR:
@@ -84,7 +84,7 @@ function U({
84
84
  selectedPresetOption: o,
85
85
  ...t
86
86
  }) {
87
- const { i18n: r } = k(), { fullDateFormat: F } = B(t.timezone), [w, f] = C(), [c, D] = C(), [m, y] = C(), O = M(
87
+ const { i18n: r } = k(), { fullDateFormat: F } = B(t.timezone), [w, f] = T(), [c, D] = T(), [m, y] = T(), O = M(
88
88
  (u) => {
89
89
  const { from: a, to: P, selectedPresetOption: l } = u ?? V;
90
90
  try {
@@ -94,7 +94,7 @@ function U({
94
94
  }
95
95
  },
96
96
  [w, c, m, t]
97
- ), d = T(() => r.get("rangePreset.custom"), [r]), g = T(() => {
97
+ ), d = h(() => r.get("rangePreset.custom"), [r]), g = h(() => {
98
98
  const u = { ..._, timeZone: t.timezone };
99
99
  let a = new Intl.DateTimeFormat(x, u);
100
100
  try {
@@ -104,7 +104,7 @@ function U({
104
104
  return a;
105
105
  }, [r, t.timezone]);
106
106
  E(() => f(o), [o]), E(() => D(i(e || Date.now())), [e]), E(() => y(i(n || Date.now())), [n]);
107
- const R = T(() => o === d && c && m ? $(g, new Date(c), new Date(m)) : o ?? t.label, [d, g, c, m, o, t.label]);
107
+ const R = h(() => o === d && c && m ? $(g, new Date(c), new Date(m)) : o ?? t.label, [d, g, c, m, o, t.label]);
108
108
  return /* @__PURE__ */ S(
109
109
  z,
110
110
  {
@@ -7,7 +7,7 @@ import { useCallback as r } from "../../../external/preact/hooks/dist/hooks.modu
7
7
  import { Fragment as w } from "../../../external/preact/dist/preact.module.js";
8
8
  import { hasOwnProperty as P } from "../../../utils/struct/property.js";
9
9
  function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t, onFocusHandler: s, errorMessage: f, ...p }, v) {
10
- const { autoCorrect: A, classNameModifiers: n, isInvalid: m, isValid: C, readonly: I = !1, spellCheck: O, type: y, uniqueId: o, isCollatingErrors: $, disabled: g } = p;
10
+ const { autoCorrect: A, classNameModifiers: m, isInvalid: n, isValid: C, readonly: I = !1, spellCheck: O, type: y, uniqueId: o, isCollatingErrors: $, disabled: g } = p;
11
11
  P(p, "onChange") && console.error("Error: Form fields that rely on InputBase may not have an onChange property");
12
12
  const N = r(
13
13
  (a) => {
@@ -34,10 +34,10 @@ function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t,
34
34
  [`adyen-pe-input--${y}`],
35
35
  p.className,
36
36
  {
37
- "adyen-pe-input--invalid": m,
37
+ "adyen-pe-input--invalid": n,
38
38
  "adyen-pe-input--valid": C
39
39
  },
40
- n == null ? void 0 : n.map((a) => `adyen-pe-input--${a}`)
40
+ m == null ? void 0 : m.map((a) => `adyen-pe-input--${a}`)
41
41
  ), { classNameModifiers: V, uniqueId: j, isInvalid: D, isValid: F, isCollatingErrors: S, ..._ } = p;
42
42
  return /* @__PURE__ */ c(w, { children: [
43
43
  /* @__PURE__ */ c(
@@ -49,7 +49,7 @@ function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t,
49
49
  className: E,
50
50
  readOnly: I,
51
51
  "aria-describedby": $ ? void 0 : `${o}${u}`,
52
- "aria-invalid": m,
52
+ "aria-invalid": n,
53
53
  onInput: N,
54
54
  onBlurCapture: b,
55
55
  onFocus: x,
@@ -58,7 +58,7 @@ function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t,
58
58
  ref: v
59
59
  }
60
60
  ),
61
- m && f && /* @__PURE__ */ c("span", { className: "adyen-pe-input__invalid-value", id: `${o}${u}`, children: f })
61
+ n && f && /* @__PURE__ */ c("span", { className: "adyen-pe-input__invalid-value", id: `${o}${u}`, children: f })
62
62
  ] });
63
63
  }
64
64
  h.defaultProps = {
@@ -11,9 +11,9 @@ import { DROPDOWN_BASE_CLASS as K, DROPDOWN_MULTI_SELECT_CLASS as Ee } from "./c
11
11
  import Re from "../../../../hooks/useCommitAction/useCommitAction.js";
12
12
  import { CommitAction as U } from "../../../../hooks/useCommitAction/types.js";
13
13
  import { uuid as Se } from "../../../../utils/random/uuid.js";
14
- import { boolOrFalse as he } from "../../../../utils/value/bool.js";
15
14
  import { EMPTY_ARRAY as Y } from "../../../../utils/value/constants.js";
16
- import { noop as De } from "../../../../utils/common.js";
15
+ import { boolOrFalse as De } from "../../../../utils/value/bool.js";
16
+ import { noop as he } from "../../../../utils/common.js";
17
17
  const $e = ({
18
18
  className: O,
19
19
  classNameModifiers: P = Y,
@@ -22,13 +22,13 @@ const $e = ({
22
22
  filterable: u = !1,
23
23
  multiSelect: m = !1,
24
24
  readonly: j = !1,
25
- onChange: F = De,
25
+ onChange: F = he,
26
26
  selected: H,
27
27
  name: _,
28
28
  isInvalid: X,
29
29
  isValid: q,
30
30
  placeholder: z,
31
- uniqueId: h,
31
+ uniqueId: D,
32
32
  renderListItem: G,
33
33
  isCollatingErrors: J,
34
34
  setToTargetWidth: Q,
@@ -36,12 +36,12 @@ const $e = ({
36
36
  showOverlay: Z = !1,
37
37
  fitPosition: ee
38
38
  }) => {
39
- const { resetSelection: f, select: I, selection: n } = ge({ items: g, multiSelect: m, selected: H }), [o, i] = w(!1), [D, d] = w(""), E = a(null), p = a(null), k = a(null), B = a(`select-${Se()}`), [te, v] = w(0), x = a(), R = a(!0), C = a(!1), L = a(n), y = a(n), re = l(() => {
39
+ const { resetSelection: f, select: I, selection: n } = ge({ items: g, multiSelect: m, selected: H }), [o, i] = w(!1), [h, d] = w(""), E = a(null), p = a(null), k = a(null), v = a(`select-${Se()}`), [te, B] = w(0), x = a(), R = a(!0), C = a(!1), L = a(n), y = a(n), re = l(() => {
40
40
  d(""), i(!1), o && (f(L.current), R.current = !0);
41
41
  }, [f, i, d, o]), se = de(
42
42
  () => fe([
43
43
  K,
44
- { [Ee]: he(m) },
44
+ { [Ee]: De(m) },
45
45
  ...P.map((e) => `${K}--${e}`),
46
46
  O
47
47
  ]),
@@ -81,8 +81,8 @@ const $e = ({
81
81
  b(() => {
82
82
  y.current !== n && (y.current = n, (!m || C.current) && (S(), c())), C.current = !1;
83
83
  }, [c, S, m, n]), b(() => {
84
- W && (v(n.length), c());
85
- }, [W, c, v, n.length]);
84
+ W && (B(n.length), c());
85
+ }, [W, c, B, n.length]);
86
86
  const oe = l(
87
87
  (e) => {
88
88
  switch (e.code) {
@@ -94,7 +94,7 @@ const $e = ({
94
94
  case s.SPACE:
95
95
  if (u && o) {
96
96
  if (e.key === s.ENTER)
97
- if (D) A(e);
97
+ if (h) A(e);
98
98
  else break;
99
99
  return;
100
100
  }
@@ -107,7 +107,7 @@ const $e = ({
107
107
  }
108
108
  e.preventDefault(), i(!0);
109
109
  },
110
- [c, u, A, o, i, D]
110
+ [c, u, A, o, i, h]
111
111
  );
112
112
  b(() => {
113
113
  o && (cancelAnimationFrame(x.current), x.current = requestAnimationFrame(() => {
@@ -191,7 +191,7 @@ const $e = ({
191
191
  /* @__PURE__ */ T(
192
192
  Ae,
193
193
  {
194
- id: h ?? void 0,
194
+ id: D ?? void 0,
195
195
  appliedFilterNumber: te,
196
196
  active: n,
197
197
  filterInputRef: E,
@@ -203,12 +203,12 @@ const $e = ({
203
203
  multiSelect: m,
204
204
  placeholder: z,
205
205
  readonly: j,
206
- selectListId: B.current,
206
+ selectListId: v.current,
207
207
  showList: o,
208
208
  toggleButtonRef: k,
209
209
  toggleList: ie,
210
210
  withoutCollapseIndicator: V,
211
- ariaDescribedBy: !J && h ? `${h}${pe}` : ""
211
+ ariaDescribedBy: !J && D ? `${D}${pe}` : ""
212
212
  }
213
213
  ),
214
214
  /* @__PURE__ */ T(
@@ -223,13 +223,13 @@ const $e = ({
223
223
  multiSelect: m,
224
224
  onKeyDown: ce,
225
225
  onSelect: A,
226
- selectListId: B.current,
226
+ selectListId: v.current,
227
227
  ref: p,
228
228
  toggleButtonRef: k,
229
229
  renderListItem: G,
230
230
  showList: o,
231
231
  showOverlay: Z,
232
- textFilter: D,
232
+ textFilter: h,
233
233
  fitPosition: ee
234
234
  }
235
235
  )
@@ -1,88 +1,88 @@
1
1
  import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import D from "classnames";
3
- import { useMemo as s } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
- import f from "../../../../../core/Context/useCoreContext.js";
5
- import { ButtonVariant as u } from "../../../Button/types.js";
6
- import C from "../../../Typography/Typography.js";
7
- import L from "../../../SVGIcons/ChevronDown.js";
8
- import { TypographyElement as B, TypographyVariant as p } from "../../../Typography/types.js";
9
- import { DROPDOWN_BUTTON_CLASS as R, DROPDOWN_BUTTON_ACTIVE_CLASS as h, DROPDOWN_BUTTON_HAS_SELECTION_CLASS as y, DROPDOWN_BUTTON_READONLY_CLASS as A, DROPDOWN_BUTTON_INVALID_CLASS as E, DROPDOWN_BUTTON_VALID_CLASS as P, DROPDOWN_BUTTON_ICON_CLASS as U, DROPDOWN_BUTTON_TEXT_CLASS as g, DROPDOWN_BUTTON_MULTI_SELECT_COUNTER_CLASS as x, DROPDOWN_BUTTON_COLLAPSE_INDICATOR_CLASS as I, DROPDOWN_BUTTON_CLASSNAME as W } from "../constants.js";
3
+ import { useMemo as O } from "../../../../../external/preact/hooks/dist/hooks.module.js";
4
+ import C from "../../../../../core/Context/useCoreContext.js";
5
+ import { ButtonVariant as f } from "../../../Button/types.js";
6
+ import L from "../../../Typography/Typography.js";
7
+ import u from "../../../SVGIcons/ChevronDown.js";
8
+ import { TypographyVariant as B, TypographyElement as p } from "../../../Typography/types.js";
9
+ import { DROPDOWN_BUTTON_ICON_CLASS as R, DROPDOWN_BUTTON_TEXT_CLASS as h, DROPDOWN_BUTTON_MULTI_SELECT_COUNTER_CLASS as y, DROPDOWN_BUTTON_COLLAPSE_INDICATOR_CLASS as A, DROPDOWN_BUTTON_CLASS as E, DROPDOWN_BUTTON_VALID_CLASS as P, DROPDOWN_BUTTON_INVALID_CLASS as U, DROPDOWN_BUTTON_READONLY_CLASS as g, DROPDOWN_BUTTON_HAS_SELECTION_CLASS as x, DROPDOWN_BUTTON_ACTIVE_CLASS as I, DROPDOWN_BUTTON_CLASSNAME as W } from "../constants.js";
10
10
  import { Fragment as b } from "../../../../../external/preact/dist/preact.module.js";
11
- import w from "../../../Img/Img.js";
12
- import V from "../../../Button/Button.js";
13
- import { boolOrFalse as F } from "../../../../../utils/value/bool.js";
14
- const M = ({
11
+ import v from "../../../Img/Img.js";
12
+ import w from "../../../Button/Button.js";
13
+ import { boolOrFalse as V } from "../../../../../utils/value/bool.js";
14
+ const F = ({
15
15
  active: e,
16
- disabled: d,
17
- className: i,
18
- filterable: n,
16
+ disabled: m,
17
+ className: o,
18
+ filterable: i,
19
19
  toggleButtonRef: l,
20
- ...o
20
+ ...n
21
21
  }) => {
22
- const r = s(() => n ? D(W, i) : i, [i, n]);
23
- return n ? /* @__PURE__ */ a("div", { ...o, className: r, ref: l }) : /* @__PURE__ */ a(
24
- V,
22
+ const r = O(() => i ? D(W, o) : o, [o, i]);
23
+ return i ? /* @__PURE__ */ a("div", { ...n, className: r, ref: l }) : /* @__PURE__ */ a(
24
+ w,
25
25
  {
26
- ...o,
26
+ ...n,
27
27
  className: r,
28
- disabled: d,
29
- variant: u.SECONDARY,
28
+ disabled: m,
29
+ variant: f.SECONDARY,
30
30
  ref: l
31
31
  }
32
32
  );
33
33
  }, $ = (e) => {
34
34
  var T, c;
35
- const { i18n: d } = f(), { active: i, filterable: n, multiSelect: l, placeholder: o, readonly: r, showList: m, withoutCollapseIndicator: S } = e, O = s(() => (o == null ? void 0 : o.trim()) || d.get("select.filter.placeholder"), [d, o]), t = s(() => F(l) ? void 0 : i[0], [i, l]), N = s(() => {
35
+ const { i18n: m } = C(), { active: o, filterable: i, multiSelect: l, placeholder: n, readonly: r, showList: s, withoutCollapseIndicator: S } = e, N = O(() => (n == null ? void 0 : n.trim()) || m.get("select.filter.placeholder"), [m, n]), t = O(() => V(l) ? void 0 : o[0], [o, l]), d = O(() => {
36
36
  var _;
37
- return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) || O;
38
- }, [t, O]);
37
+ return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) || N;
38
+ }, [t, N]);
39
39
  return /* @__PURE__ */ a(
40
- M,
40
+ F,
41
41
  {
42
- active: i,
42
+ active: o,
43
43
  disabled: r,
44
44
  "aria-disabled": r,
45
- "aria-expanded": m,
45
+ "aria-expanded": s,
46
46
  "aria-haspopup": "listbox",
47
- className: D(R, {
48
- [h]: m,
49
- [y]: !!i.length,
50
- [A]: r,
51
- [E]: e.isInvalid,
47
+ className: D(E, {
48
+ [I]: s,
49
+ [x]: !!o.length,
50
+ [g]: r,
51
+ [U]: e.isInvalid,
52
52
  [P]: e.isValid
53
53
  }),
54
- filterable: n,
54
+ filterable: i,
55
55
  onClick: r ? void 0 : e.toggleList,
56
56
  onKeyDown: r ? void 0 : e.onButtonKeyDown,
57
- role: n ? "button" : void 0,
57
+ role: i ? "button" : void 0,
58
58
  tabIndex: 0,
59
- title: N,
59
+ title: d,
60
60
  toggleButtonRef: e.toggleButtonRef,
61
- type: n ? void 0 : "button",
61
+ type: i ? void 0 : "button",
62
62
  "aria-describedby": e.ariaDescribedBy,
63
63
  id: e.id ?? "",
64
64
  children: [
65
- m && n ? /* @__PURE__ */ a(
65
+ s && i ? /* @__PURE__ */ a(
66
66
  "input",
67
67
  {
68
68
  "aria-autocomplete": "list",
69
69
  "aria-controls": e.selectListId,
70
- "aria-expanded": m,
70
+ "aria-expanded": s,
71
71
  "aria-owns": e.selectListId,
72
72
  autoComplete: "off",
73
73
  className: "adyen-pe-filter-input",
74
74
  onInput: e.onInput,
75
- placeholder: O,
75
+ placeholder: N,
76
76
  ref: e.filterInputRef,
77
77
  role: "combobox",
78
78
  type: "text"
79
79
  }
80
80
  ) : /* @__PURE__ */ a(b, { children: [
81
- (t == null ? void 0 : t.icon) && /* @__PURE__ */ a(w, { className: U, src: t.icon, alt: ((T = t == null ? void 0 : t.name) == null ? void 0 : T.trim()) ?? "" }),
82
- /* @__PURE__ */ a("span", { className: g, children: ((c = t == null ? void 0 : t.selectedOptionName) == null ? void 0 : c.trim()) || N }),
83
- l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className: x, children: /* @__PURE__ */ a(C, { el: B.SPAN, variant: p.BODY, stronger: !0, children: e.appliedFilterNumber }) })
81
+ (t == null ? void 0 : t.icon) && /* @__PURE__ */ a(v, { className: R, src: t.icon, alt: ((T = t == null ? void 0 : t.name) == null ? void 0 : T.trim()) ?? "" }),
82
+ /* @__PURE__ */ a("span", { className: h, children: ((c = t == null ? void 0 : t.selectedOptionName) == null ? void 0 : c.trim()) || d }),
83
+ l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className: y, children: /* @__PURE__ */ a(L, { el: p.SPAN, variant: B.BODY, stronger: !0, children: e.appliedFilterNumber }) })
84
84
  ] }),
85
- !S && /* @__PURE__ */ a("span", { className: I, children: /* @__PURE__ */ a(L, { role: "presentation" }) })
85
+ !S && /* @__PURE__ */ a("span", { className: A, children: /* @__PURE__ */ a(u, { role: "presentation" }) })
86
86
  ]
87
87
  }
88
88
  );