@adyen/adyen-platform-experience-web 0.1.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 (918) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +69 -0
  3. package/dist/ModalContent-83a84ba5.js +2 -0
  4. package/dist/ModalContent-83a84ba5.js.map +1 -0
  5. package/dist/cjs/index.js +2 -0
  6. package/dist/cjs/index.js.map +1 -0
  7. package/dist/es/components/external/BaseElement.js +104 -0
  8. package/dist/es/components/external/EventEmitter.js +25 -0
  9. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +19 -0
  10. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +70 -0
  11. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +17 -0
  12. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +33 -0
  13. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +4 -0
  14. package/dist/es/components/external/Transactions/TransactionsOverviewElement.js +28 -0
  15. package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.js +9 -0
  16. package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.scss.js +4 -0
  17. package/dist/es/components/external/Transactions/components/AmountSkeleton/constants.js +6 -0
  18. package/dist/es/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.js +23 -0
  19. package/dist/es/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.js +17 -0
  20. package/dist/es/components/external/Transactions/components/BalanceItem/BalanceItem.js +35 -0
  21. package/dist/es/components/external/Transactions/components/Balances/Balances.js +50 -0
  22. package/dist/es/components/external/Transactions/components/Balances/constants.js +4 -0
  23. package/dist/es/components/external/Transactions/components/ModalContent.js +12 -0
  24. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.js +25 -0
  25. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +24 -0
  26. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +21 -0
  27. package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +9 -0
  28. package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.js +42 -0
  29. package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.scss.js +4 -0
  30. package/dist/es/components/external/Transactions/components/SummaryItem/constants.js +7 -0
  31. package/dist/es/components/external/Transactions/components/TransactionList.js +127 -0
  32. package/dist/es/components/external/Transactions/components/TransactionList.scss.js +4 -0
  33. package/dist/es/components/external/Transactions/components/TransactionListError/TransactionListError.js +20 -0
  34. package/dist/es/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.js +48 -0
  35. package/dist/es/components/external/Transactions/components/TransactionTotals/TransactionTotals.js +60 -0
  36. package/dist/es/components/external/Transactions/components/TransactionTotals/constants.js +4 -0
  37. package/dist/es/components/external/Transactions/components/TransactionsOverview.js +148 -0
  38. package/dist/es/components/external/Transactions/components/TransactionsOverviewContainer.js +36 -0
  39. package/dist/es/components/external/Transactions/components/TransactionsOverviewDateFilter.js +61 -0
  40. package/dist/es/components/external/Transactions/components/utils.js +29 -0
  41. package/dist/es/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.js +22 -0
  42. package/dist/es/components/external/Transactions/hooks/useMaxWidths.js +15 -0
  43. package/dist/es/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.js +29 -0
  44. package/dist/es/components/external/Transactions/types.js +4 -0
  45. package/dist/es/components/external/UIElement.js +86 -0
  46. package/dist/es/components/internal/BaseButton/BaseButton.js +16 -0
  47. package/dist/es/components/internal/BaseButton/BaseButton.scss.js +4 -0
  48. package/dist/es/components/internal/BaseButton/constants.js +4 -0
  49. package/dist/es/components/internal/BaseList/BaseList.js +7 -0
  50. package/dist/es/components/internal/BaseList/BaseList.scss.js +4 -0
  51. package/dist/es/components/internal/BaseList/constants.js +4 -0
  52. package/dist/es/components/internal/Button/Button.js +47 -0
  53. package/dist/es/components/internal/Button/Button.scss.js +4 -0
  54. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +29 -0
  55. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +4 -0
  56. package/dist/es/components/internal/Button/ButtonActions/types.js +7 -0
  57. package/dist/es/components/internal/Button/constants.js +11 -0
  58. package/dist/es/components/internal/Button/hooks/useButton.js +17 -0
  59. package/dist/es/components/internal/Button/types.js +4 -0
  60. package/dist/es/components/internal/Calendar/Calendar.js +26 -0
  61. package/dist/es/components/internal/Calendar/Calendar.scss.js +4 -0
  62. package/dist/es/components/internal/Calendar/calendar/constants.js +37 -0
  63. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +433 -0
  64. package/dist/es/components/internal/Calendar/calendar/facade/index.js +40 -0
  65. package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +46 -0
  66. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +33 -0
  67. package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +18 -0
  68. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +178 -0
  69. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +316 -0
  70. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +49 -0
  71. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +5 -0
  72. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +22 -0
  73. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +5 -0
  74. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +18 -0
  75. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +29 -0
  76. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +5 -0
  77. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +5 -0
  78. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +12 -0
  79. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +60 -0
  80. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +63 -0
  81. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +23 -0
  82. package/dist/es/components/internal/Calendar/calendar/types.js +15 -0
  83. package/dist/es/components/internal/Calendar/calendar/utils.js +19 -0
  84. package/dist/es/components/internal/Calendar/clock/clock.js +27 -0
  85. package/dist/es/components/internal/Calendar/clock/today.js +46 -0
  86. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +9 -0
  87. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +38 -0
  88. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +50 -0
  89. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +44 -0
  90. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +64 -0
  91. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +111 -0
  92. package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +51 -0
  93. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +26 -0
  94. package/dist/es/components/internal/Calendar/types.js +4 -0
  95. package/dist/es/components/internal/DataGrid/DataGrid.js +86 -0
  96. package/dist/es/components/internal/DataGrid/DataGrid.scss.js +4 -0
  97. package/dist/es/components/internal/DataGrid/DataGridCell.js +7 -0
  98. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +33 -0
  99. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +22 -0
  100. package/dist/es/components/internal/DataGrid/components/TableBody.js +11 -0
  101. package/dist/es/components/internal/DataGrid/components/TableCells.js +19 -0
  102. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +78 -0
  103. package/dist/es/components/internal/DataGrid/types.js +4 -0
  104. package/dist/es/components/internal/DatePicker/DatePicker.js +54 -0
  105. package/dist/es/components/internal/DatePicker/DatePicker.scss.js +4 -0
  106. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +22 -0
  107. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +63 -0
  108. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +50 -0
  109. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +4 -0
  110. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +70 -0
  111. package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +4 -0
  112. package/dist/es/components/internal/ExpandableCard/constants.js +13 -0
  113. package/dist/es/components/internal/FilterBar/FilterBar.js +15 -0
  114. package/dist/es/components/internal/FilterBar/FilterBar.scss.js +4 -0
  115. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +18 -0
  116. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +4 -0
  117. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +39 -0
  118. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +4 -0
  119. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +80 -0
  120. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +129 -0
  121. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.scss.js +4 -0
  122. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +109 -0
  123. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +4 -0
  124. package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +4 -0
  125. package/dist/es/components/internal/FormFields/FormFields.scss.js +4 -0
  126. package/dist/es/components/internal/FormFields/InputBase.js +73 -0
  127. package/dist/es/components/internal/FormFields/InputText.js +9 -0
  128. package/dist/es/components/internal/FormFields/Select/Select.js +236 -0
  129. package/dist/es/components/internal/FormFields/Select/Select.scss.js +4 -0
  130. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +91 -0
  131. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +56 -0
  132. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +47 -0
  133. package/dist/es/components/internal/FormFields/Select/constants.js +29 -0
  134. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +34 -0
  135. package/dist/es/components/internal/Image/Image.js +14 -0
  136. package/dist/es/components/internal/Img/Img.js +23 -0
  137. package/dist/es/components/internal/Img/Img.scss.js +4 -0
  138. package/dist/es/components/internal/Modal/Modal.js +98 -0
  139. package/dist/es/components/internal/Modal/Modal.scss.js +4 -0
  140. package/dist/es/components/internal/Pagination/Pagination.js +61 -0
  141. package/dist/es/components/internal/Pagination/Pagination.scss.js +4 -0
  142. package/dist/es/components/internal/Pagination/constants.js +6 -0
  143. package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +9 -0
  144. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +22 -0
  145. package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +17 -0
  146. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +67 -0
  147. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +80 -0
  148. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +15 -0
  149. package/dist/es/components/internal/Pagination/hooks/usePagination.js +45 -0
  150. package/dist/es/components/internal/Pagination/types.js +5 -0
  151. package/dist/es/components/internal/Pagination/utils.js +8 -0
  152. package/dist/es/components/internal/Popover/Popover.js +112 -0
  153. package/dist/es/components/internal/Popover/Popover.scss.js +4 -0
  154. package/dist/es/components/internal/Popover/PopoverContainer.scss.js +4 -0
  155. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +36 -0
  156. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +4 -0
  157. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +11 -0
  158. package/dist/es/components/internal/Popover/constants.js +9 -0
  159. package/dist/es/components/internal/Popover/types.js +6 -0
  160. package/dist/es/components/internal/Popover/utils/utils.js +32 -0
  161. package/dist/es/components/internal/SVGIcons/CheckedBox.js +15 -0
  162. package/dist/es/components/internal/SVGIcons/Checkmark.js +17 -0
  163. package/dist/es/components/internal/SVGIcons/ChevronDown.js +17 -0
  164. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +15 -0
  165. package/dist/es/components/internal/SVGIcons/ChevronRight.js +15 -0
  166. package/dist/es/components/internal/SVGIcons/ChevronUp.js +17 -0
  167. package/dist/es/components/internal/SVGIcons/UncheckedBox.js +9 -0
  168. package/dist/es/components/internal/Spinner/Spinner.js +6 -0
  169. package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
  170. package/dist/es/components/internal/Tag/Tag.js +21 -0
  171. package/dist/es/components/internal/Tag/Tag.scss.js +4 -0
  172. package/dist/es/components/internal/Tag/types.js +4 -0
  173. package/dist/es/components/internal/Typography/Typography.js +35 -0
  174. package/dist/es/components/internal/Typography/Typography.scss.js +4 -0
  175. package/dist/es/components/internal/Typography/constants.js +4 -0
  176. package/dist/es/components/internal/Typography/types.js +6 -0
  177. package/dist/es/components/shared.scss.js +4 -0
  178. package/dist/es/components/types.js +4 -0
  179. package/dist/es/components/utils/transactionResourceErrorCodes.js +36 -0
  180. package/dist/es/core/Auth/AuthContext.js +9 -0
  181. package/dist/es/core/Auth/AuthProvider.js +7 -0
  182. package/dist/es/core/Auth/useAuthContext.js +6 -0
  183. package/dist/es/core/Context/CoreContext.js +10 -0
  184. package/dist/es/core/Context/CoreProvider.js +22 -0
  185. package/dist/es/core/Context/useCoreContext.js +6 -0
  186. package/dist/es/core/Errors/AdyenFPError.js +15 -0
  187. package/dist/es/core/Errors/constants.js +4 -0
  188. package/dist/es/core/Localization/Localization.js +147 -0
  189. package/dist/es/core/Localization/amount/amount-util.js +26 -0
  190. package/dist/es/core/Localization/constants/currency-codes.js +169 -0
  191. package/dist/es/core/Localization/constants/currency-decimals.js +33 -0
  192. package/dist/es/core/Localization/constants/locale.js +7 -0
  193. package/dist/es/core/Localization/constants/localization.js +34 -0
  194. package/dist/es/core/Localization/datetime/restamper/constants.js +27 -0
  195. package/dist/es/core/Localization/datetime/restamper/restamper.js +42 -0
  196. package/dist/es/core/Localization/datetime/restamper/utils.js +30 -0
  197. package/dist/es/core/Localization/localization-utils.js +33 -0
  198. package/dist/es/core/Localization/translations/ar.json.js +4 -0
  199. package/dist/es/core/Localization/translations/cs-CZ.json.js +4 -0
  200. package/dist/es/core/Localization/translations/da-DK.json.js +4 -0
  201. package/dist/es/core/Localization/translations/de-DE.json.js +4 -0
  202. package/dist/es/core/Localization/translations/el-GR.json.js +4 -0
  203. package/dist/es/core/Localization/translations/en-US.json.js +358 -0
  204. package/dist/es/core/Localization/translations/es-ES.json.js +255 -0
  205. package/dist/es/core/Localization/translations/fi-FI.json.js +4 -0
  206. package/dist/es/core/Localization/translations/fr-FR.json.js +4 -0
  207. package/dist/es/core/Localization/translations/hr-HR.json.js +4 -0
  208. package/dist/es/core/Localization/translations/hu-HU.json.js +4 -0
  209. package/dist/es/core/Localization/translations/index.js +82 -0
  210. package/dist/es/core/Localization/translations/it-IT.json.js +4 -0
  211. package/dist/es/core/Localization/translations/ja-JP.json.js +4 -0
  212. package/dist/es/core/Localization/translations/ko-KR.json.js +4 -0
  213. package/dist/es/core/Localization/translations/nl-NL.json.js +4 -0
  214. package/dist/es/core/Localization/translations/no-NO.json.js +4 -0
  215. package/dist/es/core/Localization/translations/pl-PL.json.js +4 -0
  216. package/dist/es/core/Localization/translations/pt-BR.json.js +4 -0
  217. package/dist/es/core/Localization/translations/pt-PT.json.js +4 -0
  218. package/dist/es/core/Localization/translations/ro-RO.json.js +4 -0
  219. package/dist/es/core/Localization/translations/ru-RU.json.js +4 -0
  220. package/dist/es/core/Localization/translations/sk-SK.json.js +4 -0
  221. package/dist/es/core/Localization/translations/sl-SI.json.js +4 -0
  222. package/dist/es/core/Localization/translations/sv-SE.json.js +4 -0
  223. package/dist/es/core/Localization/translations/zh-CN.json.js +4 -0
  224. package/dist/es/core/Localization/translations/zh-TW.json.js +4 -0
  225. package/dist/es/core/Localization/utils.js +59 -0
  226. package/dist/es/core/Services/requests/http.js +32 -0
  227. package/dist/es/core/Services/requests/utils.js +65 -0
  228. package/dist/es/core/Services/sessions/constants.js +4 -0
  229. package/dist/es/core/Services/sessions/setup-session.js +20 -0
  230. package/dist/es/core/Session/Session.js +59 -0
  231. package/dist/es/core/Session/utils.js +11 -0
  232. package/dist/es/core/config.js +4 -0
  233. package/dist/es/core/core.js +93 -0
  234. package/dist/es/core/utils.js +13 -0
  235. package/dist/es/external/preact/compat/dist/compat.module.js +254 -0
  236. package/dist/es/external/preact/hooks/dist/hooks.module.js +161 -0
  237. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +19 -0
  238. package/dist/es/hooks/element/useClickOutside.js +25 -0
  239. package/dist/es/hooks/element/useDetachedRender.js +19 -0
  240. package/dist/es/hooks/element/useFocusCursor.js +25 -0
  241. package/dist/es/hooks/element/useFocusTrap.js +63 -0
  242. package/dist/es/hooks/element/usePopoverPositioner.js +71 -0
  243. package/dist/es/hooks/element/useUniqueIdentifier.js +18 -0
  244. package/dist/es/hooks/useBooleanState/useBooleanState.js +8 -0
  245. package/dist/es/hooks/useCommitAction/types.js +4 -0
  246. package/dist/es/hooks/useCommitAction/useCommitAction.js +35 -0
  247. package/dist/es/hooks/useFetch/useFetch.js +42 -0
  248. package/dist/es/hooks/useImageUrl/useImageUrl.js +28 -0
  249. package/dist/es/hooks/useModalDetails/types.js +6 -0
  250. package/dist/es/hooks/useModalDetails/useModalDetails.js +29 -0
  251. package/dist/es/hooks/useMounted/useMounted.js +10 -0
  252. package/dist/es/hooks/useReactiveState/useReactiveState.js +35 -0
  253. package/dist/es/hooks/useReflex/constants.js +4 -0
  254. package/dist/es/hooks/useReflex/core/reflex.js +66 -0
  255. package/dist/es/hooks/useReflex/core/registry.js +65 -0
  256. package/dist/es/hooks/useReflex/core/utils.js +23 -0
  257. package/dist/es/hooks/useReflex/errors.js +11 -0
  258. package/dist/es/hooks/useReflex/hooks/useReflex.js +9 -0
  259. package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +27 -0
  260. package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +27 -0
  261. package/dist/es/images/no-data-female.svg.js +4 -0
  262. package/dist/es/images/no-results.svg.js +4 -0
  263. package/dist/es/index.js +44 -0
  264. package/dist/es/style/index.scss.js +4 -0
  265. package/dist/es/utils/Storage.js +31 -0
  266. package/dist/es/utils/class-name-utils.js +7 -0
  267. package/dist/es/utils/common/constants.js +8 -0
  268. package/dist/es/utils/common/index.js +34 -0
  269. package/dist/es/utils/fixedForwardRef.js +5 -0
  270. package/dist/es/utils/get-image.js +16 -0
  271. package/dist/es/utils/idGenerator.js +5 -0
  272. package/dist/es/utils/memoComparator/memoComparator.js +23 -0
  273. package/dist/es/utils/tabbable.js +100 -0
  274. package/dist/es/utils/uuid.js +9 -0
  275. package/dist/es/utils/validator-utils.js +5 -0
  276. package/dist/es/utils/watchable/constants.js +4 -0
  277. package/dist/es/utils/watchable/core/Watchable.js +62 -0
  278. package/dist/es/utils/watchable/core/helpers.js +26 -0
  279. package/dist/es/utils/watchable/core/syncEffect.js +22 -0
  280. package/dist/es/utils/watchable/index.js +20 -0
  281. package/dist/index-ff45d757.js +12 -0
  282. package/dist/index-ff45d757.js.map +1 -0
  283. package/dist/style.css +1 -0
  284. package/dist/types/components/external/BaseElement.d.ts +70 -0
  285. package/dist/types/components/external/BaseElement.d.ts.map +1 -0
  286. package/dist/types/components/external/EventEmitter.d.ts +10 -0
  287. package/dist/types/components/external/EventEmitter.d.ts.map +1 -0
  288. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +10 -0
  289. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -0
  290. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +6 -0
  291. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -0
  292. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +6 -0
  293. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -0
  294. package/dist/types/components/external/TransactionDetails/components/TransactionDetails.d.ts +5 -0
  295. package/dist/types/components/external/TransactionDetails/components/TransactionDetails.d.ts.map +1 -0
  296. package/dist/types/components/external/TransactionDetails/index.d.ts +3 -0
  297. package/dist/types/components/external/TransactionDetails/index.d.ts.map +1 -0
  298. package/dist/types/components/external/TransactionDetails/types.d.ts +14 -0
  299. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -0
  300. package/dist/types/components/external/Transactions/TransactionsOverviewElement.d.ts +10 -0
  301. package/dist/types/components/external/Transactions/TransactionsOverviewElement.d.ts.map +1 -0
  302. package/dist/types/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.d.ts +6 -0
  303. package/dist/types/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -0
  304. package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts +4 -0
  305. package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts.map +1 -0
  306. package/dist/types/components/external/Transactions/components/AmountSkeleton/types.d.ts +6 -0
  307. package/dist/types/components/external/Transactions/components/AmountSkeleton/types.d.ts.map +1 -0
  308. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.d.ts +4 -0
  309. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -0
  310. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/index.d.ts +3 -0
  311. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/index.d.ts.map +1 -0
  312. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +15 -0
  313. package/dist/types/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -0
  314. package/dist/types/components/external/Transactions/components/BalanceItem/BalanceItem.d.ts +3 -0
  315. package/dist/types/components/external/Transactions/components/BalanceItem/BalanceItem.d.ts.map +1 -0
  316. package/dist/types/components/external/Transactions/components/BalanceItem/types.d.ts +11 -0
  317. package/dist/types/components/external/Transactions/components/BalanceItem/types.d.ts.map +1 -0
  318. package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts +11 -0
  319. package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts.map +1 -0
  320. package/dist/types/components/external/Transactions/components/Balances/constants.d.ts +2 -0
  321. package/dist/types/components/external/Transactions/components/Balances/constants.d.ts.map +1 -0
  322. package/dist/types/components/external/Transactions/components/ModalContent.d.ts +4 -0
  323. package/dist/types/components/external/Transactions/components/ModalContent.d.ts.map +1 -0
  324. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +9 -0
  325. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -0
  326. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/index.d.ts +4 -0
  327. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/index.d.ts.map +1 -0
  328. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +11 -0
  329. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -0
  330. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts +5 -0
  331. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts.map +1 -0
  332. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +11 -0
  333. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -0
  334. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +15 -0
  335. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -0
  336. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +5 -0
  337. package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -0
  338. package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts +4 -0
  339. package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts.map +1 -0
  340. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts +5 -0
  341. package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts.map +1 -0
  342. package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts +20 -0
  343. package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts.map +1 -0
  344. package/dist/types/components/external/Transactions/components/TransactionList.d.ts +6 -0
  345. package/dist/types/components/external/Transactions/components/TransactionList.d.ts.map +1 -0
  346. package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts +7 -0
  347. package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts.map +1 -0
  348. package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts +3 -0
  349. package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -0
  350. package/dist/types/components/external/Transactions/components/TransactionTotalItem/types.d.ts +10 -0
  351. package/dist/types/components/external/Transactions/components/TransactionTotalItem/types.d.ts.map +1 -0
  352. package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts +9 -0
  353. package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts.map +1 -0
  354. package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts +2 -0
  355. package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts.map +1 -0
  356. package/dist/types/components/external/Transactions/components/TransactionsOverview.d.ts +8 -0
  357. package/dist/types/components/external/Transactions/components/TransactionsOverview.d.ts.map +1 -0
  358. package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts +6 -0
  359. package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts.map +1 -0
  360. package/dist/types/components/external/Transactions/components/TransactionsOverviewDateFilter.d.ts +10 -0
  361. package/dist/types/components/external/Transactions/components/TransactionsOverviewDateFilter.d.ts.map +1 -0
  362. package/dist/types/components/external/Transactions/components/utils.d.ts +24 -0
  363. package/dist/types/components/external/Transactions/components/utils.d.ts.map +1 -0
  364. package/dist/types/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +33 -0
  365. package/dist/types/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -0
  366. package/dist/types/components/external/Transactions/hooks/useMaxWidths.d.ts +2 -0
  367. package/dist/types/components/external/Transactions/hooks/useMaxWidths.d.ts.map +1 -0
  368. package/dist/types/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +21 -0
  369. package/dist/types/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -0
  370. package/dist/types/components/external/Transactions/index.d.ts +3 -0
  371. package/dist/types/components/external/Transactions/index.d.ts.map +1 -0
  372. package/dist/types/components/external/Transactions/types.d.ts +53 -0
  373. package/dist/types/components/external/Transactions/types.d.ts.map +1 -0
  374. package/dist/types/components/external/UIElement.d.ts +51 -0
  375. package/dist/types/components/external/UIElement.d.ts.map +1 -0
  376. package/dist/types/components/external/index.d.ts +3 -0
  377. package/dist/types/components/external/index.d.ts.map +1 -0
  378. package/dist/types/components/index.d.ts +4 -0
  379. package/dist/types/components/index.d.ts.map +1 -0
  380. package/dist/types/components/internal/BaseButton/BaseButton.d.ts +8 -0
  381. package/dist/types/components/internal/BaseButton/BaseButton.d.ts.map +1 -0
  382. package/dist/types/components/internal/BaseButton/constants.d.ts +2 -0
  383. package/dist/types/components/internal/BaseButton/constants.d.ts.map +1 -0
  384. package/dist/types/components/internal/BaseButton/index.d.ts +2 -0
  385. package/dist/types/components/internal/BaseButton/index.d.ts.map +1 -0
  386. package/dist/types/components/internal/BaseButton/types.d.ts +5 -0
  387. package/dist/types/components/internal/BaseButton/types.d.ts.map +1 -0
  388. package/dist/types/components/internal/BaseList/BaseList.d.ts +5 -0
  389. package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -0
  390. package/dist/types/components/internal/BaseList/constants.d.ts +2 -0
  391. package/dist/types/components/internal/BaseList/constants.d.ts.map +1 -0
  392. package/dist/types/components/internal/BaseList/types.d.ts +3 -0
  393. package/dist/types/components/internal/BaseList/types.d.ts.map +1 -0
  394. package/dist/types/components/internal/Button/Button.d.ts +8 -0
  395. package/dist/types/components/internal/Button/Button.d.ts.map +1 -0
  396. package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts +10 -0
  397. package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -0
  398. package/dist/types/components/internal/Button/ButtonActions/types.d.ts +27 -0
  399. package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -0
  400. package/dist/types/components/internal/Button/constants.d.ts +9 -0
  401. package/dist/types/components/internal/Button/constants.d.ts.map +1 -0
  402. package/dist/types/components/internal/Button/hooks/useButton.d.ts +7 -0
  403. package/dist/types/components/internal/Button/hooks/useButton.d.ts.map +1 -0
  404. package/dist/types/components/internal/Button/index.d.ts +2 -0
  405. package/dist/types/components/internal/Button/index.d.ts.map +1 -0
  406. package/dist/types/components/internal/Button/types.d.ts +17 -0
  407. package/dist/types/components/internal/Button/types.d.ts.map +1 -0
  408. package/dist/types/components/internal/Calendar/Calendar.d.ts +7 -0
  409. package/dist/types/components/internal/Calendar/Calendar.d.ts.map +1 -0
  410. package/dist/types/components/internal/Calendar/calendar/constants.d.ts +36 -0
  411. package/dist/types/components/internal/Calendar/calendar/constants.d.ts.map +1 -0
  412. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts +8 -0
  413. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -0
  414. package/dist/types/components/internal/Calendar/calendar/facade/index.d.ts +4 -0
  415. package/dist/types/components/internal/Calendar/calendar/facade/index.d.ts.map +1 -0
  416. package/dist/types/components/internal/Calendar/calendar/index.d.ts +2 -0
  417. package/dist/types/components/internal/Calendar/calendar/index.d.ts.map +1 -0
  418. package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts +4 -0
  419. package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -0
  420. package/dist/types/components/internal/Calendar/calendar/shared/indexed/types.d.ts +10 -0
  421. package/dist/types/components/internal/Calendar/calendar/shared/indexed/types.d.ts.map +1 -0
  422. package/dist/types/components/internal/Calendar/calendar/timeframe/common/flags.d.ts +4 -0
  423. package/dist/types/components/internal/Calendar/calendar/timeframe/common/flags.d.ts.map +1 -0
  424. package/dist/types/components/internal/Calendar/calendar/timeframe/common/utils.d.ts +5 -0
  425. package/dist/types/components/internal/Calendar/calendar/timeframe/common/utils.d.ts.map +1 -0
  426. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +55 -0
  427. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -0
  428. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +80 -0
  429. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -0
  430. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +49 -0
  431. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -0
  432. package/dist/types/components/internal/Calendar/calendar/timeframe/index.d.ts +4 -0
  433. package/dist/types/components/internal/Calendar/calendar/timeframe/index.d.ts.map +1 -0
  434. package/dist/types/components/internal/Calendar/calendar/timerange/factory.d.ts +4 -0
  435. package/dist/types/components/internal/Calendar/calendar/timerange/factory.d.ts.map +1 -0
  436. package/dist/types/components/internal/Calendar/calendar/timerange/index.d.ts +3 -0
  437. package/dist/types/components/internal/Calendar/calendar/timerange/index.d.ts.map +1 -0
  438. package/dist/types/components/internal/Calendar/calendar/timerange/presets/index.d.ts +7 -0
  439. package/dist/types/components/internal/Calendar/calendar/timerange/presets/index.d.ts.map +1 -0
  440. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastMonth.d.ts +3 -0
  441. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastMonth.d.ts.map +1 -0
  442. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts +8 -0
  443. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -0
  444. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastWeek.d.ts +5 -0
  445. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastWeek.d.ts.map +1 -0
  446. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts +5 -0
  447. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -0
  448. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts +8 -0
  449. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -0
  450. package/dist/types/components/internal/Calendar/calendar/timerange/presets/thisMonth.d.ts +3 -0
  451. package/dist/types/components/internal/Calendar/calendar/timerange/presets/thisMonth.d.ts.map +1 -0
  452. package/dist/types/components/internal/Calendar/calendar/timerange/presets/thisWeek.d.ts +5 -0
  453. package/dist/types/components/internal/Calendar/calendar/timerange/presets/thisWeek.d.ts.map +1 -0
  454. package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts +3 -0
  455. package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -0
  456. package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts +34 -0
  457. package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts.map +1 -0
  458. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +25 -0
  459. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -0
  460. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +12 -0
  461. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -0
  462. package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts +7 -0
  463. package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -0
  464. package/dist/types/components/internal/Calendar/calendar/types.d.ts +164 -0
  465. package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -0
  466. package/dist/types/components/internal/Calendar/calendar/utils.d.ts +6 -0
  467. package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -0
  468. package/dist/types/components/internal/Calendar/clock/clock.d.ts +8 -0
  469. package/dist/types/components/internal/Calendar/clock/clock.d.ts.map +1 -0
  470. package/dist/types/components/internal/Calendar/clock/index.d.ts +4 -0
  471. package/dist/types/components/internal/Calendar/clock/index.d.ts.map +1 -0
  472. package/dist/types/components/internal/Calendar/clock/today.d.ts +5 -0
  473. package/dist/types/components/internal/Calendar/clock/today.d.ts.map +1 -0
  474. package/dist/types/components/internal/Calendar/clock/types.d.ts +12 -0
  475. package/dist/types/components/internal/Calendar/clock/types.d.ts.map +1 -0
  476. package/dist/types/components/internal/Calendar/components/CalendarControls/CalendarControls.d.ts +4 -0
  477. package/dist/types/components/internal/Calendar/components/CalendarControls/CalendarControls.d.ts.map +1 -0
  478. package/dist/types/components/internal/Calendar/components/CalendarControls/index.d.ts +2 -0
  479. package/dist/types/components/internal/Calendar/components/CalendarControls/index.d.ts.map +1 -0
  480. package/dist/types/components/internal/Calendar/components/CalendarControls/types.d.ts +8 -0
  481. package/dist/types/components/internal/Calendar/components/CalendarControls/types.d.ts.map +1 -0
  482. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGrid.d.ts +7 -0
  483. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGrid.d.ts.map +1 -0
  484. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.d.ts +6 -0
  485. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.d.ts.map +1 -0
  486. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.d.ts +4 -0
  487. package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.d.ts.map +1 -0
  488. package/dist/types/components/internal/Calendar/components/CalendarGrid/index.d.ts +2 -0
  489. package/dist/types/components/internal/Calendar/components/CalendarGrid/index.d.ts.map +1 -0
  490. package/dist/types/components/internal/Calendar/components/CalendarGrid/types.d.ts +33 -0
  491. package/dist/types/components/internal/Calendar/components/CalendarGrid/types.d.ts.map +1 -0
  492. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts +23 -0
  493. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -0
  494. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +9 -0
  495. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -0
  496. package/dist/types/components/internal/Calendar/hooks/useCalendarControlsRendering.d.ts +4 -0
  497. package/dist/types/components/internal/Calendar/hooks/useCalendarControlsRendering.d.ts.map +1 -0
  498. package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts +14 -0
  499. package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -0
  500. package/dist/types/components/internal/Calendar/index.d.ts +2 -0
  501. package/dist/types/components/internal/Calendar/index.d.ts.map +1 -0
  502. package/dist/types/components/internal/Calendar/types.d.ts +39 -0
  503. package/dist/types/components/internal/Calendar/types.d.ts.map +1 -0
  504. package/dist/types/components/internal/DataGrid/DataGrid.d.ts +34 -0
  505. package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -0
  506. package/dist/types/components/internal/DataGrid/DataGridCell.d.ts +3 -0
  507. package/dist/types/components/internal/DataGrid/DataGridCell.d.ts.map +1 -0
  508. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +4 -0
  509. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -0
  510. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +9 -0
  511. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -0
  512. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +4 -0
  513. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -0
  514. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +8 -0
  515. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -0
  516. package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts +12 -0
  517. package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -0
  518. package/dist/types/components/internal/DataGrid/index.d.ts +2 -0
  519. package/dist/types/components/internal/DataGrid/index.d.ts.map +1 -0
  520. package/dist/types/components/internal/DataGrid/types.d.ts +40 -0
  521. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -0
  522. package/dist/types/components/internal/DatePicker/DatePicker.d.ts +11 -0
  523. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -0
  524. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +8 -0
  525. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -0
  526. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/index.d.ts +3 -0
  527. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/index.d.ts.map +1 -0
  528. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +36 -0
  529. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -0
  530. package/dist/types/components/internal/DatePicker/index.d.ts +2 -0
  531. package/dist/types/components/internal/DatePicker/index.d.ts.map +1 -0
  532. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +19 -0
  533. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -0
  534. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts +6 -0
  535. package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -0
  536. package/dist/types/components/internal/ExpandableCard/constants.d.ts +11 -0
  537. package/dist/types/components/internal/ExpandableCard/constants.d.ts.map +1 -0
  538. package/dist/types/components/internal/ExpandableCard/types.d.ts +6 -0
  539. package/dist/types/components/internal/ExpandableCard/types.d.ts.map +1 -0
  540. package/dist/types/components/internal/FilterBar/FilterBar.d.ts +5 -0
  541. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -0
  542. package/dist/types/components/internal/FilterBar/components/FilterButton/FilterButton.d.ts +7 -0
  543. package/dist/types/components/internal/FilterBar/components/FilterButton/FilterButton.d.ts.map +1 -0
  544. package/dist/types/components/internal/FilterBar/components/FilterButton/types.d.ts +9 -0
  545. package/dist/types/components/internal/FilterBar/components/FilterButton/types.d.ts.map +1 -0
  546. package/dist/types/components/internal/FilterBar/filters/AmountFilter/AmountFilter.d.ts +4 -0
  547. package/dist/types/components/internal/FilterBar/filters/AmountFilter/AmountFilter.d.ts.map +1 -0
  548. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts +5 -0
  549. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -0
  550. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +19 -0
  551. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -0
  552. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts +6 -0
  553. package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts.map +1 -0
  554. package/dist/types/components/internal/FilterBar/filters/BaseFilter/index.d.ts +2 -0
  555. package/dist/types/components/internal/FilterBar/filters/BaseFilter/index.d.ts.map +1 -0
  556. package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts +28 -0
  557. package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts.map +1 -0
  558. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts +5 -0
  559. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -0
  560. package/dist/types/components/internal/FilterBar/filters/DateFilter/index.d.ts +2 -0
  561. package/dist/types/components/internal/FilterBar/filters/DateFilter/index.d.ts.map +1 -0
  562. package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts +21 -0
  563. package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts.map +1 -0
  564. package/dist/types/components/internal/FilterBar/index.d.ts +2 -0
  565. package/dist/types/components/internal/FilterBar/index.d.ts.map +1 -0
  566. package/dist/types/components/internal/FilterBar/types.d.ts +5 -0
  567. package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -0
  568. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +22 -0
  569. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts.map +1 -0
  570. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +2 -0
  571. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts.map +1 -0
  572. package/dist/types/components/internal/FormFields/InputBase.d.ts +7 -0
  573. package/dist/types/components/internal/FormFields/InputBase.d.ts.map +1 -0
  574. package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +3 -0
  575. package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts.map +1 -0
  576. package/dist/types/components/internal/FormFields/InputDate/index.d.ts +2 -0
  577. package/dist/types/components/internal/FormFields/InputDate/index.d.ts.map +1 -0
  578. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +22 -0
  579. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts.map +1 -0
  580. package/dist/types/components/internal/FormFields/InputEmail.d.ts +3 -0
  581. package/dist/types/components/internal/FormFields/InputEmail.d.ts.map +1 -0
  582. package/dist/types/components/internal/FormFields/InputTelephone.d.ts +3 -0
  583. package/dist/types/components/internal/FormFields/InputTelephone.d.ts.map +1 -0
  584. package/dist/types/components/internal/FormFields/InputText.d.ts +6 -0
  585. package/dist/types/components/internal/FormFields/InputText.d.ts.map +1 -0
  586. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +11 -0
  587. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts.map +1 -0
  588. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +2 -0
  589. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts.map +1 -0
  590. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +19 -0
  591. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts.map +1 -0
  592. package/dist/types/components/internal/FormFields/Select/Select.d.ts +5 -0
  593. package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -0
  594. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +6 -0
  595. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -0
  596. package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +6 -0
  597. package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts.map +1 -0
  598. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +9 -0
  599. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -0
  600. package/dist/types/components/internal/FormFields/Select/constants.d.ts +24 -0
  601. package/dist/types/components/internal/FormFields/Select/constants.d.ts.map +1 -0
  602. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +8 -0
  603. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -0
  604. package/dist/types/components/internal/FormFields/Select/index.d.ts +2 -0
  605. package/dist/types/components/internal/FormFields/Select/index.d.ts.map +1 -0
  606. package/dist/types/components/internal/FormFields/Select/types.d.ts +75 -0
  607. package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -0
  608. package/dist/types/components/internal/FormFields/index.d.ts +37 -0
  609. package/dist/types/components/internal/FormFields/index.d.ts.map +1 -0
  610. package/dist/types/components/internal/FormFields/types.d.ts +35 -0
  611. package/dist/types/components/internal/FormFields/types.d.ts.map +1 -0
  612. package/dist/types/components/internal/Image/Image.d.ts +10 -0
  613. package/dist/types/components/internal/Image/Image.d.ts.map +1 -0
  614. package/dist/types/components/internal/Img/Img.d.ts +5 -0
  615. package/dist/types/components/internal/Img/Img.d.ts.map +1 -0
  616. package/dist/types/components/internal/Img/index.d.ts +2 -0
  617. package/dist/types/components/internal/Img/index.d.ts.map +1 -0
  618. package/dist/types/components/internal/Img/types.d.ts +17 -0
  619. package/dist/types/components/internal/Img/types.d.ts.map +1 -0
  620. package/dist/types/components/internal/Modal/Modal.d.ts +4 -0
  621. package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -0
  622. package/dist/types/components/internal/Modal/index.d.ts +2 -0
  623. package/dist/types/components/internal/Modal/index.d.ts.map +1 -0
  624. package/dist/types/components/internal/Modal/types.d.ts +17 -0
  625. package/dist/types/components/internal/Modal/types.d.ts.map +1 -0
  626. package/dist/types/components/internal/Pagination/Pagination.d.ts +4 -0
  627. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -0
  628. package/dist/types/components/internal/Pagination/constants.d.ts +4 -0
  629. package/dist/types/components/internal/Pagination/constants.d.ts.map +1 -0
  630. package/dist/types/components/internal/Pagination/hooks/index.d.ts +3 -0
  631. package/dist/types/components/internal/Pagination/hooks/index.d.ts.map +1 -0
  632. package/dist/types/components/internal/Pagination/hooks/types.d.ts +46 -0
  633. package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -0
  634. package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts +4 -0
  635. package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -0
  636. package/dist/types/components/internal/Pagination/hooks/useCursorPagination.d.ts +10 -0
  637. package/dist/types/components/internal/Pagination/hooks/useCursorPagination.d.ts.map +1 -0
  638. package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts +4 -0
  639. package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -0
  640. package/dist/types/components/internal/Pagination/hooks/useOffsetPagination.d.ts +8 -0
  641. package/dist/types/components/internal/Pagination/hooks/useOffsetPagination.d.ts.map +1 -0
  642. package/dist/types/components/internal/Pagination/hooks/usePageLimit.d.ts +8 -0
  643. package/dist/types/components/internal/Pagination/hooks/usePageLimit.d.ts.map +1 -0
  644. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts +4 -0
  645. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -0
  646. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts +5 -0
  647. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -0
  648. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +5 -0
  649. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -0
  650. package/dist/types/components/internal/Pagination/index.d.ts +2 -0
  651. package/dist/types/components/internal/Pagination/index.d.ts.map +1 -0
  652. package/dist/types/components/internal/Pagination/types.d.ts +71 -0
  653. package/dist/types/components/internal/Pagination/types.d.ts.map +1 -0
  654. package/dist/types/components/internal/Pagination/utils.d.ts +2 -0
  655. package/dist/types/components/internal/Pagination/utils.d.ts.map +1 -0
  656. package/dist/types/components/internal/Popover/Popover.d.ts +7 -0
  657. package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -0
  658. package/dist/types/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.d.ts +9 -0
  659. package/dist/types/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.d.ts.map +1 -0
  660. package/dist/types/components/internal/Popover/PopoverTitle/PopoverTitle.d.ts +8 -0
  661. package/dist/types/components/internal/Popover/PopoverTitle/PopoverTitle.d.ts.map +1 -0
  662. package/dist/types/components/internal/Popover/constants.d.ts +7 -0
  663. package/dist/types/components/internal/Popover/constants.d.ts.map +1 -0
  664. package/dist/types/components/internal/Popover/types.d.ts +41 -0
  665. package/dist/types/components/internal/Popover/types.d.ts.map +1 -0
  666. package/dist/types/components/internal/Popover/utils/utils.d.ts +13 -0
  667. package/dist/types/components/internal/Popover/utils/utils.d.ts.map +1 -0
  668. package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +7 -0
  669. package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts.map +1 -0
  670. package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +7 -0
  671. package/dist/types/components/internal/SVGIcons/Checkmark.d.ts.map +1 -0
  672. package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +7 -0
  673. package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts.map +1 -0
  674. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +7 -0
  675. package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -0
  676. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +7 -0
  677. package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -0
  678. package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +7 -0
  679. package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts.map +1 -0
  680. package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +7 -0
  681. package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts.map +1 -0
  682. package/dist/types/components/internal/Spinner/Spinner.d.ts +18 -0
  683. package/dist/types/components/internal/Spinner/Spinner.d.ts.map +1 -0
  684. package/dist/types/components/internal/Spinner/index.d.ts +2 -0
  685. package/dist/types/components/internal/Spinner/index.d.ts.map +1 -0
  686. package/dist/types/components/internal/Tag/Tag.d.ts +4 -0
  687. package/dist/types/components/internal/Tag/Tag.d.ts.map +1 -0
  688. package/dist/types/components/internal/Tag/types.d.ts +12 -0
  689. package/dist/types/components/internal/Tag/types.d.ts.map +1 -0
  690. package/dist/types/components/internal/Typography/Typography.d.ts +19 -0
  691. package/dist/types/components/internal/Typography/Typography.d.ts.map +1 -0
  692. package/dist/types/components/internal/Typography/constants.d.ts +2 -0
  693. package/dist/types/components/internal/Typography/constants.d.ts.map +1 -0
  694. package/dist/types/components/internal/Typography/types.d.ts +28 -0
  695. package/dist/types/components/internal/Typography/types.d.ts.map +1 -0
  696. package/dist/types/components/types.d.ts +75 -0
  697. package/dist/types/components/types.d.ts.map +1 -0
  698. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +11 -0
  699. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -0
  700. package/dist/types/core/Analytics/Analytics.d.ts +22 -0
  701. package/dist/types/core/Analytics/Analytics.d.ts.map +1 -0
  702. package/dist/types/core/Analytics/EventsQueue.d.ts +8 -0
  703. package/dist/types/core/Analytics/EventsQueue.d.ts.map +1 -0
  704. package/dist/types/core/Analytics/index.d.ts +2 -0
  705. package/dist/types/core/Analytics/index.d.ts.map +1 -0
  706. package/dist/types/core/Analytics/types.d.ts +28 -0
  707. package/dist/types/core/Analytics/types.d.ts.map +1 -0
  708. package/dist/types/core/Auth/AuthContext.d.ts +3 -0
  709. package/dist/types/core/Auth/AuthContext.d.ts.map +1 -0
  710. package/dist/types/core/Auth/AuthProvider.d.ts +4 -0
  711. package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -0
  712. package/dist/types/core/Auth/types.d.ts +10 -0
  713. package/dist/types/core/Auth/types.d.ts.map +1 -0
  714. package/dist/types/core/Auth/useAuthContext.d.ts +3 -0
  715. package/dist/types/core/Auth/useAuthContext.d.ts.map +1 -0
  716. package/dist/types/core/Context/CoreContext.d.ts +6 -0
  717. package/dist/types/core/Context/CoreContext.d.ts.map +1 -0
  718. package/dist/types/core/Context/CoreProvider.d.ts +8 -0
  719. package/dist/types/core/Context/CoreProvider.d.ts.map +1 -0
  720. package/dist/types/core/Context/types.d.ts +11 -0
  721. package/dist/types/core/Context/types.d.ts.map +1 -0
  722. package/dist/types/core/Context/useCoreContext.d.ts +5 -0
  723. package/dist/types/core/Context/useCoreContext.d.ts.map +1 -0
  724. package/dist/types/core/Errors/AdyenFPError.d.ts +8 -0
  725. package/dist/types/core/Errors/AdyenFPError.d.ts.map +1 -0
  726. package/dist/types/core/Errors/constants.d.ts +3 -0
  727. package/dist/types/core/Errors/constants.d.ts.map +1 -0
  728. package/dist/types/core/Localization/Localization.d.ts +50 -0
  729. package/dist/types/core/Localization/Localization.d.ts.map +1 -0
  730. package/dist/types/core/Localization/amount/amount-util.d.ts +6 -0
  731. package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -0
  732. package/dist/types/core/Localization/constants/currency-codes.d.ts +171 -0
  733. package/dist/types/core/Localization/constants/currency-codes.d.ts.map +1 -0
  734. package/dist/types/core/Localization/constants/currency-decimals.d.ts +29 -0
  735. package/dist/types/core/Localization/constants/currency-decimals.d.ts.map +1 -0
  736. package/dist/types/core/Localization/constants/locale.d.ts +225 -0
  737. package/dist/types/core/Localization/constants/locale.d.ts.map +1 -0
  738. package/dist/types/core/Localization/constants/localization.d.ts +5 -0
  739. package/dist/types/core/Localization/constants/localization.d.ts.map +1 -0
  740. package/dist/types/core/Localization/datetime/restamper/constants.d.ts +3 -0
  741. package/dist/types/core/Localization/datetime/restamper/constants.d.ts.map +1 -0
  742. package/dist/types/core/Localization/datetime/restamper/index.d.ts +5 -0
  743. package/dist/types/core/Localization/datetime/restamper/index.d.ts.map +1 -0
  744. package/dist/types/core/Localization/datetime/restamper/restamper.d.ts +4 -0
  745. package/dist/types/core/Localization/datetime/restamper/restamper.d.ts.map +1 -0
  746. package/dist/types/core/Localization/datetime/restamper/types.d.ts +21 -0
  747. package/dist/types/core/Localization/datetime/restamper/types.d.ts.map +1 -0
  748. package/dist/types/core/Localization/datetime/restamper/utils.d.ts +23 -0
  749. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -0
  750. package/dist/types/core/Localization/index.d.ts +3 -0
  751. package/dist/types/core/Localization/index.d.ts.map +1 -0
  752. package/dist/types/core/Localization/localization-utils.d.ts +22 -0
  753. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -0
  754. package/dist/types/core/Localization/translations/index.d.ts +622 -0
  755. package/dist/types/core/Localization/translations/index.d.ts.map +1 -0
  756. package/dist/types/core/Localization/types.d.ts +28 -0
  757. package/dist/types/core/Localization/types.d.ts.map +1 -0
  758. package/dist/types/core/Localization/utils.d.ts +300 -0
  759. package/dist/types/core/Localization/utils.d.ts.map +1 -0
  760. package/dist/types/core/Services/analytics/collect-id.d.ts +9 -0
  761. package/dist/types/core/Services/analytics/collect-id.d.ts.map +1 -0
  762. package/dist/types/core/Services/analytics/log-event.d.ts +9 -0
  763. package/dist/types/core/Services/analytics/log-event.d.ts.map +1 -0
  764. package/dist/types/core/Services/analytics/post-telemetry.d.ts +8 -0
  765. package/dist/types/core/Services/analytics/post-telemetry.d.ts.map +1 -0
  766. package/dist/types/core/Services/analytics/types.d.ts +15 -0
  767. package/dist/types/core/Services/analytics/types.d.ts.map +1 -0
  768. package/dist/types/core/Services/requests/endpoints.d.ts +7 -0
  769. package/dist/types/core/Services/requests/endpoints.d.ts.map +1 -0
  770. package/dist/types/core/Services/requests/http.d.ts +5 -0
  771. package/dist/types/core/Services/requests/http.d.ts.map +1 -0
  772. package/dist/types/core/Services/requests/types.d.ts +26 -0
  773. package/dist/types/core/Services/requests/types.d.ts.map +1 -0
  774. package/dist/types/core/Services/requests/utils.d.ts +24 -0
  775. package/dist/types/core/Services/requests/utils.d.ts.map +1 -0
  776. package/dist/types/core/Services/sessions/constants.d.ts +2 -0
  777. package/dist/types/core/Services/sessions/constants.d.ts.map +1 -0
  778. package/dist/types/core/Services/sessions/setup-session.d.ts +5 -0
  779. package/dist/types/core/Services/sessions/setup-session.d.ts.map +1 -0
  780. package/dist/types/core/Session/Session.d.ts +32 -0
  781. package/dist/types/core/Session/Session.d.ts.map +1 -0
  782. package/dist/types/core/Session/index.d.ts +2 -0
  783. package/dist/types/core/Session/index.d.ts.map +1 -0
  784. package/dist/types/core/Session/types.d.ts +9 -0
  785. package/dist/types/core/Session/types.d.ts.map +1 -0
  786. package/dist/types/core/Session/utils.d.ts +3 -0
  787. package/dist/types/core/Session/utils.d.ts.map +1 -0
  788. package/dist/types/core/config.d.ts +9 -0
  789. package/dist/types/core/config.d.ts.map +1 -0
  790. package/dist/types/core/core.d.ts +39 -0
  791. package/dist/types/core/core.d.ts.map +1 -0
  792. package/dist/types/core/index.d.ts +4 -0
  793. package/dist/types/core/index.d.ts.map +1 -0
  794. package/dist/types/core/types.d.ts +39 -0
  795. package/dist/types/core/types.d.ts.map +1 -0
  796. package/dist/types/core/utils.d.ts +10 -0
  797. package/dist/types/core/utils.d.ts.map +1 -0
  798. package/dist/types/hooks/element/useClickOutside.d.ts +3 -0
  799. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -0
  800. package/dist/types/hooks/element/useDetachedRender.d.ts +5 -0
  801. package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -0
  802. package/dist/types/hooks/element/useFocusCursor.d.ts +4 -0
  803. package/dist/types/hooks/element/useFocusCursor.d.ts.map +1 -0
  804. package/dist/types/hooks/element/useFocusTrap.d.ts +4 -0
  805. package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -0
  806. package/dist/types/hooks/element/usePopoverPositioner.d.ts +6 -0
  807. package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -0
  808. package/dist/types/hooks/element/useUniqueIdentifier.d.ts +4 -0
  809. package/dist/types/hooks/element/useUniqueIdentifier.d.ts.map +1 -0
  810. package/dist/types/hooks/useBooleanState/index.d.ts +2 -0
  811. package/dist/types/hooks/useBooleanState/index.d.ts.map +1 -0
  812. package/dist/types/hooks/useBooleanState/useBooleanState.d.ts +3 -0
  813. package/dist/types/hooks/useBooleanState/useBooleanState.d.ts.map +1 -0
  814. package/dist/types/hooks/useCommitAction/index.d.ts +3 -0
  815. package/dist/types/hooks/useCommitAction/index.d.ts.map +1 -0
  816. package/dist/types/hooks/useCommitAction/types.d.ts +19 -0
  817. package/dist/types/hooks/useCommitAction/types.d.ts.map +1 -0
  818. package/dist/types/hooks/useCommitAction/useCommitAction.d.ts +4 -0
  819. package/dist/types/hooks/useCommitAction/useCommitAction.d.ts.map +1 -0
  820. package/dist/types/hooks/useFetch/useFetch.d.ts +21 -0
  821. package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -0
  822. package/dist/types/hooks/useImageUrl/useImageUrl.d.ts +14 -0
  823. package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -0
  824. package/dist/types/hooks/useModalDetails/types.d.ts +30 -0
  825. package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -0
  826. package/dist/types/hooks/useModalDetails/useModalDetails.d.ts +18 -0
  827. package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -0
  828. package/dist/types/hooks/useMounted/index.d.ts +2 -0
  829. package/dist/types/hooks/useMounted/index.d.ts.map +1 -0
  830. package/dist/types/hooks/useMounted/useMounted.d.ts +3 -0
  831. package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -0
  832. package/dist/types/hooks/useReactiveState/index.d.ts +2 -0
  833. package/dist/types/hooks/useReactiveState/index.d.ts.map +1 -0
  834. package/dist/types/hooks/useReactiveState/types.d.ts +11 -0
  835. package/dist/types/hooks/useReactiveState/types.d.ts.map +1 -0
  836. package/dist/types/hooks/useReactiveState/useReactiveState.d.ts +4 -0
  837. package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -0
  838. package/dist/types/hooks/useReflex/constants.d.ts +2 -0
  839. package/dist/types/hooks/useReflex/constants.d.ts.map +1 -0
  840. package/dist/types/hooks/useReflex/core/reflex.d.ts +5 -0
  841. package/dist/types/hooks/useReflex/core/reflex.d.ts.map +1 -0
  842. package/dist/types/hooks/useReflex/core/registry.d.ts +5 -0
  843. package/dist/types/hooks/useReflex/core/registry.d.ts.map +1 -0
  844. package/dist/types/hooks/useReflex/core/utils.d.ts +5 -0
  845. package/dist/types/hooks/useReflex/core/utils.d.ts.map +1 -0
  846. package/dist/types/hooks/useReflex/errors.d.ts +7 -0
  847. package/dist/types/hooks/useReflex/errors.d.ts.map +1 -0
  848. package/dist/types/hooks/useReflex/hooks/useReflex.d.ts +4 -0
  849. package/dist/types/hooks/useReflex/hooks/useReflex.d.ts.map +1 -0
  850. package/dist/types/hooks/useReflex/index.d.ts +4 -0
  851. package/dist/types/hooks/useReflex/index.d.ts.map +1 -0
  852. package/dist/types/hooks/useReflex/types.d.ts +29 -0
  853. package/dist/types/hooks/useReflex/types.d.ts.map +1 -0
  854. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts +6 -0
  855. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -0
  856. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +12 -0
  857. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -0
  858. package/dist/types/index.d.ts +8 -0
  859. package/dist/types/index.d.ts.map +1 -0
  860. package/dist/types/types/index.d.ts +3 -0
  861. package/dist/types/types/index.d.ts.map +1 -0
  862. package/dist/types/types/models/api/index.d.ts +3 -0
  863. package/dist/types/types/models/api/index.d.ts.map +1 -0
  864. package/dist/types/types/models/api/utils.d.ts +15 -0
  865. package/dist/types/types/models/api/utils.d.ts.map +1 -0
  866. package/dist/types/types/models/balanceAccount.d.ts +5 -0
  867. package/dist/types/types/models/balanceAccount.d.ts.map +1 -0
  868. package/dist/types/types/models/transactions.d.ts +5 -0
  869. package/dist/types/types/models/transactions.d.ts.map +1 -0
  870. package/dist/types/types/shared.d.ts +33 -0
  871. package/dist/types/types/shared.d.ts.map +1 -0
  872. package/dist/types/utils/Storage.d.ts +11 -0
  873. package/dist/types/utils/Storage.d.ts.map +1 -0
  874. package/dist/types/utils/Validator/ValidationRuleResult.d.ts +19 -0
  875. package/dist/types/utils/Validator/ValidationRuleResult.d.ts.map +1 -0
  876. package/dist/types/utils/Validator/types.d.ts +58 -0
  877. package/dist/types/utils/Validator/types.d.ts.map +1 -0
  878. package/dist/types/utils/class-name-utils.d.ts +5 -0
  879. package/dist/types/utils/class-name-utils.d.ts.map +1 -0
  880. package/dist/types/utils/common/constants.d.ts +12 -0
  881. package/dist/types/utils/common/constants.d.ts.map +1 -0
  882. package/dist/types/utils/common/index.d.ts +27 -0
  883. package/dist/types/utils/common/index.d.ts.map +1 -0
  884. package/dist/types/utils/fixedForwardRef.d.ts +11 -0
  885. package/dist/types/utils/fixedForwardRef.d.ts.map +1 -0
  886. package/dist/types/utils/get-image.d.ts +14 -0
  887. package/dist/types/utils/get-image.d.ts.map +1 -0
  888. package/dist/types/utils/idGenerator.d.ts +2 -0
  889. package/dist/types/utils/idGenerator.d.ts.map +1 -0
  890. package/dist/types/utils/memoComparator/index.d.ts +2 -0
  891. package/dist/types/utils/memoComparator/index.d.ts.map +1 -0
  892. package/dist/types/utils/memoComparator/memoComparator.d.ts +4 -0
  893. package/dist/types/utils/memoComparator/memoComparator.d.ts.map +1 -0
  894. package/dist/types/utils/memoComparator/types.d.ts +10 -0
  895. package/dist/types/utils/memoComparator/types.d.ts.map +1 -0
  896. package/dist/types/utils/tabbable.d.ts +13 -0
  897. package/dist/types/utils/tabbable.d.ts.map +1 -0
  898. package/dist/types/utils/types.d.ts +9 -0
  899. package/dist/types/utils/types.d.ts.map +1 -0
  900. package/dist/types/utils/useForm/types.d.ts +81 -0
  901. package/dist/types/utils/useForm/types.d.ts.map +1 -0
  902. package/dist/types/utils/uuid.d.ts +2 -0
  903. package/dist/types/utils/uuid.d.ts.map +1 -0
  904. package/dist/types/utils/validator-utils.d.ts +15 -0
  905. package/dist/types/utils/validator-utils.d.ts.map +1 -0
  906. package/dist/types/utils/watchable/constants.d.ts +2 -0
  907. package/dist/types/utils/watchable/constants.d.ts.map +1 -0
  908. package/dist/types/utils/watchable/core/Watchable.d.ts +15 -0
  909. package/dist/types/utils/watchable/core/Watchable.d.ts.map +1 -0
  910. package/dist/types/utils/watchable/core/helpers.d.ts +7 -0
  911. package/dist/types/utils/watchable/core/helpers.d.ts.map +1 -0
  912. package/dist/types/utils/watchable/core/syncEffect.d.ts +4 -0
  913. package/dist/types/utils/watchable/core/syncEffect.d.ts.map +1 -0
  914. package/dist/types/utils/watchable/index.d.ts +4 -0
  915. package/dist/types/utils/watchable/index.d.ts.map +1 -0
  916. package/dist/types/utils/watchable/types.d.ts +27 -0
  917. package/dist/types/utils/watchable/types.d.ts.map +1 -0
  918. package/package.json +103 -0
@@ -0,0 +1,12 @@
1
+ "use strict";var Wc=Object.defineProperty;var zc=(t,e,n)=>e in t?Wc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var O=(t,e,n)=>(zc(t,typeof e!="symbol"?e+"":e,n),n),Ri=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var c=(t,e,n)=>(Ri(t,e,"read from private field"),n?n.call(t):e.get(t)),p=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},I=(t,e,n,s)=>(Ri(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n);var Te=(t,e,n,s)=>({set _(i){I(t,e,i,n)},get _(){return c(t,e,s)}}),C=(t,e,n)=>(Ri(t,e,"access private method"),n);const S=require("preact"),G=require("classnames"),Ui="https://platform-components-external-test.adyen.com/platform-components-external/api/";function Bc(t){return t&&{test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"}[t]||Ui}const Fc=t=>t.endsWith("/")?t:`${t}/`,$c=t=>t.startsWith("/")?t:`/${t}`,Uc="v1";class Hc extends Error{constructor(n,s,i){super(s);O(this,"type");O(this,"errorCode");this.type=n,this.name=n,this.errorCode=i}}const vo=Hc;var Ro=(t=>(t.NETWORK_ERROR="NETWORK_ERROR",t.CANCEL="CANCEL",t.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",t.ERROR="ERROR",t.EXPIRED_TOKEN="EXPIRED_TOKEN",t))(Ro||{});const Gc=t=>{switch(t){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},Yc=(t,e)=>{const{headers:n=[],method:s="GET"}=t;return{method:s,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",...n},redirect:"follow",signal:t.signal,referrerPolicy:"no-referrer-when-downgrade",...s==="POST"&&e&&{body:JSON.stringify(e)}}};function xi({message:t,level:e,errorCode:n,type:s="NETWORK_ERROR"}){switch(e){case"silent":break;case"info":case"warn":console[e](t);break;case"error":default:throw new vo(s,t,n)}}function Zc(t){return t&&t.errorCode&&t.type&&(t.detail||t.invalidFields)&&t.status}function Jc(t){const e=new URLSearchParams;for(const n of Object.keys(t)){const s=t[n];s!=null&&(Array.isArray(s)?s.forEach(i=>e.append(n,i)):e.set(n,String(s)))}return e}function xo(t,e){const{errorLevel:n,loadingContext:s="",path:i}=t,r=Yc(t,e),o=new URL(`${Fc(s)}${Uc}${$c(i)}`);return t.params&&t.params.forEach((a,l)=>{const u=decodeURIComponent(a);u&&o.searchParams.append(l,u)}),fetch(o,r).then(async a=>{const l=await a.json();if(a.ok)return await l;const u=Gc(a.status);if(Zc(l))return t.errorHandler?t.errorHandler(l):xi({message:l.detail,level:n,errorCode:l.errorCode,type:u});const h=t.errorMessage||`Service at ${o} is not available`;return xi({message:h,level:n,errorCode:String(l.status),type:u})}).catch(a=>{if(a instanceof vo)throw a;const l=t.errorMessage||`Call to ${o} failed. Error= ${a}`;xi({message:l,level:n})})}function Qc(t,e){return xo({...t,method:"POST"},e)}function Vc(t,e){const n="/setup";return Qc({errorLevel:"fatal",errorMessage:"ERROR: Invalid ClientKey",...e??{},loadingContext:t.loadingContext,path:n,headers:{Authorization:`Bearer ${t.token}`}},{})}class Xc{constructor(e,n=window.localStorage){O(this,"prefix","adyen-fp-");O(this,"key");O(this,"storage");this.storage=n,this.key=this.prefix+e}get(){const e=this.storage.getItem(this.key);if(e)try{return JSON.parse(e)}catch{return null}return null}set(e){this.storage.setItem(this.key,JSON.stringify(e))}remove(){this.storage.removeItem(this.key)}}const Kc=Xc;function qc(t){if(!t||!t.id||!t.token)throw new Error("Invalid session");return{id:t.id,token:t.token}}class tl{constructor(e,n){O(this,"session");O(this,"storage");O(this,"loadingContext");O(this,"configuration");const s=qc(e);this.storage=new Kc("session"),this.loadingContext=n,this.session=s,this.session.token?this.storeSession():this.session=this.getStoredSession()}get id(){return this.session.id}get token(){return this.session.token}updateSessionData(e){this.session.token=e,this.storeSession()}setupSession(e){return Vc(this,e).then(n=>(n.endpoints&&(this.configuration={...n}),n)).catch(n=>{throw n})}getStoredSession(){const e=this.storage.get();return this.id===(e==null?void 0:e.id)?e:this.session}storeSession(){this.storage.set({id:this.session.id,token:this.session.token})}removeStoredSession(){this.storage.remove()}}const el=tl,nl={AED:"د.إ",AFN:"؋",ALL:"L",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"₼",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"Bs.",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BYN:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"Fr.",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KYD:"$",KZT:"₸",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTL:"Lt",LVL:"Ls",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},jo=nl,sl={IDR:1,JPY:1,KRW:1,VND:1,BYR:1,CVE:1,DJF:1,GHC:1,GNF:1,KMF:1,PYG:1,RWF:1,UGX:1,VUV:1,XAF:1,XOF:1,XPF:1,MRO:10,BHD:1e3,IQD:1e3,JOD:1e3,KWD:1e3,OMR:1e3,LYD:1e3,TND:1e3},il=sl,rl=t=>il[t]||100,ol=t=>!!jo[t],al=t=>ol(t)?jo[t]:null,cl=(t,e)=>{const n=rl(e);return parseInt(String(t),10)/n},ll=(t,e,n,s=!1,i={})=>{const r=t.toString(),o=cl(r,n),a=e.replace("_","-"),l={style:"currency",currency:n,currencyDisplay:"symbol",...i};try{return s?ul({amount:o,currencyCode:n,locale:a}):o.toLocaleString(a,l)}catch{return r}},ul=({locale:t,amount:e,currencyCode:n})=>new Intl.NumberFormat(t,{style:"currency",currency:n,currencyDisplay:"symbol"}).formatToParts(e).filter(s=>s.type!=="currency").reduce((s,i)=>s+i.value,"").trim(),dl="Payment ID",hl="Transaction type",ml="Account",fl="Description",Il="Amount",gl="Creation time",pl="Paginated navigation",yl="Unable to load transactions",Ml="(Not set)",Nl="Edit filter",Tl="Balance account",Ll="Balance platform",Sl="Select a balance platform, a balance account or an account",Al="Reset",El="Apply",_l="Reference for beneficiary",Cl="Category",Dl="Reference",bl="Reference ID",Ol="Transactions",vl="Date range",Rl="From",xl="To",jl="Balance account ID",wl="Default currency",Pl="Created",kl="Status",Wl="Expand content",zl="Hide content",Bl="Store details",Fl="Preauthorize with",$l="Continue to",Ul="Telephone number",Hl="Infix",Gl="First name",Yl="Last name",Zl="Date of birth",Jl="Shopper email",Ql="Male",Vl="Female",Xl="Personal details",Kl="Company details",ql="Apartment suite",tu="State",eu="Address",nu="Province or territory",su="City town",iu="Zip code",ru="Invalid format expects",ou="Country",au="Account holder",cu="Legal entity",lu="Legal entity ID",uu="Balances",du="Current balance",hu="Available balance",mu="Reserved balance",fu="Account configuration",Iu="Account HOLDER ID",gu="Timezone",pu="Sales day closing time",yu="Settlement delay days",Mu="Transaction details",Nu="Processing information",Tu="transferID",Lu="Type",Su="Incomplete field",Au="Legal entity details",Eu="No",_u="Account identifier",Cu="Transfer instrument ID",Du="Overview",bu="Transfer instruments",Ou="ID",vu="Legal entity type",Ru="Name",xu="Mobile",ju="Fax",wu="Landline",Pu="Email",ku="Residential address",Wu="Country of residence",zu="Legal name of the company",Bu="Company type",Fu="Trading name",$u="Registration number",Uu="Tax number",Hu="Tax exempt",Gu="Registered business address",Yu="Amount",Zu="Unable to load account holder",Ju="Unable to load balance account",Qu="Unable to load legal entity",Vu="Unable to load transaction",Xu="Dismiss",Ku="Organization",qu="individual",td="Original amount",ed="Instructed amount",nd="Date",sd="Structured list",id="Tabs",rd="Value",od="Filter bar",ad="Contact details",cd="Booked",ld="Pending",ud="Reversed",dd="Transactions overview",hd="Payment method",md="Currency",fd="Incoming",Id="Expense",gd="Account Balance",pd="close",yd="There are no results",Md="We did not find any transaction.",Nd="There are no transactions for these particular requirements.",Td="Try again, please.",Ld="No data",Sd="There was an unexpected error",Ad="Something went wrong.",Ed="We could not load the transaction overview.",_d="Try to refresh the page or come back a little later.",Cd="Seems like there’s a network error.",Dd="An internal error happened",bd="Please, reach out to support for assistance.",Od="The request is missing required fields or contains invalid data.",vd="Entity was not found",Rd="Transaction not found for the specified Account Holder",xd="No results found, seek support.",jd="Seems like there's an internal error",wd="Refresh the page",Pd="Reach out to support",kd="No negative numbers allowed",Wd="To value should be equal or greater than the From value",wo={paymentId:dl,transactionType:hl,account:ml,description:fl,amount:Il,creationTime:gl,paginatedNavigation:pl,"pagination.page":"Page","pagination.previousPage":"Previous page","pagination.nextPage":"Next page",unableToLoadTransactions:yl,notSet:Ml,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}","filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status","calendar.controls":"Calendar navigation controls","calendar.previousMonth":"Previous month","calendar.nextMonth":"Next month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})","button.clearAll":"Clear all",editFilter:Nl,balanceAccount:Tl,balancePlatform:Ll,"expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",toStart:Sl,reset:Al,apply:El,referenceForBeneficiary:_l,"status.booked":"Booked","status.active":"Active","status.inactive":"Inactive","status.pending":"Pending","status.closed":"Closed",category:Cl,"category.internal":"Internal",reference:Dl,referenceID:bl,transactions:Ol,dateRange:vl,from:Rl,to:xl,balanceAccountId:jl,defaultCurrency:wl,created:Pl,status:kl,expandContent:Wl,hideContent:zl,storeDetails:Bl,preauthorizeWith:Fl,continueTo:$l,telephoneNumber:Ul,infix:Hl,firstName:Gl,lastName:Yl,dateOfBirth:Zl,"dateOfBirth.format":"Format",shopperEmail:Jl,"select.noOptionsFound":"No options match this search","select.filter.placeholder":"Placeholder","select.provinceOrTerritory":"Province or territory","select.state":"State","select.country":"Country",male:Ql,female:Vl,personalDetails:Xl,"field.valid":"Valid","field.invalid":"Invalid",companyDetails:Kl,"companyDetails.name":"Name","companyDetails.registrationNumber":"Registration number","payButton.redirecting":"Redirecting",apartmentSuite:ql,state:tu,address:eu,provinceOrTerritory:nu,cityTown:su,zipCode:iu,"field.title.optional":"Optional",invalidFormatExpects:ru,country:ou,accountHolder:au,legalEntity:cu,legalEntityID:lu,balances:uu,currentBalance:du,availableBalance:hu,reservedBalance:mu,accountConfiguration:fu,accountHolderID:Iu,timezone:gu,salesDayClosingTime:pu,settlementDelayDays:yu,transactionDetails:Mu,processingInformation:Nu,transferID:Tu,type:Lu,incompleteField:Su,legalEntityDetails:Au,no:Eu,accountIdentifier:_u,transferInstrumentId:Cu,overview:Du,transferInstruments:bu,id:Ou,legalEntityType:vu,name:Ru,mobile:xu,fax:ju,landline:wu,email:Pu,residentialAddress:ku,countryOfResidence:Wu,legalNameOfTheCompany:zu,companyType:Bu,tradingName:Fu,registrationNumber:$u,taxNumber:Uu,taxExempt:Hu,registeredBusinessAddress:Gu,"txType.Payment":"Payment","txType.capture":"Capture","txType.captureReversal":"Capture reversal","txType.Refund":"Refund","txType.refundReversal":"Refund reversal","txType.Chargeback":"Chargeback","txType.chargebackReversal":"Chargeback reversal","txType.secondChargeback":"Second chargeback","txType.ATM":"ATM","txType.Capital":"Capital","txType.Correction":"Correction","txType.Transfer":"Transfer","txType.Other":"Other","txType.atmWithdrawal":"ATM withdrawal","txType.atmWithdrawalReversal":"ATM withdrawal reversal","txType.internalTransfer":"Internal transfer","txType.manualCorrection":"Manual correction","txType.invoiceDeduction":"Invoice deduction","txType.depositCorrection":"Deposit correction","txType.bankTransfer":"Bank transfer","txType.miscCost":"Misc cost","txType.paymentCost":"Payment cost","txType.Fee":"Fee","txType.leftover":"Leftover","txType.balanceAdjustment":"Balance adjustment","txType.balanceMigration":"Balance migration","txType.balanceRollover":"Balance rollover","txType.cardTransfer":"Card transfer","txType.cashOutFee":"Cash out fee","txType.cashOutFunding":"Cash out funding","txType.cashOutInstruction":"Cash out instruction","txType.chargebackCorrection":"Chargeback correction","txType.chargebackReversalCorrection":"Chargeback reversal correction","txType.grant":"Grant","txType.installment":"Installment","txType.installmentReversal":"Installment reversal","txType.repayment":"Repayment","txType.reserveAdjustment":"Reserve adjustment",txAmount:Yu,unableToLoadAccountHolder:Zu,"txType.secondChargebackCorrection":"Second chargeback correction",unableToLoadBalanceAccount:Ju,unableToLoadLegalEntity:Qu,unableToLoadTransaction:Vu,dismiss:Xu,organization:Ku,individual:qu,originalAmount:td,instructedAmount:ed,date:nd,structuredList:sd,tabs:id,value:rd,filterBar:od,default:"Default",contactDetails:ad,Booked:cd,Pending:ld,Reversed:ud,transactionsOverview:dd,"rangePreset.custom":"Custom","rangePreset.last7Days":"Last 7 days","rangePreset.lastMonth":"Last month","rangePreset.lastWeek":"Last week","rangePreset.thisMonth":"This month","rangePreset.thisWeek":"This week","rangePreset.yearToDate":"Year to date",paymentMethod:hd,currency:md,incoming:fd,expense:Id,accountBalance:gd,closeIconLabel:pd,thereAreNoResults:yd,weDidNotFindAnyTransaction:Md,thereAreNoTransactionsForThisRequirements:Nd,tryAgainPlease:Td,noData:Ld,thereWasAnUnexpectedError:Sd,somethingWentWrong:Ad,weCouldNotLoadTheTransactionsOverview:Ed,tryToRefreshThePageOrComeBackLater:_d,seemsLikeThereIsANetworkError:Cd,anInternalErrorHappened:Dd,pleaseReachOutToSupportForAssistance:bd,theRequestIsMissingRequiredFieldsOrContainsInvalidData:Od,entityWasNotFound:vd,entityWasNotFoundDetail:Rd,noResultsFoundSeekSupport:xd,seemsLikeThereIsAndInternalError:jd,refreshThePage:wd,reachOutToSupport:Pd,noNegativeNumbersAllowed:kd,secondValueShouldBeGreaterThanTheFirstOne:Wd,export:"Export"},Ae="en-US",zd=/^[a-z]{2}-[A-Z]{2}$/,Po=wo,Bd=["ar","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","fi-FI","fr-FR","hr-HR","hu-HU","it-IT","ja-JP","ko-KR","nl-NL","no-NO","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sl-SI","sv-SE","zh-CN","zh-TW"],Fd={year:"numeric",month:"2-digit",day:"2-digit"},Cs=Bd,$d=["constructor","i18n","watch","preferredTranslations"],Ir=Object.create,Hi=()=>!0,gi={defineProperty:Hi,set:Hi},pt=Object.freeze([]),P=Object.freeze(Ir(null)),pi=Function.prototype.bind.bind(Function.prototype.call),Z=pi(Ir,void 0,null),yi=pi(Ir,void 0),ko=pi(Object.prototype.toString),ae=pi(Object.prototype.hasOwnProperty),bt=new Proxy(()=>{},gi),q=(t,e=!1)=>({writable:e===!0,enumerable:!0,value:t}),Ud=t=>t,vn=(t,e)=>typeof t=="boolean"?t:!!e,qe=(t,e,n)=>Math.max(t,Math.min(e,n)),Wo=(t,e)=>t+Math.floor((e-t)/2),Ss=(t,e)=>(t%e+e)%e,V=t=>typeof t=="function",Dn=t=>typeof t=="number",Be=t=>Dn(t)&&1/t===0,Bn=t=>Dn(t)&&t===~~t,bn=(t,e)=>t===e||!(t===t||e===e),Rn=(t,e,n)=>t.includes(e)?e:e==null?t[0]:t.includes(n)?n:t[0],gr=t=>t&&typeof t!="boolean"&&(t!=null&&t.value)?!!(t!=null&&t.value):!!t,Hd=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:Gd,BASE_LOCALE:Yd,SYSTEM_TIMEZONE:Ds,SYSTEM_TIMEZONE_FORMATTER:Je}=(()=>{const t="en-US",e="2-digit",n="numeric",o=Object.freeze({year:n,month:"short",day:n,hour:e,minute:e,second:e,fractionalSecondDigits:3,timeZoneName:"longOffset"});let a,l;try{l=new Intl.DateTimeFormat(t,o),a=l.resolvedOptions().timeZone}catch{a=void 0}return{BASE_FORMAT_OPTIONS:o,BASE_LOCALE:t,SYSTEM_TIMEZONE:a,SYSTEM_TIMEZONE_FORMATTER:l}})(),Zd=/\+(?=-)|([+-]00:00)/g,Jd=new RegExp("(?<=^\\D?)(\\d)$"),Qd=([t,e])=>(Math.abs(t*60)+e)*(t<0?-1:1),Vd=t=>Object.freeze([Math.floor(t/60),Ss(t,60)]),Xd=t=>parseInt(t,10)||0,Kd=t=>`GMT+${Vd(t).map(s=>`${s}`.replace(Jd,"0$1")).join(":")}`.replace(Zd,""),Gi=t=>{var n;const e=((n=t==null?void 0:t.match(Hd))==null?void 0:n[0].split(":",2).map(Xd))??pt;return Qd(e.concat(0,0).slice(0,2))},qd=(t,e=Je)=>{const n=Gi(Je==null?void 0:Je.format(t));return Gi(e==null?void 0:e.format(t))-n},zo=(t,e,n=1)=>{const{offset:s,timestamp:i}=t(e),r=new Date(i);return r.setMinutes(r.getMinutes()-s*n)},Fs=(t,e)=>zo(t,e,1),Bo=(t,e)=>zo(t,e,-1),th=(()=>{let t,e;Ds!==void 0&&(t=function(){return this.TIMEZONE},e=function(s){if(s!=null)try{const i=new Intl.DateTimeFormat(Yd,{...Gd,timeZone:s}),r=i.resolvedOptions().timeZone;if(this.TIMEZONE===r)return;this.TIMEZONE=r,this.formatter=i}catch{}else this.TIMEZONE=Ds,this.formatter=Je});function n(...s){if(s.length===0)return n.call(this,Date.now());const i=s[0],r=new Date(i).getTime(),o=this.formatter??Je;return Object.freeze({formatted:o==null?void 0:o.format(r),offset:qd(r,o),timestamp:r})}return()=>{const s={TIMEZONE:Ds},i=e==null?void 0:e.bind(s),r=Z({current:{get:t==null?void 0:t.bind(s),set:i},system:{value:Ds}});return Object.defineProperties(n.bind(s),{tz:{get:()=>r,set:i}})}})(),Mi=th,Fo={},$o={},Uo={},Ho={},Go={},eh="ID de pago",nh="Tipo de transacción",sh="Cuenta",ih="Descripción",rh="Cantidad",oh="Hora de creación",ah="Navegación paginada",ch="No se pueden cargar las transacciones",lh="(No establecido)",uh="Editar filtro",dh="Cuenta de saldo",hh="Plataforma de saldo",mh="Seleccione una plataforma de saldo, una cuenta de saldo o una cuenta",fh="Limpiar",Ih="Aplicar",gh="Referencia para el beneficiario",ph="Categoría",yh="Referencia",Mh="Transacciones",Nh="Rango de fechas",Th="Desde",Lh="Hasta",Sh="ID de cuenta de saldo",Ah="Moneda predeterminada",Eh="Creado",_h="Estado",Ch="Expandir contenido",Dh="Ocultar contenido",bh="Detalles de la tienda",Oh="Preautorizar con",vh="Continuar a",Rh="Número de teléfono",xh="Infix",jh="Nombre",wh="Apellido",Ph="Fecha de nacimiento",kh="Correo electrónico del comprador",Wh="Masculino",zh="Femenino",Bh="Detalles personales",Fh="Detalles de la empresa",$h="Apartamento",Uh="Estado",Hh="Dirección",Gh="Provincia o territorio",Yh="Ciudad",Zh="Código postal",Jh="Formato inválido, se espera",Qh="País",Vh="Titular de la cuenta",Xh="Entidad legal",Kh="ID de la entidad legal",qh="Saldos",tm="Saldo actual",em="Saldo disponible",nm="Saldo reservado",sm="Configuración de la cuenta",im="ID del titular de la cuenta",rm="Zona horaria",om="Hora de cierre del día de ventas",am="Días de demora en la liquidación",cm="Detalles de la transacción",lm="Información de procesamiento",um="ID de transferencia",dm="Tipo",hm="Campo incompleto",mm="Detalles de la entidad legal",fm="No",Im="Identificador de cuenta",gm="ID del instrumento de transferencia",pm="Resumen",ym="Instrumentos de transferencia",Mm="ID",Nm="Tipo de entidad legal",Tm="Nombre",Lm="Móvil",Sm="Fax",Am="Teléfono fijo",Em="Correo electrónico",_m="Dirección residencial",Cm="País de residencia",Dm="Nombre legal de la empresa",bm="Tipo de empresa",Om="Nombre comercial",vm="Número de registro",Rm="Número de identificación fiscal",xm="Exento de impuestos",jm="Dirección registrada de la empresa",wm="Incapaz de cargar el titular de la cuenta",Pm="Incapaz de cargar la cuenta de saldo",km="Incapaz de cargar la entidad legal",Wm="Incapaz de cargar la transacción",zm="Descartar",Bm="Organización",Fm="individual",$m="Monto original",Um="Monto instruido",Hm="Fecha",Gm="Lista estructurada",Ym="Pestañas",Zm="Valor",Jm="Barra de filtro",Yo={paymentId:eh,transactionType:nh,account:sh,description:ih,amount:rh,creationTime:oh,paginatedNavigation:ah,"pagination.page":"Página","pagination.previousPage":"Página anterior","pagination.nextPage":"Página siguiente",unableToLoadTransactions:ch,notSet:lh,"filter.date.since":"Desde {date}","filter.date.until":"Hasta {date}","calendar.previousMonth":"Mes anterior","calendar.nextMonth":"Próximo mes","button.resetAll":"Restablecer todo",editFilter:uh,balanceAccount:dh,balancePlatform:hh,toStart:mh,clear:fh,apply:Ih,referenceForBeneficiary:gh,"status.booked":"Reservado","status.active":"Activo","status.inactive":"Inactivo","status.pending":"Pendiente",category:ph,"category.internal":"Interno",reference:yh,transactions:Mh,dateRange:Nh,from:Th,to:Lh,balanceAccountId:Sh,defaultCurrency:Ah,created:Eh,status:_h,expandContent:Ch,hideContent:Dh,storeDetails:bh,preauthorizeWith:Oh,continueTo:vh,telephoneNumber:Rh,infix:xh,firstName:jh,lastName:wh,dateOfBirth:Ph,"dateOfBirth.format":"Formato",shopperEmail:kh,"select.noOptionsFound":"No se encontraron opciones","select.filter.placeholder":"Marcador de posición","select.provinceOrTerritory":"Provincia o territorio","select.state":"Estado","select.country":"País",male:Wh,female:zh,personalDetails:Bh,"field.valid":"Válido","field.invalid":"Inválido",companyDetails:Fh,"companyDetails.name":"Nombre","companyDetails.registrationNumber":"Número de registro","payButton.redirecting":"Redireccionando",apartmentSuite:$h,state:Uh,address:Hh,provinceOrTerritory:Gh,cityTown:Yh,zipCode:Zh,"field.title.optional":"Opcional",invalidFormatExpects:Jh,country:Qh,accountHolder:Vh,legalEntity:Xh,legalEntityID:Kh,balances:qh,currentBalance:tm,availableBalance:em,reservedBalance:nm,accountConfiguration:sm,accountHolderID:im,timezone:rm,salesDayClosingTime:om,settlementDelayDays:am,transactionDetails:cm,processingInformation:lm,transferID:um,type:dm,incompleteField:hm,legalEntityDetails:mm,no:fm,accountIdentifier:Im,transferInstrumentId:gm,overview:pm,transferInstruments:ym,id:Mm,legalEntityType:Nm,name:Tm,mobile:Lm,fax:Sm,landline:Am,email:Em,residentialAddress:_m,countryOfResidence:Cm,legalNameOfTheCompany:Dm,companyType:bm,tradingName:Om,registrationNumber:vm,taxNumber:Rm,taxExempt:xm,registeredBusinessAddress:jm,"txType.payment":"Pago","txType.capture":"Captura","txType.captureReversal":"Reversión de captura","txType.refund":"Reembolso","txType.refundReversal":"Reversión de reembolso","txType.chargeback":"Contracargo","txType.chargebackReversal":"Reversión de contracargo","txType.secondChargeback":"Segundo contracargo","txType.atmWithdrawal":"Retiro de cajero automático","txType.atmWithdrawalReversal":"Reversión de retiro de cajero automático","txType.internalTransfer":"Transferencia interna","txType.manualCorrection":"Corrección manual","txType.invoiceDeduction":"Deducción de factura","txType.depositCorrection":"Corrección de depósito","txType.bankTransfer":"Transferencia bancaria","txType.miscCost":"Costo misceláneo","txType.paymentCost":"Costo de pago","txType.fee":"Cuota","txType.leftover":"Sobrante","txType.balanceAdjustment":"Ajuste de saldo",unableToLoadAccountHolder:wm,unableToLoadBalanceAccount:Pm,unableToLoadLegalEntity:km,unableToLoadTransaction:Wm,dismiss:zm,organization:Bm,individual:Fm,originalAmount:$m,instructedAmount:Um,date:Hm,structuredList:Gm,tabs:Ym,value:Zm,filterBar:Jm,default:"Predeterminado"},Zo={},Jo={},Qo={},Vo={},Xo={},Ko={},qo={},ta={},ea={},na={},sa={},ia={},ra={},oa={},aa={},ca={},la={},ua={},da={},pr={en_US:wo},Qm={ar:Fo},Vm={cs_CZ:$o},Xm={da_DK:Uo},Km={de_DE:Ho},qm={el_GR:Go},tf={es_ES:Yo},ef={fi_FI:Zo},nf={fr_FR:Jo},sf={hr_HR:Qo},rf={hu_HU:Vo},of={it_IT:Xo},af={ja_JP:Ko},cf={ko_KR:qo},lf={nl_NL:ta},uf={no_NO:ea},df={pl_PL:na},hf={pt_BR:sa},mf={pt_PT:ia},ff={ro_RO:ra},If={ru_RU:oa},gf={sk_SK:aa},pf={sl_SI:ca},yf={sv_SE:la},Mf={zh_CN:ua},Nf={zh_TW:da},Tf={zh_TW:da,zh_CN:ua,sv_SE:la,sl_SI:ca,sk_SK:aa,ru_RU:oa,ro_RO:ra,pt_PT:ia,pt_BR:sa,pl_PL:na,no_NO:ea,nl_NL:ta,ko_KR:qo,ja_JP:Ko,it_IT:Xo,hu_HU:Vo,hr_HR:Qo,fr_FR:Jo,fi_FI:Zo,es_ES:Yo,el_GR:Go,de_DE:Ho,da_DK:Uo,cs_CZ:$o,ar:Fo},$s=t=>t.substring(0,2).toLowerCase();function Lf(t,e){if(!t)return null;const n=$s(t);return e.find(s=>$s(s)===n)||null}function yr(t){const e=t.replace("_","-");if(zd.test(e))return e;const[n,s]=e.split("-");if(!n||!s)return null;const i=`${n.toLowerCase()}-${s.toUpperCase()}`;return i.length===5?i:null}function Mr(t,e){const n=t.trim();if(!n||n.length<1||n.length>5)return Ae;const s=yr(n);return s&&e.indexOf(s)>-1?s:Lf(s??n,[...e])}function Sf(t={},e){return Object.keys(t).reduce((n,s)=>{const i=yr(s)||Mr(s,e);return i&&t[s]&&(n[i]=t[s]),n},{})}const ji=(t,e)=>t.replace(/%{(\w+)}/g,(n,s)=>(e==null?void 0:e[s])||""),Af=(t,e,n={values:{},count:0})=>{const s=n.count??0,i=`${e}__${s}`;if(ae(t,i)&&t[i])return ji(t[i],n.values);const r=`${e}__plural`;return ae(t,r)&&s>1&&t[r]?ji(t[r],n.values):ae(t,e)&&t[e]?ji(t[e],n.values):null},Ef=async(t,e,n={})=>{const s=e??{"en-US":pr.en_US},i=Mr(t,Object.keys(s))||Ae,r=s[i];return{...Po,...r,...!!n[t]&&n[t]}};function _f(){let t=this.locale,e=t,n=this.supportedLocales;return Z({load:{value:s=>Ef(t,this.preferredTranslations,s)},locale:{get:()=>t,set:s=>{e=s,t=yr(s)||Mr(s,n)||Ae}},supportedLocales:{get:()=>t,set(s){n=s,this.locale=e}}})}function Cf(){const t={};for(const[e,n]of Object.entries(Object.getOwnPropertyDescriptors(Ni.prototype)))$d.includes(e)||(V(n.get)?t[e]={get:n.get.bind(this)}:V(n.value)?t[e]={value:n.value.bind(this)}:t[e]={get:()=>this[e]});return t}const Df=(()=>{const t=n=>n,e=Z();return n=>{if(n===void 0)return t;const s=[];return i=>(...r)=>{let o=e;try{return s.push(i),i(...r)}catch(a){throw o=a}finally{s.pop(),s.length===0&&o===e&&n()}}}})(),bf=Df,Of=(t={})=>{const e={};for(const n of Object.keys(t)){const{get:s,value:i}=Object.getOwnPropertyDescriptor(t,n);e[n]={enumerable:!0,get:s||(V(i)?i.bind(t):()=>i)}}return Z(e)},vf=()=>{const t={idle:bt,resume:bt},e={};for(const n of Object.keys(t))e[n]={get:()=>t[n],set:s=>{s==null?t[n]=bt:V(s)&&s!==t[n]&&(t[n]=s)}};return Z(e)},ha=Symbol();var _e,Ce,vt,nn,At;class Rf{constructor(e={}){p(this,_e,void 0);p(this,Ce,void 0);p(this,vt,void 0);p(this,nn,new WeakMap);p(this,At,new Map);I(this,_e,vf()),I(this,Ce,Of(e)),this.notifyWatchers=this.notifyWatchers.bind(this),this.watch=this.watch.bind(this)}get idle(){return c(this,At).size===0}get idleCallbacks(){return c(this,_e)}get snapshot(){return c(this,vt)??Object.freeze({...c(this,Ce)})}notifyWatchers(e){if(c(this,At).size===0)return;if(e===ha)return c(this,At).forEach((s,i)=>i(e)),!0;const n=c(this,vt);I(this,vt,Object.freeze({...c(this,Ce)}));for(const s of Object.keys(c(this,vt)))if(!bn(c(this,vt)[s],n[s]))return c(this,At).forEach((i,r)=>r(c(this,vt))),!0;return!1}watch(e){if(!e)return bt;let n=c(this,nn).get(e);const s=c(this,At).get(e)||0,i=this.idle;if(!n){let r=()=>{const o=c(this,At).get(e)||0;o===1?(r=void 0,c(this,nn).delete(e),c(this,At).delete(e),c(this,At).size===0&&(I(this,vt,void 0),c(this,_e).idle())):o>1&&c(this,At).set(e,o-1)};c(this,nn).set(e,n=()=>r==null?void 0:r())}return c(this,At).set(e,s+1),i&&(I(this,vt,Object.freeze({...c(this,Ce)})),c(this,_e).resume()),e(c(this,vt)),n}}_e=new WeakMap,Ce=new WeakMap,vt=new WeakMap,nn=new WeakMap,At=new WeakMap;const xf=t=>{const e=new Rf(t);return Z({callback:{value:e.idleCallbacks},idle:{get:()=>e.idle},notify:{value:e.notifyWatchers},snapshot:{get:()=>e.snapshot},watch:{value:e.watch}})},Fe=Object.defineProperties(xf,{UNWATCH:{value:ha},withSyncEffect:{value:bf}});var Gt,Zn,Jn,sn,Qn,ee,Vn,De,be,rn,Oe,Xn,Yi;class Ni{constructor(e=Ae,n){p(this,Xn);p(this,Gt,Ae);p(this,Zn,$s(c(this,Gt)));p(this,Jn,Cs);p(this,sn,void 0);p(this,Qn,Po);p(this,ee,_f.call(this));p(this,Vn,Promise.resolve());p(this,De,void 0);p(this,be,void 0);p(this,rn,Fe({timestamp:()=>performance.now()}));p(this,Oe,Mi());O(this,"watch",c(this,rn).watch.bind(void 0));O(this,"i18n",Z(Cf.call(this)));O(this,"preferredTranslations");this.watch(bt),this.preferredTranslations=n&&n.reduce((s,i)=>({...s,...i}),{[Ae]:pr.en_US}),this.locale=e}get customTranslations(){return c(this,sn)??{}}set customTranslations(e){let n,s=[...Cs];if(e!=null){n=Sf(e,Cs);const i=Object.keys(n);s=[...Cs,...i].filter((r,o,a)=>a.indexOf(r)===o)}c(this,ee).supportedLocales=s,C(this,Xn,Yi).call(this,n)}get languageCode(){return c(this,Zn)}get lastRefreshTimestamp(){return c(this,rn).snapshot.timestamp}get locale(){return c(this,Gt)}set locale(e){if(e!=null){if(c(this,ee).locale=e,c(this,Gt)===c(this,ee).locale)return;C(this,Xn,Yi).call(this,c(this,sn))}else this.locale=Ae}get ready(){return c(this,Vn)}get supportedLocales(){return c(this,Jn)}get timezone(){return c(this,Oe).tz.current}set timezone(e){c(this,Oe).tz=e}get(e,n){const s=Af(c(this,Qn),e,n);return s!==null?s:e}amount(e,n,s){const{hideSymbol:i,showSign:r,...o}=s||{},a=ll(e,c(this,Gt),n,i,{...o,currencyDisplay:"symbol"});return r&&e!==0?a.includes("-")?`- ${a.replace("-","")}`:`+ ${a}`:a}date(e,n={}){const s={...Fd,timeZone:c(this,Oe).tz.current,...n};return new Date(e).toLocaleDateString(c(this,Gt),s)}fullDate(e){const n=Fs(c(this,Oe),e),[,s,i,r,o]=new Date(n).toString().split(/\s+/g);return`${s} ${i}, ${r}, ${o}`}}Gt=new WeakMap,Zn=new WeakMap,Jn=new WeakMap,sn=new WeakMap,Qn=new WeakMap,ee=new WeakMap,Vn=new WeakMap,De=new WeakMap,be=new WeakMap,rn=new WeakMap,Oe=new WeakMap,Xn=new WeakSet,Yi=function(e){c(this,be)===void 0&&I(this,Vn,new Promise(i=>{I(this,be,()=>{i(c(this,De)),I(this,De,I(this,be,void 0))})}));const n=()=>{var i;c(this,De)===s&&((i=c(this,be))==null||i.call(this))},s=I(this,De,(async()=>{I(this,Qn,await c(this,ee).load(e)),I(this,Gt,c(this,ee).locale),I(this,Jn,c(this,ee).supportedLocales),I(this,sn,e),I(this,Zn,$s(c(this,Gt))),c(this,rn).notify()})());s.then(n).catch(i=>{n(),console.error(i)})};const jf="test";class ma{constructor(e){O(this,"session");O(this,"modules");O(this,"options");O(this,"components",[]);O(this,"localization");O(this,"loadingContext");O(this,"onSessionCreate");O(this,"sessionSetupError");O(this,"updateSession",async()=>{var e;try{if(this.options.onSessionCreate)return this.session=new el(await this.options.onSessionCreate(),this.loadingContext),await((e=this.session)==null?void 0:e.setupSession(this.options)),await this.update({}),this}catch(n){return this.options.onError&&this.options.onError(n),this.sessionSetupError=!0,await this.update(),this}});O(this,"update",(e=P,n=!1)=>(this.setOptions(e),this.initialize(n).then(()=>(this.components.forEach(s=>s.update(this.getPropsForComponent(this.options))),this))));O(this,"remove",e=>(this.components=this.components.filter(n=>n._id!==e._id),e.unmount(),this));O(this,"registerComponent",e=>{this.components.push(e)});O(this,"setOptions",e=>{var n,s,i;return this.options={...this.options,...e},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(s=this.options)==null?void 0:s.translations,this.localization.timezone=(i=this.options)==null?void 0:i.timezone,this.onSessionCreate=this.options.onSessionCreate,this.modules={i18n:this.localization.i18n},this});this.options={environment:jf,...e},this.localization=new Ni(e.locale,e.availableTranslations),this.loadingContext=Bc(this.options.environment),this.setOptions(e)}async initialize(e=!1){return!this.sessionSetupError&&(e||!this.session&&this.onSessionCreate)&&await this.updateSession(),Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(e){return{...e,i18n:this.modules.i18n,modules:this.modules,session:this.session,loadingContext:this.loadingContext,_parentInstance:this}}}O(ma,"version",{version:"0.1.1",revision:"7297bc9",branch:"main",buildId:"@adyen/adyen-fp-web-b6fd87aa-a010-4af9-b41f-173e2e285cf1"});const fa=ma;var wf=0;function d(t,e,n,s,i,r){var o,a,l={};for(a in e)a=="ref"?o=e[a]:l[a]=e[a];var u={type:t,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--wf,__source:i,__self:r};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)l[a]===void 0&&(l[a]=o[a]);return S.options.vnode&&S.options.vnode(u),u}const Ia=S.createContext({token:"",endpoints:P}),Pf=({token:t,endpoints:e,children:n,updateCore:s,sessionSetupError:i})=>d(Ia.Provider,{value:{token:t,endpoints:e,updateCore:s,sessionSetupError:i},children:S.toChildArray(n)}),kf=Pf;var Ue,tt,wi,Br,En=0,ga=[],Os=[],Fr=S.options.__b,$r=S.options.__r,Ur=S.options.diffed,Hr=S.options.__c,Gr=S.options.unmount;function As(t,e){S.options.__h&&S.options.__h(tt,t,En||e),En=0;var n=tt.__H||(tt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Os}),n.__[t]}function B(t){return En=1,Ti(Ma,t)}function Ti(t,e,n){var s=As(Ue++,2);if(s.t=t,!s.__c&&(s.__=[n?n(e):Ma(void 0,e),function(a){var l=s.__N?s.__N[0]:s.__[0],u=s.t(l,a);l!==u&&(s.__N=[u,s.__[1]],s.__c.setState({}))}],s.__c=tt,!tt.u)){var i=function(a,l,u){if(!s.__c.__H)return!0;var h=s.__c.__H.__.filter(function(f){return f.__c});if(h.every(function(f){return!f.__N}))return!r||r.call(this,a,l,u);var m=!1;return h.forEach(function(f){if(f.__N){var g=f.__[0];f.__=f.__N,f.__N=void 0,g!==f.__[0]&&(m=!0)}}),!(!m&&s.__c.props===a)&&(!r||r.call(this,a,l,u))};tt.u=!0;var r=tt.shouldComponentUpdate,o=tt.componentWillUpdate;tt.componentWillUpdate=function(a,l,u){if(this.__e){var h=r;r=void 0,i(a,l,u),r=h}o&&o.call(this,a,l,u)},tt.shouldComponentUpdate=i}return s.__N||s.__}function k(t,e){var n=As(Ue++,3);!S.options.__s&&Nr(n.__H,e)&&(n.__=t,n.i=e,tt.__H.__h.push(n))}function pa(t,e){var n=As(Ue++,4);!S.options.__s&&Nr(n.__H,e)&&(n.__=t,n.i=e,tt.__h.push(n))}function R(t){return En=5,y(function(){return{current:t}},[])}function Wf(t,e,n){En=6,pa(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function y(t,e){var n=As(Ue++,7);return Nr(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function _(t,e){return En=8,y(function(){return t},e)}function ya(t){var e=tt.context[t.__c],n=As(Ue++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(tt)),e.props.value):t.__}function zf(){for(var t;t=ga.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(vs),t.__H.__h.forEach(Zi),t.__H.__h=[]}catch(e){t.__H.__h=[],S.options.__e(e,t.__v)}}S.options.__b=function(t){tt=null,Fr&&Fr(t)},S.options.__r=function(t){$r&&$r(t),Ue=0;var e=(tt=t.__c).__H;e&&(wi===tt?(e.__h=[],tt.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Os,n.__N=n.i=void 0})):(e.__h.forEach(vs),e.__h.forEach(Zi),e.__h=[],Ue=0)),wi=tt},S.options.diffed=function(t){Ur&&Ur(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ga.push(e)!==1&&Br===S.options.requestAnimationFrame||((Br=S.options.requestAnimationFrame)||Bf)(zf)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Os&&(n.__=n.__V),n.i=void 0,n.__V=Os})),wi=tt=null},S.options.__c=function(t,e){e.some(function(n){try{n.__h.forEach(vs),n.__h=n.__h.filter(function(s){return!s.__||Zi(s)})}catch(s){e.some(function(i){i.__h&&(i.__h=[])}),e=[],S.options.__e(s,n.__v)}}),Hr&&Hr(t,e)},S.options.unmount=function(t){Gr&&Gr(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(s){try{vs(s)}catch(i){e=i}}),n.__H=void 0,e&&S.options.__e(e,n.__v))};var Yr=typeof requestAnimationFrame=="function";function Bf(t){var e,n=function(){clearTimeout(s),Yr&&cancelAnimationFrame(e),setTimeout(t)},s=setTimeout(n,100);Yr&&(e=requestAnimationFrame(n))}function vs(t){var e=tt,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),tt=e}function Zi(t){var e=tt;t.__c=t.__(),tt=e}function Nr(t,e){return!t||t.length!==e.length||e.some(function(n,s){return n!==t[s]})}function Ma(t,e){return typeof e=="function"?e(t):e}const Na=S.createContext({i18n:new Ni().i18n,loadingContext:"",commonProps:{}}),Ff=(t=!1)=>{const[e,n]=B(t),s=_(r=>n(r),[]),i=_(()=>n(r=>!r),[]);return[e,s,i]},te=Ff,$f=({i18n:t=new Ni().i18n,children:e,commonProps:n,loadingContext:s})=>{const[i,r]=te(!1),o=y(()=>n||{},[n]),a=y(()=>s??"",[s]);return k(()=>{(async()=>{await(t==null?void 0:t.ready),r(!0)})().catch()},[]),i?d(Na.Provider,{value:{i18n:t,commonProps:o,loadingContext:a},children:S.toChildArray(e)}):null},Uf=$f;class Hf{constructor(){O(this,"events",{});O(this,"on",(e,n)=>{var s;this.events[e]=this.events[e]||[],(s=this.events[e])==null||s.push(n)});O(this,"off",(e,n)=>{this.events[e]&&(this.events[e]=this.events[e].reduce((s,i)=>(i!==n&&s.push(i),s),[]))});O(this,"emit",(e,n)=>{var s;this.events[e]&&((s=this.events[e])==null||s.forEach(i=>{i(n)}))})}}const Gf=Hf;function Ta(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const Yf=t=>!!(t==null||/^[\s]*$/.test(t)),Me=t=>typeof t=="string"||t instanceof String;var Do;class Ji{constructor(e){O(this,"_id",`${(Do=this.constructor)==null?void 0:Do.type}-${Ta()}`);O(this,"props");O(this,"state");O(this,"defaultProps",{});O(this,"_node");O(this,"_component");O(this,"eventEmitter",new Gf);O(this,"_parentInstance");O(this,"sessionSetupError");O(this,"loadingContext");O(this,"i18n");O(this,"session");this.props=this.formatProps({...this==null?void 0:this.defaultProps,...e}),this._parentInstance=this.props._parentInstance,this._node=null,this.state={},this.loadingContext=this.props.core.loadingContext,this.i18n=this.props.core.modules.i18n,this.session=this.props.core.session,this.props.core.registerComponent(this)}formatProps(e){return e}formatData(){return{}}setState(e){this.state={...this.state,...e}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(e){var s,i;let n;if(Me(e)?n=document.querySelector(e):n=e,!n)throw new Error("Component could not mount. Root node was not found.");return this._node?this.unmount():this.props.modules&&this.props.modules.analytics&&this.props.modules.analytics.send({containerWidth:n&&n.offsetWidth,component:((s=this.constructor)==null?void 0:s.analyticsType)??((i=this.constructor)==null?void 0:i.type),flavor:"components"}),this._node=n,this._component=this.render(),S.render(this._component,n),this}update(e){return this.props=this.formatProps({...this.props,...e}),this.sessionSetupError=this.props.core.sessionSetupError,this.session=this.props.core.session,this._component=this.render(),this._node&&S.render(this._component,this._node),this}remount(e){if(!this._node)throw new Error("Component is not mounted.");const n=e||this.render();return S.render(n,this._node,void 0),this}unmount(){return this._node&&S.render(null,this._node),this}remove(){this.unmount(),this._parentInstance&&this._parentInstance.remove(this)}}O(Ji,"type"),O(Ji,"analyticsType");const Zf=Ji,Jf=({name:t,loadingContext:e,imageFolder:n="",parentFolder:s="",extension:i,size:r="",subFolder:o=""})=>`${e}images/${n}${o}${s}${t}${r}.${i}`,Qf=({loadingContext:t=Ui,extension:e="svg",...n})=>s=>{const i={extension:e,loadingContext:t,imageFolder:"logos/",parentFolder:"",name:s,...n};return Jf(i)},Vf=Qf;class Xf extends Zf{constructor(n){super(n);O(this,"componentRef");O(this,"elementRef");O(this,"onContactSupport");O(this,"componentToRender");O(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.componentRef=null,this.elementRef=this.props&&this.props.elementRef||this,this.componentToRender=null,this.sessionSetupError=this.props.core.sessionSetupError}get isValid(){return!!this.state.isValid}get icon(){var n;return Vf({loadingContext:this.loadingContext})((n=this.constructor)==null?void 0:n.type)}get displayName(){var n;return this.props.name||((n=this.constructor)==null?void 0:n.type)}get accessibleName(){return this.displayName}get type(){return this.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,s){var i,r;return(i=this.componentRef)!=null&&i.setStatus?this.componentRef.setStatus(n,s):(r=this.setUIElementStatus)==null||r.call(this,n),this}render(){var n,s,i;return d(kf,{endpoints:((s=(n=this.session)==null?void 0:n.configuration)==null?void 0:s.endpoints)||P,token:((i=this.session)==null?void 0:i.token)??"",updateCore:this.props.core.update.bind(this.props.core),sessionSetupError:this.sessionSetupError,children:d(Uf,{i18n:this.i18n,loadingContext:this.loadingContext,children:this.componentToRender&&d(S.Fragment,{children:this.componentToRender()})})})}}const La=Xf;const Kf=()=>ya(Ia),Li=Kf,qf=(()=>{let t,e;return n=>(n!==t&&(t=n,e=(s,i,r)=>xo({...s,headers:{...s.headers,Authorization:`Bearer ${t}`},method:i},r)),e)})();function tI(){const{token:t,updateCore:e}=Li();return{httpProvider:y(()=>{const s=qf(t);return async(i,r,o)=>{try{return await s(i,r,o)}catch(a){if(a.type===Ro.EXPIRED_TOKEN)return await(e==null?void 0:e(P,!0)),s(i,r,o);throw a}}},[t,e])}}const eI=()=>ya(Na),K=eI,Es=t=>{const{endpoints:e}=Li(),{loadingContext:n}=K(),{httpProvider:s}=tI();return _(async(...i)=>{const r=i[0],o=i[1]||P,a=e[t],l=o.path;let u=a.url;if(l){const h=Object.keys(l)[0];u=u.replace(`{${h}}`,l[h])}return s({loadingContext:n,path:u,...r,params:o.query&&Jc(o.query)},a.method??"GET")},[t,e,s,n])};function Si({fetchOptions:t={keepPrevData:!0},queryFn:e,params:n}){R(new Map);const s=R(!1),i={error:void 0,data:void 0,isFetching:t.enabled!==!1},r=(u,h)=>{switch(h.type){case"loading":return{...i,isFetching:!0,data:t.keepPrevData?u.data:void 0};case"fetched":return{...i,data:h.payload,isFetching:!1};case"error":return{...i,error:h.payload,isFetching:!1};default:return u}},[o,a]=Ti(r,i),l=_(async()=>{a({type:"loading"});try{if(s.current)return;const u=await e();a({type:"fetched",payload:u})}catch(u){if(s.current)return;a({type:"error",payload:u})}},[a,e]);return k(()=>(s.current=!1,t.enabled!==!1&&l(),()=>{s.current=!0}),[t.enabled,l]),o}var Tt=(t=>(t.PRIMARY="primary",t.SECONDARY="secondary",t.TERTIARY="tertiary",t.LINK="link",t))(Tt||{});const Zr=/^\s+|\s+(?=\s|$)/g,tn=(t,e)=>(e?typeof e=="string"?e:(e==null?void 0:e.value)??"":"").replace(Zr,"")||t.replace(Zr,"")||void 0,Us=(t,e,n)=>G(tn("",n),tn(tn("",e)||"",t)),Tr=(t,e=[],n=[])=>G([...n,...e==null?void 0:e.map(s=>t?`${t}--${s}`:s)]),Lr=(t,e,n,s,i)=>{const r=_(a=>{a.preventDefault(),s||i==null||i(a)},[s,i]);return{classes:y(()=>Tr(n,e,[n,t]),[e,t]),click:r}},ce="adyen-fp-button",Qi=`${ce}-actions`,nI=`${ce}--icon`,sI=`${ce}--icon-content`,iI=`${Qi}__container-wrapper`,rI=`${ce}__label`,oI=`${ce}__icon-right`,aI=`${ce}__icon-left`;var F=(t=>(t.CAPTION="caption",t.BODY="body",t.SUBTITLE="subtitle",t.TITLE="title",t))(F||{}),qt=(t=>(t.WIDE="wide",t.STRONGER="stronger",t.STRONGER_WIDE="stronger-wide",t.STRONGEST="strongest",t.STRONGEST_WIDE="strongest-wide",t.MEDIUM="m",t.LARGE="l",t.MOBILE="mobile",t))(qt||{}),_n=(t=>(t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.DIV="div",t.PARAGRAPH="p",t.SPAN="span",t))(_n||{});const Lt="adyen-fp-typography";function Sa(t,e){for(var n in e)t[n]=e[n];return t}function Vi(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var s in e)if(s!=="__source"&&t[s]!==e[s])return!0;return!1}function Jr(t){this.props=t}function ht(t,e){function n(i){var r=this.props.ref,o=r==i.ref;return!o&&r&&(r.call?r(null):r.current=null),e?!e(this.props,i)||!o:Vi(this.props,i)}function s(i){return this.shouldComponentUpdate=n,S.createElement(t,i)}return s.displayName="Memo("+(t.displayName||t.name)+")",s.prototype.isReactComponent=!0,s.__f=!0,s}(Jr.prototype=new S.Component).isPureReactComponent=!0,Jr.prototype.shouldComponentUpdate=function(t,e){return Vi(this.props,t)||Vi(this.state,e)};var Qr=S.options.__b;S.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Qr&&Qr(t)};var cI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vt(t){function e(n){var s=Sa({},n);return delete s.ref,t(s,n.ref||null)}return e.$$typeof=cI,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var lI=S.options.__e;S.options.__e=function(t,e,n,s){if(t.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}lI(t,e,n,s)};var Vr=S.options.unmount;function Aa(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),t.__c.__H=null),(t=Sa({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(s){return Aa(s,e,n)})),t}function Ea(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(s){return Ea(s,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Rs(){this.__u=0,this.t=null,this.__b=null}function _a(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function uI(t){var e,n,s;function i(r){if(e||(e=t()).then(function(o){n=o.default||o},function(o){s=o}),s)throw s;if(!n)throw e;return S.createElement(n,r)}return i.displayName="Lazy",i.__f=!0,i}function bs(){this.u=null,this.o=null}S.options.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Vr&&Vr(t)},(Rs.prototype=new S.Component).__c=function(t,e){var n=e.__c,s=this;s.t==null&&(s.t=[]),s.t.push(n);var i=_a(s.__v),r=!1,o=function(){r||(r=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--s.__u){if(s.state.__a){var u=s.state.__a;s.__v.__k[0]=Ea(u,u.__c.__P,u.__c.__O)}var h;for(s.setState({__a:s.__b=null});h=s.t.pop();)h.forceUpdate()}},l=e.__h===!0;s.__u++||l||s.setState({__a:s.__b=s.__v.__k[0]}),t.then(o,o)},Rs.prototype.componentWillUnmount=function(){this.t=[]},Rs.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),s=this.__v.__k[0].__c;this.__v.__k[0]=Aa(this.__b,n,s.__O=s.__P)}this.__b=null}var i=e.__a&&S.createElement(S.Fragment,null,t.fallback);return i&&(i.__h=null),[S.createElement(S.Fragment,null,e.__a?null:t.children),i]};var Xr=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function dI(t){return this.getChildContext=function(){return t.context},t.children}function hI(t){var e=this,n=t.i;e.componentWillUnmount=function(){S.render(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(s){this.childNodes.push(s),e.i.appendChild(s)},insertBefore:function(s,i){this.childNodes.push(s),e.i.appendChild(s)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),e.i.removeChild(s)}}),S.render(S.createElement(dI,{context:e.context},t.__v),e.l)}function mI(t,e){var n=S.createElement(hI,{__v:t,i:e});return n.containerInfo=e,n}(bs.prototype=new S.Component).__a=function(t){var e=this,n=_a(e.__v),s=e.o.get(t);return s[0]++,function(i){var r=function(){e.props.revealOrder?(s.push(i),Xr(e,t,s)):i()};n?n(r):r()}},bs.prototype.render=function(t){this.u=null,this.o=new Map;var e=S.toChildArray(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},bs.prototype.componentDidUpdate=bs.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Xr(t,n,e)})};var fI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,II=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gI=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,pI=/[A-Z0-9]/g,yI=typeof document<"u",MI=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};S.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(S.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Kr=S.options.event;function NI(){}function TI(){return this.cancelBubble}function LI(){return this.defaultPrevented}S.options.event=function(t){return Kr&&(t=Kr(t)),t.persist=NI,t.isPropagationStopped=TI,t.isDefaultPrevented=LI,t.nativeEvent=t};var SI={enumerable:!1,configurable:!0,get:function(){return this.class}},qr=S.options.vnode;S.options.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,s=e.type,i={};for(var r in n){var o=n[r];if(!(r==="value"&&"defaultValue"in n&&o==null||yI&&r==="children"&&s==="noscript"||r==="class"||r==="className")){var a=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&o===!0?o="":a==="ondoubleclick"?r="ondblclick":a!=="onchange"||s!=="input"&&s!=="textarea"||MI(n.type)?a==="onfocus"?r="onfocusin":a==="onblur"?r="onfocusout":gI.test(r)?r=a:s.indexOf("-")===-1&&II.test(r)?r=r.replace(pI,"-$&").toLowerCase():o===null&&(o=void 0):a=r="oninput",a==="oninput"&&i[r=a]&&(r="oninputCapture"),i[r]=o}}s=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=S.toChildArray(n.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),s=="select"&&i.defaultValue!=null&&(i.value=S.toChildArray(n.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",SI)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=fI,qr&&qr(t)};var to=S.options.__r;S.options.__r=function(t){to&&to(t),t.__c};var eo=S.options.diffed;S.options.diffed=function(t){eo&&eo(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value)};function AI({el:t,className:e,stronger:n,strongest:s,variant:i,medium:r,large:o,wide:a,children:l}){const u=t||"p",h=y(()=>({[`${Lt}--${F.CAPTION}`]:i===F.CAPTION,[`${Lt}--${F.CAPTION}-${qt.WIDE}`]:i===F.CAPTION&&a,[`${Lt}--${F.CAPTION}-${qt.STRONGER}`]:i===F.CAPTION&&n,[`${Lt}--${F.BODY}`]:i===F.BODY,[`${Lt}--${F.BODY}-${qt.WIDE}`]:i===F.BODY&&a,[`${Lt}--${F.BODY}-${qt.STRONGER}`]:i===F.BODY&&n,[`${Lt}--${F.BODY}-${qt.STRONGEST}`]:i===F.BODY&&s,[`${Lt}--${F.SUBTITLE}`]:i===F.SUBTITLE,[`${Lt}--${F.SUBTITLE}-${qt.STRONGER}`]:i===F.SUBTITLE&&n,[`${Lt}--${F.TITLE}`]:i===F.TITLE&&!r&&!o,[`${Lt}--${F.TITLE}-${qt.MEDIUM}`]:i===F.TITLE&&r,[`${Lt}--${F.TITLE}-${qt.LARGE}`]:i===F.TITLE&&o}),[i,a,n,r,o,s]);return d(u,{className:G([`${Lt}`,h,e]),children:l})}const Jt=ht(AI);function EI({variant:t=Tt.PRIMARY,disabled:e=!1,onClick:n,classNameModifiers:s=[],iconLeft:i,iconRight:r,type:o="button",children:a,className:l,iconButton:u=!1,...h},m){const f=y(()=>tn("",l)||"",[l]),g=y(()=>gr(e),[e]),{classes:M,click:A}=Lr(f,[...s,t],ce,g,n);return d("button",{className:u?`${nI} ${M}`:M,type:o,disabled:e,onClick:A,ref:m,...h,children:u?d("div",{className:`${sI}`,children:a}):d(S.Fragment,{children:[i&&d("span",{className:aI,children:i}),d(Jt,{className:rI,el:_n.SPAN,variant:F.BODY,stronger:!0,children:a}),r&&d("span",{className:oI,children:r})]})})}const Qt=Vt(EI);function _I(t){const{i18n:e}=K();return d("div",{"aria-label":e.get("filterBar"),className:"adyen-fp-filter-bar",children:[t.children,t.canResetFilters&&!!t.resetFilters&&d(Qt,{variant:Tt.TERTIARY,onClick:t.resetFilters,children:e.get("button.clearAll")})]})}var U=(t=>(t.CATEGORIES="categories",t.CURRENCIES="currencies",t.STATUSES="statuses",t.CREATED_SINCE="createdSince",t.CREATED_UNTIL="createdUntil",t.MIN_AMOUNT="minAmount",t.MAX_AMOUNT="maxAmount",t))(U||{});function CI(t){return!(!t||!("nodeType"in t))}function DI({title:t,children:e,classNameModifiers:n=[],isOpen:s,onClose:i,isDismissible:r=!0,headerWithBorder:o=!0,size:a="fluid",...l}){const u=R(null),{i18n:h}=K(),m=_(g=>{var M;r&&s&&CI(g.target)&&!((M=u==null?void 0:u.current)!=null&&M.contains(g.target))&&i()},[r,s,i]),f=_(g=>{g.key==="Escape"&&s&&r&&i()},[s,r,i]);return k(()=>(s?window.addEventListener("keydown",f):window.removeEventListener("keydown",f),()=>window.removeEventListener("keydown",f)),[s,f]),d("div",{className:G("adyen-fp-modal-wrapper",n.map(g=>`adyen-fp-modal-wrapper--${g}`),{"adyen-fp-modal-wrapper--open":s,"adyen-fp-modal-wrapper--dismissible":r}),role:"dialog","aria-modal":"true","aria-hidden":!open,onClick:m,...l,children:d("div",{className:G("adyen-fp-modal",{"adyen-fp-modal--fluid":a==="fluid","adyen-fp-modal--small":a==="small","adyen-fp-modal--large":a==="large","adyen-fp-modal--extra-large":a==="extra-large","adyen-fp-modal--full-screen":a==="full-screen"}),ref:u,children:[d("div",{className:G("adyen-fp-modal__header",{"adyen-fp-modal__header--with-title":t,"adyen-fp-modal__header--with-border-bottom":o}),children:[t&&d("div",{className:"adyen-fp-modal__header__title",children:t}),r&&d(Qt,{onClick:i,variant:Tt.TERTIARY,className:"adyen-fp-modal__header-icon","aria-label":h.get("dismiss"),children:d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6569 4.07112C14.0474 3.6806 14.0474 3.04743 13.6569 2.65691C13.2664 2.26638 12.6332 2.26638 12.2427 2.65691L8.00005 6.89954L3.75745 2.65694C3.36692 2.26641 2.73376 2.26641 2.34324 2.65694C1.95271 3.04746 1.95271 3.68063 2.34324 4.07115L6.58584 8.31375L2.34319 12.5564C1.95266 12.9469 1.95266 13.5801 2.34319 13.9706C2.73371 14.3611 3.36688 14.3611 3.7574 13.9706L8.00005 9.72796L12.2427 13.9706C12.6333 14.3612 13.2664 14.3612 13.6569 13.9706C14.0475 13.5801 14.0475 12.947 13.6569 12.5564L9.41426 8.31375L13.6569 4.07112Z",fill:"#000"})})})]}),d("div",{className:"adyen-fp-modal__content",children:e})]})})}const bI=({inline:t=!1,size:e="large"})=>d("div",{className:`adyen-fp-spinner__wrapper ${t?"adyen-fp-spinner__wrapper--inline":""}`,children:d("div",{className:`adyen-fp-spinner adyen-fp-spinner--${e}`})}),OI=bI;function vI(t){return"callback"in t}function RI(t){const[e,n]=B(null),s=_(o=>o&&vI(t[o.selection.type])?{callback:t!=null&&t.callback?a=>{var l,u;return(u=(l=t[o.selection.type])==null?void 0:l.callback)==null?void 0:u.call(l,{showModal:()=>n(o),...a})}:()=>n(o)}:(n(o),{}),[t]),i=_(()=>n(null),[]),r=y(()=>{const o={};for(const a in t){const l=t[a];o[a]=!(l!=null&&l.showDetails.some(u=>u===!1))||!!l.callback}return o},[t]);return{selectedDetail:e,updateDetails:s,detailsToShow:r,resetDetails:i}}function no({children:t,...e}){return d("td",{role:"cell",className:"adyen-fp-data-grid__cell",...e,children:t})}const Ca=({columns:t,customCells:e,item:n})=>d(S.Fragment,{children:t.map(({key:s})=>e!=null&&e[s]?d(no,{"aria-labelledby":String(s),children:e[s]({key:s,value:n[s],item:n})},s):d(no,{"aria-labelledby":String(s),children:n[s]},s))}),xI=({data:t,columns:e,customCells:n})=>d(S.Fragment,{children:t==null?void 0:t.map(s=>d("tr",{className:"adyen-fp-data-grid__row",children:d(Ca,{columns:e,customCells:n,item:s})},s))}),Fn=Symbol("_ref");class Da extends Error{}class jI extends Da{}class wI extends Da{}function Sr(t){if(!V(t))throw new wI}const PI=t=>{try{if(V(t)&&ae(t,"current")&&ae(t,Fn)&&!bn(t,t[Fn])){const e=t.actions.get(P),n=t.actions.size;return e===void 0&&Number.isInteger(n)&&n>=0}}catch{}return!1},$n=t=>PI(t)?$n(t[Fn]):t,kI=(()=>{const t=(s,i)=>{const r=s.get(i);if(!r)throw new jI;return r},e=(s,i,r)=>{let o,a;const l=$n(i);try{o=t(s,l)}catch{Sr(r)}if(o)[,a]=o;else{const u=V(l),h=u?g=>{l(f=g)}:g=>{l.current=g,f=l.current},m=g=>{if(a.size===0)return;const M=f;if(h(g),!bn(f,M))for(const[A]of a)A(f,M)};let f=u?null:l.current;s.set(l,o=[m,a=new Map]),Object.defineProperties(m,{[Fn]:{value:l},actions:{value:Z({get:{value:a.get.bind(a)},size:{get:()=>a.size}})},current:{get:()=>f,set:u?void 0:m}})}return r&&a.set(r,1+(a.get(r)||0)),o[0]},n=(s,i,r)=>{const o=$n(i),[,a]=t(s,o),l=a.get(r)||0;l===1?a.delete(r):l>1&&a.set(r,l-1),a.size===0&&s.delete(o)};return()=>{const s=new WeakMap;return Z({bind:q(e.bind(void 0,s)),unbind:q(n.bind(void 0,s))})}})(),Pi=kI(),WI=t=>{Sr(t);const e=new WeakMap([[t,1]]),n=i=>{if(bn(s,i))return;const r=s;t(s=i,r)};let s=null;return Object.defineProperties(n,{[Fn]:{value:n},actions:{value:Z({get:{value:e.get.bind(e)},size:{value:1}})},current:{get:()=>s,set:n}})},zI=()=>{let t,e=null,n,s=!1;const i=l=>{t=void 0,e=null,n=l,s=!1},r=()=>{s||(o(),s=!0)},o=()=>{try{if(!e)return;Pi.unbind(e,n)}catch{}};return Z({action:{get:()=>n},reflex:{get:()=>t},release:{value:r},update:{value:(l,u)=>{Sr(l),s&&i(l);const h=u??null;if(n===l&&e===h){if(t)return}else if(e){if(bn($n(e),$n(h))){t=Pi.bind(e,l),o(),n=l;return}o()}n=l,t=(e=h)?Pi.bind(e,n):WI(n)}}})},BI=(t,e)=>{const n=R(zI());return pa(()=>n.current.release,[]),y(()=>(n.current.update(t,e),n.current.reflex),[t,e])},le=BI;var w=(t=>(t.ARROW_DOWN="ArrowDown",t.ARROW_LEFT="ArrowLeft",t.ARROW_RIGHT="ArrowRight",t.ARROW_UP="ArrowUp",t.BACKSPACE="Backspace",t.END="End",t.ENTER="Enter",t.ESCAPE="Escape",t.HOME="Home",t.PAGE_DOWN="PageDown",t.PAGE_UP="PageUp",t.SPACE="Space",t.TAB="Tab",t))(w||{});const FI=({totalRows:t})=>{const[e,n]=Ti((o,a)=>{const l=t;if(l>1){const u=a.index;if(u<l&&u>=0)return a.type==="ACTIVE"?Object.freeze({...o,index:a.index??0,activeIndex:a.index}):Object.freeze({...o,index:a.index??0,activeIndex:-1})}return o},YI),s=le(_(o=>{var l;if(!(o instanceof Element))return;const a=Number((l=o.dataset)==null?void 0:l.index);e.activeIndex===-1&&a===0||a===e.index?o.setAttribute("tabindex","0"):o.setAttribute("tabindex","-1"),a===e.activeIndex&&(o==null||o.focus())},[e.activeIndex,e.index])),i=_(o=>{var l,u;if(!(((l=o.target)==null?void 0:l.localName)==="tr")){o.code===w.ARROW_LEFT&&n({type:"ACTIVE",index:e.index});return}switch(o.code){case w.ARROW_DOWN:case w.ARROW_UP:n({type:"ACTIVE",index:o.code===w.ARROW_DOWN?e.index+1:e.index-1});break;case w.HOME:n({type:"ACTIVE",index:0});break;case w.END:n({type:"ACTIVE",index:t-1});break;case w.ENTER:(u=o.currentTarget)==null||u.click();break;default:return}o.stopPropagation()},[t,e.index]),r=_(o=>a=>{var u;(!(((u=a.target)==null?void 0:u.localName)==="tr")||e.index===-1)&&n({type:"CURRENT",index:o})},[e.index]);return{listeners:{onKeyDownCapture:i,onFocusCapture:r},ref:s,activeIndex:e.activeIndex,currentIndex:e.index}},$I=({data:t,columns:e,onRowClick:n,customCells:s})=>{const i=_(l=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?l[n.retrievedField]:l),[n]),{currentIndex:r,listeners:o,ref:a}=FI({totalRows:(t==null?void 0:t.length)??0});return d(S.Fragment,{children:t==null?void 0:t.map((l,u)=>d("tr",{ref:a,"aria-selected":u===r,"data-index":u,className:"adyen-fp-data-grid__row adyen-fp-data-grid__row--clickable",onClick:i(l),onFocusCapture:o.onFocusCapture(u),onKeyDownCapture:o.onKeyDownCapture,children:d(Ca,{columns:e,customCells:s,item:l})},l))})};var Hs=(t=>(t.CENTER="center",t.RIGHT="right",t))(Hs||{});const UI=({columnsNumber:t,loading:e,emptyMessageDisplay:n})=>{const s=Array.from({length:10},(r,o)=>o),i=Array.from({length:t},(r,o)=>o);return d(S.Fragment,{children:[s.map((r,o)=>d("tr",{className:"adyen-fp-data-grid__row",children:i.map((a,l)=>d("td",{className:"adyen-fp-data-grid__cell adyen-fp-data-grid__skeleton-cell",children:d("span",{className:G({"adyen-fp-data-grid__skeleton-cell-content adyen-fp-data-grid__skeleton-cell-content--loading":e,"adyen-fp-data-grid__empty-cell":!e})})},`adyen-fp-data-grid-skeleton-cell-${l}`))},`adyen-fp-data-grid-skeleton-row-${o}`)),!e&&n&&n]})};const HI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR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ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",so={md:680,lg:1024},Ai=({title:t,message:e,imageDesktop:n,imageMobile:s,withImage:i,centered:r,refreshComponent:o,onContactSupport:a})=>{const{i18n:l}=K(),{updateCore:u}=Li(),h=_(m=>Array.isArray(m)?m.map((f,g)=>g===0?l.get(f):d(S.Fragment,{children:[d("br",{}),l.get(f)]})):l.get(m),[l]);return d("div",{className:`adyen-fp-error-message-display ${r?"adyen-fp-error-message-display--centered":""}`,children:[(n||s||i)&&d("div",{className:"adyen-fp-error-message-display__illustration",children:d("picture",{children:[d("source",{type:"image/svg+xml",media:`(min-width: ${so.md}px)`,srcSet:n}),d("source",{type:"image/svg+xml",media:`(max-width: ${so.md}px)`,srcSet:s}),d("img",{srcSet:n??HI,alt:l.get("thereWasAnUnexpectedError")})]})}),d(Jt,{variant:F.TITLE,children:l.get(t)}),e&&d(Jt,{variant:F.BODY,children:h(e)}),(a||o)&&d("div",{className:"adyen-fp-error-message-display__button",children:[a&&d(Qt,{onClick:a,children:l.get("reachOutToSupport")}),!a&&o&&d(Qt,{onClick:()=>u==null?void 0:u(),children:l.get("refreshThePage")})]})]})},GI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsb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y0uMS4xLTguOSAxMS0yMS40LjdabTIzLjEtNC40YzEuNC0zLjQgNi4zLTEyLjUgOS44LTExLjdhOTAuNyA5MC43IDAgMCAxIDQ2LjIgMjkuN2M0LjQgNS40IDIgOC43IDIgOC43bC03LjEgMTguOHMtMy42IDItMTUuNCAxLjdjLTE3LjQtLjUtMzguOC0yNi44LTM5LjUtMzAuNmE0OC4zIDQ4LjMgMCAwIDEgNC0xNi42Wk0xMTkuOSAxOGMwLTIuNSAxLjEtNC45IDIuNy02LjggMS45LTIuMiA0LjUtMy44IDcuNC00LjIgMi45LS40IDUuOS42IDcuOSAyLjdhNC44IDQuOCAwIDAgMC0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",YI=Object.freeze({activeIndex:-1,index:-1});function Gs({errorDisplay:t,...e}){var o,a,l;const s=S.toChildArray(e.children).find(u=>(u==null?void 0:u.type)===ba),i=!e.loading&&((o=e.data)==null?void 0:o.length)===0&&!e.error,r=y(()=>!e.loading&&i||e.error,[i,e.error,e.loading]);return d("div",{className:G("adyen-fp-data-grid",{"adyen-fp-data-grid--condensed":e.condensed,"adyen-fp-data-grid--outline":e.outline,"adyen-fp-data-grid--scrollable":e.scrollable,"adyen-fp-data-grid--loading":e.loading,"adyen-fp-data-grid--empty":i||e.error}),children:d(S.Fragment,{children:[d("div",{className:"adyen-fp-data-grid__table-wrapper",children:[d("table",{className:"adyen-fp-data-grid__table",children:[d("thead",{className:"adyen-fp-data-grid__head",children:d("tr",{role:"rowheader",className:"adyen-fp-data-grid__row",children:e.columns.map(u=>d("th",{role:"columnheader",id:String(u.key),className:G("adyen-fp-data-grid__cell adyen-fp-data-grid__cell--heading",{"adyen-fp-data-grid__cell--right":u.position===Hs.RIGHT,"adyen-fp-data-grid__cell--center":u.position===Hs.CENTER}),children:u.label},u.key))})}),d(ZI,{...e,emptyBody:i})]}),r&&(e.error&&t?t():d(Ai,{title:((a=e.emptyTableMessage)==null?void 0:a.title)??"thereAreNoResults",message:(l=e.emptyTableMessage)==null?void 0:l.message,imageDesktop:GI,centered:!0}))]}),s]})})}function ZI(t){const e=y(()=>t.loading||t.emptyBody||t.error,[t.emptyBody,t.error,t.loading]);return d("tbody",{className:G("adyen-fp-data-grid__body"),children:e?d(UI,{columnsNumber:t.columns.length,loading:t.loading}):t.onRowClick?d($I,{data:t.data,columns:t.columns,onRowClick:t.onRowClick,customCells:t.customCells}):d(xI,{data:t.data,customCells:t.customCells,columns:t.columns})})}Gs.Footer=ba;function ba({children:t}){return d("div",{className:"adyen-fp-data-grid__footer",children:t})}Gs.defaultProps={condensed:!1,outline:!0,scrollable:!0};const Xi="-ariaError";var dt=(t=>(t[t.NONE=0]="NONE",t[t.APPLY=1]="APPLY",t[t.CLEAR=2]="CLEAR",t))(dt||{});const JI=({applyDisabled:t,applyTitle:e,resetDisabled:n,resetTitle:s}=P)=>{const{i18n:i}=K(),[r,o]=B(dt.NONE),[a,l]=B(r!==dt.NONE),u=_(()=>o(dt.APPLY),[o]),h=_(()=>o(dt.CLEAR),[o]),m=_(()=>o(dt.NONE),[o]),f=y(()=>({disabled:t===!0,event:u,title:(e==null?void 0:e.trim())||i.get("apply"),variant:Tt.PRIMARY}),[i,u,t,e]),g=y(()=>({disabled:n===!0,event:h,title:(s==null?void 0:s.trim())||i.get("reset"),variant:Tt.SECONDARY}),[i,h,n,s]),M=y(()=>[f,g],[f,g]);return k(()=>{switch(l(r!==dt.NONE),r){case dt.APPLY:case dt.CLEAR:m();break}},[r,l,m]),{commitAction:r,commitActionButtons:M,committing:a,resetCommitAction:m}},Oa=JI,io=t=>{t.stopImmediatePropagation()},Ar=(t,e)=>{const n=R(null),s=_(r=>{const o=r.composedPath();if(n&&n.current&&o.length){const a=o.some(l=>(l==null?void 0:l.isSameNode)&&l.isSameNode(n.current));e&&!a&&e(!0)}},[e]),i=R(s);return k(()=>(document.removeEventListener("click",i.current,!0),i.current=s,document.addEventListener("click",i.current,!0),()=>document.removeEventListener("click",i.current,!0)),[s]),le(_((r,o)=>{o instanceof Element&&o.removeEventListener("focusout",io,!0),r instanceof Element&&r.addEventListener("focusout",io,!0),n.current=r},[]),t)};function va(t){const{backgroundUrl:e="",className:n="",classNameModifiers:s=[],src:i="",alt:r="",showOnError:o=!1}=t,[a,l]=B(!1),u=R(null),h=()=>{l(!0)},m=()=>{l(o)},f=G([n],"adyen-fp-image",{"adyen-fp-image--loaded":a},...s.map(g=>`adyen-fp-image--${g}`));return k(()=>{const g=e?new Image:u.current;g&&(g.src=e||i,g.onload=h),l(!!(g!=null&&g.complete))},[]),e?d("div",{style:{backgroundUrl:e},...t,className:f}):d("img",{...t,alt:r,ref:u,className:f,onError:m})}const QI=t=>Vt(t),Ne=QI,VI=Ne(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.47 4.97c.3-.3.77-.3 1.06 0L8 9.44l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5c-.3.3-.77.3-1.06 0l-5-5a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})]})),Er=VI,Cn="adyen-fp-dropdown",XI=Tr(ce,[Tt.SECONDARY],[ce]),Xt=`${Cn}__button`,KI=`${Xt}--active`,qI=`${Xt}-collapse-indicator`,tg=`${Xt}--has-selection`,eg=`${Xt}-icon`,ng=`${Xt}-multiselect-counter`,sg=`${Xt}--readonly`,ig=`${Xt}-text`,rg=`${Xt}--valid`,og=`${Xt}--invalid`,ue=`${Cn}__element`,ag=`${ue}--active`,cg=`${ue}-checkbox`,lg=`${ue}-checkmark`,ug=`${ue}-content`,dg=`${ue}--disabled`,hg=`${ue}-icon`,mg=`${ue}--no-option`,Ra=`${Cn}__list`,fg=`${Ra}--active`,Ig=`${Cn}--multiselect`,gg=({active:t,disabled:e,className:n,filterable:s,toggleButtonRef:i,...r})=>{const o=y(()=>s?G(XI,n):n,[n,s]);return s?d("div",{...r,className:o,ref:i}):d(Qt,{...r,className:o,disabled:e,variant:Tt.SECONDARY,ref:i})},pg=t=>{var f;const{i18n:e}=K(),{active:n,filterable:s,multiSelect:i,placeholder:r,readonly:o,showList:a,withoutCollapseIndicator:l}=t,u=y(()=>(r==null?void 0:r.trim())||e.get("select.filter.placeholder"),[e,r]),h=y(()=>i===!0?void 0:n[0],[n,i]),m=y(()=>{var g;return((g=h==null?void 0:h.name)==null?void 0:g.trim())||u},[h,u]);return d(gg,{active:n,disabled:o,"aria-disabled":o,"aria-expanded":a,"aria-haspopup":"listbox",className:G(Xt,{[KI]:a,[tg]:!!n.length,[sg]:o,[og]:t.isInvalid,[rg]:t.isValid}),filterable:s,onClick:o?void 0:t.toggleList,onKeyDown:o?void 0:t.onButtonKeyDown,role:s?"button":void 0,tabIndex:0,title:m,toggleButtonRef:t.toggleButtonRef,type:s?"":"button","aria-describedby":t.ariaDescribedBy,id:t.id??"",children:[a&&s?d("input",{"aria-autocomplete":"list","aria-controls":t.selectListId,"aria-expanded":a,"aria-owns":t.selectListId,autoComplete:"off",className:"adyen-fp-filter-input",onInput:t.onInput,placeholder:u,ref:t.filterInputRef,role:"combobox",type:"text"}):d(S.Fragment,{children:[(h==null?void 0:h.icon)&&d(va,{className:eg,src:h.icon,alt:h.name.trim()}),d("span",{className:ig,children:((f=h==null?void 0:h.selectedOptionName)==null?void 0:f.trim())||(h==null?void 0:h.name.trim())||u}),i&&t.appliedFilterNumber>0&&d("div",{className:ng,children:d(Jt,{el:_n.SPAN,variant:F.BODY,stronger:!0,children:t.appliedFilterNumber})})]}),!l&&d("span",{className:qI,children:d(Er,{role:"presentation"})})]})},yg=pg,Mg=Ne(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("path",{fill:"currentColor",d:"M1.25 3.5c0-1.24 1-2.25 2.25-2.25h9c1.24 0 2.25 1 2.25 2.25v9c0 1.24-1 2.25-2.25 2.25h-9c-1.24 0-2.25-1-2.25-2.25v-9ZM12.06 6 11 4.94l-4 4-2-2L3.94 8 7 11.06 12.06 6Z"})]})),Ng=Ne(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("path",{stroke:"currentColor",d:"M.5 4C.5 2 2.1.5 4 .5h8c2 0 3.5 1.6 3.5 3.5v8c0 2-1.6 3.5-3.5 3.5H4C2 15.5.5 13.9.5 12V4Z"})]})),Tg=Ne(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[t&&d("title",{children:t}),d("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14.5 4.5a.7.7 0 0 0-1-1L6 10.9 2.5 7.5a.8.8 0 0 0-1 1l4 4a.8.8 0 0 0 1 0l8-8Z","clip-rule":"evenodd"})]})),Lg=({iconClassName:t,item:e,multiSelect:n,selected:s})=>d(S.Fragment,{children:[n&&d("span",{className:cg,children:s?d(Mg,{role:"presentation"}):d(Ng,{role:"presentation"})}),d("div",{className:ug,children:[e.icon&&d(va,{className:t,alt:e.name,src:e.icon}),d("span",{children:e.name})]}),!n&&d("span",{className:lg,children:s&&d(Tg,{role:"presentation"})})]}),Sg=({item:t,multiSelect:e,onKeyDown:n,onSelect:s,renderListItem:i,selected:r})=>{const o=!!t.disabled,a=t.disabled===!0||null,l=G(ue,{[ag]:r,[dg]:o});return d("li",{"aria-disabled":o,"aria-selected":r,className:l,"data-disabled":a,"data-value":t.id,onClick:s,onKeyDown:n,title:t.name,role:"option",tabIndex:-1,children:i({item:t,multiSelect:e,selected:r,iconClassName:hg})})},Ag=ht(Sg);var _r=(t=>(t.BUTTONS_END="buttons-end",t.FILL_CONTAINER="fill-container",t.SPACE_BETWEEN="space-between",t.VERTICAL_STACK="vertical-stack",t))(_r||{}),xa=(t=>(t.BUTTONS_START="buttons-start",t))(xa||{});const Eg={..._r,...xa};function _g({actions:t,layout:e=Eg.BUTTONS_END}){const n=()=>`${Qi}--${e}`,s=r=>{const o=t.length-1;return r===o?Tt.PRIMARY:Tt.SECONDARY},i=y(()=>[...t].reverse(),[t]);return d("div",{className:Qi,children:d("div",{className:`${iI} ${n()}`,role:"group",children:i.map((r,o)=>d(Qt,{"aria-label":r.title,disabled:r.disabled,variant:r.variant||s(o),onClick:r.event,children:r.title},o))})})}const Cg=ht(_g),Bt="adyen-fp-popover",Dg=`${Bt}-container`,ro=`${Bt}__header`,bg=`${Bt}__header-title`,xs=`${Bt}__content`,Og=`${Bt}__footer`;function vg({image:t=!0,onClick:e}){const{i18n:n}=K(),s=()=>t?"adyen-fp-popover-dismiss-button--on-image":"";return d(S.Fragment,{children:d(Qt,{className:s(),iconButton:!0,variant:Tt.TERTIARY,onClick:e,"aria-label":n.get("closeIconLabel"),children:d("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[d("title",{children:"dismiss"}),d("path",{fill:"#00112C",fillRule:"evenodd",d:"M11.4697 12.5303C11.7626 12.8232 12.2374 12.8232 12.5303 12.5303C12.8232 12.2374 12.8232 11.7626 12.5303 11.4697L9.06066 8L12.5303 4.53033C12.8232 4.23744 12.8232 3.76256 12.5303 3.46967C12.2374 3.17678 11.7626 3.17678 11.4697 3.46967L8 6.93934L4.53033 3.46967C4.23744 3.17678 3.76256 3.17678 3.46967 3.46967C3.17678 3.76256 3.17678 4.23744 3.46967 4.53033L6.93934 8L3.46967 11.4697C3.17678 11.7626 3.17678 12.2374 3.46967 12.5303C3.76256 12.8232 4.23744 12.8232 4.53033 12.5303L8 9.06066L11.4697 12.5303Z",clipRule:"evenodd"})]})})})}const Rg=ht(vg);function xg({title:t,isImageTitle:e=!1}){return d(Jt,{strongest:!e,variant:(()=>e?F.SUBTITLE:F.BODY)(),children:t})}const jg=ht(xg);var Ei=(t=>(t.TOOLTIP="tooltip",t.POPOVER="popover",t))(Ei||{}),yt=(t=>(t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t))(yt||{}),Un=(t=>(t.MEDIUM="medium",t.WIDE="wide",t))(Un||{});const Cr=`
2
+ a[href],
3
+ audio[controls],
4
+ video[controls],
5
+ button,
6
+ input,
7
+ select,
8
+ textarea,
9
+ [contenteditable],
10
+ [tabindex]
11
+ `.replace(/\s+/,""),wg=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],oo=new Map,ao=Function.prototype.call.bind(Array.prototype.some),ja=t=>t.tagName==="INPUT",Pg=t=>ja(t)&&t.type==="radio",kg=t=>{const e=t.name,n=t.form,s=oo.get(n);let i=s==null?void 0:s.get(e);return i===void 0&&n&&(i=n.querySelector(`input[type=radio][name='${e}']:checked`)||null,oo.set(n,(s||new Map).set(e,i))),i===t},Wg=(t,e)=>{for(const n of e)if(n.type!=="attributes"){if(ao(n.addedNodes,s=>s instanceof Element&&Ki(s))||ao(n.removedNodes,s=>t.includes(s)))return!0}else{if(Ki(n.target))return!0;if(t.includes(n.target))return!0}return!1},Dr=(t=document.body,e)=>{if(t===void 0)return!1;if(e==null)return!!document.activeElement&&Dr(t,document.activeElement);let n=e==null?void 0:e.parentNode;for(;n;){if(n===t)return!0;n=n==null?void 0:n.parentNode}return!1},br=t=>!(!t.matches(Cr)||t!=null&&t.disabled||/^(true)?$/.test(t.getAttribute("inert"))||ja(t)&&t.hidden),Ki=t=>!(Pg(t)&&!kg(t)||(t==null?void 0:t.tabIndex)<0||!br(t)),zg=()=>{const t=new MutationObserver(a=>Wg(e,a)&&r()),e=[];let n=-1,s=null;const i=a=>{var u;if(a<0)return;const l=Math.min(a,e.length-1);n!==l&&(n=l),(u=e[n])==null||u.focus()},r=()=>{e.length=0,s instanceof Element&&(s.querySelectorAll(Cr).forEach(a=>Ki(a)&&e.push(a)),Dr(s)&&(o.current=document.activeElement))},o=Object.create(null,{current:{get:()=>e[n]??null,set:a=>{if(a){if(!Dn(a))return i(e.indexOf(a));if(a===~~a)return i(Ss(n+a,e.length))}}},root:{get:()=>s,set:a=>{a!==s&&(s&&t.disconnect(),s=a instanceof Element?a:null,e.length=0,s&&(t.observe(s,{attributeFilter:wg,attributes:!0,childList:!0,subtree:!0}),r()))}},tabbables:{value:e}});return o},Bg=(t,e)=>{const n=R(!1),s=R(null),i=R(!1),r=y(zg,[]),o=y(()=>{let h=null,m;return f=>{m!==void 0&&cancelAnimationFrame(m);let g=f.target;for(;g&&g!==f.currentTarget;){if(br(g)){h=g,m=requestAnimationFrame(()=>{m=requestAnimationFrame(()=>{var M;s.current!==h&&h instanceof HTMLElement&&((M=s.current=h)==null||M.focus()),h=null,m=void 0})});return}g=g.parentNode}}},[]),a=_(h=>{r.current=s.current=h.target},[]),l=_(h=>{r.tabbables.includes(h.relatedTarget)||Dr(h.currentTarget,h.relatedTarget)||i.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&e(n.current=!1)}))},[]),u=y(()=>{let h;return m=>{switch(m.code){case w.ARROW_DOWN:case w.ARROW_LEFT:case w.ARROW_RIGHT:case w.ARROW_UP:case w.END:case w.ESCAPE:case w.HOME:case w.PAGE_DOWN:case w.PAGE_UP:case w.TAB:cancelAnimationFrame(h),h=requestAnimationFrame(()=>{h=requestAnimationFrame(()=>{i.current=!1,h=void 0})}),i.current=!0;break}m.code===w.TAB?(m.preventDefault(),r.current=m.shiftKey?-1:1):m.code===w.ESCAPE&&e(!0)}},[]);return le(_((h,m)=>{m instanceof Element&&(m.removeEventListener("keydown",u,!0),m.removeEventListener("focusin",a,!0),m.removeEventListener("focusout",l,!0),h.removeEventListener("click",o,!0)),h instanceof Element?(h.addEventListener("keydown",u,!0),h.addEventListener("focusin",a,!0),h.addEventListener("focusout",l,!0),h.addEventListener("click",o,!0),n.current=!1,r.root=h):r.root=null},[]),t)},ki=(()=>{const t=new WeakMap,e=Z({remove:q(function(){s(this.observerCallback)})}),n=i=>{let r=t.get(i);if(r===void 0){const o=new IntersectionObserver(a=>{a.forEach(l=>{i&&i(l)})},{root:null,rootMargin:"",threshold:[1]});r=yi(e,{observerCallback:q(i),observer:q(o)}),t.set(i,r)}return r},s=i=>{const r=t.get(i);r==null||r.observer.disconnect(),t.delete(i)};return n})(),Fg=(t,e,n,s)=>{if(e.length<3){const h=e.length;e.length=3,e.fill(0,h,3)}s||(s=yt.BOTTOM);let i=0,r=0,o=0;const a=n==null?void 0:n.current;switch(s){case yt.BOTTOM:i=(a==null?void 0:a.offsetLeft)+e[0],r=(a==null?void 0:a.offsetTop)+(a==null?void 0:a.offsetHeight)+e[1],o=e[2];break;case yt.TOP:i=(a==null?void 0:a.offsetLeft)+e[0],r=t!=null&&t.clientHeight?(a==null?void 0:a.offsetTop)-e[1]-(t==null?void 0:t.clientHeight):a==null?void 0:a.offsetTop,o=e[2];break;case yt.RIGHT:i=(a==null?void 0:a.offsetLeft)+(a==null?void 0:a.offsetWidth)+e[0],r=(a==null?void 0:a.offsetTop)+e[1],o=e[2];break;case yt.LEFT:i=t!=null&&t.clientWidth?(a==null?void 0:a.offsetLeft)-(t==null?void 0:t.clientWidth)-e[0]:0,r=(a==null?void 0:a.offsetTop)+e[1],o=e[2];break}return`position:absolute;inset:0 auto auto 0;margin: 0;z-index:10;transform: ${[i,r,o].reduce((h,m,f)=>f===0?h+`${m}px,`:f===e.length-1?h+` ${m}px)`:h+` ${m}px,`,"translate3d(")};visibility:hidden`},$g=(t,e,n,s,i)=>{const[r,o]=B(!0),[a,l]=B(!s),[u,h]=B(s??yt.TOP),m=_(g=>{if(!r)if(g.intersectionRatio!==1)switch(u){case yt.TOP:h(yt.BOTTOM);break;case yt.BOTTOM:h(yt.RIGHT);break;case yt.RIGHT:h(yt.LEFT);break;case yt.LEFT:break}else l(!1)},[h,u,r,l]),f=R(m);return k(()=>{ki(f.current).remove(),f.current=m},[m]),le(_((g,M)=>{var A;if(M&&!s&&ki(m).observer.unobserve(M),g){if(s||ki(m).observer.observe(g),!(g instanceof Element))return;const L=Fg(g,t,e,u),T=a?L:L+";visibility:visible";g.setAttribute("style",`${T}`),r&&o(!1),n&&n===Ei.TOOLTIP&&((A=g.classList)==null||A.add(`popover-content-container--tooltip-${u}`))}},[i,t,e,u,s,n,m,o,a]),i)};const Ug=t=>{var s;let e;const n=(s=t.querySelector(`.${xs}`))==null?void 0:s.querySelectorAll(Cr);return Array.prototype.some.call(n,i=>{if(br(i))return e=i}),e};function wa({actions:t,disableFocusTrap:e=!1,actionsLayout:n=_r.SPACE_BETWEEN,variant:s=Ei.TOOLTIP,title:i,open:r,dismissible:o,modifiers:a,divider:l,fitContent:u,withoutSpace:h,containerSize:m,position:f,targetElement:g,dismiss:M,children:A,withContentPadding:L,...T}){const D=y(()=>V(M)&&o!==!1,[M,o]),b=R(),j=_(ot=>{var H;M&&M(),ot&&((H=g==null?void 0:g.current)==null||H.focus())},[M,g]),N=_(ot=>{ot.code===w.ESCAPE&&(M&&M(),(g==null?void 0:g.current).focus())},[M,g]),x=R(N),$=R(),W=Ar($g([0,15],g,s,yt.BOTTOM),M),v=Bg(e?null:W,j),z=le(_(ot=>{ot instanceof Element&&(cancelAnimationFrame($.current),$.current=requestAnimationFrame(()=>{if(b.current===r||!(b.current=r))return;const H=Ug(ot);H==null||H.focus()}))},[]),e?W:v),X=y(()=>({[`${Bt}--medium`]:m===Un.MEDIUM,[`${Bt}--with-divider`]:!!l,[`${Bt}--wide`]:m===Un.WIDE,[`${Bt}--fit-content`]:u,[`${Bt}--without-space`]:h}),[m,l,h,u]);return k(()=>(document.removeEventListener("keydown",x.current),document.addEventListener("keydown",x.current=N),()=>document.removeEventListener("keydown",x.current)),[N]),d(S.Fragment,{children:r?d("div",{id:"popover",ref:z,...T,className:G(`${Bt} ${Dg}`,X),style:{display:"none"},role:T.role??"dialog",children:[(i||D)&&d("div",{className:Tr(ro,a,[ro]),children:[i&&d("div",{className:bg,children:d(jg,{title:i})}),D&&d(Rg,{onClick:M})]}),A&&d("div",{className:L?`${xs} ${xs}--with-padding`:xs,children:A}),t&&d("div",{className:Og,children:d(Cg,{actions:t,layout:n})})]}):null})}const Hg=Ne(({active:t,commitActions:e,items:n,multiSelect:s,onKeyDown:i,onSelect:r,renderListItem:o,selectListId:a,showList:l,textFilter:u,toggleButtonRef:h},m)=>{const{i18n:f}=K(),g=n.filter(D=>!u||D.name.toLowerCase().includes(u)),M=G(Ra,{[fg]:l}),A=G(ue,mg),L=y(()=>V(o)?o:Lg,[o]),T=y(()=>s===!0,[s]);return l?d(wa,{actions:T?e:void 0,disableFocusTrap:!0,divider:!0,open:l,containerSize:Un.MEDIUM,variant:Ei.POPOVER,targetElement:h,withContentPadding:!1,children:d("ul",{className:M,id:a,ref:m,role:"listbox","aria-multiselectable":T,children:g.length?g.map(D=>d(Ag,{item:D,multiSelect:T,onKeyDown:i,onSelect:r,renderListItem:L,selected:t.includes(D)},D.id)):d("div",{className:A,children:f.get("select.noOptionsFound")})})}):null}),Gg=ht(Hg),Yg=({items:t,multiSelect:e,selected:n})=>{const s=_((l=pt)=>{const u=pt.concat(l??pt).filter(Boolean),h=t.filter(f=>u.includes(f.id)),m=e?h:h.slice(0,1);return m.length?Object.freeze(m):pt},[t,e]),[i,r]=B(s(n)),o=_((l=pt)=>{const u=l.filter(h=>t.includes(h));r(u.length?Object.freeze(u):pt)},[t,r]),a=_(l=>{r(u=>{const h=u.indexOf(l);if(h<0)return Object.freeze((e?u:pt).concat(l));if(!e)return u;const m=[...u];return m.splice(h,1),m.length?Object.freeze(m):pt})},[e,r]);return k(()=>r(s(n)),[s,n,r]),{resetSelection:o,select:a,selection:i}},Zg=Yg;const Jg=({className:t,classNameModifiers:e=pt,items:n=pt,filterable:s=!1,multiSelect:i=!1,readonly:r=!1,onChange:o=bt,selected:a,name:l,isInvalid:u,isValid:h,placeholder:m,uniqueId:f,renderListItem:g,isCollatingErrors:M,withoutCollapseIndicator:A=!1})=>{const{resetSelection:L,select:T,selection:D}=Zg({items:n,multiSelect:i,selected:a}),[b,j]=B(!1),[N,x]=B(""),$=R(null),W=R(null),v=R(null),z=R(`select-${Ta()}`),[X,ot]=B(0),H=R(),J=R(!0),Nt=R(!1),ft=R(D),Ft=R(D),de=Ar(R(null),_(()=>{x(""),j(!1),b&&(L(ft.current),J.current=!0)},[L,b,j,x])),he=y(()=>G([Cn,{[Ig]:i===!0},...e.map(Y=>`${Cn}--${Y}`),t]),[t,e,i]),{commitAction:$t,commitActionButtons:lt,committing:Ut,resetCommitAction:He}=Oa({resetDisabled:!D.length}),Kt=_(()=>{var Y;x(""),j(!1),He(),J.current?J.current=!1:(Y=v.current)==null||Y.focus()},[He,j,x]),_s=_(()=>{ft.current=D;const Y=`${D.map(({id:nt})=>nt)}`;o({target:{value:Y,name:l}})},[l,o,D]);k(()=>{switch($t){case dt.APPLY:_s();break;case dt.CLEAR:L(),Nt.current=!0;break}},[$t,_s,L]);const On=_(Y=>{var st;Y.preventDefault();const nt=Y.currentTarget&&((st=W==null?void 0:W.current)!=null&&st.contains(Y.currentTarget))?Y.currentTarget:null;if(nt&&!nt.getAttribute("data-disabled")){const wc=nt.getAttribute("data-value"),Pc=n.find(kc=>kc.id===wc);T(Pc)}},[n,T]);k(()=>{Ft.current!==D&&(Ft.current=D,(!i||Nt.current)&&(_s(),Kt())),Nt.current=!1},[Kt,_s,i,D]),k(()=>{Ut&&(ot(D.length),Kt())},[Ut,Kt,ot,D.length]);const vc=_(Y=>{switch(Y.code){case w.ESCAPE:case w.TAB:b&&Kt(),J.current=Y.key===w.TAB;return;case w.ENTER:case w.SPACE:if(s&&b){if(Y.key===w.ENTER)if(N)On(Y);else break;return}break;case w.ARROW_DOWN:case w.ARROW_UP:break;default:return}Y.preventDefault(),j(!0)},[Kt,s,On,b,j,N]);k(()=>{b&&(cancelAnimationFrame(H.current),H.current=requestAnimationFrame(()=>{var Y;t:{let nt=(Y=W.current)==null?void 0:Y.firstElementChild,st;for(;nt;){if(!(nt.dataset.disabled&&nt.dataset.disabled==="true")){if(nt.getAttribute("aria-selected")==="true"){nt.focus();break t}st=st||nt}nt=nt.nextElementSibling}st&&st.focus()}}))},[b]);const Rc=_(Y=>{const nt=Y.target;switch(Y.code){case w.ESCAPE:Y.preventDefault(),Kt();break;case w.ENTER:case w.SPACE:On(Y);break;case w.ARROW_DOWN:{Y.preventDefault();let st=nt.nextElementSibling;for(;st;){if(!(st.dataset.disabled&&st.dataset.disabled==="true")){st.focus();break}st=st.nextElementSibling}break}case w.ARROW_UP:{Y.preventDefault();t:{let st=nt.previousElementSibling;for(;st;){if(!(st.dataset.disabled&&st.dataset.disabled==="true")){st.focus();break t}st=st.previousElementSibling}s&&$.current&&$.current.focus()}break}case w.TAB:Kt();break}},[Kt,s,On]),xc=_(Y=>{const nt=Y.target.value;x(nt.toLowerCase())},[x]),jc=_(Y=>{Y.preventDefault(),j(nt=>!nt),b&&L(ft.current)},[j,b,L]);return k(()=>{var Y;b&&s&&((Y=$.current)==null||Y.focus())},[s,b]),d("div",{ref:de,className:he,children:[d(yg,{id:f??void 0,appliedFilterNumber:X,active:D,filterInputRef:$,filterable:s,isInvalid:u,isValid:h,onButtonKeyDown:vc,onInput:xc,multiSelect:i,placeholder:m,readonly:r,selectListId:z.current,showList:b,toggleButtonRef:v,toggleList:jc,withoutCollapseIndicator:A,ariaDescribedBy:!M&&f?`${f}${Xi}`:""}),d(Gg,{active:D,commitActions:lt,items:n,multiSelect:i,onKeyDown:Rc,onSelect:On,selectListId:z.current,ref:W,toggleButtonRef:v,renderListItem:g,showList:b,textFilter:N})]})},_i=Jg,Qg=Ne(({title:t,...e},n)=>d("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&d("title",{children:t}),d("path",{d:"M5.56077 2.00011L2.56077 5.00011L5.56077 8.00011L4.50011 9.06077L0.439453 5.00011L4.50011 0.939453L5.56077 2.00011Z",fill:e.disabled?"#8D95A3":"#00112C"})]})),Vg=Qg,Xg=Ne(({title:t,...e},n)=>d("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&d("title",{children:t}),d("path",{d:"M0.439453 7.9999L3.43945 4.9999L0.439454 1.9999L1.50011 0.93924L5.56077 4.9999L1.50011 9.06056L0.439453 7.9999Z",fill:e.disabled?"#8D95A3":"#00112C"})]})),Kg=Xg;function qg({next:t,hasNext:e,hasPrev:n,page:s,prev:i,limit:r,limitOptions:o,onLimitSelection:a}){const{i18n:l}=K(),u=y(()=>o&&Object.freeze(o.map(m=>({id:`${m}`,name:`${m}`}))),[o]),h=_(({target:m})=>{(m==null?void 0:m.value)!=null&&(a==null||a(+m.value))},[a]);return d("div",{"aria-label":l.get("paginatedNavigation"),className:`adyen-fp-pagination ${G({})}`,children:[d("div",{className:"adyen-fp-pagination__context",children:[d("span",{children:[l.get("pagination.page")," ",s]}),u&&a&&d("div",{className:"adyen-fp-pagination__limit-selector",children:d(_i,{filterable:!1,multiSelect:!1,items:u,onChange:h,selected:`${r??""}`})})]}),d("div",{className:"adyen-fp-pagination__controls",children:[d(Qt,{"aria-label":l.get("pagination.previousPage"),variant:Tt.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?pt:"disabled"),onClick:i,children:d(Vg,{disabled:!n})}),d(Qt,{"aria-label":l.get("pagination.nextPage"),variant:Tt.TERTIARY,disabled:!e,iconButton:!0,classNameModifiers:["circle"].concat(e?pt:"disabled"),onClick:t,children:d(Kg,{disabled:!e})})]})]})}const tp={id:"paymentId",type:"type",creationDate:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",fee:"txType.Fee",capture:"txType.capture",leftover:"txType.leftover",manualCorrection:"txType.manualCorrection",internalTransfer:"txType.internalTransfer",balanceAdjustment:"txType.balanceAdjustment",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency"},ep=t=>tp[t]||t,np=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function Pa(t,e){return t.lastFourDigits?e==="detail"?"•••• •••• •••• "+t.lastFourDigits:t.lastFourDigits:np[t.type]||t.type}var Mt=(t=>(t.DEFAULT="default",t.WARNING="warning",t.ERROR="error",t.SUCCESS="success",t.WHITE="white",t))(Mt||{});const zn=ht(({variant:t=Mt.DEFAULT,label:e})=>d("div",{className:G("adyen-fp-tag",{"adyen-fp-tag--success":t===Mt.SUCCESS,"adyen-fp-tag--default":t===Mt.DEFAULT,"adyen-fp-tag--warning":t===Mt.WARNING,"adyen-fp-tag--error":t===Mt.ERROR,"adyen-fp-tag--white":t===Mt.WHITE}),children:e})),sp="https://cdf6519016.cdn.adyen.com/checkoutshopper/",ip=({name:t,resourceContext:e,imageFolder:n="logos/",parentFolder:s="",extension:i="svg",size:r="",subFolder:o=""})=>{const a=`/images/${n}/${o}/${s}/${t}${r}.${i}`.replace(/\/+/g,"/");return`${e}${a}`},rp=({options:t=P,name:e})=>{const{loadingContext:n}=K();return y(()=>ip({resourceContext:sp,name:e,...t}),[n,e,t])},ka=({folder:t="components/",className:e,alt:n,name:s,extension:i})=>{const r=rp({options:y(()=>({imageFolder:t,extension:i}),[i,t]),name:s});return d("img",{className:G("adyen-fp__image",e),alt:n,src:r})},co={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},Wa=(t,e)=>{if(!t)return co;switch(t.errorCode){case void 0:return{title:"somethingWentWrong",message:["seemsLikeThereIsANetworkError","tryToRefreshThePageOrComeBackLater"],refreshComponent:!0};case"00_500":return{title:"noResultsFoundSeekSupport",message:["seemsLikeThereIsAndInternalError","pleaseReachOutToSupportForAssistance"],onContactSupport:e};case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:e};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:e};case"00_403":default:return co}},op=({error:t,onContactSupport:e})=>{const{title:n,message:s,refreshComponent:i}=Wa(t,e);return d(Ai,{title:n,message:s,withImage:!0,centered:!0,refreshComponent:i,onContactSupport:e})},ap=op,cp=uI(()=>Promise.resolve().then(()=>require("./ModalContent-83a84ba5.js"))),lp=["creationDate","status","paymentMethod","type","currency","amount"];function up({balanceAccountDescription:t,loading:e,transactions:n,onTransactionSelected:s,showPagination:i,showDetails:r,error:o,onContactSupport:a,availableCurrencies:l,...u}){const{i18n:h}=K(),m=l&&l.length>1,f=y(()=>lp.map(N=>{const x=h.get(ep(N));return N==="amount"?{key:N,label:m?x:`${x} ${l&&l[0]?`(${al(l[0])})`:""}`,position:N==="amount"?Hs.RIGHT:void 0}:{key:N,label:x}}),[l,m,h]),g=y(()=>({showDetails:[r==null?void 0:r.transaction],callback:s}),[r==null?void 0:r.transaction,s]),M=y(()=>({transaction:g}),[g]),{updateDetails:A,resetDetails:L,selectedDetail:T}=RI(M),D=_(N=>{A({selection:{type:"transaction",data:{...N,balanceAccountDescription:t}},modalSize:"small"}).callback({id:N.id})},[A,t]),b={title:"weDidNotFindAnyTransaction",message:["thereAreNoTransactionsForThisRequirements","tryAgainPlease"]},j=y(()=>()=>d(ap,{error:o,onContactSupport:a}),[o,a]);return d(S.Fragment,{children:[d(Gs,{errorDisplay:j,error:o,columns:f,data:n,loading:e,outline:!1,onRowClick:{callback:D},emptyTableMessage:b,customCells:{status:({value:N})=>d(zn,{label:h.get(N),variant:N==="Booked"?Mt.SUCCESS:N==="Reversed"?Mt.ERROR:Mt.DEFAULT}),type:({item:N})=>N.category?h.get(`txType.${N.category}`):null,creationDate:({value:N})=>h.fullDate(N),amount:({value:N})=>{const x=h.amount(N.value,N.currency,{showSign:N.value<0,hideSymbol:!m});return d("span",{className:G("adyen-fp-transactions__amount"),children:x})},paymentMethod:({item:N})=>{var x;return d(S.Fragment,{children:N.paymentMethod||N.bankAccount?d("div",{className:"adyen-fp-transactions__payment-method",children:[d("div",{className:"adyen-fp-transactions__payment-method-logo-container",children:d(ka,{name:N.paymentMethod?N.paymentMethod.type:"bankTransfer",alt:N.paymentMethod?N.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-fp-transactions__payment-method-logo"})}),N.paymentMethod?Pa(N.paymentMethod):(x=N.bankAccount)==null?void 0:x.accountNumberLastFourDigits]}):d(zn,{label:h.get("noData"),variant:Mt.WHITE})})},currency:({item:N})=>d(zn,{label:N.amount.currency})},children:i&&d(Gs.Footer,{children:d(qg,{...u})})}),d(DI,{title:T!=null&&T.title?h.get(T.title):void 0,isOpen:!!T,"aria-label":h.get("transactionDetails"),onClose:L,isDismissible:!0,headerWithBorder:!1,size:(T==null?void 0:T.modalSize)??"large",children:T&&d(Rs,{fallback:d(OI,{}),children:d(cp,{data:T.selection.data})})})]})}const dp=Object.freeze([10,20,50,100]),hp=100,qi=10,tr=t=>{const e=~~t;return e===t&&e>0?Math.min(e,hp):Math.max(e,0)},mp=(t,e)=>{const n=t.length-1;if(n<0)return e;if(e<=t[0])return t[0];if(e>=t[n])return t[n];let s=0,i=0,r=n;for(;;){const o=t[s=Wo(i,r)];if(i>r||e===o)return o;e>o?i=s+1:r=s-1}},fp=({preferredLimit:t=qi,preferredLimitOptions:e})=>{const n=R(),s=R(),i=y(()=>{try{const o=new Set;for(const a of e){const l=tr(a);l>0&&o.add(l)}return Object.freeze([...o].sort((a,l)=>a-l))}catch{}},[e]);return{limit:y(()=>{let o=tr(t)||qi;t:try{if(n.current===i)break t;const a=new Set(n.current=i);if(a.size===0){n.current=void 0;break t}if(s.current!==o)e:{if(a.size===a.add(o).size)break e;if(a.delete(o),a.size===a.add(s.current).size){if(Dn(s.current)){o=s.current;break e}}else a.delete(s.current);o=mp(n.current,o)}}catch{}return s.current=o},[i,t]),limitOptions:i}},Ip=fp,gp=t=>{const e=R(!1),n=y(()=>t,[t]);return k(()=>(e.current=!0,()=>{e.current=!1,n&&n()}),[n]),e},Or=gp,pp=(t,e,n)=>{const s=R(),i=R(),r=R(),o=R(),a=Or(_(()=>{var v;(v=s.current)==null||v.abort(),s.current=void 0},[])),[l,u]=B(o.current),[h,m]=te(!1),f=y(()=>tr(n),[n]),{getPageCount:g,getPageParams:M,resetPageCount:A,updatePagination:L}=t,T=y(()=>(A(),i.current=r.current=o.current=void 0,a.current&&u(o.current),e?v=>{var H;if(!(f&&Number.isInteger(v)))return;const z=g(),X=v<0?v+z+1:v;X>0&&(z?X<=z:X===1)&&((H=s.current)==null||H.abort(),s.current=new AbortController,a.current&&(((o.current=X)>1||z)&&u(o.current),(async()=>{const{signal:J}=s.current,Nt={...M(X,f),limit:f};try{const ft=await e(Nt,J);if(!ft||!a.current)return;const{size:Ft,...de}=ft;L(X,f,de),i.current=o.current&&Math.max(o.current,i.current||-1/0),o.current&&o.current===i.current&&(r.current=Ft),o.current===1&&Ft>0&&u(o.current),o.current=void 0,m(!0)}catch(ft){if(J.aborted)return;console.error(ft)}})()))}:bt),[f,e]),D=_(()=>{l&&T(Math.min(l+1,g()))},[T,l]),b=_(()=>{l&&T(Math.max(l-1,1))},[T,l]),j=y(()=>g()||l||void 0,[T,h]),N=y(()=>!!(l&&j)&&l<j,[l,j]),x=y(()=>!!l&&l>1,[l]),$=y(()=>i.current?(i.current-1)*f+(r.current||0):0,[T,h]),W=y(()=>f&&Math.min(f,$||1/0)%f,[f,$]);return k(()=>{a.current&&h&&m(!1)},[h]),{goto:T,hasNext:N,hasPrev:x,limit:f,next:D,page:l,pages:j,pageSize:W,prev:b,size:$}},za=pp,yp=t=>Me(t.next),Mp=t=>Me(t.prev),Np=(t,e)=>{const n=y(()=>{const s=[],i=()=>s.length,r=()=>{s.length=0},o=u=>({cursor:s[u-1]}),a=(u,h)=>{const m=s[h-1];(h===1||h===(s.length||1)+1)&&m===void 0&&(s[h-1]=u?decodeURIComponent(u):void 0)};return{getPageCount:i,getPageParams:o,resetPageCount:r,updatePagination:(u,h,m)=>{yp(m)&&a(m.next,u+1),Mp(m)&&a(m.prev,u-1)}}},[]);return za(n,t,e)},Tp=Np,Lp=t=>t.next,Sp=(t,e)=>{const n=y(()=>{let s=0;return{getPageCount:()=>s,getPageParams:(l,u)=>({offset:(l-1)*u}),resetPageCount:()=>{s=0},updatePagination:(l,u,h)=>{Lp(h)&&h.next&&(s=Math.max(s,l+1))}}},[]);return za(n,t,e)},Ap=Sp,Ep=(t=P,e=!0)=>{const n=R(e),s=R(Object.freeze({...t})),i=R(new Set(Object.keys(s.current))),r=R(new Set),o=Or(),[a,l]=y(()=>{const f=g=>{o.current&&h(g)};return[()=>f("reset"),g=>f(g)]},[o]),[u,h]=Ti((f,g)=>{if(g==="reset")return r.current.clear(),s.current;const M={...g},A=[0];Object.keys(M).forEach((T,D)=>{if(!i.current.has(T))return;const b=f[T]??void 0,j=s.current[T]??void 0,N=M[T]??j;if(N===b)return;const x=Math.floor(D/32),$=1<<D%32;M[T]=N,A[x]|=$,r.current[N===j?"delete":"add"](T)});const L=A.some(T=>T)?n.current&&r.current.size===0?s.current:Object.freeze({...f,...M}):f;return n.current||(s.current=L,n.current=!0),L},s.current),m=y(()=>!!r.current.size,[]);return k(()=>{s.current=Object.freeze({...t}),i.current=new Set(Object.keys(s.current)),n.current=e,a()},[e,t,a]),{canResetState:m,defaultState:s.current,resetState:a,state:u,updateState:l}},_p=Ep,Cp=(t=P,e)=>{const{canResetState:n,defaultState:s,resetState:i,state:r,updateState:o}=_p(t,e);return{canResetFilters:n,defaultFilters:s,filters:r,resetFilters:i,updateFilters:o}},Dp=Cp;var Hn=(t=>(t.NEXT="next",t.PREV="prev",t))(Hn||{}),vr=(t=>(t.CURSOR="cursor",t.OFFSET="offset",t))(vr||{});const bp=[Hn.NEXT,Hn.PREV],Op=["hasNext","hasPrevious"],Ba=t=>{const e=Object.getOwnPropertyNames(t);return!Op.some(n=>e.includes(n))},vp=(t,e="data")=>{const n=t[e];if(Ba(t)){const s=Object.fromEntries(Object.entries(t||P).filter(([i,r])=>bp.includes(i)&&r));return{records:n,paginationData:s}}throw new TypeError("MALFORMED_PAGINATED_DATA")},Rp=(t,e="data")=>{const n=t[e];if(!Ba(t)){const{hasNext:s,hasPrevious:i}=t,r={[Hn.NEXT]:s===!0,[Hn.PREV]:i===!0};return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},xp=({dataField:t="data",fetchRecords:e,filterParams:n=P,initialFiltersSameAsDefault:s=!0,initialize:i,onFiltersChanged:r,onLimitChanged:o,pagination:a,preferredLimit:l,preferredLimitOptions:u,enabled:h})=>{const[m,f]=B([]),[g,M]=te(!0),[A,L]=B(),[T,D]=B(l),b=Or(),j=R(!0),N=Dp(n,s),{limit:x,limitOptions:$}=Ip({preferredLimit:T,preferredLimitOptions:u}),{defaultFilters:W,filters:v,updateFilters:z,...X}=N,[ot,H]=y(()=>a===vr.CURSOR?[vp,Tp]:[Rp,Ap],[]),J=_(he=>D(he),[]),{goto:Nt,page:ft,pages:Ft,...de}=H(_(async(he,$t)=>{try{if(L(void 0),!b.current||M(!0))return;const lt=await e({...he,...v},$t),{records:Ut,paginationData:He}=ot(lt,t);return j.current&&(i==null||i([Ut,He],N),j.current=!1),b.current&&(f(Ut),M(!1)),{...He,size:Ut==null?void 0:Ut.length}}catch(lt){if($t!=null&&$t.aborted)return;M(!1),L(lt),console.error(lt)}},[e,v,x]),x);return y(()=>{j.current=!0},[n]),k(()=>{h&&Nt(1)},[Nt,h]),k(()=>{r==null||r(v)},[v]),k(()=>{o==null||o(x)},[x]),{error:A,fetching:g,filters:v,goto:Nt,limitOptions:$,page:ft,pages:Ft,records:m,updateFilters:z,updateLimit:J,...X,...de}},jp=xp,wp=t=>jp({...t,pagination:vr.CURSOR}),Pp=wp,kp=(()=>{let t=null,e;const n=(o,a,l)=>{const u=document.timeline.currentTime??performance.now(),h=f=>{const g=f-u,M=Math.round(g/o)*o,L=u+M+o-performance.now();setTimeout(()=>requestAnimationFrame(m),L)},m=f=>{a.aborted||(h(f),l())};h(u)},s=()=>{t=Date.now(),r.notify()},i=()=>t??Date.now(),r=Fe({timestamp:i});return r.callback.resume=()=>{e=new AbortController,t=Date.now(),n(1e3,e.signal,s)},r.callback.idle=()=>{e.abort(),t=null},Z({timestamp:{get:i},watch:{value:r.watch}})})(),xn=kp,Wp=(()=>{const t=new Map,e=Mi(),n=(s=xn.timestamp)=>{const i=new Date(s),r=new Date(Bo(e,s)),o=i.getDate()-r.getDate();if(o){const u=o>1?-1:o<-1?1:o;i.setDate(i.getDate()-u)}const a=Fs(e,i.setHours(0,0,0,0)),l=Fs(e,i.setDate(i.getDate()+1));return[a,l-a]};return s=>{e.tz=s;const i=e.tz.current;return t.get(i)??(()=>{let r=null,o=null,a=null;const l=()=>(e.tz=i,r??n()[0]),u=(f=xn.timestamp)=>{e.tz=i,[r,o]=n(f)},h=Fe({timestamp:l});h.callback.resume=()=>{a=xn.watch(f=>{if(f!==Fe.UNWATCH){if(r===null||o===null)return u();xn.timestamp-r<o||(u(),h.notify())}})},h.callback.idle=()=>{a==null||a(),r=o=a=null};const m=Z({timestamp:{get:l},timezone:{value:i},watch:{value:h.watch}});return t.set(i,m),m})()}})(),Fa=Wp,{getTimezoneTime:zp,getUsedTimezone:Bp}=(()=>{const t=/(\d{2}):(\d{2})(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,e=/^GMT|0(?=\d:00)|:00/g,n=Mi();return{getTimezoneTime:(r,o=Date.now())=>{n.tz=r;const{formatted:a}=n(o),[l="",,,u=""]=(a==null?void 0:a.match(t))??pt,h=Gi(a),m=`${l}${u&&` ${u}`}`,f=Kd(h).replace(e,"");return[m,f]},getUsedTimezone:r=>(n.tz=r,n.tz.current)}})(),Fp=({timezone:t,withClock:e=!1}=P)=>{const n=y(()=>e===!0,[e]),s=y(()=>Bp(t),[t]),i=R(bt),[r,o]=B(Date.now()),[a,l]=y(()=>zp(s,r),[r,s]);return y(()=>{i.current(),i.current=n?xn.watch(u=>{typeof u!="symbol"&&o(u.timestamp)}):bt},[o,n]),{clockTime:a,GMTOffset:l,timestamp:r,timezone:s}},lo=t=>ko(t).slice(8,-1)==="Object"?t:P,jn=(t,e=!0)=>({enumerable:e!==!1,get:t}),$p=t=>Object.freeze({systemToTimezone:q(e=>Fs(t,e)),timezoneToSystem:q(e=>Bo(t,e)),timezoneOffset:q(e=>t(e).offset)}),$a=(t,e,n=t)=>{const s=(i,r)=>{let o=i;i==null?o=n:Bn(i)||(o=r??n);const a=qe(t,o,e);return a===o?a:r??n};return i=>{const r=jn(()=>o);let o=s(i);return Z({value:r,descriptor:q({...r,set(a){const l=o;o=s(a,o),l!==o&&(this.now=this.now)}})})}},Up=(t,e)=>n=>V(n)?n.call(t,e):n,Hp=t=>!ae(t,"offsets"),Gp=t=>ae(t,"from"),Ci=({now:t})=>t,Yp=(()=>{const t=new Map;return e=>{let n=t.get(e);return n===void 0&&(n=Object.freeze([0,0,e,0,0,0,-1]),t.set(e,n)),n}})(),Ge=t=>{try{const e=t instanceof Date||+t===t?t:void 0,n=new Date(e).getTime();return isNaN(n)?void 0:n}catch{}},Di=t=>t.setHours(0,0,0,0),Zp=t=>(Di(t),t.setDate(1)),Jp=t=>(Di(t),t.setMonth(0,1)),Qp=(t,e=t)=>0+(-e%7+(t-7))%7,Vp=(t=P,e=P)=>{const n=lo(t),s=lo(e);return()=>{const i=Mi(),r=jn(()=>m),o=jn(()=>i.tz.current),a=Z({now:r,timezone:o,...$p(i)}),l=Up(n,a);let{from:u,to:h,now:m}=P;const f=M=>{m=Ge(M??Date.now())??m;t:{if(Hp(n)){u=Ge(l(n.from))??m,h=Ge(l(n.to))??m;break t}let A,L,T;(T=Gp(n))?(A=new Date(u=Ge(l(n.from))??m),L=1):(A=new Date(h=Ge(l(n.to))??m),L=-1),A=new Date(a.timezoneToSystem(A));const[D=0,b=0,j=0,N=0,x=0,$=0,W=0]=l(n.offsets);A.setFullYear(A.getFullYear()+D*L,A.getMonth()+b*L,A.getDate()+j*L),A.setHours(A.getHours()+N*L,A.getMinutes()+x*L,A.getSeconds()+$*L,A.getMilliseconds()+W*L);const v=Ge(a.systemToTimezone(A))??m;T?h=v:u=v}u>h&&([u,h]=[h,u])},g=M=>{const A=i.tz,L=A.current;i.tz=M,A.current!==L&&f(m)};return f(),Z({...s,from:jn(()=>u),now:{...r,set:f},timezone:{...o,set:g},to:jn(()=>h)})}},bi=Vp,Rr=1,Xp=Yp(7),Kp=$a(0,6,Rr),qp=(t=0)=>{const e=~~qe(0,t,1/0)||0;return(n=Rr)=>{const s=e?{offsets:Xp}:{to:Ci},i=Kp(n);return bi({from:({now:r,systemToTimezone:o,timezoneToSystem:a})=>{const l=new Date(r),u=new Date(a(r)),h=l.getDay()-u.getDay();if(Di(l),h){const f=h>1?-1:h<-1?1:h;l.setDate(l.getDate()-f)}const m=Qp(i.value,l.getDay())-e*7;return l.setDate(l.getDate()+m),o(l)},...s},{firstWeekDay:i.descriptor})()}},Ua=qp,ty=Object.freeze([0,1,0,0,0,0,-1]),ey=(t=0)=>{const e=~~qe(0,t,1/0)||0;return bi({from:({now:s,systemToTimezone:i,timezoneToSystem:r})=>{const o=new Date(s),a=new Date(r(s)),l=o.getMonth()-a.getMonth();let u=e;return l&&(u+=l>1?-1:l<-1?1:l),Zp(o),o.setMonth(o.getMonth()-u),i(o)},...e?{offsets:ty}:{to:Ci}})},Ha=ey,ny=Ha(1),sy=ny,iy=365,ry=1,oy=1,ay=$a(ry,iy,oy),cy=t=>{const e=ay(t);return bi({from:({now:n,systemToTimezone:s,timezoneToSystem:i})=>{const r=new Date(n),o=new Date(i(n)),a=r.getDate()-o.getDate();let l=e.value-1;return a&&(l+=a>1?-1:a<-1?1:a),Di(r),r.setDate(r.getDate()-l),s(r)},to:Ci},{numberOfDays:e.descriptor})()},ly=cy,uy=Ua(1),dy=uy,hy=Ha(0),my=hy,fy=Ua(0),Iy=fy,gy=bi({from:({now:t,systemToTimezone:e,timezoneToSystem:n})=>{const s=new Date(t),i=new Date(n(t)),r=s.getFullYear()-i.getFullYear();return Jp(s),s.setFullYear(s.getFullYear()-r),e(s)},to:Ci}),py=gy,yy=()=>Object.freeze({"rangePreset.last7Days":ly(7),"rangePreset.thisWeek":Iy(),"rangePreset.lastWeek":dy(),"rangePreset.thisMonth":my(),"rangePreset.lastMonth":sy(),"rangePreset.yearToDate":py()}),My=({now:t=Date.now(),options:e,selectedOption:n,timezone:s})=>{const{i18n:i}=K(),[r,o]=B(),[a,l]=B(),[u,h]=B(),m=R(),f=R(),[g,M,A]=y(()=>{const x=i.get("rangePreset.custom"),$=Object.keys(e),W=Object.freeze($.map(z=>i.get(z)));return[x,(z,X=W)=>{const ot=X.findIndex(H=>H===z);return e[$[ot]]},W]},[i,e]),[L,T]=B(n===g),D=y(()=>Object.freeze([...A,g]),[g,A]),b=y(()=>L?D:A,[L,A,D]),j=_(x=>{const $=M(x,A);$&&(o(i.fullDate($.from)),l(i.fullDate($.to)),T(!1),h(x))},[i,g,M,u,A]),N=_(()=>{o(void 0),l(void 0),T(!0),h(g)},[g]);return y(()=>{n===g?h(g):j(n)},[]),y(()=>{var x;if(m.current!==t||f.current!==s){const $=Object.values(e);$.forEach(W=>{W.now=t,W.timezone=s}),m.current=t,f.current=(x=$[0])==null?void 0:x.timezone,j(u)}},[t,s,e]),{customSelection:N,from:r,onSelection:j,options:b,selectedOption:u,to:a}},Ny=({calendarRef:t,onTimeRangeSelected:e,timestamp:n,...s})=>{const{customSelection:i,from:r,onSelection:o,options:a,selectedOption:l,to:u}=My(s),h=y(()=>Object.freeze(a.map(M=>({id:M,name:M}))),[a]),m=_(({target:M})=>o(M==null?void 0:M.value),[o]),f=R(!0),g=R(n);return k(()=>{t!=null&&t.current&&r&&u&&(f.current=!0,t.current.from=new Date(r),t.current.to=new Date(u))},[t,r,u]),k(()=>{g.current!==n&&(g.current=n,f.current?f.current=!1:i())},[i,n]),k(()=>{l&&(e==null||e(l))},[l,e]),d(_i,{items:h,filterable:!1,multiSelect:!1,onChange:m,selected:l})},Ty=Ny,wt=(()=>{const t=s=>Object.freeze(Object.create(P,Object.fromEntries(Object.entries(s).map(([i,r])=>[i,{value:r}])))),e=s=>{try{return Object.getPrototypeOf(s)===P}catch{return!1}},n=(s,i)=>{if(!s)return t({enumerable:!0,writable:s!==!1,value:i});let r=i;return t({enumerable:!0,get:()=>r,set:o=>{r=s(o)}})};return Object.defineProperties(n,{is:{value:e},isObject:{value:s=>ko(s).slice(8,-1)==="Object"},immutable:{value:s=>n(!1,s)},mutable:{value:s=>n(void 0,s)},restricted:{value:()=>n(!1)}})})(),Ga=(()=>{const t=(n={},s=!1)=>{const i=Object.create(null);for(const[r,o]of Object.entries(n)){try{const a=wt.is(o),l=wt.isObject(o);if(a||l){Object.defineProperty(i,r,a?o:t(o,s));continue}else if(s){Object.defineProperty(i,r,wt.immutable(o));continue}}catch{}i[r]=o}return wt((r={})=>Object.assign(i,r),i)};return Object.defineProperties(t,{unwrapped:{value:(n={},s=!1)=>{const i=t(n,s);return Object.create(null,{P:i}).P}}})})();var xr=(t=>(t[t.DATE=0]="DATE",t[t.DAY_OF_WEEK=1]="DAY_OF_WEEK",t[t.MONTH_HEADER=2]="MONTH_HEADER",t))(xr||{});const Ly=(()=>{const t=new Set,e=(s,i,r,o)=>{let a=o==null?void 0:o[r];return a=V(a)?a:Ud,!bn(a(s[r]),a(i[r]))};return Object.defineProperty(s=>(i,r)=>{try{for(const o in i)if(t.add(o),e(i,r,o,s))return!1;for(const o in r)if(!t.has(o)&&(t.add(o),e(i,r,o,s)))return!1;return!0}finally{t.clear()}},"exclude",{value:bt})})(),Ys=Ly,Ya="adyen-fp-calendar__cell adyen-fp-calendar__cell--date",Za="adyen-fp-calendar__date",Sy=(t=P,e)=>{const n=Ga.unwrapped({childClassName:wt.mutable(Za),childProps:{children:wt.restricted(),className:""},className:wt.mutable(Ya),props:{...t,children:wt.restricted(),className:""}},!0);return e==null||e(xr.DATE,n),n},Ay=Vt(({grid:t,prepare:e,datetime:n,flags:s,index:i,label:r,onlyCellsWithin:o},a)=>{const l=s.WITHIN_BLOCK,u={"data-cursor-position":i,"data-within-month":l,tabIndex:-1};if(l){const A=s.WITHIN_RANGE;u["data-today"]=s.CURRENT,u["data-first-week-day"]=s.LINE_START,u["data-last-week-day"]=s.LINE_END,u["data-weekend"]=s.WEEKEND,u["data-first-month-day"]=s.BLOCK_START,u["data-last-month-day"]=s.BLOCK_END,u["data-within-range"]=A,A&&(u["data-range-end"]=s.RANGE_END,u["data-range-start"]=s.RANGE_START,u["data-selection-end"]=s.SELECTION_END,u["data-selection-start"]=s.SELECTION_START,u["data-within-selection"]=s.WITHIN_SELECTION,u["aria-selected"]=`${!!(s.SELECTION_END||s.SELECTION_START||s.WITHIN_SELECTION)}`),i===+t.cursor&&(u.ref=a)}const h=Sy(u,e),{children:m,className:f,...g}=h.props||P,M=Us(h.className,Ya,f);return d("td",{...g,...u,className:M,children:(!o||l)&&(()=>{const{children:A,className:L,...T}=h.childProps||P,D=Us(h.childClassName,Za,L);return d("time",{...T,className:D,dateTime:n,children:r})})()})}),Ey=ht(Ay,Ys({block:Ys.exclude,flags:t=>+t})),Ja="adyen-fp-calendar__cell adyen-fp-calendar__cell--day-of-week",Qa="adyen-fp-calendar__day-of-week",_y=(t=P,e)=>{const n=Ga.unwrapped({childClassName:wt.mutable(Qa),childProps:{children:wt.restricted(),className:""},className:wt.mutable(Ja),props:{...t,children:wt.restricted(),className:""}},!0);return e==null||e(xr.DAY_OF_WEEK,n),n},Cy=({prepare:t,flags:e,labels:{long:n,short:s}})=>{const i={"aria-label":n,"data-first-week-day":e.LINE_START,"data-last-week-day":e.LINE_END,"data-weekend":e.WEEKEND,scope:"col"},r=_y(i,t),{children:o,className:a,...l}=r.props||P,u=Us(r.className,Ja,a),{children:h,className:m,...f}=r.childProps||P,g=Us(r.childClassName,Qa,m);return d("th",{...l,...i,className:u,children:d("abbr",{...f,className:g,children:s})})},Dy=ht(Cy,Ys({block:Ys.exclude,flags:t=>+t}));const by=Vt(({cursorRootProps:t,onlyCellsWithin:e,prepare:n,grid:s},i)=>d("ol",{className:"adyen-fp-calendar",role:"none",...t,children:s.map(r=>d("li",{className:"adyen-fp-calendar__month",role:"none",children:[d("div",{className:"adyen-fp-calendar__month-name",role:"none",children:d("time",{dateTime:r.datetime,"aria-hidden":"true",children:r.label})}),d("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${r.label} calendar`,className:"adyen-fp-calendar__grid",style:{"--adyen-fp-calendar-rowspan":s.rowspan},children:[d("thead",{children:d("tr",{className:"adyen-fp-calendar__row",children:s.weekdays.map((o,a)=>d(Dy,{grid:s,block:r,prepare:n,cell:a,...o},o.labels.long))})}),d("tbody",{children:r.map((o,a)=>d("tr",{className:"adyen-fp-calendar__row",children:o.map((l,u)=>d(Ey,{ref:i,grid:s,block:r,prepare:n,cell:u,onlyCellsWithin:e,row:a,...l},`${r.month}:${l.timestamp}`))},`${r.month}:${a}`))})]})]},r.datetime))})),Oy=ht(by),vy=864e5,Ry=["narrow","short","long"],Va=[0,1,6],en=[1,2,3,4,6,12],uo=42,xy=[0,1],jr=Symbol(),wr=Symbol(),Pr=Symbol(),ho=[Pr,wr,jr],Se=Symbol(),Qe=Symbol(),Ve=Symbol(),jy=[Qe,Ve,Se],Xa=Symbol(),Ka=Symbol(),qa=Symbol(),tc=Symbol(),ec=Symbol(),nc=Symbol(),sc=Symbol(),ic=Symbol(),rc=Symbol(),oc=Symbol(),kr=Symbol(),Wr=Symbol(),ac=Symbol(),mo=Symbol(),mt=Symbol(),fo=Symbol(),Ot=Symbol(),cc=Symbol(),js=Symbol(),ws=Symbol(),er=(()=>{const t=function*(s=r=>r,i){for(let r=0;r<this.length;r++)yield s.call(i,this[r],r,this)},e=Object.freeze(Z({[Symbol.iterator]:{value(){return t.call(this)}},map:{value(s,i){return[...t.call(this,s,i)]}}})),n=s=>(i,r,o)=>{if(Me(r)){const a=+r;if(a>=0&&a<i.length)return s(a)}return Reflect.get(i,r,o)};return(s,i)=>V(s)?er({length:{get:s}},i):Dn(s)?er({length:{value:s}},i):new Proxy(yi(e,s),{get:n(i),set:Hi})})(),Ee=er,Io=(t,e)=>{if(e>=t)return t;let n=Math.max(1,en.indexOf(t));for(;--n&&e<en[n];);return en[n]},wy=t=>en[Math.max(en.indexOf(t),0)],go=(t=0)=>Object.freeze(xy.map(e=>Ss(6-t+e,7))),Xe=t=>Be(t)?0:t-new Date(t).setHours(0,0,0,0),po=t=>t===void 0?t:new Date(t),nr=(t,e)=>{if(Be(t)||Be(e))return 1/0;const n=new Date(t),s=new Date(e);return Math.abs(s.getMonth()-n.getMonth()+(s.getFullYear()-n.getFullYear())*12)},yo=(()=>{const t=[31,[29,28],31,30,31,30,31,31,30,31,30,31];return(e,n,s=0)=>{const i=e+s,r=Ss(i,12),o=n+Math.floor(i/12);return[r===1?t[1][(o%100?o%4:o%400)&&1]:t[r],r,o]}})();var Kn,Et,_t,on,an;class Py{constructor(...e){p(this,Kn,1/0);p(this,Et,1/0);p(this,_t,-1/0);p(this,on,0);p(this,an,0);if(e.length>=2){let n=new Date(e[0]).getTime();if(typeof e[1]!="symbol")I(this,_t,n||c(this,_t)),I(this,Et,new Date(e[1]).getTime()||c(this,Et)),c(this,Et)<c(this,_t)&&([Te(this,Et)._,Te(this,_t)._]=[c(this,_t),c(this,Et)]),I(this,an,Xe(c(this,_t))),I(this,on,Xe(c(this,Et))),I(this,Kn,nr(c(this,_t),c(this,Et))+1);else if(!isNaN(n))switch(e[1]){case Wr:I(this,Et,n),I(this,on,Xe(c(this,Et)));break;case kr:default:I(this,_t,n),I(this,an,Xe(c(this,_t)));break}}}get numberOfMonths(){return c(this,Kn)}get endTimestamp(){return c(this,Et)}get endTimestampOffset(){return c(this,on)}get startTimestamp(){return c(this,_t)}get startTimestampOffset(){return c(this,an)}}Kn=new WeakMap,Et=new WeakMap,_t=new WeakMap,on=new WeakMap,an=new WeakMap;const Oi=(...t)=>{const e=new Py(...t);return Z({from:{value:e.startTimestamp},to:{value:e.endTimestamp},offsets:{value:Z({from:{value:e.startTimestampOffset},to:{value:e.endTimestampOffset}})},span:{value:e.numberOfMonths}})},Zs=Oi(),ky=()=>Oi(Date.now(),kr),Wy=()=>Oi(Date.now(),Wr),zy=(...t)=>t.length===0?Zs:Oi(...t);var rt=(t=>(t[t.CURRENT=1]="CURRENT",t[t.CURSOR=2]="CURSOR",t[t.WEEKEND=4]="WEEKEND",t[t.LINE_START=8]="LINE_START",t[t.LINE_END=16]="LINE_END",t[t.WITHIN_BLOCK=32]="WITHIN_BLOCK",t[t.BLOCK_START=64]="BLOCK_START",t[t.BLOCK_END=128]="BLOCK_END",t[t.WITHIN_RANGE=256]="WITHIN_RANGE",t[t.RANGE_START=512]="RANGE_START",t[t.RANGE_END=1024]="RANGE_END",t[t.WITHIN_SELECTION=2048]="WITHIN_SELECTION",t[t.SELECTION_START=4096]="SELECTION_START",t[t.SELECTION_END=8192]="SELECTION_END",t[t.ALL=16383]="ALL",t))(rt||{}),Ye=(t=>(t[t.PREV=1]="PREV",t[t.BLOCK=0]="BLOCK",t[t.FRAME=2]="FRAME",t[t.PERIOD=4]="PERIOD",t))(Ye||{}),sr=(t=>(t[t.PREV_PERIOD=5]="PREV_PERIOD",t[t.PREV_FRAME=3]="PREV_FRAME",t[t.PREV=1]="PREV",t[t.NEXT=0]="NEXT",t[t.NEXT_FRAME=2]="NEXT_FRAME",t[t.NEXT_PERIOD=4]="NEXT_PERIOD",t))(sr||{});const By=(()=>{const t={},e=Object.keys(rt).filter(s=>isNaN(+s)),n=s=>s!=="ALL"&&Me(s)&&e.includes(s);return s=>{const i=s&rt.ALL;return t[i]||(t[i]=new Proxy(Z({valueOf:{value:()=>i}}),{...gi,get:(r,o)=>{switch(o){case"valueOf":return r.valueOf;case Symbol.toStringTag:return"_";default:if(!n(o))return}return i&rt[o]?1:void 0}})),t[i]}})(),lc=By;var cn,It,qn,ts,es,ns,Pt,Ct,ve,ln,un,dn,Re,ne,ss,at,it,ct,me,hn,fe,is,rs,Ie,se,os,as,Js,Qs,Vs,uc,ie,Le,Xs,dc,gt,St,xe,wn,cs,rr;const Ke=class Ke{constructor(){p(this,Vs);p(this,ie);p(this,Xs);p(this,gt);p(this,xe);p(this,cs);p(this,It,0);p(this,qn,void 0);p(this,ts,void 0);p(this,es,-1);p(this,ns,-1);p(this,Pt,void 0);p(this,Ct,void 0);p(this,ve,void 0);p(this,ln,!1);p(this,un,void 0);p(this,dn,0);p(this,Re,[]);p(this,ne,c(Ke,cn));p(this,ss,12);p(this,at,void 0);p(this,it,void 0);p(this,ct,1);p(this,me,void 0);p(this,hn,Fa());p(this,fe,void 0);p(this,is,-1/0);p(this,rs,1/0);p(this,Ie,-1/0);p(this,se,1/0);p(this,os,1/0);p(this,as,0);O(this,"daysInWeek",0);O(this,"origin");O(this,"originTimestamp");p(this,Js,Ee(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));p(this,Qs,Ee(()=>c(this,ct),C(this,Xs,dc).bind(this)))}get fromTimestamp(){return c(this,is)}get toTimestamp(){return c(this,rs)}get numberOfBlocks(){return c(this,os)}get blankSelection(){return c(this,at)===c(this,it)&&c(this,it)===void 0}get cursor(){return c(this,Pt)??-1}get daysOfWeek(){return c(this,Js)}get dynamicBlockHeight(){return c(this,ln)}set dynamicBlockHeight(e){e==null?I(this,ln,!!e):e===!!e&&I(this,ln,e)}set effect(e){e==null?I(this,un,void 0):V(e)&&I(this,un,e)}get firstWeekDay(){return c(this,dn)}set firstWeekDay(e){if(e!=null){if(!Va.includes(e)||c(this,dn)===I(this,dn,e))return}else this.firstWeekDay=0}get frameBlocks(){return c(this,Qs)}get isAtEnd(){return!Be(c(this,se))&&c(this,se)===c(this,ct)-1}get isAtStart(){return!Be(c(this,Ie))&&c(this,Ie)===0}get locale(){return c(this,ne)}set locale(e){const n=c(this,ne);if(e==null)I(this,ne,c(Ke,cn));else if(typeof Intl<"u")try{I(this,ne,new Intl.Locale(e).toString())}catch{I(this,ne,c(Ke,cn))}c(this,ne)!==n&&this.refreshFrame(!0)}get selectionStart(){return c(this,at)}get selectionEnd(){return c(this,it)}get size(){return c(this,ct)}set size(e){const n=Math.min(e!=null&&wy(e)||1,c(this,ss));c(this,ct)!==I(this,ct,n)&&(C(this,cs,rr).call(this),this.refreshFrame())}get timeslice(){return c(this,me)}set timeslice(e){if(e===c(this,me)||e==null&&c(this,me)===Zs)return;const{from:n,to:s,span:i,offsets:r}=e;I(this,me,e),I(this,is,n-r.from),I(this,rs,s-r.to),I(this,os,i);const o=c(this,at)===void 0?c(this,at):Math.max(c(this,at),n),a=c(this,it)===void 0?c(this,it):Math.min(c(this,it),s);o===c(this,at)||a===c(this,it)?(I(this,at,o),I(this,it,a)):I(this,at,I(this,it,void 0)),this.reslice(),I(this,ss,Io(12,this.numberOfBlocks)),I(this,ct,Io(c(this,ct),this.numberOfBlocks)),this.shiftFrameToTimestamp(c(this,ve))}set trackCurrentDay(e){e===!!e?e&&!c(this,fe)?I(this,fe,c(this,hn).watch(this.refreshFrame.bind(this,!0))):!e&&c(this,fe)&&(c(this,fe).call(this),I(this,fe,void 0)):e==null&&(this.trackCurrentDay=!1)}get units(){return c(this,as)}initialize(){this.withCurrentDayTimestamp(c(this,hn).timestamp),this.timeslice=Zs}refreshFrame(e=!1){var n;if(c(this,Re).length=0,!(c(this,Ct)===void 0||e)){const s=this.getFrameBlockAtIndex(c(this,It)),{from:i,to:r}=s.inner,[o]=C(this,ie,Le).call(this,this.getTimestampAtIndex(i+c(this,Ct)),!1);I(this,Ct,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(i),o));const a=i+c(this,Ct),l=qe(i,a,r);if(l>a)return I(this,Ct,this.getUnitsForFrameBlockAtIndex(--Te(this,It)._)+a-l),c(this,It)>=0?this.refreshFrame():(I(this,It,c(this,ct)-1),this.shiftFrameByOffset(-1,js));if(l<a)return I(this,Ct,a-l-1),++Te(this,It)._<c(this,ct)?this.refreshFrame():(I(this,It,0),this.shiftFrameByOffset(1,js));I(this,qn,i),I(this,ts,r),I(this,ve,C(this,ie,Le).call(this,this.getTimestampAtIndex(a),!1)[0]),I(this,Ct,this.getCursorBlockOriginTimestampOffset(c(this,ve))),I(this,Pt,i+c(this,Ct));const u=c(this,It)>0?this.getFrameBlockAtIndex(0):s,h=c(this,It)<c(this,ct)-1?this.getFrameBlockAtIndex(c(this,ct)-1):s;I(this,es,u.inner.from),I(this,ns,h.inner.to),I(this,as,h.outer.to)}this.withCurrentDayTimestamp(c(this,hn).timestamp),(n=c(this,un))==null||n.call(this)}shiftFrameByOffset(e,n){if(e&&Bn(e))switch(n){case cc:return C(this,xe,wn).call(this,e);case ws:return C(this,xe,wn).call(this,e*12);case js:default:return C(this,xe,wn).call(this,e*c(this,ct))}}shiftFrameCursor(e){switch(e){case Xa:return C(this,gt,St).call(this,-1);case ec:return C(this,gt,St).call(this,1);case oc:return C(this,gt,St).call(this,-this.rowspan);case tc:return C(this,gt,St).call(this,this.rowspan);case qa:return C(this,gt,St).call(this,c(this,qn)-c(this,Pt));case Ka:return C(this,gt,St).call(this,c(this,ts)-c(this,Pt));case sc:return C(this,gt,St).call(this,-(c(this,Pt)%this.rowspan));case nc:return C(this,gt,St).call(this,this.rowspan-(c(this,Pt)%this.rowspan+1));case rc:return C(this,gt,St).call(this,-this.getUnitsForFrameBlockAtIndex((c(this,It)??0)-1));case ic:return C(this,gt,St).call(this,this.getUnitsForFrameBlockAtIndex(c(this,It)??0))}if(!(e<0)&&e>=c(this,es)&&e<=c(this,ns))return C(this,gt,St).call(this,e-c(this,Pt))}shiftFrameToTimestamp(e){const n=C(this,ie,Le).call(this,e,!1)[0];I(this,Ct,this.getCursorBlockOriginTimestampOffset(I(this,ve,this.originTimestamp=n))),this.reoriginate(),[Te(this,Ie)._,Te(this,se)._]=this.getEdgeBlockOffsetsFromOrigin(),C(this,cs,rr).call(this),this.refreshFrame(),C(this,gt,St).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(c(this,Pt)),n))}clearSelection(){this.blankSelection||(I(this,at,I(this,it,void 0)),this.refreshFrame(!0))}getCursorOrderForTimeRelativeToSelectionEdge(e,n=mt){let s,i=!1;switch(n){case mt:s=c(this,at);break;case Ot:s=c(this,it),i=!0;break}if(s===void 0)return 0;const r=C(this,ie,Le).call(this,e,!1).reduce((a,l)=>a+l,0),o=this.getUnitsOffsetForTimestamp(s,r)*(i?-1:1);return o&&(o>0?1:-1)}updateSelection(e,n){const s=c(this,at),i=c(this,it),r=C(this,ie,Le).call(this,e,!1).reduce((o,a)=>o+a,0);switch(n===mo&&(r<=s?n=Ot:r>=i&&(n=mt)),n){case mt:I(this,at,r),I(this,it,Math.max(c(this,at),i??r));break;case Ot:I(this,it,r),I(this,at,Math.min(s??r,c(this,it)));break;case mo:case fo:{let o=Math.abs(r-(s??r)),a=Math.abs(r-(i??r));n===fo&&([o,a]=[a,o]),o>a?I(this,at,r):I(this,it,r);break}case ac:default:I(this,at,I(this,it,r));break}(c(this,at)!==s||c(this,it)!==i)&&this.refreshFrame(!0)}};cn=new WeakMap,It=new WeakMap,qn=new WeakMap,ts=new WeakMap,es=new WeakMap,ns=new WeakMap,Pt=new WeakMap,Ct=new WeakMap,ve=new WeakMap,ln=new WeakMap,un=new WeakMap,dn=new WeakMap,Re=new WeakMap,ne=new WeakMap,ss=new WeakMap,at=new WeakMap,it=new WeakMap,ct=new WeakMap,me=new WeakMap,hn=new WeakMap,fe=new WeakMap,is=new WeakMap,rs=new WeakMap,Ie=new WeakMap,se=new WeakMap,os=new WeakMap,as=new WeakMap,Js=new WeakMap,Qs=new WeakMap,Vs=new WeakSet,uc=function(e){return qe(c(this,Ie),e||0,c(this,se)-c(this,ct)+1)},ie=new WeakSet,Le=function(e,n=!0){let s=new Date(e).getTime();if(isNaN(s))return C(this,ie,Le).call(this,Date.now());const{from:i,to:r}=c(this,me),o=qe(i,s,r);o!==s&&n?(s=Wo(i,r),(isNaN(s)||Be(s))&&(s=o)):s=o;const a=Xe(s);return[s-a,a]},Xs=new WeakSet,dc=function(e){if(Bn(e)&&e>=0&&e<c(this,ct)){if(!c(this,Re)[e]){const n=this.getFrameBlockAtIndex(e);if(!n)return;const s=`${n.year}-${`0${1+n.month}`.slice(-2)}-01`,[i,r]=this.getFormattedDataForFrameBlock(new Date(s).setHours(12)),o=n.outer.from;c(this,Re)[e]=Ee({datetime:q(r),label:q(i),length:q(Math.ceil(n.outer.units/this.rowspan)),month:q(n.month),year:q(n.year)},a=>{const l=a*this.rowspan;return Ee(this.rowspan,u=>{const[h,m]=n[u+l],[f,g]=this.getFormattedDataForBlockCell(new Date(h).setHours(12));return Z({datetime:q(g),flags:q(lc(m)),index:q(o+u+l),label:q(f),timestamp:q(h)})})})}return c(this,Re)[e]}},gt=new WeakSet,St=function(e){e!==0&&(I(this,Ct,c(this,Ct)+e),this.refreshFrame())},xe=new WeakSet,wn=function(e){const n=C(this,Vs,uc).call(this,e);n&&(this.shiftOrigin(n),I(this,Ie,c(this,Ie)-n),I(this,se,c(this,se)-n),I(this,It,Ss(c(this,It)-n,c(this,ct))),this.refreshFrame())},cs=new WeakSet,rr=function(){const e=c(this,ct)-1,n=Math.min(e-this.origin%c(this,ct),c(this,se))-e;n&&C(this,xe,wn).call(this,n)},p(Ke,cn,"en-US");let ir=Ke;var je,we,mn,ls,fn,In,us,ds,hs,ms,gn,pn,yn,fs,or,ge,Ze,Mn,Ps;class Fy extends ir{constructor(){super();p(this,fs);p(this,ge);p(this,Mn);p(this,je,7);p(this,we,[]);p(this,mn,go(this.firstWeekDay));p(this,ls,void 0);p(this,fn,-1/0);p(this,In,1/0);p(this,us,1/0);p(this,ds,void 0);p(this,hs,void 0);p(this,ms,void 0);p(this,gn,void 0);p(this,pn,void 0);p(this,yn,void 0);O(this,"daysInWeek",c(this,je));this.initialize()}get fromTimestamp(){return c(this,fn)}get toTimestamp(){return c(this,In)}get numberOfBlocks(){return c(this,us)}get currentDayTimestamp(){return c(this,ls)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const s=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==s&&this.refreshFrame(!0)}get rowspan(){return c(this,je)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const s=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==s&&(c(this,we).length=0,I(this,mn,go(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return new Date(n).getDate()-1}getDayOfWeekAtIndex(n){if(!c(this,we)[n]){const s=new Date(this.getTimestampAtIndex(n));let i=0;c(this,mn).includes(n)&&(i|=rt.WEEKEND),n===0?i|=rt.LINE_START:n===6&&(i|=rt.LINE_END);const r={};for(const o of Ry)r[o]=q(s.toLocaleDateString(this.locale,{weekday:o}));c(this,we)[n]=Z({flags:q(lc(i)),labels:q(Z(r))})}return c(this,we)[n]}getEdgeBlockOffsetsFromOrigin(){return[C(this,fs,or).call(this,c(this,fn)),C(this,fs,or).call(this,c(this,In))]}getFormattedDataForBlockCell(n){const s=new Date(n).toISOString();return[Number(s.slice(8,10)).toLocaleString(this.locale),s.slice(0,10)]}getFormattedDataForFrameBlock(n){const s=new Date(n);return[s.toLocaleDateString(this.locale,{month:"long",year:"numeric"}),s.toISOString().slice(0,7)]}getFrameBlockAtIndex(n){const[s,i,r]=yo(this.origin,c(this,gn),n),o=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:c(this,hs),a=o+s-1,l=Math.floor(o/7)*7,u=this.dynamicBlockHeight?Math.ceil((a+1)/7)*7:l+uo,h=this.dynamicBlockHeight?u-l:uo,m=new Proxy(Z(),{...gi,get:(f,g,M)=>{if(Me(g)){const A=+g;if(Bn(A)&&A>=0&&A<h){const L=l+A,T=this.getTimestampAtIndex(L),D=L%c(this,je);let b=T===this.currentDayTimestamp?rt.CURRENT:0;return L===this.cursor&&(b|=rt.CURSOR),c(this,mn).includes(D)&&(b|=rt.WEEKEND),D===0?b|=rt.LINE_START:D===c(this,je)-1&&(b|=rt.LINE_END),L>=o&&L<=a&&(L===o?b|=rt.BLOCK_START:L===a&&(b|=rt.BLOCK_END),b|=rt.WITHIN_BLOCK),T>=this.fromTimestamp&&T<=this.toTimestamp&&(T===this.fromTimestamp&&(b|=rt.RANGE_START),T===this.toTimestamp&&(b|=rt.RANGE_END),b|=rt.WITHIN_RANGE),T>=c(this,pn)&&T<=c(this,yn)&&(T===c(this,pn)&&(b|=rt.SELECTION_START),T===c(this,yn)&&(b|=rt.SELECTION_END),b|=rt.WITHIN_SELECTION),[T,b]}}return Reflect.get(f,g,M)}});return yi(m,{inner:{value:Z({from:{value:o},to:{value:a},units:{value:s}})},month:{value:i},outer:{value:Z({from:{value:l},to:{value:u-1},units:{value:h}})},year:{value:r}})}getUnitsForFrameBlockAtIndex(n){return yo(this.origin,c(this,gn),n)[0]}getUnitsOffsetForTimestamp(n,s){return Math.round((s-n)/vy)}reoriginate(){const n=new Date(this.originTimestamp),s=(8-(n.getDate()-n.getDay()+this.firstWeekDay)%7)%7;this.origin=n.getMonth(),I(this,gn,n.getFullYear()),this.originTimestamp=n.setDate(1),I(this,hs,s),I(this,ms,n.setDate(1-s)),I(this,ds,n.getDate())}reslice(){C(this,Mn,Ps).call(this),I(this,fn,C(this,ge,Ze).call(this,super.fromTimestamp)),I(this,In,C(this,ge,Ze).call(this,super.toTimestamp)),I(this,us,nr(super.fromTimestamp,super.toTimestamp)+1)}shiftOrigin(n){this.originTimestamp=new Date(this.originTimestamp).setMonth(this.origin+n),this.reoriginate()}clearSelection(){super.clearSelection(),C(this,Mn,Ps).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return new Date(c(this,ms)).setDate(c(this,ds)+n)}updateSelection(n,s){super.updateSelection(n,s),C(this,Mn,Ps).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(n){I(this,ls,C(this,ge,Ze).call(this,n))}}je=new WeakMap,we=new WeakMap,mn=new WeakMap,ls=new WeakMap,fn=new WeakMap,In=new WeakMap,us=new WeakMap,ds=new WeakMap,hs=new WeakMap,ms=new WeakMap,gn=new WeakMap,pn=new WeakMap,yn=new WeakMap,fs=new WeakSet,or=function(n){const s=nr(n,this.originTimestamp);return n<this.originTimestamp?0-s:s},ge=new WeakSet,Ze=function(n){return n===void 0||Be(n)?n:n-Xe(n)},Mn=new WeakSet,Ps=function(){I(this,pn,C(this,ge,Ze).call(this,this.selectionStart)),I(this,yn,C(this,ge,Ze).call(this,this.selectionEnd))};var bo,Oo,et,kt,E,Wt,Rt,zt,ut,Pe,Dt,Nn,re,oe,xt,Yt,Tn,Ks,pe,jt,qs,ye,Ln,ke,Is,ti,Q,ei,ni,si,ii,ri,oi,ai,hc,ci,mc,li,fc,ui,Sn,ks,We,Pn,gs,ar,di,Ic,hi,gc,mi,pc,fi,yc,ps,cr,Ii,Mc,ze,kn,ys,lr,An,Ws,Ms,ur,Ns,dr,Ts,hr,Ls,mr;let $y=(Q=class{constructor(){p(this,We);p(this,gs);p(this,di);p(this,hi);p(this,mi);p(this,fi);p(this,ps);p(this,Ii);p(this,ze);p(this,ys);p(this,An);p(this,Ms);p(this,Ns);p(this,Ts);p(this,Ls);O(this,"grid");O(this,"kill");p(this,et,P);p(this,kt,!1);p(this,E,void 0);p(this,Wt,void 0);p(this,Rt,void 0);p(this,zt,!1);p(this,ut,Qe);p(this,Pe,!1);p(this,Dt,void 0);p(this,Nn,(bo=c(this,Dt))==null?void 0:bo.join(" "));p(this,re,void 0);p(this,oe,void 0);p(this,xt,void 0);p(this,Yt,void 0);p(this,Tn,void 0);p(this,Ks,Fa());p(this,pe,[]);p(this,jt,void 0);p(this,qs,new Proxy(Ee(()=>{var e;return((e=c(this,jt))==null?void 0:e.length)??0},C(this,ps,cr).bind(this)),{...gi,get:(e,n,s)=>{var r,o;const i=((r=c(this,jt))==null?void 0:r.indexOf(n))??-1;return i>=0?(o=C(this,ps,cr).call(this,i))==null?void 0:o[1]:Reflect.get(e,n,s)}}));p(this,ye,Fe({blocks:()=>{var e;return(e=c(this,E))==null?void 0:e.size},cells:()=>{var e;return(e=c(this,E))==null?void 0:e.units},controls:()=>Rn(ho,c(this,et).controls),cursor:()=>{var e;return(e=c(this,E))==null?void 0:e.cursor},from:()=>{var e;return(e=c(this,E))==null?void 0:e.selectionStart},highlight:()=>c(this,ut),locale:()=>{var e;return(e=c(this,E))==null?void 0:e.locale},minified:()=>vn(c(this,et).minified),origin:()=>{var e;return(e=c(this,E))==null?void 0:e.getTimestampAtIndex(0)},to:()=>{var e;return(e=c(this,E))==null?void 0:e.selectionEnd},today:()=>c(this,Ks).timestamp}));p(this,Ln,(Oo=c(this,ye))==null?void 0:Oo.snapshot);p(this,ke,Fe.withSyncEffect(()=>{var e;return c(this,xt)&&((e=c(this,ye))==null?void 0:e.notify())}));p(this,Is,Fe.withSyncEffect(()=>{var e;return(e=c(this,xt))==null?void 0:e.call(c(this,We,Pn))}));p(this,ti,yi(Ee(()=>{var e;return((e=c(this,E))==null?void 0:e.size)??0},e=>{var n;return(n=c(this,E))==null?void 0:n.frameBlocks[e]}),{config:{value:Object.defineProperties(e=>(e&&C(this,hi,gc).call(this,e),c(this,We,Pn)),{cursorIndex:{get:()=>c(this,re),set:e=>{c(this,kt)||(e==null?I(this,re,void 0):V(e)&&I(this,re,e))}},shiftFactor:{get:()=>c(this,oe),set:e=>{c(this,kt)||(e==null?I(this,oe,void 0):V(e)&&I(this,oe,e))}},watch:{get:()=>c(this,xt),set:e=>{var n,s,i,r,o;if(!c(this,kt))if(V(e)){if(I(this,xt,e),!c(this,Yt)){const a=(n=c(this,ke))==null?void 0:n.call(this,c(Q,ui).bind(this));a&&(I(this,Yt,(s=c(this,ke))==null?void 0:s.call(this,bt)),I(this,Tn,(r=c(this,ye))==null?void 0:r.watch((i=c(this,Is))==null?void 0:i.call(this,a))),c(this,E)&&(c(this,E).effect=c(this,Yt)))}if(!c(this,Pe))return;I(this,Pe,!1),(o=c(this,Yt))==null||o.call(this)}else e==null&&I(this,xt,void 0)}}})},controls:{value:c(this,qs)},cursor:{value:Object.defineProperties(e=>C(Q,Sn,ks).call(this,n=>!!(n&&C(this,mi,pc).call(this,n)))(e),{valueOf:{value:()=>{var e;return((e=c(this,E))==null?void 0:e.cursor)??-1}}})},highlight:{value:(()=>{const e=()=>c(this,Wt)===c(this,Rt)&&c(this,Rt)===void 0,n=s=>i=>C(Q,Sn,ks).call(this,r=>{var o,a,l,u,h;if(!(c(this,kt)||!c(this,ut)||c(this,ut)===Qe)){if(r==null)return C(this,ys,lr).call(this);e()?(a=c(this,E))==null||a.updateSelection(r,ac):((o=c(this,E))==null||o.updateSelection(r,s),c(this,ut)===Se&&c(this,Dt)&&C(this,An,Ws).call(this,r,s===mt?Ot:mt,c(this,Dt))),I(this,Wt,(l=c(this,E))==null?void 0:l.selectionStart),I(this,Rt,(u=c(this,E))==null?void 0:u.selectionEnd),(h=c(this,E))==null||h.shiftFrameToTimestamp(s===mt?c(this,Wt):c(this,Rt))}})(i);return Z({blank:{get:e},from:{get:()=>{var s;return((s=c(this,E))==null?void 0:s.selectionStart)??c(this,Wt)},set:n(mt)},to:{get:()=>{var s;return((s=c(this,E))==null?void 0:s.selectionEnd)??c(this,Rt)},set:n(Ot)}})})()},rowspan:{get:()=>{var e;return((e=c(this,E))==null?void 0:e.rowspan)??0}},weekdays:{get:()=>{var e;return((e=c(this,E))==null?void 0:e.daysOfWeek)??c(Q,si)}}}));this.grid=c(this,ti),this.kill=C(this,fi,yc).bind(this)}},et=new WeakMap,kt=new WeakMap,E=new WeakMap,Wt=new WeakMap,Rt=new WeakMap,zt=new WeakMap,ut=new WeakMap,Pe=new WeakMap,Dt=new WeakMap,Nn=new WeakMap,re=new WeakMap,oe=new WeakMap,xt=new WeakMap,Yt=new WeakMap,Tn=new WeakMap,Ks=new WeakMap,pe=new WeakMap,jt=new WeakMap,qs=new WeakMap,ye=new WeakMap,Ln=new WeakMap,ke=new WeakMap,Is=new WeakMap,ti=new WeakMap,ei=new WeakMap,ni=new WeakMap,si=new WeakMap,ii=new WeakMap,ri=new WeakMap,oi=new WeakMap,ai=new WeakSet,hc=function(e){if(!Me(e)||!c(Q,ei).test(e))return;const n=e.split(/\s+/);return Array.from({length:6},(s,i)=>parseInt(n[i]??"0"))},ci=new WeakSet,mc=function(e){switch(e&~Ye.PREV){case Ye.FRAME:return js;case Ye.PERIOD:return ws;case Ye.BLOCK:default:return cc}},li=new WeakSet,fc=function(e){return e&Ye.PREV?-1:1},ui=new WeakMap,Sn=new WeakSet,ks=function(e){var n;return((n=c(this,ke))==null?void 0:n.call(this,e))??e},We=new WeakSet,Pn=function(){return{...c(this,et)}},gs=new WeakSet,ar=function(){return new Fy},di=new WeakSet,Ic=function(e){return!!c(this,E)&&!(e>0?c(this,E).isAtEnd:c(this,E).isAtStart)},hi=new WeakSet,gc=function(e){var i,r;if(c(this,kt))return;I(this,Dt,void 0);const n=e==null?void 0:e.highlight,s=vn(c(this,et).minified);if(Me(n)?I(this,Dt,C(i=Q,ai,hc).call(i,n))&&I(this,ut,Se):I(this,ut,Rn(jy,n,c(this,ut))),I(this,et,{...c(this,et),...e,blocks:Rn(en,e==null?void 0:e.blocks,c(this,et).blocks),controls:Rn(ho,e==null?void 0:e.controls,c(this,et).controls),firstWeekDay:Rn(Va,e==null?void 0:e.firstWeekDay,c(this,et).firstWeekDay),fixedBlockHeight:vn(e==null?void 0:e.fixedBlockHeight,c(this,et).fixedBlockHeight),highlight:c(this,ut),minified:vn(e==null?void 0:e.minified,c(this,et).minified),trackCurrentDay:vn(e==null?void 0:e.trackCurrentDay,c(this,et).trackCurrentDay)}),!V(c(this,xt))){c(this,E)?I(this,Pe,!0):(I(this,E,c(this,gs,ar)),C(this,Ns,dr).call(this),C(this,Ls,mr).call(this),C(this,Ts,hr).call(this));return}(!c(this,E)||s!==c(this,et).minified)&&(I(this,E,c(this,gs,ar)),c(this,E).effect=c(this,Yt)),C(this,Ns,dr).call(this),(r=c(this,Yt))==null||r.call(this)},mi=new WeakSet,pc=function(e){if(e&&c(this,E)&&V(c(this,xt))){if(e instanceof KeyboardEvent){switch(e.code){case w.ARROW_LEFT:c(this,E).shiftFrameCursor(Xa);break;case w.ARROW_RIGHT:c(this,E).shiftFrameCursor(ec);break;case w.ARROW_UP:c(this,E).shiftFrameCursor(oc);break;case w.ARROW_DOWN:c(this,E).shiftFrameCursor(tc);break;case w.HOME:c(this,E).shiftFrameCursor(e.ctrlKey?qa:sc);break;case w.END:c(this,E).shiftFrameCursor(e.ctrlKey?Ka:nc);break;case w.PAGE_UP:e.shiftKey?c(this,E).shiftFrameByOffset(-1,ws):c(this,E).shiftFrameCursor(rc);break;case w.PAGE_DOWN:e.shiftKey?c(this,E).shiftFrameByOffset(1,ws):c(this,E).shiftFrameCursor(ic);break;case w.SPACE:case w.ENTER:return C(this,ze,kn).call(this),!0;default:return}return c(this,zt)&&C(this,ze,kn).call(this,P),!0}if(e instanceof MouseEvent&&c(Q,ni).includes(e.type)&&V(c(this,re))){const n=c(this,re).call(c(this,We,Pn),e);if(!Bn(n))return;const s=e.type==="click";if(!(s||c(this,zt)))return;if(c(this,E).shiftFrameCursor(n),c(this,E).cursor===n)return s?C(this,ze,kn).call(this):C(this,ze,kn).call(this,P),!0}}},fi=new WeakSet,yc=function(){var e;c(this,kt)||((e=c(this,Tn))==null||e.call(this),I(this,ke,I(this,Is,I(this,re,I(this,E,I(this,ut,I(this,Nn,I(this,Ln,I(this,Dt,I(this,oe,I(this,Tn,I(this,ye,I(this,Yt,I(this,xt,void 0))))))))))))),I(this,et,P),I(this,zt,I(this,Pe,!1)),I(this,kt,!0))},ps=new WeakSet,cr=function(e){var s,i;if(!c(this,jt)||e<0||e>=c(this,jt).length)return;const n=c(this,jt)[e];if(!c(this,pe)[e]){const r=sr[n],o=C(s=Q,ci,mc).call(s,r),a=C(i=Q,li,fc).call(i,r);c(this,pe)[e]=(...l)=>C(Q,Sn,ks).call(this,(...u)=>{var f;const h=C(this,di,Ic).call(this,a);if(!(h&&u.length))return h;const m=C(this,Ii,Mc).call(this,n,u[0]);return m===void 0?!1:((f=c(this,E))==null||f.shiftFrameByOffset(a*m,o),!0)})(...l)}return[n,c(this,pe)[e]]},Ii=new WeakSet,Mc=function(e,n){if(!(c(this,E)&&V(c(this,xt))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!c(Q,ii).includes(n.code))return}else return;let s=1;if(V(c(this,oe))){const i=Number(c(this,oe).call(c(this,We,Pn),n,e));s=Number.isInteger(i)&&i>=1?i:s}return s},ze=new WeakSet,kn=function(e){if(c(this,kt)||!c(this,E))return;switch(c(this,ut)){case Se:case Ve:break;case Qe:default:return}const n=c(this,E).cursor,s=c(this,E).getTimestampAtIndex(n),i=c(this,E).getTimestampAtIndex(n+1)-1,r=c(this,Dt);if(c(this,ut)===Ve||c(this,E).blankSelection||r)if(I(this,zt,!(c(this,ut)===Ve||r)),c(this,ut)===Se&&r){const o=i>=c(this,E).selectionEnd?mt:Ot;o===mt?c(this,E).updateSelection(i,Ot):c(this,E).updateSelection(s,mt),C(this,An,Ws).call(this,o===mt?c(this,E).selectionEnd:c(this,E).selectionStart,o,r)}else c(this,E).updateSelection(s,mt),c(this,E).updateSelection(i,Ot);else{const o=e===P;if(o||I(this,zt,!1),s<=c(this,E).selectionStart?c(this,E).updateSelection(s,mt):c(this,E).updateSelection(i,Ot),o)return}I(this,Wt,c(this,E).selectionStart),I(this,Rt,c(this,E).selectionEnd)},ys=new WeakSet,lr=function(){var e;(e=c(this,E))==null||e.clearSelection(),I(this,zt,!1),I(this,Wt,I(this,Rt,void 0))},An=new WeakSet,Ws=function(e,n,s){if(!c(this,E))return;const i=new Date(e),r=n===mt?-1:1,[o=0,a=0,l=0,u=0,h=0,m=0]=s??[];i.setFullYear(i.getFullYear()+o*r,i.getMonth()+a*r,i.getDate()+l*r),i.setHours(i.getHours()+u*r,i.getMinutes()+h*r,i.getSeconds()+m*r),c(this,E).updateSelection(i.getTime()-r,n)},Ms=new WeakSet,ur=function(){var e,n;c(this,Wt)&&((e=c(this,E))==null||e.updateSelection(c(this,Wt),mt)),c(this,Rt)&&((n=c(this,E))==null||n.updateSelection(c(this,Rt),Ot)),I(this,zt,!1)},Ns=new WeakSet,dr=function(){c(this,E)&&(c(this,E).timeslice=c(this,et).timeslice,c(this,E).dynamicBlockHeight=!c(this,et).fixedBlockHeight,c(this,E).firstWeekDay=c(this,et).firstWeekDay,c(this,E).locale=c(this,et).locale,c(this,E).size=c(this,et).blocks,c(this,E).trackCurrentDay=c(this,et).trackCurrentDay,C(this,Ms,ur).call(this))},Ts=new WeakSet,hr=function(){var e,n,s,i,r;switch(c(this,ut)){case Se:((e=c(this,E))==null?void 0:e.blankSelection)===!1&&c(this,Dt)&&C(this,An,Ws).call(this,(n=c(this,E))==null?void 0:n.selectionStart,Ot,c(this,Dt));break;case Ve:((s=c(this,E))==null?void 0:s.blankSelection)===!1&&((r=c(this,E))==null||r.updateSelection(new Date((i=c(this,E))==null?void 0:i.selectionStart).setHours(23,59,59,999),Ot));break;case Qe:default:C(this,ys,lr).call(this);return}},Ls=new WeakSet,mr=function(){var e,n;switch((e=c(this,ye))==null?void 0:e.snapshot.controls){case jr:I(this,jt,c(Q,ri));break;case wr:I(this,jt,c(Q,oi));break;case Pr:default:I(this,jt,void 0)}c(this,pe).length=0,c(this,pe).length=((n=c(this,jt))==null?void 0:n.length)??0},p(Q,ai),p(Q,ci),p(Q,li),p(Q,Sn),p(Q,ei,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),p(Q,ni,["click","mouseover","pointerover"]),p(Q,si,Ee(0,bt)),p(Q,ii,[w.ENTER,w.SPACE]),p(Q,ri,Object.keys(sr).filter(e=>isNaN(+e))),p(Q,oi,["PREV","NEXT"]),p(Q,ui,function(e){var o,a;if(typeof e=="symbol")return;let n=!1,s=!1,i=!1;const r=(o=c(this,Dt))==null?void 0:o.join(" ");for(const l of Object.keys(e))e[l]!==((a=c(this,Ln))==null?void 0:a[l])&&(l==="controls"?n=!0:l==="highlight"?s=!0:(l==="from"||l==="to")&&(i=!0));c(this,Nn)!==r&&(I(this,Nn,r),s=!0),I(this,Ln,e),c(this,zt)&&!i&&C(this,Ms,ur).call(this),n&&C(this,Ls,mr).call(this),s&&C(this,Ts,hr).call(this)}),Q);const Uy=(()=>Object.defineProperties(e=>{const{grid:n,kill:s}=new $y;return Dn(e)?n.config({blocks:e}):V(e)?Promise.resolve().then(()=>{n.config.watch=e}):n.config(e),Z({grid:q(n),kill:q(s)})},{controls:{value:Z({ALL:{value:jr},MINIMAL:{value:wr},NONE:{value:Pr}})},highlight:{value:Z({ONE:{value:Ve},MANY:{value:Se},NONE:{value:Qe}})},slice:{value:Object.defineProperties(zy.bind(null),{FROM:{value:kr},TO:{value:Wr},UNBOUNDED:{value:Zs},SINCE_NOW:{get:ky},UNTIL_NOW:{get:Wy}})}}))(),Ht=Uy,Hy=({config:t,grid:{controls:e},renderer:n})=>t.controls===Ht.controls.NONE||!V(n)?null:d(S.Fragment,{children:e.map(([s,i])=>n(s,i))}),Gy=ht(Hy),Yy=t=>{const e=_((n,s)=>{s instanceof Element&&s.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),Promise.resolve().then(()=>n==null?void 0:n.focus()))},[]);return le(_((n,s)=>{try{t==null||t(n,s)}finally{e(n,s)}},[t]))},Zy=({blocks:t,controls:e,dynamicBlockRows:n,firstWeekDay:s,highlight:i,locale:r,onHighlight:o,originDate:a,renderControl:l,sinceDate:u,trackCurrentDay:h,untilDate:m,useYearView:f},g)=>{const{i18n:M}=K(),[A,L]=B(performance.now()),T=y(()=>Ht.slice(u,m),[u,m]),D=R(P),b=y(()=>e??(V(l)?Ht.controls.MINIMAL:Ht.controls.NONE),[e,l]),j=y(()=>i??(V(o)?Ht.highlight.ONE:Ht.highlight.NONE),[i,o]),{grid:N,kill:x}=y(()=>{const{grid:v,kill:z}=Ht(function(){L(performance.now()),D.current=this,!(X===v.highlight.from&&ot===v.highlight.to)&&(X=v.highlight.from,ot=v.highlight.to,o==null||o(X,ot))});let{from:X,to:ot}=v.highlight;return v.config.cursorIndex=H=>{let J=H.target;for(;J&&J!==H.currentTarget;){const Nt=Number(J.dataset.cursorPosition);if(Number.isFinite(Nt))return Nt;J=J.parentNode}},v.config.shiftFactor=function(H){if(this.controls===Ht.controls.MINIMAL)return H!=null&&H.shiftKey?12:H!=null&&H.altKey?this.blocks:1},{grid:v,kill:z}},[]),$=y(()=>{const v=z=>{N.cursor(z)};return{onClickCapture:v,onMouseOverCapture:v,onPointerOverCapture:v,onKeyDownCapture:z=>{N.cursor(z)&&z.preventDefault()}}},[N]),W=Yy(_((v,z)=>{z instanceof Element&&z.removeAttribute("aria-selected"),v instanceof Element&&v.setAttribute("aria-selected","true")},[]));return Wf(g,()=>{const{from:v,to:z}=(N==null?void 0:N.highlight)||P;return{clear:()=>{N!=null&&N.highlight&&(N.highlight.from=void 0)},get config(){return{...D.current??P}},get from(){return po(v)},set from(X){N!=null&&N.highlight&&X&&(N.highlight.from=X.getTime())},get to(){return po(z)},set to(X){N!=null&&N.highlight&&X&&(N.highlight.to=X.getTime())}}},[N,A]),k(()=>{N.config({blocks:t,controls:b,firstWeekDay:s,fixedBlockHeight:!n,highlight:j,locale:r??M.locale,minified:f,timeslice:T,trackCurrentDay:h})},[b,j,t,n,s,N,M,r,T,h,f]),k(()=>{const v=[].concat(a).slice(0,2).map(Number).filter(Boolean);return v[0]&&(N.highlight.from=+v[0]),v[1]&&(N.highlight.to=+v[1]),x},[]),{cursorElementRef:W,cursorRootProps:$,grid:N}},Jy=Zy,Qy=Vt((t,e)=>{const n=Jy(t,e),s=n.grid.config();return d("div",{role:"none",children:[d(Gy,{config:s,grid:n.grid,renderer:t.renderControl}),d(Oy,{ref:n.cursorElementRef,config:s,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:t.onlyCellsWithin,prepare:t.prepare})]})}),Vy=ht(Qy),Xy=Ne(({title:t,...e},n)=>d("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&d("title",{children:t}),d("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.53 11.03c-.3.3-.77.3-1.06 0L8 6.56l-4.47 4.47a.75.75 0 1 1-1.06-1.06l5-5c.3-.3.77-.3 1.06 0l5 5c.3.3.3.77 0 1.06Z",clipRule:"evenodd"})]})),Nc=Xy,Ky=(t,e)=>{const[n,s]=B(),i=le(y(()=>{const r=o=>(...a)=>{const l=t(o,...a);return l&&mI(l,o)};return s(void 0),o=>s(o instanceof Element?()=>r(o):void 0)},[t,e]),e);return[n,i]},qy=Ky,tM=t=>{const{i18n:e}=K();return qy(_((n,s,i)=>{if(!(n instanceof HTMLElement))return null;if(V(t))return t(s,i);let r,o,a;switch(s){case"PREV":r="prev",o="previous",a=Nc;break;case"NEXT":r=o="next",a=Er;break;default:return null}const l=i();return l?d(Qt,{"aria-label":e.get(`calendar.${o}Month`),variant:Tt.TERTIARY,disabled:!l,classNameModifiers:["circle",r],iconButton:!0,onClick:i,children:d(a,{role:"presentation"})},s):null},[e,t]))},eM=tM;const nM=Vt((t,e)=>{const{i18n:n}=K(),[s,i]=eM(t.renderControl),[r,o]=B(performance.now()),a=y(()=>t.showTimezoneInfo!==!1,[t.showTimezoneInfo]),{clockTime:l,GMTOffset:u}=Fp({timezone:t.timezone,withClock:a}),h=y(()=>G([{"adyen-fp-datepicker--with-timezone":a},"adyen-fp-datepicker"]),[a]),m=y(()=>a?{values:{offset:u,time:l}}:P,[u,l,a]),f=le(bt,e),g=_(()=>{var M,A,L,T,D;o(performance.now()),(M=f.current)!=null&&M.from&&((A=f.current)!=null&&A.to)&&((D=t.onHighlight)==null||D.call(t,+((L=f.current)==null?void 0:L.from),+((T=f.current)==null?void 0:T.to)))},[o,t.onHighlight]);return d("div",{className:h,children:[d("div",{className:"adyen-fp-datepicker__selector-container",children:d(Ty,{now:t.now,calendarRef:f,onTimeRangeSelected:t.onPresetOptionSelected,options:t.timeRangePresetOptions,selectedOption:t.selectedPresetOption,timestamp:r,timezone:t.timezone})}),d("div",{ref:i,role:"group",className:"adyen-fp-datepicker__controls","aria-label":n.get("calendar.controls")}),d(Vy,{...t,ref:f,firstWeekDay:Rr,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:t.controls??Ht.controls.MINIMAL,highlight:t.highlight??Ht.highlight.MANY,onHighlight:g,renderControl:s}),a&&d("div",{className:"adyen-fp-datepicker__timezone",children:n.get("calendar.timezone",m)})]})}),sM=nM;const iM="adyen-fp-filter-button";function rM({className:t,classNameModifiers:e=[],children:n,disabled:s,onClick:i,...r},o){const a=y(()=>tn("",t)||"",[t]),l=y(()=>gr(s),[s]),{classes:u,click:h}=Lr(a,e,iM,l,i);return d("button",{className:u,ref:o,onClick:h,...r,children:d(Jt,{el:_n.SPAN,variant:F.BODY,stronger:!0,children:n})})}const oM=Vt(rM);let Mo=Date.now();const aM=(t="field")=>(Mo+=1,`${t}-${Mo}`),cM=t=>{const e=R();return le(_((n,s)=>{s instanceof Element&&s.id===e.current&&(s.id=""),n instanceof Element&&(n.id=e.current||(e.current=aM("adyen-fp")))},[t]),t)};function Tc({onInput:t,onKeyUp:e,trimOnBlur:n,onBlurHandler:s,onBlur:i,onFocusHandler:r,errorMessage:o,...a},l){const{autoCorrect:u,classNameModifiers:h,isInvalid:m,isValid:f,readonly:g=!1,spellCheck:M,type:A,uniqueId:L,isCollatingErrors:T,disabled:D}=a;ae(a,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const b=_(J=>{t==null||t(J)},[t]),j=_(J=>{e&&e(J)},[e]),N=_(J=>{s==null||s(J),n&&(J.target.value=J.target.value.trim()),i==null||i(J)},[i,s,n]),x=_(J=>{r==null||r(J)},[r]),$=G("adyen-fp-input",[`adyen-fp-input--${A}`],a.className,{"adyen-fp-input--invalid":m,"adyen-fp-input--valid":f},h==null?void 0:h.map(J=>`adyen-fp-input--${J}`)),{classNameModifiers:W,uniqueId:v,isInvalid:z,isValid:X,isCollatingErrors:ot,...H}=a;return d(S.Fragment,{children:[d("input",{id:L,...H,type:A,className:$,readOnly:g,"aria-describedby":T?void 0:`${L}${Xi}`,"aria-invalid":m,onInput:b,onBlur:N,onFocus:x,onKeyUp:j,disabled:D,ref:l}),m&&o&&d("span",{className:"adyen-fp-input__invalid-value",id:`${L}${Xi}`,children:o})]})}Tc.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const fr=Vt(Tc),lM=Vt(function(e,n){return d(fr,{classNameModifiers:e.classNameModifiers,...e,ref:n,"aria-required":e.required,type:"text"})});const uM=t=>!t||Yf(t),dM=(()=>{const t=e=>{const{editAction:n,name:s,onChange:i,onValueUpdated:r}=e,[o,a]=B(e.value),l=_(u=>{const h=u.target.value.trim();a(h),r(h)},[r]);return k(()=>{if(n===dt.CLEAR){const u="";a(u),r(u),i(u)}n===dt.APPLY&&i(o??"")},[o,n,i,r]),d(lM,{name:s,value:o,onInput:l})};return e=>d(t,{...e})})(),hM=({render:t,...e})=>{var W;const[n,s]=te(!1),[i,r]=te(!1),o=y(()=>e.isValueEmpty??uM,[e.isValueEmpty]),[a,l]=te(o(e.value)),[u,h]=te(!1),[m,f]=te(!1),[g,M]=te(o(e.value)),A=cM(),L=y(()=>t??dM,[t]),T=_(v=>{const z=o(v??void 0);l(z),M(v===null),f(u?v!==e.value:!z)},[o,l,M,f,u,e.value]),{commitAction:D,commitActionButtons:b,committing:j,resetCommitAction:N}=Oa({applyDisabled:g||!m,resetDisabled:a}),[x,$]=y(()=>{const v=z=>()=>{z!==n&&(z&&(N(),f(!1),h(!1)),s(z),r(z))};return[v(!1),v(!0)]},[s,n,N,r,h,f]);return k(()=>{if(i){const v=o(e.value);r(!1),l(v),h(!v)}},[e.value,i,o,r,l,h]),k(()=>{j&&x(),l(a)},[j,x,l,a]),d(S.Fragment,{children:[d("div",{className:`adyen-fp-filter adyen-fp-filter--${e.type}`,children:y(()=>d(oM,{classNameModifiers:[...e.appliedFilterAmount?["with-counter"]:[],...e.classNameModifiers??[],...n?["active"]:[],...a?[]:["has-selection"]],onClick:n?x:$,tabIndex:0,ref:A,children:d("div",{className:"adyen-fp-filter-button__default-container",children:[d(Jt,{el:_n.SPAN,variant:F.BODY,stronger:!0,className:"adyen-fp-filter-button__label",children:e.label}),!!e.appliedFilterAmount&&d("div",{className:"adyen-fp-filter-button__counter-wrapper",children:d(Jt,{el:_n.SPAN,variant:F.BODY,stronger:!0,className:"adyen-fp-filter-button__counter",children:e.appliedFilterAmount})})]})}),[e.appliedFilterAmount,e.classNameModifiers,e.label,n,a,x,$,A])}),n&&d(wa,{actions:b,title:(W=e.title)==null?void 0:W.trim(),modifiers:["filter"],open:n,"aria-label":`${e.label}`,dismiss:x,dismissible:!1,withContentPadding:e.withContentPadding??!0,divider:!0,targetElement:A,disableFocusTrap:!1,containerSize:e.containerSize,children:L({...e,editAction:D,onValueUpdated:T})})]})},Lc=ht(hM);var Gn=(t=>(t.FROM="from",t.TO="to",t))(Gn||{});const Sc=(t,e,n)=>{const s=e&&t.fullDate(e),i=n&&t.fullDate(n);if(s&&i)return`${s} - ${i}`;if(s)return t.get("filter.date.since",{values:{date:s}});if(i)return t.get("filter.date.until",{values:{date:i}})},Zt=t=>{try{return new Date(t||"").toISOString()}catch{return""}},mM=(()=>{const t=({editAction:e,from:n,to:s,now:i,onChange:r,onValueUpdated:o,showTimezoneInfo:a,selectedPresetOption:l,timeRangePresetOptions:u,timezone:h,sinceDate:m,untilDate:f})=>{const{i18n:g}=K(),[M,A]=B(l),L=y(()=>[new Date(n),new Date(s)],[n,s]),T=R(),D=_((b,j)=>{o(Sc(g,Zt(b),Zt(j)))},[g,o]);return k(()=>{var b,j,N;switch(e){case dt.APPLY:r({selectedPresetOption:M,[Gn.FROM]:Zt((b=T.current)==null?void 0:b.from),[Gn.TO]:Zt((j=T.current)==null?void 0:j.to)});break;case dt.CLEAR:(N=T.current)==null||N.clear(),r()}},[e,r,M]),d(sM,{ref:T,now:i,originDate:L,onHighlight:D,onPresetOptionSelected:A,selectedPresetOption:l,timeRangePresetOptions:u,timezone:h,showTimezoneInfo:a,sinceDate:Zt(m),untilDate:Zt(f)})};return e=>d(t,{...e})})();function fM({title:t,from:e,to:n,selectedPresetOption:s,...i}){const{i18n:r}=K(),[o,a]=B(),[l,u]=B(),[h,m]=B(),f=_(M=>{const{from:A,to:L,selectedPresetOption:T}=M??P;try{a(o??T),u(Zt(l??A)),m(Zt(h??L))}finally{i.onChange({from:A,to:L,selectedPresetOption:T})}},[o,l,h,i]);k(()=>a(s),[s]),k(()=>u(Zt(e||Date.now())),[e]),k(()=>m(Zt(n||Date.now())),[n]);const g=y(()=>s??i.label,[s,i.label]);return d(Lc,{...i,from:e,to:n,type:"date",label:g,onChange:f,render:mM,selectedPresetOption:s,value:Sc(r,e,n),withContentPadding:!1})}const IM=({balanceAccount:t,canResetFilters:e,defaultParams:n,filters:s,nowTimestamp:i,refreshNowTimestamp:r,updateFilters:o})=>{const{i18n:a}=K(),l=y(()=>a.get(n.current.defaultTimeRange),[a]),[u,h]=B(l),m=_((f=P)=>{for(const[g,M]of Object.entries(f)){switch(g){case"selectedPresetOption":h(M||l);break;case Gn.FROM:o({[U.CREATED_SINCE]:M||n.current.defaultFilterParams[U.CREATED_SINCE]});break;case Gn.TO:o({[U.CREATED_UNTIL]:M||n.current.defaultFilterParams[U.CREATED_UNTIL]});break;default:return}r()}},[l,r,o]);return y(()=>!e&&h(l),[e,l]),d(fM,{label:a.get("dateRange"),name:U.CREATED_SINCE,untilDate:new Date(i).toString(),from:s[U.CREATED_SINCE],to:s[U.CREATED_UNTIL],selectedPresetOption:u,timeRangePresetOptions:n.current.timeRangeOptions,timezone:t==null?void 0:t.timeZone,onChange:m,showTimezoneInfo:!0,now:i})};const vi="adyen-fp-expandable-card",$e=vi+"__container",gM=$e+"--button",Wi=$e+"--filled",pM=$e+"--hidden",Ac=$e+"--overlay",zi=Ac,zs=vi+"__content",No=zs+"--expandable",To=vi+"__chevron",yM="adyen-fp-base-button";function MM({disabled:t=!1,onClick:e,classNameModifiers:n=[],type:s="button",children:i,className:r,...o},a){const l=y(()=>tn("",r)||"",[r]),u=y(()=>gr(t),[t]),{classes:h,click:m}=Lr(l,[...n],yM,u,e);return d("button",{className:h,type:s,disabled:t,onClick:m,ref:a,...o,children:i})}const Lo=Vt(MM),Ec=({renderHeader:t,children:e,filled:n})=>{const{i18n:s}=K(),[i,r]=B(!1),o=_(()=>r(m=>!m),[r]),a=R(null),l=R(!1),u=R(i),h=Ar(void 0,_(()=>{i&&(o(),l.current=!0)},[i,o]));return k(()=>{var m,f;i?(m=h.current)==null||m.focus():(u.current!==i&&!l.current&&((f=a.current)==null||f.focus()),l.current=!1),u.current=i},[i,h]),d("div",{className:vi,children:e?d(S.Fragment,{children:[d(Lo,{className:G($e,gM,{[Wi]:n}),disabled:i,"aria-controls":zi,"aria-expanded":i,"aria-hidden":i,onClick:o,ref:a,"data-testid":"expand-button",children:[d("span",{className:"adyen-fp-sr-only",children:s.get("expandableCard.expand")}),d("div",{className:G(zs,No),children:t}),d("div",{className:To,children:d(Er,{role:"presentation"})})]}),d(Lo,{id:zi,className:G($e,Ac,{[Wi]:n,[pM]:!i}),disabled:!i,"aria-controls":zi,"aria-expanded":i,"aria-hidden":!i,onClick:o,ref:h,"data-testid":"collapse-button",children:[d("span",{className:"adyen-fp-sr-only",children:s.get("expandableCard.collapse")}),d("div",{className:G(zs,No),children:[t,d("div",{children:e})]}),d("div",{className:To,children:d(Nc,{role:"presentation"})})]})]}):d("div",{className:G($e,{[Wi]:n}),children:d("div",{className:zs,children:t})})})},NM="adyen-fp-transactions-totals";const zr="adyen-fp-amount-skeleton",TM=zr+"--has-margin",LM=zr+"--loading";const SM=({hasMargin:t=!1,isLoading:e=!1,width:n})=>d("span",{className:G(zr,{[LM]:e,[TM]:t}),style:{width:n}}),Yn="adyen-fp-summary-item",AM=Yn+"--body",So=Yn+"__label",EM=Yn+"__placeholder",_c=({columnConfigs:t,isHeader:e=!1,isSkeletonVisible:n=!1,isLoading:s=!1,widths:i,onWidthsSet:r,isEmpty:o})=>{const{i18n:a}=K();k(()=>{const u=t.map(h=>{var m,f;return((f=(m=h.ref)==null?void 0:m.current)==null?void 0:f.getBoundingClientRect().width)??0});r(u)},[r]);const l=u=>({width:i&&i[u]?i[u]:"auto"});return d("div",{className:G(Yn,{[AM]:!e}),children:t.map((u,h)=>d("div",{children:[e&&u.labelKey&&d(Jt,{variant:F.CAPTION,className:So,children:a.get(u.labelKey)}),n?d(SM,{isLoading:s,hasMargin:u.hasSkeletonMargin,width:u.skeletonWidth+"px"}):o?d("span",{className:G([Yn,EM])}):d("div",{ref:u.ref,style:l(h),children:d(Jt,{variant:u.valueHasLabelStyle?F.CAPTION:F.TITLE,className:G({[So]:u.valueHasLabelStyle}),children:u.getValue()})})]},h))})},Ao=({total:t,isHeader:e=!1,isSkeleton:n=!1,isLoading:s=!1,widths:i,onWidthsSet:r})=>{const{i18n:o}=K(),a=R(null),l=R(null),u=R(null);return d(_c,{isEmpty:!t,columnConfigs:[{labelKey:"incoming",ref:a,skeletonWidth:80,getValue:()=>t&&o.amount(t.incomings,t.currency)},{labelKey:"expense",ref:l,skeletonWidth:80,getValue:()=>t&&o.amount(t.expenses,t.currency)},{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}],isHeader:e,isSkeletonVisible:n,isLoading:s,widths:i,onWidthsSet:r})};const _M="adyen-fp-base-list",Cc=({children:t})=>d("ul",{className:_M,children:t}),Dc=()=>{const[t,e]=B([]),n=_(s=>{e(i=>s.map((r,o)=>{const a=i[o];return!a||r>a?r:a}))},[]);return[t,n]},CM=ht(({balanceAccountId:t,createdSince:e,createdUntil:n,categories:s,statuses:i,maxAmount:r,minAmount:o,currencies:a,availableCurrencies:l})=>{const u=Es("getTransactionTotals"),h=_(async()=>u(P,{query:{createdSince:e,createdUntil:n,categories:s,statuses:i,maxAmount:r,minAmount:o,currencies:a,balanceAccountId:t}}),[t,s,e,n,a,u,r,o,i]),{data:m,error:f,isFetching:g}=Si({fetchOptions:y(()=>({enabled:!!t}),[t]),queryFn:h}),M=!t||g,A=m==null?void 0:m.totals,[L,...T]=A??[],[D,b]=Dc();return d("div",{className:NM,children:d(Ec,{renderHeader:d(Ao,{total:L,widths:D,isHeader:!0,isSkeleton:M,isLoading:M,onWidthsSet:b}),children:T.length&&d(Cc,{children:T.map(j=>d("li",{children:d(Ao,{total:j,widths:D,onWidthsSet:b})},j.currency))})})})}),DM="adyen-fp-balances",Eo=({balance:t,isHeader:e=!1,isSkeleton:n=!1,isLoading:s=!1,widths:i,onWidthsSet:r,isEmpty:o})=>{const{i18n:a}=K(),l=R(null),u=R(null);return d(_c,{isEmpty:o,columnConfigs:[{labelKey:"accountBalance",ref:l,skeletonWidth:80,getValue:()=>t&&a.amount(t.value,t.currency)},{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}],isHeader:e,isSkeletonVisible:n,isLoading:s,widths:i,onWidthsSet:r})},bM=ht(({balanceAccountId:t,updateBalanceAccountCurrencies:e})=>{const n=Es("getBalances"),s=_(async()=>n(P,{path:{balanceAccountId:t}}),[t,n]),{data:i,error:r,isFetching:o}=Si({fetchOptions:y(()=>({enabled:!!t}),[t]),queryFn:s});k(()=>{i&&e(i==null?void 0:i.balances.map(({currency:M})=>M).sort())},[i,e]);const a=!t||o,l=!!r||!(i!=null&&i.balances.length),u=i==null?void 0:i.balances,[h,...m]=u??[],[f,g]=Dc();return d("div",{className:DM,children:d(Ec,{renderHeader:d(Eo,{isEmpty:l,balance:h,widths:f,isHeader:!0,isSkeleton:a,isLoading:a,onWidthsSet:g}),filled:!0,children:m.length&&d(Cc,{children:m.map(M=>d("li",{children:d(Eo,{balance:M,widths:f,onWidthsSet:g})},M.currency))})})})}),OM=ht(({activeBalanceAccount:t,balanceAccountSelectionOptions:e,onBalanceAccountSelection:n})=>e&&e.length>1?d(_i,{onChange:n,filterable:!1,multiSelect:!1,selected:t==null?void 0:t.id,withoutCollapseIndicator:!0,items:e}):null),vM=OM,RM=t=>{const[e,n]=B(0),s=_(()=>n(0),[n]),i=y(()=>t==null?void 0:t[e],[t,e]),r=y(()=>t&&t.length>1?Object.freeze(t.map(({id:a})=>({id:a,name:a}))):void 0,[t]),o=_(({target:a})=>{const l=a==null?void 0:a.value,u=t==null?void 0:t.findIndex(({id:h})=>h===l);u>=0&&n(u)},[t,n]);return{activeBalanceAccount:i,balanceAccountSelectionOptions:r,onBalanceAccountSelection:o,resetBalanceAccountSelection:s}},xM=RM,jM=ht(({placeholder:t,selection:e,selectionOptions:n,updateSelection:s})=>n&&n.length>1?d(_i,{onChange:s,filterable:!1,multiSelect:!0,placeholder:t,selected:e,withoutCollapseIndicator:!0,items:n}):null),Bi=jM,Wn=t=>{const e=`${t}`.trim();return e?e.split(/(?:\s*,\s*)+/).filter(Boolean):pt},wM=t=>Object.freeze(t.map(e=>({id:e,name:e}))),PM=({filterParam:t,filterValues:e,filters:n,defaultFilters:s,updateFilters:i})=>{const r=y(()=>Wn((n==null?void 0:n[t])??(s==null?void 0:s[t])??""),[s,n,t]),o=y(()=>e&&wM(e),[e]),a=_(({target:l})=>{i==null||i({[t]:(l==null?void 0:l.value)||""})},[i,t]);return{selection:r,selectionOptions:o,updateSelection:a}},Fi=PM,kM=[U.CURRENCIES,U.CATEGORIES,U.STATUSES],Bs=Object.freeze(Object.fromEntries(kM.map(t=>[t,""]))),WM=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],zM=["Booked","Pending","Reversed"],BM=()=>{const t=yy(),e="rangePreset.last7Days",{from:n,to:s}=t[e];return{defaultFilterParams:{...Bs,[U.CREATED_SINCE]:new Date(n).toISOString(),[U.CREATED_UNTIL]:new Date(s).toISOString(),[U.MIN_AMOUNT]:void 0,[U.MAX_AMOUNT]:void 0},defaultTimeRange:e,timeRangeOptions:t}},FM=t=>{const[e,n]=B(Date.now()),s=R(BM()),i=_(()=>n(Date.now()),[n]);return k(()=>{i()},[t,i]),{defaultParams:s,nowTimestamp:e,refreshNowTimestamp:i}},$M=FM,UM=(t,e)=>{const n=Fi({filterParam:U.CATEGORIES,filterValues:WM,defaultFilters:Bs,...t}),s=Fi({filterParam:U.STATUSES,filterValues:zM,defaultFilters:Bs,...t}),i=Fi({filterParam:U.CURRENCIES,filterValues:e,defaultFilters:Bs,...t});return{categoriesFilter:n,currenciesFilter:i,statusesFilter:s}},HM=UM;const GM=({onChange:t,editAction:e,onValueUpdated:n,selectedCurrencies:s,availableCurrencies:i,...r})=>{const{i18n:o}=K(),a=y(()=>(s==null?void 0:s.length)===1||(i==null?void 0:i.length)===1?!0:(((i==null?void 0:i.length)??0)>1,!1),[i==null?void 0:i.length,s==null?void 0:s.length]),l=_((L,T)=>{const D=new Intl.NumberFormat(o.locale);return T?o.amount(L,(s==null?void 0:s[0])||(i==null?void 0:i[0])||"EUR"):D.format(L)},[i,o,s]),[u,h]=B(r.minAmount!==void 0?parseFloat(r.minAmount):void 0),[m,f]=B(r.maxAmount!==void 0?parseFloat(r.maxAmount):void 0),g=y(()=>{if(u!==void 0&&u<0)return null;if(u!==void 0&&m!==void 0)return m<u?null:`${l(u,a)} to ${l(m,a)}`;if(u!==void 0)return`${o.get("from")} ${l(u,a)}`;if(m!==void 0)return`${o.get("to")} ${l(m,a)}`},[l,o,m,u,a]),M=_(()=>{t({minAmount:u,maxAmount:m,filterValue:g!==void 0?g:void 0})},[g,m,u,t]),A=_(()=>{t({minAmount:void 0,maxAmount:void 0,filterValue:void 0}),f(void 0),h(void 0)},[t]);return k(()=>{e===dt.APPLY&&M(),e===dt.CLEAR&&A()},[M,A,e]),k(()=>{n(g)},[g,n]),d("div",{className:"adyen-fp-range-selection-filter",children:[d("div",{className:"adyen-fp-range-selection-filter__input",children:[d("label",{htmlFor:"minValue",children:`${o.get("from")}:`}),d(fr,{lang:o.locale,name:"minValue",type:"number",value:u,onInput:L=>{L.currentTarget&&h(L.currentTarget.value!==""?parseFloat(L.currentTarget.value):void 0)},min:0,isInvalid:u?u<0:!1,errorMessage:o.get("noNegativeNumbersAllowed")})]}),d("div",{className:"adyen-fp-range-selection-filter__input",children:[d("label",{htmlFor:"maxValue",children:`${o.get("to")}:`}),d(fr,{lang:o.locale,name:"maxValue",type:"number",value:m,onInput:L=>{L.currentTarget&&f(L.currentTarget.value!==""?parseFloat(L.currentTarget.value):void 0)},min:u,isInvalid:m!==void 0&&u!==void 0?m<u:!1,errorMessage:o.get("secondValueShouldBeGreaterThanTheFirstOne")})]})]})},_o=1e5,YM=({updateFilters:t,selectedCurrencies:e,availableCurrencies:n,...s})=>{const[i,r]=B(),o=_(a=>{r(a.filterValue);const{minAmount:l,maxAmount:u}=a??P;t({minAmount:l!==void 0?String(l*_o):void 0,maxAmount:u!==void 0?String(u*_o):void 0})},[t]);return d(Lc,{...s,updateFilters:t,minAmount:s.minAmount,maxAmount:s.maxAmount,onChange:o,value:i,label:i||s.label,type:"text",containerSize:Un.MEDIUM,selectedCurrencies:e,availableCurrencies:n,render:GM})},ZM=({onFiltersChanged:t,onLimitChanged:e,balanceAccounts:n,allowLimitSelection:s,preferredLimit:i=qi,onTransactionSelected:r,showDetails:o,isLoadingBalanceAccount:a,onContactSupport:l})=>{const{i18n:u}=K(),h=Es("getTransactions"),{activeBalanceAccount:m,balanceAccountSelectionOptions:f,onBalanceAccountSelection:g}=xM(n),{defaultParams:M,nowTimestamp:A,refreshNowTimestamp:L}=$M(m),T=_(async(lt,Ut)=>h({signal:Ut,errorLevel:"error"},{query:{...lt,statuses:Wn(lt[U.STATUSES]),categories:Wn(lt[U.CATEGORIES]),currencies:Wn(lt[U.CURRENCIES]),createdSince:lt[U.CREATED_SINCE]??M.current.defaultFilterParams[U.CREATED_SINCE],createdUntil:lt[U.CREATED_UNTIL]??M.current.defaultFilterParams[U.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(m==null?void 0:m.id)??"",minAmount:lt.minAmount!==void 0?parseFloat(lt.minAmount):void 0,maxAmount:lt.maxAmount!==void 0?parseFloat(lt.maxAmount):void 0}}),[m==null?void 0:m.id,M,h]),D=y(()=>V(t)?t:void 0,[t]),b=y(()=>V(e)?e:void 0,[e]),j=y(()=>s?dp:void 0,[s]),{canResetFilters:N,error:x,fetching:$,filters:W,limit:v,limitOptions:z,records:X,resetFilters:ot,updateFilters:H,updateLimit:J,...Nt}=Pp({fetchRecords:T,dataField:"transactions",filterParams:M.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onLimitChanged:b,onFiltersChanged:D,preferredLimit:i,preferredLimitOptions:j,enabled:!!(m!=null&&m.id)}),[ft,Ft]=B([]),{categoriesFilter:de,currenciesFilter:he,statusesFilter:$t}=HM({filters:W,updateFilters:H},ft);return k(()=>{Ft(void 0),H({[U.CURRENCIES]:void 0})},[H,m==null?void 0:m.id]),k(()=>{L()},[W,L]),d(S.Fragment,{children:[d(_I,{children:[d(vM,{activeBalanceAccount:m,balanceAccountSelectionOptions:f,onBalanceAccountSelection:g}),d(IM,{canResetFilters:N,defaultParams:M,filters:W,nowTimestamp:A,refreshNowTimestamp:L,updateFilters:H}),d(Bi,{...$t,placeholder:u.get("filterPlaceholder.status")}),d(Bi,{...de,placeholder:u.get("filterPlaceholder.category")}),d(YM,{availableCurrencies:ft,selectedCurrencies:Wn(W[U.CURRENCIES]),name:"range",label:u.get("amount"),minAmount:W[U.MIN_AMOUNT],maxAmount:W[U.MAX_AMOUNT],updateFilters:H,onChange:H}),d(Bi,{...he,placeholder:u.get("filterPlaceholder.currency")})]}),d("div",{className:"adyen-fp-transactions__balance-totals",children:[d(CM,{availableCurrencies:ft,balanceAccountId:m==null?void 0:m.id,statuses:$t.selection,categories:de.selection,createdUntil:W[U.CREATED_UNTIL],createdSince:W[U.CREATED_SINCE],currencies:he.selection,minAmount:W[U.MIN_AMOUNT]?parseFloat(W[U.MIN_AMOUNT]):void 0,maxAmount:W[U.MAX_AMOUNT]?parseFloat(W[U.MAX_AMOUNT]):void 0}),d(bM,{balanceAccountId:m==null?void 0:m.id,updateBalanceAccountCurrencies:Ft})]}),d(up,{balanceAccounts:n,availableCurrencies:ft,loading:$||a||!n,transactions:X,onTransactionSelected:r,showPagination:!0,showDetails:o,balanceAccountDescription:(m==null?void 0:m.description)||"",limit:v,limitOptions:z,onContactSupport:l,onLimitSelection:J,error:x,...Nt})]})};function JM(t){const{sessionSetupError:e,endpoints:n}=Li(),s=Es("getBalanceAccounts"),{data:i,isFetching:r}=Si({fetchOptions:{enabled:!!n.getBalanceAccounts,keepPrevData:!0},queryFn:_(async()=>s(P),[s])}),o=y(()=>i==null?void 0:i.balanceAccounts,[i==null?void 0:i.balanceAccounts]);return d("div",{className:G("adyen-fp-transactions",{"adyen-fp-transactions__with-error":e}),children:e?d(Ai,{withImage:!0,centered:!0,title:"somethingWentWrong",message:["weCouldNotLoadTheTransactionsOverview","tryToRefreshThePageOrComeBackLater"]}):d("div",{className:"adyen-fp-transactions__container",children:d(ZM,{...t,balanceAccounts:o,isLoadingBalanceAccount:r})})})}var $i;let QM=($i=class extends La{constructor(n){super(n);O(this,"componentToRender",()=>d(JM,{...this.props,ref:n=>{this.componentRef=n},elementRef:this.elementRef}));this.elementRef=n&&n.elementRef||this,this.componentToRender=this.componentToRender.bind(this)}},O($i,"type","transactions"),$i);const VM=QM,XM=({isLoading:t,skeletonRowNumber:e=0})=>{const n=y(()=>Array.from({length:e},(s,i)=>i),[e]);return d(S.Fragment,{children:n.map(s=>d("span",{className:G({"adyen-fp-transaction-data__skeleton":!0,"adyen-fp-transaction-data__skeleton-loading-content":t})},`transaction-data-skeleton-${s}`))})},KM=({transaction:t,isFetching:e})=>{var r;const{i18n:n}=K(),s=y(()=>t?n.date(new Date(t.creationDate),{weekday:"long",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"shortOffset"}).toString():"",[t,n]),i=(t==null?void 0:t.status)==="Booked"?"default":(t==null?void 0:t.status)==="Reversed"?"error":"pending";return d(S.Fragment,{children:t?d("div",{className:"adyen-fp-transaction-data",children:[d("div",{className:"adyen-fp-transaction-data__container",children:[((t==null?void 0:t.status)||(t==null?void 0:t.category))&&d("div",{className:"adyen-fp-transaction-data__section adyen-fp-transaction-data__tag-container",children:[(t==null?void 0:t.status)&&d(zn,{label:n.get(t.status),variant:t.status==="Booked"?Mt.SUCCESS:t.status==="Reversed"?Mt.ERROR:Mt.DEFAULT}),t.category&&d(zn,{label:n.get(`txType.${t.category}`),variant:Mt.DEFAULT})]}),d("div",{className:`adyen-fp-transaction-data__section adyen-fp-transaction-data__amount adyen-fp-transaction-data__amount--${i}`,children:t.amount?n.amount(t.amount.value,t.amount.currency,{currencyDisplay:"symbol"}):null}),((t==null?void 0:t.paymentMethod)||(t==null?void 0:t.bankAccount))&&d("div",{className:"adyen-fp-transaction-data__section adyen-fp-transaction-data__payment-method",children:[d("div",{className:"adyen-fp-transaction-data__payment-method-logo-container",children:d(ka,{name:t.paymentMethod?t.paymentMethod.type:"bankTransfer",alt:t.paymentMethod?t.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-fp-transactions__payment-method-logo"})}),d("div",{className:"adyen-fp-transaction-data__payment-method-detail",children:t!=null&&t.paymentMethod?Pa(t==null?void 0:t.paymentMethod,"detail"):(r=t==null?void 0:t.bankAccount)==null?void 0:r.accountNumberLastFourDigits})]}),d("div",{className:"adyen-fp-transaction-data__section adyen-fp-transaction-data__label",children:s})]}),(t==null?void 0:t.balanceAccountDescription)&&d("div",{className:"adyen-fp-transaction-data__container",children:[d("div",{className:"adyen-fp-transaction-data__label",children:n.get("account")}),d("div",{children:t.balanceAccountDescription})]}),d("div",{className:"adyen-fp-transaction-data__container",children:[d("div",{className:"adyen-fp-transaction-data__label",children:n.get("referenceID")}),d("div",{"aria-label":n.get("referenceID"),children:t.id})]})]}):d(XM,{isLoading:e,skeletonRowNumber:6})})};const Co=t=>"transaction"in t;function bc(t){const e=y(()=>Co(t)?t.transaction:null,[t]),n=y(()=>Co(t)?null:t.transactionId,[t]),{i18n:s}=K(),i=Es("getTransaction"),r=_(async()=>{if(n)return i(P,{path:{transactionId:n}})},[i,n]),{data:o,error:a,isFetching:l}=Si({fetchOptions:y(()=>({enabled:!!n}),[n]),queryFn:r}),u=y(()=>{if(a)return Wa(a,t.onContactSupport)},[a,t.onContactSupport]),h=e??o;return d("div",{className:"adyen-fp-transaction",children:[t.title&&d("div",{className:"adyen-fp-title",children:s.get(t.title)}),a&&u&&d("div",{className:"adyen-fp-transaction--error-container",children:d(Ai,{centered:!0,withImage:!0,...u})}),d(KM,{transaction:h,isFetching:l})]})}class Oc extends La{constructor(n){super(n);O(this,"componentToRender",()=>d(bc,{...this.props}));this.elementRef=n&&n.elementRef||this,this.componentToRender=this.componentToRender.bind(this)}}O(Oc,"type","transactionsDetails");const qM=Oc;async function tN(t){return await new fa(t).initialize()}exports.AdyenFP=tN;exports.Core=fa;exports.TransactionDetails=bc;exports.TransactionFilterParam=U;exports.TransactionsElement=VM;exports.TransactionsElement$1=qM;exports.all_locales=Tf;exports.ar=Qm;exports.cs_CZ=Vm;exports.da_DK=Xm;exports.de_DE=Km;exports.el_GR=qm;exports.en_US=pr;exports.es_ES=tf;exports.fi_FI=ef;exports.fr_FR=nf;exports.hasOwnProperty=ae;exports.hr_HR=sf;exports.hu_HU=rf;exports.it_IT=of;exports.ja_JP=af;exports.ko_KR=cf;exports.nl_NL=lf;exports.no_NO=uf;exports.o=d;exports.pl_PL=df;exports.pt_BR=hf;exports.pt_PT=mf;exports.ro_RO=ff;exports.ru_RU=If;exports.sk_SK=gf;exports.sl_SI=pf;exports.sv_SE=yf;exports.zh_CN=Mf;exports.zh_TW=Nf;
12
+ //# sourceMappingURL=index-ff45d757.js.map