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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/da-DK-a148e492.cjs +2 -0
  4. package/dist/da-DK-a148e492.cjs.map +1 -0
  5. package/dist/de-DE-a39a50e8.cjs +2 -0
  6. package/dist/de-DE-a39a50e8.cjs.map +1 -0
  7. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +41 -41
  8. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +93 -94
  9. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +76 -69
  10. package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +25 -0
  11. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +112 -0
  12. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +4 -0
  13. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/constants.js +5 -0
  14. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +30 -0
  15. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.js +4 -0
  16. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +149 -0
  17. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +4 -0
  18. package/dist/es/components/external/ReportsOverview/components/ReportsTable/constants.js +7 -0
  19. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +67 -46
  20. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +28 -17
  21. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +13 -13
  22. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +19 -14
  23. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +1 -1
  24. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +10 -10
  25. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +11 -11
  26. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +1 -1
  27. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +183 -164
  28. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +31 -24
  29. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +95 -89
  30. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -5
  31. package/dist/es/components/hooks/useCustomColumnsData.js +29 -0
  32. package/dist/es/components/hooks/useFreezePeriod.js +18 -0
  33. package/dist/es/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.js +2 -2
  34. package/dist/es/components/hooks/useTableColumns.js +46 -0
  35. package/dist/es/components/internal/Accordion/Accordion.js +15 -15
  36. package/dist/es/components/internal/Alert/Alert.js +62 -0
  37. package/dist/es/components/internal/Alert/Alert.scss.js +4 -0
  38. package/dist/es/components/internal/Alert/types.js +4 -0
  39. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +81 -0
  40. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +4 -0
  41. package/dist/es/components/internal/Button/DownloadButton/useDownload.js +18 -0
  42. package/dist/es/components/internal/Card/Card.js +15 -15
  43. package/dist/es/components/internal/DataGrid/DataGrid.js +4 -4
  44. package/dist/es/components/internal/DataGrid/DataGridCell.js +12 -12
  45. package/dist/es/components/internal/DataGrid/components/Icon.js +17 -0
  46. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +7 -7
  47. package/dist/es/components/internal/DataGrid/components/TableCells.js +54 -37
  48. package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
  49. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +54 -54
  50. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +45 -0
  51. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +4 -0
  52. package/dist/es/components/internal/DataOverviewDisplay/constants.js +30 -24
  53. package/dist/es/components/internal/DatePicker/DatePicker.js +10 -10
  54. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +13 -13
  55. package/dist/es/components/internal/FilterBar/FilterBar.js +50 -42
  56. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +7 -7
  57. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +54 -50
  58. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +1 -1
  59. package/dist/es/components/internal/FormFields/InputBase.js +25 -25
  60. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +1 -1
  61. package/dist/es/components/internal/FormFields/Select/Select.js +5 -5
  62. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +5 -5
  63. package/dist/es/components/internal/Image/Image.js +6 -6
  64. package/dist/es/components/internal/Img/Img.js +4 -4
  65. package/dist/es/components/internal/Modal/Modal.js +6 -6
  66. package/dist/es/components/internal/Pagination/Pagination.js +17 -17
  67. package/dist/es/components/internal/Popover/Popover.js +11 -11
  68. package/dist/es/components/internal/SVGIcons/Download.js +21 -0
  69. package/dist/es/components/internal/SVGIcons/Warning.js +23 -0
  70. package/dist/es/components/internal/SVGIcons/WarningFilled.js +18 -0
  71. package/dist/es/components/internal/StructuredList/StructuredList.js +8 -8
  72. package/dist/es/components/internal/Tag/Tag.js +8 -8
  73. package/dist/es/components/internal/Tooltip/Tooltip.js +20 -20
  74. package/dist/es/components/internal/Typography/Typography.js +12 -12
  75. package/dist/es/components/utils/getLabel.js +6 -3
  76. package/dist/es/core/Http/http.js +34 -31
  77. package/dist/es/core/Http/utils.js +39 -30
  78. package/dist/es/core/Localization/Localization.js +74 -76
  79. package/dist/es/core/Localization/constants/localization.js +9 -6
  80. package/dist/es/core/Localization/localization-utils.js +11 -12
  81. package/dist/es/core/Localization/utils.js +45 -47
  82. package/dist/es/core/core.js +1 -1
  83. package/dist/es/index.js +14 -12
  84. package/dist/es/translations/da-DK.json.js +2 -218
  85. package/dist/es/translations/de-DE.json.js +2 -218
  86. package/dist/es/translations/en-US.json.js +2 -218
  87. package/dist/es/translations/es-ES.json.js +2 -218
  88. package/dist/es/translations/fr-FR.json.js +2 -218
  89. package/dist/es/translations/index.js +39 -45
  90. package/dist/es/translations/it-IT.json.js +2 -218
  91. package/dist/es/translations/nl-NL.json.js +2 -218
  92. package/dist/es/translations/no-NO.json.js +2 -218
  93. package/dist/es/translations/pt-BR.json.js +2 -218
  94. package/dist/es/translations/sv-SE.json.js +2 -218
  95. package/dist/es/utils/preact/className.js +3 -3
  96. package/dist/es-ES-153e5f15.cjs +2 -0
  97. package/dist/es-ES-153e5f15.cjs.map +1 -0
  98. package/dist/fr-FR-69b3df0d.cjs +2 -0
  99. package/dist/fr-FR-69b3df0d.cjs.map +1 -0
  100. package/dist/it-IT-efca230f.cjs +2 -0
  101. package/dist/it-IT-efca230f.cjs.map +1 -0
  102. package/dist/nl-NL-ffbb8184.cjs +2 -0
  103. package/dist/nl-NL-ffbb8184.cjs.map +1 -0
  104. package/dist/no-NO-eaf65f6f.cjs +2 -0
  105. package/dist/no-NO-eaf65f6f.cjs.map +1 -0
  106. package/dist/pt-BR-590ccc53.cjs +2 -0
  107. package/dist/pt-BR-590ccc53.cjs.map +1 -0
  108. package/dist/style.css +1 -1
  109. package/dist/sv-SE-18f4e86e.cjs +2 -0
  110. package/dist/sv-SE-18f4e86e.cjs.map +1 -0
  111. package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
  112. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +2 -2
  113. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
  114. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +9 -0
  115. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -0
  116. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +8 -0
  117. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -0
  118. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts +3 -0
  119. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts.map +1 -0
  120. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts +4 -0
  121. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts.map +1 -0
  122. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts +2 -0
  123. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts.map +1 -0
  124. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +15 -0
  125. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -0
  126. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts +5 -0
  127. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts.map +1 -0
  128. package/dist/types/components/external/ReportsOverview/index.d.ts +2 -0
  129. package/dist/types/components/external/ReportsOverview/index.d.ts.map +1 -0
  130. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +20 -2
  131. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  132. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  133. package/dist/types/components/external/TransactionDetails/types.d.ts +5 -1
  134. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
  135. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
  136. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +1 -1
  137. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
  138. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
  139. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  140. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +1 -1
  141. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +3 -1
  142. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
  143. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +1 -0
  144. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -1
  145. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +5 -0
  146. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
  147. package/dist/types/components/external/index.d.ts +1 -0
  148. package/dist/types/components/external/index.d.ts.map +1 -1
  149. package/dist/types/components/hooks/useCustomColumnsData.d.ts +13 -0
  150. package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +1 -0
  151. package/dist/types/components/hooks/useFreezePeriod.d.ts +6 -0
  152. package/dist/types/components/hooks/useFreezePeriod.d.ts.map +1 -0
  153. package/dist/types/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
  154. package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +1 -0
  155. package/dist/types/components/hooks/useTableColumns.d.ts +20 -0
  156. package/dist/types/components/hooks/useTableColumns.d.ts.map +1 -0
  157. package/dist/types/components/internal/Alert/Alert.d.ts +5 -0
  158. package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -0
  159. package/dist/types/components/internal/Alert/types.d.ts +17 -0
  160. package/dist/types/components/internal/Alert/types.d.ts.map +1 -0
  161. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts +16 -0
  162. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts.map +1 -0
  163. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +143 -0
  164. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -0
  165. package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -5
  166. package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
  167. package/dist/types/components/internal/DataGrid/components/Icon.d.ts +7 -0
  168. package/dist/types/components/internal/DataGrid/components/Icon.d.ts.map +1 -0
  169. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  170. package/dist/types/components/internal/DataGrid/types.d.ts +4 -3
  171. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
  172. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts +1 -1
  173. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts.map +1 -1
  174. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
  175. package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -2
  176. package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
  177. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts +13 -0
  178. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts.map +1 -0
  179. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +3 -0
  180. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +1 -0
  181. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +5 -2
  182. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
  183. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
  184. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
  185. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +1 -1
  186. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
  187. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
  188. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  189. package/dist/types/components/internal/FilterBar/FilterBar.d.ts +9 -2
  190. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
  191. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  192. package/dist/types/components/internal/FilterBar/index.d.ts +1 -0
  193. package/dist/types/components/internal/FilterBar/index.d.ts.map +1 -1
  194. package/dist/types/components/internal/FilterBar/types.d.ts +11 -1
  195. package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
  196. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  197. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  198. package/dist/types/components/internal/SVGIcons/Download.d.ts +4 -0
  199. package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -0
  200. package/dist/types/components/internal/SVGIcons/Warning.d.ts +4 -0
  201. package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -0
  202. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +4 -0
  203. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +1 -0
  204. package/dist/types/components/internal/StructuredList/types.d.ts +1 -1
  205. package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
  206. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +2 -2
  207. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
  208. package/dist/types/components/types.d.ts +33 -1
  209. package/dist/types/components/types.d.ts.map +1 -1
  210. package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
  211. package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
  212. package/dist/types/components/utils/getErrorMessage.d.ts +1 -1
  213. package/dist/types/components/utils/getErrorMessage.d.ts.map +1 -1
  214. package/dist/types/components/utils/getLabel.d.ts +4 -1
  215. package/dist/types/components/utils/getLabel.d.ts.map +1 -1
  216. package/dist/types/core/Auth/context.d.ts +8 -6
  217. package/dist/types/core/Auth/context.d.ts.map +1 -1
  218. package/dist/types/core/Auth/session/AuthSession.d.ts +8 -6
  219. package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
  220. package/dist/types/core/Auth/session/AuthSetupContext.d.ts +8 -6
  221. package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
  222. package/dist/types/core/Http/http.d.ts.map +1 -1
  223. package/dist/types/core/Http/utils.d.ts +2 -0
  224. package/dist/types/core/Http/utils.d.ts.map +1 -1
  225. package/dist/types/core/Localization/Localization.d.ts +8 -10
  226. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  227. package/dist/types/core/Localization/constants/localization.d.ts +5 -2
  228. package/dist/types/core/Localization/constants/localization.d.ts.map +1 -1
  229. package/dist/types/core/Localization/localization-utils.d.ts +4 -4
  230. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  231. package/dist/types/core/Localization/types.d.ts +0 -19
  232. package/dist/types/core/Localization/types.d.ts.map +1 -1
  233. package/dist/types/core/Localization/utils.d.ts +7 -271
  234. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  235. package/dist/types/core/core.d.ts +2 -3
  236. package/dist/types/core/core.d.ts.map +1 -1
  237. package/dist/types/core/types.d.ts +5 -4
  238. package/dist/types/core/types.d.ts.map +1 -1
  239. package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
  240. package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
  241. package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
  242. package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
  243. package/dist/types/index.d.ts +2 -3
  244. package/dist/types/index.d.ts.map +1 -1
  245. package/dist/types/translations/index.d.ts +44 -2529
  246. package/dist/types/translations/index.d.ts.map +1 -1
  247. package/dist/types/types/api/models/reports.d.ts +1 -1
  248. package/dist/types/types/api/models/reports.d.ts.map +1 -1
  249. package/dist/types/types/api/resources/ReportsResource.d.ts +18 -19
  250. package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
  251. package/dist/types/utils/types.d.ts +3 -0
  252. package/dist/types/utils/types.d.ts.map +1 -1
  253. package/package.json +7 -5
  254. package/dist/es/core/Localization/constants/locale.js +0 -7
  255. package/dist/types/components/external/TransactionsOverview/hooks/useResponsiveViewport.d.ts.map +0 -1
  256. package/dist/types/core/Localization/constants/locale.d.ts +0 -139
  257. package/dist/types/core/Localization/constants/locale.d.ts.map +0 -1
package/dist/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var hd=Object.defineProperty;var gd=(e,t,n)=>t in e?hd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var x=(e,t,n)=>(gd(e,typeof t!="symbol"?t+"":t,n),n),wr=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var h=(e,t,n)=>(wr(e,t,"read from private field"),n?n.call(e):t.get(e)),S=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_=(e,t,n,o)=>(wr(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);var Zt=(e,t,n,o)=>({set _(s){_(e,t,s,n)},get _(){return h(e,t,o)}}),O=(e,t,n)=>(wr(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("classnames"),Jr="test",md=e=>{var t;return(t=e==null?void 0:e.replace)==null?void 0:t.call(e,/([^\/])$/,"$1/")},pd=e=>e==null?void 0:e.replace(/^([^\/])/,"/$1"),fd=(()=>{const e={test:"https://platform-components-external-test.adyen.com/platform-components-external/api/",live:"https://platform-components-external-live.adyen.com/platform-components-external/api/"};return t=>e[t??Jr]||e[Jr]})(),pn=Function.prototype.bind.bind(Function.prototype.call),yi=e=>()=>e,yd=async()=>{},gr=e=>e,ne=()=>{},Id=pn(Object.prototype.toString),_d=e=>Id(e).slice(8,-1),Qr=e=>e===!!e,ee=e=>typeof e=="function",ws=e=>e===null,ue=e=>e==null,us=e=>typeof e=="number",mr=e=>_d(e)==="Object",qe=e=>typeof e=="string",Td=e=>typeof e=="symbol",H=e=>e===void 0,cn=(e,t,n)=>(Math.min(e,n)!==e&&([e,n]=[n,e]),Math.max(e,Math.min(t,n))),Mo=e=>!Td(e)&&e===~~e,ln=e=>us(e)&&1/e===0,Ec=(e,t)=>{if(Number.isInteger(e)&&Number.isInteger(t))return e+Math.floor((t-e)/2);throw TypeError(`Expects 2 integer values: [${e}, ${t}]`)},ds=(e,t)=>(e%t+t)%t,Ii="abort",Ad="signal is aborted without reason",_n=(e,t=e)=>Qr(e)?e:!!t,we=e=>e===!0,Bt=e=>e!==!1,Sd=e=>!1,Xr=e=>!0,$=(e,t=!1)=>({writable:we(t),enumerable:!0,value:e}),oe=(e,t=!0)=>({enumerable:Bt(t),get:e}),ct=pn(Object.prototype.hasOwnProperty),fn=(e,t)=>e===t||!(e===e||t===t);if(!ct(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...oe(function(){return this.aborted?vo():void 0},!0),configurable:!0})}catch{}ct(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??vo()});const vo=(e=Ad)=>new DOMException(e,"AbortError"),Mc=(e,t)=>{if(!fn(e.reason,t))try{Object.defineProperty(e,"reason",$(t))}catch{}return e},Nd=(e=vo())=>{if("abort"in AbortSignal)return AbortSignal.abort(e);const t=new AbortController,n=H(e)?vo():e,{signal:o}=t;return t.abort(n),Mc(o,n),o},pr=e=>{if("any"in AbortSignal)return AbortSignal.any(e);let t=new Set,n=new AbortController;const{signal:o}=n;let s=function(){t.forEach(a=>a.removeEventListener(Ii,s)),t.clear();const r=(this==null?void 0:this.reason)??vo();n.abort(r),Mc(o,r),n=t=s=void 0};e:{const r=Symbol("<NIL_EXCEPTION>");let a=r;t:{try{for(const i of e){if(!hs(i))throw new TypeError("Failed to convert value to 'AbortSignal'");if(i.aborted)break t;t.add(i)}}catch(i){a=i;break t}t.forEach(i=>i.addEventListener(Ii,s));break e}if(s.call(o),a!==r)throw a}return o},hs=e=>e instanceof AbortSignal,Te=Object.freeze([]),z=Object.freeze(Object.create(null)),fr=Promise.resolve();Promise.race(Te);const yr=function(e,...t){return new Promise(n=>n(e.call(this,...t)))},Ld=(e,t,n)=>{let o=t.get(e);return H(o)&&ee(n)&&(H(o=n(e,t))||t.set(e,o)),o},Io=(e,t=Te)=>{const n=`${e||""}`.trim(),o=n?n.split(/(?:\s*,\s*)+/).filter(gr):Te;return o.length?o:t},yo=(e,t,n)=>e.includes(t)?t:ue(t)?e[0]:e.includes(n)?n:e[0],_i=pn(Array.prototype.some),vc=function e(t,n,o=new Set){for(const s of n)Array.isArray(s)?e(t,s,o):(t&&o.delete(s),o.add(s));return o};pn(vc,void 0,!1);pn(vc,void 0,!0);const Cd=(...e)=>{const[t]=e,o=(e.length>=2?new Date(...e):t instanceof Date?t:new Date(qe(t)||Number.isFinite(t)?t:void 0)).getTime();return Number.isFinite(o)?o:void 0},Ed=(()=>{let e=Date.now();return(t="adyen-pe")=>`${t}-${++e}`})(),ba=(()=>{const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return()=>e.replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t=="x"?n:n&3|8).toString(16)})})(),bo=(e,t=z)=>mr(e)?e:bo(t,z),uo=pn(Object.create,void 0),G=pn(uo,void 0,null),Ir=(e=z)=>Object.freeze({...e,defineProperty:Xr,set:Xr}),Md=e=>e&&(e==null?void 0:e.length)>0?`${e[0].toUpperCase()}${e.slice(1)}`:e,vd=e=>ue(e)||qe(e)&&/^\s*$/.test(e),bd="/setup",Dd=we(void 0),Ti=(()=>{let e=0;if(Number.isFinite(e)&&(e=Math.max(0,~~e)))return e})();class Od extends Error{constructor(n,o,s,r){super(s);x(this,"type");x(this,"errorCode");x(this,"requestId");this.type=n,this.name=n,this.errorCode=r,this.requestId=o}}const $d=Od;var bc=(e=>(e.NETWORK_ERROR="NETWORK_ERROR",e.CANCEL="CANCEL",e.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",e.ERROR="ERROR",e.EXPIRED_TOKEN="EXPIRED_TOKEN",e))(bc||{});const Rd=e=>{switch(e){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},xd=(e,t)=>{const{headers:n=[],method:o="GET"}=e;return{method:o,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",...n,"SDK-Version":"1.0.3"},redirect:"follow",signal:e.signal,referrerPolicy:"no-referrer-when-downgrade",...o==="POST"&&t&&{body:JSON.stringify(t)}}};function wd({message:e,level:t,errorCode:n,type:o="NETWORK_ERROR",requestId:s}){switch(t){case"silent":break;case"info":case"warn":console[t](e);break;case"error":default:throw new $d(o,s,e,n)}}function Pd(e){return e&&e.errorCode&&e.type&&(e.detail||e.invalidFields)&&e.status}function kd(e){const t=new URLSearchParams;for(const n of Object.keys(e)){const o=e[n];ue(o)||(Array.isArray(o)?o.forEach(s=>t.append(n,s)):t.set(n,String(o)))}return t}const Dc=e=>{let t,n,o;const s=()=>{if(H(t))return;const c=t.abort.bind(t);t=void 0,c()},r=()=>(o=new Promise((c,d)=>{if(n.addEventListener("abort",function g(){n.removeEventListener("abort",g),d(e)}),n.aborted)throw e}),o.catch(ne),o),a=()=>(H(t)&&(t=new AbortController,n=t.signal,o=r()),i),i=G({abort:$(s),promise:oe(()=>o),reason:$(e),refresh:$(a),signal:oe(()=>n)});return a()},jd=()=>{let e,t,n;const o=()=>{const r=n??ne,a=new Promise((i,c)=>{n=i,t=c});return r(e=a),s},s=G({promise:oe(()=>e),refresh:$(o),reject:$(r=>t(r)),resolve:$(r=>n(r))});return o()},gs=e=>{const t=Dc(),n=jd();let o;return Object.defineProperties(function(...r){H(o)?n.refresh():t.abort();const a=yr.call(this,e,t.refresh().signal,...r);return(async()=>{let i=o===(o=a);try{const c=await a.finally(()=>{i=o===a,i&&(o=void 0)});i&&n.resolve(c)}catch(c){i&&n.reject(c)}})(),a},{abort:$(t.abort),promise:oe(()=>n.promise),refresh:$(()=>void n.refresh())})};class Fd{constructor(t){x(this,"_endpoints",z);x(this,"_revokeEndpointsProxy",ne);x(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(ne)});x(this,"_refreshPromisor",gs((t,n)=>{const o=hs(n)?pr([n,t]):t;return this._fetchSetupEndpoint(o)}));this._session=t;let n;this.refresh=o=>(this._refreshPromisor(o).catch(ne),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:s})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(s)})))}get endpoints(){return this._endpoints}_fetchSetupEndpoint(t){return this._session.http(null,{method:"POST",path:bd,errorLevel:"fatal",loadingContext:this.loadingContext,signal:t})}_getEndpointsProxy(t){const n=new Set(Object.keys(t)),o=G();return Proxy.revocable(z,Ir({get:(s,r,a)=>n.has(r)?(o[r]??(o[r]=(()=>{const{method:i="GET",url:c}=t[r];if(!H(c||void 0))return(...d)=>{const g=this._getHttpOptions(i,c,...d);return this._session.http(this._beforeHttp,g)}})()),o[r]):Reflect.get(s,r,a)}))}_getHttpOptions(t,n,...o){const{loadingContext:s}=this,[r,a]=o,{path:i,query:c}=bo(a),d=c&&kd(c);if(mr(i))for(const g of Object.keys(i))n=n.replace(`{${g}}`,i[g]);return{loadingContext:s,...r,method:t,params:d,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=ne,this._endpoints=z}}const Wd=Fd,Oc=Symbol("Error<SESSION_EXPIRED>"),Bd=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),zd=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),Ud=Symbol("Error<SESSION_INVALID>"),$c=Symbol("Error<SESSION_REFRESH_ABORTED>"),_r="_sessionExpired",Rc="_sessionReady",Yd="_sessionRefreshed",Gd="_sessionRefreshingEnd",Hd="_sessionRefreshingStart",xc="_session.deadline",wc="_session.ready",Pc="_session.refreshingEnd",kc="_session.refreshingStart",Zd=async e=>{const{specification:t}=e.context,n=await yr(async()=>{const o=t.autoRefresh;return ee(o)?o.call(t,e.session):o}).catch(Sd);return we(n)},Vd=e=>{let t=e.context.emitter.on(_r,()=>s(!1)),n,o=gs(async(i,c=!1)=>{n=i;const d=we(c)||await Zd(e);n===i&&d&&e.pending&&!e.refreshing&&e.refresh(n).catch(ne)}),s=(i=!1)=>{e.refreshing||o(i)},r=()=>{t(),o.abort(),o=n=t=void 0,s=r=ne};return Object.defineProperties((i=!1)=>s(i),{destruct:oe(()=>r,!1)})},Ai=1e3,Jd=2147483647,Qd=(e,t=Ai,n=!1)=>{var g;let o=new AbortController,s=cn(0,~~t,Jd),r=we(n);Number.isFinite(s)||(s=Ai);const a=((g=document.timeline)==null?void 0:g.currentTime)??performance.now(),i=()=>{o==null||o.abort(),o=void 0},c=u=>{!o||o.signal.aborted||(d(u),e(u))},d=u=>{let p=0;if(!r){const m=u-a,y=Math.round(m/s)*s;p=a+y+s-performance.now()}setTimeout(()=>requestAnimationFrame(c),p)};return d(a),r=!1,G({cancel:$(i),delay:$(t),signal:$(o.signal)})},Xd=e=>{const t={},n=Object.getOwnPropertyDescriptors(e);for(const o of Object.keys(e)){const{get:s,value:r}=n[o];t[o]=oe(s||(ee(r)?r.bind(e):()=>r))}return G(t)},Kd=()=>{const e={idle:null,resume:null},t={};for(const n of Object.keys(e))t[n]={get:()=>e[n]??ne,set:o=>{ue(o)?e[n]=null:ee(o)&&o!==e[n]&&(e[n]=o)}};return G(t)},jc=Symbol("<<UNSUBSCRIBE>>"),ho=e=>e===jc,ms=e=>{let t;const n=Xd(e),o=Kd(),s=new Map,r=new WeakMap,a=()=>Object.freeze({...n}),i=()=>s.size===0,c=g=>{if(i())return;if(ho(g)){const p=[];return s.forEach((m,y)=>{p.push(y);const f=r.get(y);for(;m--;)f==null||f()}),p.forEach(m=>m(g)),!0}const u=t;t=a();for(const p of Object.keys(t))if(!fn(t[p],u[p]))return s.forEach((m,y)=>y(t)),!0;return!1},d=g=>{if(!ee(g))return ne;const u=Ld(g,r,()=>{let m=()=>{const y=s.get(g)||0;y===1?(m=void 0,s.delete(g),r.delete(g),i()&&(t=void 0,o.idle())):y>1&&s.set(g,y-1)};return()=>{m==null||m()}}),p=i();return s.set(g,(s.get(g)||0)+1),p&&(t=a(),o.resume()),g(t),u};return G({idle:oe(i),on:$(o),cancelSubscriptions:$(()=>c(jc)),requestNotification:$(()=>c()),snapshot:oe(()=>t??a()),subscribe:$(d)})},Fc=(()=>{let e;const{cancelSubscriptions:t,requestNotification:n,subscribe:o,on:s}=ms({now:()=>Date.now()});return s.resume=()=>{e=Qd(n,1e3,!1)},s.idle=()=>{e==null||e.cancel(),e=void 0},G({cancelSubscriptions:$(t),subscribe:$(o)})})(),Wc=Fc,Da=()=>{const e=new class extends EventTarget{},t=(o,...s)=>{const[r]=s;s.length&&H(r)&&console.warn("Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n");const a=new CustomEvent(o,G({bubbles:$(!1),cancelable:$(!1),detail:$(r??null)}));return e.dispatchEvent(a)},n=(o,s)=>{if(!ee(s))return ne;const r=a=>s.call(null,G({detail:$(a.detail),timeStamp:$(a.timeStamp),type:$(a.type)}));return e.addEventListener(o,r),()=>e.removeEventListener(o,r)};return G({emit:$(t),on:$(n)})},qd=(e,t)=>{let n,o=1/0,s,r;const a=Dc(),i=Da(),c=()=>{n==null||n.removeEventListener("abort",c),o=1/0,r==null||r(),a.refresh(),i.emit(xc)},d=gs(async(u,p)=>{s=u;const m=await yr(()=>{const f=t.deadline;return ee(f)?f.call(t,p,u):f}).catch(ne);if(s!==u)return;const y=(Array.isArray(m)?m:[m]).filter(f=>f||f===0);if(y.length>0){let f=!1,A=new Set;for(const I of y)if(hs(I)){if(f=I.aborted)break;A.add(I)}else if(o=Math.min(o,Cd(I)??1/0),f=o<=Date.now())break;f||(f=A.size<1&&!Number.isFinite(o)),f?n??(n=Nd()):(n=pr([...A,a.signal]),n.addEventListener("abort",c),g()),y.length=0,A.clear()}else n=void 0}),g=()=>{if(!Number.isFinite(o))return;let u=Wc.subscribe(p=>{if(ho(p))return c();p.now>=o&&a.abort()});r=()=>{u==null||u(),u=r=void 0}};return G({elapse:$(a.abort),elapsed:oe(()=>n&&n.aborted),on:$(i.on),refresh:$(d.bind(void 0)),signal:oe(()=>a.signal)})},eh=(e,t)=>{let n=!1,o,s,r=!0,a;const i=Symbol("<next_session>"),c=Da();function d(m){var y;try{(y=t.assert)==null||y.call(t,m)}catch{throw Ud}}function g(m){if(!ee(m))throw Bd}const u=gs((m,y)=>{if(!s)s=m;else return p(hs(y)?pr([y,m]):m)}),p=async m=>{let y=i;try{n=!1,s=m,r&&await(o??(o=(async()=>{await fr,r=!1,c.emit(kc)})())),g(t.onRefresh),y=await yr(()=>t.onRefresh(a,m)).finally(()=>{if(m.aborted)throw $c})}finally{if(s===m)try{y!==i&&(d(y),a=y,c.emit(wc))}finally{o=void 0,r=!0,c.emit(Pc)}}};return e.on(_r,()=>n=!o),u(),G({context:$(G({emitter:$(e),specification:$(t)})),on:$(c.on),pending:oe(()=>n),promise:oe(()=>u.promise),refresh:$(u.bind(void 0)),refreshing:oe(()=>!!o),session:oe(()=>a),signal:oe(()=>s)})};class th{constructor(t){x(this,"_session");x(this,"_autofresh");x(this,"_deadline");x(this,"_refresher");x(this,"_eventEmitter",Da());this._specification=t,this._deadline=qd(this._eventEmitter,this._specification),this._refresher=eh(this._eventEmitter,this._specification),this._autofresh=Vd(this._refresher),this._deadline.on(xc,()=>this._eventEmitter.emit(_r)),this._refresher.on(kc,()=>this._eventEmitter.emit(Hd)),this._refresher.on(Pc,()=>this._eventEmitter.emit(Gd)),this._refresher.on(wc,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(Yd)),this._eventEmitter.emit(Rc)}),this.http=this._sessionHttp.bind(this),this.on=this._eventEmitter.on,this.refresh=this._refresher.refresh}get isExpired(){return this._deadline.elapsed}get refreshing(){return this._refresher.refreshing}_assertSessionHttp(t){if(!ee(t))throw zd}async _sessionHttp(t,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(ne);const{signal:o}=this._deadline;return await(t==null?void 0:t(this._session,o,...n)),this._assertSessionHttp(this._specification.http),await this._specification.http(this._session,o,...n)}catch(o){if(o!==Oc)throw o;if(this._refresher.pending)continue;this._deadline.elapse()}}}const nh="v1",Pr=(e,t)=>{try{e==null||e(t)}catch{throw t}};async function oh(e,t){const{errorLevel:n,loadingContext:o="",path:s}=e,r=xd(e,t),a=new URL(`${md(o)}${nh}${pd(s)}`);return e.params&&e.params.forEach((i,c)=>{const d=decodeURIComponent(i);d&&a.searchParams.append(c,d)}),(async()=>{var d;let i=!1;const c={level:n};try{const g=await fetch(a,r);if(g.ok)try{switch((d=g.headers.get("Content-Type"))==null?void 0:d.split(";",1)[0]){case"application/json":return await g.json();default:return await g.blob()}}catch(p){throw i=!0,p}c.type=Rd(g.status);const u=await g.json();c.message=e.errorMessage||`Service at ${a} not available`,c.errorCode=String(u.status),c.requestId=u==null?void 0:u.requestId,Pd(u)&&(c.message=u.detail,c.errorCode=u.errorCode),Pr(e.errorHandler,c)}catch(g){if(i)throw Pr(e.errorHandler,g),g;Pr(e.errorHandler,g),c.message=e.errorMessage||`Call to ${a} failed. Error: ${g}`}wd(c)})()}class sh{constructor(t){x(this,"assert",t=>{if(mr(t)){const n=qe(t.id)?t.id.trim():void 0,o=qe(t.token)?t.token.trim():void 0;if(n&&o)return}throw void 0});x(this,"deadline",t=>{const n=[];let o,s;try{({iat:o,exp:s}=JSON.parse(atob(t==null?void 0:t.token.split(".")[1]))),n.push(s)}catch{o=Date.now()}if(!H(Ti)){const r=new Date(o);n.push(r.setMilliseconds(r.getMilliseconds()+Ti))}return n});x(this,"http",async(t,n,o,s)=>{const{headers:r,signal:a,...i}=o;try{const c={...i,headers:{...r,...t&&{Authorization:`Bearer ${t.token}`}},errorHandler:this._errorHandler,signal:hs(a)?pr([n,a]):n};return await oh(c,s)}catch(c){throw(c==null?void 0:c.type)===bc.EXPIRED_TOKEN?Oc:c}});this.onSessionCreate=t,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:$(Dd),onRefresh:$((n,o)=>this.onSessionCreate(o))})}_errorHandler(t){try{this.errorHandler&&this.errorHandler(t)}catch{}throw t}}const rh=sh,_o=Symbol("<<NO_ERR>>");function ah(e){/* istanbul ignore if -- @preserve */if(e===_o)throw new TypeError("Illegal error")}const ih=()=>{let e=_o;const t=()=>{e=_o},n=o=>{ah(o),e=o};return G({error:oe(()=>e===_o?void 0:e),hasError:oe(()=>e!==_o),reset:$(t),set:$(n)})};class ch{constructor(){x(this,"_canSkipSessionRefresh",!1);x(this,"_refreshPromisorSignal");x(this,"_errorContainer",ih());x(this,"_specification",new rh);x(this,"_sessionContext",new th(this._specification));x(this,"_setupContext",new Wd(this._sessionContext));x(this,"_refreshPromisor",gs(async(t,n=!1)=>{let o=!this._refreshPromisorSignal,s=this._refreshPromisorSignal===(this._refreshPromisorSignal=t);const r=we(n)&&this._canSkipSessionRefresh;o&&(o=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(r?this._setupContext:this._sessionContext).refresh(t).finally(()=>s=this._refreshPromisorSignal===t)}catch(a){if(!s)return;!t.aborted&&(r||a!==$c)&&this._errorContainer.set(a),o=!r}finally{(o||r&&s)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));x(this,"_watchlist",ms({endpoints:()=>this._setupContext.endpoints,hasError:()=>this._errorContainer.hasError,http:yi(this._sessionContext.http.bind(this._sessionContext,null)),isExpired:()=>this._sessionContext.isExpired,refresh:yi(this._refresh.bind(this)),refreshing:()=>!!this._refreshPromisorSignal}));this.destroy=()=>{this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()},this.subscribe=this._watchlist.subscribe,this._watchlist.on.resume=()=>{const t=[this._sessionContext.on(_r,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(Rc,()=>{this._refresh(this._canSkipSessionRefresh=!0)})];this._watchlist.on.idle=()=>{this._watchlist.on.idle=void 0,t.forEach(n=>n()),t.length=0},this._refresh()}}get context(){return this._watchlist.snapshot}set loadingContext(t){this._setupContext.loadingContext=t}set errorHandler(t){this._specification.errorHandler=t}set onSessionCreate(t){this._specification.onSessionCreate!==t&&(this._specification.onSessionCreate=t,this._refreshPromisorSignal&&ee(this._specification.onSessionCreate)&&(this._canSkipSessionRefresh=!1,this._refresh()))}_onAuthStateChanged(){this._watchlist.requestNotification()}_refresh(t=!1){this._refreshPromisor(t)}}const lh={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$"},Bc=lh,uh={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},dh=uh,hh=e=>dh[e]||100,gh=e=>!!Bc[e],zc=e=>gh(e)?Bc[e]:null,mh=(e,t)=>{const n=hh(t);return parseInt(String(e),10)/n},ph=(e,t,n,o=!1,s={})=>{const r=e.toString(),a=mh(r,n),i=t.replace("_","-"),c={style:"currency",currency:n,currencyDisplay:"symbol",...s};try{return o?fh(i,c,a):a.toLocaleString(i,c)}catch{return r}},fh=(e,t,n)=>Intl.NumberFormat(e,t).formatToParts(n).filter(o=>o.type!=="currency").reduce((o,s)=>o+s.value,"").trim(),yh="Account",Ih="Account Balance",_h="Additions",Th="Adjustments",Ah="Amount",Sh="Apply",Nh="Balance account",Lh="Balance account ID",Ch="Booked",Eh="Captured",Mh="Category",vh="Chargebacks",bh="Close",Dh="Contact support for help and share error code %{requestId}",Oh="Corrections",$h="Currency",Rh="Date",xh="Date range",wh="Description",Ph="Dismiss",kh="Email",jh="Entity was not found",Fh="Transaction not found for the specified Account Holder",Wh="Fees",Bh="Filter bar",zh="From",Uh="Funds captured",Yh="Grant issued",Gh="Grant repayments",Hh="Hide content",Zh="ID",Vh="Incomplete field",Jh="Mobile",Qh="Net payout",Xh="Next Payouts",Kh="No data",qh="No negative numbers allowed",eg="No payouts found",tg="No transactions found",ng="Other",og="Paginated navigation",sg="Payment ID",rg="Payment method",ag="Payout Details",ig="Payouts",cg="Pending",lg="Please, reach out to support for assistance.",ug="Reach out to support",dg="Reference ID",hg="Refresh",gg="Refunds",mg="Remaining amount",pg="Reset",fg="Reversed",yg="Something went wrong.",Ig="Status",_g="Structured list",Tg="Subtractions",Ag="Tabs",Sg="The error code is %{requestId}",Ng="There are no results",Lg="The request is missing required fields or contains invalid data.",Cg="There was an unexpected error",Eg="The selected balance account is incorrect",Mg="Timezone",vg="To",bg="Total incoming",Dg="Total outgoing",Og="To value should be equal or greater than the From value",$g="Transaction details",Rg="Transactions",xg="Transactions overview",wg="Transaction type",Pg="Transfers",kg="Try a different search or reset your filters, and we’ll try again.",jg="Try refreshing the page or come back later.",Fg="Amount",Wg="Type",Bg="Value",zg="We could not load the payouts overview.",Ug="We could not load the transactions overview.",Yg="We couldn’t load your balance accounts.",Gg="We could not load your payouts.",Hg="We could not load your transactions.",Uc={account:yh,accountBalance:Ih,additions:_h,adjustments:Th,amount:Ah,apply:Sh,balanceAccount:Nh,balanceAccountId:Lh,Booked:Ch,"button.clearAll":"Clear all","calendar.controls":"Calendar navigation controls","calendar.nextMonth":"Next month","calendar.previousMonth":"Previous month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})",capture:Eh,category:Mh,chargeback:vh,closeIconLabel:bh,contactSupportForHelpAndShareErrorCode:Dh,correction:Oh,currency:$h,date:Rh,dateRange:xh,default:"Default",description:wh,dismiss:Ph,email:kh,entityWasNotFound:jh,entityWasNotFoundDetail:Fh,"expandableCard.collapse":"Collapse","expandableCard.expand":"Expand",export:"Export",fee:Wh,"filter.date.since":"Since %{date}","filter.date.until":"Until %{date}",filterBar:Bh,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status",from:zh,fundsCaptured:Uh,grantIssued:Yh,grantRepayment:Gh,hideContent:Hh,id:Zh,incompleteField:Vh,mobile:Jh,netPayout:Qh,nextPayouts:Xh,noData:Kh,noNegativeNumbersAllowed:qh,noPayoutsFound:eg,noTransactionsFound:tg,other:ng,paginatedNavigation:og,"pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing",paymentId:sg,paymentMethod:rg,payoutDetails:ag,payoutsTitle:ig,Pending:cg,pleaseReachOutToSupportForAssistance:lg,"rangePreset.custom":"Custom","rangePreset.last30Days":"Last 30 days","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",reachOutToSupport:ug,referenceID:dg,refresh:hg,refund:gg,remainingAmount:mg,reset:pg,Reversed:fg,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search",somethingWentWrong:yg,status:Ig,structuredList:_g,subtractions:Tg,tabs:Ag,theErrorCodeIs:Sg,thereAreNoResults:Ng,theRequestIsMissingRequiredFieldsOrContainsInvalidData:Lg,thereWasAnUnexpectedError:Cg,theSelectedBalanceAccountIsIncorrect:Eg,timezone:Mg,to:vg,"tooltip.ATM":"Money withdrawn at an ATM","tooltip.Capital":"Money from an incoming loan grant or outgoing loan repayment","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Correction":"Adjustments to your funds, including transaction reversals and deposit corrections","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Other":"Transactions not in another category, usually an adjustment","tooltip.Payment":"Money received to your account from a sales transaction","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.totalIncoming":"All money received into your account based on the selected filters","tooltip.totalOutgoing":"All fees, refunds, payouts, and other charges based on the selected filters","tooltip.Transfer":"Money moved between your account and another account",totalIncoming:bg,totalOutgoing:Dg,toValueShouldBeGreaterThanTheFromValue:Og,transactionDetails:$g,transactions:Rg,transactionsOverviewTitle:xg,transactionType:wg,transfer:Pg,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:kg,tryRefreshingThePageOrComeBackLater:jg,txAmount:Fg,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee","txType.Other":"Other","txType.Payment":"Payment","txType.Refund":"Refund","txType.Transfer":"Transfer",type:Wg,value:Bg,weCouldNotLoadThePayoutsOverview:zg,weCouldNotLoadTheTransactionsOverview:Ug,weCouldNotLoadYourBalanceAccounts:Yg,weCouldNotLoadYourPayouts:Gg,weCouldNotLoadYourTransactions:Hg},Wt="en-US",Zg=/^[a-z]{2}-[A-Z]{2}$/,Yc=Uc,Vg=["da-DK","de-DE","en-US","es-ES","fr-FR","it-IT","nl-NL","no-NO","pt-BR","sv-SE"],Oa={year:"numeric",month:"2-digit",day:"2-digit"},As=Vg,Jg=["constructor","i18n","watch","preferredTranslations"],Qg=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:Gc,BASE_LOCALE:Tr,SYSTEM_TIMEZONE:Ss,SYSTEM_TIMEZONE_FORMATTER:Ln}=(()=>{const e="en-US",t="2-digit",n="numeric",a=Object.freeze({year:n,month:"short",day:n,hour:t,minute:t,second:t,fractionalSecondDigits:3,timeZoneName:"longOffset"});let i,c;try{c=new Intl.DateTimeFormat(e,a),i=c.resolvedOptions().timeZone}catch{i=void 0}return{BASE_FORMAT_OPTIONS:a,BASE_LOCALE:e,SYSTEM_TIMEZONE:i,SYSTEM_TIMEZONE_FORMATTER:c}})(),Xg=/\+(?=-)|([+-]00:00)/g,Kg=new RegExp("(?<=^\\D?)(\\d)$"),qg=([e,t])=>(Math.abs(e*60)+t)*(e<0?-1:1),em=e=>Object.freeze([Math.floor(e/60),ds(e,60)]),tm=e=>parseInt(e,10)||0,nm=e=>`GMT+${em(e).map(o=>`${o}`.replace(Kg,"0$1")).join(":")}`.replace(Xg,""),Kr=e=>{var n;const t=((n=e==null?void 0:e.match(Qg))==null?void 0:n[0].split(":",2).map(tm))??Te;return qg(t.concat(0,0).slice(0,2))},om=(e,t=Ln)=>{const n=Kr(Ln==null?void 0:Ln.format(e));return Kr(t==null?void 0:t.format(e))-n},Hc=(e,t,n=1)=>{const{offset:o,timestamp:s}=e(t);return s-o*n*6e4},ft=(e,t)=>Hc(e,t,1),Et=(e,t)=>Hc(e,t,-1),sm=(()=>{let e,t;H(Ss)||(e=function(){return this.TIMEZONE},t=function(o){if(ue(o))this.TIMEZONE=Ss,this.formatter=Ln;else try{const s=new Intl.DateTimeFormat(Tr,{...Gc,timeZone:o}),r=s.resolvedOptions().timeZone;if(this.TIMEZONE===r)return;this.TIMEZONE=r,this.formatter=s}catch{}});function n(...o){if(o.length===0)return n.call(this,Date.now());const s=o[0],r=new Date(s).getTime(),a=this.formatter??Ln;return Object.freeze({formatted:a==null?void 0:a.format(r),offset:om(r,a),timestamp:r})}return()=>{const o={TIMEZONE:Ss},s=t==null?void 0:t.bind(o),r=G({current:{get:e==null?void 0:e.bind(o),set:s},system:{value:Ss}});return Object.defineProperties(n.bind(o),{tz:{get:()=>r,set:s}})}})(),ps=sm,rm="Konto",am="Kontosaldo",im="Tilføjelser",cm="Justeringer",lm="Beløb",um="Anvend",dm="Saldokonto",hm="Id for saldokonto",gm="Reserveret",mm="Indsamlet",pm="Kategori",fm="Chargebacks",ym="Luk",Im="Kontakt support for at få hjælp, og del fejlkode %{requestId}",_m="Rettelser",Tm="Valuta",Am="Dato",Sm="Datointerval",Nm="Beskrivelse",Lm="Afvis",Cm="E-mail",Em="Enhed blev ikke fundet",Mm="Transaktion blev ikke fundet for den angivne kontoindehaver",vm="Gebyrer",bm="Filterbjælke",Dm="Fra",Om="Indsamlede midler",$m="Bevilliget tilskud",Rm="Tilbagebetaling af tilskud",xm="Skjul indhold",wm="ID",Pm="Ufuldstændigt felt",km="Mobil",jm="Nettoudbetaling",Fm="Næste udbetalinger",Wm="Ingen data",Bm="Ingen negative tal er tilladt",zm="Ingen udbetalinger er fundet",Um="Ingen transaktioner er fundet",Ym="Andet",Gm="Pagineret navigation",Hm="Betalings-id",Zm="Betalingsmetode",Vm="Oplysninger om udbetaling",Jm="Udbetalinger",Qm="Afventer",Xm="Kontakt support for at få hjælp.",Km="Ræk ud efter støtte",qm="Reference-id",ep="Opdater",tp="Refunderinger",np="Resterende beløb",op="Nulstil",sp="Tilbageført",rp="Noget gik galt.",ap="Status",ip="Struktureret liste",cp="Subtraktioner",lp="Faner",up="Fejlkoden er %{requestId}",dp="Der er ingen resultater",hp="Anmodningen mangler påkrævede felter eller indeholder ugyldige data.",gp="Der opstod en uventet fejl",mp="Den valgte saldokonto er forkert",pp="Tidszone",fp="Til",yp="Indgående i alt",Ip="Udgående i alt",_p="Værdien til skal være lig med eller større end værdien fra",Tp="Transaktionsoplysninger",Ap="Transaktioner",Sp="Oversigt over transaktioner",Np="Transaktionstype",Lp="Overførsler",Cp="Prøv en anden søgning, eller nulstil dine filtre, så vi kan prøve igen.",Ep="Prøv at opdatere siden, eller kom tilbage senere.",Mp="Beløb",vp="Type",bp="Værdi",Dp="Vi kunne ikke indlæse oversigten over udbetalinger.",Op="Vi kunne ikke indlæse transaktionsoversigten.",$p="Vi kunne ikke indlæse dine saldokonti.",Rp="Vi kunne ikke indlæse dine udbetalinger.",xp="Vi kunne ikke indlæse dine transaktioner.",wp={account:rm,accountBalance:am,additions:im,adjustments:cm,amount:lm,apply:um,balanceAccount:dm,balanceAccountId:hm,Booked:gm,"button.clearAll":"Ryd alt","calendar.controls":"Kontrolelementer til kalendernavigation","calendar.nextMonth":"Næste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidszone er indstillet til: GMT%{offset} (%{time})",capture:mm,category:pm,chargeback:fm,closeIconLabel:ym,contactSupportForHelpAndShareErrorCode:Im,correction:_m,currency:Tm,date:Am,dateRange:Sm,default:"Standard",description:Nm,dismiss:Lm,email:Cm,entityWasNotFound:Em,entityWasNotFoundDetail:Mm,"expandableCard.collapse":"Skjul","expandableCard.expand":"Udvid",export:"Eksporter",fee:vm,"filter.date.since":"Siden %{date}","filter.date.until":"Indtil %{dato}",filterBar:bm,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:Dm,fundsCaptured:Om,grantIssued:$m,grantRepayment:Rm,hideContent:xm,id:wm,incompleteField:Pm,mobile:km,netPayout:jm,nextPayouts:Fm,noData:Wm,noNegativeNumbersAllowed:Bm,noPayoutsFound:zm,noTransactionsFound:Um,other:Ym,paginatedNavigation:Gm,"pagination.nextPage":"Næste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:Hm,paymentMethod:Zm,payoutDetails:Vm,payoutsTitle:Jm,Pending:Qm,pleaseReachOutToSupportForAssistance:Xm,"rangePreset.custom":"Tilpas","rangePreset.last30Days":"Sidste 30 dage","rangePreset.last7Days":"Sidste 7 dage","rangePreset.lastMonth":"Sidste måned","rangePreset.lastWeek":"Sidste uge","rangePreset.thisMonth":"Denne måned","rangePreset.thisWeek":"Denne uge","rangePreset.yearToDate":"År til dato",reachOutToSupport:Km,referenceID:qm,refresh:ep,refund:tp,remainingAmount:np,reset:op,Reversed:sp,"select.filter.placeholder":"Pladsholder","select.noOptionsFound":"Ingen muligheder stemmer ikke overens med denne søgning",somethingWentWrong:rp,status:ap,structuredList:ip,subtractions:cp,tabs:lp,theErrorCodeIs:up,thereAreNoResults:dp,theRequestIsMissingRequiredFieldsOrContainsInvalidData:hp,thereWasAnUnexpectedError:gp,theSelectedBalanceAccountIsIncorrect:mp,timezone:pp,to:fp,"tooltip.ATM":"Penge hævet i en pengeautomat","tooltip.Capital":"Penge fra et indgående lånetilskud eller udgående tilbagebetaling af lån","tooltip.Chargeback":"Penge tilbage til en kunde efter en bestridt transaktion","tooltip.Correction":"Justeringer af dine midler, herunder tilbageførsler af transaktioner og korrektioner af indbetalinger","tooltip.Fee":"Transaktionsomkostninger og gebyrer for betalingsmetoder","tooltip.Other":"Transaktioner, der ikke er i en anden kategori, normalt en justering","tooltip.Payment":"Penge modtaget på din konto fra en salgstransaktion","tooltip.Refund":"Penge sendt tilbage til en kunde fra en refunderet transaktion","tooltip.totalIncoming":"Alle penge modtaget på din konto baseret på de valgte filtre","tooltip.totalOutgoing":"Alle gebyrer, tilbagebetalinger, udbetalinger og andre afgifter baseret på de valgte filtre","tooltip.Transfer":"Penge flyttet mellem din konto og en anden konto",totalIncoming:yp,totalOutgoing:Ip,toValueShouldBeGreaterThanTheFromValue:_p,transactionDetails:Tp,transactions:Ap,transactionsOverviewTitle:Sp,transactionType:Np,transfer:Lp,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:Cp,tryRefreshingThePageOrComeBackLater:Ep,txAmount:Mp,"txType.ATM":"Pengeautomat","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Andet","txType.Payment":"Betaling","txType.Refund":"Refunderinger","txType.Transfer":"Overfør",type:vp,value:bp,weCouldNotLoadThePayoutsOverview:Dp,weCouldNotLoadTheTransactionsOverview:Op,weCouldNotLoadYourBalanceAccounts:$p,weCouldNotLoadYourPayouts:Rp,weCouldNotLoadYourTransactions:xp},Pp="Konto",kp="Kontostand",jp="Aufschläge",Fp="Anpassungen",Wp="Betrag",Bp="Bewerben",zp="Guthabenkonto",Up="Guthabenkonto-ID",Yp="Gebucht",Gp="Erfasst",Hp="Kategorie",Zp="Chargebacks",Vp="Schließen",Jp="Kontaktieren Sie den Support, um Hilfe zu erhalten, und geben Sie den Fehlercode %{requestId} an.",Qp="Korrekturen",Xp="Währung",Kp="Datum",qp="Datumsbereich",ef="Beschreibung",tf="OK",nf="E-Mail-Adresse",of="Entität wurde nicht gefunden",sf="Transaktion für den angegebenen Kontoinhaber nicht gefunden",rf="Gebühren",af="Filterleiste",cf="Von",lf="Erfasste Geldmittel",uf="Zuschuss gewährt",df="Rückzahlungen von Zuschüssen",hf="Inhalt ausblenden",gf="ID",mf="Unvollständiges Feld",pf="Mobil",ff="Netto-Auszahlung",yf="Nächste Auszahlungen",If="Keine Daten",_f="Keine negativen Zahlen erlaubt",Tf="Keine Auszahlungen gefunden",Af="Keine Transaktionen gefunden",Sf="Andere",Nf="Paginierte Navigation",Lf="Zahlungs-ID",Cf="Zahlungsart",Ef="Auszahlungsdetails",Mf="Auszahlungen",vf="Ausstehend",bf="Bitte wenden Sie sich an den Support, wenn Sie Hilfe benötigen.",Df="Wenden Sie sich an den Support",Of="Referenz-ID",$f="Aktualisieren",Rf="Rückerstattungen",xf="Restbetrag",wf="Zurücksetzen",Pf="Rückgängig gemacht",kf="Etwas ist schiefgelaufen.",jf="Status",Ff="Strukturierte Liste",Wf="Abzüge",Bf="Registerkarten",zf="Der Fehlercode lautet %{requestId}",Uf="Es sind keine Ergebnisse vorhanden.",Yf="In der Anfrage fehlen Pflichtfelder oder sie enthält ungültige Daten.",Gf="Es ist ein unerwarteter Fehler aufgetreten.",Hf="Das gewählte Guthabenkonto ist falsch.",Zf="Zeitzone",Vf="Zu",Jf="Gesamte Eingänge",Qf="Gesamte Ausgänge",Xf="Der Bis-Wert sollte gleich oder größer sein als der Von-Wert",Kf="Details zur Transaktion",qf="Transaktionen",ey="Übersicht über Transaktionen",ty="Transaktionsart",ny="Überweisungen",oy="Versuchen Sie es mit einer anderen Suche oder setzen Sie Ihre Filter zurück und wir versuchen es erneut.",sy="Versuchen Sie, die Seite zu aktualisieren, oder schauen Sie später noch einmal vorbei.",ry="Betrag",ay="Typ",iy="Wert",cy="Die Auszahlungsübersicht konnte nicht geladen werden.",ly="Die Transaktionsübersicht konnte nicht geladen werden.",uy="Ihre Guthabenkonten konnten nicht geladen werden.",dy="Ihre Auszahlungen konnten nicht geladen werden.",hy="Ihre Transaktionen konnten nicht geladen werden.",gy={account:Pp,accountBalance:kp,additions:jp,adjustments:Fp,amount:Wp,apply:Bp,balanceAccount:zp,balanceAccountId:Up,Booked:Yp,"button.clearAll":"Alles löschen","calendar.controls":"Steuerelemente für die Kalendernavigation","calendar.nextMonth":"Nächsten Monat","calendar.previousMonth":"Vorheriger Monat","calendar.timezone":"Die Zeitzone ist eingestellt auf: GMT%{offset} (%{time})",capture:Gp,category:Hp,chargeback:Zp,closeIconLabel:Vp,contactSupportForHelpAndShareErrorCode:Jp,correction:Qp,currency:Xp,date:Kp,dateRange:qp,default:"Standard",description:ef,dismiss:tf,email:nf,entityWasNotFound:of,entityWasNotFoundDetail:sf,"expandableCard.collapse":"Ausblenden","expandableCard.expand":"Erweitern",export:"Exportieren",fee:rf,"filter.date.since":"Seit %{date}","filter.date.until":"Bis %{date}",filterBar:af,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Währung","filterPlaceholder.status":"Status",from:cf,fundsCaptured:lf,grantIssued:uf,grantRepayment:df,hideContent:hf,id:gf,incompleteField:mf,mobile:pf,netPayout:ff,nextPayouts:yf,noData:If,noNegativeNumbersAllowed:_f,noPayoutsFound:Tf,noTransactionsFound:Af,other:Sf,paginatedNavigation:Nf,"pagination.nextPage":"Nächste Seite","pagination.previousPage":"Vorherige Seite","pagination.showing":"Wird angezeigt",paymentId:Lf,paymentMethod:Cf,payoutDetails:Ef,payoutsTitle:Mf,Pending:vf,pleaseReachOutToSupportForAssistance:bf,"rangePreset.custom":"Benutzerdefiniert","rangePreset.last30Days":"Letzte 30 Tage","rangePreset.last7Days":"Letzte 7 Tage","rangePreset.lastMonth":"Letzter Monat","rangePreset.lastWeek":"Letzte Woche","rangePreset.thisMonth":"Diesen Monat","rangePreset.thisWeek":"Diese Woche","rangePreset.yearToDate":"Jahr bis heute",reachOutToSupport:Df,referenceID:Of,refresh:$f,refund:Rf,remainingAmount:xf,reset:wf,Reversed:Pf,"select.filter.placeholder":"Platzhalter","select.noOptionsFound":"Keine Optionen für diese Suche vorhanden",somethingWentWrong:kf,status:jf,structuredList:Ff,subtractions:Wf,tabs:Bf,theErrorCodeIs:zf,thereAreNoResults:Uf,theRequestIsMissingRequiredFieldsOrContainsInvalidData:Yf,thereWasAnUnexpectedError:Gf,theSelectedBalanceAccountIsIncorrect:Hf,timezone:Zf,to:Vf,"tooltip.ATM":"Geld, das an einem Geldautomaten abgehoben wird","tooltip.Capital":"Geld aus einem eingehenden Darlehenszuschuss oder einer ausgehenden Darlehensrückzahlung","tooltip.Chargeback":"Geld wurde einem Kunden nach einer angefochtenen Transaktion zurückerstattet","tooltip.Correction":"Anpassungen Ihrer Gelder, einschließlich Transaktionsstornierungen und Einzahlungskorrekturen","tooltip.Fee":"Transaktionskosten und Gebühren für Zahlungsmethoden","tooltip.Other":"Transaktionen, die nicht in eine andere Kategorie fallen, in der Regel eine Anpassung","tooltip.Payment":"Geld, das Sie durch eine Verkaufstransaktion auf Ihrem Konto erhalten haben","tooltip.Refund":"Geld, das von einer erstatteten Transaktion an einen Kunden zurückgeschickt wurde","tooltip.totalIncoming":"Alle auf Ihrem Konto eingegangenen Gelder basierend auf den ausgewählten Filtern","tooltip.totalOutgoing":"Alle Gebühren, Erstattungen, Auszahlungen und andere Abbuchungen basierend auf den ausgewählten Filtern","tooltip.Transfer":"Geld wurde zwischen Ihrem Konto und einem anderen Konto transferiert wurde",totalIncoming:Jf,totalOutgoing:Qf,toValueShouldBeGreaterThanTheFromValue:Xf,transactionDetails:Kf,transactions:qf,transactionsOverviewTitle:ey,transactionType:ty,transfer:ny,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:oy,tryRefreshingThePageOrComeBackLater:sy,txAmount:ry,"txType.ATM":"Geldautomat","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektur","txType.Fee":"Gebühr","txType.Other":"Andere","txType.Payment":"Zahlung","txType.Refund":"Rückerstattung","txType.Transfer":"Überweisung",type:ay,value:iy,weCouldNotLoadThePayoutsOverview:cy,weCouldNotLoadTheTransactionsOverview:ly,weCouldNotLoadYourBalanceAccounts:uy,weCouldNotLoadYourPayouts:dy,weCouldNotLoadYourTransactions:hy},my="Cuenta",py="Saldo de la cuenta",fy="Adiciones",yy="Ajustes",Iy="cantidad",_y="Aplicar",Ty="Cuenta de saldo",Ay="ID de cuenta de saldo",Sy="Reservado",Ny="Capturado",Ly="Categoría",Cy="Contracargos",Ey="Cerrar",My="Contacta al equipo de soporte para obtener ayuda y comparte con ellos el código del error %{requestId}",vy="Correcciones",by="Divisa",Dy="Fecha",Oy="Intervalo de fechas",$y="Descripción",Ry="Descartar",xy="Correo electrónico",wy="No se ha encontrado la entidad",Py="No se ha encontrado la transacción para el titular especificado",ky="Tasas",jy="Barra de filtro",Fy="Desde",Wy="Fondos capturados",By="Subvención concedida",zy="Reembolsos de la subvención",Uy="Ocultar contenido",Yy="Documento de identidad",Gy="Campo incompleto",Hy="Móvil",Zy="Pago neto",Vy="Próximos pagos",Jy="Sin datos",Qy="No se permiten números negativos",Xy="No se ha encontrado ningún pago",Ky="No se han encontrado transacciones",qy="Otro tipo",eI="Navegación por páginas",tI="ID de pago",nI="Método de pago",oI="Detalles de pago",sI="Pagos",rI="Pendiente",aI="Ponte en contacto con soporte para obtener ayuda.",iI="Ponte en contacto con soporte",cI="ID de referencia",lI="Actualizar",uI="Reembolsos",dI="Cantidad restante",hI="Restablecer",gI="Invertido",mI="Se ha producido un error.",pI="Estado",fI="Lista estructurada",yI="Sustracciones",II="Pestañas",_I="El código de error es %{requestId}",TI="Sin resultados",AI="Faltan faltan campos obligatorios en la solicitud o esta contiene datos no válidos.",SI="Se ha producido un error inesperado",NI="La cuenta de saldo seleccionada es incorrecta",LI="Zona horaria",CI="Hasta",EI="Fondos entrantes totales",MI="Fondos salientes totales",vI="El valor Hasta debe ser igual o mayor que el valor Desde",bI="Detalles de la transacción",DI="Transacciones",OI="Resumen de transacciones",$I="Tipo de transacción",RI="Transferencias",xI="Prueba con una búsqueda diferente o restablece los filtros para que lo intentemos de nuevo.",wI="Prueba a actualizar la página o inténtalo más tarde.",PI="cantidad",kI="Tipo",jI="Valor",FI="No hemos podido cargar el resumen de los pagos.",WI="No hemos podido cargar el resumen de las transacciones.",BI="No hemos podido cargar tus cuentas de saldo.",zI="No hemos podido cargar tus pagos.",UI="No hemos podido cargar tus transacciones.",YI={account:my,accountBalance:py,additions:fy,adjustments:yy,amount:Iy,apply:_y,balanceAccount:Ty,balanceAccountId:Ay,Booked:Sy,"button.clearAll":"Borrar todo","calendar.controls":"Controles de navegación del calendario","calendar.nextMonth":"Mes siguiente","calendar.previousMonth":"Mes anterior","calendar.timezone":"La zona horaria actual en: GMT%{offset} (%{time})",capture:Ny,category:Ly,chargeback:Cy,closeIconLabel:Ey,contactSupportForHelpAndShareErrorCode:My,correction:vy,currency:by,date:Dy,dateRange:Oy,default:"Por defecto",description:$y,dismiss:Ry,email:xy,entityWasNotFound:wy,entityWasNotFoundDetail:Py,"expandableCard.collapse":"Contraer","expandableCard.expand":"Expandir",export:"Exportar",fee:ky,"filter.date.since":"Desde: %{date}","filter.date.until":"Hasta: %{date}",filterBar:jy,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Divisa","filterPlaceholder.status":"Estado",from:Fy,fundsCaptured:Wy,grantIssued:By,grantRepayment:zy,hideContent:Uy,id:Yy,incompleteField:Gy,mobile:Hy,netPayout:Zy,nextPayouts:Vy,noData:Jy,noNegativeNumbersAllowed:Qy,noPayoutsFound:Xy,noTransactionsFound:Ky,other:qy,paginatedNavigation:eI,"pagination.nextPage":"Página siguiente","pagination.previousPage":"Página anterior","pagination.showing":"Visible",paymentId:tI,paymentMethod:nI,payoutDetails:oI,payoutsTitle:sI,Pending:rI,pleaseReachOutToSupportForAssistance:aI,"rangePreset.custom":"Personalizadas","rangePreset.last30Days":"Últimos 30 días","rangePreset.last7Days":"Últimos 7 días","rangePreset.lastMonth":"Mes pasado","rangePreset.lastWeek":"Última semana","rangePreset.thisMonth":"Este mes","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Este año hasta la fecha",reachOutToSupport:iI,referenceID:cI,refresh:lI,refund:uI,remainingAmount:dI,reset:hI,Reversed:gI,"select.filter.placeholder":"Marcador de posición","select.noOptionsFound":"No hay opciones que coincidan con esta búsqueda",somethingWentWrong:mI,status:pI,structuredList:fI,subtractions:yI,tabs:II,theErrorCodeIs:_I,thereAreNoResults:TI,theRequestIsMissingRequiredFieldsOrContainsInvalidData:AI,thereWasAnUnexpectedError:SI,theSelectedBalanceAccountIsIncorrect:NI,timezone:LI,to:CI,"tooltip.ATM":"Dinero retirado en un cajero automático","tooltip.Capital":"Dinero de una concesión de préstamo entrante o de un reembolso de préstamo saliente","tooltip.Chargeback":"Dinero devuelto a un cliente después de una transacción en disputa","tooltip.Correction":"Ajustes a tus fondos, incluidas reversiones de transacciones y correcciones de depósitos","tooltip.Fee":"Costes de la transacción y comisiones del método de pago","tooltip.Other":"Transacciones que no pertenecen a otra categoría, normalmente un ajuste","tooltip.Payment":"Dinero recibido en tu cuenta de una transacción de venta","tooltip.Refund":"Dinero devuelto a un cliente por una transacción reembolsada","tooltip.totalIncoming":"Todo el dinero recibido en tu cuenta de acuerdo a los filtros seleccionados","tooltip.totalOutgoing":"Todas las comisiones, los reembolsos, los pagos y otros cargos de acuerdo a los filtros seleccionados","tooltip.Transfer":"Dinero movido entre tu cuenta y otra",totalIncoming:EI,totalOutgoing:MI,toValueShouldBeGreaterThanTheFromValue:vI,transactionDetails:bI,transactions:DI,transactionsOverviewTitle:OI,transactionType:$I,transfer:RI,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:xI,tryRefreshingThePageOrComeBackLater:wI,txAmount:PI,"txType.ATM":"Cajero automático","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Corrección","txType.Fee":"Fee (Tasa)","txType.Other":"Otro tipo","txType.Payment":"Pago","txType.Refund":"Devolución","txType.Transfer":"Transferencia",type:kI,value:jI,weCouldNotLoadThePayoutsOverview:FI,weCouldNotLoadTheTransactionsOverview:WI,weCouldNotLoadYourBalanceAccounts:BI,weCouldNotLoadYourPayouts:zI,weCouldNotLoadYourTransactions:UI},GI="Compte",HI="Solde du compte",ZI="Additions",VI="Ajustements",JI="Montant",QI="Postuler",XI="Compte de solde",KI="ID de compte de solde",qI="Réservé",e_="Capturé",t_="Catégorie",n_="Impayés",o_="Fermer",s_="Contactez l'assistance pour obtenir de l'aide et partagez le code d'erreur %{requestId}",r_="Corrections",a_="Devise",i_="Date",c_="Plage de dates",l_="Description",u_="Ignorer",d_="E-mail",h_="L'entité n'a pas été trouvée",g_="Transaction introuvable pour le titulaire du compte spécifié",m_="Frais",p_="Barre de filtre",f_="De",y_="Fonds capturés",I_="Subvention accordée",__="Remboursements de subventions",T_="Masquer le contenu",A_="ID",S_="Champ incomplet",N_="Mobile",L_="Reversement net",C_="Reversements suivants",E_="Pas de données",M_="Aucun chiffre négatif n'est autorisé",v_="Aucun reversement trouvé",b_="Aucune transaction trouvée",D_="Autre",O_="Navigation paginée",$_="ID de paiement",R_="Mode de paiement",x_="Informations pour le reversement",w_="Reversements",P_="En attente",k_="Veuillez contacter l'assistance pour obtenir de l'aide.",j_="Contacter l'assistance",F_="ID de référence",W_="Actualiser",B_="Remboursements",z_="Montant restant",U_="Réinitialiser",Y_="Inverse",G_="Une erreur s'est produite.",H_="Statut",Z_="Liste structurée",V_="Soustractions",J_="Onglets",Q_="Le code d'erreur est %{requestId}",X_="Il n'y a pas de résultats",K_="Dans la demande, des champs obligatoires sont manquants ou des données ne sont pas valides.",q_="Une erreur inattendue s'est produite",eT="Le compte de solde sélectionné est incorrect",tT="Fuseau horaire",nT="À",oT="Total entrant",sT="Total sortant",rT="La valeur de À doit être égale ou supérieure à la valeur de De",aT="Détails de la transaction",iT="Transactions",cT="Aperçu des transactions",lT="Type de transaction",uT="Transferts",dT="Essayez une autre recherche ou réinitialisez vos filtres, et nous réessayerons.",hT="Réessayez en actualisant la page ou retentez plus tard.",gT="Montant",mT="Type",pT="Valeur",fT="Nous n'avons pas pu charger l'aperçu des reversements.",yT="Nous n'avons pas pu charger l'aperçu des transactions.",IT="Nous n'avons pas pu charger vos comptes de solde.",_T="Nous n'avons pas pu charger vos reversements.",TT="Nous n'avons pas pu charger vos transactions.",AT={account:GI,accountBalance:HI,additions:ZI,adjustments:VI,amount:JI,apply:QI,balanceAccount:XI,balanceAccountId:KI,Booked:qI,"button.clearAll":"Tout effacer","calendar.controls":"Commandes de navigation dans le calendrier","calendar.nextMonth":"Mois suivant","calendar.previousMonth":"Mois précédent","calendar.timezone":"Le fuseau horaire est défini sur : GMT%{offset} (%{time})",capture:e_,category:t_,chargeback:n_,closeIconLabel:o_,contactSupportForHelpAndShareErrorCode:s_,correction:r_,currency:a_,date:i_,dateRange:c_,default:"Par défaut",description:l_,dismiss:u_,email:d_,entityWasNotFound:h_,entityWasNotFoundDetail:g_,"expandableCard.collapse":"Réduire","expandableCard.expand":"Développer",export:"Exporter",fee:m_,"filter.date.since":"Depuis le %{date}","filter.date.until":"Jusqu'au %{date}",filterBar:p_,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Devise","filterPlaceholder.status":"Statut",from:f_,fundsCaptured:y_,grantIssued:I_,grantRepayment:__,hideContent:T_,id:A_,incompleteField:S_,mobile:N_,netPayout:L_,nextPayouts:C_,noData:E_,noNegativeNumbersAllowed:M_,noPayoutsFound:v_,noTransactionsFound:b_,other:D_,paginatedNavigation:O_,"pagination.nextPage":"Page suivante","pagination.previousPage":"Page précédente","pagination.showing":"Affichage",paymentId:$_,paymentMethod:R_,payoutDetails:x_,payoutsTitle:w_,Pending:P_,pleaseReachOutToSupportForAssistance:k_,"rangePreset.custom":"Personnalisé","rangePreset.last30Days":"30 derniers jours","rangePreset.last7Days":"7 derniers jours","rangePreset.lastMonth":"Mois dernier","rangePreset.lastWeek":"La semaine dernière","rangePreset.thisMonth":"Ce mois-ci","rangePreset.thisWeek":"Cette semaine","rangePreset.yearToDate":"Depuis le début de l'année",reachOutToSupport:j_,referenceID:F_,refresh:W_,refund:B_,remainingAmount:z_,reset:U_,Reversed:Y_,"select.filter.placeholder":"Espace réservé","select.noOptionsFound":"Aucune option ne correspond à cette recherche",somethingWentWrong:G_,status:H_,structuredList:Z_,subtractions:V_,tabs:J_,theErrorCodeIs:Q_,thereAreNoResults:X_,theRequestIsMissingRequiredFieldsOrContainsInvalidData:K_,thereWasAnUnexpectedError:q_,theSelectedBalanceAccountIsIncorrect:eT,timezone:tT,to:nT,"tooltip.ATM":"Argent retiré à un distributeur automatique","tooltip.Capital":"Argent provenant d’un prêt ou d’un remboursement de prêt","tooltip.Chargeback":"Argent remboursé à un client suite à une transaction contestée","tooltip.Correction":"Ajustements à vos fonds, y compris les annulations de transactions et les corrections de dépôts","tooltip.Fee":"Frais de transaction et frais liés au moyen de paiement","tooltip.Other":"Transactions n’appartenant pas à une autre catégorie, généralement un ajustement","tooltip.Payment":"Argent versé sur votre compte suite à une transaction de vente","tooltip.Refund":"Argent renvoyé à un client suite à une transaction remboursée","tooltip.totalIncoming":"Tout l'argent versé sur votre compte en fonction des filtres sélectionnés","tooltip.totalOutgoing":"Tous les frais, remboursements, reversements et autres dépenses basés sur les filtres sélectionnés","tooltip.Transfer":"Argent transféré de votre compte vers un autre compte",totalIncoming:oT,totalOutgoing:sT,toValueShouldBeGreaterThanTheFromValue:rT,transactionDetails:aT,transactions:iT,transactionsOverviewTitle:cT,transactionType:lT,transfer:uT,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:dT,tryRefreshingThePageOrComeBackLater:hT,txAmount:gT,"txType.ATM":"Distributeur automatique","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee (Frais)","txType.Other":"Autre","txType.Payment":"Transaction","txType.Refund":"Remboursement","txType.Transfer":"Transfert",type:mT,value:pT,weCouldNotLoadThePayoutsOverview:fT,weCouldNotLoadTheTransactionsOverview:yT,weCouldNotLoadYourBalanceAccounts:IT,weCouldNotLoadYourPayouts:_T,weCouldNotLoadYourTransactions:TT},ST="Account",NT="Saldo del conto",LT="Aggiunte",CT="Aggiustamenti",ET="Importo",MT="Applica",vT="Saldo del conto",bT="ID saldo del conto",DT="Prenotato",OT="Acquisito",$T="Categoria",RT="Chargeback",xT="Chiudi",wT="Contatta l'assistenza per un aiuto e condividi il codice di errore %{requestId}",PT="Correzioni",kT="Valuta",jT="Data",FT="Intervallo di date",WT="Descrizione",BT="Ignora",zT="E-mail",UT="L'entità non è stata trovata",YT="Transazione non trovata per il titolare del conto specificato",GT="Commissioni",HT="Barra dei filtri",ZT="Da",VT="Fondi acquisiti",JT="Sovvenzione rilasciata",QT="Rimborsi delle sovvenzioni",XT="Nascondi contenuto",KT="Numero identificativo",qT="Campo incompleto",eA="Mobile",tA="Pagamento netto",nA="Prossimi pagamenti",oA="Nessun dato",sA="Non sono ammessi numeri negativi",rA="Nessun pagamento trovato",aA="Nessuna transazione trovata",iA="Altro",cA="Navigazione a pagine",lA="ID di pagamento",uA="Metodo di pagamento",dA="Dettagli di pagamento",hA="Pagamenti",gA="In sospeso",mA="Contatta il supporto per ricevere assistenza.",pA="Contatta il supporto",fA="ID di riferimento",yA="Aggiorna",IA="Rimborsi",_A="Importo rimanente",TA="Reimposta",AA="Revocato",SA="Si è verificato un errore.",NA="Stato",LA="Elenco strutturato",CA="Sottrazioni",EA="Schede",MA="Il codice di errore è %{requestId}",vA="Nessun risultato",bA="Nella richiesta mancano i campi obbligatori o contiene dati non validi.",DA="Si è verificato un errore imprevisto",OA="Il saldo del conto selezionato non è corretto",$A="Fuso orario",RA="A",xA="Entrate totali",wA="Totale uscite",PA="Il valore A deve essere uguale o maggiore del valore Da",kA="Dettagli della transazione",jA="Transazioni",FA="Panoramica delle transazioni",WA="Tipo di transazione",BA="Trasferimenti",zA="Prova a effettuare una ricerca diversa o a reimpostare i filtri e ritenteremo.",UA="Prova ad aggiornare la pagina o torna più tardi.",YA="Importo",GA="Tipo",HA="Valore",ZA="Non è stato possibile caricare la panoramica dei pagamenti.",VA="Non è stato possibile caricare la panoramica delle transazioni.",JA="Non è stato possibile caricare il saldo dei tuoi conti.",QA="Non è stato possibile caricare i tuoi pagamenti.",XA="Non è stato possibile caricare le tue transazioni.",KA={account:ST,accountBalance:NT,additions:LT,adjustments:CT,amount:ET,apply:MT,balanceAccount:vT,balanceAccountId:bT,Booked:DT,"button.clearAll":"Svuota tutto","calendar.controls":"Controlli di navigazione del calendario","calendar.nextMonth":"Prossimo mese","calendar.previousMonth":"Mese precedente","calendar.timezone":"Il fuso orario è impostato su: GMT%{offset} (%{time})",capture:OT,category:$T,chargeback:RT,closeIconLabel:xT,contactSupportForHelpAndShareErrorCode:wT,correction:PT,currency:kT,date:jT,dateRange:FT,default:"Default",description:WT,dismiss:BT,email:zT,entityWasNotFound:UT,entityWasNotFoundDetail:YT,"expandableCard.collapse":"Comprimi","expandableCard.expand":"Espandi",export:"Esporta",fee:GT,"filter.date.since":"Dal %{date}","filter.date.until":"Al %{date}",filterBar:HT,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Stato",from:ZT,fundsCaptured:VT,grantIssued:JT,grantRepayment:QT,hideContent:XT,id:KT,incompleteField:qT,mobile:eA,netPayout:tA,nextPayouts:nA,noData:oA,noNegativeNumbersAllowed:sA,noPayoutsFound:rA,noTransactionsFound:aA,other:iA,paginatedNavigation:cA,"pagination.nextPage":"Pagina successiva","pagination.previousPage":"Pagina precedente","pagination.showing":"Risultati:",paymentId:lA,paymentMethod:uA,payoutDetails:dA,payoutsTitle:hA,Pending:gA,pleaseReachOutToSupportForAssistance:mA,"rangePreset.custom":"Personalizzato","rangePreset.last30Days":"Ultimi 30 giorni","rangePreset.last7Days":"Ultimi 7 giorni","rangePreset.lastMonth":"Il mese scorso","rangePreset.lastWeek":"La scorsa settimana","rangePreset.thisMonth":"Questo mese","rangePreset.thisWeek":"Questa settimana","rangePreset.yearToDate":"Da inizio anno",reachOutToSupport:pA,referenceID:fA,refresh:yA,refund:IA,remainingAmount:_A,reset:TA,Reversed:AA,"select.filter.placeholder":"Segnaposto","select.noOptionsFound":"Nessuna opzione corrisponde a questa ricerca",somethingWentWrong:SA,status:NA,structuredList:LA,subtractions:CA,tabs:EA,theErrorCodeIs:MA,thereAreNoResults:vA,theRequestIsMissingRequiredFieldsOrContainsInvalidData:bA,thereWasAnUnexpectedError:DA,theSelectedBalanceAccountIsIncorrect:OA,timezone:$A,to:RA,"tooltip.ATM":"Denaro prelevato da uno sportello bancomat","tooltip.Capital":"Denaro derivante da una concessione di prestito in entrata o dal rimborso del prestito in uscita","tooltip.Chargeback":"Denaro restituito a un cliente dopo una transazione contestata","tooltip.Correction":"Aggiustamenti ai tuoi fondi, inclusi storni di transazioni e correzioni di depositi","tooltip.Fee":"Costi di transazione e commissioni sui metodi di pagamento","tooltip.Other":"Transazioni non appartenenti a un'altra categoria, di solito un aggiustamento","tooltip.Payment":"Denaro ricevuto sul tuo conto da una transazione di vendita","tooltip.Refund":"Denaro restituito a un cliente da una transazione rimborsata","tooltip.totalIncoming":"Tutto il denaro ricevuto sul conto in base ai filtri selezionati","tooltip.totalOutgoing":"Tutte le commissioni, i rimborsi, i pagamenti e le altre spese in base ai filtri selezionati","tooltip.Transfer":"Denaro trasferito tra il tuo conto e un altro conto",totalIncoming:xA,totalOutgoing:wA,toValueShouldBeGreaterThanTheFromValue:PA,transactionDetails:kA,transactions:jA,transactionsOverviewTitle:FA,transactionType:WA,transfer:BA,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:zA,tryRefreshingThePageOrComeBackLater:UA,txAmount:YA,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Riaccredito","txType.Correction":"Correzione","txType.Fee":"Commissione","txType.Other":"Altro","txType.Payment":"Pagamento","txType.Refund":"Rimborso","txType.Transfer":"Trasferimento",type:GA,value:HA,weCouldNotLoadThePayoutsOverview:ZA,weCouldNotLoadTheTransactionsOverview:VA,weCouldNotLoadYourBalanceAccounts:JA,weCouldNotLoadYourPayouts:QA,weCouldNotLoadYourTransactions:XA},qA="Account",eS="Rekeningsaldo",tS="Aanvullingen",nS="Aanpassingen",oS="Bedrag",sS="Toepassen",rS="Saldorekening",aS="ID saldorekening",iS="Geboekt",cS="Vastgehouden",lS="Categorie",uS="Chargebacks",dS="Sluiten",hS="Neem contact op met support voor hulp en vermeld de foutcode% {requestId}",gS="Correcties",mS="Valuta",pS="Datum",fS="Periode",yS="Beschrijving",IS="Negeren",_S="E-mailadres",TS="Entiteit is niet gevonden.",AS="Transactie niet gevonden voor de opgegeven rekeninghouder",SS="Kosten",NS="Filterbalk",LS="Van",CS="Vastgehouden bedrag",ES="Subsidie verleend",MS="Terugbetalingen van subsidies",vS="Inhoud verbergen",bS="ID",DS="Onvolledig veld",OS="Mobiel",$S="Netto uitbetaling",RS="Volgende uitbetalingen",xS="Geen gegevens",wS="Negatieve getallen zijn niet toegestaan",PS="Geen uitbetalingen gevonden",kS="Geen transacties gevonden",jS="Overige",FS="Gepagineerde navigatie",WS="Betalings-ID",BS="Betaalmethode",zS="Uitbetalingsgegevens",US="Uitbetalingen",YS="In behandeling",GS="Neem contact op support voor ondersteuning.",HS="Neem contact met support",ZS="Referentie-ID",VS="Vernieuwen",JS="Refunds",QS="Resterend bedrag",XS="Resetten",KS="Teruggestort",qS="Er is iets fout gegaan.",eN="Status",tN="Gestructureerde lijst",nN="Aftrekkingen",oN="Tabs",sN="De foutcode is %{requestId}",rN="Er zijn geen resultaten",aN="Er ontbreken verplichte velden in het verzoek of het bevat ongeldige gegevens.",iN="Er is een onverwachte fout opgetreden",cN="De geselecteerde saldorekening is onjuist",lN="Tijdzone",uN="Naar",dN="Totaal inkomend",hN="Totaal uitgaand",gN="De waarde moet gelijk zijn aan of groter zijn dan de Van-waarde",mN="Gegevens van de transactie",pN="Transacties",fN="Transactieoverzicht",yN="Soort transactie",IN="Overschrijvingen",_N="Probeer een andere zoekopdracht of stel uw filters opnieuw in, en we proberen het opnieuw.",TN="Probeer de pagina te vernieuwen of kom later terug.",AN="Bedrag",SN="Soort",NN="Waarde",LN="We konden het uitbetalingsoverzicht niet laden.",CN="We konden het transactieoverzicht niet laden.",EN="We kunnen uw saldorekeningen niet laden.",MN="We konden uw uitbetalingen niet laden.",vN="We konden uw transacties niet laden.",bN={account:qA,accountBalance:eS,additions:tS,adjustments:nS,amount:oS,apply:sS,balanceAccount:rS,balanceAccountId:aS,Booked:iS,"button.clearAll":"Alles wissen","calendar.controls":"Bedieningselementen voor agendanavigatie","calendar.nextMonth":"Volgende maand","calendar.previousMonth":"Vorige maand","calendar.timezone":"Tijdzone is ingesteld op: GMT%{offset} (%{time})",capture:cS,category:lS,chargeback:uS,closeIconLabel:dS,contactSupportForHelpAndShareErrorCode:hS,correction:gS,currency:mS,date:pS,dateRange:fS,default:"Standaard",description:yS,dismiss:IS,email:_S,entityWasNotFound:TS,entityWasNotFoundDetail:AS,"expandableCard.collapse":"Samenvoegen","expandableCard.expand":"Uitvouwen",export:"Exporteren",fee:SS,"filter.date.since":"Sinds %{date}","filter.date.until":"Tot %{date}",filterBar:NS,"filterPlaceholder.category":"Soort","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:LS,fundsCaptured:CS,grantIssued:ES,grantRepayment:MS,hideContent:vS,id:bS,incompleteField:DS,mobile:OS,netPayout:$S,nextPayouts:RS,noData:xS,noNegativeNumbersAllowed:wS,noPayoutsFound:PS,noTransactionsFound:kS,other:jS,paginatedNavigation:FS,"pagination.nextPage":"Volgende pagina","pagination.previousPage":"Vorige pagina","pagination.showing":"Tonen",paymentId:WS,paymentMethod:BS,payoutDetails:zS,payoutsTitle:US,Pending:YS,pleaseReachOutToSupportForAssistance:GS,"rangePreset.custom":"Aangepast","rangePreset.last30Days":"Laatste 30 dagen","rangePreset.last7Days":"Laatste 7 dagen","rangePreset.lastMonth":"Vorige maand","rangePreset.lastWeek":"Vorige week","rangePreset.thisMonth":"Deze maand","rangePreset.thisWeek":"Deze week","rangePreset.yearToDate":"Jaar tot heden",reachOutToSupport:HS,referenceID:ZS,refresh:VS,refund:JS,remainingAmount:QS,reset:XS,Reversed:KS,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"Er zijn geen opties die overeenkomen met deze zoekopdracht",somethingWentWrong:qS,status:eN,structuredList:tN,subtractions:nN,tabs:oN,theErrorCodeIs:sN,thereAreNoResults:rN,theRequestIsMissingRequiredFieldsOrContainsInvalidData:aN,thereWasAnUnexpectedError:iN,theSelectedBalanceAccountIsIncorrect:cN,timezone:lN,to:uN,"tooltip.ATM":"Geld opgenomen bij een geldautomaat","tooltip.Capital":"Geld uit een binnenkomende lening of terugbetaling van een uitgaande lening","tooltip.Chargeback":"Geld teruggestort aan een klant na een betwiste transactie","tooltip.Correction":"Aanpassingen aan je geld, inclusief terugboekingen van transacties en correcties op stortingen","tooltip.Fee":"Transactiekosten en kosten voor betaalmethoden","tooltip.Other":"Transacties die niet in een andere categorie vallen, meestal een aanpassing","tooltip.Payment":"Geld dat op je rekening is ontvangen via een verkooptransactie","tooltip.Refund":"Geld dat is teruggestuurd naar een klant in het kader van een teruggestorte transactie","tooltip.totalIncoming":"Al het geld dat op uw rekening is ontvangen op basis van de geselecteerde filters","tooltip.totalOutgoing":"Alle vergoedingen, terugbetalingen, uitbetalingen en andere kosten op basis van de geselecteerde filters","tooltip.Transfer":"Geld dat tussen je rekening en een andere rekening is overgemaakt",totalIncoming:dN,totalOutgoing:hN,toValueShouldBeGreaterThanTheFromValue:gN,transactionDetails:mN,transactions:pN,transactionsOverviewTitle:fN,transactionType:yN,transfer:IN,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:_N,tryRefreshingThePageOrComeBackLater:TN,txAmount:AN,"txType.ATM":"Geldautomaat","txType.Capital":"Capital","txType.Chargeback":"Terugboeking","txType.Correction":"Correctie","txType.Fee":"Kost","txType.Other":"Overige","txType.Payment":"Betaling","txType.Refund":"Refund","txType.Transfer":"Overschrijving",type:SN,value:NN,weCouldNotLoadThePayoutsOverview:LN,weCouldNotLoadTheTransactionsOverview:CN,weCouldNotLoadYourBalanceAccounts:EN,weCouldNotLoadYourPayouts:MN,weCouldNotLoadYourTransactions:vN},DN="Konto",ON="Saldo på konto",$N="Tillegg",RN="Justeringer",xN="Beløp",wN="Bruk",PN="Saldokonto",kN="Saldokonto-ID",jN="Bestilt",FN="Registrert",WN="Kategori",BN="Chargebacks",zN="Lukk",UN="Kontakt brukerstøtten for hjelp og del feilkoden %{requestId}",YN="Rettelser",GN="Valuta",HN="Dato",ZN="Datointervall",VN="Beskrivelse",JN="Avvis",QN="E-post",XN="Entiteten ble ikke funnet",KN="Transaksjon ble ikke funnet for den angitte kontoinnehaveren",qN="Gebyrer",eL="Filterlinje",tL="Fra",nL="Midler registrert",oL="Tilskudd utstedt",sL="Tilbakebetaling av tilskudd",rL="Skjul innhold",aL="ID",iL="Ufullstendig felt",cL="Mobile",lL="Netto utbetaling",uL="Neste utbetalinger",dL="Ingen data",hL="Ingen negative tall tillatt",gL="Ingen utbetalinger funnet",mL="Ingen transaksjoner funnet",pL="Annet",fL="Sideformatert navigasjon",yL="Betalings-ID",IL="Betalingsmetode",_L="Detaljer om utbetaling",TL="Utbetalinger",AL="Avventer",SL="Ta kontakt med brukerstøtten for å få hjelp.",NL="Ta kontakt med brukerstøtten",LL="Referanse-ID",CL="Oppdater",EL="Refunderinger",ML="Gjenstående beløp",vL="Tilbakestill",bL="Omvendt",DL="Noe gikk galt.",OL="Status",$L="Strukturert liste",RL="Subtraksjoner",xL="Faner",wL="Feilkoden er %{requestID}",PL="Det finnes ingen resultater",kL="Forespørselen mangler obligatoriske felt eller inneholder ugyldige data.",jL="Det oppstod en uventet feil",FL="Den valgte saldokontoen er feil",WL="Tidssone",BL="Til",zL="Totalt innkommende",UL="Totalt utgående",YL="Til-verdien skal være lik eller større enn Fra-verdien",GL="Transaksjonsdetaljer",HL="Transaksjoner",ZL="Transaksjonsoversikt",VL="Transaksjonstype",JL="Overføringer",QL="Prøv et annet søk eller tilbakestill filtrene dine, så prøver vi på nytt.",XL="Prøv å oppdatere siden, eller kom tilbake senere.",KL="Beløp",qL="Type",eC="Verdi",tC="Vi kunne ikke laste inn oversikten over utbetalinger.",nC="Vi kunne ikke laste inn transaksjonsoversikten.",oC="Vi kunne ikke laste inn saldokontoene dine.",sC="Vi kunne ikke laste inn utbetalingene dine.",rC="Vi kunne ikke laste inn transaksjonene dine.",aC={account:DN,accountBalance:ON,additions:$N,adjustments:RN,amount:xN,apply:wN,balanceAccount:PN,balanceAccountId:kN,Booked:jN,"button.clearAll":"Fjern alle","calendar.controls":"Kontroller for kalendernavigasjon","calendar.nextMonth":"Neste måned","calendar.previousMonth":"Forrige måned","calendar.timezone":"Tidssonen er satt til: GMT%{offset} (%{time})",capture:FN,category:WN,chargeback:BN,closeIconLabel:zN,contactSupportForHelpAndShareErrorCode:UN,correction:YN,currency:GN,date:HN,dateRange:ZN,default:"Standard",description:VN,dismiss:JN,email:QN,entityWasNotFound:XN,entityWasNotFoundDetail:KN,"expandableCard.collapse":"Skjul","expandableCard.expand":"Utvid",export:"Eksportér",fee:qN,"filter.date.since":"Siden %{date}","filter.date.until":"Frem til %{date}",filterBar:eL,"filterPlaceholder.category":"Type","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:tL,fundsCaptured:nL,grantIssued:oL,grantRepayment:sL,hideContent:rL,id:aL,incompleteField:iL,mobile:cL,netPayout:lL,nextPayouts:uL,noData:dL,noNegativeNumbersAllowed:hL,noPayoutsFound:gL,noTransactionsFound:mL,other:pL,paginatedNavigation:fL,"pagination.nextPage":"Neste side","pagination.previousPage":"Forrige side","pagination.showing":"Viser",paymentId:yL,paymentMethod:IL,payoutDetails:_L,payoutsTitle:TL,Pending:AL,pleaseReachOutToSupportForAssistance:SL,"rangePreset.custom":"Tilpasset","rangePreset.last30Days":"Siste 30 dager","rangePreset.last7Days":"Siste 7 dager","rangePreset.lastMonth":"Forrige måned","rangePreset.lastWeek":"Forrige uke","rangePreset.thisMonth":"Denne måneden","rangePreset.thisWeek":"Denne uken","rangePreset.yearToDate":"Hittil i år",reachOutToSupport:NL,referenceID:LL,refresh:CL,refund:EL,remainingAmount:ML,reset:vL,Reversed:bL,"select.filter.placeholder":"Plassholder","select.noOptionsFound":"Ingen alternativer samsvarer med dette søket",somethingWentWrong:DL,status:OL,structuredList:$L,subtractions:RL,tabs:xL,theErrorCodeIs:wL,thereAreNoResults:PL,theRequestIsMissingRequiredFieldsOrContainsInvalidData:kL,thereWasAnUnexpectedError:jL,theSelectedBalanceAccountIsIncorrect:FL,timezone:WL,to:BL,"tooltip.ATM":"Penger tatt ut i minibank","tooltip.Capital":"Penger fra et innkommende lånetilskudd eller utgående tilbakebetaling av lån","tooltip.Chargeback":"Penger returnert til en kunde etter en bestridt transaksjon","tooltip.Correction":"Justeringer av midlene dine, inkludert reversering av transaksjoner og korrigering av innskudd","tooltip.Fee":"Transaksjonskostnader og gebyrer for betalingsmetode","tooltip.Other":"Transaksjoner som ikke hører til i en annen kategori, vanligvis en justering","tooltip.Payment":"Penger mottatt i kontoen din fra en salgstransaksjon","tooltip.Refund":"Penger sendt tilbake til en kunde fra en refundert transaksjon","tooltip.totalIncoming":"Alle penger mottatt på kontoen din basert på de valgte filtrene","tooltip.totalOutgoing":"Alle gebyrer, refusjoner, utbetalinger og andre kostnader basert på de valgte filtrene","tooltip.Transfer":"Penger som er flyttet mellom din konto og en annen konto",totalIncoming:zL,totalOutgoing:UL,toValueShouldBeGreaterThanTheFromValue:YL,transactionDetails:GL,transactions:HL,transactionsOverviewTitle:ZL,transactionType:VL,transfer:JL,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:QL,tryRefreshingThePageOrComeBackLater:XL,txAmount:KL,"txType.ATM":"Minibank","txType.Capital":"Kapital","txType.Chargeback":"Chargeback","txType.Correction":"Rettelse","txType.Fee":"Gebyr","txType.Other":"Annet","txType.Payment":"Betaling","txType.Refund":"Refundering","txType.Transfer":"Overføring",type:qL,value:eC,weCouldNotLoadThePayoutsOverview:tC,weCouldNotLoadTheTransactionsOverview:nC,weCouldNotLoadYourBalanceAccounts:oC,weCouldNotLoadYourPayouts:sC,weCouldNotLoadYourTransactions:rC},iC="Conta",cC="Conta",lC="Adições",uC="Ajustes",dC="Valor",hC="Aplicar",gC="Conta de saldo",mC="ID da conta do saldo",pC="Reservado",fC="Capturado",yC="Categoria",IC="Chargebacks",_C="Fechar",TC="Entre em contato com o suporte para obter ajuda e compartilhe o código de erro %{requestId}",AC="Correções",SC="Moeda",NC="Data",LC="Intervalo de datas",CC="Descrição",EC="Descartar",MC="E-mail",vC="Entidade não encontrada",bC="Transação não encontrada para o titular da conta especificado",DC="Taxas",OC="Barra de filtro",$C="De",RC="Fundos capturados",xC="Subsídio emitido",wC="Reembolsos de subsídios",PC="Ocultar conteúdo",kC="ID",jC="Campo incompleto",FC="Celular",WC="Repasse do pagamento líquido",BC="Próximos repasses do pagamentos",zC="Sem dados",UC="Números negativos não são permitidos",YC="Nenhum repasse do pagamento encontrado",GC="Nenhuma transação encontrada",HC="Outros",ZC="Navegação por página",VC="ID do pagamento",JC="Método de pagamento",QC="Detalhes do repasse do pagamento",XC="Liquidação",KC="Pendente",qC="Entre em contato com o suporte para obter assistência.",eE="Entre em contato com o suporte",tE="ID de referência",nE="Atualizar",oE="Reembolsos",sE="Valor restante",rE="Reiniciar",aE="Revertido",iE="Ocorreu algum erro.",cE="Status",lE="Lista estruturada",uE="Subtrações",dE="Abas",hE="O código de erro é %{requestId}",gE="Não há resultados",mE="A solicitação não apresenta alguns campos obrigatórios, ou contém dados inválidos.",pE="Ocorreu um erro inesperado",fE="A conta selecionada está incorreta",yE="Fuso horário",IE="Até",_E="Total de entrada",TE="Total de saída",AE="O valor deve ser igual ou maior que o valor em Origem",SE="Detalhes da transação",NE="Transações",LE="Visão geral das transações",CE="Tipo de transação",EE="Transferências",ME="Tente uma pesquisa diferente ou redefina seus filtros para tentarmos novamente.",vE="Tente atualizar a página, ou volte mais tarde.",bE="Valor",DE="Tipo",OE="Valor",$E="Não foi possível carregar a visão geral dos repasses de pagamentos.",RE="Não foi possível carregar a visão geral das transações.",xE="Não foi possível carregar suas contas.",wE="Não foi possível carregar seus repasses de pagamentos.",PE="Não foi possível carregar suas transações.",kE={account:iC,accountBalance:cC,additions:lC,adjustments:uC,amount:dC,apply:hC,balanceAccount:gC,balanceAccountId:mC,Booked:pC,"button.clearAll":"Limpar tudo","calendar.controls":"Controles de navegação do calendário","calendar.nextMonth":"Próximo mês","calendar.previousMonth":"Mês anterior","calendar.timezone":"O fuso horário está definido em: GMT%{offset} (%{time})",capture:fC,category:yC,chargeback:IC,closeIconLabel:_C,contactSupportForHelpAndShareErrorCode:TC,correction:AC,currency:SC,date:NC,dateRange:LC,default:"Padrão",description:CC,dismiss:EC,email:MC,entityWasNotFound:vC,entityWasNotFoundDetail:bC,"expandableCard.collapse":"Recolher","expandableCard.expand":"Expandir",export:"Exportar",fee:DC,"filter.date.since":"Desde %{date}","filter.date.until":"Até %{date}",filterBar:OC,"filterPlaceholder.category":"Tipo","filterPlaceholder.currency":"Moeda","filterPlaceholder.status":"Status",from:$C,fundsCaptured:RC,grantIssued:xC,grantRepayment:wC,hideContent:PC,id:kC,incompleteField:jC,mobile:FC,netPayout:WC,nextPayouts:BC,noData:zC,noNegativeNumbersAllowed:UC,noPayoutsFound:YC,noTransactionsFound:GC,other:HC,paginatedNavigation:ZC,"pagination.nextPage":"Próxima página","pagination.previousPage":"Página anterior","pagination.showing":"Exibindo",paymentId:VC,paymentMethod:JC,payoutDetails:QC,payoutsTitle:XC,Pending:KC,pleaseReachOutToSupportForAssistance:qC,"rangePreset.custom":"Personalizado","rangePreset.last30Days":"Últimos 30 dias","rangePreset.last7Days":"Últimos 7 dias","rangePreset.lastMonth":"Último mês","rangePreset.lastWeek":"Semana passada","rangePreset.thisMonth":"Este mês","rangePreset.thisWeek":"Esta semana","rangePreset.yearToDate":"Ano até o momento",reachOutToSupport:eE,referenceID:tE,refresh:nE,refund:oE,remainingAmount:sE,reset:rE,Reversed:aE,"select.filter.placeholder":"Placeholder","select.noOptionsFound":"A busca não retornou nenhuma opção",somethingWentWrong:iE,status:cE,structuredList:lE,subtractions:uE,tabs:dE,theErrorCodeIs:hE,thereAreNoResults:gE,theRequestIsMissingRequiredFieldsOrContainsInvalidData:mE,thereWasAnUnexpectedError:pE,theSelectedBalanceAccountIsIncorrect:fE,timezone:yE,to:IE,"tooltip.ATM":"Dinheiro sacado em um caixa eletrônico","tooltip.Capital":"Dinheiro recebido de um empréstimo ou enviado para pagamento de um empréstimo","tooltip.Chargeback":"Dinheiro devolvido a um cliente após uma transação contestada","tooltip.Correction":"Ajustes em seus fundos, incluindo reversões de transações e correções de depósitos","tooltip.Fee":"Custos de transação e taxas de métodos de pagamentos","tooltip.Other":"Transações que não estão em outra categoria, geralmente um ajuste","tooltip.Payment":"Dinheiro recebido em sua conta de uma transação de vendas","tooltip.Refund":"Dinheiro devolvido a um cliente após o reembolso de uma transação","tooltip.totalIncoming":"Todo o dinheiro recebido em sua conta com base nos filtros selecionados","tooltip.totalOutgoing":"Todas as taxas, os reembolsos, os repasses de pagamentos e outras cobranças com base nos filtros selecionados","tooltip.Transfer":"Dinheiro transferido de sua conta para outra",totalIncoming:_E,totalOutgoing:TE,toValueShouldBeGreaterThanTheFromValue:AE,transactionDetails:SE,transactions:NE,transactionsOverviewTitle:LE,transactionType:CE,transfer:EE,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:ME,tryRefreshingThePageOrComeBackLater:vE,txAmount:bE,"txType.ATM":"Caixa eletrônico","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correção","txType.Fee":"Taxa","txType.Other":"Outros","txType.Payment":"Pagamento","txType.Refund":"Reembolso","txType.Transfer":"Transferir",type:DE,value:OE,weCouldNotLoadThePayoutsOverview:$E,weCouldNotLoadTheTransactionsOverview:RE,weCouldNotLoadYourBalanceAccounts:xE,weCouldNotLoadYourPayouts:wE,weCouldNotLoadYourTransactions:PE},jE="Konto",FE="Kontosaldo",WE="Tillägg",BE="Justeringar",zE="Belopp",UE="Tillämpa",YE="Saldokonto",GE="ID för saldokonto",HE="Bokad",ZE="Insamlad",VE="Kategori",JE="Chargebacks",QE="Stäng",XE="Kontakta supporten för hjälp och ange felkoden %{requestId}",KE="Rättelser",qE="Valuta",eM="Datum",tM="Datumintervall",nM="Beskrivning",oM="Avvisa",sM="E-post",rM="Enheten hittades inte",aM="Transaktionen hittades inte för den angivna kontoinnehavaren",iM="Avgifter",cM="Filterfält",lM="Från",uM="Insamlade medel",dM="Beviljat bidrag",hM="Återbetalning av bidrag",gM="Dölj innehåll",mM="ID",pM="Ofullständigt fält",fM="Mobil",yM="Nettoutbetalning",IM="Nästa utbetalning",_M="Inga uppgifter",TM="Inga negativa tal tillåtna",AM="Inga utbetalningar hittades",SM="Inga transaktioner hittades",NM="Annat",LM="Paginerad navigering",CM="Betalnings-id",EM="Betalningsmetod",MM="Information om utbetalning",vM="Utbetalningar",bM="Väntande",DM="Kontakta supporten för att få hjälp.",OM="Kontakta supporten",$M="Referens-id",RM="Uppdatera",xM="Återbetalningar",wM="Återstående belopp",PM="Återställ",kM="Upphävt",jM="Något gick fel.",FM="Status",WM="Strukturerad lista",BM="Subtraktioner",zM="Flikar",UM="Felkoden är %{requestId}",YM="Det finns inga resultat",GM="Begäran saknar obligatoriska fält eller innehåller ogiltiga data.",HM="Det uppstod ett oväntat fel",ZM="Det valda saldokontot är felaktigt",VM="Tidszon",JM="Till",QM="Totalt inkommande",XM="Totalt utgående",KM="Till-värdet ska vara lika med eller större än Från-värdet",qM="Transaktionsdetaljer",ev="Transaktioner",tv="Transaktionsöversikt",nv="Transaktionstyp",ov="Överföringar",sv="Försök med en annan sökning eller återställ dina filter, så försöker vi igen.",rv="Försök att uppdatera sidan eller kom tillbaka senare.",av="Belopp",iv="Typ",cv="Värde",lv="Vi kunde inte ladda utbetalningsöversikten.",uv="Vi kunde inte ladda transaktionsöversikten.",dv="Vi kunde inte ladda dina saldokonton.",hv="Vi kunde inte ladda dina utbetalningar.",gv="Vi kunde inte ladda dina transaktioner.",mv={account:jE,accountBalance:FE,additions:WE,adjustments:BE,amount:zE,apply:UE,balanceAccount:YE,balanceAccountId:GE,Booked:HE,"button.clearAll":"Rensa alla","calendar.controls":"Kontroller för kalendernavigering","calendar.nextMonth":"Nästa månad","calendar.previousMonth":"Föregående månad","calendar.timezone":"Tidszonen är inställd på: GMT%{offset} (%{time})",capture:ZE,category:VE,chargeback:JE,closeIconLabel:QE,contactSupportForHelpAndShareErrorCode:XE,correction:KE,currency:qE,date:eM,dateRange:tM,default:"Standard",description:nM,dismiss:oM,email:sM,entityWasNotFound:rM,entityWasNotFoundDetail:aM,"expandableCard.collapse":"Minimera","expandableCard.expand":"Expandera",export:"Exportera",fee:iM,"filter.date.since":"Sedan %{date}","filter.date.until":"Till %{date}",filterBar:cM,"filterPlaceholder.category":"Typ","filterPlaceholder.currency":"Valuta","filterPlaceholder.status":"Status",from:lM,fundsCaptured:uM,grantIssued:dM,grantRepayment:hM,hideContent:gM,id:mM,incompleteField:pM,mobile:fM,netPayout:yM,nextPayouts:IM,noData:_M,noNegativeNumbersAllowed:TM,noPayoutsFound:AM,noTransactionsFound:SM,other:NM,paginatedNavigation:LM,"pagination.nextPage":"Nästa sida","pagination.previousPage":"Föregående sida","pagination.showing":"Visar",paymentId:CM,paymentMethod:EM,payoutDetails:MM,payoutsTitle:vM,Pending:bM,pleaseReachOutToSupportForAssistance:DM,"rangePreset.custom":"Anpassat","rangePreset.last30Days":"Senaste 30 dagarna","rangePreset.last7Days":"Senaste 7 dagarna","rangePreset.lastMonth":"Förra månaden","rangePreset.lastWeek":"Förra veckan","rangePreset.thisMonth":"Den här månaden","rangePreset.thisWeek":"Denna vecka","rangePreset.yearToDate":"Hittills i år",reachOutToSupport:OM,referenceID:$M,refresh:RM,refund:xM,remainingAmount:wM,reset:PM,Reversed:kM,"select.filter.placeholder":"Platshållare","select.noOptionsFound":"Inga alternativ matchar denna sökning",somethingWentWrong:jM,status:FM,structuredList:WM,subtractions:BM,tabs:zM,theErrorCodeIs:UM,thereAreNoResults:YM,theRequestIsMissingRequiredFieldsOrContainsInvalidData:GM,thereWasAnUnexpectedError:HM,theSelectedBalanceAccountIsIncorrect:ZM,timezone:VM,to:JM,"tooltip.ATM":"Pengar tas ut i en bankomat","tooltip.Capital":"Pengar från ett inkommande lånebidrag eller en utgående låneåterbetalning","tooltip.Chargeback":"Pengar returnerades till en kund efter en omtvistad transaktion","tooltip.Correction":"Justeringar av dina medel, inklusive återföringar av transaktioner och korrigeringar av insättningar","tooltip.Fee":"Transaktionskostnader och avgifter för betalningssätt","tooltip.Other":"Transaktioner som inte tillhör en annan kategori, vanligtvis en justering","tooltip.Payment":"Pengar som kommit in på ditt konto från en försäljningstransaktion","tooltip.Refund":"Pengar som skickats tillbaka till en kund från en återbetald transaktion","tooltip.totalIncoming":"Alla pengar som tagits emot på ditt konto baserat på de valda filtren","tooltip.totalOutgoing":"Alla avgifter, återbetalningar, utbetalningar och andra avgifter baserade på de valda filtren","tooltip.Transfer":"Pengar som flyttats mellan ditt konto och ett annat konto",totalIncoming:QM,totalOutgoing:XM,toValueShouldBeGreaterThanTheFromValue:KM,transactionDetails:qM,transactions:ev,transactionsOverviewTitle:tv,transactionType:nv,transfer:ov,tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain:sv,tryRefreshingThePageOrComeBackLater:rv,txAmount:av,"txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Korrektion","txType.Fee":"Avgift","txType.Other":"Annat","txType.Payment":"Betalning","txType.Refund":"Återbetalning","txType.Transfer":"Överföring",type:iv,value:cv,weCouldNotLoadThePayoutsOverview:lv,weCouldNotLoadTheTransactionsOverview:uv,weCouldNotLoadYourBalanceAccounts:dv,weCouldNotLoadYourPayouts:hv,weCouldNotLoadYourTransactions:gv},Zc={da_DK:wp},Vc={de_DE:gy},$a={en_US:Uc},Jc={es_ES:YI},Qc={fr_FR:AT},Xc={it_IT:KA},Kc={nl_NL:bN},qc={no_NO:aC},el={pt_BR:kE},tl={sv_SE:mv},pv={...Zc,...Vc,...Jc,...Qc,...Xc,...Kc,...qc,...el,...tl},fv={values:z,count:0},yv={"en-US":$a.en_US},Ps=e=>e.substring(0,2).toLowerCase();function Iv(e,t){if(!e)return null;const n=Ps(e);return t.find(o=>Ps(o)===n)||null}function Ra(e){const t=e.replace("_","-");if(Zg.test(t))return t;const[n,o]=t.split("-");if(!n||!o)return null;const s=`${n.toLowerCase()}-${o.toUpperCase()}`;return s.length===5?s:null}function xa(e,t){const n=e.trim();if(!n||n.length<1||n.length>5)return Wt;const o=Ra(n);return o&&t.indexOf(o)>-1?o:Iv(o??n,[...t])}function _v(e=z,t){return e===z?e:Object.keys(e).reduce((n,o)=>{const s=Ra(o)||xa(o,t);return s&&e[o]&&(n[s]=e[o]),n},{})}const kr=(e,t)=>e.replace(/%{(\w+)}/g,(n,o)=>(t==null?void 0:t[o])||""),Si=(e,t,n=fv)=>{const o=n.count??0,s=`${t}__${o}`;if(ct(e,s)&&e[s])return kr(e[s],n.values);const r=`${t}__plural`;return ct(e,r)&&o>1&&e[r]?kr(e[r],n.values):ct(e,t)&&e[t]?kr(e[t],n.values):null},Tv=async(e,t,n=z)=>{const o=t??yv,s=xa(e,Object.keys(o))||Wt,r=o[s]||o[Wt];return{...Yc,...r,...bo(n==null?void 0:n[e])}};function Av(){let e=this.locale,t=e,n=[...this.supportedLocales];return G({load:{value:o=>Tv(e,this.preferredTranslations,o)},locale:{get:()=>e,set:o=>{t=o,e=Ra(o)||xa(o,n)||Wt}},supportedLocales:{get:()=>n,set(o){n=o,this.locale=t}}})}function Sv(){var t;const e={};for(const[n,o]of Object.entries(Object.getOwnPropertyDescriptors(Ar.prototype)))Jg.includes(n)||(ee(o.get)?e[n]={get:o.get.bind(this),...n==="timezone"&&{set:(t=o.set)==null?void 0:t.bind(this)}}:ee(o.value)?e[n]={value:o.value.bind(this)}:e[n]={get:()=>this[n]});return e}var ht,wo,Po,xn,wn,_t,ko,Qt,Xt,Pn,kn,jo,qr;class Ar{constructor(t=Wt,n){S(this,jo);S(this,ht,Wt);S(this,wo,Ps(h(this,ht)));S(this,Po,As);S(this,xn,void 0);S(this,wn,Yc);S(this,_t,Av.call(this));S(this,ko,fr);S(this,Qt,void 0);S(this,Xt,void 0);S(this,Pn,ms({timestamp:()=>performance.now()}));S(this,kn,ps());x(this,"watch",h(this,Pn).subscribe.bind(void 0));x(this,"i18n",G(Sv.call(this)));x(this,"preferredTranslations");this.watch(ne),this.preferredTranslations=n&&n.reduce((o,s)=>({...o,...s}),{[Wt]:$a.en_US}),this.locale=t}get customTranslations(){return h(this,xn)??{}}set customTranslations(t){let n,o=[...As];if(!ue(t)){n=_v(t,As);const s=Object.keys(n);o=[...As,...s].filter((r,a,i)=>i.indexOf(r)===a)}h(this,_t).supportedLocales=o,O(this,jo,qr).call(this,n)}get languageCode(){return h(this,wo)}get lastRefreshTimestamp(){return h(this,Pn).snapshot.timestamp}get locale(){return h(this,ht)}set locale(t){if(ue(t))this.locale=Wt;else{if(h(this,_t).locale=t,h(this,ht)===h(this,_t).locale)return;O(this,jo,qr).call(this,h(this,xn))}}get ready(){return h(this,ko)}get supportedLocales(){return h(this,Po)}get timezone(){return h(this,kn).tz.current}set timezone(t){h(this,kn).tz=t}get(t,n){const o=Si(h(this,wn),t,n);return ws(o)?t:o}has(t,n){return!!Si(h(this,wn),t,n)}amount(t,n,o){const{hideCurrency:s,...r}=o||{},a=ph(t,h(this,ht),n,s,{...r,currencyDisplay:"symbol",signDisplay:"never"});return t<0?`- ${a}`:a}date(t,n={}){const o={...Oa,timeZone:h(this,kn).tz.current,...n};return new Date(t).toLocaleDateString(h(this,ht),o)}fullDate(t){return this.date(t,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}ht=new WeakMap,wo=new WeakMap,Po=new WeakMap,xn=new WeakMap,wn=new WeakMap,_t=new WeakMap,ko=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,Pn=new WeakMap,kn=new WeakMap,jo=new WeakSet,qr=function(t){H(h(this,Xt))&&_(this,ko,new Promise(s=>{_(this,Xt,()=>{s(h(this,Qt)),_(this,Qt,_(this,Xt,void 0))})}));const n=()=>{var s;h(this,Qt)===o&&((s=h(this,Xt))==null||s.call(this))},o=_(this,Qt,(async()=>{_(this,wn,await h(this,_t).load(t)),_(this,ht,h(this,_t).locale),_(this,Po,h(this,_t).supportedLocales),_(this,xn,t),_(this,wo,Ps(h(this,ht))),h(this,Pn).requestNotification()})());o.then(n).catch(s=>{n(),console.error(s)})};class nl{constructor(t){x(this,"components",[]);x(this,"options");x(this,"localization");x(this,"loadingContext");x(this,"session",new ch);x(this,"onError");x(this,"update",async(t=z)=>(this.setOptions(t),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));x(this,"remove",t=>(this.components=this.components.filter(n=>n._id!==t._id),t.unmount(),this));x(this,"registerComponent",t=>{t.props.core===this&&this.components.push(t)});x(this,"setOptions",t=>{var n,o;return this.options={...this.options,...t},this.localization.locale=(n=this.options)==null?void 0:n.locale,this.localization.customTranslations=(o=this.options)==null?void 0:o.translations,this.session.loadingContext=this.loadingContext,this.session.onSessionCreate=this.options.onSessionCreate,this});this.options={environment:Jr,...t},this.localization=new Ar(t.locale,t.availableTranslations),this.loadingContext=fd(this.options.environment),this.setOptions(t)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(t){return{...t}}}x(nl,"version","1.0.3");const ol=nl;var fs,J,sl,rl,Vt,Ni,al,ea,wa,ta,na,il,Do={},cl=[],Nv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Sr=Array.isArray;function Mt(e,t){for(var n in t)e[n]=t[n];return e}function ll(e){var t=e.parentNode;t&&t.removeChild(e)}function ro(e,t,n){var o,s,r,a={};for(r in t)r=="key"?o=t[r]:r=="ref"?s=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?fs.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)a[r]===void 0&&(a[r]=e.defaultProps[r]);return Lo(e,a,o,s,null)}function Lo(e,t,n,o,s){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++sl,__i:-1,__u:0};return s==null&&J.vnode!=null&&J.vnode(r),r}function V(e){return e.children}function bt(e,t){this.props=e,this.context=t}function dn(e,t){if(t==null)return e.__?dn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?dn(e):null}function ul(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ul(e)}}function oa(e){(!e.__d&&(e.__d=!0)&&Vt.push(e)&&!ks.__r++||Ni!==J.debounceRendering)&&((Ni=J.debounceRendering)||al)(ks)}function ks(){var e,t,n,o,s,r,a,i;for(Vt.sort(ea);e=Vt.shift();)e.__d&&(t=Vt.length,o=void 0,r=(s=(n=e).__v).__e,a=[],i=[],n.__P&&((o=Mt({},s)).__v=s.__v+1,J.vnode&&J.vnode(o),Pa(n.__P,o,s,n.__n,n.__P.ownerSVGElement!==void 0,32&s.__u?[r]:null,a,r??dn(s),!!(32&s.__u),i),o.__v=s.__v,o.__.__k[o.__i]=o,gl(a,o,i),o.__e!=r&&ul(o)),Vt.length>t&&Vt.sort(ea));ks.__r=0}function dl(e,t,n,o,s,r,a,i,c,d,g){var u,p,m,y,f,A=o&&o.__k||cl,I=t.length;for(n.__d=c,Lv(n,t,A),c=n.__d,u=0;u<I;u++)(m=n.__k[u])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?Do:A[m.__i]||Do,m.__i=u,Pa(e,m,p,s,r,a,i,c,d,g),y=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&ka(p.ref,null,m),g.push(m.ref,m.__c||y,m)),f==null&&y!=null&&(f=y),65536&m.__u||p.__k===m.__k?(c&&!c.isConnected&&(c=dn(p)),c=hl(m,c,e)):typeof m.type=="function"&&m.__d!==void 0?c=m.__d:y&&(c=y.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=f}function Lv(e,t,n){var o,s,r,a,i,c=t.length,d=n.length,g=d,u=0;for(e.__k=[],o=0;o<c;o++)a=o+u,(s=e.__k[o]=(s=t[o])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Lo(null,s,null,null,null):Sr(s)?Lo(V,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Lo(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,i=Cv(s,n,a,g),s.__i=i,r=null,i!==-1&&(g--,(r=n[i])&&(r.__u|=131072)),r==null||r.__v===null?(i==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):i!==a&&(i===a+1?u++:i>a?g>c-a?u+=i-a:u--:i<a?i==a-1&&(u=i-a):u=0,i!==o+u&&(s.__u|=65536))):(r=n[a])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=dn(r)),sa(r,r,!1),n[a]=null,g--);if(g)for(o=0;o<d;o++)(r=n[o])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=dn(r)),sa(r,r))}function hl(e,t,n){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=hl(o[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function zt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Sr(e)?e.some(function(n){zt(n,t)}):t.push(e)),t}function Cv(e,t,n,o){var s=e.key,r=e.type,a=n-1,i=n+1,c=t[n];if(c===null||c&&s==c.key&&r===c.type&&!(131072&c.__u))return n;if(o>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||i<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&r===c.type)return a;a--}if(i<t.length){if((c=t[i])&&!(131072&c.__u)&&s==c.key&&r===c.type)return i;i++}}return-1}function Li(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Nv.test(t)?n:n+"px"}function Ns(e,t,n,o,s){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Li(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||Li(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=wa,e.addEventListener(t,r?na:ta,r)):e.removeEventListener(t,r?na:ta,r);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Ci(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=wa++;else if(t.t<n.u)return;return n(J.event?J.event(t):t)}}}function Pa(e,t,n,o,s,r,a,i,c,d){var g,u,p,m,y,f,A,I,M,C,v,P,E,b,D,j=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),r=[i=t.__e=n.__e]),(g=J.__b)&&g(t);e:if(typeof j=="function")try{if(I=t.props,M=(g=j.contextType)&&o[g.__c],C=g?M?M.props.value:g.__:o,n.__c?A=(u=t.__c=n.__c).__=u.__E:("prototype"in j&&j.prototype.render?t.__c=u=new j(I,C):(t.__c=u=new bt(I,C),u.constructor=j,u.render=Mv),M&&M.sub(u),u.props=I,u.state||(u.state={}),u.context=C,u.__n=o,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),j.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Mt({},u.__s)),Mt(u.__s,j.getDerivedStateFromProps(I,u.__s))),m=u.props,y=u.state,u.__v=t,p)j.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(j.getDerivedStateFromProps==null&&I!==m&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(I,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(I,u.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=I,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(R){R&&(R.__=t)}),v=0;v<u._sb.length;v++)u.__h.push(u._sb[v]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(I,u.__s,C),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(m,y,f)})}if(u.context=C,u.props=I,u.__P=e,u.__e=!1,P=J.__r,E=0,"prototype"in j&&j.prototype.render){for(u.state=u.__s,u.__d=!1,P&&P(t),g=u.render(u.props,u.state,u.context),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[]}else do u.__d=!1,P&&P(t),g=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(o=Mt(Mt({},o),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(f=u.getSnapshotBeforeUpdate(m,y)),dl(e,Sr(D=g!=null&&g.type===V&&g.key==null?g.props.children:g)?D:[D],t,n,o,s,r,a,i,c,d),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),A&&(u.__E=u.__=null)}catch(R){t.__v=null,c||r!=null?(t.__e=i,t.__u|=c?160:32,r[r.indexOf(i)]=null):(t.__e=n.__e,t.__k=n.__k),J.__e(R,t,n)}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ev(n.__e,t,n,o,s,r,a,c,d);(g=J.diffed)&&g(t)}function gl(e,t,n){t.__d=void 0;for(var o=0;o<n.length;o++)ka(n[o],n[++o],n[++o]);J.__c&&J.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(r){r.call(s)})}catch(r){J.__e(r,s.__v)}})}function Ev(e,t,n,o,s,r,a,i,c){var d,g,u,p,m,y,f,A=n.props,I=t.props,M=t.type;if(M==="svg"&&(s=!0),r!=null){for(d=0;d<r.length;d++)if((m=r[d])&&"setAttribute"in m==!!M&&(M?m.localName===M:m.nodeType===3)){e=m,r[d]=null;break}}if(e==null){if(M===null)return document.createTextNode(I);e=s?document.createElementNS("http://www.w3.org/2000/svg",M):document.createElement(M,I.is&&I),r=null,i=!1}if(M===null)A===I||i&&e.data===I||(e.data=I);else{if(r=r&&fs.call(e.childNodes),A=n.props||Do,!i&&r!=null)for(A={},d=0;d<e.attributes.length;d++)A[(m=e.attributes[d]).name]=m.value;for(d in A)m=A[d],d=="children"||(d=="dangerouslySetInnerHTML"?u=m:d==="key"||d in I||Ns(e,d,null,m,s));for(d in I)m=I[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?g=m:d=="value"?y=m:d=="checked"?f=m:d==="key"||i&&typeof m!="function"||A[d]===m||Ns(e,d,m,A[d],s);if(g)i||u&&(g.__html===u.__html||g.__html===e.innerHTML)||(e.innerHTML=g.__html),t.__k=[];else if(u&&(e.innerHTML=""),dl(e,Sr(p)?p:[p],t,n,o,s&&M!=="foreignObject",r,a,r?r[0]:n.__k&&dn(n,0),i,c),r!=null)for(d=r.length;d--;)r[d]!=null&&ll(r[d]);i||(d="value",y!==void 0&&(y!==e[d]||M==="progress"&&!y||M==="option"&&y!==A[d])&&Ns(e,d,y,A[d],!1),d="checked",f!==void 0&&f!==e[d]&&Ns(e,d,f,A[d],!1))}return e}function ka(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(o){J.__e(o,n)}}function sa(e,t,n){var o,s;if(J.unmount&&J.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||ka(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){J.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&sa(o[s],t,n||typeof e.type!="function");n||e.__e==null||ll(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Mv(e,t,n){return this.constructor(e,n)}function Cn(e,t,n){var o,s,r,a;J.__&&J.__(e,t),s=(o=typeof n=="function")?null:n&&n.__k||t.__k,r=[],a=[],Pa(t,e=(!o&&n||t).__k=ro(V,null,[e]),s||Do,Do,t.ownerSVGElement!==void 0,!o&&n?[n]:s?null:t.firstChild?fs.call(t.childNodes):null,r,!o&&n?n:s?s.__e:t.firstChild,o,a),gl(r,e,a)}function ml(e,t,n){var o,s,r,a,i=Mt({},e.props);for(r in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)r=="key"?o=t[r]:r=="ref"?s=t[r]:i[r]=t[r]===void 0&&a!==void 0?a[r]:t[r];return arguments.length>2&&(i.children=arguments.length>3?fs.call(arguments,2):n),Lo(e.type,i,o||e.key,s||e.ref,null)}function ja(e,t){var n={__c:t="__cC"+il++,__:e,Consumer:function(o,s){return o.children(s)},Provider:function(o){var s,r;return this.getChildContext||(s=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&s.some(function(i){i.__e=!0,oa(i)})},this.sub=function(a){s.push(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){s.splice(s.indexOf(a),1),i&&i.call(a)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}fs=cl.slice,J={__e:function(e,t,n,o){for(var s,r,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(e)),a=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),a=s.__d),a)return s.__E=s}catch(i){e=i}throw e}},sl=0,rl=function(e){return e!=null&&e.constructor==null},bt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Mt({},this.state),typeof e=="function"&&(e=e(Mt({},n),this.props)),e&&Mt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),oa(this))},bt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oa(this))},bt.prototype.render=V,Vt=[],al=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ea=function(e,t){return e.__v.__b-t.__v.__b},ks.__r=0,wa=0,ta=Ci(!1),na=Ci(!0),il=0;var hn,le,jr,Ei,ao=0,pl=[],Cs=[],pe=J,Mi=pe.__b,vi=pe.__r,bi=pe.diffed,Di=pe.__c,Oi=pe.unmount,$i=pe.__;function ys(e,t){pe.__h&&pe.__h(le,e,ao||t),ao=0;var n=le.__H||(le.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Cs}),n.__[e]}function U(e){return ao=1,Nr(yl,e)}function Nr(e,t,n){var o=ys(hn++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):yl(void 0,t),function(i){var c=o.__N?o.__N[0]:o.__[0],d=o.t(c,i);c!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=le,!le.u)){var s=function(i,c,d){if(!o.__c.__H)return!0;var g=o.__c.__H.__.filter(function(p){return!!p.__c});if(g.every(function(p){return!p.__N}))return!r||r.call(this,i,c,d);var u=!1;return g.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(u=!0)}}),!(!u&&o.__c.props===i)&&(!r||r.call(this,i,c,d))};le.u=!0;var r=le.shouldComponentUpdate,a=le.componentWillUpdate;le.componentWillUpdate=function(i,c,d){if(this.__e){var g=r;r=void 0,s(i,c,d),r=g}a&&a.call(this,i,c,d)},le.shouldComponentUpdate=s}return o.__N||o.__}function W(e,t){var n=ys(hn++,3);!pe.__s&&Wa(n.__H,t)&&(n.__=e,n.i=t,le.__H.__h.push(n))}function fl(e,t){var n=ys(hn++,4);!pe.__s&&Wa(n.__H,t)&&(n.__=e,n.i=t,le.__h.push(n))}function k(e){return ao=5,T(function(){return{current:e}},[])}function vv(e,t,n){ao=6,fl(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function T(e,t){var n=ys(hn++,7);return Wa(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function L(e,t){return ao=8,T(function(){return e},t)}function Fa(e){var t=le.context[e.__c],n=ys(hn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(le)),t.props.value):e.__}function bv(){for(var e;e=pl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Es),e.__H.__h.forEach(ra),e.__H.__h=[]}catch(t){e.__H.__h=[],pe.__e(t,e.__v)}}pe.__b=function(e){le=null,Mi&&Mi(e)},pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$i&&$i(e,t)},pe.__r=function(e){vi&&vi(e),hn=0;var t=(le=e.__c).__H;t&&(jr===le?(t.__h=[],le.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Cs,n.__N=n.i=void 0})):(t.__h.forEach(Es),t.__h.forEach(ra),t.__h=[],hn=0)),jr=le},pe.diffed=function(e){bi&&bi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pl.push(t)!==1&&Ei===pe.requestAnimationFrame||((Ei=pe.requestAnimationFrame)||Dv)(bv)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Cs&&(n.__=n.__V),n.i=void 0,n.__V=Cs})),jr=le=null},pe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Es),n.__h=n.__h.filter(function(o){return!o.__||ra(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],pe.__e(o,n.__v)}}),Di&&Di(e,t)},pe.unmount=function(e){Oi&&Oi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Es(o)}catch(s){t=s}}),n.__H=void 0,t&&pe.__e(t,n.__v))};var Ri=typeof requestAnimationFrame=="function";function Dv(e){var t,n=function(){clearTimeout(o),Ri&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);Ri&&(t=requestAnimationFrame(n))}function Es(e){var t=le,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),le=t}function ra(e){var t=le;e.__c=e.__(),le=t}function Wa(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function yl(e,t){return typeof t=="function"?t(e):t}var Ov=0;function l(e,t,n,o,s,r){var a,i,c={};for(i in t)i=="ref"?a=t[i]:c[i]=t[i];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ov,__i:-1,__u:0,__source:s,__self:r};if(typeof e=="function"&&(a=e.defaultProps))for(i in a)c[i]===void 0&&(c[i]=a[i]);return J.vnode&&J.vnode(d),d}const Il=ja({endpoints:z,hasError:!1,http:yd,isExpired:void 0,refresh:ne,refreshing:!1}),$v=({children:e,session:t})=>{const[,n]=U(0),[o,s]=U(0);return W(()=>t.subscribe(r=>{(ho(r)?s:n)(i=>i+1)}),[o,t]),l(Il.Provider,{value:t.context,children:zt(e)})},Ut=()=>Fa(Il);function Lr({fetchOptions:e={keepPrevData:!0},queryFn:t,params:n}){k(new Map);const o=k(!1),s={error:void 0,data:void 0,isFetching:Bt(e.enabled)},r=(d,g)=>{switch(g.type){case"loading":return{...s,isFetching:!0,data:e.keepPrevData?d.data:void 0};case"fetched":return{...s,data:g.payload,isFetching:!1};case"error":return{...s,error:g.payload,isFetching:!1};default:return d}},[a,i]=Nr(r,s),c=L(async()=>{i({type:"loading"});try{if(o.current)return;const d=await t();i({type:"fetched",payload:d})}catch(d){if(o.current)return;i({type:"error",payload:d})}},[i,t]);return W(()=>(o.current=!1,Bt(e.enabled)&&c(),()=>{o.current=!0}),[e.enabled,c]),a}const Rv=(e,t)=>{const{getBalanceAccounts:n}=Ut().endpoints,{data:o,isFetching:s,error:r}=Lr(T(()=>({fetchOptions:{enabled:!!n&&(t??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n(z)}),[n])),a=T(()=>o==null?void 0:o.data.filter(c=>e?c.id===e:!0),[o==null?void 0:o.data,e]),i=T(()=>!!e&&!!(o!=null&&o.data.length)&&(a==null?void 0:a.length)===0,[a==null?void 0:a.length,o==null?void 0:o.data.length,e]);return{balanceAccounts:a,isBalanceAccountIdWrong:i,isFetching:s,error:r}},Ba=Rv,xv="adyen-pe-data-overview-container--with-error",je="adyen-pe-typography";var w=(e=>(e.CAPTION="caption",e.BODY="body",e.SUBTITLE="subtitle",e.TITLE="title",e))(w||{}),It=(e=>(e.WIDE="wide",e.STRONGER="stronger",e.STRONGER_WIDE="stronger-wide",e.STRONGEST="strongest",e.STRONGEST_WIDE="strongest-wide",e.MEDIUM="m",e.LARGE="l",e.MOBILE="mobile",e))(It||{}),io=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.DIV="div",e.PARAGRAPH="p",e.SPAN="span",e))(io||{});function _l(e,t){for(var n in t)e[n]=t[n];return e}function aa(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function xi(e,t){this.props=e,this.context=t}function Ne(e,t){function n(s){var r=this.props.ref,a=r==s.ref;return!a&&r&&(r.call?r(null):r.current=null),t?!t(this.props,s)||!a:aa(this.props,s)}function o(s){return this.shouldComponentUpdate=n,ro(e,s)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(xi.prototype=new bt).isPureReactComponent=!0,xi.prototype.shouldComponentUpdate=function(e,t){return aa(this.props,e)||aa(this.state,t)};var wi=J.__b;J.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wi&&wi(e)};var wv=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function go(e){function t(n){var o=_l({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=wv,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Pv=J.__e;J.__e=function(e,t,n,o){if(e.then){for(var s,r=t;r=r.__;)if((s=r.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Pv(e,t,n,o)};var Pi=J.unmount;function Tl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=_l({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Tl(o,t,n)})),e}function Al(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Al(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Fr(){this.__u=0,this.t=null,this.__b=null}function Sl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ls(){this.u=null,this.o=null}J.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pi&&Pi(e)},(Fr.prototype=new bt).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var s=Sl(o.__v),r=!1,a=function(){r||(r=!0,n.__R=null,s?s(i):i())};n.__R=a;var i=function(){if(!--o.__u){if(o.state.__a){var c=o.state.__a;o.__v.__k[0]=Al(c,c.__c.__P,c.__c.__O)}var d;for(o.setState({__a:o.__b=null});d=o.t.pop();)d.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(a,a)},Fr.prototype.componentWillUnmount=function(){this.t=[]},Fr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Tl(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&ro(V,null,e.fallback);return s&&(s.__u&=-33),[ro(V,null,t.__a?null:e.children),s]};var ki=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function kv(e){return this.getChildContext=function(){return e.context},e.children}function jv(e){var t=this,n=e.i;t.componentWillUnmount=function(){Cn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(o){this.childNodes.push(o),t.i.appendChild(o)},insertBefore:function(o,s){this.childNodes.push(o),t.i.appendChild(o)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.i.removeChild(o)}}),Cn(ro(kv,{context:t.context},e.__v),t.l)}function Nl(e,t){var n=ro(jv,{__v:e,i:t});return n.containerInfo=t,n}(Ls.prototype=new bt).__a=function(e){var t=this,n=Sl(t.__v),o=t.o.get(e);return o[0]++,function(s){var r=function(){t.props.revealOrder?(o.push(s),ki(t,e,o)):s()};n?n(r):r()}},Ls.prototype.render=function(e){this.u=null,this.o=new Map;var t=zt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ls.prototype.componentDidUpdate=Ls.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ki(e,n,t)})};var Fv=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Wv=/^(?: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]/,Bv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zv=/[A-Z0-9]/g,Uv=typeof document<"u",Yv=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};bt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(bt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ji=J.event;function Gv(){}function Hv(){return this.cancelBubble}function Zv(){return this.defaultPrevented}J.event=function(e){return ji&&(e=ji(e)),e.persist=Gv,e.isPropagationStopped=Hv,e.isDefaultPrevented=Zv,e.nativeEvent=e};var Vv={enumerable:!1,configurable:!0,get:function(){return this.class}},Fi=J.vnode;J.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,s={};for(var r in n){var a=n[r];if(!(r==="value"&&"defaultValue"in n&&a==null||Uv&&r==="children"&&o==="noscript"||r==="class"||r==="className")){var i=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&a===!0?a="":i==="translate"&&a==="no"?a=!1:i==="ondoubleclick"?r="ondblclick":i!=="onchange"||o!=="input"&&o!=="textarea"||Yv(n.type)?i==="onfocus"?r="onfocusin":i==="onblur"?r="onfocusout":Bv.test(r)?r=i:o.indexOf("-")===-1&&Wv.test(r)?r=r.replace(zv,"-$&").toLowerCase():a===null&&(a=void 0):i=r="oninput",i==="oninput"&&s[r=i]&&(r="oninputCapture"),s[r]=a}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=zt(n.children).forEach(function(c){c.props.selected=s.value.indexOf(c.props.value)!=-1})),o=="select"&&s.defaultValue!=null&&(s.value=zt(n.children).forEach(function(c){c.props.selected=s.multiple?s.defaultValue.indexOf(c.props.value)!=-1:s.defaultValue==c.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",Vv)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Fv,Fi&&Fi(e)};var Wi=J.__r;J.__r=function(e){Wi&&Wi(e),e.__c};var Bi=J.diffed;J.diffed=function(e){Bi&&Bi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function Jv({el:e,className:t,stronger:n,strongest:o,variant:s,medium:r,large:a,wide:i,children:c}){const d=e||"p",g=T(()=>({[`${je}--${w.CAPTION}`]:s===w.CAPTION,[`${je}--${w.CAPTION}-${It.WIDE}`]:s===w.CAPTION&&i,[`${je}--${w.CAPTION}-${It.STRONGER}`]:s===w.CAPTION&&n,[`${je}--${w.BODY}`]:s===w.BODY,[`${je}--${w.BODY}-${It.WIDE}`]:s===w.BODY&&i,[`${je}--${w.BODY}-${It.STRONGER}`]:s===w.BODY&&n,[`${je}--${w.BODY}-${It.STRONGEST}`]:s===w.BODY&&o,[`${je}--${w.SUBTITLE}`]:s===w.SUBTITLE,[`${je}--${w.SUBTITLE}-${It.STRONGER}`]:s===w.SUBTITLE&&n,[`${je}--${w.TITLE}`]:s===w.TITLE&&!r&&!a,[`${je}--${w.TITLE}-${It.MEDIUM}`]:s===w.TITLE&&r,[`${je}--${w.TITLE}-${It.LARGE}`]:s===w.TITLE&&a}),[s,i,n,r,a,o]);return l(d,{className:F([`${je}`,g,t]),children:c})}const q=Ne(Jv),Ll=ja({i18n:new Ar().i18n,loadingContext:"",commonProps:{},updateCore:ne}),Qv=()=>Fa(Ll),Q=Qv;const Xv="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjMiIGhlaWdodD0iMTY5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjIzIDE2OSI+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzYuNiAxMTIuMmMuNi0uMSAxLS43IDEtMS4zbC0uOS04Lj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+",Ye=e=>go(e),js=(()=>{const e=new Set,t=(o,s,r,a)=>{let i=a==null?void 0:a[r];return i=ee(i)?i:gr,!fn(i(o[r]),i(s[r]))};return Object.defineProperty(o=>(s,r)=>{try{for(const a in s)if(e.add(a),t(s,r,a,o))return!1;for(const a in r)if(!e.has(a)&&(e.add(a),t(s,r,a,o)))return!1;return!0}finally{e.clear()}},"exclude",{value:ne})})(),zi=/^\s+|\s+(?=\s|$)/g,On=(e,t)=>(t?typeof t=="string"?t:(t==null?void 0:t.value)??"":"").replace(zi,"")||e.replace(zi,"")||void 0,Fs=(e,t,n)=>F(On("",n),On(On("",t)||"",e)),za=(e,t=[],n=[])=>F([...n,...t==null?void 0:t.map(o=>e?`${e}--${o}`:o)]),Ua=e=>_n(e,(e==null?void 0:e.value)??e),Kv=(e,t,n,o,s)=>{const r=L(i=>{i.preventDefault(),o||s==null||s(i)},[o,s]);return{classes:T(()=>za(n,t,[n,e]),[t,e]),click:r}},Ya=Kv,Ot="adyen-pe-button",ia=`${Ot}-actions`,qv=`${Ot}--icon`,eb=`${Ot}--icon-content`,tb=`${ia}__container-wrapper`,nb=`${Ot}__label`,ob=`${Ot}__icon-right`,sb=`${Ot}__icon-left`;var Oe=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link",e))(Oe||{});function rb({variant:e=Oe.PRIMARY,disabled:t=!1,onClick:n,classNameModifiers:o=[],iconLeft:s,iconRight:r,type:a="button",children:i,className:c,iconButton:d=!1,...g},u){const p=T(()=>On("",c)||"",[c]),m=T(()=>Ua(t),[t]),{classes:y,click:f}=Ya(p,[...o,e],Ot,m,n);return l("button",{className:d?`${qv} ${y}`:y,type:a,disabled:t,onClick:f,ref:u,...g,children:d?l("div",{className:`${eb}`,children:i}):l(V,{children:[s&&l("span",{className:sb,children:s}),l(q,{className:nb,el:io.SPAN,variant:w.BODY,stronger:!0,children:i}),r&&l("span",{className:ob,children:r})]})})}const et=Ye(rb),Ui={md:680,lg:1024},$n=({title:e,message:t,imageDesktop:n,imageMobile:o,withImage:s,centered:r,refreshComponent:a,onContactSupport:i,translationValues:c})=>{const{i18n:d,updateCore:g}=Q(),u=L(p=>Array.isArray(p)?p.map((m,y)=>y===0?l(V,{children:[d.get(m),c&&c[m]&&l(V,{children:c[m]})]}):l(V,{children:[l("br",{}),d.get(m),c&&c[m]&&l(V,{children:c[m]})]})):d.get(p),[d,c]);return l("div",{className:`adyen-pe-error-message-display ${r?"adyen-pe-error-message-display--centered":""}`,children:[(n||o||s)&&l("div",{className:"adyen-pe-error-message-display__illustration",children:l("picture",{children:[l("source",{type:"image/svg+xml",media:`(min-width: ${Ui.md}px)`,srcSet:n}),l("source",{type:"image/svg+xml",media:`(max-width: ${Ui.md}px)`,srcSet:o}),l("img",{srcSet:n??Xv,alt:d.get("thereWasAnUnexpectedError")})]})}),l(q,{variant:w.TITLE,children:d.get(e)}),t&&l(q,{variant:w.BODY,children:u(t)}),(i||a)&&l("div",{className:"adyen-pe-error-message-display__button",children:[i&&l(et,{onClick:i,children:d.get("reachOutToSupport")}),!i&&a&&l(et,{onClick:g,children:d.get("refresh")})]})]})},ca={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},ab=(e,t)=>{if(!e)return null;switch(e.errorCode){case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:t};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:t};case"00_403":return ca;default:return null}},Ge={sm:480,md:768,lg:1024},ib=e=>{const t=T(()=>window.matchMedia(e),[e]),[n,o]=U(t.matches);return W(()=>{const s=r=>o(r.matches);return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[t]),W(()=>{o(t.matches)},[t]),n},Ae={up:{sm:`(min-width: ${Ge.sm}px)`,md:`(min-width: ${Ge.md}px)`,lg:`(min-width: ${Ge.lg}px)`},down:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(max-width: ${Ge.md-1}px)`,md:`(max-width: ${Ge.lg-1}px)`},only:{xs:`(max-width: ${Ge.sm-1}px)`,sm:`(min-width: ${Ge.sm}px) and (max-width: ${Ge.md-1}px)`,md:`(min-width: ${Ge.md}px) and (max-width: ${Ge.lg-1}px)`,lg:`(min-width: ${Ge.lg}px)`}},Se=ib;var Ga=(e=>(e.BUTTONS_END="buttons-end",e.FILL_CONTAINER="fill-container",e.SPACE_BETWEEN="space-between",e.VERTICAL_STACK="vertical-stack",e))(Ga||{}),Cl=(e=>(e.BUTTONS_START="buttons-start",e))(Cl||{});const cb={...Ga,...Cl};function lb({actions:e,layout:t=cb.BUTTONS_END}){const n=()=>`${ia}--${t}`,o=r=>{const a=e.length-1;return r===a?Oe.PRIMARY:Oe.SECONDARY},s=T(()=>[...e].reverse(),[e]);return l("div",{className:ia,children:l("div",{className:`${tb} ${n()}`,role:"group",children:s.map((r,a)=>l(et,{"aria-label":r.title,disabled:r.disabled,variant:r.variant||o(a),onClick:r.event,children:r.title},a))})})}const ub=Ne(lb),Qe="adyen-pe-popover",El="adyen-pe-tooltip",db=`${Qe}-container`,Yi=`${Qe}__header`,hb=`${Qe}__header-title`,Wr=`${Qe}__content`,Ml=`${El}__content`,gb=`${Qe}__footer`;function mb({image:e=!0,onClick:t}){const{i18n:n}=Q();return l(V,{children:l(et,{className:(()=>e?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:Oe.TERTIARY,onClick:t,"aria-label":n.get("closeIconLabel"),children:l("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[l("title",{children:"dismiss"}),l("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 pb=Ne(mb);function fb({title:e,isImageTitle:t=!1}){return l(q,{strongest:!t,variant:(()=>t?w.SUBTITLE:w.BODY)(),children:e})}const yb=Ne(fb);var De=(e=>(e.TOOLTIP="tooltip",e.POPOVER="popover",e))(De||{}),ie=(e=>(e.TOP="top",e.TOP_LEFT="top-left",e.RIGHT="right",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.LEFT="left",e))(ie||{}),Oo=(e=>(e.MEDIUM="medium",e.WIDE="wide",e))(Oo||{}),Y=(e=>(e.ARROW_DOWN="ArrowDown",e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_UP="ArrowUp",e.BACKSPACE="Backspace",e.END="End",e.ENTER="Enter",e.ESCAPE="Escape",e.HOME="Home",e.PAGE_DOWN="PageDown",e.PAGE_UP="PageUp",e.SPACE="Space",e.TAB="Tab",e))(Y||{}),Z=(e=>(e.BALANCE_ACCOUNT="balanceAccount",e.CATEGORIES="categories",e.CURRENCIES="currencies",e.CREATED_SINCE="createdSince",e.CREATED_UNTIL="createdUntil",e.STATUSES="statuses",e.MIN_AMOUNT="minAmount",e.MAX_AMOUNT="maxAmount",e))(Z||{});const To=(()=>{let e=[];const t=a=>{const i=a.reduce((c,d)=>{const g=d instanceof Node?e.findIndex(u=>{const p=u.element.getAttribute("id"),m=d&&(d!=null&&d.getAttribute)?d==null?void 0:d.getAttribute("id"):null;return p===m}):-1;return c===-1&&g!==-1?g:c},-1);i===-1?s(0):i+1<=e.length-1&&s(i+1)},n=a=>{const i=e.findIndex(c=>c.element.getAttribute("id")===a.getAttribute("id"));i>=0&&e.splice(i,1)},o=(a,i)=>{e.findIndex(d=>d.element.getAttribute("id")===a.getAttribute("id"))>=0||e.push({element:a,callback:i})},s=a=>{var c,d;const i=e.length;for(let g=a;g<i;g++)(d=(c=e==null?void 0:e[g])==null?void 0:c.callback)==null||d.call(c);e.splice(a)};return{add:o,remove:n,closeAll:()=>{e.forEach(a=>{var i;return(i=a==null?void 0:a.callback)==null?void 0:i.call(a)}),e=[]},closePopoversOutsideOfClick:t}})(),$o=Symbol("_ref");class vl extends Error{}class Ib extends vl{}class _b extends vl{}function Ha(e){if(!ee(e))throw new _b}const Tb=e=>{try{if(ee(e)&&ct(e,"current")&&ct(e,$o)&&!fn(e,e[$o])){const t=e.actions.get(z),n=e.actions.size;return H(t)&&Number.isInteger(n)&&n>=0}}catch{}return!1},Ro=e=>Tb(e)?Ro(e[$o]):e,Ab=(()=>{const e=(o,s)=>{const r=o.get(s);if(!r)throw new Ib;return r},t=(o,s,r)=>{let a,i;const c=Ro(s);try{a=e(o,c)}catch{Ha(r)}if(a)[,i]=a;else{const d=ee(c),g=d?m=>{c(p=m)}:m=>{c.current=m,p=c.current},u=m=>{if(i.size===0)return;const y=p;if(g(m),!fn(p,y))for(const[f]of i)f(p,y)};let p=d?null:c.current;o.set(c,a=[u,i=new Map]),Object.defineProperties(u,{[$o]:{value:c},actions:{value:G({get:{value:i.get.bind(i)},size:{get:()=>i.size}})},current:{get:()=>p,set:d?void 0:u}})}return r&&i.set(r,1+(i.get(r)||0)),a[0]},n=(o,s,r)=>{const a=Ro(s),[,i]=e(o,a),c=i.get(r)||0;c===1?i.delete(r):c>1&&i.set(r,c-1),i.size===0&&o.delete(a)};return()=>{const o=new WeakMap;return G({bind:$(t.bind(void 0,o)),unbind:$(n.bind(void 0,o))})}})(),Sb=Ab(),Nb=e=>{Ha(e);const t=new WeakMap([[e,1]]),n=s=>{if(fn(o,s))return;const r=o;e(o=s,r)};let o=null;return Object.defineProperties(n,{[$o]:{value:n},actions:{value:G({get:{value:t.get.bind(t)},size:{value:1}})},current:{get:()=>o,set:n}})},Lb=(e=Sb)=>{let t,n=null,o,s=!1;const r=d=>{t=void 0,n=null,o=d,s=!1},a=()=>{s||(i(),s=!0)},i=()=>{try{if(!n)return;e.unbind(n,o)}catch{}};return G({action:{get:()=>o},reflex:{get:()=>t},release:{value:a},update:{value:(d,g)=>{Ha(d),s&&r(d);const u=ue(g)?null:g;if(o===d&&n===u){if(t)return}else if(n){if(fn(Ro(n),Ro(u))){t=e.bind(n,d),i(),o=d;return}i()}o=d,t=(n=u)?e.bind(n,o):Nb(o)}}})},Cb=(e,t)=>{const n=k(Lb());return fl(()=>n.current.release,[]),T(()=>(n.current.update(e,t),n.current.reflex),[e,t])},$t=Cb,En=Symbol("__control.Elem.");var bl=(e=>(e.POPOVER="POPOVER",e.DEFAULT="DEFAULT",e))(bl||{});const Gi=e=>{e.stopImmediatePropagation()},Za=(e,t,n,o)=>{const s=k(null),r=L(i=>{const c=i.composedPath();if(s&&s.current)if(o==="POPOVER")To.closePopoversOutsideOfClick(c);else{let d=0,g=!1,u=c[d];for(;u instanceof Element&&!(g||(g=u==null?void 0:u.isSameNode(s.current)));)u=c[++d]??u.parentElement,(u==null?void 0:u[En])instanceof Element&&(u=u[En],c.length=0);t&&!g&&t(!0)}},[s,t,o]),a=k(r);return W(()=>()=>{s.current&&To.remove(s.current),document.removeEventListener("click",a.current,!0)},[]),W(()=>(document.removeEventListener("click",a.current,!0),a.current=r,document.addEventListener("click",a.current,!0),o==="POPOVER"&&s.current instanceof Element&&To.add(s.current,t),()=>{s.current&&To.remove(s.current),document.removeEventListener("click",a.current,!0)}),[r,t,o]),W(()=>{n?document.removeEventListener("click",a.current,!0):document.addEventListener("click",a.current,!0)},[n]),$t(L((i,c)=>{c instanceof Element&&c.removeEventListener("focusout",Gi,!0),i instanceof Element&&(n||(i.addEventListener("focusout",Gi,!0),s.current=i))},[n,o]),e)},Va=`
1
+ "use strict";var kd=Object.defineProperty;var Wd=(t,e,n)=>e in t?kd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var j=(t,e,n)=>(Wd(t,typeof e!="symbol"?e+"":e,n),n),$i=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var h=(t,e,n)=>($i(t,e,"read from private field"),n?n.call(t):e.get(t)),T=(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)},A=(t,e,n,s)=>($i(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n);var Qe=(t,e,n,s)=>({set _(r){A(t,e,r,n)},get _(){return h(t,e,s)}}),w=(t,e,n)=>($i(t,e,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("classnames"),so="test",Bd=t=>{var e;return(e=t==null?void 0:t.replace)==null?void 0:e.call(t,/([^\/])$/,"$1/")},zd=t=>t==null?void 0:t.replace(/^([^\/])/,"/$1"),Fd=(()=>{const 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/"};return e=>t[e??so]||t[so]})(),pn=Function.prototype.bind.bind(Function.prototype.call),Fa=t=>()=>t,$d=async()=>{},yi=t=>t,st=()=>{},Ud=pn(Object.prototype.toString),Hd=t=>Ud(t).slice(8,-1),ro=t=>t===!!t,X=t=>typeof t=="function",Fr=t=>t===null,ht=t=>t==null,mr=t=>typeof t=="number",Si=t=>Hd(t)==="Object",Gt=t=>typeof t=="string",Yd=t=>typeof t=="symbol",Z=t=>t===void 0,hn=(t,e,n)=>(Math.min(t,n)!==t&&([t,n]=[n,t]),Math.max(t,Math.min(e,n))),Os=t=>!Yd(t)&&t===~~t,mn=t=>mr(t)&&1/t===0,tl=(t,e)=>{if(Number.isInteger(t)&&Number.isInteger(e))return t+Math.floor((e-t)/2);throw TypeError(`Expects 2 integer values: [${t}, ${e}]`)},fr=(t,e)=>(t%e+e)%e,$a="abort",Gd="signal is aborted without reason",En=(t,e=t)=>ro(t)?t:!!e,jt=t=>t===!0,Ye=t=>t!==!1,Zd=t=>!1,io=t=>!0,x=(t,e=!1)=>({writable:jt(e),enumerable:!0,value:t}),rt=(t,e=!0)=>({enumerable:Ye(e),get:t}),le=pn(Object.prototype.hasOwnProperty),yn=(t,e)=>t===e||!(t===t||e===e);if(!le(AbortSignal.prototype,"reason"))try{Object.defineProperty(AbortSignal.prototype,"reason",{...rt(function(){return this.aborted?bs():void 0},!0),configurable:!0})}catch{}le(AbortSignal.prototype,"throwIfAborted")||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw this.reason??bs()});const bs=(t=Gd)=>new DOMException(t,"AbortError"),el=(t,e)=>{if(!yn(t.reason,e))try{Object.defineProperty(t,"reason",x(e))}catch{}return t},Jd=(t=bs())=>{if("abort"in AbortSignal)return AbortSignal.abort(t);const e=new AbortController,n=Z(t)?bs():t,{signal:s}=e;return e.abort(n),el(s,n),s},Ai=t=>{if("any"in AbortSignal)return AbortSignal.any(t);let e=new Set,n=new AbortController;const{signal:s}=n;let r=function(){e.forEach(o=>o.removeEventListener($a,r)),e.clear();const i=(this==null?void 0:this.reason)??bs();n.abort(i),el(s,i),n=e=r=void 0};t:{const i=Symbol("<NIL_EXCEPTION>");let o=i;e:{try{for(const a of t){if(!_r(a))throw new TypeError("Failed to convert value to 'AbortSignal'");if(a.aborted)break e;e.add(a)}}catch(a){o=a;break e}e.forEach(a=>a.addEventListener($a,r));break t}if(r.call(s),o!==i)throw o}return s},_r=t=>t instanceof AbortSignal,Lt=Object.freeze([]),F=Object.freeze(Object.create(null)),Ti=Promise.resolve();Promise.race(Lt);const Ni=function(t,...e){return new Promise(n=>n(t.call(this,...e)))},Vd=(t,e,n)=>{let s=e.get(t);return Z(s)&&X(n)&&(Z(s=n(t,e))||e.set(t,s)),s},Ss=(t,e=Lt)=>{const n=`${t||""}`.trim(),s=n?n.split(/(?:\s*,\s*)+/).filter(yi):Lt;return s.length?s:e},ys=(t,e,n)=>t.includes(e)?e:ht(e)?t[0]:t.includes(n)?n:t[0],Ua=pn(Array.prototype.some),nl=function t(e,n,s=new Set){for(const r of n)Array.isArray(r)?t(e,r,s):(e&&s.delete(r),s.add(r));return s};pn(nl,void 0,!1);pn(nl,void 0,!0);const Qd=(...t)=>{const[e]=t,s=(t.length>=2?new Date(...t):e instanceof Date?e:new Date(Gt(e)||Number.isFinite(e)?e:void 0)).getTime();return Number.isFinite(s)?s:void 0},Xd=(()=>{let t=Date.now();return(e="adyen-pe")=>`${e}-${++t}`})(),Wo=(()=>{const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return()=>t.replace(/[xy]/g,e=>{const n=Math.random()*16|0;return(e=="x"?n:n&3|8).toString(16)})})(),vs=(t,e=F)=>Si(t)?t:vs(e,F),_s=pn(Object.create,void 0),J=pn(_s,void 0,null),Li=(t=F)=>Object.freeze({...t,defineProperty:io,set:io}),Kd=t=>t&&(t==null?void 0:t.length)>0?`${t[0].toUpperCase()}${t.slice(1)}`:t,qd=t=>ht(t)||Gt(t)&&/^\s*$/.test(t),th="/setup",eh=jt(void 0),Ha=(()=>{let t=0;if(Number.isFinite(t)&&(t=Math.max(0,~~t)))return t})();class nh extends Error{constructor(n,s,r,i){super(r);j(this,"type");j(this,"errorCode");j(this,"requestId");this.type=n,this.name=n,this.errorCode=i,this.requestId=s}}const sh=nh,rh=/^[^]*?filename[^;\n]*=\s*(?:UTF-\d['"]*)?(?:(['"])([^]*?)\1|([^;\n]*))?[^]*?$/;var sl=(t=>(t.NETWORK_ERROR="NETWORK_ERROR",t.CANCEL="CANCEL",t.IMPLEMENTATION_ERROR="IMPLEMENTATION_ERROR",t.ERROR="ERROR",t.EXPIRED_TOKEN="EXPIRED_TOKEN",t))(sl||{});const ih=t=>{switch(t){case 401:return"EXPIRED_TOKEN";default:return"NETWORK_ERROR"}},oh=t=>{var e;return(e=t.headers.get("Content-Type"))==null?void 0:e.split(";",1)[0]},ah=t=>{const n=(t.headers.get("Content-Disposition")??"").replace(rh,"$2$3");return decodeURIComponent(n)},ch=(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,"SDK-Version":"1.1.0"},redirect:"follow",signal:t.signal,referrerPolicy:"no-referrer-when-downgrade",...s==="POST"&&e&&{body:JSON.stringify(e)}}};function lh({message:t,level:e,errorCode:n,type:s="NETWORK_ERROR",requestId:r}){switch(e){case"silent":break;case"info":case"warn":console[e](t);break;case"error":default:throw new sh(s,r,t,n)}}function uh(t){return t&&t.errorCode&&t.type&&(t.detail||t.invalidFields)&&t.status}function dh(t){const e=new URLSearchParams;for(const n of Object.keys(t)){const s=t[n];ht(s)||(Array.isArray(s)?s.forEach(r=>e.append(n,r)):e.set(n,String(s)))}return e}const rl=t=>{let e,n,s;const r=()=>{if(Z(e))return;const l=e.abort.bind(e);e=void 0,l()},i=()=>(s=new Promise((l,u)=>{if(n.addEventListener("abort",function m(){n.removeEventListener("abort",m),u(t)}),n.aborted)throw t}),s.catch(st),s),o=()=>(Z(e)&&(e=new AbortController,n=e.signal,s=i()),a),a=J({abort:x(r),promise:rt(()=>s),reason:x(t),refresh:x(o),signal:rt(()=>n)});return o()},hh=()=>{let t,e,n;const s=()=>{const i=n??st,o=new Promise((a,l)=>{n=a,e=l});return i(t=o),r},r=J({promise:rt(()=>t),refresh:x(s),reject:x(i=>e(i)),resolve:x(i=>n(i))});return s()},gr=t=>{const e=rl(),n=hh();let s;return Object.defineProperties(function(...i){Z(s)?n.refresh():e.abort();const o=Ni.call(this,t,e.refresh().signal,...i);return(async()=>{let a=s===(s=o);try{const l=await o.finally(()=>{a=s===o,a&&(s=void 0)});a&&n.resolve(l)}catch(l){a&&n.reject(l)}})(),o},{abort:x(e.abort),promise:rt(()=>n.promise),refresh:x(()=>void n.refresh())})};class mh{constructor(e){j(this,"_endpoints",F);j(this,"_revokeEndpointsProxy",st);j(this,"_beforeHttp",async()=>{await this._refreshPromisor.promise.catch(st)});j(this,"_refreshPromisor",gr((e,n)=>{const s=_r(n)?Ai([n,e]):e;return this._fetchSetupEndpoint(s)}));this._session=e;let n;this.refresh=s=>(this._refreshPromisor(s).catch(st),n??(n=this._refreshPromisor.promise.finally(()=>n=void 0).then(({endpoints:r})=>{this._resetEndpoints(),{proxy:this._endpoints,revoke:this._revokeEndpointsProxy}=this._getEndpointsProxy(r)})))}get endpoints(){return this._endpoints}_fetchSetupEndpoint(e){return this._session.http(null,{method:"POST",path:th,errorLevel:"fatal",loadingContext:this.loadingContext,signal:e})}_getEndpointsProxy(e){const n=new Set(Object.keys(e)),s=J();return Proxy.revocable(F,Li({get:(r,i,o)=>n.has(i)?(s[i]??(s[i]=(()=>{const{method:a="GET",url:l}=e[i];if(!Z(l||void 0))return(...u)=>{const m=this._getHttpOptions(a,l,...u);return this._session.http(this._beforeHttp,m)}})()),s[i]):Reflect.get(r,i,o)}))}_getHttpOptions(e,n,...s){const{loadingContext:r}=this,[i,o]=s,{path:a,query:l}=vs(o),u=l&&dh(l);if(Si(a))for(const m of Object.keys(a))n=n.replace(`{${m}}`,a[m]);return{loadingContext:r,...i,method:e,params:u,path:n}}_resetEndpoints(){this._revokeEndpointsProxy(),this._revokeEndpointsProxy=st,this._endpoints=F}}const fh=mh,il=Symbol("Error<SESSION_EXPIRED>"),_h=Symbol("Error<SESSION_FACTORY_UNAVAILABLE>"),gh=Symbol("Error<SESSION_HTTP_UNAVAILABLE>"),Ih=Symbol("Error<SESSION_INVALID>"),ol=Symbol("Error<SESSION_REFRESH_ABORTED>"),Ei="_sessionExpired",al="_sessionReady",ph="_sessionRefreshed",yh="_sessionRefreshingEnd",Sh="_sessionRefreshingStart",cl="_session.deadline",ll="_session.ready",ul="_session.refreshingEnd",dl="_session.refreshingStart",Ah=async t=>{const{specification:e}=t.context,n=await Ni(async()=>{const s=e.autoRefresh;return X(s)?s.call(e,t.session):s}).catch(Zd);return jt(n)},Th=t=>{let e=t.context.emitter.on(Ei,()=>r(!1)),n,s=gr(async(a,l=!1)=>{n=a;const u=jt(l)||await Ah(t);n===a&&u&&t.pending&&!t.refreshing&&t.refresh(n).catch(st)}),r=(a=!1)=>{t.refreshing||s(a)},i=()=>{e(),s.abort(),s=n=e=void 0,r=i=st};return Object.defineProperties((a=!1)=>r(a),{destruct:rt(()=>i,!1)})},Ya=1e3,Nh=2147483647,Lh=(t,e=Ya,n=!1)=>{var m;let s=new AbortController,r=hn(0,~~e,Nh),i=jt(n);Number.isFinite(r)||(r=Ya);const o=((m=document.timeline)==null?void 0:m.currentTime)??performance.now(),a=()=>{s==null||s.abort(),s=void 0},l=d=>{!s||s.signal.aborted||(u(d),t(d))},u=d=>{let _=0;if(!i){const f=d-o,I=Math.round(f/r)*r;_=o+I+r-performance.now()}setTimeout(()=>requestAnimationFrame(l),_)};return u(o),i=!1,J({cancel:x(a),delay:x(e),signal:x(s.signal)})},Eh=t=>{const e={},n=Object.getOwnPropertyDescriptors(t);for(const s of Object.keys(t)){const{get:r,value:i}=n[s];e[s]=rt(r||(X(i)?i.bind(t):()=>i))}return J(e)},Mh=()=>{const t={idle:null,resume:null},e={};for(const n of Object.keys(t))e[n]={get:()=>t[n]??st,set:s=>{ht(s)?t[n]=null:X(s)&&s!==t[n]&&(t[n]=s)}};return J(e)},hl=Symbol("<<UNSUBSCRIBE>>"),gs=t=>t===hl,Ir=t=>{let e;const n=Eh(t),s=Mh(),r=new Map,i=new WeakMap,o=()=>Object.freeze({...n}),a=()=>r.size===0,l=m=>{if(a())return;if(gs(m)){const _=[];return r.forEach((f,I)=>{_.push(I);const g=i.get(I);for(;f--;)g==null||g()}),_.forEach(f=>f(m)),!0}const d=e;e=o();for(const _ of Object.keys(e))if(!yn(e[_],d[_]))return r.forEach((f,I)=>I(e)),!0;return!1},u=m=>{if(!X(m))return st;const d=Vd(m,i,()=>{let f=()=>{const I=r.get(m)||0;I===1?(f=void 0,r.delete(m),i.delete(m),a()&&(e=void 0,s.idle())):I>1&&r.set(m,I-1)};return()=>{f==null||f()}}),_=a();return r.set(m,(r.get(m)||0)+1),_&&(e=o(),s.resume()),m(e),d};return J({idle:rt(a),on:x(s),cancelSubscriptions:x(()=>l(hl)),requestNotification:x(()=>l()),snapshot:rt(()=>e??o()),subscribe:x(u)})},ml=(()=>{let t;const{cancelSubscriptions:e,requestNotification:n,subscribe:s,on:r}=Ir({now:()=>Date.now()});return r.resume=()=>{t=Lh(n,1e3,!1)},r.idle=()=>{t==null||t.cancel(),t=void 0},J({cancelSubscriptions:x(e),subscribe:x(s)})})(),fl=ml,Bo=()=>{const t=new class extends EventTarget{},e=(s,...r)=>{const[i]=r;r.length&&Z(i)&&console.warn("Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n");const o=new CustomEvent(s,J({bubbles:x(!1),cancelable:x(!1),detail:x(i??null)}));return t.dispatchEvent(o)},n=(s,r)=>{if(!X(r))return st;const i=o=>r.call(null,J({detail:x(o.detail),timeStamp:x(o.timeStamp),type:x(o.type)}));return t.addEventListener(s,i),()=>t.removeEventListener(s,i)};return J({emit:x(e),on:x(n)})},Ch=(t,e)=>{let n,s=1/0,r,i;const o=rl(),a=Bo(),l=()=>{n==null||n.removeEventListener("abort",l),s=1/0,i==null||i(),o.refresh(),a.emit(cl)},u=gr(async(d,_)=>{r=d;const f=await Ni(()=>{const g=e.deadline;return X(g)?g.call(e,_,d):g}).catch(st);if(r!==d)return;const I=(Array.isArray(f)?f:[f]).filter(g=>g||g===0);if(I.length>0){let g=!1,S=new Set;for(const p of I)if(_r(p)){if(g=p.aborted)break;S.add(p)}else if(s=Math.min(s,Qd(p)??1/0),g=s<=Date.now())break;g||(g=S.size<1&&!Number.isFinite(s)),g?n??(n=Jd()):(n=Ai([...S,o.signal]),n.addEventListener("abort",l),m()),I.length=0,S.clear()}else n=void 0}),m=()=>{if(!Number.isFinite(s))return;let d=fl.subscribe(_=>{if(gs(_))return l();_.now>=s&&o.abort()});i=()=>{d==null||d(),d=i=void 0}};return J({elapse:x(o.abort),elapsed:rt(()=>n&&n.aborted),on:x(a.on),refresh:x(u.bind(void 0)),signal:rt(()=>o.signal)})},Dh=(t,e)=>{let n=!1,s,r,i=!0,o;const a=Symbol("<next_session>"),l=Bo();function u(f){var I;try{(I=e.assert)==null||I.call(e,f)}catch{throw Ih}}function m(f){if(!X(f))throw _h}const d=gr((f,I)=>{if(!r)r=f;else return _(_r(I)?Ai([I,f]):f)}),_=async f=>{let I=a;try{n=!1,r=f,i&&await(s??(s=(async()=>{await Ti,i=!1,l.emit(dl)})())),m(e.onRefresh),I=await Ni(()=>e.onRefresh(o,f)).finally(()=>{if(f.aborted)throw ol})}finally{if(r===f)try{I!==a&&(u(I),o=I,l.emit(ll))}finally{s=void 0,i=!0,l.emit(ul)}}};return t.on(Ei,()=>n=!s),d(),J({context:x(J({emitter:x(t),specification:x(e)})),on:x(l.on),pending:rt(()=>n),promise:rt(()=>d.promise),refresh:x(d.bind(void 0)),refreshing:rt(()=>!!s),session:rt(()=>o),signal:rt(()=>r)})};class Oh{constructor(e){j(this,"_session");j(this,"_autofresh");j(this,"_deadline");j(this,"_refresher");j(this,"_eventEmitter",Bo());this._specification=e,this._deadline=Ch(this._eventEmitter,this._specification),this._refresher=Dh(this._eventEmitter,this._specification),this._autofresh=Th(this._refresher),this._deadline.on(cl,()=>this._eventEmitter.emit(Ei)),this._refresher.on(dl,()=>this._eventEmitter.emit(Sh)),this._refresher.on(ul,()=>this._eventEmitter.emit(yh)),this._refresher.on(ll,()=>{this._session=this._refresher.session,this._deadline.refresh(this._session).finally(()=>this._eventEmitter.emit(ph)),this._eventEmitter.emit(al)}),this.http=this._sessionHttp.bind(this),this.on=this._eventEmitter.on,this.refresh=this._refresher.refresh}get isExpired(){return this._deadline.elapsed}get refreshing(){return this._refresher.refreshing}_assertSessionHttp(e){if(!X(e))throw gh}async _sessionHttp(e,...n){for(this._autofresh(!0);;)try{await this._refresher.promise.catch(st);const{signal:s}=this._deadline;return await(e==null?void 0:e(this._session,s,...n)),this._assertSessionHttp(this._specification.http),await this._specification.http(this._session,s,...n)}catch(s){if(s!==il)throw s;if(this._refresher.pending)continue;this._deadline.elapse()}}}const bh="v1",Ui=(t,e)=>{try{t==null||t(e)}catch{throw e}};async function vh(t,e){const{errorLevel:n,loadingContext:s="",path:r}=t,i=ch(t,e),o=new URL(`${Bd(s)}${bh}${zd(r)}`);return t.params&&t.params.forEach((a,l)=>{const u=decodeURIComponent(a);u&&o.searchParams.append(l,u)}),(async()=>{let a=!1;const l={level:n};try{const u=await fetch(o,i);if(u.ok)try{switch(oh(u)){case"application/json":return await u.json();default:const _=await u.blob(),f=ah(u);return{blob:_,filename:f}}}catch(d){throw a=!0,d}l.type=ih(u.status);const m=await u.json();l.message=t.errorMessage||`Service at ${o} not available`,l.errorCode=String(m.status),l.requestId=m==null?void 0:m.requestId,uh(m)&&(l.message=m.detail,l.errorCode=m.errorCode),Ui(t.errorHandler,l)}catch(u){if(a)throw Ui(t.errorHandler,u),u;Ui(t.errorHandler,u),l.message=t.errorMessage||`Call to ${o} failed. Error: ${u}`}lh(l)})()}class Rh{constructor(e){j(this,"assert",e=>{if(Si(e)){const n=Gt(e.id)?e.id.trim():void 0,s=Gt(e.token)?e.token.trim():void 0;if(n&&s)return}throw void 0});j(this,"deadline",e=>{const n=[];let s,r;try{({iat:s,exp:r}=JSON.parse(atob(e==null?void 0:e.token.split(".")[1]))),n.push(r)}catch{s=Date.now()}if(!Z(Ha)){const i=new Date(s);n.push(i.setMilliseconds(i.getMilliseconds()+Ha))}return n});j(this,"http",async(e,n,s,r)=>{const{headers:i,signal:o,...a}=s;try{const l={...a,headers:{...i,...e&&{Authorization:`Bearer ${e.token}`}},errorHandler:this._errorHandler,signal:_r(o)?Ai([n,o]):n};return await vh(l,r)}catch(l){throw(l==null?void 0:l.type)===sl.EXPIRED_TOKEN?il:l}});this.onSessionCreate=e,this._errorHandler=this._errorHandler.bind(this),Object.defineProperties(this,{autoRefresh:x(eh),onRefresh:x((n,s)=>this.onSessionCreate(s))})}_errorHandler(e){try{this.errorHandler&&this.errorHandler(e)}catch{}throw e}}const wh=Rh,As=Symbol("<<NO_ERR>>");function xh(t){/* istanbul ignore if -- @preserve */if(t===As)throw new TypeError("Illegal error")}const jh=()=>{let t=As;const e=()=>{t=As},n=s=>{xh(s),t=s};return J({error:rt(()=>t===As?void 0:t),hasError:rt(()=>t!==As),reset:x(e),set:x(n)})};class Ph{constructor(){j(this,"_canSkipSessionRefresh",!1);j(this,"_refreshPromisorSignal");j(this,"_errorContainer",jh());j(this,"_specification",new wh);j(this,"_sessionContext",new Oh(this._specification));j(this,"_setupContext",new fh(this._sessionContext));j(this,"_refreshPromisor",gr(async(e,n=!1)=>{let s=!this._refreshPromisorSignal,r=this._refreshPromisorSignal===(this._refreshPromisorSignal=e);const i=jt(n)&&this._canSkipSessionRefresh;s&&(s=!1,this._errorContainer.reset(),this._onAuthStateChanged());try{await(i?this._setupContext:this._sessionContext).refresh(e).finally(()=>r=this._refreshPromisorSignal===e)}catch(o){if(!r)return;!e.aborted&&(i||o!==ol)&&this._errorContainer.set(o),s=!i}finally{(s||i&&r)&&(this._refreshPromisorSignal=void 0,this._onAuthStateChanged())}}));j(this,"_watchlist",Ir({endpoints:()=>this._setupContext.endpoints,hasError:()=>this._errorContainer.hasError,http:Fa(this._sessionContext.http.bind(this._sessionContext,null)),isExpired:()=>this._sessionContext.isExpired,refresh:Fa(this._refresh.bind(this)),refreshing:()=>!!this._refreshPromisorSignal}));this.destroy=()=>{this._watchlist.on.resume=void 0,this._watchlist.cancelSubscriptions()},this.subscribe=this._watchlist.subscribe,this._watchlist.on.resume=()=>{const e=[this._sessionContext.on(Ei,()=>{this._canSkipSessionRefresh=!1,this._onAuthStateChanged()}),this._sessionContext.on(al,()=>{this._refresh(this._canSkipSessionRefresh=!0)})];this._watchlist.on.idle=()=>{this._watchlist.on.idle=void 0,e.forEach(n=>n()),e.length=0},this._refresh()}}get context(){return this._watchlist.snapshot}set loadingContext(e){this._setupContext.loadingContext=e}set errorHandler(e){this._specification.errorHandler=e}set onSessionCreate(e){this._specification.onSessionCreate!==e&&(this._specification.onSessionCreate=e,this._refreshPromisorSignal&&X(this._specification.onSessionCreate)&&(this._canSkipSessionRefresh=!1,this._refresh()))}_onAuthStateChanged(){this._watchlist.requestNotification()}_refresh(e=!1){this._refreshPromisor(e)}}const kh=JSON.parse('{"account":"Account","accountBalance":"Account Balance","additions":"Additions","adjustments":"Adjustments","amount":"Amount","apply":"Apply","balanceAccount":"Balance account","balanceAccountId":"Balance account ID","Booked":"Booked","button.clearAll":"Clear all","calendar.controls":"Calendar navigation controls","calendar.nextMonth":"Next month","calendar.previousMonth":"Previous month","calendar.timezone":"Timezone is set on: GMT%{offset} (%{time})","capture":"Captured","category":"Category","chargeback":"Chargebacks","closeIconLabel":"Close","contactSupportForHelpAndShareErrorCode":"Contact support for help and share error code %{requestId}","correction":"Corrections","currency":"Currency","date":"Date","dateRange":"Date range","default":"Default","description":"Description","dismiss":"Dismiss","download":"Download","downloading":"Downloading","email":"Email","entityWasNotFound":"Entity was not found","entityWasNotFoundDetail":"Transaction not found for the specified Account Holder","error.pleaseTryAgainLater":"Please try again later.","error.somethingWentWrongWithDownload":"Something went wrong with the download","expandableCard.collapse":"Collapse","expandableCard.expand":"Expand","export":"Export","fee":"Fees","file":"File","filter.date.since":"Since %{date}","filter.date.until":"Until %{date}","filterBar":"Filter bar","filterPlaceholder.category":"Type","filterPlaceholder.currency":"Currency","filterPlaceholder.status":"Status","from":"From","fundsCaptured":"Funds captured","grantIssued":"Grant issued","grantRepayment":"Grant repayments","hideContent":"Hide content","id":"ID","incompleteField":"Incomplete field","mobile":"Mobile","netPayout":"Net payout","nextPayouts":"Next Payouts","noData":"No data","noNegativeNumbersAllowed":"No negative numbers allowed","noPayoutsFound":"No payouts found","noReportsFound":"No reports found","noTransactionsFound":"No transactions found","other":"Other","paginatedNavigation":"Paginated navigation","pagination.nextPage":"Next page","pagination.previousPage":"Previous page","pagination.showing":"Showing","paymentId":"Payment ID","paymentMethod":"Payment method","payoutDetails":"Payout Details","payoutsTitle":"Payouts","Pending":"Pending","pleaseReachOutToSupportForAssistance":"Please, reach out to support for assistance.","rangePreset.custom":"Custom","rangePreset.last30Days":"Last 30 days","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","reachOutToSupport":"Reach out to support","referenceID":"Reference ID","refresh":"Refresh","refund":"Refunds","remainingAmount":"Remaining amount","report":"Report","reportsError.tooManyDownloads":"We could not download all the files. Please try again later.","reportsNotice":"Reports are generated each day at midnight, UTC time.","reportsTitle":"Reports","reportType.payout":"Payout","reset":"Reset","Reversed":"Reversed","select.filter.placeholder":"Placeholder","select.noOptionsFound":"No options match this search","somethingWentWrong":"Something went wrong.","status":"Status","structuredList":"Structured list","subtractions":"Subtractions","tabs":"Tabs","theErrorCodeIs":"The error code is %{requestId}","thereAreNoResults":"There are no results","theRequestIsMissingRequiredFieldsOrContainsInvalidData":"The request is missing required fields or contains invalid data.","thereWasAnUnexpectedError":"There was an unexpected error","theSelectedBalanceAccountIsIncorrect":"The selected balance account is incorrect","timezone":"Timezone","to":"To","tooltip.ATM":"Money withdrawn at an ATM","tooltip.Capital":"Money from an incoming loan grant or outgoing loan repayment","tooltip.Chargeback":"Money returned to a customer after a disputed transaction","tooltip.Correction":"Adjustments to your funds, including transaction reversals and deposit corrections","tooltip.Fee":"Transaction costs and payment method fees","tooltip.Other":"Transactions not in another category, usually an adjustment","tooltip.Payment":"Money received to your account from a sales transaction","tooltip.Refund":"Money sent back to a customer from a refunded transaction","tooltip.totalIncoming":"All money received into your account based on the selected filters","tooltip.totalOutgoing":"All fees, refunds, payouts, and other charges based on the selected filters","tooltip.Transfer":"Money moved between your account and another account","totalIncoming":"Total incoming","totalOutgoing":"Total outgoing","toValueShouldBeGreaterThanTheFromValue":"To value should be equal or greater than the From value","transactionDetails":"Transaction details","transactions":"Transactions","transactionsOverviewTitle":"Transactions overview","transactionType":"Transaction type","transfer":"Transfers","tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain":"Try a different search or reset your filters, and we’ll try again.","tryRefreshingThePageOrComeBackLater":"Try refreshing the page or come back later.","txAmount":"Amount","txType.ATM":"ATM","txType.Capital":"Capital","txType.Chargeback":"Chargeback","txType.Correction":"Correction","txType.Fee":"Fee","txType.Other":"Other","txType.Payment":"Payment","txType.Refund":"Refund","txType.Transfer":"Transfer","type":"Type","value":"Value","weCouldNotLoadThePayoutsOverview":"We could not load the payouts overview.","weCouldNotLoadTheReportsOverview":"We could not load the reports overview.","weCouldNotLoadTheTransactionsOverview":"We could not load the transactions overview.","weCouldNotLoadYourBalanceAccounts":"We couldn’t load your balance accounts.","weCouldNotLoadYourPayouts":"We could not load your payouts.","weCouldNotLoadYourReports":"We could not load your reports.","weCouldNotLoadYourTransactions":"We could not load your transactions."}'),xe=t=>t.then(({default:e})=>e),_l={da_DK:()=>xe(Promise.resolve().then(()=>require("../da-DK-a148e492.cjs")))},gl={de_DE:()=>xe(Promise.resolve().then(()=>require("../de-DE-a39a50e8.cjs")))},Il={es_ES:()=>xe(Promise.resolve().then(()=>require("../es-ES-153e5f15.cjs")))},pl={fr_FR:()=>xe(Promise.resolve().then(()=>require("../fr-FR-69b3df0d.cjs")))},yl={it_IT:()=>xe(Promise.resolve().then(()=>require("../it-IT-efca230f.cjs")))},Sl={nl_NL:()=>xe(Promise.resolve().then(()=>require("../nl-NL-ffbb8184.cjs")))},Al={no_NO:()=>xe(Promise.resolve().then(()=>require("../no-NO-eaf65f6f.cjs")))},Tl={pt_BR:()=>xe(Promise.resolve().then(()=>require("../pt-BR-590ccc53.cjs")))},Nl={sv_SE:()=>xe(Promise.resolve().then(()=>require("../sv-SE-18f4e86e.cjs")))},$r={en_US:kh},zo={..._l,...gl,...$r,...Il,...pl,...yl,...Sl,...Al,...Tl,...Nl},qe="en-US",Ll=zo.en_US,Fo={year:"numeric",month:"2-digit",day:"2-digit"},Wh=["constructor","i18n","watch","preferredTranslations"],El=t=>[...new Set(Object.keys(t).map(e=>e.replace(/_/g,"-")).sort())],Bh=El(zo),zh={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$"},Ml=zh,Fh={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},$h=Fh,Uh=t=>$h[t]||100,Hh=t=>!!Ml[t],Cl=t=>Hh(t)?Ml[t]:null,Yh=(t,e)=>{const n=Uh(e);return parseInt(String(t),10)/n},Gh=(t,e,n,s=!1,r={})=>{const i=t.toString(),o=Yh(i,n),a=e.replace("_","-"),l={style:"currency",currency:n,currencyDisplay:"symbol",...r};try{return s?Zh(a,l,o):o.toLocaleString(a,l)}catch{return i}},Zh=(t,e,n)=>Intl.NumberFormat(t,e).formatToParts(n).filter(s=>s.type!=="currency").reduce((s,r)=>s+r.value,"").trim(),Jh=new RegExp("(?<=GMT)(?:[-+](?:0?\\d|1[0-4])(?::?[0-5]\\d)?)?$"),{BASE_FORMAT_OPTIONS:Dl,BASE_LOCALE:Mi,SYSTEM_TIMEZONE:Cr,SYSTEM_TIMEZONE_FORMATTER:bn}=(()=>{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}})(),Vh=/\+(?=-)|([+-]00:00)/g,Qh=new RegExp("(?<=^\\D?)(\\d)$"),Xh=([t,e])=>(Math.abs(t*60)+e)*(t<0?-1:1),Kh=t=>Object.freeze([Math.floor(t/60),fr(t,60)]),qh=t=>parseInt(t,10)||0,tm=t=>`GMT+${Kh(t).map(s=>`${s}`.replace(Qh,"0$1")).join(":")}`.replace(Vh,""),oo=t=>{var n;const e=((n=t==null?void 0:t.match(Jh))==null?void 0:n[0].split(":",2).map(qh))??Lt;return Xh(e.concat(0,0).slice(0,2))},em=(t,e=bn)=>{const n=oo(bn==null?void 0:bn.format(t));return oo(e==null?void 0:e.format(t))-n},Ol=(t,e,n=1)=>{const{offset:s,timestamp:r}=t(e);return r-s*n*6e4},Ie=(t,e)=>Ol(t,e,1),De=(t,e)=>Ol(t,e,-1),nm=(()=>{let t,e;Z(Cr)||(t=function(){return this.TIMEZONE},e=function(s){if(ht(s))this.TIMEZONE=Cr,this.formatter=bn;else try{const r=new Intl.DateTimeFormat(Mi,{...Dl,timeZone:s}),i=r.resolvedOptions().timeZone;if(this.TIMEZONE===i)return;this.TIMEZONE=i,this.formatter=r}catch{}});function n(...s){if(s.length===0)return n.call(this,Date.now());const r=s[0],i=new Date(r).getTime(),o=this.formatter??bn;return Object.freeze({formatted:o==null?void 0:o.format(i),offset:em(i,o),timestamp:i})}return()=>{const s={TIMEZONE:Cr},r=e==null?void 0:e.bind(s),i=J({current:{get:t==null?void 0:t.bind(s),set:r},system:{value:Cr}});return Object.defineProperties(n.bind(s),{tz:{get:()=>i,set:r}})}})(),pr=nm,sm={values:F,count:0},rm=/^[a-z]{2}-[A-Z]{2}$/,Ur=t=>t.substring(0,2).toLowerCase();function im(t,e){if(!t)return null;const n=Ur(t);return e.find(s=>Ur(s)===n)||null}function $o(t){const e=t.replace("_","-");if(rm.test(e))return e;const[n,s]=e.split("-");if(!n||!s)return null;const r=`${n.toLowerCase()}-${s.toUpperCase()}`;return r.length===5?r:null}function Uo(t,e){const n=t.trim();if(!n||n.length<1||n.length>5)return qe;const s=$o(n);return s&&e.includes(s)?s:im(s??n,e)}function om(t=F,e){return t===F?t:Object.keys(t).reduce((n,s)=>{const r=$o(s)||Uo(s,e);return r&&t[s]&&(n[r]=t[s]),n},{})}const Hi=(t,e)=>t.replace(/%{(\w+)}/g,(n,s)=>(e==null?void 0:e[s])||""),Ga=(t,e,n=sm)=>{const s=n.count??0,r=`${e}__${s}`;if(le(t,r)&&t[r])return Hi(t[r],n.values);const i=`${e}__plural`;return le(t,i)&&s>1&&t[i]?Hi(t[i],n.values):le(t,e)&&t[e]?Hi(t[e],n.values):null},am=async(t,e=F,n=F)=>{const s=Uo(t,Object.keys(e))||qe,r=e[s];return{...Ll,...await(X(r)?r():r)??F,...vs(n==null?void 0:n[t])}};function cm(){let t=this.locale,e=t,n=[...this.supportedLocales];return J({load:{value:s=>am(t,this.preferredTranslations,s)},locale:{get:()=>t,set:s=>{e=s,t=$o(s)||Uo(s,n)||qe}},supportedLocales:{get:()=>n,set(s){n=s,this.locale=e}}})}function lm(){var e;const t={};for(const[n,s]of Object.entries(Object.getOwnPropertyDescriptors(Ci.prototype)))Wh.includes(n)||(X(s.get)?t[n]={get:s.get.bind(this),...n==="timezone"&&{set:(e=s.set)==null?void 0:e.bind(this)}}:X(s.value)?t[n]={value:s.value.bind(this)}:t[n]={get:()=>this[n]});return t}var me,Ws,zn,Bs,Fn,$n,Ae,zs,tn,en,Un,Hn,Fs,ao;class Ci{constructor(e=qe,n){T(this,Fs);T(this,me,qe);T(this,Ws,Ur(h(this,me)));T(this,zn,[qe]);T(this,Bs,h(this,zn));T(this,Fn,void 0);T(this,$n,Ll);T(this,Ae,cm.call(this));T(this,zs,Ti);T(this,tn,void 0);T(this,en,void 0);T(this,Un,Ir({timestamp:()=>performance.now()}));T(this,Hn,pr());j(this,"watch",h(this,Un).subscribe.bind(void 0));j(this,"i18n",J(lm.call(this)));j(this,"preferredTranslations");this.watch(st),this.preferredTranslations=Object.freeze((n==null?void 0:n.reduce((s,r)=>({...s,...r}),$r))??{...$r}),A(this,zn,El(this.preferredTranslations)),this.locale=e}get customTranslations(){return h(this,Fn)??{}}set customTranslations(e){let n,s=[...h(this,zn)];if(!ht(e)){n=om(e,Bh);const r=Object.keys(n);s=[...s,...r].sort().filter((i,o,a)=>a.indexOf(i)===o)}h(this,Ae).supportedLocales=s,w(this,Fs,ao).call(this,n)}get languageCode(){return h(this,Ws)}get lastRefreshTimestamp(){return h(this,Un).snapshot.timestamp}get locale(){return h(this,me)}set locale(e){if(ht(e))this.locale=qe;else{if(h(this,Ae).locale=e,h(this,me)===h(this,Ae).locale)return;w(this,Fs,ao).call(this,h(this,Fn))}}get ready(){return h(this,zs)}get supportedLocales(){return h(this,Bs)}get timezone(){return h(this,Hn).tz.current}set timezone(e){h(this,Hn).tz=e}get(e,n){const s=Ga(h(this,$n),e,n);return Fr(s)?e:s}has(e,n){return!!Ga(h(this,$n),e,n)}amount(e,n,s){const{hideCurrency:r,...i}=s||{},o=Gh(e,h(this,me),n,r,{...i,currencyDisplay:"symbol",signDisplay:"never"});return e<0?`- ${o}`:o}date(e,n={}){const s={...Fo,timeZone:h(this,Hn).tz.current,...n};return new Date(e).toLocaleDateString(h(this,me),s)}fullDate(e){return this.date(e,{month:"short",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}me=new WeakMap,Ws=new WeakMap,zn=new WeakMap,Bs=new WeakMap,Fn=new WeakMap,$n=new WeakMap,Ae=new WeakMap,zs=new WeakMap,tn=new WeakMap,en=new WeakMap,Un=new WeakMap,Hn=new WeakMap,Fs=new WeakSet,ao=function(e){Z(h(this,en))&&A(this,zs,new Promise(r=>{A(this,en,()=>{r(h(this,tn)),A(this,tn,A(this,en,void 0))})}));const n=()=>{var r;h(this,tn)===s&&((r=h(this,en))==null||r.call(this))},s=A(this,tn,(async()=>{A(this,$n,await h(this,Ae).load(e)),A(this,me,h(this,Ae).locale),A(this,Bs,Object.freeze(h(this,Ae).supportedLocales)),A(this,Fn,e),A(this,Ws,Ur(h(this,me))),h(this,Un).requestNotification()})());s.then(n).catch(r=>{n(),console.error(r)})};class bl{constructor(e){j(this,"components",[]);j(this,"options");j(this,"localization");j(this,"loadingContext");j(this,"session",new Ph);j(this,"onError");j(this,"update",async(e=F)=>(this.setOptions(e),await this.initialize(),this.components.forEach(n=>{n.props.core===this&&n.update(this.getPropsForComponent(this.options))}),this));j(this,"remove",e=>(this.components=this.components.filter(n=>n._id!==e._id),e.unmount(),this));j(this,"registerComponent",e=>{e.props.core===this&&this.components.push(e)});j(this,"setOptions",e=>{var n,s;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.session.loadingContext=this.loadingContext,this.session.onSessionCreate=this.options.onSessionCreate,this});this.options={environment:so,...e},this.localization=new Ci(e.locale,e.availableTranslations),this.loadingContext=Fd(this.options.environment),this.setOptions(e)}async initialize(){return Promise.all([this.localization.ready]).then(()=>this)}getPropsForComponent(e){return{...e}}}j(bl,"version","1.1.0");const vl=bl;var yr,K,Rl,wl,Xe,Za,xl,co,Ho,lo,uo,jl,Rs={},Pl=[],um=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Di=Array.isArray;function Oe(t,e){for(var n in e)t[n]=e[n];return t}function kl(t){var e=t.parentNode;e&&e.removeChild(t)}function hs(t,e,n){var s,r,i,o={};for(i in e)i=="key"?s=e[i]:i=="ref"?r=e[i]:o[i]=e[i];if(arguments.length>2&&(o.children=arguments.length>3?yr.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)o[i]===void 0&&(o[i]=t.defaultProps[i]);return Ms(t,o,s,r,null)}function Ms(t,e,n,s,r){var i={type:t,props:e,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Rl,__i:-1,__u:0};return r==null&&K.vnode!=null&&K.vnode(i),i}function q(t){return t.children}function ve(t,e){this.props=t,this.context=e}function _n(t,e){if(e==null)return t.__?_n(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?_n(t):null}function Wl(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Wl(t)}}function ho(t){(!t.__d&&(t.__d=!0)&&Xe.push(t)&&!Hr.__r++||Za!==K.debounceRendering)&&((Za=K.debounceRendering)||xl)(Hr)}function Hr(){var t,e,n,s,r,i,o,a;for(Xe.sort(co);t=Xe.shift();)t.__d&&(e=Xe.length,s=void 0,i=(r=(n=t).__v).__e,o=[],a=[],n.__P&&((s=Oe({},r)).__v=r.__v+1,K.vnode&&K.vnode(s),Yo(n.__P,s,r,n.__n,n.__P.ownerSVGElement!==void 0,32&r.__u?[i]:null,o,i??_n(r),!!(32&r.__u),a),s.__v=r.__v,s.__.__k[s.__i]=s,Fl(o,s,a),s.__e!=i&&Wl(s)),Xe.length>e&&Xe.sort(co));Hr.__r=0}function Bl(t,e,n,s,r,i,o,a,l,u,m){var d,_,f,I,g,S=s&&s.__k||Pl,p=e.length;for(n.__d=l,dm(n,e,S),l=n.__d,d=0;d<p;d++)(f=n.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(_=f.__i===-1?Rs:S[f.__i]||Rs,f.__i=d,Yo(t,f,_,r,i,o,a,l,u,m),I=f.__e,f.ref&&_.ref!=f.ref&&(_.ref&&Go(_.ref,null,f),m.push(f.ref,f.__c||I,f)),g==null&&I!=null&&(g=I),65536&f.__u||_.__k===f.__k?(l&&!l.isConnected&&(l=_n(_)),l=zl(f,l,t)):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:I&&(l=I.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=g}function dm(t,e,n){var s,r,i,o,a,l=e.length,u=n.length,m=u,d=0;for(t.__k=[],s=0;s<l;s++)o=s+d,(r=t.__k[s]=(r=e[s])==null||typeof r=="boolean"||typeof r=="function"?null:typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?Ms(null,r,null,null,null):Di(r)?Ms(q,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?Ms(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=t,r.__b=t.__b+1,a=hm(r,n,o,m),r.__i=a,i=null,a!==-1&&(m--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&d--,typeof r.type!="function"&&(r.__u|=65536)):a!==o&&(a===o+1?d++:a>o?m>l-o?d+=a-o:d--:a<o?a==o-1&&(d=a-o):d=0,a!==s+d&&(r.__u|=65536))):(i=n[o])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=_n(i)),mo(i,i,!1),n[o]=null,m--);if(m)for(s=0;s<u;s++)(i=n[s])!=null&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=_n(i)),mo(i,i))}function zl(t,e,n){var s,r;if(typeof t.type=="function"){for(s=t.__k,r=0;s&&r<s.length;r++)s[r]&&(s[r].__=t,e=zl(s[r],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function Ge(t,e){return e=e||[],t==null||typeof t=="boolean"||(Di(t)?t.some(function(n){Ge(n,e)}):e.push(t)),e}function hm(t,e,n,s){var r=t.key,i=t.type,o=n-1,a=n+1,l=e[n];if(l===null||l&&r==l.key&&i===l.type&&!(131072&l.__u))return n;if(s>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<e.length;){if(o>=0){if((l=e[o])&&!(131072&l.__u)&&r==l.key&&i===l.type)return o;o--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&r==l.key&&i===l.type)return a;a++}}return-1}function Ja(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||um.test(e)?n:n+"px"}function Dr(t,e,n,s,r){var i;t:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof s=="string"&&(t.style.cssText=s=""),s)for(e in s)n&&e in n||Ja(t.style,e,"");if(n)for(e in n)s&&n[e]===s[e]||Ja(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?s?n.u=s.u:(n.u=Ho,t.addEventListener(e,i?uo:lo,i)):t.removeEventListener(e,i?uo:lo,i);else{if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function Va(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Ho++;else if(e.t<n.u)return;return n(K.event?K.event(e):e)}}}function Yo(t,e,n,s,r,i,o,a,l,u){var m,d,_,f,I,g,S,p,D,E,O,P,M,R,C,k=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=e.__e=n.__e]),(m=K.__b)&&m(e);t:if(typeof k=="function")try{if(p=e.props,D=(m=k.contextType)&&s[m.__c],E=m?D?D.props.value:m.__:s,n.__c?S=(d=e.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?e.__c=d=new k(p,E):(e.__c=d=new ve(p,E),d.constructor=k,d.render=fm),D&&D.sub(d),d.props=p,d.state||(d.state={}),d.context=E,d.__n=s,_=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Oe({},d.__s)),Oe(d.__s,k.getDerivedStateFromProps(p,d.__s))),f=d.props,I=d.state,d.__v=e,_)k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(k.getDerivedStateFromProps==null&&p!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(p,E),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(p,d.__s,E)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=p,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(v){v&&(v.__=e)}),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&o.push(d);break t}d.componentWillUpdate!=null&&d.componentWillUpdate(p,d.__s,E),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,I,g)})}if(d.context=E,d.props=p,d.__P=t,d.__e=!1,P=K.__r,M=0,"prototype"in k&&k.prototype.render){for(d.state=d.__s,d.__d=!1,P&&P(e),m=d.render(d.props,d.state,d.context),R=0;R<d._sb.length;R++)d.__h.push(d._sb[R]);d._sb=[]}else do d.__d=!1,P&&P(e),m=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++M<25);d.state=d.__s,d.getChildContext!=null&&(s=Oe(Oe({},s),d.getChildContext())),_||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(f,I)),Bl(t,Di(C=m!=null&&m.type===q&&m.key==null?m.props.children:m)?C:[C],e,n,s,r,i,o,a,l,u),d.base=e.__e,e.__u&=-161,d.__h.length&&o.push(d),S&&(d.__E=d.__=null)}catch(v){e.__v=null,l||i!=null?(e.__e=a,e.__u|=l?160:32,i[i.indexOf(a)]=null):(e.__e=n.__e,e.__k=n.__k),K.__e(v,e,n)}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=mm(n.__e,e,n,s,r,i,o,l,u);(m=K.diffed)&&m(e)}function Fl(t,e,n){e.__d=void 0;for(var s=0;s<n.length;s++)Go(n[s],n[++s],n[++s]);K.__c&&K.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(i){i.call(r)})}catch(i){K.__e(i,r.__v)}})}function mm(t,e,n,s,r,i,o,a,l){var u,m,d,_,f,I,g,S=n.props,p=e.props,D=e.type;if(D==="svg"&&(r=!0),i!=null){for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!D&&(D?f.localName===D:f.nodeType===3)){t=f,i[u]=null;break}}if(t==null){if(D===null)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",D):document.createElement(D,p.is&&p),i=null,a=!1}if(D===null)S===p||a&&t.data===p||(t.data=p);else{if(i=i&&yr.call(t.childNodes),S=n.props||Rs,!a&&i!=null)for(S={},u=0;u<t.attributes.length;u++)S[(f=t.attributes[u]).name]=f.value;for(u in S)f=S[u],u=="children"||(u=="dangerouslySetInnerHTML"?d=f:u==="key"||u in p||Dr(t,u,null,f,r));for(u in p)f=p[u],u=="children"?_=f:u=="dangerouslySetInnerHTML"?m=f:u=="value"?I=f:u=="checked"?g=f:u==="key"||a&&typeof f!="function"||S[u]===f||Dr(t,u,f,S[u],r);if(m)a||d&&(m.__html===d.__html||m.__html===t.innerHTML)||(t.innerHTML=m.__html),e.__k=[];else if(d&&(t.innerHTML=""),Bl(t,Di(_)?_:[_],e,n,s,r&&D!=="foreignObject",i,o,i?i[0]:n.__k&&_n(n,0),a,l),i!=null)for(u=i.length;u--;)i[u]!=null&&kl(i[u]);a||(u="value",I!==void 0&&(I!==t[u]||D==="progress"&&!I||D==="option"&&I!==S[u])&&Dr(t,u,I,S[u],!1),u="checked",g!==void 0&&g!==t[u]&&Dr(t,u,g,S[u],!1))}return t}function Go(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(s){K.__e(s,n)}}function mo(t,e,n){var s,r;if(K.unmount&&K.unmount(t),(s=t.ref)&&(s.current&&s.current!==t.__e||Go(s,null,e)),(s=t.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(i){K.__e(i,e)}s.base=s.__P=null}if(s=t.__k)for(r=0;r<s.length;r++)s[r]&&mo(s[r],e,n||typeof t.type!="function");n||t.__e==null||kl(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function fm(t,e,n){return this.constructor(t,n)}function vn(t,e,n){var s,r,i,o;K.__&&K.__(t,e),r=(s=typeof n=="function")?null:n&&n.__k||e.__k,i=[],o=[],Yo(e,t=(!s&&n||e).__k=hs(q,null,[t]),r||Rs,Rs,e.ownerSVGElement!==void 0,!s&&n?[n]:r?null:e.firstChild?yr.call(e.childNodes):null,i,!s&&n?n:r?r.__e:e.firstChild,s,o),Fl(i,t,o)}function $l(t,e,n){var s,r,i,o,a=Oe({},t.props);for(i in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)i=="key"?s=e[i]:i=="ref"?r=e[i]:a[i]=e[i]===void 0&&o!==void 0?o[i]:e[i];return arguments.length>2&&(a.children=arguments.length>3?yr.call(arguments,2):n),Ms(t.type,a,s||t.key,r||t.ref,null)}function Zo(t,e){var n={__c:e="__cC"+jl++,__:t,Consumer:function(s,r){return s.children(r)},Provider:function(s){var r,i;return this.getChildContext||(r=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&r.some(function(a){a.__e=!0,ho(a)})},this.sub=function(o){r.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){r.splice(r.indexOf(o),1),a&&a.call(o)}}),s.children}};return n.Provider.__=n.Consumer.contextType=n}yr=Pl.slice,K={__e:function(t,e,n,s){for(var r,i,o;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(t)),o=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,s||{}),o=r.__d),o)return r.__E=r}catch(a){t=a}throw t}},Rl=0,wl=function(t){return t!=null&&t.constructor==null},ve.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Oe({},this.state),typeof t=="function"&&(t=t(Oe({},n),this.props)),t&&Oe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),ho(this))},ve.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),ho(this))},ve.prototype.render=q,Xe=[],xl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,co=function(t,e){return t.__v.__b-e.__v.__b},Hr.__r=0,Ho=0,lo=Va(!1),uo=Va(!0),jl=0;var gn,lt,Yi,Qa,ms=0,Ul=[],vr=[],It=K,Xa=It.__b,Ka=It.__r,qa=It.diffed,tc=It.__c,ec=It.unmount,nc=It.__;function Sr(t,e){It.__h&&It.__h(lt,t,ms||e),ms=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:vr}),n.__[t]}function $(t){return ms=1,Oi(Yl,t)}function Oi(t,e,n){var s=Sr(gn++,2);if(s.t=t,!s.__c&&(s.__=[n?n(e):Yl(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=lt,!lt.u)){var r=function(a,l,u){if(!s.__c.__H)return!0;var m=s.__c.__H.__.filter(function(_){return!!_.__c});if(m.every(function(_){return!_.__N}))return!i||i.call(this,a,l,u);var d=!1;return m.forEach(function(_){if(_.__N){var f=_.__[0];_.__=_.__N,_.__N=void 0,f!==_.__[0]&&(d=!0)}}),!(!d&&s.__c.props===a)&&(!i||i.call(this,a,l,u))};lt.u=!0;var i=lt.shouldComponentUpdate,o=lt.componentWillUpdate;lt.componentWillUpdate=function(a,l,u){if(this.__e){var m=i;i=void 0,r(a,l,u),i=m}o&&o.call(this,a,l,u)},lt.shouldComponentUpdate=r}return s.__N||s.__}function B(t,e){var n=Sr(gn++,3);!It.__s&&Vo(n.__H,e)&&(n.__=t,n.i=e,lt.__H.__h.push(n))}function Hl(t,e){var n=Sr(gn++,4);!It.__s&&Vo(n.__H,e)&&(n.__=t,n.i=e,lt.__h.push(n))}function W(t){return ms=5,y(function(){return{current:t}},[])}function _m(t,e,n){ms=6,Hl(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=Sr(gn++,7);return Vo(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function N(t,e){return ms=8,y(function(){return t},e)}function Jo(t){var e=lt.context[t.__c],n=Sr(gn++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(lt)),e.props.value):t.__}function gm(){for(var t;t=Ul.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Rr),t.__H.__h.forEach(fo),t.__H.__h=[]}catch(e){t.__H.__h=[],It.__e(e,t.__v)}}It.__b=function(t){lt=null,Xa&&Xa(t)},It.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),nc&&nc(t,e)},It.__r=function(t){Ka&&Ka(t),gn=0;var e=(lt=t.__c).__H;e&&(Yi===lt?(e.__h=[],lt.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=vr,n.__N=n.i=void 0})):(e.__h.forEach(Rr),e.__h.forEach(fo),e.__h=[],gn=0)),Yi=lt},It.diffed=function(t){qa&&qa(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ul.push(e)!==1&&Qa===It.requestAnimationFrame||((Qa=It.requestAnimationFrame)||Im)(gm)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==vr&&(n.__=n.__V),n.i=void 0,n.__V=vr})),Yi=lt=null},It.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Rr),n.__h=n.__h.filter(function(s){return!s.__||fo(s)})}catch(s){e.some(function(r){r.__h&&(r.__h=[])}),e=[],It.__e(s,n.__v)}}),tc&&tc(t,e)},It.unmount=function(t){ec&&ec(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(s){try{Rr(s)}catch(r){e=r}}),n.__H=void 0,e&&It.__e(e,n.__v))};var sc=typeof requestAnimationFrame=="function";function Im(t){var e,n=function(){clearTimeout(s),sc&&cancelAnimationFrame(e),setTimeout(t)},s=setTimeout(n,100);sc&&(e=requestAnimationFrame(n))}function Rr(t){var e=lt,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),lt=e}function fo(t){var e=lt;t.__c=t.__(),lt=e}function Vo(t,e){return!t||t.length!==e.length||e.some(function(n,s){return n!==t[s]})}function Yl(t,e){return typeof e=="function"?e(t):e}var pm=0;function c(t,e,n,s,r,i){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,constructor:void 0,__v:--pm,__i:-1,__u:0,__source:r,__self:i};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)l[a]===void 0&&(l[a]=o[a]);return K.vnode&&K.vnode(u),u}const Gl=Zo({endpoints:F,hasError:!1,http:$d,isExpired:void 0,refresh:st,refreshing:!1}),ym=({children:t,session:e})=>{const[,n]=$(0),[s,r]=$(0);return B(()=>e.subscribe(i=>{(gs(i)?r:n)(a=>a+1)}),[s,e]),c(Gl.Provider,{value:e.context,children:Ge(t)})},ue=()=>Jo(Gl);function Ar({fetchOptions:t={keepPrevData:!0},queryFn:e,params:n}){W(new Map);const s=W(!1),r={error:void 0,data:void 0,isFetching:Ye(t.enabled)},i=(u,m)=>{switch(m.type){case"loading":return{...r,isFetching:!0,data:t.keepPrevData?u.data:void 0};case"fetched":return{...r,data:m.payload,isFetching:!1};case"error":return{...r,error:m.payload,isFetching:!1};default:return u}},[o,a]=Oi(i,r),l=N(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 B(()=>(s.current=!1,Ye(t.enabled)&&l(),()=>{s.current=!0}),[t.enabled,l]),o}const Sm=(t,e)=>{const{getBalanceAccounts:n}=ue().endpoints,{data:s,isFetching:r,error:i}=Ar(y(()=>({fetchOptions:{enabled:!!n&&(e??!0),keepPrevData:!0},queryFn:async()=>n==null?void 0:n(F)}),[n])),o=y(()=>s==null?void 0:s.data.filter(l=>t?l.id===t:!0),[s==null?void 0:s.data,t]),a=y(()=>!!t&&!!(s!=null&&s.data.length)&&(o==null?void 0:o.length)===0,[o==null?void 0:o.length,s==null?void 0:s.data.length,t]);return{balanceAccounts:o,isBalanceAccountIdWrong:a,isFetching:r,error:i}},bi=Sm,Am="adyen-pe-data-overview-container--with-error",zt="adyen-pe-typography";var b=(t=>(t.CAPTION="caption",t.BODY="body",t.SUBTITLE="subtitle",t.TITLE="title",t))(b||{}),Se=(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))(Se||{}),pe=(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))(pe||{});function Zl(t,e){for(var n in e)t[n]=e[n];return t}function _o(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 rc(t,e){this.props=t,this.context=e}function Et(t,e){function n(r){var i=this.props.ref,o=i==r.ref;return!o&&i&&(i.call?i(null):i.current=null),e?!e(this.props,r)||!o:_o(this.props,r)}function s(r){return this.shouldComponentUpdate=n,hs(t,r)}return s.displayName="Memo("+(t.displayName||t.name)+")",s.prototype.isReactComponent=!0,s.__f=!0,s}(rc.prototype=new ve).isPureReactComponent=!0,rc.prototype.shouldComponentUpdate=function(t,e){return _o(this.props,t)||_o(this.state,e)};var ic=K.__b;K.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ic&&ic(t)};var Tm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Is(t){function e(n){var s=Zl({},n);return delete s.ref,t(s,n.ref||null)}return e.$$typeof=Tm,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Nm=K.__e;K.__e=function(t,e,n,s){if(t.then){for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}Nm(t,e,n,s)};var oc=K.unmount;function Jl(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=Zl({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(s){return Jl(s,e,n)})),t}function Vl(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(s){return Vl(s,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Gi(){this.__u=0,this.t=null,this.__b=null}function Ql(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Or(){this.u=null,this.o=null}K.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),oc&&oc(t)},(Gi.prototype=new ve).__c=function(t,e){var n=e.__c,s=this;s.t==null&&(s.t=[]),s.t.push(n);var r=Ql(s.__v),i=!1,o=function(){i||(i=!0,n.__R=null,r?r(a):a())};n.__R=o;var a=function(){if(!--s.__u){if(s.state.__a){var l=s.state.__a;s.__v.__k[0]=Vl(l,l.__c.__P,l.__c.__O)}var u;for(s.setState({__a:s.__b=null});u=s.t.pop();)u.forceUpdate()}};s.__u++||32&e.__u||s.setState({__a:s.__b=s.__v.__k[0]}),t.then(o,o)},Gi.prototype.componentWillUnmount=function(){this.t=[]},Gi.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]=Jl(this.__b,n,s.__O=s.__P)}this.__b=null}var r=e.__a&&hs(q,null,t.fallback);return r&&(r.__u&=-33),[hs(q,null,e.__a?null:t.children),r]};var ac=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 Lm(t){return this.getChildContext=function(){return t.context},t.children}function Em(t){var e=this,n=t.i;e.componentWillUnmount=function(){vn(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,r){this.childNodes.push(s),e.i.appendChild(s)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),e.i.removeChild(s)}}),vn(hs(Lm,{context:e.context},t.__v),e.l)}function Xl(t,e){var n=hs(Em,{__v:t,i:e});return n.containerInfo=e,n}(Or.prototype=new ve).__a=function(t){var e=this,n=Ql(e.__v),s=e.o.get(t);return s[0]++,function(r){var i=function(){e.props.revealOrder?(s.push(r),ac(e,t,s)):r()};n?n(i):i()}},Or.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ge(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},Or.prototype.componentDidUpdate=Or.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ac(t,n,e)})};var Mm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Cm=/^(?: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]/,Dm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Om=/[A-Z0-9]/g,bm=typeof document<"u",vm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};ve.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ve.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var cc=K.event;function Rm(){}function wm(){return this.cancelBubble}function xm(){return this.defaultPrevented}K.event=function(t){return cc&&(t=cc(t)),t.persist=Rm,t.isPropagationStopped=wm,t.isDefaultPrevented=xm,t.nativeEvent=t};var jm={enumerable:!1,configurable:!0,get:function(){return this.class}},lc=K.vnode;K.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,s=e.type,r={};for(var i in n){var o=n[i];if(!(i==="value"&&"defaultValue"in n&&o==null||bm&&i==="children"&&s==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&o===!0?o="":a==="translate"&&o==="no"?o=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||s!=="input"&&s!=="textarea"||vm(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Dm.test(i)?i=a:s.indexOf("-")===-1&&Cm.test(i)?i=i.replace(Om,"-$&").toLowerCase():o===null&&(o=void 0):a=i="oninput",a==="oninput"&&r[i=a]&&(i="oninputCapture"),r[i]=o}}s=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ge(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),s=="select"&&r.defaultValue!=null&&(r.value=Ge(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",jm)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(t),t.$$typeof=Mm,lc&&lc(t)};var uc=K.__r;K.__r=function(t){uc&&uc(t),t.__c};var dc=K.diffed;K.diffed=function(t){dc&&dc(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 Pm({el:t,className:e,stronger:n,strongest:s,variant:r,medium:i,large:o,wide:a,children:l}){const u=t||"p",m=y(()=>({[`${zt}--${b.CAPTION}`]:r===b.CAPTION,[`${zt}--${b.CAPTION}-${Se.WIDE}`]:r===b.CAPTION&&a,[`${zt}--${b.CAPTION}-${Se.STRONGER}`]:r===b.CAPTION&&n,[`${zt}--${b.BODY}`]:r===b.BODY,[`${zt}--${b.BODY}-${Se.WIDE}`]:r===b.BODY&&a,[`${zt}--${b.BODY}-${Se.STRONGER}`]:r===b.BODY&&n,[`${zt}--${b.BODY}-${Se.STRONGEST}`]:r===b.BODY&&s,[`${zt}--${b.SUBTITLE}`]:r===b.SUBTITLE,[`${zt}--${b.SUBTITLE}-${Se.STRONGER}`]:r===b.SUBTITLE&&n,[`${zt}--${b.TITLE}`]:r===b.TITLE&&!i&&!o,[`${zt}--${b.TITLE}-${Se.MEDIUM}`]:r===b.TITLE&&i,[`${zt}--${b.TITLE}-${Se.LARGE}`]:r===b.TITLE&&o}),[r,a,n,i,o,s]);return c(u,{className:z([`${zt}`,m,e]),children:l})}const U=Et(Pm),Kl=Zo({i18n:new Ci().i18n,loadingContext:"",commonProps:{},updateCore:st}),km=()=>Jo(Kl),V=km;const Wm="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjMiIGhlaWdodD0iMTY5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjIzIDE2OSI+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzYuNiAxMTIuMmMuNi0uMSAxLS43IDEtMS4zbC0uOS04LjcgMi4xIDYuNmMuMi42LjguOCAxLjQuNy42LS4xIDEtLjcuOC0xLjJsLTEuMy02LjggMi45LTQuOC01LjktNS41LTcuNiA5IDUgNC43IDEgNi4yYzAgLjcuNyAxLjIgMS41IDFaIi8+CiAgICA8cGF0aCBmaWxsPSIjRUFCMUEwIiBkPSJNMzEuNyAxMDMuNmMuMy40IDEuMiA2LjYgMS41IDkgMCAuNS42IDEgMS4xIDFoLjNjLjcgMCAxLjItLjYgMS4xLTEuM2wtLjctOS4xIi8+CiAgICA8cGF0aCBzdHJva2U9IiMwMDExMkMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2Utd2lkdGg9Ii42IiBkPSJNMzEuNyAxMDMuNmMuMy40IDEuMiA2LjYgMS41IDkgMCAuNS42IDEgMS4xIDFoLjNjLjcgMCAxL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RoPSIuNiIgZD0iTTIuMyAxNjhoMjE5LjQiLz4KICAgIDxwYXRoIGZpbGw9IiMwMDExMkMiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjYiIGQ9Ik0yOS4yIDI2LjNjNi4yIDAgMTEuMy00LjcgMTEuMy0xMC41UzM1LjQgNS4yIDI5LjIgNS4yQzIzIDUuMiAxNy45IDEwIDE3LjkgMTUuOHM1IDEwLjUgMTEuMyAxMC41WiIvPgogICAgPHBhdGggc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIuNiIgZD0ibTI1LjIgMTIgOCA3LjVNMzMuMiAxMmwtOCA3LjUiLz4KPC9zdmc+",Zt=t=>Is(t),Yr=(()=>{const t=new Set,e=(s,r,i,o)=>{let a=o==null?void 0:o[i];return a=X(a)?a:yi,!yn(a(s[i]),a(r[i]))};return Object.defineProperty(s=>(r,i)=>{try{for(const o in r)if(t.add(o),e(r,i,o,s))return!1;for(const o in i)if(!t.has(o)&&(t.add(o),e(r,i,o,s)))return!1;return!0}finally{t.clear()}},"exclude",{value:st})})(),hc=/^\s+|\s+(?=\s|$)/g,kn=(t,e)=>(e?typeof e=="string"?e:(e==null?void 0:e.value)??"":"").replace(hc,"")||t.replace(hc,"")||void 0,Gr=(t,e,n)=>z(kn("",n),kn(kn("",e)||"",t)),Qo=(t,e=[],n=[])=>z([...n,...e==null?void 0:e.map(s=>t?`${t}--${s}`:s)]),Xo=t=>En(t,(t==null?void 0:t.value)??t),Bm=(t,e,n,s,r)=>{const i=N(a=>{a.preventDefault(),s||r==null||r(a)},[s,r]);return{classes:y(()=>Qo(n,e,[n,t]),[e,t]),click:i}},Ko=Bm,we="adyen-pe-button",go=`${we}-actions`,zm=`${we}--icon`,Fm=`${we}--icon-content`,$m=`${go}__container-wrapper`,Um=`${we}__label`,Hm=`${we}__icon-right`,Ym=`${we}__icon-left`;var Nt=(t=>(t.PRIMARY="primary",t.SECONDARY="secondary",t.TERTIARY="tertiary",t.LINK="link",t))(Nt||{});function Gm({variant:t=Nt.PRIMARY,disabled:e=!1,onClick:n,classNameModifiers:s=[],iconLeft:r,iconRight:i,type:o="button",children:a,className:l,iconButton:u=!1,...m},d){const _=y(()=>kn("",l)||"",[l]),f=y(()=>Xo(e),[e]),{classes:I,click:g}=Ko(_,[...s,t],we,f,n);return c("button",{className:u?`${zm} ${I}`:I,type:o,disabled:e,onClick:g,ref:d,...m,children:u?c("div",{className:`${Fm}`,children:a}):c(q,{children:[r&&c("span",{className:Ym,children:r}),c(U,{className:Um,el:pe.SPAN,variant:b.BODY,stronger:!0,children:a}),i&&c("span",{className:Hm,children:i})]})})}const Pt=Zt(Gm),mc={md:680,lg:1024},Wn=({title:t,message:e,imageDesktop:n,imageMobile:s,withImage:r,centered:i,refreshComponent:o,onContactSupport:a,translationValues:l})=>{const{i18n:u,updateCore:m}=V(),d=N(_=>Array.isArray(_)?_.map((f,I)=>I===0?c(q,{children:[u.get(f),l&&l[f]&&c(q,{children:l[f]})]}):c(q,{children:[c("br",{}),u.get(f),l&&l[f]&&c(q,{children:l[f]})]})):u.get(_),[u,l]);return c("div",{className:`adyen-pe-error-message-display ${i?"adyen-pe-error-message-display--centered":""}`,children:[(n||s||r)&&c("div",{className:"adyen-pe-error-message-display__illustration",children:c("picture",{children:[c("source",{type:"image/svg+xml",media:`(min-width: ${mc.md}px)`,srcSet:n}),c("source",{type:"image/svg+xml",media:`(max-width: ${mc.md}px)`,srcSet:s}),c("img",{srcSet:n??Wm,alt:u.get("thereWasAnUnexpectedError")})]})}),c(U,{variant:b.TITLE,children:u.get(t)}),e&&c(U,{variant:b.BODY,children:d(e)}),(a||o)&&c("div",{className:"adyen-pe-error-message-display__button",children:[a&&c(Pt,{onClick:a,children:u.get("reachOutToSupport")}),!a&&o&&c(Pt,{onClick:m,children:u.get("refresh")})]})]})},Io={title:"thereWasAnUnexpectedError",message:["pleaseReachOutToSupportForAssistance"]},Zm=(t,e)=>{if(!t)return null;switch(t.errorCode){case"29_001":return{title:"theRequestIsMissingRequiredFieldsOrContainsInvalidData",message:["pleaseReachOutToSupportForAssistance"],onContactSupport:e};case"30_112":return{title:"entityWasNotFound",message:["entityWasNotFoundDetail"],onContactSupport:e};case"00_403":return Io;default:return null}},Vt={sm:480,md:768,lg:1024},Jm=t=>{const e=y(()=>window.matchMedia(t),[t]),[n,s]=$(e.matches);return B(()=>{const r=i=>s(i.matches);return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[e]),B(()=>{s(e.matches)},[e]),n},mt={up:{sm:`(min-width: ${Vt.sm}px)`,md:`(min-width: ${Vt.md}px)`,lg:`(min-width: ${Vt.lg}px)`},down:{xs:`(max-width: ${Vt.sm-1}px)`,sm:`(max-width: ${Vt.md-1}px)`,md:`(max-width: ${Vt.lg-1}px)`},only:{xs:`(max-width: ${Vt.sm-1}px)`,sm:`(min-width: ${Vt.sm}px) and (max-width: ${Vt.md-1}px)`,md:`(min-width: ${Vt.md}px) and (max-width: ${Vt.lg-1}px)`,lg:`(min-width: ${Vt.lg}px)`}},ft=Jm;var qo=(t=>(t.BUTTONS_END="buttons-end",t.FILL_CONTAINER="fill-container",t.SPACE_BETWEEN="space-between",t.VERTICAL_STACK="vertical-stack",t))(qo||{}),ql=(t=>(t.BUTTONS_START="buttons-start",t))(ql||{});const Vm={...qo,...ql};function Qm({actions:t,layout:e=Vm.BUTTONS_END}){const n=()=>`${go}--${e}`,s=i=>{const o=t.length-1;return i===o?Nt.PRIMARY:Nt.SECONDARY},r=y(()=>[...t].reverse(),[t]);return c("div",{className:go,children:c("div",{className:`${$m} ${n()}`,role:"group",children:r.map((i,o)=>c(Pt,{"aria-label":i.title,disabled:i.disabled,variant:i.variant||s(o),onClick:i.event,children:i.title},o))})})}const Xm=Et(Qm),te="adyen-pe-popover",tu="adyen-pe-tooltip",Km=`${te}-container`,fc=`${te}__header`,qm=`${te}__header-title`,Zi=`${te}__content`,eu=`${tu}__content`,tf=`${te}__footer`;function ef({image:t=!0,onClick:e}){const{i18n:n}=V();return c(q,{children:c(Pt,{className:(()=>t?"adyen-pe-popover-dismiss-button--on-image":"")(),iconButton:!0,variant:Nt.TERTIARY,onClick:e,"aria-label":n.get("closeIconLabel"),children:c("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",children:[c("title",{children:"dismiss"}),c("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 nf=Et(ef);function sf({title:t,isImageTitle:e=!1}){return c(U,{strongest:!e,variant:(()=>e?b.SUBTITLE:b.BODY)(),children:t})}const rf=Et(sf);var bt=(t=>(t.TOOLTIP="tooltip",t.POPOVER="popover",t))(bt||{}),at=(t=>(t.TOP="top",t.TOP_LEFT="top-left",t.RIGHT="right",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.LEFT="left",t))(at||{}),ws=(t=>(t.MEDIUM="medium",t.WIDE="wide",t))(ws||{}),H=(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))(H||{}),G=(t=>(t.BALANCE_ACCOUNT="balanceAccount",t.CATEGORIES="categories",t.CURRENCIES="currencies",t.CREATED_SINCE="createdSince",t.CREATED_UNTIL="createdUntil",t.STATUSES="statuses",t.MIN_AMOUNT="minAmount",t.MAX_AMOUNT="maxAmount",t))(G||{});const Ts=(()=>{let t=[];const e=o=>{const a=o.reduce((l,u)=>{const m=u instanceof Node?t.findIndex(d=>{const _=d.element.getAttribute("id"),f=u&&(u!=null&&u.getAttribute)?u==null?void 0:u.getAttribute("id"):null;return _===f}):-1;return l===-1&&m!==-1?m:l},-1);a===-1?r(0):a+1<=t.length-1&&r(a+1)},n=o=>{const a=t.findIndex(l=>l.element.getAttribute("id")===o.getAttribute("id"));a>=0&&t.splice(a,1)},s=(o,a)=>{t.findIndex(u=>u.element.getAttribute("id")===o.getAttribute("id"))>=0||t.push({element:o,callback:a})},r=o=>{var l,u;const a=t.length;for(let m=o;m<a;m++)(u=(l=t==null?void 0:t[m])==null?void 0:l.callback)==null||u.call(l);t.splice(o)};return{add:s,remove:n,closeAll:()=>{t.forEach(o=>{var a;return(a=o==null?void 0:o.callback)==null?void 0:a.call(o)}),t=[]},closePopoversOutsideOfClick:e}})(),xs=Symbol("_ref");class nu extends Error{}class of extends nu{}class af extends nu{}function ta(t){if(!X(t))throw new af}const cf=t=>{try{if(X(t)&&le(t,"current")&&le(t,xs)&&!yn(t,t[xs])){const e=t.actions.get(F),n=t.actions.size;return Z(e)&&Number.isInteger(n)&&n>=0}}catch{}return!1},js=t=>cf(t)?js(t[xs]):t,lf=(()=>{const t=(s,r)=>{const i=s.get(r);if(!i)throw new of;return i},e=(s,r,i)=>{let o,a;const l=js(r);try{o=t(s,l)}catch{ta(i)}if(o)[,a]=o;else{const u=X(l),m=u?f=>{l(_=f)}:f=>{l.current=f,_=l.current},d=f=>{if(a.size===0)return;const I=_;if(m(f),!yn(_,I))for(const[g]of a)g(_,I)};let _=u?null:l.current;s.set(l,o=[d,a=new Map]),Object.defineProperties(d,{[xs]:{value:l},actions:{value:J({get:{value:a.get.bind(a)},size:{get:()=>a.size}})},current:{get:()=>_,set:u?void 0:d}})}return i&&a.set(i,1+(a.get(i)||0)),o[0]},n=(s,r,i)=>{const o=js(r),[,a]=t(s,o),l=a.get(i)||0;l===1?a.delete(i):l>1&&a.set(i,l-1),a.size===0&&s.delete(o)};return()=>{const s=new WeakMap;return J({bind:x(e.bind(void 0,s)),unbind:x(n.bind(void 0,s))})}})(),uf=lf(),df=t=>{ta(t);const e=new WeakMap([[t,1]]),n=r=>{if(yn(s,r))return;const i=s;t(s=r,i)};let s=null;return Object.defineProperties(n,{[xs]:{value:n},actions:{value:J({get:{value:e.get.bind(e)},size:{value:1}})},current:{get:()=>s,set:n}})},hf=(t=uf)=>{let e,n=null,s,r=!1;const i=u=>{e=void 0,n=null,s=u,r=!1},o=()=>{r||(a(),r=!0)},a=()=>{try{if(!n)return;t.unbind(n,s)}catch{}};return J({action:{get:()=>s},reflex:{get:()=>e},release:{value:o},update:{value:(u,m)=>{ta(u),r&&i(u);const d=ht(m)?null:m;if(s===u&&n===d){if(e)return}else if(n){if(yn(js(n),js(d))){e=t.bind(n,u),a(),s=u;return}a()}s=u,e=(n=d)?t.bind(n,s):df(s)}}})},mf=(t,e)=>{const n=W(hf());return Hl(()=>n.current.release,[]),y(()=>(n.current.update(t,e),n.current.reflex),[t,e])},je=mf,Rn=Symbol("__control.Elem.");var su=(t=>(t.POPOVER="POPOVER",t.DEFAULT="DEFAULT",t))(su||{});const _c=t=>{t.stopImmediatePropagation()},ea=(t,e,n,s)=>{const r=W(null),i=N(a=>{const l=a.composedPath();if(r&&r.current)if(s==="POPOVER")Ts.closePopoversOutsideOfClick(l);else{let u=0,m=!1,d=l[u];for(;d instanceof Element&&!(m||(m=d==null?void 0:d.isSameNode(r.current)));)d=l[++u]??d.parentElement,(d==null?void 0:d[Rn])instanceof Element&&(d=d[Rn],l.length=0);e&&!m&&e(!0)}},[r,e,s]),o=W(i);return B(()=>()=>{r.current&&Ts.remove(r.current),document.removeEventListener("click",o.current,!0)},[]),B(()=>(document.removeEventListener("click",o.current,!0),o.current=i,document.addEventListener("click",o.current,!0),s==="POPOVER"&&r.current instanceof Element&&Ts.add(r.current,e),()=>{r.current&&Ts.remove(r.current),document.removeEventListener("click",o.current,!0)}),[i,e,s]),B(()=>{n?document.removeEventListener("click",o.current,!0):document.addEventListener("click",o.current,!0)},[n]),je(N((a,l)=>{l instanceof Element&&l.removeEventListener("focusout",_c,!0),a instanceof Element&&(n||(a.addEventListener("focusout",_c,!0),r.current=a))},[n,s]),t)},na=`
2
2
  a[href],
3
3
  audio[controls],
4
4
  video[controls],
@@ -8,5 +8,5 @@
8
8
  textarea,
9
9
  [contenteditable],
10
10
  [tabindex]
11
- `.replace(/\s+/,""),Eb=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],Hi=new Map,Dl=e=>e.tagName==="INPUT",Mb=e=>Dl(e)&&e.type==="radio",vb=e=>{const t=e.name,n=e.form,o=Hi.get(n);let s=o==null?void 0:o.get(t);return H(s)&&n&&(s=n.querySelector(`input[type=radio][name='${t}']:checked`)||null,Hi.set(n,(o||new Map).set(t,s))),s===e},bb=(e,t)=>{for(const n of t)if(n.type!=="attributes"){if(_i(n.addedNodes,o=>o instanceof Element&&la(o))||_i(n.removedNodes,o=>e.includes(o)))return!0}else{if(la(n.target))return!0;if(e.includes(n.target))return!0}return!1},Ja=(e=document.body,t)=>{if(H(e))return!1;if(ue(t))return!!document.activeElement&&Ja(e,document.activeElement);let n=t==null?void 0:t.parentNode;for(;n;){if(n===e)return!0;n=n==null?void 0:n.parentNode}return!1},Qa=e=>!(!e.matches(Va)||e!=null&&e.disabled||/^(true)?$/.test(e.getAttribute("inert"))||Dl(e)&&e.hidden),la=e=>!(Mb(e)&&!vb(e)||(e==null?void 0:e.tabIndex)<0||!Qa(e)),Db=()=>{const e=new MutationObserver(i=>bb(t,i)&&r()),t=[];let n=-1,o=null;const s=i=>{var d;if(i<0)return;const c=Math.min(i,t.length-1);n!==c&&(n=c),(d=t[n])==null||d.focus()},r=()=>{t.length=0,o instanceof Element&&(o.querySelectorAll(Va).forEach(i=>la(i)&&t.push(i)),Ja(o)&&(a.current=document.activeElement))},a=Object.create(null,{current:{get:()=>t[n]??null,set:i=>{if(i){if(!us(i))return s(t.indexOf(i));if(i===~~i)return s(ds(n+i,t.length))}}},root:{get:()=>o,set:i=>{i!==o&&(o&&e.disconnect(),o=i instanceof Element?i:null,t.length=0,o&&(e.observe(o,{attributeFilter:Eb,attributes:!0,childList:!0,subtree:!0}),r()))}},tabbables:{value:t}});return a},Ob=Db,$b=(e,t)=>{const n=k(!1),o=k(null),s=k(!1),r=T(Ob,[]),a=T(()=>{let g=null,u;return p=>{H(u)||cancelAnimationFrame(u);let m=p.target;for(;m&&m!==p.currentTarget;){if(Qa(m)){g=m,u=requestAnimationFrame(()=>{u=requestAnimationFrame(()=>{var y;o.current!==g&&g instanceof HTMLElement&&((y=o.current=g)==null||y.focus()),g=null,u=void 0})});return}m=m.parentNode}}},[]),i=L(g=>{r.current=o.current=g.target},[]),c=L(g=>{r.tabbables.includes(g.relatedTarget)||Ja(g.currentTarget,g.relatedTarget)||s.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&t(n.current=!1)}))},[]),d=T(()=>{let g;return u=>{switch(u.code){case Y.ARROW_DOWN:case Y.ARROW_LEFT:case Y.ARROW_RIGHT:case Y.ARROW_UP:case Y.END:case Y.ESCAPE:case Y.HOME:case Y.PAGE_DOWN:case Y.PAGE_UP:case Y.TAB:cancelAnimationFrame(g),g=requestAnimationFrame(()=>{g=requestAnimationFrame(()=>{s.current=!1,g=void 0})}),s.current=!0;break}u.code===Y.TAB?(u.preventDefault(),r.current=u.shiftKey?-1:1):u.code===Y.ESCAPE&&t(!0)}},[]);return $t(L((g,u)=>{u instanceof Element&&(u.removeEventListener("keydown",d,!0),u.removeEventListener("focusin",i,!0),u.removeEventListener("focusout",c,!0),g.removeEventListener("click",a,!0)),g instanceof Element?(g.addEventListener("keydown",d,!0),g.addEventListener("focusin",i,!0),g.addEventListener("focusout",c,!0),g.addEventListener("click",a,!0),n.current=!1,r.root=g):r.root=null},[]),e)},Rb=$b,xb=(()=>{const e=new WeakMap,t=G({remove:$(function(){o(this.observerCallback)})}),n=s=>{let r=e.get(s);if(H(r)){const a=new IntersectionObserver(i=>{i.forEach(c=>{s&&s(c)})},{root:null,rootMargin:"",threshold:[1]});r=uo(t,{observerCallback:$(s),observer:$(a)}),e.set(s,r)}return r},o=s=>{const r=e.get(s);r==null||r.observer.disconnect(),e.delete(s)};return n})(),Br=xb,wb=({popover:e,offset:t,targetElement:n,position:o,variant:s,fullWidth:r})=>{const a=n==null?void 0:n.current;let i=0,c=0;const d=a.getBoundingClientRect(),g=document.body.getBoundingClientRect(),u=e==null?void 0:e.firstChild,p=g.left+g.width/2-u.offsetWidth/2,m=d.left+d.width/2-u.offsetWidth/2,y=d.top+d.height/2-u.offsetHeight/2;switch(o){case ie.BOTTOM:i=r?p:s===De.TOOLTIP?m+window.scrollX:(d==null?void 0:d.left)+window.scrollX,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ie.BOTTOM_LEFT:i=(d==null?void 0:d.right)+window.scrollX-e.clientWidth,c=(d==null?void 0:d.top)+(d==null?void 0:d.height)+window.scrollY+t[1];break;case ie.TOP:i=s===De.TOOLTIP?m+window.scrollX:d.left+window.scrollX,c=(d==null?void 0:d.top)-(u==null?void 0:u.clientHeight)+window.scrollY-t[0];break;case ie.RIGHT:i=d.left+d.width+window.scrollX+t[2],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)-(d==null?void 0:d.height)/2+window.scrollY;break;case ie.LEFT:i=(d==null?void 0:d.left)-(e==null?void 0:e.clientWidth)+window.scrollX-t[3],c=s===De.TOOLTIP?y+window.scrollY:(d==null?void 0:d.top)+window.scrollY-(d==null?void 0:d.height)/2;break}const f=[i,c,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${f.reduce((I,M,C)=>C===0?I+`${M}px,`:C===f.length-1?I+` ${M}px)`:I+` ${M}px,`,"translate3d(")};visibility:hidden`},Pb=(e,t,n,o,s,r,a,i,c)=>{const[d,g]=U(!0),[u,p]=U(i?!i:!!o),[m,y]=U(o||ie.TOP),[f,A]=U([]),I=L(C=>{if(C.intersectionRatio===1)return p(!0);if(!d&&C.intersectionRatio!==1){if(f&&f.length===(i?5:4)){const v=f.reduce((P,E)=>E[1]>P[1]?E:P,f[0]);y(v[0]),p(!0);return}switch(p(!1),m){case ie.TOP:A(v=>[...v,[ie.TOP,C.intersectionRatio]]),y(ie.BOTTOM);break;case ie.BOTTOM:A(v=>[...v,[ie.BOTTOM,C.intersectionRatio]]),y(i?ie.BOTTOM_LEFT:ie.RIGHT);break;case ie.BOTTOM_LEFT:A(v=>[...v,[ie.BOTTOM,C.intersectionRatio]]),y(ie.RIGHT);break;case ie.RIGHT:A(v=>[...v,[ie.RIGHT,C.intersectionRatio]]),y(ie.LEFT);break;case ie.LEFT:A(v=>[...v,[ie.LEFT,C.intersectionRatio]]),y(ie.TOP);break}}},[d,f,m,i]),M=k(I);return W(()=>{Br(M.current).remove(),M.current=I},[I]),$t(L((C,v)=>{var P,E;if(v&&(!o||i)&&Br(I).observer.unobserve(v),C&&t.current){if((!o||i)&&Br(I).observer.observe(C),!(C instanceof Element))return;const b=wb({popover:C,offset:e,targetElement:t,position:m,variant:n,fullWidth:a??!1}),D=u?b+";visibility:visible":b,j=r?D+";min-width:fit-content;width:"+((P=t.current)==null?void 0:P.clientWidth)+"px":D;C.setAttribute("style",`${j}`),d&&g(!1),n&&n===De.TOOLTIP&&s&&((E=s.current)==null||E.setAttribute("data-popover-placement",m))}},[e,t,m,o,n,I,u,d,r,s,a,i]),c)},kb=Pb,jb=e=>{const t=k();return $t(L((n,o)=>{o instanceof Element&&o.id===t.current&&(o.id=""),n instanceof Element&&(n.id=t.current||(t.current=Ed()))},[e]),e)},Ws=jb;const Fb=e=>{var o;let t;const n=(o=e.querySelector(`.${Ml}`))==null?void 0:o.querySelectorAll(Va);return n?(Array.prototype.some.call(n,s=>{if(Qa(s))return t=s}),t):null},Wb=e=>e===De.TOOLTIP?[10,3,5,5]:[15,15,15,15];function Xa({actions:e,disableFocusTrap:t=!1,actionsLayout:n=Ga.SPACE_BETWEEN,variant:o=De.TOOLTIP,title:s,open:r,dismissible:a,modifiers:i,divider:c,fitContent:d,withoutSpace:g,containerSize:u,position:p,targetElement:m,setToTargetWidth:y,dismiss:f,children:A,withContentPadding:I,classNameModifiers:M,showOverlay:C=!1,fitPosition:v,...P}){const E=T(()=>ee(f)&&Bt(a),[f,a]),b=Ws(),D=k(),j=L(fe=>{var de;f&&f(),fe&&((de=m==null?void 0:m.current)==null||de.focus())},[f,m]),R=L(fe=>{fe.code===Y.ESCAPE&&(f&&f(),(m==null?void 0:m.current).focus())},[f,m]),X=k(R),B=k(),se=Za(kb(Wb(o),m,o,p,b,y,C,v),f,o===De.TOOLTIP&&!r,bl.POPOVER),K=Rb(t?null:se,j),re=$t(L((fe,de)=>{de instanceof Element&&(de[En]=void 0,delete de[En]),fe instanceof Element&&(fe[En]=m.current,cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{if(D.current===r||!(D.current=r))return;const be=Fb(fe);be==null||be.focus()}))},[r,m]),t?se:K),Ee=Ws(re),Me=T(()=>({[`${Qe}--medium`]:u===Oo.MEDIUM,[`${Qe}--with-divider`]:!!c,[`${Qe}--wide`]:u===Oo.WIDE,[`${Qe}--fit-content`]:d,[`${Qe}--without-space`]:g,[`${Qe}--auto-width`]:C}),[u,c,g,d,C]);W(()=>{re.current&&(re.current[En]=m.current)},[m]),W(()=>(document.removeEventListener("keydown",X.current),document.addEventListener("keydown",X.current=R),()=>document.removeEventListener("keydown",X.current)),[R]);const ve=o===De.TOOLTIP?El:`${Qe} ${db}`,ke=o===De.TOOLTIP?Ml:`${Wr}`;return Nl(l(V,{children:r?l(V,{children:[C&&l("div",{className:"adyen-pe-popover__overlay"}),l("div",{id:"popover",ref:Ee,...P,className:F(ve,Me,M),style:{visibility:"hidden"},role:P.role??(o===De.POPOVER?"dialog":"tooltip"),children:[(s||E)&&l("div",{className:za(Yi,i,[Yi]),children:[s&&l("div",{className:hb,children:l(yb,{title:s})}),E&&l(pb,{onClick:f})]}),A&&l(V,{children:[l("div",{className:F(ke,{[`${Wr}--with-padding`]:I,[`${Wr}--overlay`]:C}),children:A}),o===De.TOOLTIP&&l("span",{"data-popover-placement":"hidden",ref:b,className:"adyen-pe-tooltip__arrow"})]}),e&&l("div",{className:gb,children:l(ub,{actions:e,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const Bb=(e=!1)=>{const[t,n]=U(e),o=L(r=>n(r),[]),s=L(()=>n(r=>!r),[]);return[t,o,s]},mt=Bb,zb=()=>{const[e,t]=mt(),n=L(()=>t(!0),[t]),o=L(()=>t(!1),[t]),s=L(r=>{switch(r.code){case Y.ESCAPE:o();break}},[o]);return{listeners:{onfocusoutCapture:o,onMouseLeave:o,onKeyDown:s,onFocus:n,onMouseEnter:n},isVisible:e}};const Ub=e=>typeof e=="string",Ka=({content:e,children:t,triggerRef:n,showTooltip:o,position:s,isContainerHovered:r=!1})=>{var g,u,p;const a=Ws(),i=Se(Ae.down.sm),{isVisible:c,listeners:d}=zb();return i?l(V,{children:t}):l(V,{children:[t?ml(t,{...t==null?void 0:t.props,role:"button",tabIndex:-1,ref:a,className:(g=t==null?void 0:t.props)!=null&&g.className?F(`${(u=t==null?void 0:t.props)==null?void 0:u.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":r}):F("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":r}),...d,"aria-describedby":`tooltip-${(p=a.current)==null?void 0:p.id}`}):null,(c||o)&&l(Xa,{variant:De.TOOLTIP,targetElement:n??a,position:s,open:c||o,children:l(V,{children:e&&Ub(e)?l(q,{variant:w.CAPTION,children:e}):{content:e}})})]})},Yb=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"})}),Gb=Yb;const Hb=({text:e})=>{const[t,n]=U(e),o=L(async()=>{if(e)try{await navigator.clipboard.writeText(e),n("Copied")}catch(r){console.log(r)}},[e]),s=L(()=>{n(e)},[n,e]);return l(Ka,{content:t,children:l(et,{variant:Oe.TERTIARY,className:"adyen-pe-copy-text",onClick:o,onBlur:s,onMouseLeaveCapture:s,children:[l("span",{className:"adyen-pe-copy-text__information",children:e}),l(Gb,{fill:"#0070f5"})]})})},Zb=Hb,qa=(e,t,n)=>{if(!e)return ca;const o=ab(e,n);if(o)return o;switch(e.errorCode){case void 0:return{title:"somethingWentWrong",message:[t,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":{const s=n?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";return{title:"somethingWentWrong",message:[t,s],translationValues:{[s]:e.requestId?l(Zb,{text:e.requestId}):null},onContactSupport:n}}default:return ca}};function Ol({balanceAccountsError:e,children:t,className:n,errorMessage:o,isBalanceAccountIdWrong:s,onContactSupport:r}){const{hasError:a}=Ut();return l("div",{className:F(n,{[xv]:a}),children:a?l($n,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):e?l($n,{withImage:!0,centered:!0,...qa(e,"weCouldNotLoadYourBalanceAccounts",r)}):s?l($n,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[o,"theSelectedBalanceAccountIsIncorrect"]}):l(V,{children:t})})}const Vb=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{fill:"currentColor",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"})}),$l=Vb;function Jb({title:e,children:t,classNameModifiers:n=[],isOpen:o,onClose:s,isDismissible:r=!0,headerWithBorder:a=!0,size:i="fluid",...c}){const d=Se(Ae.down.xs),{i18n:g}=Q(),u=Za(null,s),p=L(m=>{m.key==="Escape"&&o&&r&&s()},[o,r,s]);return W(()=>(o?window.addEventListener("keydown",p):window.removeEventListener("keydown",p),()=>window.removeEventListener("keydown",p)),[o,p]),l(V,{children:o&&l("div",{className:F("adyen-pe-modal-wrapper",n.map(m=>`adyen-pe-modal-wrapper--${m}`),{"adyen-pe-modal-wrapper--open":o,"adyen-pe-modal-wrapper--dismissible":r}),role:"dialog","aria-modal":"true","aria-hidden":!open,...c,children:l("div",{className:F("adyen-pe-modal",{"adyen-pe-modal--fluid":i==="fluid","adyen-pe-modal--small":i==="small","adyen-pe-modal--large":i==="large","adyen-pe-modal--extra-large":i==="extra-large","adyen-pe-modal--full-screen":i==="full-screen"||d}),ref:u,children:[l("div",{className:F("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":e,"adyen-pe-modal__header--with-border-bottom":a}),children:[e&&l("div",{className:"adyen-pe-modal__header__title",children:e}),r&&l(et,{onClick:s,variant:Oe.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":g.get("dismiss"),children:l($l,{})})]}),l("div",{className:"adyen-pe-modal__content",children:t})]})})})}const Qb=Ye(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("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"})]})),Cr=Qb,Xb=Ye(({title:e,...t},n)=>l("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:[e&&l("title",{children:e}),l("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"})]})),ei=Xb,ti="adyen-pe-accordion",ni=ti+"__header",Kb=ni+"-container",qb=ni+"-controller",eD=ti+"__content";function Zi({children:e,classNames:t,header:n,headerInformation:o}){var c;const[s,r]=U(!1),a=k(null),i=L(()=>{r(!s)},[s]);return l("div",{className:F(ti,t),children:[l("h3",{className:ni,children:[l("button",{id:"accordion-controller","aria-controls":"accordion-content",className:Kb,onClick:i,"aria-expanded":s,children:l("div",{className:qb,children:[n,s?l(ei,{height:8,width:15}):l(Cr,{height:8,width:15})]})}),o&&l("div",{children:o})]}),l("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:s?(c=a==null?void 0:a.current)==null?void 0:c.offsetHeight:0},className:eD,children:l("div",{ref:a,children:e})})]})}const Yt="adyen-pe-card",Rl=`${Yt}__body`,xl=`${Yt}__header`,tD=`${Yt}__title`,nD=`${Yt}__subtitle`,oD=`${xl}-content`,sD=`${Rl}--with-title`,rD=`${Yt}--no-outline`,aD=`${Yt}--filled`,iD=`${Yt}__footer`;const cD=({title:e,subTitle:t,children:n,footer:o,el:s,renderHeader:r,renderFooter:a,filled:i,noOutline:c,classNameModifiers:d})=>{const g=s||"header";return l("section",{className:F(Yt,{[aD]:i,[rD]:c},d),children:[(e||r)&&l(g,{className:xl,children:(e||r)&&l("div",{className:oD,children:[r||l("span",{className:tD,children:e}),t&&l("div",{className:nD,children:t})]})}),l("div",{className:F(Rl,{[sD]:e||r}),children:n}),(o||a)&&l("footer",{className:iD,children:a||o})]})},zr=cD,lD={month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1},uD={weekday:"long",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"shortOffset"},dD={month:"long",day:"numeric",year:"numeric"},hD={weekday:"long",month:"long",day:"numeric",year:"numeric"},Is="adyen-pe-structured-list",wl=`${Is}__item`,Vi=`${Is}__grid`,gD=`${Is}__content`,mD=`${Is}__label`,pD=`${wl}--has-highlight`;const fD=e=>{const{i18n:t}=Q();return T(()=>e.map(n=>({key:n.key,value:n.value,id:ba(),label:t.get(n.key)})),[t,e])},yD="6-6";function Ur({items:e,highlightable:t,renderValue:n,renderLabel:o,layout:s=yD,grid:r=!0}){const[a,i]=T(()=>s.split("-").map(g=>`${Vi}--width-${g}-of-12`),[s]),c=fD(e),{i18n:d}=Q();return l("div",{"aria-label":d.get("structuredList"),className:Is,children:c.map(g=>l("dl",{className:F(wl,{[pD]:t,[Vi]:r}),children:[l("dt",{className:F(mD,a),children:o?o(g.label):l(q,{variant:w.BODY,children:g.label})}),l("dd",{"aria-label":`${d.get(g.key)} ${d.get("value")}`,className:F(gD,i),children:n?n(g.value):l(q,{variant:w.BODY,children:g.value})})]},g.id))})}const ID=({isLoading:e,skeletonRowNumber:t=0})=>{const n=T(()=>Array.from({length:t},(o,s)=>s),[t]);return l(V,{children:n.map(o=>l("span",{className:F({"adyen-pe-transaction-data__skeleton":!0,"adyen-pe-transaction-data__skeleton-loading-content":e})},`transaction-data-skeleton-${o}`))})},Pl=ID,ua=e=>{const{i18n:t}=Q();return L((...n)=>{const o=t.timezone;try{return e(...n)}finally{t.timezone=o}},[t,e])},_D=e=>{const{i18n:t}=Q(),n=ua(L(()=>(t.timezone=void 0,t.timezone=e,t.timezone),[t,e]));return T(n,[n])},TD=e=>{const{i18n:t}=Q(),n=_D(e),o=ua(L((...r)=>(t.timezone=n,t.date(...r)),[t,n])),s=ua(L((...r)=>(t.timezone=n,t.fullDate(...r)),[t,n]));return{dateFormat:o,fullDateFormat:s}},mo=TD;const _s="adyen-pe-payout-data",AD=`${_s}__title`,SD=`${_s}__title--ba-id`,oi=`${_s}__content`,Tn=`${oi}--section`,Ms=`${oi}--card`,Ji=`${Ms}-title`,Co=`${Tn}-amount`,Qi=`${Co}-gross`,ND=`${Co}-net`,LD=`${_s}--unpaid-amount`,CD=({balanceAccountId:e,balanceAccountDescription:t,payout:n,isFetching:o})=>{var g;const{payout:s}=n??z,{i18n:r}=Q(),{dateFormat:a}=mo("UTC"),i=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.adjustmentBreakdown)==null?void 0:m.reduce((y,f)=>{var v,P,E,b,D,j,R;const A=(v=f==null?void 0:f.amount)!=null&&v.value&&((P=f==null?void 0:f.amount)!=null&&P.currency)?r.amount((E=f==null?void 0:f.amount)==null?void 0:E.value,(b=f==null?void 0:f.amount)==null?void 0:b.currency,{hideCurrency:!0}):(((D=f==null?void 0:f.amount)==null?void 0:D.value)??"").toString(),I=`${f==null?void 0:f.category}`,M=r.get(I),C=f!=null&&f.category&&M!==I?M:f==null?void 0:f.category;return f!=null&&f.category&&A&&C&&y[(j=f==null?void 0:f.amount)!=null&&j.value&&((R=f==null?void 0:f.amount)==null?void 0:R.value)<0?"subtractions":"additions"].push({key:C,value:A}),y},{subtractions:[],additions:[]});return u==null||u.subtractions.sort((y,f)=>y.key.localeCompare(f.key)),u==null||u.additions.sort((y,f)=>y.key.localeCompare(f.key)),u},[r,n]),c=T(()=>{var p,m;const u=(m=(p=n==null?void 0:n.amountBreakdowns)==null?void 0:p.fundsCapturedBreakdown)==null?void 0:m.reduce((y,f)=>{var A,I,M,C;return((A=f==null?void 0:f.amount)==null?void 0:A.value)===0||(I=f==null?void 0:f.amount)!=null&&I.value&&f.category&&y.push({key:f.category,value:r.amount((M=f==null?void 0:f.amount)==null?void 0:M.value,(C=f==null?void 0:f.amount)==null?void 0:C.currency,{hideCurrency:!0})}),y},[]);return u==null||u.sort((y,f)=>y.key==="capture"?-1:f.key==="capture"?1:y.key.localeCompare(f.key)),u},[n,r]),d=T(()=>s!=null&&s.createdAt?a(new Date(s==null?void 0:s.createdAt),hD):"",[s,a]);return l(V,{children:s?l("div",{className:_s,children:[l("div",{className:AD,children:[l(q,{variant:w.SUBTITLE,stronger:!0,children:r.get("netPayout")}),l(q,{variant:w.TITLE,large:!0,children:`${r.amount(s.payoutAmount.value,s.payoutAmount.currency,{hideCurrency:!0})} ${s.payoutAmount.currency}`}),l(q,{variant:w.BODY,children:d}),l("div",{className:Tn,children:[t&&l(q,{variant:w.CAPTION,stronger:!0,wide:!0,children:`${t}`}),l(q,{variant:w.CAPTION,className:SD,children:`${e}`})]})]}),l("div",{className:oi,children:[l("div",{className:Tn,children:(s==null?void 0:s.fundsCapturedAmount)&&(c&&Object.keys(c).length>0?l(Zi,{header:l(q,{variant:w.BODY,children:r.get("fundsCaptured")}),headerInformation:l(q,{variant:w.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)}),children:l("div",{className:Tn,children:l("div",{className:Ms,children:l(zr,{children:l(Ur,{items:c})})})})}):l("div",{className:F(Co,Qi),children:[l(q,{variant:w.BODY,children:r.get("fundsCaptured")}),l(q,{variant:w.BODY,children:r.amount(s.fundsCapturedAmount.value,s.fundsCapturedAmount.currency)})]}))}),l("div",{className:Tn,children:i!=null&&i.subtractions&&Object.keys(i==null?void 0:i.subtractions).length>0||i!=null&&i.additions&&Object.keys(i==null?void 0:i.additions).length>0?l(Zi,{header:l(q,{variant:w.BODY,children:r.get("adjustments")}),headerInformation:l(q,{variant:w.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)}),children:[(i==null?void 0:i.additions)&&Object.keys(i==null?void 0:i.additions).length>0&&l("div",{className:Ms,children:l(zr,{renderHeader:l(q,{className:Ji,variant:w.CAPTION,stronger:!0,children:r.get("additions")}),children:l(Ur,{items:i==null?void 0:i.additions})})}),(i==null?void 0:i.subtractions)&&Object.keys(i==null?void 0:i.subtractions).length>0&&l("div",{className:Ms,children:l(zr,{renderHeader:l(q,{className:Ji,variant:w.CAPTION,stronger:!0,children:r.get("subtractions")}),children:l(Ur,{items:i==null?void 0:i.subtractions})})})]}):l("div",{className:F(Co,Qi),children:[l(q,{variant:w.BODY,children:r.get("adjustments")}),l(q,{variant:w.BODY,children:r.amount(s.adjustmentAmount.value,s.adjustmentAmount.currency)})]})}),l("div",{className:F(Tn),children:l("div",{className:F(Co,ND),children:[l(q,{variant:w.BODY,stronger:!0,children:r.get("netPayout")}),l(q,{variant:w.BODY,stronger:!0,children:r.amount(s.payoutAmount.value,s.payoutAmount.currency)})]})})]}),((g=n==null?void 0:n.payout)==null?void 0:g.unpaidAmount)&&l("div",{className:LD,children:[l(q,{variant:w.BODY,children:r.get("remainingAmount")}),l(q,{variant:w.BODY,children:r.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):l(Pl,{isLoading:o,skeletonRowNumber:6})})},ED="https://cdf6519016.cdn.adyen.com/checkoutshopper/",MD=({name:e,resourceContext:t,imageFolder:n="logos/",parentFolder:o="",extension:s="svg",size:r="",subFolder:a=""})=>{const i=`/images/${n}/${a}/${o}/${e}${r}.${s}`.replace(/\/+/g,"/");return`${t}${i}`},vD=({options:e=z,name:t})=>{const{loadingContext:n}=Q();return T(()=>MD({resourceContext:ED,name:t,...e}),[n,t,e])},kl=({folder:e="components/",className:t,alt:n,name:o,extension:s})=>{const r=vD({options:T(()=>({imageFolder:e,extension:s}),[s,e]),name:o});return l("img",{className:F("adyen-pe__image",t),alt:n,src:r})},bD=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function jl(e,t){return e.lastFourDigits?t==="detail"?"•••• •••• •••• "+e.lastFourDigits:e.lastFourDigits:bD[e.type]||e.type}var Xe=(e=>(e.DEFAULT="default",e.WARNING="warning",e.ERROR="error",e.SUCCESS="success",e.WHITE="white",e))(Xe||{});const da=Ne(({variant:e=Xe.DEFAULT,label:t})=>l("div",{className:F("adyen-pe-tag",{"adyen-pe-tag--success":e===Xe.SUCCESS,"adyen-pe-tag--default":e===Xe.DEFAULT,"adyen-pe-tag--warning":e===Xe.WARNING,"adyen-pe-tag--error":e===Xe.ERROR,"adyen-pe-tag--primary":e===Xe.WHITE}),children:t}));const DD=({transaction:e,isFetching:t})=>{var a,i,c;const{i18n:n}=Q(),{dateFormat:o}=mo((a=e.balanceAccount)==null?void 0:a.timeZone),s=T(()=>e?o(new Date(e.createdAt),uD):"",[e,o]),r=(e==null?void 0:e.status)==="Booked"?"default":(e==null?void 0:e.status)==="Reversed"?"error":"pending";return l(V,{children:e?l("div",{className:"adyen-pe-transaction-data",children:[l("div",{className:"adyen-pe-transaction-data__container",children:[((e==null?void 0:e.status)||(e==null?void 0:e.category))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__tag-container",children:[(e==null?void 0:e.status)&&l(da,{label:n.get(e.status),variant:e.status==="Booked"?Xe.SUCCESS:e.status==="Reversed"?Xe.ERROR:Xe.DEFAULT}),e.category&&l(da,{label:n.get(`txType.${e.category}`),variant:Xe.DEFAULT})]}),l("div",{className:`adyen-pe-transaction-data__section adyen-pe-transaction-data__amount adyen-pe-transaction-data__amount--${r}`,children:e.amount?`${n.amount(e.amount.value,e.amount.currency,{hideCurrency:!0})} ${e.amount.currency}`:null}),((e==null?void 0:e.paymentMethod)||(e==null?void 0:e.bankAccount))&&l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__payment-method",children:[l("div",{className:"adyen-pe-transaction-data__payment-method-logo-container",children:l(kl,{name:e.paymentMethod?e.paymentMethod.type:"bankTransfer",alt:e.paymentMethod?e.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-pe-transaction-data__payment-method-logo"})}),l("div",{className:"adyen-pe-transaction-data__payment-method-detail",children:e!=null&&e.paymentMethod?jl(e==null?void 0:e.paymentMethod,"detail"):(i=e==null?void 0:e.bankAccount)==null?void 0:i.accountNumberLastFourDigits})]}),l("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__label",children:s})]}),((c=e.balanceAccount)==null?void 0:c.description)&&l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("account")}),l("div",{children:e.balanceAccount.description})]}),l("div",{className:"adyen-pe-transaction-data__container",children:[l("div",{className:"adyen-pe-transaction-data__label",children:n.get("referenceID")}),l("div",{"aria-label":n.get("referenceID"),children:e.id})]})]}):l(Pl,{isLoading:t,skeletonRowNumber:6})})};const OD=({inline:e=!1,size:t="large"})=>l("div",{className:`adyen-pe-spinner__wrapper ${e?"adyen-pe-spinner__wrapper--inline":""}`,children:l("div",{className:`adyen-pe-spinner adyen-pe-spinner--${t}`})}),$D=OD,RD={transaction:"getTransaction",payout:"getPayout"},xD={transaction:"transactionDetails",payout:"payoutDetails"},Xi=e=>!("data"in e);function si(e){var y,f;const t=T(()=>Xi(e)?null:e.data,[e]),n=T(()=>Xi(e)?e.id:null,[e]),{i18n:o}=Q(),s=Ut().endpoints[RD[e.type]],r=T(()=>xD[e.type],[e.type]),{data:a,error:i,isFetching:c}=Lr(T(()=>({fetchOptions:{enabled:!!n&&!!s},queryFn:async()=>{const A=e.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:e.date}};return s(z,{...A})}}),[n,s,e])),d=e.type==="payout"?e.balanceAccountDescription:a==null?void 0:a.balanceAccountId,g=e.type==="payout"?e==null?void 0:e.balanceAccountDescription:(y=t==null?void 0:t.balanceAccount)==null?void 0:y.description,{balanceAccounts:u}=Ba(d,!g),p=T(()=>{if(i)return qa(i,"weCouldNotLoadYourTransactions",e.onContactSupport)},[i,e.onContactSupport]),m=t??a;return c?l($D,{}):l("div",{className:"adyen-pe-overview-details",children:[!e.hideTitle&&l("div",{className:"adyen-pe-overview-details--title",children:l(q,{variant:w.TITLE,medium:!0,children:o.get(r)})}),i&&p&&l("div",{className:"adyen-pe-overview-details--error-container",children:l($n,{centered:!0,withImage:!0,...p})}),e.type==="transaction"&&m&&l(DD,{transaction:{...m,balanceAccount:(t==null?void 0:t.balanceAccount)||(u==null?void 0:u[0])},isFetching:c}),e.type==="payout"&&m&&l(CD,{balanceAccountId:n,payout:m,balanceAccountDescription:(e==null?void 0:e.balanceAccountDescription)||((f=u==null?void 0:u[0])==null?void 0:f.description),isFetching:c})]})}const wD={base:"adyen-pe-modal-content"},PD=e=>ct(e,"id");function kD({type:e,data:t}){const n=T(()=>e==="payout"?{...t,type:"payout"}:PD(t)?{data:t,type:e}:{id:t,type:e},[t,e]);return l(V,{children:n&&l("div",{className:wD.base,children:l(si,{...n})})})}const Fl=({children:e,className:t,selectedDetail:n,resetDetails:o})=>{const{i18n:s}=Q(),r=!!n;return W(()=>{r&&To.closeAll()},[r]),l("div",{className:t,children:[e,n&&l(Jb,{title:n!=null&&n.title?s.get(n.title):void 0,isOpen:!!n,"aria-label":s.get("payoutDetails"),onClose:o,isDismissible:!0,headerWithBorder:!1,size:(n==null?void 0:n.modalSize)??"large",children:n&&l(kD,{...n==null?void 0:n.selection})})]})};function jD({value:e,isContainerHovered:t}){const{i18n:n}=Q(),o=`tooltip.${e}`;return l(V,{children:n.has(o)&&l(Ka,{content:n.get(o),isContainerHovered:t,children:l("span",{children:e})})})}const FD=({error:e,errorMessage:t,onContactSupport:n})=>{const{title:o,message:s,refreshComponent:r,translationValues:a,onContactSupport:i}=qa(e,t,n);return l($n,{title:o,message:s,translationValues:a,withImage:!0,centered:!0,refreshComponent:r,onContactSupport:i})},Wl=FD,WD={id:"paymentId",transactionType:"transactionType",createdAt:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency",fundsCapturedAmount:"fundsCaptured",payoutAmount:"netPayout",adjustmentAmount:"adjustments",dateAndPaymentMethod:"date"},Bl=e=>WD[e]||e;const zl=ja(z),ri=()=>Fa(zl);var gn=(e=>(e.CENTER="center",e.RIGHT="right",e))(gn||{});function Ki({children:e,column:t,position:n,...o}){const{registerCells:s}=ri(),r=k(null);return W(()=>{var a;r.current&&s({column:t,width:(a=r.current)==null?void 0:a.getBoundingClientRect().width})},[t,s]),l("div",{role:"cell",className:F("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===gn.RIGHT,"adyen-pe-data-grid__cell--center":n===gn.CENTER}),...o,children:e&&rl(e)?ml(e,{...e==null?void 0:e.props,ref:r,style:{width:"min-content"}}):null})}const Ul=({columns:e,customCells:t,item:n,rowIndex:o})=>l(V,{children:e.map(({key:s,position:r})=>t!=null&&t[s]?l(Ki,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{style:{width:"min-content"},children:t[s]({key:s,value:n[s],item:n,rowIndex:o})})},s):l(Ki,{"aria-labelledby":String(s),column:s,position:r,children:l("div",{children:n[s]})},s))}),BD=({data:e,columns:t,customCells:n,onRowHover:o})=>{const{i18n:s}=Q();return l(V,{children:e==null?void 0:e.map((r,a)=>l("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):ne,onFocus:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o(a):ne,onMouseLeave:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():ne,onBlur:s.has(`tooltip.${r==null?void 0:r.category}`)&&o?()=>o():ne,children:l(Ul,{columns:t,customCells:n,item:r,rowIndex:a})},r))})},zD=({totalRows:e})=>{const[t,n]=Nr((a,i)=>{const c=e;if(c>1){const d=i.index;if(d<c&&d>=0)return i.type==="ACTIVE"?Object.freeze({...a,index:i.index??0,activeIndex:i.index}):Object.freeze({...a,index:i.index??0,activeIndex:-1})}return a},JD),o=$t(L(a=>{var c;if(!(a instanceof Element))return;const i=Number((c=a.dataset)==null?void 0:c.index);t.activeIndex===-1&&i===0||i===t.index?a.setAttribute("tabindex","0"):a.setAttribute("tabindex","-1"),i===t.activeIndex&&(a==null||a.focus())},[t.activeIndex,t.index])),s=L(a=>{var c,d;if(!(((c=a.target)==null?void 0:c.getAttribute("role"))==="row")){a.code===Y.ARROW_LEFT&&n({type:"ACTIVE",index:t.index});return}switch(a.code){case Y.ARROW_DOWN:case Y.ARROW_UP:n({type:"ACTIVE",index:a.code===Y.ARROW_DOWN?t.index+1:t.index-1});break;case Y.HOME:n({type:"ACTIVE",index:0});break;case Y.END:n({type:"ACTIVE",index:e-1});break;case Y.ENTER:(d=a.currentTarget)==null||d.click();break;default:return}a.stopPropagation()},[e,t.index]),r=L(a=>i=>{var d;(!(((d=i.target)==null?void 0:d.localName)==="tr")||t.index===-1)&&n({type:"CURRENT",index:a})},[t.index]);return{listeners:{onKeyDownCapture:s,onFocusCapture:r},ref:o,activeIndex:t.activeIndex,currentIndex:t.index}},UD=({data:e,columns:t,onRowClick:n,customCells:o,onRowHover:s})=>{const r=L(g=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?g[n.retrievedField]:g),[n]),{i18n:a}=Q(),{currentIndex:i,listeners:c,ref:d}=zD({totalRows:(e==null?void 0:e.length)??0});return l(V,{children:e==null?void 0:e.map((g,u)=>l("div",{role:"row",tabIndex:0,onMouseEnter:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):ne,onFocus:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s(u):ne,onMouseLeave:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():ne,onBlur:a.has(`tooltip.${g==null?void 0:g.category}`)&&s?()=>s():ne,ref:d,"aria-selected":u===i,"data-index":u,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:r(g),onFocusCapture:c.onFocusCapture(u),onKeyDownCapture:c.onKeyDownCapture,children:l(Ul,{columns:t,customCells:o,item:g,rowIndex:u})},g))})},YD=({columnsNumber:e,loading:t,emptyMessageDisplay:n})=>{const o=Array.from({length:10},(r,a)=>a),s=Array.from({length:e},(r,a)=>a);return l(V,{children:[o.map((r,a)=>l("div",{className:"adyen-pe-data-grid__row",children:s.map((i,c)=>l("div",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:l("span",{className:F({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":t,"adyen-pe-data-grid__empty-cell":!t})})},`adyen-pe-data-grid-skeleton-cell-${c}`))},`adyen-pe-data-grid-skeleton-row-${a}`)),!t&&n&&n]})},GD=YD,HD="data:image/svg+xml;base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bGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0ibTE0MS40IDkyIDEuNi01LjZoMTguN2wxLjEgNC45Yy0uMS4xLTguOSAxMS0yMS40LjdabTIzLjEtNC40YzEuNC0zLjQgNi4zLTEyLjUgOS44LTExLjdhOTAuNyA5MC43IDAgMCAxIDQ2LjIgMjkuN2M0LjQgNS40IDIgOC43IDIgOC43bC03LjEgMTguOHMtMy42IDItMTUuNCAxLjdjLTE3LjQtLjUtMzguOC0yNi44LTM5LjUtMzAuNmE0OC4zIDQ4LjMgMCAwIDEgNC0xNi42Wk0xMTkuOSAxOGMwLTIuNSAxLjEtNC45IDIuNy02LjggMS45LTIuMiA0LjUtMy44IDcuNC00LjIgMi45LS40IDUuOS42IDcuOSAyLjdhNC44IDQuOCAwIDAgMC0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",ZD=({children:e})=>{const t=T(()=>new Map,[]),n=L(({column:s,width:r})=>{if(t.has(s)){const a=t.get(s);r>a&&t.set(s,r)}else t.set(s,r)},[t]),o=L(s=>t.get(s),[t]);return l(zl.Provider,{value:{registerCells:n,getMinWidthByColumn:o},children:zt(e)})},VD=({cellKey:e,position:t,label:n})=>{const{registerCells:o}=ri(),s=k(null);return W(()=>{var r;s.current&&o({column:e,width:(r=s.current)==null?void 0:r.getBoundingClientRect().width})},[e,o]),l("div",{role:"columnheader",id:String(e),className:F("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":t===gn.RIGHT,"adyen-pe-data-grid__cell--center":t===gn.CENTER}),children:l("div",{ref:s,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},JD=Object.freeze({activeIndex:-1,index:-1});function co({errorDisplay:e,...t}){return l("div",{style:{width:"100%"},children:l(ZD,{children:l(QD,{...t,errorDisplay:e})})})}function QD({errorDisplay:e,...t}){var d,g;const n=T(()=>zt(t.children),[t.children]),o=T(()=>n.find(u=>(u==null?void 0:u.type)===Yl),[n]),s=T(()=>{var u;return((u=t.data)==null?void 0:u.length)===0},[t.data]),r=T(()=>!t.loading&&(s||t.error),[s,t.error,t.loading]),{getMinWidthByColumn:a}=ri(),i=t.columns.filter(u=>u.visible!==!1).map(u=>({...u,minWidth:a(u.key)})),c=i.map(u=>`minmax(${(u.minWidth||100)+40}px, ${u.flex||1}fr)`).join(" ");return l("div",{className:F("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":t.condensed,"adyen-pe-data-grid--outline":t.outline,"adyen-pe-data-grid--scrollable":t.scrollable,"adyen-pe-data-grid--loading":t.loading,"adyen-pe-data-grid--empty":s||t.error}),style:`--adyen-pe-data-grid-cols: ${i.length}; --adyen-pe-data-grid-cells: ${c};`,children:l(V,{children:[l("div",{className:"adyen-pe-data-grid__table-wrapper",children:[l("div",{role:"table",className:"adyen-pe-data-grid__table",children:[l("div",{className:"adyen-pe-data-grid__head",role:"rowgroup",children:l("div",{role:"rowheader",className:"adyen-pe-data-grid__header",style:t.loading?{width:"100%"}:{},children:i.map(u=>l(VD,{label:u.label,position:u.position,cellKey:u.key},u.key))})}),l(XD,{...t,columns:i,emptyBody:s})]}),r&&(s&&!t.error?l($n,{title:((d=t.emptyTableMessage)==null?void 0:d.title)??"thereAreNoResults",message:(g=t.emptyTableMessage)==null?void 0:g.message,imageDesktop:HD,centered:!0}):t.error&&e?e():null)]}),o]})})}function XD(e){const t=T(()=>e.loading||e.emptyBody||e.error,[e.emptyBody,e.error,e.loading]);return l("div",{role:"rowgroup",className:F("adyen-pe-data-grid__body"),style:t&&{display:"grid",gridTemplateColumns:"1fr"},children:t?l(GD,{columnsNumber:e.columns.length,loading:e.loading}):e.onRowClick?l(UD,{onRowHover:e.onRowHover,data:e.data,columns:e.columns,onRowClick:e.onRowClick,customCells:e.customCells}):l(BD,{onRowHover:e.onRowHover,data:e.data,customCells:e.customCells,columns:e.columns})})}co.Footer=Yl;function Yl({children:e}){return l("div",{className:"adyen-pe-data-grid__footer",children:e})}co.defaultProps={condensed:!1,outline:!0,scrollable:!0};const ha="-ariaError";var Ce=(e=>(e[e.NONE=0]="NONE",e[e.APPLY=1]="APPLY",e[e.CLEAR=2]="CLEAR",e))(Ce||{});const KD=({applyDisabled:e,applyTitle:t,resetDisabled:n,resetTitle:o}=z)=>{const{i18n:s}=Q(),[r,a]=U(Ce.NONE),[i,c]=U(r!==Ce.NONE),d=L(()=>a(Ce.APPLY),[a]),g=L(()=>a(Ce.CLEAR),[a]),u=L(()=>a(Ce.NONE),[a]),p=T(()=>({disabled:we(e),event:d,title:(t==null?void 0:t.trim())||s.get("apply"),variant:Oe.PRIMARY}),[s,d,e,t]),m=T(()=>({disabled:we(n),event:g,title:(o==null?void 0:o.trim())||s.get("reset"),variant:Oe.SECONDARY}),[s,g,n,o]),y=T(()=>[p,m],[p,m]);return W(()=>{switch(c(r!==Ce.NONE),r){case Ce.APPLY:case Ce.CLEAR:u();break}},[r,c,u]),{commitAction:r,commitActionButtons:y,committing:i,resetCommitAction:u}},Gl=KD;function Hl(e){const{backgroundUrl:t="",className:n="",classNameModifiers:o=[],src:s="",alt:r="",showOnError:a=!1}=e,[i,c]=U(!1),d=k(null),g=()=>{c(!0)},u=()=>{c(a)},p=F([n],"adyen-pe-image",{"adyen-pe-image--loaded":i},...o.map(m=>`adyen-pe-image--${m}`));return W(()=>{const m=t?new Image:d.current;m&&(m.src=t||s,m.onload=g),c(!!(m!=null&&m.complete))},[]),t?l("div",{style:{backgroundUrl:t},...e,className:p}):l("img",{...e,alt:r,ref:d,className:p,onError:u})}const lo="adyen-pe-dropdown",qD=za(Ot,[Oe.SECONDARY],[Ot]),yt=`${lo}__button`,e0=`${yt}--active`,t0=`${yt}-collapse-indicator`,n0=`${yt}--has-selection`,o0=`${yt}-icon`,s0=`${yt}-multiselect-counter`,r0=`${yt}--readonly`,a0=`${yt}-text`,i0=`${yt}--valid`,c0=`${yt}--invalid`,Rt=`${lo}__element`,l0=`${Rt}--active`,u0=`${Rt}-checkbox`,d0=`${Rt}-checkmark`,h0=`${Rt}-content`,g0=`${Rt}--disabled`,m0=`${Rt}-icon`,p0=`${Rt}--no-option`,Zl=`${lo}__list`,f0=`${Zl}--active`,y0=`${lo}--multiselect`,I0=({active:e,disabled:t,className:n,filterable:o,toggleButtonRef:s,...r})=>{const a=T(()=>o?F(qD,n):n,[n,o]);return o?l("div",{...r,className:a,ref:s}):l(et,{...r,className:a,disabled:t,variant:Oe.SECONDARY,ref:s})},_0=e=>{var p;const{i18n:t}=Q(),{active:n,filterable:o,multiSelect:s,placeholder:r,readonly:a,showList:i,withoutCollapseIndicator:c}=e,d=T(()=>(r==null?void 0:r.trim())||t.get("select.filter.placeholder"),[t,r]),g=T(()=>we(s)?void 0:n[0],[n,s]),u=T(()=>{var m;return((m=g==null?void 0:g.name)==null?void 0:m.trim())||d},[g,d]);return l(I0,{active:n,disabled:a,"aria-disabled":a,"aria-expanded":i,"aria-haspopup":"listbox",className:F(yt,{[e0]:i,[n0]:!!n.length,[r0]:a,[c0]:e.isInvalid,[i0]:e.isValid}),filterable:o,onClick:a?void 0:e.toggleList,onKeyDown:a?void 0:e.onButtonKeyDown,role:o?"button":void 0,tabIndex:0,title:u,toggleButtonRef:e.toggleButtonRef,type:o?"":"button","aria-describedby":e.ariaDescribedBy,id:e.id??"",children:[i&&o?l("input",{"aria-autocomplete":"list","aria-controls":e.selectListId,"aria-expanded":i,"aria-owns":e.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:e.onInput,placeholder:d,ref:e.filterInputRef,role:"combobox",type:"text"}):l(V,{children:[(g==null?void 0:g.icon)&&l(Hl,{className:o0,src:g.icon,alt:g.name.trim()}),l("span",{className:a0,children:((p=g==null?void 0:g.selectedOptionName)==null?void 0:p.trim())||(g==null?void 0:g.name.trim())||d}),s&&e.appliedFilterNumber>0&&l("div",{className:s0,children:l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,children:e.appliedFilterNumber})})]}),!c&&l("span",{className:t0,children:l(Cr,{role:"presentation"})})]})},T0=_0,A0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("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"})]})),S0=A0,N0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e&&l("title",{children:e}),l("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"})]})),L0=N0,C0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[e&&l("title",{children:e}),l("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"})]})),E0=C0,M0=e=>e.multiSelect?l("span",{className:u0,children:e.selected?l(S0,{role:"presentation"}):l(L0,{role:"presentation"})}):null,Vl=e=>e.multiSelect?null:l("span",{className:d0,children:e.selected&&l(E0,{role:"presentation"})}),v0=e=>l(V,{children:[M0(e),l("div",{className:e.contentClassName,children:[e.item.icon&&l(Hl,{className:e.iconClassName,alt:e.item.name,src:e.item.icon}),l("span",{children:e.item.name})]}),Vl(e)]}),b0=({item:e,multiSelect:t,onKeyDown:n,onSelect:o,renderListItem:s,selected:r})=>{const a=!!e.disabled,i=we(e.disabled)||null,c=F(Rt,{[l0]:r,[g0]:a});return l("li",{"aria-disabled":a,"aria-selected":r,className:c,"data-disabled":i,"data-value":e.id,onClick:o,onKeyDown:n,title:e.name,role:"option",tabIndex:-1,children:s({item:e,multiSelect:t,selected:r,contentClassName:h0,iconClassName:m0})})},D0=Ne(b0),O0=Ye(({active:e,commitActions:t,items:n,multiSelect:o,onKeyDown:s,onSelect:r,renderListItem:a,selectListId:i,showList:c,textFilter:d,toggleButtonRef:g,dismissPopover:u,setToTargetWidth:p,popoverClassNameModifiers:m,showOverlay:y,fitPosition:f},A)=>{const{i18n:I}=Q(),M=Se(Ae.down.xs),C=n.filter(D=>!d||D.name.toLowerCase().includes(d)),v=F(Zl,{[f0]:c}),P=F(Rt,p0),E=T(()=>ee(a)?a:v0,[a]),b=T(()=>we(o),[o]);return c?l(Xa,{classNameModifiers:m,actions:b?t:void 0,disableFocusTrap:!0,divider:!0,dismiss:u,dismissible:!1,open:c,setToTargetWidth:p,containerSize:Oo.MEDIUM,variant:De.POPOVER,targetElement:g,withContentPadding:!1,position:ie.BOTTOM,showOverlay:y&&M,fitPosition:f,children:l("ul",{className:v,id:i,ref:A,role:"listbox","aria-multiselectable":b,children:C.length?C.map(D=>l(D0,{item:D,multiSelect:b,onKeyDown:s,onSelect:r,renderListItem:E,selected:e.includes(D)},D.id)):l("div",{className:P,children:I.get("select.noOptionsFound")})})}):null}),$0=Ne(O0),R0=({items:e,multiSelect:t,selected:n})=>{const o=L((c=Te)=>{const d=Te.concat(c??Te).filter(Boolean),g=e.filter(p=>d.includes(p.id)),u=t?g:g.slice(0,1);return u.length?Object.freeze(u):Te},[e,t]),[s,r]=U(o(n)),a=L((c=Te)=>{const d=c.filter(g=>e.includes(g));r(d.length?Object.freeze(d):Te)},[e,r]),i=L(c=>{r(d=>{const g=d.indexOf(c);if(g<0)return Object.freeze((t?d:Te).concat(c));if(!t)return d;const u=[...d];return u.splice(g,1),u.length?Object.freeze(u):Te})},[t,r]);return W(()=>r(o(n)),[o,n,r]),{resetSelection:a,select:i,selection:s}},x0=R0;const w0=({className:e,classNameModifiers:t=Te,popoverClassNameModifiers:n,items:o=Te,filterable:s=!1,multiSelect:r=!1,readonly:a=!1,onChange:i=ne,selected:c,name:d,isInvalid:g,isValid:u,placeholder:p,uniqueId:m,renderListItem:y,isCollatingErrors:f,setToTargetWidth:A,withoutCollapseIndicator:I=!1,showOverlay:M=!1,fitPosition:C})=>{const{resetSelection:v,select:P,selection:E}=x0({items:o,multiSelect:r,selected:c}),[b,D]=U(!1),[j,R]=U(""),X=k(null),B=k(null),se=k(null),K=k(`select-${ba()}`),[re,Ee]=U(0),Me=k(),ve=k(!0),ke=k(!1),fe=k(E),de=k(E),be=L(()=>{R(""),D(!1),b&&(v(fe.current),ve.current=!0)},[v,D,R,b]),lt=T(()=>F([lo,{[y0]:we(r)},...t.map(te=>`${lo}--${te}`),e]),[e,t,r]),{commitAction:ut,commitActionButtons:Gt,committing:Ts,resetCommitAction:fo}=Gl({resetDisabled:!E.length}),tt=L(()=>{var te;R(""),D(!1),fo(),ve.current?ve.current=!1:(te=se.current)==null||te.focus()},[fo,D,R]),yn=L(()=>{fe.current=E;const te=`${E.map(({id:he})=>he)}`;i({target:{value:te,name:d}})},[d,i,E]);W(()=>{switch(ut){case Ce.APPLY:yn();break;case Ce.CLEAR:v(),ke.current=!0;break}},[ut,yn,v]);const Ht=L(te=>{var ge;te.preventDefault();const he=te.currentTarget&&((ge=B==null?void 0:B.current)!=null&&ge.contains(te.currentTarget))?te.currentTarget:null;if(he&&!he.getAttribute("data-disabled")){const ld=he.getAttribute("data-value"),ud=o.find(dd=>dd.id===ld);P(ud)}},[o,P]);W(()=>{de.current!==E&&(de.current=E,(!r||ke.current)&&(yn(),tt())),ke.current=!1},[tt,yn,r,E]),W(()=>{Ts&&(Ee(E.length),tt())},[Ts,tt,Ee,E.length]);const Rr=L(te=>{switch(te.code){case Y.ESCAPE:case Y.TAB:b&&tt(),ve.current=te.key===Y.TAB;return;case Y.ENTER:case Y.SPACE:if(s&&b){if(te.key===Y.ENTER)if(j)Ht(te);else break;return}break;case Y.ARROW_DOWN:case Y.ARROW_UP:break;default:return}te.preventDefault(),D(!0)},[tt,s,Ht,b,D,j]);W(()=>{b&&(cancelAnimationFrame(Me.current),Me.current=requestAnimationFrame(()=>{var te;e:{let he=(te=B.current)==null?void 0:te.firstElementChild,ge;for(;he;){if(!(he.dataset.disabled&&he.dataset.disabled==="true")){if(he.getAttribute("aria-selected")==="true"){he.focus();break e}ge=ge||he}he=he.nextElementSibling}ge&&ge.focus()}}))},[b]);const nt=L(te=>{const he=te.target;switch(te.code){case Y.ESCAPE:te.preventDefault(),tt();break;case Y.ENTER:case Y.SPACE:Ht(te);break;case Y.ARROW_DOWN:{te.preventDefault();let ge=he.nextElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break}ge=ge.nextElementSibling}break}case Y.ARROW_UP:{te.preventDefault();e:{let ge=he.previousElementSibling;for(;ge;){if(!(ge.dataset.disabled&&ge.dataset.disabled==="true")){ge.focus();break e}ge=ge.previousElementSibling}s&&X.current&&X.current.focus()}break}case Y.TAB:tt();break}},[tt,s,Ht]),Pe=L(te=>{const he=te.target.value;R(he.toLowerCase())},[R]),xr=L(te=>{te.preventDefault(),D(he=>!he),b&&v(fe.current)},[D,b,v]);return W(()=>{var te;b&&s&&((te=X.current)==null||te.focus())},[s,b]),l("div",{className:lt,children:[l(T0,{id:m??void 0,appliedFilterNumber:re,active:E,filterInputRef:X,filterable:s,isInvalid:g,isValid:u,onButtonKeyDown:Rr,onInput:Pe,multiSelect:r,placeholder:p,readonly:a,selectListId:K.current,showList:b,toggleButtonRef:se,toggleList:xr,withoutCollapseIndicator:I,ariaDescribedBy:!f&&m?`${m}${ha}`:""}),l($0,{popoverClassNameModifiers:n,setToTargetWidth:A,dismissPopover:be,active:E,commitActions:Gt,items:o,multiSelect:r,onKeyDown:nt,onSelect:Ht,selectListId:K.current,ref:B,toggleButtonRef:se,renderListItem:y,showList:b,showOverlay:M,textFilter:j,fitPosition:C})]})},Er=w0,P0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("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:t.disabled?"#8D95A3":"#00112C"})]})),k0=P0,j0=Ye(({title:e,...t},n)=>l("svg",{...t,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e&&l("title",{children:e}),l("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:t.disabled?"#8D95A3":"#00112C"})]})),F0=j0;function Jl({next:e,hasNext:t,hasPrev:n,page:o,prev:s,limit:r,limitOptions:a,onLimitSelection:i}){const{i18n:c}=Q(),d=T(()=>a&&Object.freeze(a.map(u=>({id:`${u}`,name:`${u}`}))),[a]),g=L(({target:u})=>{ue(u==null?void 0:u.value)||i==null||i(+u.value)},[i]);return l("div",{"aria-label":c.get("paginatedNavigation"),className:`adyen-pe-pagination ${F({})}`,children:[l("div",{className:"adyen-pe-pagination__context",children:[l("span",{children:[c.get("pagination.showing")," ",o]}),d&&i&&l("div",{className:"adyen-pe-pagination__limit-selector",children:l(Er,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:d,onChange:g,selected:`${r??""}`})})]}),l("div",{className:"adyen-pe-pagination__controls",children:[l(et,{"aria-label":c.get("pagination.previousPage"),variant:Oe.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?Te:"disabled"),onClick:s,children:l(k0,{disabled:!n})}),l(et,{"aria-label":c.get("pagination.nextPage"),variant:Oe.TERTIARY,disabled:!t,iconButton:!0,classNameModifiers:["circle"].concat(t?Te:"disabled"),onClick:e,children:l(F0,{disabled:!t})})]})]})}const po="adyen-pe-transactions-table",W0=po+"__amount",B0=po+"__payment-method",z0=po+"__payment-method-logo-container",U0=po+"__payment-method-logo",qi=po+"__date-and-payment-method";const Y0=({paymentMethod:e,bankAccount:t})=>{const{i18n:n}=Q();return l("div",{className:B0,children:e||t?l(V,{children:[l("div",{className:z0,children:l(kl,{name:e?e.type:"bankTransfer",alt:e?e.type:"bankTransfer",folder:"logos/",className:U0})}),e?jl(e):t==null?void 0:t.accountNumberLastFourDigits]}):l(da,{label:n.get("noData"),variant:Xe.WHITE})})},ec=Y0,G0=["dateAndPaymentMethod","createdAt","paymentMethod","transactionType","amount"],H0=({activeBalanceAccount:e,availableCurrencies:t,error:n,hasMultipleCurrencies:o,loading:s,onContactSupport:r,onRowClick:a,showDetails:i,showPagination:c,transactions:d,...g})=>{const{i18n:u}=Q(),{dateFormat:p,fullDateFormat:m}=mo(e==null?void 0:e.timeZone),[y,f]=U(),A=Se(Ae.up.sm),I=Se(Ae.up.md),M=Se(Ae.down.xs),C=T(()=>({dateAndPaymentMethod:M,createdAt:A,transactionType:I,paymentMethod:A}),[M,A,I]),v=T(()=>G0.map(D=>{const j=u.get(Bl(D));return D==="amount"?{key:D,label:o?j:`${j} ${t&&t[0]?`(${zc(t[0])})`:""}`,position:D==="amount"?gn.RIGHT:void 0,flex:A?1.5:void 0}:{key:D,label:j,visible:C[D]}}),[t,C,o,u,A]),P={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},E=L(D=>{f(D??void 0)},[f]),b=T(()=>()=>l(Wl,{error:n,onContactSupport:r,errorMessage:"weCouldNotLoadYourTransactions"}),[n,r]);return l("div",{className:po,children:l(co,{errorDisplay:b,error:n,columns:v,data:d,loading:s,outline:!1,onRowClick:{callback:a},onRowHover:E,emptyTableMessage:P,customCells:{dateAndPaymentMethod:({item:D})=>l("div",{className:qi,children:[l(ec,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount}),l("span",{className:qi,children:p(D.createdAt,lD)})]}),transactionType:({item:D,rowIndex:j})=>{const R=`tooltip.${D.category}`;return D.category?u.has(R)?l(jD,{value:D.category,isContainerHovered:j===y}):D.category:null},createdAt:({value:D})=>l("span",{children:m(D)}),amount:({value:D})=>{const j=u.amount(D.value,D.currency,{hideCurrency:!o});return l("span",{className:W0,children:j})},paymentMethod:({item:D})=>l(ec,{paymentMethod:D.paymentMethod,bankAccount:D.bankAccount})},children:c&&l(co.Footer,{children:l(Jl,{...g})})})})},Z0=e=>{const[t,n]=U(0),o=L(()=>n(0),[n]),s=T(()=>e==null?void 0:e[t],[e,t]),r=T(()=>e&&e.length>1?Object.freeze(e.map(({description:i,id:c})=>({id:c,name:Md(i)}))):void 0,[e]),a=L(({target:i})=>{const c=i==null?void 0:i.value,d=e==null?void 0:e.findIndex(({id:g})=>g===c);d>=0&&n(d)},[e,n]);return{activeBalanceAccount:s,balanceAccountSelectionOptions:r,onBalanceAccountSelection:a,resetBalanceAccountSelection:o}},Ql=Z0;const ai="adyen-pe-balance-account-selector",V0=`${ai}__account-id`,J0=`${ai}__account-label`,Q0=Ne(({activeBalanceAccount:e,balanceAccountSelectionOptions:t,onBalanceAccountSelection:n})=>{const o=Se(Ae.down.xs),s=L(r=>l(V,{children:[l("div",{className:r.contentClassName,children:[r.item.name&&l("span",{className:J0,children:r.item.name}),l("span",{className:V0,children:r.item.id})]}),Vl(r)]}),[]);return t&&t.length>1?l(Er,{popoverClassNameModifiers:[ai],onChange:n,filterable:!1,multiSelect:!1,selected:e==null?void 0:e.id,withoutCollapseIndicator:!0,items:t,renderListItem:s,showOverlay:o}):null}),Xl=Q0,{getTimezoneTime:X0,getUsedTimezone:K0}=(()=>{const e=/\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,t=/^GMT|0(?=\d:00)|:00/g,n=ps();return{getTimezoneTime:(r,a=Date.now())=>{n.tz=r;const{formatted:i}=n(a),[c="",d=""]=(i==null?void 0:i.match(e))??Te,g=Kr(i),u=`${c}${d&&` ${d}`}`,p=nm(g).replace(t,"");return[u,p]},getUsedTimezone:r=>(n.tz=r,n.tz.current)}})(),q0=({timezone:e,withClock:t=!1}=z)=>{const n=T(()=>we(t),[t]),o=T(()=>K0(e),[e]),s=k(ne),[r,a]=U(Date.now()),[i,c]=T(()=>X0(o,r),[r,o]);return T(()=>{s.current(),s.current=n?Wc.subscribe(d=>{ho(d)||a(d.now)}):ne},[a,n]),{clockTime:i,GMTOffset:c,timestamp:r,timezone:o}},eO=q0,tO=e=>Object.freeze({systemToTimezone:$(t=>ft(e,t)),timezoneToSystem:$(t=>Et(e,t)),timezoneOffset:$(t=>e(t).offset)}),Kl=(e,t,n=e)=>{const o=(s,r)=>{let a=s;ue(s)?a=n:Mo(s)||(a=r??n);const i=cn(e,a,t);return i===a?i:r??n};return s=>{const r=oe(()=>a);let a=o(s);return G({value:r,descriptor:$({...r,set(i){const c=a;a=o(i,a),c!==a&&(this.now=this.now)}})})}},nO=(e,t)=>n=>ee(n)?n.call(e,t):n,oO=e=>!ct(e,"offsets"),sO=e=>ct(e,"from"),Mr=({now:e})=>e,rO=(()=>{const e=new Map;return t=>{let n=e.get(t);return H(n)&&(n=Object.freeze([0,0,t,0,0,0,-1]),e.set(t,n)),n}})(),In=e=>{try{const t=e instanceof Date||+e===e?e:void 0,n=new Date(t).getTime();return isNaN(n)?void 0:n}catch{}},aO=(e=z,t=z)=>{const n=bo(e),o=bo(t);return()=>{const s=ps(),r=oe(()=>u),a=oe(()=>s.tz.current),i=G({now:r,timezone:a,...tO(s)}),c=nO(n,i);let{from:d,to:g,now:u}=z;const p=y=>{u=In(y??Date.now())??u;e:{if(oO(n)){d=In(c(n.from))??u,g=In(c(n.to))??u;break e}let f,A,I;(I=sO(n))?(f=new Date(d=In(c(n.from))??u),A=1):(f=new Date(g=In(c(n.to))??u),A=-1),f=new Date(i.timezoneToSystem(f));const[M=0,C=0,v=0,P=0,E=0,b=0,D=0]=c(n.offsets);f.setFullYear(f.getFullYear()+M*A,f.getMonth()+C*A,f.getDate()+v*A),f.setHours(f.getHours()+P*A,f.getMinutes()+E*A,f.getSeconds()+b*A,f.getMilliseconds()+D*A);const j=In(i.systemToTimezone(f))??u;I?g=j:d=j}d>g&&([d,g]=[g,d])},m=y=>{const f=s.tz,A=f.current;s.tz=y,f.current!==A&&p(u)};return p(),G({...o,from:oe(()=>d),now:{...r,set:p},timezone:{...a,set:m},to:oe(()=>g)})}},vr=aO,iO=/^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/,br=(e=gr)=>(t,n,...o)=>{const s=Dt(n),r=new Date(Et(s,t));return r.setHours(0,0,0,0),ft(s,e(r,...o))},ql=br(),eu=br(e=>e.setDate(1)),cO=br(e=>e.setMonth(0,1)),tu=br((e,t)=>{const n=uO(e.getDay(),t??0);return e.setDate(e.getDate()-n)}),lO=e=>(e%100?e%4:e%400)===0,Yr=(e,t,n=0)=>{const o=e+n,s=ds(o,12),r=t+Math.floor(o/12);let a=31;switch(s){case 1:a=lO(r)?29:28;break;case 3:case 5:case 8:case 10:a=30;break}return[a,s,r]},uO=(e,t=0)=>(7-t+e)%7,Mn=(e,t)=>ln(e)?0:e-ql(e,t),tc=e=>H(e)?e:new Date(e),dO=(e,t=z)=>{const n=Dt(t.timeZone),o={...Oa,...t,timeZone:n.tz.current};return new Date(e).toLocaleDateString(Tr,o)},xt=(e,t)=>{const n=dO(e,{...Gc,...Oa,timeZone:t,hour12:!1}),[,o="",s="",r="",a="",i="",c="",d=""]=n.match(iO)??Te;return[+r,+o-1,+s,+a%24,+i,+c,+d]},ga=(e,t,n)=>{if(ln(e)||ln(t))return 1/0;const[o,s]=xt(e,n),[r,a]=xt(t,n);return Math.abs(a-s+(r-o)*12)},Dt=(()=>{const e=ps();return t=>(e.tz=void 0,e.tz=t,e)})(),ii=1,hO=rO(7),gO=Kl(0,6,ii),mO=(e=0)=>{const t=~~cn(0,e,1/0)||0;return(n=ii)=>{const o=t?{offsets:hO}:{to:Mr},s=gO(n);return vr({from:({now:r,timezone:a,systemToTimezone:i,timezoneToSystem:c})=>{const d=new Date(c(tu(r,a,s.value)));return d.setDate(d.getDate()-t*7),i(d)},...o},{firstWeekDay:s.descriptor})()}},nu=mO,pO=Object.freeze([0,1,0,0,0,0,-1]),fO=(e=0)=>{const t=~~cn(0,e,1/0)||0;return vr({from:({now:o,timezone:s,systemToTimezone:r,timezoneToSystem:a})=>{const i=new Date(a(eu(o,s)));return i.setMonth(i.getMonth()-t),r(i)},...t?{offsets:pO}:{to:Mr}})},ou=fO,yO=ou(1),IO=yO,_O=365,TO=1,AO=1,SO=Kl(TO,_O,AO),NO=e=>{const t=SO(e);return vr({from:({now:n,timezone:o,systemToTimezone:s,timezoneToSystem:r})=>{const a=new Date(r(ql(n,o)));return a.setDate(a.getDate()-t.value+1),s(a)},to:Mr},{numberOfDays:t.descriptor})()},nc=NO,LO=nu(1),CO=LO,EO=ou(0),MO=EO,vO=nu(0),bO=vO,DO=vr({from:({now:e,timezone:t})=>cO(e,t),to:Mr}),OO=DO,$O=()=>Object.freeze({"rangePreset.last7Days":nc(7),"rangePreset.last30Days":nc(30),"rangePreset.thisWeek":bO(),"rangePreset.lastWeek":CO(),"rangePreset.thisMonth":MO(),"rangePreset.lastMonth":IO(),"rangePreset.yearToDate":OO()}),RO=({now:e=Date.now(),options:t,selectedOption:n,timezone:o})=>{const{i18n:s}=Q(),[r,a]=U(),[i,c]=U(),[d,g]=U(),u=k(),p=k(),[m,y,f]=T(()=>{const E=s.get("rangePreset.custom"),b=Object.keys(t),D=Object.freeze(b.map(R=>s.get(R)));return[E,(R,X=D)=>{const B=X.findIndex(se=>se===R);return t[b[B]]},D]},[s,t]),[A,I]=U(n===m),M=T(()=>Object.freeze([...f,m]),[m,f]),C=T(()=>A?M:f,[A,f,M]),v=L(E=>{const b=y(E,f);b&&(a(b.from),c(b.to),I(!1),g(E))},[m,y,d,f]),P=L(()=>{a(void 0),c(void 0),I(!0),g(m)},[m]);return T(()=>{n===m?g(m):v(n)},[]),T(()=>{var E;if(u.current!==e||p.current!==o){const b=Object.values(t);b.forEach(D=>{D.now=e,D.timezone=o}),u.current=e,p.current=(E=b[0])==null?void 0:E.timezone,v(d)}},[e,o,t]),{customSelection:P,from:r,onSelection:v,options:C,selectedOption:d,to:i}},xO=({calendarRef:e,onTimeRangeSelected:t,timestamp:n,...o})=>{const{customSelection:s,from:r,onSelection:a,options:i,selectedOption:c,to:d}=RO(o),g=T(()=>Object.freeze(i.map(y=>({id:y,name:y}))),[i]),u=L(({target:y})=>a(y==null?void 0:y.value),[a]),p=k(!0),m=k(n);return W(()=>{e!=null&&e.current&&r&&d&&(p.current=!0,e.current.from=new Date(r),e.current.to=new Date(d))},[e,r,d]),W(()=>{m.current!==n&&(m.current=n,p.current?p.current=!1:s())},[s,n]),W(()=>{c&&(t==null||t(c))},[c,t]),l(Er,{setToTargetWidth:!0,items:g,filterable:!1,multiSelect:!1,onChange:u,selected:c})},wO=xO,Ke=(()=>{const e=o=>Object.freeze(uo(z,Object.fromEntries(Object.entries(o).map(([s,r])=>[s,{value:r}])))),t=o=>{try{return Object.getPrototypeOf(o)===z}catch{return!1}},n=(o,s)=>{if(!o)return e($(s,Bt(o)));let r=s;return e({enumerable:!0,get:()=>r,set:a=>{r=o(a)}})};return Object.defineProperties(n,{is:{value:t},isObject:{value:mr},immutable:{value:o=>n(!1,o)},mutable:{value:o=>n(void 0,o)},restricted:{value:()=>n(!1)}})})(),su=(()=>{const e=(n={},o=!1)=>{const s=G();for(const[r,a]of Object.entries(n)){try{const i=Ke.is(a),c=Ke.isObject(a);if(i||c){Object.defineProperty(s,r,i?a:e(a,o));continue}else if(o){Object.defineProperty(s,r,Ke.immutable(a));continue}}catch{}s[r]=a}return Ke((r={})=>Object.assign(s,r),s)};return Object.defineProperties(e,{unwrapped:{value:(n={},o=!1)=>{const s=e(n,o);return G({P:s}).P}}})})();var ci=(e=>(e[e.DATE=0]="DATE",e[e.DAY_OF_WEEK=1]="DAY_OF_WEEK",e[e.MONTH_HEADER=2]="MONTH_HEADER",e))(ci||{});const ru="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",au="adyen-pe-calendar__date",PO=(e=z,t)=>{const n=su.unwrapped({childClassName:Ke.mutable(au),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(ru),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(ci.DATE,n),n},kO=Ye(({grid:e,prepare:t,datetime:n,flags:o,index:s,label:r,onlyCellsWithin:a},i)=>{const c=o.WITHIN_BLOCK,d={"data-cursor-position":s,"data-within-month":c,tabIndex:-1};if(c){const f=o.WITHIN_RANGE;d["data-today"]=o.CURRENT,d["data-first-week-day"]=o.LINE_START,d["data-last-week-day"]=o.LINE_END,d["data-weekend"]=o.WEEKEND,d["data-first-month-day"]=o.BLOCK_START,d["data-last-month-day"]=o.BLOCK_END,d["data-within-range"]=f,f&&(d["data-range-end"]=o.RANGE_END,d["data-range-start"]=o.RANGE_START,d["data-selection-end"]=o.SELECTION_END,d["data-selection-start"]=o.SELECTION_START,d["data-within-selection"]=o.WITHIN_SELECTION,d["aria-selected"]=`${!!(o.SELECTION_END||o.SELECTION_START||o.WITHIN_SELECTION)}`),s===+e.cursor&&(d.ref=i)}const g=PO(d,t),{children:u,className:p,...m}=g.props||z,y=Fs(g.className,ru,p);return l("td",{...m,...d,className:y,children:(!a||c)&&(()=>{const{children:f,className:A,...I}=g.childProps||z,M=Fs(g.childClassName,au,A);return l("time",{...I,className:M,dateTime:n,children:r})})()})}),jO=Ne(kO,js({block:js.exclude,flags:e=>+e})),iu="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",cu="adyen-pe-calendar__day-of-week",FO=(e=z,t)=>{const n=su.unwrapped({childClassName:Ke.mutable(cu),childProps:{children:Ke.restricted(),className:""},className:Ke.mutable(iu),props:{...e,children:Ke.restricted(),className:""}},!0);return t==null||t(ci.DAY_OF_WEEK,n),n},WO=({prepare:e,flags:t,labels:{long:n,short:o}})=>{const s={"aria-label":n,"data-first-week-day":t.LINE_START,"data-last-week-day":t.LINE_END,"data-weekend":t.WEEKEND,scope:"col"},r=FO(s,e),{children:a,className:i,...c}=r.props||z,d=Fs(r.className,iu,i),{children:g,className:u,...p}=r.childProps||z,m=Fs(r.childClassName,cu,u);return l("th",{...c,...s,className:d,children:l("abbr",{...p,className:m,children:o})})},BO=Ne(WO,js({block:js.exclude,flags:e=>+e}));const zO=go(({cursorRootProps:e,onlyCellsWithin:t,prepare:n,grid:o},s)=>l("ol",{className:"adyen-pe-calendar",role:"none",...e,children:o.map(r=>l("li",{className:"adyen-pe-calendar__month",role:"none",children:[l("div",{className:"adyen-pe-calendar__month-name",role:"none",children:l("time",{dateTime:r.datetime,"aria-hidden":"true",children:r.label})}),l("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${r.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":o.rowspan},children:[l("thead",{children:l("tr",{className:"adyen-pe-calendar__row",children:o.weekdays.map((a,i)=>l(BO,{grid:o,block:r,prepare:n,cell:i,...a},a.labels.long))})}),l("tbody",{children:r.map((a,i)=>l("tr",{className:"adyen-pe-calendar__row",children:a.map((c,d)=>l(jO,{ref:s,grid:o,block:r,prepare:n,cell:d,onlyCellsWithin:t,row:i,...c},`${r.month}:${c.timestamp}`))},`${r.month}:${i}`))})]})]},r.datetime))})),UO=Ne(zO),Bs=864e5,YO=["narrow","short","long"],lu=[0,1,6],Rn=[1,2,3,4,6,12],oc=42,GO=[0,1],li=Symbol(),ui=Symbol(),di=Symbol(),sc=[di,ui,li],Jt=Symbol(),vn=Symbol(),bn=Symbol(),HO=[vn,bn,Jt],uu=Symbol(),du=Symbol(),hu=Symbol(),gu=Symbol(),mu=Symbol(),pu=Symbol(),fu=Symbol(),yu=Symbol(),Iu=Symbol(),_u=Symbol(),hi=Symbol(),gi=Symbol(),Tu=Symbol(),rc=Symbol(),$e=Symbol(),ac=Symbol(),He=Symbol(),Au=Symbol(),vs=Symbol(),bs=Symbol(),ic=(e,t)=>{if(t>=e)return e;let n=Math.max(1,Rn.indexOf(e));for(;--n&&t<Rn[n];);return Rn[n]},ZO=e=>Rn[Math.max(Rn.indexOf(e),0)],cc=(e=0)=>Object.freeze(GO.map(t=>ds(6-e+t,7)));var Fo,We,Be,jn,Fn;class lc{constructor(...t){S(this,Fo,1/0);S(this,We,1/0);S(this,Be,-1/0);S(this,jn,0);S(this,Fn,0);if(t.length>=3){let n=new Date(t[1]).getTime();if(typeof t[2]!="symbol")_(this,Be,n||h(this,Be)),_(this,We,new Date(t[2]).getTime()||h(this,We)),h(this,We)<h(this,Be)&&([Zt(this,We)._,Zt(this,Be)._]=[h(this,Be),h(this,We)]),_(this,Fn,Mn(h(this,Be),t[0])),_(this,jn,Mn(h(this,We),t[0])),_(this,Fo,ga(h(this,Be),h(this,We),t[0])+1);else if(!isNaN(n))switch(t[2]){case gi:_(this,We,n),_(this,jn,Mn(h(this,We),t[0]));break;case hi:default:_(this,Be,n),_(this,Fn,Mn(h(this,Be),t[0]));break}}}get numberOfMonths(){return h(this,Fo)}get endTimestamp(){return h(this,We)}get endTimestampOffset(){return h(this,jn)}get startTimestamp(){return h(this,Be)}get startTimestampOffset(){return h(this,Fn)}}Fo=new WeakMap,We=new WeakMap,Be=new WeakMap,jn=new WeakMap,Fn=new WeakMap;const Dr=(...e)=>{let t=Dt().tz.current,n=new lc(t,...e);return G({from:oe(()=>n.startTimestamp,!1),to:oe(()=>n.endTimestamp,!1),offsets:{value:G({from:oe(()=>n.startTimestampOffset,!1),to:oe(()=>n.endTimestampOffset,!1)})},span:oe(()=>n.numberOfMonths,!1),timezone:{...oe(()=>t,!1),set:o=>{const s=t;t=Dt(o??void 0).tz.current,t!==s&&(n=new lc(t,...e))}}})},Eo=Dr(),VO=()=>Dr(Date.now(),hi),JO=()=>Dr(Date.now(),gi),Su=(...e)=>e.length===0?Eo:Dr(...e);var me=(e=>(e[e.CURRENT=1]="CURRENT",e[e.CURSOR=2]="CURSOR",e[e.WEEKEND=4]="WEEKEND",e[e.LINE_START=8]="LINE_START",e[e.LINE_END=16]="LINE_END",e[e.WITHIN_BLOCK=32]="WITHIN_BLOCK",e[e.BLOCK_START=64]="BLOCK_START",e[e.BLOCK_END=128]="BLOCK_END",e[e.WITHIN_RANGE=256]="WITHIN_RANGE",e[e.RANGE_START=512]="RANGE_START",e[e.RANGE_END=1024]="RANGE_END",e[e.WITHIN_SELECTION=2048]="WITHIN_SELECTION",e[e.SELECTION_START=4096]="SELECTION_START",e[e.SELECTION_END=8192]="SELECTION_END",e[e.ALL=16383]="ALL",e))(me||{}),An=(e=>(e[e.PREV=1]="PREV",e[e.BLOCK=0]="BLOCK",e[e.FRAME=2]="FRAME",e[e.PERIOD=4]="PERIOD",e))(An||{}),ma=(e=>(e[e.PREV_PERIOD=5]="PREV_PERIOD",e[e.PREV_FRAME=3]="PREV_FRAME",e[e.PREV=1]="PREV",e[e.NEXT=0]="NEXT",e[e.NEXT_FRAME=2]="NEXT_FRAME",e[e.NEXT_PERIOD=4]="NEXT_PERIOD",e))(ma||{});const QO=(()=>{const e={},t=Object.keys(me).filter(o=>isNaN(+o)),n=o=>o!=="ALL"&&qe(o)&&t.includes(o);return o=>{const s=o&me.ALL;return e[s]||(e[s]=new Proxy(G({valueOf:{value:()=>s}}),Ir({get:(r,a)=>{switch(a){case"valueOf":return r.valueOf;case Symbol.toStringTag:return"_";default:if(!n(a))return}return s&me[a]?1:void 0}}))),e[s]}})(),Nu=QO,XO=e=>(t,n,o)=>{if(qe(n)){const s=+n;if(s>=0&&s<t.length)return e(s)}return Reflect.get(t,n,o)},uc=function*(e=gr,t){for(let n=0;n<this.length;n++)yield e.call(t,this[n],n,this)},KO=Object.freeze(G({[Symbol.iterator]:{value(){return uc.call(this)}},map:{value(e,t){return[...uc.call(this,e,t)]}}})),vt=(e,t)=>ee(e)?vt({length:{get:e}},t):us(e)?vt({length:{value:e}},t):new Proxy(uo(KO,e),{get:XO(t),set:Xr}),qO=(()=>{const e=new Map,t=ps(),n=(o=Date.now())=>{const s=new Date(Et(t,o)),r=ft(t,s.setHours(0,0,0,0)),a=ft(t,s.setDate(s.getDate()+1));return[r,a-r]};return o=>{t.tz=o;const s=t.tz.current;return e.get(s)??(()=>{let r=null,a=null,i=null;const c=()=>(t.tz=s,r??n()[0]),d=(f=Date.now())=>{t.tz=s,[r,a]=n(f)},{cancelSubscriptions:g,requestNotification:u,subscribe:p,on:m}=ms({timestamp:c});m.resume=()=>{i=Fc.subscribe(f=>{if(ho(f))return;const{now:A}=f;if(ws(r)||ws(a))return d(A);A-r<a||(d(A),u())})},m.idle=()=>{i==null||i(),r=a=i=null};const y=G({cancelSubscriptions:$(g),timestamp:oe(c),timezone:$(s),subscribe:$(p)});return e.set(s,y),y})()}})(),zs=qO;var Wn,Re,Wo,Bo,zo,Uo,ot,ze,Tt,Bn,zn,Un,Kt,At,Yo,_e,ye,Ie,Yn,St,qt,Gn,st,Go,Ho,wt,Nt,Zo,Vo,Gs,Hs,Zs,Lu,Vs,Cu,Pt,Sn,Js,Eu,xe,Fe,en,Ao,Jo,fa;const Dn=class Dn{constructor(){S(this,Zs);S(this,Vs);S(this,Pt);S(this,Js);S(this,xe);S(this,en);S(this,Jo);S(this,Re,0);S(this,Wo,void 0);S(this,Bo,void 0);S(this,zo,-1);S(this,Uo,-1);S(this,ot,void 0);S(this,ze,void 0);S(this,Tt,void 0);S(this,Bn,!1);S(this,zn,void 0);S(this,Un,0);S(this,Kt,[]);S(this,At,h(Dn,Wn));S(this,Yo,12);S(this,_e,void 0);S(this,ye,void 0);S(this,Ie,1);S(this,Yn,void 0);S(this,St,void 0);S(this,qt,void 0);S(this,Gn,zs());S(this,st,void 0);S(this,Go,-1/0);S(this,Ho,1/0);S(this,wt,-1/0);S(this,Nt,1/0);S(this,Zo,1/0);S(this,Vo,0);x(this,"daysInWeek",0);x(this,"origin");x(this,"originTimestamp");S(this,Gs,vt(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));S(this,Hs,vt(()=>h(this,Ie),O(this,Js,Eu).bind(this)))}get fromTimestamp(){return h(this,Go)}get toTimestamp(){return h(this,Ho)}get numberOfBlocks(){return h(this,Zo)}get blankSelection(){return h(this,_e)===h(this,ye)&&H(h(this,ye))}get cursor(){return h(this,ot)??-1}get daysOfWeek(){return h(this,Gs)}get dynamicBlockHeight(){return h(this,Bn)}set dynamicBlockHeight(t){ue(t)?_(this,Bn,!!t):Qr(t)&&_(this,Bn,t)}set effect(t){ue(t)?_(this,zn,void 0):ee(t)&&_(this,zn,t)}get firstWeekDay(){return h(this,Un)}set firstWeekDay(t){if(ue(t))this.firstWeekDay=0;else if(!lu.includes(t)||h(this,Un)===_(this,Un,t))return}get frameBlocks(){return h(this,Hs)}get isAtEnd(){return!ln(h(this,Nt))&&h(this,Nt)===h(this,Ie)-1}get isAtStart(){return!ln(h(this,wt))&&h(this,wt)===0}get locale(){return h(this,At)}set locale(t){const n=h(this,At);if(ue(t))_(this,At,h(Dn,Wn));else if(typeof Intl<"u")try{_(this,At,new Intl.Locale(t).toString())}catch{_(this,At,h(Dn,Wn))}h(this,At)!==n&&this.refreshFrame(!0)}get selectionStart(){return h(this,_e)}get selectionEnd(){return h(this,ye)}get size(){return h(this,Ie)}set size(t){const n=Math.min(!ue(t)&&ZO(t)||1,h(this,Yo));h(this,Ie)!==_(this,Ie,n)&&(O(this,Jo,fa).call(this),this.refreshFrame())}get timeslice(){return h(this,St)}set timeslice(t){if(t===h(this,Yn)||ue(t)&&h(this,Yn)===Eo)return;const{from:n,to:o,timezone:s}=_(this,Yn,t??Eo);_(this,St,Su(n,o)),this.timezone=s}get timezone(){return h(this,qt)}set timezone(t){h(this,St).timezone=t,_(this,qt,h(this,St).timezone),_(this,Gn,zs(h(this,qt))),h(this,st)&&(h(this,st).call(this),_(this,st,h(this,Gn).subscribe(this.refreshFrame.bind(this,!0)))),O(this,Zs,Lu).call(this)}set trackCurrentDay(t){Qr(t)?t&&!h(this,st)?_(this,st,h(this,Gn).subscribe(this.refreshFrame.bind(this,!0))):!t&&h(this,st)&&(h(this,st).call(this),_(this,st,void 0)):ue(t)&&(this.trackCurrentDay=!1)}get units(){return h(this,Vo)}initialize(){this.timeslice=Eo}refreshFrame(t=!1){var n;if(h(this,Kt).length=0,!(H(h(this,ze))||t)){const o=this.getFrameBlockAtIndex(h(this,Re)),{from:s,to:r}=o.inner,[a]=O(this,Pt,Sn).call(this,this.getTimestampAtIndex(s+h(this,ze)),!1);_(this,ze,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(s),a));const i=s+h(this,ze),c=cn(s,i,r);if(c>i)return _(this,ze,this.getUnitsForFrameBlockAtIndex(--Zt(this,Re)._)+i-c),h(this,Re)>=0?this.refreshFrame():(_(this,Re,h(this,Ie)-1),this.shiftFrameByOffset(-1,vs));if(c<i)return _(this,ze,i-c-1),++Zt(this,Re)._<h(this,Ie)?this.refreshFrame():(_(this,Re,0),this.shiftFrameByOffset(1,vs));_(this,Wo,s),_(this,Bo,r),_(this,Tt,O(this,Pt,Sn).call(this,this.getTimestampAtIndex(i),!1)[0]),_(this,ze,this.getCursorBlockOriginTimestampOffset(h(this,Tt))),_(this,ot,s+h(this,ze));const d=h(this,Re)>0?this.getFrameBlockAtIndex(0):o,g=h(this,Re)<h(this,Ie)-1?this.getFrameBlockAtIndex(h(this,Ie)-1):o;_(this,zo,d.inner.from),_(this,Uo,g.inner.to),_(this,Vo,g.outer.to+1)}this.withCurrentDayTimestamp(),(n=h(this,zn))==null||n.call(this)}shiftFrameByOffset(t,n){if(t&&Mo(t))switch(n){case Au:return O(this,en,Ao).call(this,t);case bs:return O(this,en,Ao).call(this,t*12);case vs:default:return O(this,en,Ao).call(this,t*h(this,Ie))}}shiftFrameCursor(t){switch(t){case uu:return O(this,xe,Fe).call(this,-1);case mu:return O(this,xe,Fe).call(this,1);case _u:return O(this,xe,Fe).call(this,-this.rowspan);case gu:return O(this,xe,Fe).call(this,this.rowspan);case hu:return O(this,xe,Fe).call(this,h(this,Wo)-h(this,ot));case du:return O(this,xe,Fe).call(this,h(this,Bo)-h(this,ot));case fu:return O(this,xe,Fe).call(this,-(h(this,ot)%this.rowspan));case pu:return O(this,xe,Fe).call(this,this.rowspan-(h(this,ot)%this.rowspan+1));case Iu:return O(this,xe,Fe).call(this,-this.getUnitsForFrameBlockAtIndex((h(this,Re)??0)-1));case yu:return O(this,xe,Fe).call(this,this.getUnitsForFrameBlockAtIndex(h(this,Re)??0))}if(!(t<0)&&t>=h(this,zo)&&t<=h(this,Uo))return O(this,xe,Fe).call(this,t-h(this,ot))}shiftFrameToTimestamp(t){_(this,Tt,this.originTimestamp=O(this,Pt,Sn).call(this,t,!1).reduce((n,o)=>n+o)),_(this,ze,this.getCursorBlockOriginTimestampOffset(h(this,Tt))),this.reoriginate(),[Zt(this,wt)._,Zt(this,Nt)._]=this.getEdgeBlockOffsetsFromOrigin(),O(this,Jo,fa).call(this),this.refreshFrame(),O(this,xe,Fe).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(h(this,ot)),h(this,Tt)))}clearSelection(){this.blankSelection||(_(this,_e,_(this,ye,void 0)),this.refreshFrame(!0))}updateSelection(t,n){const o=h(this,_e),s=h(this,ye),r=O(this,Pt,Sn).call(this,t,!1).reduce((a,i)=>a+i);switch(n===rc&&(r<=o?n=He:r>=s&&(n=$e)),n){case $e:_(this,_e,r),_(this,ye,Math.max(h(this,_e),s??r));break;case He:_(this,ye,r),_(this,_e,Math.min(o??r,h(this,ye)));break;case rc:case ac:{let a=Math.abs(r-(o??r)),i=Math.abs(r-(s??r));n===ac&&([a,i]=[i,a]),a>i?_(this,_e,r):_(this,ye,r);break}case Tu:default:_(this,_e,_(this,ye,r));break}(h(this,_e)!==o||h(this,ye)!==s)&&this.refreshFrame(!0)}};Wn=new WeakMap,Re=new WeakMap,Wo=new WeakMap,Bo=new WeakMap,zo=new WeakMap,Uo=new WeakMap,ot=new WeakMap,ze=new WeakMap,Tt=new WeakMap,Bn=new WeakMap,zn=new WeakMap,Un=new WeakMap,Kt=new WeakMap,At=new WeakMap,Yo=new WeakMap,_e=new WeakMap,ye=new WeakMap,Ie=new WeakMap,Yn=new WeakMap,St=new WeakMap,qt=new WeakMap,Gn=new WeakMap,st=new WeakMap,Go=new WeakMap,Ho=new WeakMap,wt=new WeakMap,Nt=new WeakMap,Zo=new WeakMap,Vo=new WeakMap,Gs=new WeakMap,Hs=new WeakMap,Zs=new WeakSet,Lu=function(){const{from:t,to:n,span:o,offsets:s}=h(this,St);_(this,Go,t-s.from),_(this,Ho,n-s.to),_(this,Zo,o);const r=H(h(this,_e))?h(this,_e):Math.max(h(this,_e),t),a=H(h(this,ye))?h(this,ye):Math.min(h(this,ye),n);r===h(this,_e)||a===h(this,ye)?(_(this,_e,r),_(this,ye,a)):_(this,_e,_(this,ye,void 0)),this.reslice(),_(this,Yo,ic(12,this.numberOfBlocks)),_(this,Ie,ic(h(this,Ie),this.numberOfBlocks)),this.shiftFrameToTimestamp(h(this,Tt))},Vs=new WeakSet,Cu=function(t){return cn(h(this,wt),t||0,h(this,Nt)-h(this,Ie)+1)},Pt=new WeakSet,Sn=function(t,n=!0){let o=new Date(t).getTime();if(isNaN(o))return O(this,Pt,Sn).call(this,Date.now());const{from:s,to:r}=h(this,St),a=cn(s,o,r);a!==o&&n?(o=Ec(s,r),(isNaN(o)||ln(o))&&(o=a)):o=a;const i=Mn(o,h(this,qt));return[o-i,i]},Js=new WeakSet,Eu=function(t){if(Mo(t)&&t>=0&&t<h(this,Ie)){if(!h(this,Kt)[t]){const n=this.getFrameBlockAtIndex(t);if(!n)return;const[o,s]=this.getFormattedDataForFrameBlock(n[n.inner.from][0]+Bs/2),r=n.outer.from;h(this,Kt)[t]=vt({datetime:$(s),label:$(o),length:$(Math.ceil(n.outer.units/this.rowspan)),month:$(n.month),year:$(n.year)},a=>{const i=a*this.rowspan;return vt(this.rowspan,c=>{const[d,g]=n[c+i],[u,p]=this.getFormattedDataForBlockCell(d+Bs/2);return G({datetime:$(p),flags:$(Nu(g)),index:$(r+c+i),label:$(u),timestamp:$(d)})})})}return h(this,Kt)[t]}},xe=new WeakSet,Fe=function(t){t!==0&&(_(this,ze,h(this,ze)+t),this.refreshFrame())},en=new WeakSet,Ao=function(t){const n=O(this,Vs,Cu).call(this,t);n&&(this.shiftOrigin(n),_(this,wt,h(this,wt)-n),_(this,Nt,h(this,Nt)-n),_(this,Re,ds(h(this,Re)-n,h(this,Ie))),this.refreshFrame())},Jo=new WeakSet,fa=function(){const t=h(this,Ie)-1,n=Math.min(t-this.origin%h(this,Ie),h(this,Nt))-t;n&&O(this,en,Ao).call(this,n)},S(Dn,Wn,Tr);let pa=Dn;var tn,nn,Hn,Qo,Zn,Vn,Xo,Jn,Ko,Qn,Xn,Kn,qo,ya,es,Ia,kt,Nn,qn,Ds;class e$ extends pa{constructor(){super();S(this,qo);S(this,es);S(this,kt);S(this,qn);S(this,tn,7);S(this,nn,[]);S(this,Hn,cc(this.firstWeekDay));S(this,Qo,void 0);S(this,Zn,-1/0);S(this,Vn,1/0);S(this,Xo,1/0);S(this,Jn,void 0);S(this,Ko,void 0);S(this,Qn,void 0);S(this,Xn,void 0);S(this,Kn,void 0);x(this,"daysInWeek",h(this,tn));this.initialize()}get fromTimestamp(){return h(this,Zn)}get toTimestamp(){return h(this,Vn)}get numberOfBlocks(){return h(this,Xo)}get currentDayTimestamp(){return h(this,Qo)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const o=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==o&&this.refreshFrame(!0)}get rowspan(){return h(this,tn)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const o=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==o&&(h(this,nn).length=0,_(this,Hn,cc(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return xt(n,this.timezone)[2]-1}getDayOfWeekAtIndex(n){if(!h(this,nn)[n]){const o=new Date(this.getTimestampAtIndex(n));let s=0;h(this,Hn).includes(n)&&(s|=me.WEEKEND),n===0?s|=me.LINE_START:n===6&&(s|=me.LINE_END);const r={};for(const a of YO)r[a]=$(o.toLocaleDateString(this.locale,{weekday:a,timeZone:this.timezone}));h(this,nn)[n]=G({flags:$(Nu(s)),labels:$(G(r))})}return h(this,nn)[n]}getEdgeBlockOffsetsFromOrigin(){return[O(this,qo,ya).call(this,h(this,Zn)),O(this,qo,ya).call(this,h(this,Vn))]}getFormattedDataForBlockCell(n){const[o,s,r]=xt(n,this.timezone);return[Number(r).toLocaleString(this.locale),`${o}-${`${s+1}`.padStart(2,"0")}-${`${r}`.padStart(2,"0")}`]}getFormattedDataForFrameBlock(n){const[o,s]=xt(n,this.timezone);return[new Date(n).toLocaleDateString(this.locale,{month:"long",year:"numeric",timeZone:this.timezone}),`${o}-${`${s+1}`.padStart(2,"0")}`]}getFrameBlockAtIndex(n){const[o,s,r]=Yr(this.origin,h(this,Qn),n),a=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:h(this,Jn),i=a+o-1,c=Math.floor(a/7)*7,d=this.dynamicBlockHeight?Math.ceil((i+1)/7)*7:c+oc,g=this.dynamicBlockHeight?d-c:oc,u=new Proxy(G(),Ir({get:(p,m,y)=>{if(qe(m)){const f=+m;if(Mo(f)&&f>=0&&f<g){const A=c+f,I=this.getTimestampAtIndex(A),M=A%h(this,tn);let C=I===this.currentDayTimestamp?me.CURRENT:0;return A===this.cursor&&(C|=me.CURSOR),h(this,Hn).includes(M)&&(C|=me.WEEKEND),M===0?C|=me.LINE_START:M===h(this,tn)-1&&(C|=me.LINE_END),A>=a&&A<=i&&(A===a?C|=me.BLOCK_START:A===i&&(C|=me.BLOCK_END),C|=me.WITHIN_BLOCK),I>=this.fromTimestamp&&I<=this.toTimestamp&&(I===this.fromTimestamp&&(C|=me.RANGE_START),I===this.toTimestamp&&(C|=me.RANGE_END),C|=me.WITHIN_RANGE),I>=h(this,Xn)&&I<=h(this,Kn)&&(I===h(this,Xn)&&(C|=me.SELECTION_START),I===h(this,Kn)&&(C|=me.SELECTION_END),C|=me.WITHIN_SELECTION),[I,C]}}return Reflect.get(p,m,y)}}));return uo(u,{inner:{value:G({from:{value:a},to:{value:i},units:{value:o}})},month:{value:s},outer:{value:G({from:{value:c},to:{value:d-1},units:{value:g}})},year:{value:r}})}getUnitsForFrameBlockAtIndex(n){return Yr(this.origin,h(this,Qn),n)[0]}getUnitsOffsetForTimestamp(n,o){return Math.round((o-n)/Bs)}reoriginate(){this.originTimestamp=eu(this.originTimestamp,this.timezone);const[n,o]=xt(this.originTimestamp,this.timezone),s=tu(this.originTimestamp,this.timezone,this.firstWeekDay);this.origin=o,_(this,Qn,n),_(this,Jn,this.getUnitsOffsetForTimestamp(s,this.originTimestamp)),_(this,Ko,O(this,es,Ia).call(this,this.originTimestamp,-h(this,Jn)))}reslice(){O(this,qn,Ds).call(this),_(this,Zn,O(this,kt,Nn).call(this,super.fromTimestamp)),_(this,Vn,O(this,kt,Nn).call(this,super.toTimestamp)),_(this,Xo,ga(super.fromTimestamp,super.toTimestamp,this.timezone)+1)}shiftOrigin(n){const[o,s]=xt(this.originTimestamp,this.timezone),[,r,a]=Yr(s,o,n),i=Dt(this.timezone),c=new Date(Et(i,this.originTimestamp)).setFullYear(a,r);this.originTimestamp=ft(i,c),this.reoriginate()}clearSelection(){super.clearSelection(),O(this,qn,Ds).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return O(this,es,Ia).call(this,h(this,Ko),n)}updateSelection(n,o){super.updateSelection(n,o),O(this,qn,Ds).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(){_(this,Qo,O(this,kt,Nn).call(this,Date.now()))}}tn=new WeakMap,nn=new WeakMap,Hn=new WeakMap,Qo=new WeakMap,Zn=new WeakMap,Vn=new WeakMap,Xo=new WeakMap,Jn=new WeakMap,Ko=new WeakMap,Qn=new WeakMap,Xn=new WeakMap,Kn=new WeakMap,qo=new WeakSet,ya=function(n){const o=ga(n,this.originTimestamp,this.timezone);return n<this.originTimestamp?0-o:o},es=new WeakSet,Ia=function(n,o=0){const s=Dt(this.timezone),r=Et(s,n),a=ft(s,r+o*Bs);let[,,,i,c]=xt(a,this.timezone),d=0;return(i>0||c>0)&&(i=(i>12?24:0)-i,c=(i>1?1:-1)*c,d=i*36e5+c*6e4),a+d},kt=new WeakSet,Nn=function(n){return H(n)||ln(n)?n:n-Mn(n,this.timezone)},qn=new WeakSet,Ds=function(){_(this,Xn,O(this,kt,Nn).call(this,this.selectionStart)),_(this,Kn,O(this,kt,Nn).call(this,this.selectionEnd))};const dc=Symbol("<<NO_EXCEPTION>>"),hc=e=>{const t=[];return G({bind:$(o=>function(...s){let r=dc;try{return t.push(o),o.call(this,...s)}catch(a){throw r=a}finally{t.pop(),t.length===0&&r===dc&&e()}}),effect:$(e)})};var Nc,Lc,ce,rt,N,at,Ze,it,Le,on,Ue,eo,Lt,Ct,Ve,gt,to,ts,jt,Je,Qs,Ft,no,sn,ns,Xs,ae,Ks,qs,er,tr,nr,or,sr,Mu,rr,vu,ar,bu,ir,oo,Os,rn,So,os,_a,cr,Du,lr,Ou,ur,$u,dr,Ru,ss,Ta,hr,xu,an,No,rs,Aa,so,$s,as,Sa,is,Na,cs,La,ls,Ca;let t$=(ae=class{constructor(){S(this,rn);S(this,os);S(this,cr);S(this,lr);S(this,ur);S(this,dr);S(this,ss);S(this,hr);S(this,an);S(this,rs);S(this,so);S(this,as);S(this,is);S(this,cs);S(this,ls);x(this,"grid");x(this,"kill");S(this,ce,z);S(this,rt,!1);S(this,N,void 0);S(this,at,void 0);S(this,Ze,void 0);S(this,it,!1);S(this,Le,vn);S(this,on,!1);S(this,Ue,void 0);S(this,eo,(Nc=h(this,Ue))==null?void 0:Nc.join(" "));S(this,Lt,void 0);S(this,Ct,void 0);S(this,Ve,void 0);S(this,gt,void 0);S(this,to,void 0);S(this,ts,zs());S(this,jt,[]);S(this,Je,void 0);S(this,Qs,new Proxy(vt(()=>{var t;return((t=h(this,Je))==null?void 0:t.length)??0},O(this,ss,Ta).bind(this)),Ir({get:(t,n,o)=>{var r,a;const s=((r=h(this,Je))==null?void 0:r.indexOf(n))??-1;return s>=0?(a=O(this,ss,Ta).call(this,s))==null?void 0:a[1]:Reflect.get(t,n,o)}})));S(this,Ft,ms({blocks:()=>{var t;return(t=h(this,N))==null?void 0:t.size},cells:()=>{var t;return(t=h(this,N))==null?void 0:t.units},controls:()=>yo(sc,h(this,ce).controls),cursor:()=>{var t;return(t=h(this,N))==null?void 0:t.cursor},from:()=>{var t;return(t=h(this,N))==null?void 0:t.selectionStart},highlight:()=>h(this,Le),locale:()=>{var t;return(t=h(this,N))==null?void 0:t.locale},minified:()=>_n(h(this,ce).minified),origin:()=>{var t;return(t=h(this,N))==null?void 0:t.getTimestampAtIndex(0)},timezone:()=>{var t;return(t=h(this,N))==null?void 0:t.timezone},to:()=>{var t;return(t=h(this,N))==null?void 0:t.selectionEnd},today:()=>h(this,ts).timestamp}));S(this,no,(Lc=h(this,Ft))==null?void 0:Lc.snapshot);S(this,sn,hc(()=>{var t;return h(this,Ve)&&((t=h(this,Ft))==null?void 0:t.requestNotification())}));S(this,ns,hc(()=>{var t;return(t=h(this,Ve))==null?void 0:t.call(h(this,rn,So))}));S(this,Xs,uo(vt(()=>{var t;return((t=h(this,N))==null?void 0:t.size)??0},t=>{var n;return(n=h(this,N))==null?void 0:n.frameBlocks[t]}),{config:{value:Object.defineProperties(t=>(t&&O(this,lr,Ou).call(this,t),h(this,rn,So)),{cursorIndex:{get:()=>h(this,Lt),set:t=>{h(this,rt)||(ue(t)?_(this,Lt,void 0):ee(t)&&_(this,Lt,t))}},shiftFactor:{get:()=>h(this,Ct),set:t=>{h(this,rt)||(ue(t)?_(this,Ct,void 0):ee(t)&&_(this,Ct,t))}},watch:{get:()=>h(this,Ve),set:t=>{var n,o,s,r,a;if(!h(this,rt))if(ee(t)){if(_(this,Ve,t),!h(this,gt)){const i=(n=h(this,sn))==null?void 0:n.bind(h(ae,ir).bind(this));i&&(_(this,gt,(o=h(this,sn))==null?void 0:o.bind(ne)),_(this,to,(r=h(this,Ft))==null?void 0:r.subscribe((s=h(this,ns))==null?void 0:s.bind(i))),h(this,N)&&(h(this,N).effect=h(this,gt)))}if(!h(this,on))return;_(this,on,!1),(a=h(this,gt))==null||a.call(this)}else ue(t)&&_(this,Ve,void 0)}}})},controls:{value:h(this,Qs)},cursor:{value:Object.defineProperties(t=>O(ae,oo,Os).call(this,n=>!!(n&&O(this,ur,$u).call(this,n)))(t),{valueOf:{value:()=>{var t;return((t=h(this,N))==null?void 0:t.cursor)??-1}}})},highlight:{value:(()=>{const t=()=>h(this,at)===h(this,Ze)&&H(h(this,Ze)),n=o=>s=>O(ae,oo,Os).call(this,r=>{var a,i,c,d,g;if(!(h(this,rt)||!h(this,Le)||h(this,Le)===vn)){if(ue(r))return O(this,rs,Aa).call(this);t()?(i=h(this,N))==null||i.updateSelection(r,Tu):((a=h(this,N))==null||a.updateSelection(r,o),h(this,Le)===Jt&&h(this,Ue)&&O(this,so,$s).call(this,r,o===$e?He:$e,h(this,Ue))),_(this,at,(c=h(this,N))==null?void 0:c.selectionStart),_(this,Ze,(d=h(this,N))==null?void 0:d.selectionEnd),(g=h(this,N))==null||g.shiftFrameToTimestamp(o===$e?h(this,at):h(this,Ze))}})(s);return G({blank:{get:t},from:{get:()=>{var o;return((o=h(this,N))==null?void 0:o.selectionStart)??h(this,at)},set:n($e)},to:{get:()=>{var o;return((o=h(this,N))==null?void 0:o.selectionEnd)??h(this,Ze)},set:n(He)}})})()},rowspan:{get:()=>{var t;return((t=h(this,N))==null?void 0:t.rowspan)??0}},weekdays:{get:()=>{var t;return((t=h(this,N))==null?void 0:t.daysOfWeek)??h(ae,er)}}}));this.grid=h(this,Xs),this.kill=O(this,dr,Ru).bind(this)}},ce=new WeakMap,rt=new WeakMap,N=new WeakMap,at=new WeakMap,Ze=new WeakMap,it=new WeakMap,Le=new WeakMap,on=new WeakMap,Ue=new WeakMap,eo=new WeakMap,Lt=new WeakMap,Ct=new WeakMap,Ve=new WeakMap,gt=new WeakMap,to=new WeakMap,ts=new WeakMap,jt=new WeakMap,Je=new WeakMap,Qs=new WeakMap,Ft=new WeakMap,no=new WeakMap,sn=new WeakMap,ns=new WeakMap,Xs=new WeakMap,Ks=new WeakMap,qs=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,or=new WeakMap,sr=new WeakSet,Mu=function(t){if(!qe(t)||!h(ae,Ks).test(t))return;const n=t.split(/\s+/);return Array.from({length:6},(o,s)=>parseInt(n[s]??"0"))},rr=new WeakSet,vu=function(t){switch(t&~An.PREV){case An.FRAME:return vs;case An.PERIOD:return bs;case An.BLOCK:default:return Au}},ar=new WeakSet,bu=function(t){return t&An.PREV?-1:1},ir=new WeakMap,oo=new WeakSet,Os=function(t){var n;return((n=h(this,sn))==null?void 0:n.bind(t))??t},rn=new WeakSet,So=function(){return{...h(this,ce)}},os=new WeakSet,_a=function(){return new e$},cr=new WeakSet,Du=function(t){return!!h(this,N)&&!(t>0?h(this,N).isAtEnd:h(this,N).isAtStart)},lr=new WeakSet,Ou=function(t){var s,r;if(h(this,rt))return;_(this,Ue,void 0);const n=t==null?void 0:t.highlight,o=_n(h(this,ce).minified);if(qe(n)?_(this,Ue,O(s=ae,sr,Mu).call(s,n))&&_(this,Le,Jt):_(this,Le,yo(HO,n,h(this,Le))),_(this,ce,{...h(this,ce),...t,blocks:yo(Rn,t==null?void 0:t.blocks,h(this,ce).blocks),controls:yo(sc,t==null?void 0:t.controls,h(this,ce).controls),firstWeekDay:yo(lu,t==null?void 0:t.firstWeekDay,h(this,ce).firstWeekDay),fixedBlockHeight:_n(t==null?void 0:t.fixedBlockHeight,h(this,ce).fixedBlockHeight),highlight:h(this,Le),minified:_n(t==null?void 0:t.minified,h(this,ce).minified),trackCurrentDay:_n(t==null?void 0:t.trackCurrentDay,h(this,ce).trackCurrentDay)}),!ee(h(this,Ve))){h(this,N)?_(this,on,!0):(_(this,N,h(this,os,_a)),O(this,is,Na).call(this),O(this,ls,Ca).call(this),O(this,cs,La).call(this));return}(!h(this,N)||o!==h(this,ce).minified)&&(_(this,N,h(this,os,_a)),h(this,N).effect=h(this,gt)),O(this,is,Na).call(this),(r=h(this,gt))==null||r.call(this)},ur=new WeakSet,$u=function(t){if(t&&h(this,N)&&ee(h(this,Ve))){if(t instanceof KeyboardEvent){switch(t.code){case Y.ARROW_LEFT:h(this,N).shiftFrameCursor(uu);break;case Y.ARROW_RIGHT:h(this,N).shiftFrameCursor(mu);break;case Y.ARROW_UP:h(this,N).shiftFrameCursor(_u);break;case Y.ARROW_DOWN:h(this,N).shiftFrameCursor(gu);break;case Y.HOME:h(this,N).shiftFrameCursor(t.ctrlKey?hu:fu);break;case Y.END:h(this,N).shiftFrameCursor(t.ctrlKey?du:pu);break;case Y.PAGE_UP:t.shiftKey?h(this,N).shiftFrameByOffset(-1,bs):h(this,N).shiftFrameCursor(Iu);break;case Y.PAGE_DOWN:t.shiftKey?h(this,N).shiftFrameByOffset(1,bs):h(this,N).shiftFrameCursor(yu);break;case Y.SPACE:case Y.ENTER:return O(this,an,No).call(this),!0;default:return}return h(this,it)&&O(this,an,No).call(this,z),!0}if(t instanceof MouseEvent&&h(ae,qs).includes(t.type)&&ee(h(this,Lt))){const n=h(this,Lt).call(h(this,rn,So),t);if(!Mo(n))return;const o=t.type==="click";if(!(o||h(this,it)))return;if(h(this,N).shiftFrameCursor(n),h(this,N).cursor===n)return o?O(this,an,No).call(this):O(this,an,No).call(this,z),!0}}},dr=new WeakSet,Ru=function(){var t;h(this,rt)||((t=h(this,to))==null||t.call(this),_(this,sn,_(this,ns,_(this,Lt,_(this,N,_(this,Le,_(this,eo,_(this,no,_(this,Ue,_(this,Ct,_(this,to,_(this,Ft,_(this,gt,_(this,Ve,void 0))))))))))))),_(this,ce,z),_(this,it,_(this,on,!1)),_(this,rt,!0))},ss=new WeakSet,Ta=function(t){var o,s;if(!h(this,Je)||t<0||t>=h(this,Je).length)return;const n=h(this,Je)[t];if(!h(this,jt)[t]){const r=ma[n],a=O(o=ae,rr,vu).call(o,r),i=O(s=ae,ar,bu).call(s,r);h(this,jt)[t]=(...c)=>O(ae,oo,Os).call(this,(...d)=>{var p;const g=O(this,cr,Du).call(this,i);if(!(g&&d.length))return g;const u=O(this,hr,xu).call(this,n,d[0]);return H(u)?!1:((p=h(this,N))==null||p.shiftFrameByOffset(i*u,a),!0)})(...c)}return[n,h(this,jt)[t]]},hr=new WeakSet,xu=function(t,n){if(!(h(this,N)&&ee(h(this,Ve))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!h(ae,tr).includes(n.code))return}else return;let o=1;if(ee(h(this,Ct))){const s=Number(h(this,Ct).call(h(this,rn,So),n,t));o=Number.isInteger(s)&&s>=1?s:o}return o},an=new WeakSet,No=function(t){if(h(this,rt)||!h(this,N))return;switch(h(this,Le)){case Jt:case bn:break;case vn:default:return}const n=h(this,N).cursor,o=Math.max(h(this,N).getTimestampAtIndex(n),h(this,N).timeslice.from),s=Math.min(h(this,N).getTimestampAtIndex(n+1)-1,h(this,N).timeslice.to),r=h(this,Ue);if(h(this,Le)===bn||h(this,N).blankSelection||r)if(_(this,it,!(h(this,Le)===bn||r)),h(this,Le)===Jt&&r){const a=s>=h(this,N).selectionEnd?$e:He;a===$e?h(this,N).updateSelection(s,He):h(this,N).updateSelection(o,$e),O(this,so,$s).call(this,a===$e?h(this,N).selectionEnd:h(this,N).selectionStart,a,r)}else h(this,N).updateSelection(o,$e),h(this,N).updateSelection(s,He);else{const a=t===z,i=Dt(h(this,N).timezone);if(a||_(this,it,!1),o<=h(this,N).selectionStart){const c=new Date(Et(i,h(this,N).selectionStart)),d=Math.min(ft(i,c.setDate(c.getDate()+1)-1),h(this,N).timeslice.to);o===h(this,N).selectionStart&&s<=d&&h(this,N).updateSelection(s,He),h(this,N).updateSelection(o,$e)}else{const c=new Date(Et(i,h(this,N).selectionEnd)),d=Math.max(ft(i,c.setHours(0,0,0,0)),h(this,N).timeslice.from);o<=h(this,N).selectionEnd&&o>=d&&h(this,N).updateSelection(o,$e),h(this,N).updateSelection(s,He)}if(a)return}_(this,at,h(this,N).selectionStart),_(this,Ze,h(this,N).selectionEnd)},rs=new WeakSet,Aa=function(){var t;(t=h(this,N))==null||t.clearSelection(),_(this,it,!1),_(this,at,_(this,Ze,void 0))},so=new WeakSet,$s=function(t,n,o){var m;if(!h(this,N))return;const s=Dt((m=h(this,N))==null?void 0:m.timezone),r=new Date(Et(s,t)),a=n===$e?-1:1,[i=0,c=0,d=0,g=0,u=0,p=0]=o??[];r.setFullYear(r.getFullYear()+i*a,r.getMonth()+c*a,r.getDate()+d*a),r.setHours(r.getHours()+g*a,r.getMinutes()+u*a,r.getSeconds()+p*a),h(this,N).updateSelection(ft(s,r.getTime()-a),n)},as=new WeakSet,Sa=function(){var t,n;h(this,at)&&((t=h(this,N))==null||t.updateSelection(h(this,at),$e)),h(this,Ze)&&((n=h(this,N))==null||n.updateSelection(h(this,Ze),He)),_(this,it,!1)},is=new WeakSet,Na=function(){h(this,N)&&(h(this,N).timeslice=h(this,ce).timeslice,h(this,N).dynamicBlockHeight=!h(this,ce).fixedBlockHeight,h(this,N).firstWeekDay=h(this,ce).firstWeekDay,h(this,N).locale=h(this,ce).locale,h(this,N).size=h(this,ce).blocks,h(this,N).timezone=h(this,ce).timezone,h(this,N).trackCurrentDay=h(this,ce).trackCurrentDay,_(this,ts,zs(h(this,N).timezone)),O(this,as,Sa).call(this))},cs=new WeakSet,La=function(){var t,n,o,s,r,a;switch(h(this,Le)){case Jt:!Bt((t=h(this,N))==null?void 0:t.blankSelection)&&h(this,Ue)&&O(this,so,$s).call(this,(n=h(this,N))==null?void 0:n.selectionStart,He,h(this,Ue));break;case bn:if(!Bt((o=h(this,N))==null?void 0:o.blankSelection)){const i=Dt((s=h(this,N))==null?void 0:s.timezone),c=new Date(Et(i,(r=h(this,N))==null?void 0:r.selectionStart));(a=h(this,N))==null||a.updateSelection(ft(i,c.setHours(23,59,59,999)),He)}break;case vn:default:O(this,rs,Aa).call(this);return}},ls=new WeakSet,Ca=function(){var t,n;switch((t=h(this,Ft))==null?void 0:t.snapshot.controls){case li:_(this,Je,h(ae,nr));break;case ui:_(this,Je,h(ae,or));break;case di:default:_(this,Je,void 0)}h(this,jt).length=0,h(this,jt).length=((n=h(this,Je))==null?void 0:n.length)??0},S(ae,sr),S(ae,rr),S(ae,ar),S(ae,oo),S(ae,Ks,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),S(ae,qs,["click","mouseover","pointerover"]),S(ae,er,vt(0,ne)),S(ae,tr,[Y.ENTER,Y.SPACE]),S(ae,nr,Object.keys(ma).filter(t=>isNaN(+t))),S(ae,or,["PREV","NEXT"]),S(ae,ir,function(t){var a,i;if(ho(t))return;let n=!1,o=!1,s=!1;const r=(a=h(this,Ue))==null?void 0:a.join(" ");for(const c of Object.keys(t))t[c]!==((i=h(this,no))==null?void 0:i[c])&&(c==="controls"?n=!0:c==="highlight"?o=!0:(c==="from"||c==="to")&&(s=!0));h(this,eo)!==r&&(_(this,eo,r),o=!0),_(this,no,t),h(this,it)&&!s&&O(this,as,Sa).call(this),n&&O(this,ls,Ca).call(this),o&&O(this,cs,La).call(this)}),ae);const n$=(()=>Object.defineProperties(t=>{const{grid:n,kill:o}=new t$;return us(t)?n.config({blocks:t}):ee(t)?fr.then(()=>{n.config.watch=t}):n.config(t),G({grid:$(n),kill:$(o)})},{controls:{value:G({ALL:{value:li},MINIMAL:{value:ui},NONE:{value:di}})},highlight:{value:G({ONE:{value:bn},MANY:{value:Jt},NONE:{value:vn}})},slice:{value:Object.defineProperties(Su.bind(null),{FROM:{value:hi},TO:{value:gi},UNBOUNDED:{value:Eo},SINCE_NOW:{get:VO},UNTIL_NOW:{get:JO}})}}))(),dt=n$,o$=({config:e,grid:{controls:t},renderer:n})=>e.controls===dt.controls.NONE||!ee(n)?null:l(V,{children:t.map(([o,s])=>n(o,s))}),s$=Ne(o$),r$=e=>{const t=L((n,o)=>{o instanceof Element&&o.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),fr.then(()=>n==null?void 0:n.focus()))},[]);return $t(L((n,o)=>{try{e==null||e(n,o)}finally{t(n,o)}},[e]))},a$=r$,i$=({blocks:e,controls:t,dynamicBlockRows:n,firstWeekDay:o,highlight:s,locale:r,onHighlight:a,originDate:i,renderControl:c,sinceDate:d,timezone:g,trackCurrentDay:u,untilDate:p,useYearView:m},y)=>{const{i18n:f}=Q(),[A,I]=U(performance.now()),M=T(()=>dt.slice(d,p),[d,p]),C=k(z),v=T(()=>t??(ee(c)?dt.controls.MINIMAL:dt.controls.NONE),[t,c]),P=T(()=>s??(ee(a)?dt.highlight.ONE:dt.highlight.NONE),[s,a]),{grid:E,kill:b}=T(()=>{const{grid:R,kill:X}=dt(function(){I(performance.now()),C.current=this,!(B===R.highlight.from&&se===R.highlight.to)&&(B=R.highlight.from,se=R.highlight.to,a==null||a(B,se))});let{from:B,to:se}=R.highlight;return R.config.cursorIndex=K=>{let re=K.target;for(;re&&re!==K.currentTarget;){const Ee=Number(re.dataset.cursorPosition);if(Number.isFinite(Ee))return Ee;re=re.parentNode}},R.config.shiftFactor=function(K){if(this.controls===dt.controls.MINIMAL)return K!=null&&K.shiftKey?12:K!=null&&K.altKey?this.blocks:1},{grid:R,kill:X}},[]),D=T(()=>{const R=X=>{E.cursor(X)};return{onClickCapture:R,onMouseOverCapture:R,onPointerOverCapture:R,onKeyDownCapture:X=>{E.cursor(X)&&X.preventDefault()}}},[E]),j=a$(L((R,X)=>{X instanceof Element&&X.removeAttribute("aria-selected"),R instanceof Element&&R.setAttribute("aria-selected","true")},[]));return vv(y,()=>{const{from:R,to:X}=(E==null?void 0:E.highlight)||z;return{clear:()=>{E!=null&&E.highlight&&(E.highlight.from=void 0)},get config(){return{...C.current??z}},get from(){return tc(R)},set from(B){E!=null&&E.highlight&&B&&(E.highlight.from=B.getTime())},get to(){return tc(X)},set to(B){E!=null&&E.highlight&&B&&(E.highlight.to=B.getTime())}}},[E,A]),W(()=>{E.config({blocks:e,controls:v,firstWeekDay:o,fixedBlockHeight:!n,highlight:P,locale:r??f.locale,minified:m,timeslice:M,timezone:g,trackCurrentDay:u})},[v,P,e,n,o,E,f,r,M,g,u,m]),W(()=>{const R=[].concat(i).slice(0,2).map(Number).filter(Boolean);return R[0]&&(E.highlight.from=+R[0]),R[1]&&(E.highlight.to=+R[1]),b},[]),{cursorElementRef:j,cursorRootProps:D,grid:E}},c$=i$,l$=go((e,t)=>{const n=c$(e,t),o=n.grid.config();return l("div",{role:"none",children:[l(s$,{config:o,grid:n.grid,renderer:e.renderControl}),l(UO,{ref:n.cursorElementRef,config:o,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:e.onlyCellsWithin,prepare:e.prepare})]})}),u$=Ne(l$),d$=(e,t)=>{const[n,o]=U(),s=$t(T(()=>{const r=a=>(...i)=>{const c=e(a,...i);return c&&Nl(c,a)};return o(void 0),a=>o(a instanceof Element?()=>r(a):void 0)},[e,t]),t);return[n,s]},h$=d$,g$=e=>{const{i18n:t}=Q();return h$(L((n,o,s)=>{if(!(n instanceof HTMLElement))return null;if(ee(e))return e(o,s);let r,a,i;switch(o){case"PREV":r="prev",a="previous",i=ei;break;case"NEXT":r=a="next",i=Cr;break;default:return null}const c=s();return c?l(et,{"aria-label":t.get(`calendar.${a}Month`),variant:Oe.TERTIARY,disabled:!c,classNameModifiers:["circle",r],iconButton:!0,onClick:s,children:l(i,{role:"presentation"})},o):null},[t,e]))},m$=g$;const p$=go((e,t)=>{const{i18n:n}=Q(),[o,s]=m$(e.renderControl),[r,a]=U(performance.now()),i=T(()=>Bt(e.showTimezoneInfo),[e.showTimezoneInfo]),{clockTime:c,GMTOffset:d}=eO({timezone:e.timezone,withClock:i}),g=T(()=>F([{"adyen-pe-datepicker--with-timezone":i},"adyen-pe-datepicker"]),[i]),u=T(()=>i?{values:{offset:d,time:c}}:z,[d,c,i]),p=$t(ne,t),m=L(()=>{var y,f,A,I,M;a(performance.now()),(y=p.current)!=null&&y.from&&((f=p.current)!=null&&f.to)&&((M=e.onHighlight)==null||M.call(e,+((A=p.current)==null?void 0:A.from),+((I=p.current)==null?void 0:I.to)))},[a,e.onHighlight]);return l("div",{className:g,children:[l("div",{className:"adyen-pe-datepicker__selector-container",children:l(wO,{now:e.now,calendarRef:p,onTimeRangeSelected:e.onPresetOptionSelected,options:e.timeRangePresetOptions,selectedOption:e.selectedPresetOption,timestamp:r,timezone:e.timezone})}),l("div",{ref:s,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),l(u$,{...e,ref:p,firstWeekDay:ii,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:e.controls??dt.controls.MINIMAL,highlight:e.highlight??dt.highlight.MANY,onHighlight:m,renderControl:o,trackCurrentDay:!0}),i&&l("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",u)})]})}),f$=p$;const y$="adyen-pe-filter-button";function I$({className:e,classNameModifiers:t=[],children:n,disabled:o,onClick:s,...r},a){const i=T(()=>On("",e)||"",[e]),c=T(()=>Ua(o),[o]),{classes:d,click:g}=Ya(i,t,y$,c,s);return l("button",{className:d,ref:a,onClick:g,...r,children:l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,children:n})})}const _$=Ye(I$);function wu({onInput:e,onKeyUp:t,trimOnBlur:n,onBlurHandler:o,onBlur:s,onFocusHandler:r,errorMessage:a,...i},c){const{autoCorrect:d,classNameModifiers:g,isInvalid:u,isValid:p,readonly:m=!1,spellCheck:y,type:f,uniqueId:A,isCollatingErrors:I,disabled:M}=i;ct(i,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const C=L(K=>{e==null||e(K)},[e]),v=L(K=>{t&&t(K)},[t]),P=L(K=>{o==null||o(K),n&&(K.target.value=K.target.value.trim()),s==null||s(K)},[s,o,n]),E=L(K=>{r==null||r(K)},[r]),b=F("adyen-pe-input",[`adyen-pe-input--${f}`],i.className,{"adyen-pe-input--invalid":u,"adyen-pe-input--valid":p},g==null?void 0:g.map(K=>`adyen-pe-input--${K}`)),{classNameModifiers:D,uniqueId:j,isInvalid:R,isValid:X,isCollatingErrors:B,...se}=i;return l(V,{children:[l("input",{id:A,...se,type:f,className:b,readOnly:m,"aria-describedby":I?void 0:`${A}${ha}`,"aria-invalid":u,onInput:C,onBlur:P,onFocus:E,onKeyUp:v,disabled:M,ref:c}),u&&a&&l("span",{className:"adyen-pe-input__invalid-value",id:`${A}${ha}`,children:a})]})}wu.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const Ea=go(wu),T$=go(function(t,n){return l(Ea,{classNameModifiers:t.classNameModifiers,...t,ref:n,"aria-required":t.required,type:"text"})}),A$=e=>!e||vd(e),S$=(()=>{const e=t=>{const{editAction:n,name:o,onChange:s,onValueUpdated:r}=t,[a,i]=U(t.value),c=L(d=>{const g=d.target.value.trim();i(g),r(g)},[r]);return W(()=>{if(n===Ce.CLEAR){const d="";i(d),r(d),s(d)}n===Ce.APPLY&&s(a??"")},[a,n,s,r]),l(T$,{name:o,value:a,onInput:c})};return t=>l(e,{...t})})(),N$=({render:e,...t})=>{var X;const n=Se(Ae.down.xs),[o,s]=mt(!1),[r,a]=mt(!1),i=T(()=>t.isValueEmpty??A$,[t.isValueEmpty]),[c,d]=mt(i(t.value)),[g,u]=mt(!1),[p,m]=mt(!1),[y,f]=mt(i(t.value)),A=Ws(),I=T(()=>e??S$,[e]),M=L(B=>{const se=i(B??void 0);d(se),f(ws(B)),m(g?B!==t.value:!se)},[i,d,f,m,g,t.value]),{commitAction:C,commitActionButtons:v,committing:P,resetCommitAction:E}=Gl({applyDisabled:y||!p,resetDisabled:c}),[b,D]=T(()=>{const B=se=>()=>{se!==o&&(se&&(E(),m(!1),u(!1)),s(se),a(se))};return[B(!1),B(!0)]},[s,o,E,a,u,m]);W(()=>{if(r){const B=i(t.value);a(!1),d(B),u(!B)}},[t.value,r,i,a,d,u]),W(()=>{P&&b(),d(c)},[P,b,d,c]);const j=Se(Ae.only.sm),R=Se(Ae.only.md);return l(V,{children:[l("div",{className:`adyen-pe-filter adyen-pe-filter--${t.type}`,children:T(()=>l(_$,{classNameModifiers:[...t.appliedFilterAmount?["with-counter"]:[],...t.classNameModifiers??[],...o?["active"]:[],...c?[]:["has-selection"]],onClick:o?b:D,tabIndex:0,ref:A,children:l("div",{className:"adyen-pe-filter-button__default-container",children:[l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:t.label}),!!t.appliedFilterAmount&&l("div",{className:"adyen-pe-filter-button__counter-wrapper",children:l(q,{el:io.SPAN,variant:w.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:t.appliedFilterAmount})})]})}),[t.appliedFilterAmount,t.classNameModifiers,t.label,o,c,b,D,A])}),o&&l(Xa,{actions:v,title:(X=t.title)==null?void 0:X.trim(),variant:De.POPOVER,modifiers:["filter"],open:o,"aria-label":`${t.label}`,dismiss:b,dismissible:!1,withContentPadding:t.withContentPadding??!0,divider:!0,targetElement:A,disableFocusTrap:!1,position:ie.BOTTOM,containerSize:t.containerSize,showOverlay:n,fitPosition:j||R,children:I({...t,editAction:C,onValueUpdated:M})})]})},Pu=Ne(N$);var xo=(e=>(e.FROM="from",e.TO="to",e))(xo||{});const L$={month:"short",day:"numeric",year:"numeric"},ku=(e,t,n,o)=>{const s=n&&t(n),r=o&&t(o);if(s&&r)return`${s} - ${r}`;if(s)return e.get("filter.date.since",{values:{date:s}});if(r)return e.get("filter.date.until",{values:{date:r}})},pt=e=>{try{return new Date(e||"").toISOString()}catch{return""}},C$=(()=>{const e=({editAction:t,from:n,to:o,now:s,onChange:r,onValueUpdated:a,showTimezoneInfo:i,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,sinceDate:u,untilDate:p})=>{const{i18n:m}=Q(),{fullDateFormat:y}=mo(g),[f,A]=U(c),I=T(()=>[new Date(n),new Date(o)],[n,o]),M=k(),C=L((v,P)=>{a(ku(m,y,pt(v),pt(P)))},[m,y,a]);return W(()=>{var v,P,E;switch(t){case Ce.APPLY:r({selectedPresetOption:f,[xo.FROM]:pt((v=M.current)==null?void 0:v.from),[xo.TO]:pt((P=M.current)==null?void 0:P.to)});break;case Ce.CLEAR:(E=M.current)==null||E.clear(),r()}},[t,r,f]),l(f$,{ref:M,now:s,originDate:I,onHighlight:C,onPresetOptionSelected:A,selectedPresetOption:c,timeRangePresetOptions:d,timezone:g,showTimezoneInfo:i,sinceDate:pt(u),untilDate:pt(p)})};return t=>l(e,{...t})})(),E$=(e,t,n)=>e.formatRange(t,n);function M$({title:e,from:t,to:n,selectedPresetOption:o,...s}){const{i18n:r}=Q(),{fullDateFormat:a}=mo(s.timezone),[i,c]=U(),[d,g]=U(),[u,p]=U(),m=L(I=>{const{from:M,to:C,selectedPresetOption:v}=I??z;try{c(i??v),g(pt(d??M)),p(pt(u??C))}finally{s.onChange({from:M,to:C,selectedPresetOption:v})}},[i,d,u,s]),y=T(()=>r.get("rangePreset.custom"),[r]),f=T(()=>{const I={...L$,timeZone:s.timezone};let M=new Intl.DateTimeFormat(Tr,I);try{M=new Intl.DateTimeFormat(r.locale,I)}catch{}return M},[r,s.timezone]);W(()=>c(o),[o]),W(()=>g(pt(t||Date.now())),[t]),W(()=>p(pt(n||Date.now())),[n]);const A=T(()=>o===y&&d&&u?E$(f,new Date(d),new Date(u)):o??s.label,[y,f,d,u,o,s.label]);return l(Pu,{...s,from:t,to:n,type:"date",label:A,onChange:m,render:C$,selectedPresetOption:o,value:ku(r,a,t,n),withContentPadding:!1})}const v$=({timezone:e,canResetFilters:t,defaultParams:n,filters:o,nowTimestamp:s,refreshNowTimestamp:r,sinceDate:a,untilDate:i,updateFilters:c})=>{const{i18n:d}=Q(),g=T(()=>d.get(n.current.defaultTimeRange),[d]),[u,p]=U(g),m=L((y=z)=>{for(const[f,A]of Object.entries(y)){switch(f){case"selectedPresetOption":p(A||g);break;case xo.FROM:c({[Z.CREATED_SINCE]:A||n.current.defaultFilterParams[Z.CREATED_SINCE]});break;case xo.TO:c({[Z.CREATED_UNTIL]:A||n.current.defaultFilterParams[Z.CREATED_UNTIL]});break;default:return}r()}},[g,r,c]);return T(()=>!t&&p(g),[t,g]),l(M$,{label:d.get("dateRange"),name:Z.CREATED_SINCE,sinceDate:a,untilDate:i??new Date(s).toString(),from:o[Z.CREATED_SINCE],to:o[Z.CREATED_UNTIL],selectedPresetOption:u,timeRangePresetOptions:n.current.timeRangeOptions,timezone:e,onChange:m,showTimezoneInfo:!0,now:s})},ju=v$,b$=({...e})=>l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l("path",{d:"M1.25 1.25H14.75V4.05C14.75 4.65117 14.5094 5.22128 14.0903 5.64033L10.08 9.65066V11.6212L7.34093 14.76H5.92V9.65066L1.90967 5.64033C1.49062 5.22128 1.25 4.65117 1.25 4.05V1.25ZM2.75 2.75V4.05C2.75 4.24883 2.82938 4.43872 2.97033 4.57967L7.42 9.02934V12.388L8.58 11.0588V9.02934L13.0297 4.57967C13.1706 4.43872 13.25 4.24883 13.25 4.05V2.75H2.75Z",fill:"#00112C"})}),D$=b$;function Fu(e){const{i18n:t}=Q(),n=Se(Ae.down.xs),[o,s]=U(!n);return W(()=>{s(!n)},[n]),l(V,{children:[n&&l("div",{className:"adyen-pe-filter-bar__header",children:[l(q,{variant:w.SUBTITLE,children:t.get("transactions")}),l(et,{className:"adyen-pe-filter-bar__header-icon",variant:Oe.SECONDARY,iconButton:!0,onClick:()=>s(r=>!r),children:o?l($l,{}):l(D$,{})})]}),o&&l("div",{"aria-label":t.get("filterBar"),className:F("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":n}),children:[e.children,e.canResetFilters&&!!e.resetFilters&&l(et,{variant:Oe.TERTIARY,onClick:e.resetFilters,children:t.get("button.clearAll")})]})]})}function O$(e){return"callback"in e}function Wu(e){const[t,n]=U(null),o=L(a=>{var i;return a&&O$(e[a.selection.type])?{callback:(i=e==null?void 0:e[a.selection.type])!=null&&i.callback?c=>{var d,g;return(g=(d=e[a.selection.type])==null?void 0:d.callback)==null?void 0:g.call(d,{showModal:()=>n(a),...c})}:()=>{var c;return((c=e[a.selection.type])==null?void 0:c.showDetails)&&n(a)}}:(n(a),{})},[e]),s=L(()=>n(null),[]),r=T(()=>{const a={};for(const i in e){const c=e[i];a[i]=!(c!=null&&c.showDetails)||!!c.callback}return a},[e]);return{selectedDetail:t,updateDetails:o,detailsToShow:r,resetDetails:s}}const Bu=Object.freeze([10,20]),$$=100,Us=10,Ma=e=>{const t=~~e;return t===e&&t>0?Math.min(t,$$):Math.max(t,0)},R$=(e,t)=>{const n=e.length-1;if(n<0)return t;if(t<=e[0])return e[0];if(t>=e[n])return e[n];let o=0,s=0,r=n;for(;;){const a=e[o=Ec(s,r)];if(s>r||t===a)return a;t>a?s=o+1:r=o-1}},x$=({preferredLimit:e=Us,preferredLimitOptions:t})=>{const n=k(),o=k(),s=T(()=>{try{const a=new Set;for(const i of t){const c=Ma(i);c>0&&a.add(c)}return Object.freeze([...a].sort((i,c)=>i-c))}catch{}},[t]);return{limit:T(()=>{let a=Ma(e)||Us;e:try{if(n.current===s)break e;const i=new Set(n.current=s);if(i.size===0){n.current=void 0;break e}if(o.current!==a)t:{if(i.size===i.add(a).size)break t;if(i.delete(a),i.size===i.add(o.current).size){if(us(o.current)){a=o.current;break t}}else i.delete(o.current);a=R$(n.current,a)}}catch{}return o.current=a},[s,e]),limitOptions:s}},w$=x$,P$=e=>{const t=k(!1),n=T(()=>e,[e]);return W(()=>(t.current=!0,()=>{t.current=!1,n&&n()}),[n]),t},mi=P$,k$=(e,t,n)=>{const o=k(),s=k(),r=k(),a=k(),i=mi(L(()=>{var R;(R=o.current)==null||R.abort(),o.current=void 0},[])),[c,d]=U(a.current),[g,u]=mt(!1),p=T(()=>Ma(n),[n]),{getPageCount:m,getPageParams:y,resetPageCount:f,updatePagination:A}=e,I=T(()=>t?R=>{var K;if(!(p&&Number.isInteger(R)))return;const X=m(),B=R<0?R+X+1:R;B>0&&(X?B<=X:B===1)&&((K=o.current)==null||K.abort(),o.current=new AbortController,i.current&&(((a.current=B)>1||X)&&d(a.current),(async()=>{const{signal:re}=o.current,Ee={...y(B,p),limit:p,page:B};try{const Me=await t(Ee,re);if(!Me||!i.current)return;const{size:ve,...ke}=Me;A(B,p,ke),s.current=a.current&&Math.max(a.current,s.current||-1/0),a.current&&a.current===s.current&&(r.current=ve),a.current===1&&ve>0&&d(a.current),a.current=void 0,u(!0)}catch(Me){if(re.aborted)return;console.error(Me)}})()))}:ne,[p,t]),M=L(()=>{c&&I(Math.min(c+1,m()))},[I,c]),C=L(()=>{c&&I(Math.max(c-1,1))},[I,c]),v=T(()=>m()||c||void 0,[I,g]),P=T(()=>!!(c&&v)&&c<v,[c,v]),E=T(()=>!!c&&c>1,[c]),b=T(()=>s.current?(s.current-1)*p+(r.current||0):0,[I,g]),D=T(()=>p&&Math.min(p,b||1/0)%p,[p,b]),j=L(()=>{f(),s.current=r.current=a.current=void 0,i.current&&d(a.current)},[f]);return W(()=>{i.current&&g&&u(!1)},[g]),{goto:I,hasNext:P,hasPrev:E,limit:p,next:M,page:c,pages:v,pageSize:D,prev:C,resetPagination:j,size:b}},zu=k$,j$=e=>qe(e.next),F$=e=>qe(e.prev),W$=(e,t)=>{const n=T(()=>{const o=[],s=()=>o.length,r=()=>{o.length=0},a=d=>({cursor:o[d-1]}),i=(d,g)=>{const u=o[g-1];(g===1||g===(o.length||1)+1)&&H(u)&&(o[g-1]=d?decodeURIComponent(d):void 0)};return{getPageCount:s,getPageParams:a,resetPageCount:r,updatePagination:(d,g,u)=>{j$(u)&&i(u.next,d+1),F$(u)&&i(u.prev,d-1)}}},[]);return zu(n,e,t)},B$=W$,z$=e=>e.next,U$=(e,t)=>{const n=T(()=>{let o=0;return{getPageCount:()=>o,getPageParams:(c,d)=>({offset:(c-1)*d}),resetPageCount:()=>{o=0},updatePagination:(c,d,g)=>{z$(g)&&g.next&&(o=Math.max(o,c+1))}}},[]);return zu(n,e,t)},Y$=U$,G$=(e=z,t=!0)=>{const n=k(t),o=k(Object.freeze({...e})),s=k(new Set(Object.keys(o.current))),r=k(new Set),a=mi(),[i,c]=T(()=>{const p=m=>{a.current&&g(m)};return[()=>p("reset"),m=>p(m)]},[a]),[d,g]=Nr((p,m)=>{if(m==="reset")return r.current.clear(),o.current;const y={...m},f=[0];Object.keys(y).forEach((I,M)=>{if(!s.current.has(I))return;const C=p[I]??void 0,v=o.current[I]??void 0,P=y[I]??v;if(P===C)return;const E=Math.floor(M/32),b=1<<M%32;y[I]=P,f[E]|=b,r.current[P===v?"delete":"add"](I)});const A=f.some(I=>I)?n.current&&r.current.size===0?o.current:Object.freeze({...p,...y}):p;return n.current||(o.current=A,n.current=!0),A},o.current),u=T(()=>!!r.current.size,[]);return W(()=>{o.current=Object.freeze({...e}),s.current=new Set(Object.keys(o.current)),n.current=t,i()},[t,e,i]),{canResetState:u,defaultState:o.current,resetState:i,state:d,updateState:c}},H$=G$,Z$=(e=z,t)=>{const{canResetState:n,defaultState:o,resetState:s,state:r,updateState:a}=H$(e,t);return{canResetFilters:n,defaultFilters:o,filters:r,resetFilters:s,updateFilters:a}},V$=Z$;var va=(e=>(e.NEXT="next",e.PREV="prev",e))(va||{}),pi=(e=>(e.CURSOR="cursor",e.OFFSET="offset",e))(pi||{});const J$=["hasNext","hasPrevious"],Uu=e=>{const t=Object.getOwnPropertyNames(e);return!J$.some(n=>t.includes(n))},Q$=(e,t="data")=>{const n=e[t];if(Uu(e)){const o=Object.fromEntries(Object.entries(e._links).map(([s,r])=>[s,r.cursor]));return{records:n,paginationData:o}}throw new TypeError("MALFORMED_PAGINATED_DATA")},X$=(e,t="data")=>{const n=e[t];if(!Uu(e)){const{hasNext:o,hasPrevious:s}=e,r={[va.NEXT]:we(o),[va.PREV]:we(s)};return{records:n,paginationData:r}}throw new TypeError("MALFORMED_PAGINATED_DATA")},K$=({dataField:e="data",fetchRecords:t,filterParams:n=z,initialFiltersSameAsDefault:o=!0,initialize:s,onFiltersChanged:r,pagination:a,preferredLimit:i,preferredLimitOptions:c,enabled:d})=>{const[g,u]=U([]),[p,m]=mt(!0),[y,f]=U(),[A,I]=U(i),M=mi(),C=k(!0),v=k(1),P=V$(n,o),{limit:E,limitOptions:b}=w$({preferredLimit:A,preferredLimitOptions:c}),{defaultFilters:D,filters:j,updateFilters:R,...X}=P,[B,se]=T(()=>a===pi.CURSOR?[Q$,B$]:[X$,Y$],[]),K=L(fe=>I(fe),[]),{goto:re,page:Ee,pages:Me,resetPagination:ve,...ke}=se(L(async({page:fe,...de},be)=>{try{if(f(void 0),v.current=fe,!M.current||m(!0))return;const lt=await t({...de,...j},be),{records:ut,paginationData:Gt}=B(lt,e);return C.current&&(s==null||s([ut,Gt],P),C.current=!1),M.current&&(u(ut),m(!1)),{...Gt,size:ut==null?void 0:ut.length}}catch(lt){if(be!=null&&be.aborted)return;m(!1),f(lt),console.error(lt)}},[t,j,E]),E);return T(()=>{C.current=!0},[n]),T(()=>{ve(),v.current=1},[j,E,ve]),W(()=>{d&&re(v.current)},[re,d]),W(()=>{r==null||r(j)},[j]),{error:y,fetching:p,filters:j,goto:re,limitOptions:b,page:Ee,pages:Me,records:g,updateFilters:R,updateLimit:K,...X,...ke}},q$=K$,eR=e=>q$({...e,pagination:pi.CURSOR}),Yu=eR,tR="adyen-pe-transaction-totals",gc="adyen-pe-transaction-totals__item";const Or="adyen-pe-expandable-card",un=Or+"__container",mc=un+"--button",Gr=un+"--filled",nR=un+"--hidden",Gu=un+"--overlay",Hr=Gu,Rs=Or+"__content",pc=Rs+"--expandable",fc=Or+"__chevron",oR="adyen-pe-base-button";function sR({disabled:e=!1,onClick:t,classNameModifiers:n=[],type:o="button",children:s,className:r,fullWidth:a,...i},c){const d=T(()=>On("",r)||"",[r]),g=T(()=>Ua(e),[e]),{classes:u,click:p}=Ya(d,[...n,...a?["full-width"]:[]],oR,g,t);return l("button",{className:u,type:o,disabled:e,onClick:p,ref:c,...i,children:s})}const yc=Ye(sR),rR=({renderHeader:e,children:t,filled:n,fullWidth:o,...s})=>{const{i18n:r}=Q(),[a,i]=U(!1),c=L(()=>i(m=>!m),[i]),d=k(null),g=k(!1),u=k(a),p=Za(void 0,L(()=>{a&&(c(),g.current=!0)},[a,c]));return W(()=>{var m,y;a?(m=p.current)==null||m.focus():(u.current!==a&&!g.current&&((y=d.current)==null||y.focus()),g.current=!1),u.current=a},[a,p]),l("div",{className:Or,children:t?l(V,{children:[l(yc,{className:F(un,mc,{[Gr]:n}),disabled:a,fullWidth:o,"aria-controls":Hr,"aria-expanded":a,"aria-hidden":a,onClick:c,ref:d,"data-testid":"expand-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.expand")}),l("div",{className:F(Rs,pc),children:e}),l("div",{className:fc,children:l(Cr,{role:"presentation"})})]}),l(yc,{id:Hr,className:F(un,mc,Gu,{[Gr]:n,[nR]:!a}),disabled:!a,fullWidth:o,"aria-controls":Hr,"aria-expanded":a,"aria-hidden":!a,onClick:c,ref:p,"data-testid":"collapse-button",...s,children:[l("span",{className:"adyen-pe-sr-only",children:r.get("expandableCard.collapse")}),l("div",{className:F(Rs,pc),children:[e,l("div",{children:t})]}),l("div",{className:fc,children:l(ei,{role:"presentation"})})]})]}):l("div",{className:F(un,{[Gr]:n}),...s,children:l("div",{className:Rs,children:e})})})},Hu=rR,fi="adyen-pe-amount-skeleton",aR=fi+"--has-margin",iR=fi+"--loading";const cR=({hasMargin:e=!1,isLoading:t=!1,width:n})=>l("span",{className:F(fi,{[iR]:t,[aR]:e}),style:{width:n}}),lR=cR,mn="adyen-pe-summary-item",Zu=mn+"__label-container",uR=Zu+"--loading",dR=mn+"--body",Vu=mn+"__label",hR=mn+"__placeholder",gR=mn+"__amount",Ic=Ye(({config:e,i18n:t,isSkeletonVisible:n,className:o,...s},r)=>l("span",{className:F(Zu,o,{[uR]:n}),style:{cursor:"default"},ref:r,...s,children:e.labelKey&&l(q,{variant:w.CAPTION,className:Vu,children:t.get(e.labelKey)})}));const Ju=({columnConfigs:e,isHeader:t=!1,isHovered:n=!1,isSkeletonVisible:o=!1,isLoading:s=!1,widths:r,onWidthsSet:a,isEmpty:i})=>{const{i18n:c}=Q();W(()=>{const p=e.map(m=>{var y,f;return((f=(y=m.ref)==null?void 0:y.current)==null?void 0:f.getBoundingClientRect().width)??0});a(p)},[a]);const d=p=>({width:r&&r[p]?r[p]:"auto"}),g=Se(Ae.only.xs),u=L((p,m)=>p.valueHasLabelStyle?w.CAPTION:m&&!g?w.BODY:w.TITLE,[g]);return l("div",{className:F(mn,{[dR]:!t}),children:e.map((p,m)=>{const y=p.getValue(),f=!!y&&y.length>12;return l("div",{children:[t&&(p.tooltipLabel?l(Ka,{content:c.get(`${p.tooltipLabel}`),isContainerHovered:n,children:l(Ic,{config:p,i18n:c,isSkeletonVisible:o})}):l(Ic,{config:p,i18n:c,isSkeletonVisible:o})),o?l(lR,{isLoading:s,hasMargin:p.hasSkeletonMargin,width:p.skeletonWidth+"px"}):i?l("span",{className:F([mn,hR])}):l("div",{ref:p.ref,style:d(m),children:l(q,{variant:u(p,f),className:F({[Vu]:p.valueHasLabelStyle,[gR]:!p.valueHasLabelStyle}),children:y})})]},m)})})},_c=({total:e,hiddenField:t,isHeader:n=!1,isHovered:o=!1,isSkeleton:s=!1,isLoading:r=!1,widths:a,onWidthsSet:i})=>{const{i18n:c}=Q(),d=k(null),g=k(null),u=k(null),p=T(()=>{const m={labelKey:"totalIncoming",ref:d,skeletonWidth:80,getValue:()=>e&&c.amount(e.incomings,e.currency),tooltipLabel:"tooltip.totalIncoming"},y={labelKey:"totalOutgoing",ref:g,skeletonWidth:80,getValue:()=>e&&c.amount(e.expenses,e.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...t!=="incomings"?[m]:[],...t!=="expenses"?[y]:[],{ref:u,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}]},[e,t,c]);return l(Ju,{isHovered:o,isEmpty:!e,columnConfigs:p,isHeader:n,isSkeletonVisible:s,isLoading:r,widths:a,onWidthsSet:i})};const mR="adyen-pe-base-list",Qu=({children:e})=>l("ul",{className:mR,children:e}),Xu=()=>{const[e,t]=U([]),n=L(o=>{t(s=>o.every(r=>!r)?o:o.map((r,a)=>{const i=s[a];return!i||r>i?r:i}))},[]);return[e,n]},Zr=Ne(({totals:e,isLoading:t,hiddenField:n,fullWidth:o})=>{const[s,r]=Xu(),[a,i]=U(!1),[c,...d]=T(()=>e.map(g=>(g.key=`${g.currency}-${Math.random()}`,g)),[e]);return l(Hu,{renderHeader:l(_c,{isHovered:a,total:c,hiddenField:n,widths:s,isHeader:!0,isSkeleton:t,isLoading:t,onWidthsSet:r}),fullWidth:o,onMouseEnter:()=>i(!0),onFocus:()=>i(!0),onMouseLeave:()=>i(!1),onBlur:()=>i(!1),children:!t&&d.length&&l(Qu,{children:d.map(g=>l("li",{children:l(_c,{isHovered:a,total:g,hiddenField:n,widths:s,onWidthsSet:r})},g.key))})})}),pR=Ne(({availableCurrencies:e,isAvailableCurrenciesFetching:t,balanceAccountId:n,createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,fullWidth:g})=>{const{getTransactionTotals:u}=Ut().endpoints,p=L(async()=>u==null?void 0:u(z,{query:{createdSince:o,createdUntil:s,categories:r,statuses:a,maxAmount:i,minAmount:c,currencies:d,balanceAccountId:n}}),[n,r,o,s,d,u,i,c,a]),{data:m,isFetching:y}=Lr({fetchOptions:T(()=>({enabled:!!n&&!!u}),[n,u]),queryFn:p}),f=!n||y||t,I=L(()=>{if(!e||!m)return m==null?void 0:m.data;const C=e.map(v=>m.data.find(E=>E.currency===v)||{currency:v,incomings:0,expenses:0});return C.concat(m.data.filter(v=>!C.includes(v)))},[e,m])()??[],M=Se(Ae.only.xs);return l("div",{className:tR,children:M?l(V,{children:[l("div",{className:gc,children:l(Zr,{totals:I,isLoading:f,hiddenField:"expenses",fullWidth:g})}),l("div",{className:gc,children:l(Zr,{totals:I,isLoading:f,hiddenField:"incomings",fullWidth:g})})]}):l(Zr,{totals:I,isLoading:f,fullWidth:g})})}),fR=pR,yR="adyen-pe-balances",Tc=({balance:e,isHeader:t=!1,isSkeleton:n=!1,isLoading:o=!1,widths:s,onWidthsSet:r,isEmpty:a})=>{const{i18n:i}=Q(),c=k(null),d=k(null),g=T(()=>[{labelKey:"accountBalance",ref:c,skeletonWidth:80,getValue:()=>e&&i.amount(e.value,e.currency)},{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>e==null?void 0:e.currency}],[e,c,i]);return l(Ju,{isEmpty:a,columnConfigs:g,isHeader:t,isSkeletonVisible:n,isLoading:o,widths:s,onWidthsSet:r})},IR=Ne(({balanceAccountId:e,defaultCurrencyCode:t,onCurrenciesChange:n,fullWidth:o})=>{const{getBalances:s}=Ut().endpoints,r=L(async()=>s==null?void 0:s(z,{path:{balanceAccountId:e}}),[e,s]),{data:a,error:i,isFetching:c}=Lr({fetchOptions:T(()=>({enabled:!!e&&!!s}),[e,s]),queryFn:r}),d=!e||c,g=!!i||!(a!=null&&a.data.length),u=T(()=>(a==null?void 0:a.data)&&[...a.data].sort(({currency:A},{currency:I})=>{if(t){if(A===t)return-1;if(I===t)return 1}return A.localeCompare(I)}),[a==null?void 0:a.data,t]),[p,...m]=T(()=>(u==null?void 0:u.map(A=>(A.key=`${A.currency}-${Math.random()}`,A)))??[],[u]),[y,f]=Xu();return W(()=>{const A=new Set((u==null?void 0:u.map(({currency:I})=>I))||[]);n(Array.from(A),c)},[u,c,n]),l("div",{className:yR,children:l(Hu,{renderHeader:l(Tc,{isEmpty:g,balance:p,widths:y,isHeader:!0,isSkeleton:d,isLoading:d,onWidthsSet:f}),filled:!0,fullWidth:o,children:m.length&&l(Qu,{children:m.map(A=>l("li",{children:l(Tc,{balance:A,widths:y,onWidthsSet:f})},A.key))})})})}),_R=Ne(({placeholder:e,selection:t,selectionOptions:n,updateSelection:o})=>{const s=Se(Ae.down.xs),r=Se(Ae.only.sm),a=Se(Ae.only.md);return n&&n.length>1?l(Er,{onChange:o,filterable:!1,multiSelect:!0,placeholder:e,selected:t,withoutCollapseIndicator:!0,items:n,showOverlay:s,fitPosition:a||r}):null}),Ac=_R,TR=e=>Object.freeze(e.map(t=>({id:t,name:t}))),AR=({filterParam:e,filterValues:t,filters:n,defaultFilters:o,updateFilters:s})=>{const r=T(()=>Io((n==null?void 0:n[e])??(o==null?void 0:o[e])??""),[o,n,e]),a=T(()=>t&&TR(t),[t]),i=L(({target:c})=>{s==null||s({[e]:(c==null?void 0:c.value)||""})},[s,e]);return{selection:r,selectionOptions:a,updateSelection:i}},Vr=AR,SR=[Z.CURRENCIES,Z.CATEGORIES,Z.STATUSES],xs=Object.freeze(Object.fromEntries(SR.map(e=>[e,""]))),NR=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],LR=["Booked","Pending","Reversed"],CR=e=>{const t=$O(),n="rangePreset.last30Days",{from:o,to:s}=t[n];return{defaultFilterParams:{...e==="transactions"&&{...xs,[Z.MIN_AMOUNT]:void 0,[Z.MAX_AMOUNT]:void 0},[Z.BALANCE_ACCOUNT]:void 0,[Z.CREATED_SINCE]:new Date(o).toISOString(),[Z.CREATED_UNTIL]:new Date(s).toISOString()},defaultTimeRange:n,timeRangeOptions:t}},ER=(e,t)=>{const[n,o]=U(Date.now()),s=CR(e),r=k(s),a=L(()=>o(Date.now()),[o]);return W(()=>{a()},[t,a]),{defaultParams:r,nowTimestamp:n,refreshNowTimestamp:a}},Ku=ER,MR=(e,t)=>{const n=Vr({filterParam:Z.CATEGORIES,filterValues:NR,defaultFilters:xs,...e}),o=Vr({filterParam:Z.STATUSES,filterValues:LR,defaultFilters:xs,...e}),s=Vr({filterParam:Z.CURRENCIES,filterValues:t,defaultFilters:xs,...e});return{categoriesFilter:n,currenciesFilter:s,statusesFilter:o}},vR=MR;const Ys=1e5,bR=({onChange:e,editAction:t,onValueUpdated:n,selectedCurrencies:o,availableCurrencies:s,value:r,...a})=>{const{i18n:i}=Q(),[c,d]=U(H(a.minAmount)?void 0:parseFloat(a.minAmount)/Ys),[g,u]=U(H(a.maxAmount)?void 0:parseFloat(a.maxAmount)/Ys),p=L(()=>{e({minAmount:c,maxAmount:g})},[g,c,e]),m=L(()=>{e({minAmount:void 0,maxAmount:void 0}),u(void 0),d(void 0)},[e]);W(()=>{t===Ce.APPLY&&p(),t===Ce.CLEAR&&m()},[p,m,t]);const y=T(()=>({minAmount:c,maxAmount:g}),[g,c]);return W(()=>{y.minAmount||y.maxAmount?n(`${y.minAmount}-${y.maxAmount}`):n(null)},[y,n]),l("div",{className:"adyen-pe-range-selection-filter",children:[l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"minValue",children:`${i.get("from")}:`}),l(Ea,{"data-testid":"minValueFilter",lang:i.locale,name:"minValue",type:"number",value:c,onInput:f=>{f.currentTarget&&d(f.currentTarget.value!==""?f.currentTarget.value:void 0)},min:0,isInvalid:c?c<0:!1,errorMessage:i.get("noNegativeNumbersAllowed")})]}),l("div",{className:"adyen-pe-range-selection-filter__input",children:[l("label",{htmlFor:"maxValue",children:`${i.get("to")}:`}),l(Ea,{"data-testid":"maxValueFilter",lang:i.locale,name:"maxValue",type:"number",value:g,onInput:f=>{f.currentTarget&&u(f.currentTarget.value!==""?f.currentTarget.value:void 0)},min:c,isInvalid:!H(g)&&!H(c)&&g<c,errorMessage:i.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},DR=({updateFilters:e,selectedCurrencies:t,availableCurrencies:n,...o})=>{const{i18n:s}=Q(),[r,a]=U(),[i,c]=U(),d=T(()=>(t==null?void 0:t.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,t==null?void 0:t.length]),g=L((p,m)=>{const y=(t==null?void 0:t[0])||(n==null?void 0:n[0]),f=m&&y?{style:"currency",currency:y,currencyDisplay:"symbol"}:void 0;return p.toLocaleString(s.locale,f)},[n,s,t]),u=L(p=>{const{minAmount:m,maxAmount:y}=p??z;a({minAmount:m,maxAmount:y}),H(m)&&H(y)&&c(void 0),e({minAmount:H(m)?void 0:String(Math.round(m*Ys)),maxAmount:H(y)?void 0:String(Math.round(y*Ys))})},[e]);if(r&&(r.minAmount||r.maxAmount)){const{minAmount:p,maxAmount:m}=r??{};!H(p)&&!H(m)&&p<=m?c(`${g(p,d)} ${s.get("to").toLowerCase()} ${g(m,d)}`):!H(p)&&H(m)&&p>=0?c(`${s.get("from")} ${g(p,d)}`):H(p)&&!H(m)?c(`${s.get("to")} ${g(m,d)}`):c(void 0)}return l(Pu,{...o,updateFilters:e,minAmount:o.minAmount,maxAmount:o.maxAmount,onChange:u,value:i,label:i||o.label,type:"text",containerSize:Oo.MEDIUM,selectedCurrencies:t,availableCurrencies:n,render:bR})},qu="adyen-pe-transactions",ed=`${qu}-overview`,OR=`${qu}-details`,td=`${ed}__summary`,Sc=`${td}-item`,$R=24;const RR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Us,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getTransactions:g}=Ut().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=Ql(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=Ku("transactions",u),I=L(async({balanceAccount:nt,...Pe},xr)=>g({signal:xr,errorLevel:"error"},{query:{...Pe,statuses:Io(Pe[Z.STATUSES]),categories:Io(Pe[Z.CATEGORIES]),currencies:Io(Pe[Z.CURRENCIES]),createdSince:Pe[Z.CREATED_SINCE]??y.current.defaultFilterParams[Z.CREATED_SINCE],createdUntil:Pe[Z.CREATED_UNTIL]??y.current.defaultFilterParams[Z.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(u==null?void 0:u.id)??"",minAmount:H(Pe.minAmount)?void 0:parseFloat(Pe.minAmount),maxAmount:H(Pe.maxAmount)?void 0:parseFloat(Pe.maxAmount)}}),[u==null?void 0:u.id,y,g]),M=T(()=>ee(e)?e:void 0,[e]),C=T(()=>n?Bu:void 0,[n]),{canResetFilters:v,error:P,fetching:E,filters:b,limit:D,limitOptions:j,records:R,resetFilters:X,updateFilters:B,updateLimit:se,...K}=Yu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:C,enabled:!!(u!=null&&u.id)&&!!g}),[re,Ee]=U([]),[Me,ve]=U(!1),ke=L((nt,Pe)=>{Ee(nt),ve(Pe)},[]),{categoriesFilter:fe,currenciesFilter:de,statusesFilter:be}=vR({filters:b,updateFilters:B},re);W(()=>{Ee(void 0),B({[Z.BALANCE_ACCOUNT]:u==null?void 0:u.id,[Z.CURRENCIES]:void 0})},[B,u==null?void 0:u.id]),W(()=>{A()},[b,A]),W(()=>{be.updateSelection({target:{value:"Booked",name:"status"}})},[be]);const lt=Se(Ae.down.sm),ut=!!re&&re.length>1,Gt=T(()=>({showDetails:r??!0,callback:s}),[r,s]),Ts=T(()=>({transaction:Gt}),[Gt]),{updateDetails:fo,resetDetails:tt,selectedDetail:yn}=Wu(Ts),Ht=L(nt=>{fo({selection:{type:"transaction",data:{...nt,balanceAccount:u}},modalSize:"small"}).callback({id:nt.id})},[fo,u]),Rr=T(()=>{const nt=new Date(f);return nt.setMonth(nt.getMonth()-$R),nt.toString()},[f]);return l("div",{className:ed,children:[!c&&l(q,{variant:w.TITLE,medium:!0,children:d.get("transactionsOverviewTitle")}),l(Fu,{children:[l(Xl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(ju,{canResetFilters:v,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:Rr,timezone:u==null?void 0:u.timeZone,updateFilters:B}),l(Ac,{...fe,placeholder:d.get("filterPlaceholder.category")}),l(DR,{availableCurrencies:re,selectedCurrencies:Io(b[Z.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:b[Z.MIN_AMOUNT],maxAmount:b[Z.MAX_AMOUNT],updateFilters:B,onChange:B}),l(Ac,{...de,placeholder:d.get("filterPlaceholder.currency")})]}),l("div",{className:td,children:[l("div",{className:Sc,children:l(fR,{availableCurrencies:re,isAvailableCurrenciesFetching:Me,balanceAccountId:u==null?void 0:u.id,statuses:be.selection,categories:fe.selection,createdUntil:b[Z.CREATED_UNTIL],createdSince:b[Z.CREATED_SINCE],currencies:de.selection,minAmount:b[Z.MIN_AMOUNT]?parseFloat(b[Z.MIN_AMOUNT]):void 0,maxAmount:b[Z.MAX_AMOUNT]?parseFloat(b[Z.MAX_AMOUNT]):void 0,fullWidth:lt})}),l("div",{className:Sc,children:l(IR,{balanceAccountId:u==null?void 0:u.id,onCurrenciesChange:ke,defaultCurrencyCode:u==null?void 0:u.defaultCurrencyCode,fullWidth:lt})})]}),l(Fl,{selectedDetail:yn,resetDetails:tt,className:OR,children:l(H0,{activeBalanceAccount:u,availableCurrencies:re,error:P,hasMultipleCurrencies:ut,limit:D,limitOptions:j,loading:E||a||!t,onContactSupport:i,onLimitSelection:se,onRowClick:Ht,showPagination:!0,transactions:R,...K})})]})},xR="adyen-pe-transactions-overview-container";function wR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=Ba(e.balanceAccountId);return l(Ol,{balanceAccountsError:s,className:xR,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(RR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}const PR=({i18n:e=new Ar().i18n,children:t,commonProps:n,loadingContext:o,updateCore:s,externalErrorHandler:r})=>{const[a,i]=mt(!1),c=T(()=>n||{},[n]),d=T(()=>o??"",[o]);return W(()=>{(async()=>{await(e==null?void 0:e.ready),i(!0)})().catch()},[]),a?l(Ll.Provider,{value:{i18n:e,commonProps:c,loadingContext:d,updateCore:s,externalErrorHandler:r},children:zt(t)}):null},kR=PR;var Cc;class nd{constructor(t){x(this,"_component");x(this,"_node",null);x(this,"_id",`${(Cc=this.constructor)==null?void 0:Cc.type}-${ba()}`);x(this,"defaultProps",{});x(this,"props");x(this,"state",{});this.props=this.formatProps({...this==null?void 0:this.defaultProps,...t}),this.props.core.registerComponent(this)}formatProps(t){return t}formatData(){return{}}setState(t){this.state={...this.state,...t}}get data(){return{...this.formatData(),clientStateDataIndicator:!0}}render(){throw new Error("Component cannot be rendered.")}mount(t){const n=qe(t)?document.querySelector(t):t;if(!n)throw new Error("Component could not mount. Root node was not found.");return this._node&&this.unmount(),this._node=n,this._component=this.render(),Cn(this._component,n),this}update(t){return this.props=this.formatProps({...this.props,...t}),this._component=this.render(),this._node&&Cn(this._component,this._node),this}remount(t){if(!this._node)throw new Error("Component is not mounted.");const n=t||this.render();return Cn(n,this._node),this}unmount(){return this._node&&Cn(null,this._node),this}remove(){this.unmount(),this.props.core.remove(this)}}x(nd,"type");const jR=nd;class FR extends jR{constructor(n){super(n);x(this,"componentRef",null);x(this,"componentToRender",null);x(this,"elementRef");x(this,"onContactSupport");x(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.elementRef=this}get isValid(){return!!this.state.isValid}get displayName(){return this.type}get accessibleName(){return this.displayName}get type(){var n;return(n=this.constructor)==null?void 0:n.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,o){var s,r;return(s=this.componentRef)!=null&&s.setStatus?this.componentRef.setStatus(n,o):(r=this.setUIElementStatus)==null||r.call(this,n),this}render(){const n=this.props.core,o=n.update.bind(n),s=this.props.onError||n.onError||null;return n.session.errorHandler=s,l($v,{session:n.session,children:l(kR,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:o,externalErrorHandler:s,children:this.componentToRender&&l("div",{className:"adyen-pe-component",children:this.componentToRender()})})},performance.now())}}const $r=FR;class od extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(wR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(od,"type","transactions");const WR=od;class sd extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(si,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(sd,"type","transactionDetails");const BR=sd,zR="adyen-pe-payouts-overview",UR="adyen-pe-payouts-details",YR=new Date("2024-04-16T00:00:00.000Z").toString(),rd="adyen-pe-payouts-table",GR=`${rd}__net-payout`;const ad=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],HR=["createdAt",...ad],ZR=e=>ad.includes(e),VR=({error:e,loading:t,onContactSupport:n,onRowClick:o,showDetails:s,showPagination:r,data:a,...i})=>{const{i18n:c}=Q(),{dateFormat:d}=mo("UTC"),{refreshing:g}=Ut(),u=T(()=>t||g,[t,g]),p=Se(Ae.up.sm),m=T(()=>({fundsCapturedAmount:p,adjustmentAmount:p}),[p]),y=T(()=>HR.map(I=>{var C,v,P,E;const M=c.get(Bl(I));return ZR(I)?{key:I,label:(v=(C=a==null?void 0:a[0])==null?void 0:C[I])!=null&&v.currency?`${M} (${zc((E=(P=a==null?void 0:a[0])==null?void 0:P[I])==null?void 0:E.currency)})`:M,visible:m[I],position:gn.RIGHT}:{key:I,label:M,visible:m[I]}}),[c,m,a]),f={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},A=T(()=>()=>l(Wl,{error:e,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[e,n]);return l("div",{className:rd,children:l(co,{errorDisplay:A,error:e,columns:y,data:a,loading:u,outline:!1,onRowClick:{callback:o},emptyTableMessage:f,customCells:{createdAt:({value:I})=>I?p?I&&d(I,dD):d(I,{month:"short",day:"numeric",year:void 0,hour:"2-digit",minute:"2-digit",hour12:!1}):null,fundsCapturedAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),adjustmentAmount:({value:I})=>I&&l("span",{children:c.amount(I.value,I.currency,{hideCurrency:!0})}),payoutAmount:({value:I})=>I&&l("span",{className:F({[`${GR}--strong`]:!p}),children:c.amount(I.value,I.currency,{hideCurrency:p})})},children:r&&l(co.Footer,{children:l(Jl,{...i})})})})};const JR=({onFiltersChanged:e,balanceAccounts:t,allowLimitSelection:n,preferredLimit:o=Us,onRecordSelection:s,showDetails:r,isLoadingBalanceAccount:a,onContactSupport:i,hideTitle:c})=>{const{i18n:d}=Q(),{getPayouts:g}=Ut().endpoints,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}=Ql(t),{defaultParams:y,nowTimestamp:f,refreshNowTimestamp:A}=Ku("payouts",u),I=L(async(de,be)=>g({signal:be,errorLevel:"error"},{query:{...de,createdSince:de[Z.CREATED_SINCE]??y.current.defaultFilterParams[Z.CREATED_SINCE],createdUntil:de[Z.CREATED_UNTIL]??y.current.defaultFilterParams[Z.CREATED_UNTIL],balanceAccountId:(u==null?void 0:u.id)??""}}),[u==null?void 0:u.id,y,g]),M=T(()=>ee(e)?e:void 0,[e]),C=T(()=>n?Bu:void 0,[n]),{canResetFilters:v,error:P,fetching:E,filters:b,limit:D,limitOptions:j,records:R,resetFilters:X,updateFilters:B,updateLimit:se,...K}=Yu({fetchRecords:I,dataField:"data",filterParams:y.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:M,preferredLimit:o,preferredLimitOptions:C,enabled:!!(u!=null&&u.id)&&!!g});W(()=>{A()},[b,A]);const re=T(()=>({showDetails:r??!0,callback:s}),[r,s]),Ee=T(()=>({payout:re}),[re]),{updateDetails:Me,resetDetails:ve,selectedDetail:ke}=Wu(Ee),fe=L(de=>{Me({selection:{type:"payout",data:{id:u==null?void 0:u.id,balanceAccountDescription:(u==null?void 0:u.description)||"",date:de.createdAt}},modalSize:"small"}).callback({balanceAccountId:(u==null?void 0:u.id)||"",date:de.createdAt})},[Me,u]);return l("div",{className:zR,children:[!c&&l(q,{variant:w.TITLE,medium:!0,children:d.get("payoutsTitle")}),l(Fu,{children:[l(Xl,{activeBalanceAccount:u,balanceAccountSelectionOptions:p,onBalanceAccountSelection:m}),l(ju,{canResetFilters:v,defaultParams:y,filters:b,nowTimestamp:f,refreshNowTimestamp:A,sinceDate:YR,timezone:"UTC",updateFilters:B})]}),l(Fl,{className:UR,onContactSupport:i,selectedDetail:ke,resetDetails:ve,children:l(VR,{loading:E||a||!t,data:R,showPagination:!0,onRowClick:fe,showDetails:r,limit:D,limitOptions:j,onContactSupport:i,onLimitSelection:se,error:P,...K})})]})},QR="adyen-pe-payouts-overview-container";function XR({...e}){const{balanceAccounts:t,isBalanceAccountIdWrong:n,isFetching:o,error:s}=Ba(e.balanceAccountId);return l(Ol,{balanceAccountsError:s,className:QR,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:e.onContactSupport,children:l(JR,{...e,balanceAccounts:t,isLoadingBalanceAccount:o})})}class id extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(XR,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(id,"type","payouts");const KR=id;class cd extends $r{constructor(n){super(n);x(this,"componentToRender",()=>l(si,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}x(cd,"type","payoutDetails");const qR=cd;async function ex(e){return await new ol(e).initialize()}exports.AdyenPlatformExperience=ex;exports.Core=ol;exports.PayoutDetails=qR;exports.PayoutsOverview=KR;exports.TransactionDetails=BR;exports.TransactionsOverview=WR;exports.all_locales=pv;exports.da_DK=Zc;exports.de_DE=Vc;exports.en_US=$a;exports.es_ES=Jc;exports.fr_FR=Qc;exports.it_IT=Xc;exports.nl_NL=Kc;exports.no_NO=qc;exports.pt_BR=el;exports.sv_SE=tl;
11
+ `.replace(/\s+/,""),ff=["contenteditable","controls","disabled","hidden","href","inert","tabindex"],gc=new Map,ru=t=>t.tagName==="INPUT",_f=t=>ru(t)&&t.type==="radio",gf=t=>{const e=t.name,n=t.form,s=gc.get(n);let r=s==null?void 0:s.get(e);return Z(r)&&n&&(r=n.querySelector(`input[type=radio][name='${e}']:checked`)||null,gc.set(n,(s||new Map).set(e,r))),r===t},If=(t,e)=>{for(const n of e)if(n.type!=="attributes"){if(Ua(n.addedNodes,s=>s instanceof Element&&po(s))||Ua(n.removedNodes,s=>t.includes(s)))return!0}else{if(po(n.target))return!0;if(t.includes(n.target))return!0}return!1},sa=(t=document.body,e)=>{if(Z(t))return!1;if(ht(e))return!!document.activeElement&&sa(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},ra=t=>!(!t.matches(na)||t!=null&&t.disabled||/^(true)?$/.test(t.getAttribute("inert"))||ru(t)&&t.hidden),po=t=>!(_f(t)&&!gf(t)||(t==null?void 0:t.tabIndex)<0||!ra(t)),pf=()=>{const t=new MutationObserver(a=>If(e,a)&&i()),e=[];let n=-1,s=null;const r=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()},i=()=>{e.length=0,s instanceof Element&&(s.querySelectorAll(na).forEach(a=>po(a)&&e.push(a)),sa(s)&&(o.current=document.activeElement))},o=Object.create(null,{current:{get:()=>e[n]??null,set:a=>{if(a){if(!mr(a))return r(e.indexOf(a));if(a===~~a)return r(fr(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:ff,attributes:!0,childList:!0,subtree:!0}),i()))}},tabbables:{value:e}});return o},yf=pf,Sf=(t,e)=>{const n=W(!1),s=W(null),r=W(!1),i=y(yf,[]),o=y(()=>{let m=null,d;return _=>{Z(d)||cancelAnimationFrame(d);let f=_.target;for(;f&&f!==_.currentTarget;){if(ra(f)){m=f,d=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{var I;s.current!==m&&m instanceof HTMLElement&&((I=s.current=m)==null||I.focus()),m=null,d=void 0})});return}f=f.parentNode}}},[]),a=N(m=>{i.current=s.current=m.target},[]),l=N(m=>{i.tabbables.includes(m.relatedTarget)||sa(m.currentTarget,m.relatedTarget)||r.current||(n.current=!0,requestAnimationFrame(()=>{n.current&&e(n.current=!1)}))},[]),u=y(()=>{let m;return d=>{switch(d.code){case H.ARROW_DOWN:case H.ARROW_LEFT:case H.ARROW_RIGHT:case H.ARROW_UP:case H.END:case H.ESCAPE:case H.HOME:case H.PAGE_DOWN:case H.PAGE_UP:case H.TAB:cancelAnimationFrame(m),m=requestAnimationFrame(()=>{m=requestAnimationFrame(()=>{r.current=!1,m=void 0})}),r.current=!0;break}d.code===H.TAB?(d.preventDefault(),i.current=d.shiftKey?-1:1):d.code===H.ESCAPE&&e(!0)}},[]);return je(N((m,d)=>{d instanceof Element&&(d.removeEventListener("keydown",u,!0),d.removeEventListener("focusin",a,!0),d.removeEventListener("focusout",l,!0),m.removeEventListener("click",o,!0)),m instanceof Element?(m.addEventListener("keydown",u,!0),m.addEventListener("focusin",a,!0),m.addEventListener("focusout",l,!0),m.addEventListener("click",o,!0),n.current=!1,i.root=m):i.root=null},[]),t)},Af=Sf,Tf=(()=>{const t=new WeakMap,e=J({remove:x(function(){s(this.observerCallback)})}),n=r=>{let i=t.get(r);if(Z(i)){const o=new IntersectionObserver(a=>{a.forEach(l=>{r&&r(l)})},{root:null,rootMargin:"",threshold:[1]});i=_s(e,{observerCallback:x(r),observer:x(o)}),t.set(r,i)}return i},s=r=>{const i=t.get(r);i==null||i.observer.disconnect(),t.delete(r)};return n})(),Ji=Tf,Nf=({popover:t,offset:e,targetElement:n,position:s,variant:r,fullWidth:i})=>{const o=n==null?void 0:n.current;let a=0,l=0;const u=o.getBoundingClientRect(),m=document.body.getBoundingClientRect(),d=t==null?void 0:t.firstChild,_=m.left+m.width/2-d.offsetWidth/2,f=u.left+u.width/2-d.offsetWidth/2,I=u.top+u.height/2-d.offsetHeight/2;switch(s){case at.BOTTOM:a=i?_:r===bt.TOOLTIP?f+window.scrollX:(u==null?void 0:u.left)+window.scrollX,l=(u==null?void 0:u.top)+(u==null?void 0:u.height)+window.scrollY+e[1];break;case at.BOTTOM_LEFT:a=(u==null?void 0:u.right)+window.scrollX-t.clientWidth,l=(u==null?void 0:u.top)+(u==null?void 0:u.height)+window.scrollY+e[1];break;case at.TOP:a=r===bt.TOOLTIP?f+window.scrollX:u.left+window.scrollX,l=(u==null?void 0:u.top)-(d==null?void 0:d.clientHeight)+window.scrollY-e[0];break;case at.RIGHT:a=u.left+u.width+window.scrollX+e[2],l=r===bt.TOOLTIP?I+window.scrollY:(u==null?void 0:u.top)-(u==null?void 0:u.height)/2+window.scrollY;break;case at.LEFT:a=(u==null?void 0:u.left)-(t==null?void 0:t.clientWidth)+window.scrollX-e[3],l=r===bt.TOOLTIP?I+window.scrollY:(u==null?void 0:u.top)+window.scrollY-(u==null?void 0:u.height)/2;break}const g=[a,l,0];return`position:absolute;inset:0 auto auto 0;margin: 0;transform: ${g.reduce((p,D,E)=>E===0?p+`${D}px,`:E===g.length-1?p+` ${D}px)`:p+` ${D}px,`,"translate3d(")};visibility:hidden`},Lf=(t,e,n,s,r,i,o,a,l)=>{const[u,m]=$(!0),[d,_]=$(a?!a:!!s),[f,I]=$(s||at.TOP),[g,S]=$([]),p=N(E=>{if(E.intersectionRatio===1)return _(!0);if(!u&&E.intersectionRatio!==1){if(g&&g.length===(a?5:4)){const O=g.reduce((P,M)=>M[1]>P[1]?M:P,g[0]);I(O[0]),_(!0);return}switch(_(!1),f){case at.TOP:S(O=>[...O,[at.TOP,E.intersectionRatio]]),I(at.BOTTOM);break;case at.BOTTOM:S(O=>[...O,[at.BOTTOM,E.intersectionRatio]]),I(a?at.BOTTOM_LEFT:at.RIGHT);break;case at.BOTTOM_LEFT:S(O=>[...O,[at.BOTTOM,E.intersectionRatio]]),I(at.RIGHT);break;case at.RIGHT:S(O=>[...O,[at.RIGHT,E.intersectionRatio]]),I(at.LEFT);break;case at.LEFT:S(O=>[...O,[at.LEFT,E.intersectionRatio]]),I(at.TOP);break}}},[u,g,f,a]),D=W(p);return B(()=>{Ji(D.current).remove(),D.current=p},[p]),je(N((E,O)=>{var P,M;if(O&&(!s||a)&&Ji(p).observer.unobserve(O),E&&e.current){if((!s||a)&&Ji(p).observer.observe(E),!(E instanceof Element))return;const R=Nf({popover:E,offset:t,targetElement:e,position:f,variant:n,fullWidth:o??!1}),C=d?R+";visibility:visible":R,k=i?C+";min-width:fit-content;width:"+((P=e.current)==null?void 0:P.clientWidth)+"px":C;E.setAttribute("style",`${k}`),u&&m(!1),n&&n===bt.TOOLTIP&&r&&((M=r.current)==null||M.setAttribute("data-popover-placement",f))}},[t,e,f,s,n,p,d,u,i,r,o,a]),l)},Ef=Lf,Mf=t=>{const e=W();return je(N((n,s)=>{s instanceof Element&&s.id===e.current&&(s.id=""),n instanceof Element&&(n.id=e.current||(e.current=Xd()))},[t]),t)},Zr=Mf;const Cf=t=>{var s;let e;const n=(s=t.querySelector(`.${eu}`))==null?void 0:s.querySelectorAll(na);return n?(Array.prototype.some.call(n,r=>{if(ra(r))return e=r}),e):null},Df=t=>t===bt.TOOLTIP?[10,3,5,5]:[15,15,15,15];function ia({actions:t,disableFocusTrap:e=!1,actionsLayout:n=qo.SPACE_BETWEEN,variant:s=bt.TOOLTIP,title:r,open:i,dismissible:o,modifiers:a,divider:l,fitContent:u,withoutSpace:m,containerSize:d,position:_,targetElement:f,setToTargetWidth:I,dismiss:g,children:S,withContentPadding:p,classNameModifiers:D,showOverlay:E=!1,fitPosition:O,...P}){const M=y(()=>X(g)&&Ye(o),[g,o]),R=Zr(),C=W(),k=N(At=>{var pt;g&&g(),At&&((pt=f==null?void 0:f.current)==null||pt.focus())},[g,f]),v=N(At=>{At.code===H.ESCAPE&&(g&&g(),(f==null?void 0:f.current).focus())},[g,f]),Q=W(v),Y=W(),nt=ea(Ef(Df(s),f,s,_,R,I,E,O),g,s===bt.TOOLTIP&&!i,su.POPOVER),tt=Af(e?null:nt,k),it=je(N((At,pt)=>{pt instanceof Element&&(pt[Rn]=void 0,delete pt[Rn]),At instanceof Element&&(At[Rn]=f.current,cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{if(C.current===i||!(C.current=i))return;const Wt=Cf(At);Wt==null||Wt.focus()}))},[i,f]),e?nt:tt),vt=Zr(it),Dt=y(()=>({[`${te}--medium`]:d===ws.MEDIUM,[`${te}--with-divider`]:!!l,[`${te}--wide`]:d===ws.WIDE,[`${te}--fit-content`]:u,[`${te}--without-space`]:m,[`${te}--auto-width`]:E}),[d,l,m,u,E]);B(()=>{it.current&&(it.current[Rn]=f.current)},[f]),B(()=>(document.removeEventListener("keydown",Q.current),document.addEventListener("keydown",Q.current=v),()=>document.removeEventListener("keydown",Q.current)),[v]);const _t=s===bt.TOOLTIP?tu:`${te} ${Km}`,kt=s===bt.TOOLTIP?eu:`${Zi}`;return Xl(c(q,{children:i?c(q,{children:[E&&c("div",{className:"adyen-pe-popover__overlay"}),c("div",{id:"popover",ref:vt,...P,className:z(_t,Dt,D),style:{visibility:"hidden"},role:P.role??(s===bt.POPOVER?"dialog":"tooltip"),children:[(r||M)&&c("div",{className:Qo(fc,a,[fc]),children:[r&&c("div",{className:qm,children:c(rf,{title:r})}),M&&c(nf,{onClick:g})]}),S&&c(q,{children:[c("div",{className:z(kt,{[`${Zi}--with-padding`]:p,[`${Zi}--overlay`]:E}),children:S}),s===bt.TOOLTIP&&c("span",{"data-popover-placement":"hidden",ref:R,className:"adyen-pe-tooltip__arrow"})]}),t&&c("div",{className:tf,children:c(Xm,{actions:t,layout:n})})]})]}):null}),document.getElementsByTagName("body")[0])}const Of=(t=!1)=>{const[e,n]=$(t),s=N(i=>n(i),[]),r=N(()=>n(i=>!i),[]);return[e,s,r]},_e=Of,bf=()=>{const[t,e]=_e(),n=N(()=>e(!0),[e]),s=N(()=>e(!1),[e]),r=N(i=>{switch(i.code){case H.ESCAPE:s();break}},[s]);return{listeners:{onfocusoutCapture:s,onMouseLeave:s,onKeyDown:r,onFocus:n,onMouseEnter:n},isVisible:t}};const vf=t=>typeof t=="string",oa=({content:t,children:e,triggerRef:n,showTooltip:s,position:r,isContainerHovered:i=!1})=>{var m,d,_;const o=Zr(),a=ft(mt.down.sm),{isVisible:l,listeners:u}=bf();return a?c(q,{children:e}):c(q,{children:[e?$l(e,{...e==null?void 0:e.props,role:"button",tabIndex:-1,ref:o,className:(m=e==null?void 0:e.props)!=null&&m.className?z(`${(d=e==null?void 0:e.props)==null?void 0:d.className} adyen-pe__tooltip-target`,{" adyen-pe__tooltip-target--hovered":i}):z("adyen-pe__tooltip-target",{"adyen-pe__tooltip-target--hovered":i}),...u,"aria-describedby":`tooltip-${(_=o.current)==null?void 0:_.id}`}):null,(l||s)&&c(ia,{variant:bt.TOOLTIP,targetElement:n??o,position:r,open:l||s,children:c(q,{children:t&&vf(t)?c(U,{variant:b.CAPTION,children:t}):{content:t}})})]})},Rf=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{d:"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25H7.5C6.25736 5.25 5.25 6.25736 5.25 7.5V9.25H3.5C3.08579 9.25 2.75 8.91421 2.75 8.5V3.5C2.75 3.08579 3.08579 2.75 3.5 2.75H8.5C8.91421 2.75 9.25 3.08579 9.25 3.5V5.25ZM6.75 12.5V7.5C6.75 7.08579 7.08579 6.75 7.5 6.75H12.5C12.9142 6.75 13.25 7.08579 13.25 7.5V12.5C13.25 12.9142 12.9142 13.25 12.5 13.25H7.5C7.08579 13.25 6.75 12.9142 6.75 12.5Z"})}),wf=Rf;const xf=({text:t})=>{const[e,n]=$(t),s=N(async()=>{if(t)try{await navigator.clipboard.writeText(t),n("Copied")}catch(i){console.log(i)}},[t]),r=N(()=>{n(t)},[n,t]);return c(oa,{content:e,children:c(Pt,{variant:Nt.TERTIARY,className:"adyen-pe-copy-text",onClick:s,onBlur:r,onMouseLeaveCapture:r,children:[c("span",{className:"adyen-pe-copy-text__information",children:t}),c(wf,{fill:"#0070f5"})]})})},jf=xf,aa=(t,e,n)=>{if(!t)return Io;const s=Zm(t,n);if(s)return s;switch(t.errorCode){case void 0:return{title:"somethingWentWrong",message:[e,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0};case"00_500":{const r=n?"theErrorCodeIs":"contactSupportForHelpAndShareErrorCode";return{title:"somethingWentWrong",message:[e,r],translationValues:{[r]:t.requestId?c(jf,{text:t.requestId}):null},onContactSupport:n}}default:return Io}};function ca({balanceAccountsError:t,children:e,className:n,errorMessage:s,isBalanceAccountIdWrong:r,onContactSupport:i}){const{hasError:o}=ue();return c("div",{className:z(n,{[Am]:o}),children:o?c(Wn,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[s,"tryRefreshingThePageOrComeBackLater"],refreshComponent:!0}):t?c(Wn,{withImage:!0,centered:!0,...aa(t,"weCouldNotLoadYourBalanceAccounts",i)}):r?c(Wn,{withImage:!0,centered:!0,title:"somethingWentWrong",message:[s,"theSelectedBalanceAccountIsIncorrect"]}):c(q,{children:e})})}const Pf=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{fill:"currentColor",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"})}),la=Pf;function kf({title:t,children:e,classNameModifiers:n=[],isOpen:s,onClose:r,isDismissible:i=!0,headerWithBorder:o=!0,size:a="fluid",...l}){const u=ft(mt.down.xs),{i18n:m}=V(),d=ea(null,r),_=N(f=>{f.key==="Escape"&&s&&i&&r()},[s,i,r]);return B(()=>(s?window.addEventListener("keydown",_):window.removeEventListener("keydown",_),()=>window.removeEventListener("keydown",_)),[s,_]),c(q,{children:s&&c("div",{className:z("adyen-pe-modal-wrapper",n.map(f=>`adyen-pe-modal-wrapper--${f}`),{"adyen-pe-modal-wrapper--open":s,"adyen-pe-modal-wrapper--dismissible":i}),role:"dialog","aria-modal":"true","aria-hidden":!open,...l,children:c("div",{className:z("adyen-pe-modal",{"adyen-pe-modal--fluid":a==="fluid","adyen-pe-modal--small":a==="small","adyen-pe-modal--large":a==="large","adyen-pe-modal--extra-large":a==="extra-large","adyen-pe-modal--full-screen":a==="full-screen"||u}),ref:d,children:[c("div",{className:z("adyen-pe-modal__header",{"adyen-pe-modal__header--with-title":t,"adyen-pe-modal__header--with-border-bottom":o}),children:[t&&c("div",{className:"adyen-pe-modal__header__title",children:t}),i&&c(Pt,{onClick:r,variant:Nt.TERTIARY,iconButton:!0,classNameModifiers:["circle"],className:"adyen-pe-modal__header-icon","aria-label":m.get("dismiss"),children:c(la,{})})]}),c("div",{className:"adyen-pe-modal__content",children:e})]})})})}const Wf=Zt(({title:t,...e},n)=>c("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:[t&&c("title",{children:t}),c("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"})]})),vi=Wf,Bf=Zt(({title:t,...e},n)=>c("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:[t&&c("title",{children:t}),c("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"})]})),ua=Bf,da="adyen-pe-accordion",ha=da+"__header",zf=ha+"-container",Ff=ha+"-controller",$f=da+"__content";function Ic({children:t,classNames:e,header:n,headerInformation:s}){var l;const[r,i]=$(!1),o=W(null),a=N(()=>{i(!r)},[r]);return c("div",{className:z(da,e),children:[c("h3",{className:ha,children:[c("button",{id:"accordion-controller","aria-controls":"accordion-content",className:zf,onClick:a,"aria-expanded":r,children:c("div",{className:Ff,children:[n,r?c(ua,{height:8,width:15}):c(vi,{height:8,width:15})]})}),s&&c("div",{children:s})]}),c("div",{role:"region",id:"accordion-content","aria-labelledby":"accordion-controller",style:{maxHeight:r?(l=o==null?void 0:o.current)==null?void 0:l.offsetHeight:0},className:$f,children:c("div",{ref:o,children:t})})]})}const Ve="adyen-pe-card",iu=`${Ve}__body`,ou=`${Ve}__header`,Uf=`${Ve}__title`,Hf=`${Ve}__subtitle`,Yf=`${ou}-content`,Gf=`${iu}--with-title`,Zf=`${Ve}--no-outline`,Jf=`${Ve}--filled`,Vf=`${Ve}__footer`;const Qf=({title:t,subTitle:e,children:n,footer:s,el:r,renderHeader:i,renderFooter:o,filled:a,noOutline:l,classNameModifiers:u})=>{const m=r||"header";return c("section",{className:z(Ve,{[Jf]:a,[Zf]:l},u),children:[(t||i)&&c(m,{className:ou,children:(t||i)&&c("div",{className:Yf,children:[i||c("span",{className:Uf,children:t}),e&&c("div",{className:Hf,children:e})]})}),c("div",{className:z(iu,{[Gf]:t||i}),children:n}),(s||o)&&c("footer",{className:Vf,children:o||s})]})},Vi=Qf,pc="2-digit",ma="long",yc="numeric",au="short",Xf="shortOffset",Tr={month:ma,day:yc,year:yc},cu={hour:pc,minute:pc},lu={...Tr,...cu,month:au,hour12:!1},uu={...lu,year:void 0},Kf=Tr,qf=uu,t_={...Tr,weekday:ma},Sc={...Tr,month:au},e_=lu,n_=uu,s_={...Tr,...cu,weekday:ma,timeZoneName:Xf},Nr="adyen-pe-structured-list",du=`${Nr}__item`,Ac=`${Nr}__grid`,r_=`${Nr}__content`,i_=`${Nr}__label`,o_=`${du}--has-highlight`;const a_=t=>{const{i18n:e}=V();return y(()=>t.map(n=>({key:n.key,value:n.value,id:Wo(),label:e.get(n.key)})),[e,t])},c_="6-6";function Qi({items:t,highlightable:e,renderValue:n,renderLabel:s,layout:r=c_,grid:i=!0}){const[o,a]=y(()=>r.split("-").map(m=>`${Ac}--width-${m}-of-12`),[r]),l=a_(t),{i18n:u}=V();return c("div",{"aria-label":u.get("structuredList"),className:Nr,children:l.map(m=>c("dl",{className:z(du,{[o_]:e,[Ac]:i}),children:[c("dt",{className:z(i_,o),children:s?s(m.label):c(U,{variant:b.BODY,children:m.label})}),c("dd",{"aria-label":`${u.get(m.key)} ${u.get("value")}`,className:z(r_,a),children:n?n(m.value):c(U,{variant:b.BODY,children:m.value})})]},m.id))})}const l_=({isLoading:t,skeletonRowNumber:e=0})=>{const n=y(()=>Array.from({length:e},(s,r)=>r),[e]);return c("div",{className:"adyen-pe-transaction-data__skeleton-container",children:[c("div",{className:"adyen-pe-transaction-data__status-skeleton",children:[c("span",{className:z("adyen-pe-transaction-data__skeleton",{"adyen-pe-transaction-data__skeleton-loading-content":t})}),c("span",{className:z("adyen-pe-transaction-data__skeleton",{"adyen-pe-transaction-data__skeleton-loading-content":t})})]}),n.map(s=>c("span",{className:z({"adyen-pe-transaction-data__skeleton":!0,"adyen-pe-transaction-data__skeleton-loading-content":t})},`transaction-data-skeleton-${s}`))]})},hu=l_,yo=t=>{const{i18n:e}=V();return N((...n)=>{const s=e.timezone;try{return t(...n)}finally{e.timezone=s}},[e,t])},u_=t=>{const{i18n:e}=V(),n=yo(N(()=>(e.timezone=void 0,e.timezone=t,e.timezone),[e,t]));return y(n,[n])},d_=t=>{const{i18n:e}=V(),n=u_(t),s=yo(N((...i)=>(e.timezone=n,e.date(...i)),[e,n])),r=yo(N((...i)=>(e.timezone=n,e.fullDate(...i)),[e,n]));return{dateFormat:s,fullDateFormat:r}},Sn=d_;const Lr="adyen-pe-payout-data",h_=`${Lr}__title`,m_=`${Lr}__title--ba-id`,fa=`${Lr}__content`,Mn=`${fa}--section`,wr=`${fa}--card`,Tc=`${wr}-title`,Cs=`${Mn}-amount`,Nc=`${Cs}-gross`,f_=`${Cs}-net`,__=`${Lr}--unpaid-amount`,g_=({balanceAccountId:t,balanceAccountDescription:e,payout:n,isFetching:s})=>{var m;const{payout:r}=n??F,{i18n:i}=V(),{dateFormat:o}=Sn("UTC"),a=y(()=>{var _,f;const d=(f=(_=n==null?void 0:n.amountBreakdowns)==null?void 0:_.adjustmentBreakdown)==null?void 0:f.reduce((I,g)=>{var O,P,M,R,C,k,v;const S=(O=g==null?void 0:g.amount)!=null&&O.value&&((P=g==null?void 0:g.amount)!=null&&P.currency)?i.amount((M=g==null?void 0:g.amount)==null?void 0:M.value,(R=g==null?void 0:g.amount)==null?void 0:R.currency,{hideCurrency:!0}):(((C=g==null?void 0:g.amount)==null?void 0:C.value)??"").toString(),p=`${g==null?void 0:g.category}`,D=i.get(p),E=g!=null&&g.category&&D!==p?D:g==null?void 0:g.category;return g!=null&&g.category&&S&&E&&I[(k=g==null?void 0:g.amount)!=null&&k.value&&((v=g==null?void 0:g.amount)==null?void 0:v.value)<0?"subtractions":"additions"].push({key:E,value:S}),I},{subtractions:[],additions:[]});return d==null||d.subtractions.sort((I,g)=>I.key.localeCompare(g.key)),d==null||d.additions.sort((I,g)=>I.key.localeCompare(g.key)),d},[i,n]),l=y(()=>{var _,f;const d=(f=(_=n==null?void 0:n.amountBreakdowns)==null?void 0:_.fundsCapturedBreakdown)==null?void 0:f.reduce((I,g)=>{var S,p,D,E;return((S=g==null?void 0:g.amount)==null?void 0:S.value)===0||(p=g==null?void 0:g.amount)!=null&&p.value&&g.category&&I.push({key:g.category,value:i.amount((D=g==null?void 0:g.amount)==null?void 0:D.value,(E=g==null?void 0:g.amount)==null?void 0:E.currency,{hideCurrency:!0})}),I},[]);return d==null||d.sort((I,g)=>I.key==="capture"?-1:g.key==="capture"?1:I.key.localeCompare(g.key)),d},[n,i]),u=y(()=>r!=null&&r.createdAt?o(new Date(r==null?void 0:r.createdAt),t_):"",[r,o]);return c(q,{children:r?c("div",{className:Lr,children:[c("div",{className:h_,children:[c(U,{variant:b.SUBTITLE,stronger:!0,children:i.get("netPayout")}),c(U,{variant:b.TITLE,large:!0,children:`${i.amount(r.payoutAmount.value,r.payoutAmount.currency,{hideCurrency:!0})} ${r.payoutAmount.currency}`}),c(U,{variant:b.BODY,children:u}),c("div",{className:Mn,children:[e&&c(U,{variant:b.CAPTION,stronger:!0,wide:!0,children:`${e}`}),c(U,{variant:b.CAPTION,className:m_,children:`${t}`})]})]}),c("div",{className:fa,children:[c("div",{className:Mn,children:(r==null?void 0:r.fundsCapturedAmount)&&(l&&Object.keys(l).length>0?c(Ic,{header:c(U,{variant:b.BODY,children:i.get("fundsCaptured")}),headerInformation:c(U,{variant:b.BODY,children:i.amount(r.fundsCapturedAmount.value,r.fundsCapturedAmount.currency)}),children:c("div",{className:Mn,children:c("div",{className:wr,children:c(Vi,{children:c(Qi,{items:l})})})})}):c("div",{className:z(Cs,Nc),children:[c(U,{variant:b.BODY,children:i.get("fundsCaptured")}),c(U,{variant:b.BODY,children:i.amount(r.fundsCapturedAmount.value,r.fundsCapturedAmount.currency)})]}))}),c("div",{className:Mn,children:a!=null&&a.subtractions&&Object.keys(a==null?void 0:a.subtractions).length>0||a!=null&&a.additions&&Object.keys(a==null?void 0:a.additions).length>0?c(Ic,{header:c(U,{variant:b.BODY,children:i.get("adjustments")}),headerInformation:c(U,{variant:b.BODY,children:i.amount(r.adjustmentAmount.value,r.adjustmentAmount.currency)}),children:[(a==null?void 0:a.additions)&&Object.keys(a==null?void 0:a.additions).length>0&&c("div",{className:wr,children:c(Vi,{renderHeader:c(U,{className:Tc,variant:b.CAPTION,stronger:!0,children:i.get("additions")}),children:c(Qi,{items:a==null?void 0:a.additions})})}),(a==null?void 0:a.subtractions)&&Object.keys(a==null?void 0:a.subtractions).length>0&&c("div",{className:wr,children:c(Vi,{renderHeader:c(U,{className:Tc,variant:b.CAPTION,stronger:!0,children:i.get("subtractions")}),children:c(Qi,{items:a==null?void 0:a.subtractions})})})]}):c("div",{className:z(Cs,Nc),children:[c(U,{variant:b.BODY,children:i.get("adjustments")}),c(U,{variant:b.BODY,children:i.amount(r.adjustmentAmount.value,r.adjustmentAmount.currency)})]})}),c("div",{className:z(Mn),children:c("div",{className:z(Cs,f_),children:[c(U,{variant:b.BODY,stronger:!0,children:i.get("netPayout")}),c(U,{variant:b.BODY,stronger:!0,children:i.amount(r.payoutAmount.value,r.payoutAmount.currency)})]})})]}),((m=n==null?void 0:n.payout)==null?void 0:m.unpaidAmount)&&c("div",{className:__,children:[c(U,{variant:b.BODY,children:i.get("remainingAmount")}),c(U,{variant:b.BODY,children:i.amount(n.payout.unpaidAmount.value,n.payout.unpaidAmount.currency)})]})]}):c(hu,{isLoading:s,skeletonRowNumber:6})})},I_="https://cdf6519016.cdn.adyen.com/checkoutshopper/",p_=({name:t,resourceContext:e,imageFolder:n="logos/",parentFolder:s="",extension:r="svg",size:i="",subFolder:o=""})=>{const a=`/images/${n}/${o}/${s}/${t}${i}.${r}`.replace(/\/+/g,"/");return`${e}${a}`},y_=({options:t=F,name:e})=>{const{loadingContext:n}=V();return y(()=>p_({resourceContext:I_,name:e,...t}),[n,e,t])},mu=({folder:t="components/",className:e,alt:n,name:s,extension:r})=>{const i=y_({options:y(()=>({imageFolder:t,extension:r}),[r,t]),name:s});return c("img",{className:z("adyen-pe__image",e),alt:n,src:i})},S_=Object.freeze({klarna:"Klarna",paypal:"PayPal"});function fu(t,e){return t.lastFourDigits?e==="detail"?"•••• •••• •••• "+t.lastFourDigits:t.lastFourDigits:S_[t.type]||t.type}var ee=(t=>(t.DEFAULT="default",t.WARNING="warning",t.ERROR="error",t.SUCCESS="success",t.WHITE="white",t))(ee||{});const So=Et(({variant:t=ee.DEFAULT,label:e})=>c("div",{className:z("adyen-pe-tag",{"adyen-pe-tag--success":t===ee.SUCCESS,"adyen-pe-tag--default":t===ee.DEFAULT,"adyen-pe-tag--warning":t===ee.WARNING,"adyen-pe-tag--error":t===ee.ERROR,"adyen-pe-tag--primary":t===ee.WHITE}),children:e}));function A_({value:t,isContainerHovered:e}){const{i18n:n}=V(),s=`tooltip.${t}`;return c(q,{children:n.has(s)&&c(oa,{content:n.get(s),isContainerHovered:e,children:c("span",{children:c(U,{variant:b.BODY,children:t})})})})}const T_=({error:t,errorMessage:e,onContactSupport:n})=>{const{title:s,message:r,refreshComponent:i,translationValues:o,onContactSupport:a}=aa(t,e,n);return c(Wn,{title:s,message:r,translationValues:o,withImage:!0,centered:!0,refreshComponent:i,onContactSupport:a})},_a=T_;const _u=Zo(F),ga=()=>Jo(_u);var Ze=(t=>(t.CENTER="center",t.RIGHT="right",t))(Ze||{});function Lc({children:t,column:e,position:n,...s}){const{registerCells:r}=ga(),i=W(null);return B(()=>{var o;i.current&&r({column:e,width:(o=i.current)==null?void 0:o.getBoundingClientRect().width})},[e,r]),c("div",{role:"cell",className:z("adyen-pe-data-grid__cell",{"adyen-pe-data-grid__cell--right":n===Ze.RIGHT,"adyen-pe-data-grid__cell--center":n===Ze.CENTER}),...s,children:t&&wl(t)?$l(t,{...t==null?void 0:t.props,ref:i,style:{width:"min-content"}}):null})}const N_=({className:t,alt:e,url:n})=>c("div",{className:"adyen-pe-data-grid__icon-container",children:c("img",{className:z("adyen-pe-data-grid__icon",t),alt:e,src:n})}),L_=N_,E_=t=>!!t&&typeof t=="object"&&"value"in t,gu=({columns:t,customCells:e,item:n,rowIndex:s})=>c(q,{children:t.map(({key:r,position:i})=>{if(e!=null&&e[r])return c(Lc,{"aria-labelledby":String(r),column:r,position:i,children:c("div",{style:{width:"min-content"},children:e[r]({key:r,value:n[r],item:n,rowIndex:s})})},r);const{icon:o,value:a}=E_(n[r])?n[r]:{value:n[r],icon:void 0};return c(Lc,{"aria-labelledby":String(r),column:r,position:i,children:c("div",{className:"adyen-pe-data-grid__cell-value",children:[(o==null?void 0:o.url)&&c(L_,{...o}),c("div",{children:a})]})},r)})}),M_=({data:t,columns:e,customCells:n,onRowHover:s})=>{const{i18n:r}=V();return c(q,{children:t==null?void 0:t.map((i,o)=>c("div",{role:"row",tabIndex:0,className:"adyen-pe-data-grid__row",onMouseEnter:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s(o):st,onFocus:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s(o):st,onMouseLeave:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s():st,onBlur:r.has(`tooltip.${i==null?void 0:i.category}`)&&s?()=>s():st,children:c(gu,{columns:e,customCells:n,item:i,rowIndex:o})},i))})},C_=({totalRows:t})=>{const[e,n]=Oi((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},x_),s=je(N(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])),r=N(o=>{var l,u;if(!(((l=o.target)==null?void 0:l.getAttribute("role"))==="row")){o.code===H.ARROW_LEFT&&n({type:"ACTIVE",index:e.index});return}switch(o.code){case H.ARROW_DOWN:case H.ARROW_UP:n({type:"ACTIVE",index:o.code===H.ARROW_DOWN?e.index+1:e.index-1});break;case H.HOME:n({type:"ACTIVE",index:0});break;case H.END:n({type:"ACTIVE",index:t-1});break;case H.ENTER:(u=o.currentTarget)==null||u.click();break;default:return}o.stopPropagation()},[t,e.index]),i=N(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:r,onFocusCapture:i},ref:s,activeIndex:e.activeIndex,currentIndex:e.index}},D_=({data:t,columns:e,onRowClick:n,customCells:s,onRowHover:r})=>{const i=N(m=>()=>n==null?void 0:n.callback(n!=null&&n.retrievedField?m[n.retrievedField]:m),[n]),{i18n:o}=V(),{currentIndex:a,listeners:l,ref:u}=C_({totalRows:(t==null?void 0:t.length)??0});return c(q,{children:t==null?void 0:t.map((m,d)=>c("div",{role:"row",tabIndex:0,onMouseEnter:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r(d):st,onFocus:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r(d):st,onMouseLeave:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r():st,onBlur:o.has(`tooltip.${m==null?void 0:m.category}`)&&r?()=>r():st,ref:u,"aria-selected":d===a,"data-index":d,className:"adyen-pe-data-grid__row adyen-pe-data-grid__row--clickable",onClick:i(m),onFocusCapture:l.onFocusCapture(d),onKeyDownCapture:l.onKeyDownCapture,children:c(gu,{columns:e,customCells:s,item:m,rowIndex:d})},m))})},O_=({columnsNumber:t,loading:e,emptyMessageDisplay:n})=>{const s=Array.from({length:10},(i,o)=>o),r=Array.from({length:t},(i,o)=>o);return c(q,{children:[s.map((i,o)=>c("div",{className:"adyen-pe-data-grid__row",children:r.map((a,l)=>c("div",{className:"adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",children:c("span",{className:z({"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading":e,"adyen-pe-data-grid__empty-cell":!e})})},`adyen-pe-data-grid-skeleton-cell-${l}`))},`adyen-pe-data-grid-skeleton-row-${o}`)),!e&&n&&n]})},b_=O_,v_="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCIgZmlsbD0ibm9uZSI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjYSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNCRjdDNkEiIHN0cm9rZT0iIzAwMTEyQyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xODkuMyAxMTMuN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gNC0xNi42Wk0xMTkuOSAxOGMwLTIuNSAxLjEtNC45IDIuNy02LjggMS45LTIuMiA0LjUtMy44IDcuNC00LjIgMi45LS40IDUuOS42IDcuOSAyLjdhNC44IDQuOCAwIDAgMC0zLTQuMXM1LS4yIDcuMS40YTE0LjcgMTQuNyAwIDAgMSAxMSAxNy44Yy0yLjMgOC44LTE0LjIgNy0yMSA1LjYtNS42LTEuMi0xMi00LjktMTIuMS0xMS40WiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgzMDB2MjAwSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+",R_=({children:t})=>{const e=y(()=>new Map,[]),n=N(({column:r,width:i})=>{if(e.has(r)){const o=e.get(r);i>o&&e.set(r,i)}else e.set(r,i)},[e]),s=N(r=>e.get(r),[e]);return c(_u.Provider,{value:{registerCells:n,getMinWidthByColumn:s},children:Ge(t)})},w_=({cellKey:t,position:e,label:n})=>{const{registerCells:s}=ga(),r=W(null);return B(()=>{var i;r.current&&s({column:t,width:(i=r.current)==null?void 0:i.getBoundingClientRect().width})},[t,s]),c("div",{role:"columnheader",id:String(t),className:z("adyen-pe-data-grid__cell adyen-pe-data-grid__cell--heading",{"adyen-pe-data-grid__cell--right":e===Ze.RIGHT,"adyen-pe-data-grid__cell--center":e===Ze.CENTER}),children:c("div",{ref:r,className:"adyen-pe-data-grid__cell--heading-content",children:n})})},x_=Object.freeze({activeIndex:-1,index:-1});function Je({errorDisplay:t,...e}){return c("div",{style:{width:"100%"},children:c(R_,{children:c(j_,{...e,errorDisplay:t})})})}function j_({errorDisplay:t,...e}){var u,m;const n=y(()=>Ge(e.children),[e.children]),s=y(()=>n.find(d=>(d==null?void 0:d.type)===Iu),[n]),r=y(()=>{var d;return((d=e.data)==null?void 0:d.length)===0},[e.data]),i=y(()=>!e.loading&&(r||e.error),[r,e.error,e.loading]),{getMinWidthByColumn:o}=ga(),a=e.columns.filter(d=>d.visible!==!1).map(d=>({...d,minWidth:o(d.key)})),l=a.map(d=>`minmax(${(d.minWidth||100)+40}px, ${d.flex||1}fr)`).join(" ");return c("div",{className:z("adyen-pe-data-grid",{"adyen-pe-data-grid--condensed":e.condensed,"adyen-pe-data-grid--outline":e.outline,"adyen-pe-data-grid--scrollable":e.scrollable,"adyen-pe-data-grid--loading":e.loading,"adyen-pe-data-grid--empty":r||e.error}),style:`--adyen-pe-data-grid-cols: ${a.length}; --adyen-pe-data-grid-cells: ${l};`,children:c(q,{children:[c("div",{className:"adyen-pe-data-grid__table-wrapper",children:[c("div",{role:"table",className:"adyen-pe-data-grid__table",children:[c("div",{className:"adyen-pe-data-grid__head",role:"rowgroup",children:c("div",{role:"rowheader",className:"adyen-pe-data-grid__header",style:e.loading?{width:"100%"}:{},children:a.map(d=>c(w_,{label:d.label,position:d.position,cellKey:d.key},d.key))})}),c(P_,{...e,columns:a,emptyBody:r})]}),i&&(r&&!e.error?c(Wn,{title:((u=e.emptyTableMessage)==null?void 0:u.title)??"thereAreNoResults",message:(m=e.emptyTableMessage)==null?void 0:m.message,imageDesktop:v_,centered:!0}):e.error&&t?t():null)]}),s]})})}function P_(t){const e=y(()=>t.loading||t.emptyBody||t.error,[t.emptyBody,t.error,t.loading]);return c("div",{role:"rowgroup",className:z("adyen-pe-data-grid__body"),style:e&&{display:"grid",gridTemplateColumns:"1fr"},children:e?c(b_,{columnsNumber:t.columns.length,loading:t.loading}):t.onRowClick?c(D_,{onRowHover:t.onRowHover,data:t.data,columns:t.columns,onRowClick:t.onRowClick,customCells:t.customCells}):c(M_,{onRowHover:t.onRowHover,data:t.data,customCells:t.customCells,columns:t.columns})})}Je.Footer=Iu;function Iu({children:t}){return c("div",{className:"adyen-pe-data-grid__footer",children:t})}Je.defaultProps={condensed:!1,outline:!0,scrollable:!0};const Ao="-ariaError";var Ct=(t=>(t[t.NONE=0]="NONE",t[t.APPLY=1]="APPLY",t[t.CLEAR=2]="CLEAR",t))(Ct||{});const k_=({applyDisabled:t,applyTitle:e,resetDisabled:n,resetTitle:s}=F)=>{const{i18n:r}=V(),[i,o]=$(Ct.NONE),[a,l]=$(i!==Ct.NONE),u=N(()=>o(Ct.APPLY),[o]),m=N(()=>o(Ct.CLEAR),[o]),d=N(()=>o(Ct.NONE),[o]),_=y(()=>({disabled:jt(t),event:u,title:(e==null?void 0:e.trim())||r.get("apply"),variant:Nt.PRIMARY}),[r,u,t,e]),f=y(()=>({disabled:jt(n),event:m,title:(s==null?void 0:s.trim())||r.get("reset"),variant:Nt.SECONDARY}),[r,m,n,s]),I=y(()=>[_,f],[_,f]);return B(()=>{switch(l(i!==Ct.NONE),i){case Ct.APPLY:case Ct.CLEAR:d();break}},[i,l,d]),{commitAction:i,commitActionButtons:I,committing:a,resetCommitAction:d}},pu=k_;function yu(t){const{backgroundUrl:e="",className:n="",classNameModifiers:s=[],src:r="",alt:i="",showOnError:o=!1}=t,[a,l]=$(!1),u=W(null),m=()=>{l(!0)},d=()=>{l(o)},_=z([n],"adyen-pe-image",{"adyen-pe-image--loaded":a},...s.map(f=>`adyen-pe-image--${f}`));return B(()=>{const f=e?new Image:u.current;f&&(f.src=e||r,f.onload=m),l(!!(f!=null&&f.complete))},[]),e?c("div",{style:{backgroundUrl:e},...t,className:_}):c("img",{...t,alt:i,ref:u,className:_,onError:d})}const fs="adyen-pe-dropdown",W_=Qo(we,[Nt.SECONDARY],[we]),ye=`${fs}__button`,B_=`${ye}--active`,z_=`${ye}-collapse-indicator`,F_=`${ye}--has-selection`,$_=`${ye}-icon`,U_=`${ye}-multiselect-counter`,H_=`${ye}--readonly`,Y_=`${ye}-text`,G_=`${ye}--valid`,Z_=`${ye}--invalid`,Pe=`${fs}__element`,J_=`${Pe}--active`,V_=`${Pe}-checkbox`,Q_=`${Pe}-checkmark`,X_=`${Pe}-content`,K_=`${Pe}--disabled`,q_=`${Pe}-icon`,tg=`${Pe}--no-option`,Su=`${fs}__list`,eg=`${Su}--active`,ng=`${fs}--multiselect`,sg=({active:t,disabled:e,className:n,filterable:s,toggleButtonRef:r,...i})=>{const o=y(()=>s?z(W_,n):n,[n,s]);return s?c("div",{...i,className:o,ref:r}):c(Pt,{...i,className:o,disabled:e,variant:Nt.SECONDARY,ref:r})},rg=t=>{var _;const{i18n:e}=V(),{active:n,filterable:s,multiSelect:r,placeholder:i,readonly:o,showList:a,withoutCollapseIndicator:l}=t,u=y(()=>(i==null?void 0:i.trim())||e.get("select.filter.placeholder"),[e,i]),m=y(()=>jt(r)?void 0:n[0],[n,r]),d=y(()=>{var f;return((f=m==null?void 0:m.name)==null?void 0:f.trim())||u},[m,u]);return c(sg,{active:n,disabled:o,"aria-disabled":o,"aria-expanded":a,"aria-haspopup":"listbox",className:z(ye,{[B_]:a,[F_]:!!n.length,[H_]:o,[Z_]:t.isInvalid,[G_]:t.isValid}),filterable:s,onClick:o?void 0:t.toggleList,onKeyDown:o?void 0:t.onButtonKeyDown,role:s?"button":void 0,tabIndex:0,title:d,toggleButtonRef:t.toggleButtonRef,type:s?"":"button","aria-describedby":t.ariaDescribedBy,id:t.id??"",children:[a&&s?c("input",{"aria-autocomplete":"list","aria-controls":t.selectListId,"aria-expanded":a,"aria-owns":t.selectListId,autoComplete:"off",className:"adyen-pe-filter-input",onInput:t.onInput,placeholder:u,ref:t.filterInputRef,role:"combobox",type:"text"}):c(q,{children:[(m==null?void 0:m.icon)&&c(yu,{className:$_,src:m.icon,alt:m.name.trim()}),c("span",{className:Y_,children:((_=m==null?void 0:m.selectedOptionName)==null?void 0:_.trim())||(m==null?void 0:m.name.trim())||u}),r&&t.appliedFilterNumber>0&&c("div",{className:U_,children:c(U,{el:pe.SPAN,variant:b.BODY,stronger:!0,children:t.appliedFilterNumber})})]}),!l&&c("span",{className:z_,children:c(vi,{role:"presentation"})})]})},ig=rg,og=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&c("title",{children:t}),c("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"})]})),ag=og,cg=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[t&&c("title",{children:t}),c("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"})]})),lg=cg,ug=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"16",viewBox:"0 0 16 16",height:"16",children:[t&&c("title",{children:t}),c("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"})]})),dg=ug,hg=t=>t.multiSelect?c("span",{className:V_,children:t.selected?c(ag,{role:"presentation"}):c(lg,{role:"presentation"})}):null,Au=t=>t.multiSelect?null:c("span",{className:Q_,children:t.selected&&c(dg,{role:"presentation"})}),mg=t=>c(q,{children:[hg(t),c("div",{className:t.contentClassName,children:[t.item.icon&&c(yu,{className:t.iconClassName,alt:t.item.name,src:t.item.icon}),c("span",{children:t.item.name})]}),Au(t)]}),fg=({item:t,multiSelect:e,onKeyDown:n,onSelect:s,renderListItem:r,selected:i})=>{const o=!!t.disabled,a=jt(t.disabled)||null,l=z(Pe,{[J_]:i,[K_]:o});return c("li",{"aria-disabled":o,"aria-selected":i,className:l,"data-disabled":a,"data-value":t.id,onClick:s,onKeyDown:n,title:t.name,role:"option",tabIndex:-1,children:r({item:t,multiSelect:e,selected:i,contentClassName:X_,iconClassName:q_})})},_g=Et(fg),gg=Zt(({active:t,commitActions:e,items:n,multiSelect:s,onKeyDown:r,onSelect:i,renderListItem:o,selectListId:a,showList:l,textFilter:u,toggleButtonRef:m,dismissPopover:d,setToTargetWidth:_,popoverClassNameModifiers:f,showOverlay:I,fitPosition:g},S)=>{const{i18n:p}=V(),D=ft(mt.down.xs),E=n.filter(C=>!u||C.name.toLowerCase().includes(u)),O=z(Su,{[eg]:l}),P=z(Pe,tg),M=y(()=>X(o)?o:mg,[o]),R=y(()=>jt(s),[s]);return l?c(ia,{classNameModifiers:f,actions:R?e:void 0,disableFocusTrap:!0,divider:!0,dismiss:d,dismissible:!1,open:l,setToTargetWidth:_,containerSize:ws.MEDIUM,variant:bt.POPOVER,targetElement:m,withContentPadding:!1,position:at.BOTTOM,showOverlay:I&&D,fitPosition:g,children:c("ul",{className:O,id:a,ref:S,role:"listbox","aria-multiselectable":R,children:E.length?E.map(C=>c(_g,{item:C,multiSelect:R,onKeyDown:r,onSelect:i,renderListItem:M,selected:t.includes(C)},C.id)):c("div",{className:P,children:p.get("select.noOptionsFound")})})}):null}),Ig=Et(gg),pg=({items:t,multiSelect:e,selected:n})=>{const s=N((l=Lt)=>{const u=Lt.concat(l??Lt).filter(Boolean),m=t.filter(_=>u.includes(_.id)),d=e?m:m.slice(0,1);return d.length?Object.freeze(d):Lt},[t,e]),[r,i]=$(s(n)),o=N((l=Lt)=>{const u=l.filter(m=>t.includes(m));i(u.length?Object.freeze(u):Lt)},[t,i]),a=N(l=>{i(u=>{const m=u.indexOf(l);if(m<0)return Object.freeze((e?u:Lt).concat(l));if(!e)return u;const d=[...u];return d.splice(m,1),d.length?Object.freeze(d):Lt})},[e,i]);return B(()=>i(s(n)),[s,n,i]),{resetSelection:o,select:a,selection:r}},yg=pg;const Sg=({className:t,classNameModifiers:e=Lt,popoverClassNameModifiers:n,items:s=Lt,filterable:r=!1,multiSelect:i=!1,readonly:o=!1,onChange:a=st,selected:l,name:u,isInvalid:m,isValid:d,placeholder:_,uniqueId:f,renderListItem:I,isCollatingErrors:g,setToTargetWidth:S,withoutCollapseIndicator:p=!1,showOverlay:D=!1,fitPosition:E})=>{const{resetSelection:O,select:P,selection:M}=yg({items:s,multiSelect:i,selected:l}),[R,C]=$(!1),[k,v]=$(""),Q=W(null),Y=W(null),nt=W(null),tt=W(`select-${Wo()}`),[it,vt]=$(0),Dt=W(),_t=W(!0),kt=W(!1),At=W(M),pt=W(M),Wt=N(()=>{v(""),C(!1),R&&(O(At.current),_t.current=!0)},[O,C,v,R]),de=y(()=>z([fs,{[ng]:jt(i)},...e.map(et=>`${fs}--${et}`),t]),[t,e,i]),{commitAction:se,commitActionButtons:ke,committing:ps,resetCommitAction:Mr}=pu({resetDisabled:!M.length}),Jt=N(()=>{var et;v(""),C(!1),Mr(),_t.current?_t.current=!1:(et=nt.current)==null||et.focus()},[Mr,C,v]),Tn=N(()=>{At.current=M;const et=`${M.map(({id:ut})=>ut)}`;a({target:{value:et,name:u}})},[u,a,M]);B(()=>{switch(se){case Ct.APPLY:Tn();break;case Ct.CLEAR:O(),kt.current=!0;break}},[se,Tn,O]);const We=N(et=>{var dt;et.preventDefault();const ut=et.currentTarget&&((dt=Y==null?void 0:Y.current)!=null&&dt.contains(et.currentTarget))?et.currentTarget:null;if(ut&&!ut.getAttribute("data-disabled")){const Bt=ut.getAttribute("data-value"),Ot=s.find(Nn=>Nn.id===Bt);P(Ot)}},[s,P]);B(()=>{pt.current!==M&&(pt.current=M,(!i||kt.current)&&(Tn(),Jt())),kt.current=!1},[Jt,Tn,i,M]),B(()=>{ps&&(vt(M.length),Jt())},[ps,Jt,vt,M.length]);const Wi=N(et=>{switch(et.code){case H.ESCAPE:case H.TAB:R&&Jt(),_t.current=et.key===H.TAB;return;case H.ENTER:case H.SPACE:if(r&&R){if(et.key===H.ENTER)if(k)We(et);else break;return}break;case H.ARROW_DOWN:case H.ARROW_UP:break;default:return}et.preventDefault(),C(!0)},[Jt,r,We,R,C,k]);B(()=>{R&&(cancelAnimationFrame(Dt.current),Dt.current=requestAnimationFrame(()=>{var et;t:{let ut=(et=Y.current)==null?void 0:et.firstElementChild,dt;for(;ut;){if(!(ut.dataset.disabled&&ut.dataset.disabled==="true")){if(ut.getAttribute("aria-selected")==="true"){ut.focus();break t}dt=dt||ut}ut=ut.nextElementSibling}dt&&dt.focus()}}))},[R]);const Bi=N(et=>{const ut=et.target;switch(et.code){case H.ESCAPE:et.preventDefault(),Jt();break;case H.ENTER:case H.SPACE:We(et);break;case H.ARROW_DOWN:{et.preventDefault();let dt=ut.nextElementSibling;for(;dt;){if(!(dt.dataset.disabled&&dt.dataset.disabled==="true")){dt.focus();break}dt=dt.nextElementSibling}break}case H.ARROW_UP:{et.preventDefault();t:{let dt=ut.previousElementSibling;for(;dt;){if(!(dt.dataset.disabled&&dt.dataset.disabled==="true")){dt.focus();break t}dt=dt.previousElementSibling}r&&Q.current&&Q.current.focus()}break}case H.TAB:Jt();break}},[Jt,r,We]),zi=N(et=>{const ut=et.target.value;v(ut.toLowerCase())},[v]),Fi=N(et=>{et.preventDefault(),C(ut=>!ut),R&&O(At.current)},[C,R,O]);return B(()=>{var et;R&&r&&((et=Q.current)==null||et.focus())},[r,R]),c("div",{className:de,children:[c(ig,{id:f??void 0,appliedFilterNumber:it,active:M,filterInputRef:Q,filterable:r,isInvalid:m,isValid:d,onButtonKeyDown:Wi,onInput:zi,multiSelect:i,placeholder:_,readonly:o,selectListId:tt.current,showList:R,toggleButtonRef:nt,toggleList:Fi,withoutCollapseIndicator:p,ariaDescribedBy:!g&&f?`${f}${Ao}`:""}),c(Ig,{popoverClassNameModifiers:n,setToTargetWidth:S,dismissPopover:Wt,active:M,commitActions:ke,items:s,multiSelect:i,onKeyDown:Bi,onSelect:We,selectListId:tt.current,ref:Y,toggleButtonRef:nt,renderListItem:I,showList:R,showOverlay:D,textFilter:k,fitPosition:E})]})},Ri=Sg,Ag=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&c("title",{children:t}),c("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"})]})),Tg=Ag,Ng=Zt(({title:t,...e},n)=>c("svg",{...e,ref:n,width:"7",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&c("title",{children:t}),c("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"})]})),Lg=Ng;function Ia({next:t,hasNext:e,hasPrev:n,page:s,prev:r,limit:i,limitOptions:o,onLimitSelection:a}){const{i18n:l}=V(),u=y(()=>o&&Object.freeze(o.map(d=>({id:`${d}`,name:`${d}`}))),[o]),m=N(({target:d})=>{ht(d==null?void 0:d.value)||a==null||a(+d.value)},[a]);return c("div",{"aria-label":l.get("paginatedNavigation"),className:`adyen-pe-pagination ${z({})}`,children:[c("div",{className:"adyen-pe-pagination__context",children:[c("span",{children:l.get("pagination.showing")}),u&&a&&c("div",{className:"adyen-pe-pagination__limit-selector",children:c(Ri,{setToTargetWidth:!0,filterable:!1,multiSelect:!1,items:u,onChange:m,selected:`${i??""}`})})]}),c("div",{className:"adyen-pe-pagination__controls",children:[c(Pt,{"aria-label":l.get("pagination.previousPage"),variant:Nt.TERTIARY,disabled:!n,iconButton:!0,classNameModifiers:["circle"].concat(n?Lt:"disabled"),onClick:r,children:c(Tg,{disabled:!n})}),c(Pt,{"aria-label":l.get("pagination.nextPage"),variant:Nt.TERTIARY,disabled:!e,iconButton:!0,classNameModifiers:["circle"].concat(e?Lt:"disabled"),onClick:t,children:c(Lg,{disabled:!e})})]})]})}const An="adyen-pe-transactions-table",Eg=An+"__amount",Mg=An+"__payment-method",Cg=An+"__payment-method-logo-container",Dg=An+"__payment-method-logo",Og=An+"__date-and-payment-method",bg=An+"__date-and-payment-method--date";const vg=({paymentMethod:t,bankAccount:e})=>{const{i18n:n}=V(),s=ft(mt.down.xs);return c("div",{className:Mg,children:t||e?c(q,{children:[c("div",{className:Cg,children:c(mu,{name:t?t.type:"bankTransfer",alt:t?t.type:"bankTransfer",folder:"logos/",className:Dg})}),c(U,{variant:b.BODY,stronger:s,children:t?fu(t):e==null?void 0:e.accountNumberLastFourDigits})]}):c(So,{label:n.get("noData"),variant:ee.WHITE})})},Ec=vg,Rg={id:"paymentId",transactionType:"transactionType",createdAt:"date",balanceAccountId:"balanceAccount",accountHolderId:"account",amount:"txAmount",description:"description",status:"status",category:"category",paymentMethod:"paymentMethod",currency:"currency",fundsCapturedAmount:"fundsCaptured",payoutAmount:"netPayout",adjustmentAmount:"adjustments",dateAndPaymentMethod:"date",dateAndReportType:"date",reportType:"report",reportFile:"file"},pa=t=>Rg[t]||t;function wg(t){let e={};for(const n of Object.keys(t))Z(t[n])||(e={...e,[n]:t[n]});return e}function xg(t){return t.every(Gt)}const Tu=({fields:t,customColumns:e,columnConfig:n})=>{const{i18n:s}=V(),r=y(()=>t.map(o=>({key:o})),[t]);return y(()=>((e?xg(e)?e.map(a=>({key:a})):e:void 0)||r).map(({key:a,flex:l})=>{const u=s.get(pa(a)),m=wg((n==null?void 0:n[a])||F);return{key:a,label:u,visible:!0,flex:l,...m||F}}),[n,e,s,r])},Nu=["createdAt","paymentMethod","transactionType","amount"],jg=({activeBalanceAccount:t,availableCurrencies:e,error:n,hasMultipleCurrencies:s,loading:r,onContactSupport:i,onRowClick:o,showDetails:a,showPagination:l,transactions:u,customColumns:m,...d})=>{const{i18n:_}=V(),{dateFormat:f}=Sn(t==null?void 0:t.timeZone),[I,g]=$(),S=ft(mt.up.sm),p=ft(mt.up.md),D=ft(mt.down.xs),E=_.get("amount"),O=Tu({fields:Nu,customColumns:m,columnConfig:{amount:{label:s?void 0:`${E} ${e&&e[0]?`(${Cl(e[0])})`:""}`,position:Ze.RIGHT,flex:S?1.5:void 0},transactionType:{visible:p},paymentMethod:{visible:S}}}),P={title:"noTransactionsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},M=N(C=>{g(C??void 0)},[g]),R=y(()=>()=>c(_a,{error:n,onContactSupport:i,errorMessage:"weCouldNotLoadYourTransactions"}),[n,i]);return c("div",{className:An,children:c(Je,{errorDisplay:R,error:n,columns:O,data:u,loading:r,outline:!1,onRowClick:{callback:o},onRowHover:M,emptyTableMessage:P,customCells:{transactionType:({item:C,rowIndex:k})=>{const v=`tooltip.${C.category}`;return C.category?_.has(v)?c(A_,{isContainerHovered:k===I,value:C.category}):c(U,{variant:b.BODY,children:C.category}):null},amount:({value:C})=>{const k=_.amount(C.value,C.currency,{hideCurrency:!s});return c(U,{variant:b.BODY,className:Eg,children:k})},createdAt:({item:C,value:k})=>D?c("div",{className:Og,children:[c(Ec,{paymentMethod:C.paymentMethod,bankAccount:C.bankAccount}),c(U,{variant:b.BODY,className:bg,children:f(C.createdAt,n_)})]}):c(U,{variant:b.BODY,children:f(k,e_)}),paymentMethod:({item:C})=>c(Ec,{paymentMethod:C.paymentMethod,bankAccount:C.bankAccount})},children:l&&c(Je.Footer,{children:c(Ia,{...d})})})})},br=({children:t})=>c("div",{className:"adyen-pe-transaction-data__container",children:t}),Pg=["status","category","paymentMethod","bankAccount","balanceAccount","id","balanceAccountId"],kg=({transaction:t,isFetching:e,error:n})=>{var l,u,m;const{i18n:s}=V(),{dateFormat:r}=Sn((l=t==null?void 0:t.balanceAccount)==null?void 0:l.timeZone),i=y(()=>t?r(new Date(t.createdAt),s_):"",[t,r]),o=(t==null?void 0:t.status)==="Booked"?"default":(t==null?void 0:t.status)==="Reversed"?"error":"pending",a=y(()=>{const d=new Set([...Pg,...Nu]);return Object.entries(t||{}).filter(([_])=>!d.has(_)).map(([_,f])=>({key:_,value:f}))},[t]);return c(q,{children:!t&&!n||e?c(hu,{isLoading:e,skeletonRowNumber:5}):t?c("div",{className:"adyen-pe-transaction-data",children:[c(br,{children:[((t==null?void 0:t.status)||(t==null?void 0:t.category))&&c("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__tag-container",children:[(t==null?void 0:t.status)&&c(So,{label:s.get(t.status),variant:t.status==="Booked"?ee.SUCCESS:t.status==="Reversed"?ee.ERROR:ee.DEFAULT}),t.category&&c(So,{label:s.get(`txType.${t.category}`),variant:ee.DEFAULT})]}),c("div",{className:`adyen-pe-transaction-data__section adyen-pe-transaction-data__amount adyen-pe-transaction-data__amount--${o}`,children:t!=null&&t.amount?`${s.amount(t.amount.value,t.amount.currency,{hideCurrency:!0})} ${t.amount.currency}`:null}),((t==null?void 0:t.paymentMethod)||(t==null?void 0:t.bankAccount))&&c("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__payment-method",children:[c("div",{className:"adyen-pe-transaction-data__payment-method-logo-container",children:c(mu,{name:t.paymentMethod?t.paymentMethod.type:"bankTransfer",alt:t.paymentMethod?t.paymentMethod.type:"bankTransfer",folder:"logos/",className:"adyen-pe-transaction-data__payment-method-logo"})}),c("div",{className:"adyen-pe-transaction-data__payment-method-detail",children:t!=null&&t.paymentMethod?fu(t==null?void 0:t.paymentMethod,"detail"):(u=t==null?void 0:t.bankAccount)==null?void 0:u.accountNumberLastFourDigits})]}),c("div",{className:"adyen-pe-transaction-data__section adyen-pe-transaction-data__label",children:i})]}),((m=t==null?void 0:t.balanceAccount)==null?void 0:m.description)&&c(br,{children:[c("div",{className:"adyen-pe-transaction-data__label",children:s.get("account")}),c("div",{children:t.balanceAccount.description})]}),c(br,{children:[c("div",{className:"adyen-pe-transaction-data__label",children:s.get("referenceID")}),c("div",{"aria-label":s.get("referenceID"),children:t==null?void 0:t.id})]}),a.map(({key:d,value:_})=>c(br,{children:[c("div",{className:"adyen-pe-transaction-data__label",children:s.get(d)}),c("div",{"aria-label":s.get(d),children:_})]},d))]}):null})},Wg={transaction:"getTransaction",payout:"getPayout"},Bg={transaction:"transactionDetails",payout:"payoutDetails"},Xi=t=>!("data"in t);function ya(t){var g,S;const e=y(()=>Xi(t)?null:t.data,[t]),n=y(()=>Xi(t)?t.id:null,[t]),{i18n:s}=V(),r=ue().endpoints[Wg[t.type]],i=y(()=>Bg[t.type],[t.type]),{data:o,error:a,isFetching:l}=Ar(y(()=>({fetchOptions:{enabled:!!n&&!!r},queryFn:async()=>{const p=t.type==="transaction"?{path:{transactionId:n}}:{query:{balanceAccountId:n,createdAt:t.date}};return r(F,{...p})}}),[n,r,t])),u=t.type==="payout"?t.balanceAccountDescription:o==null?void 0:o.balanceAccountId,m=t.type==="payout"?t==null?void 0:t.balanceAccountDescription:(g=e==null?void 0:e.balanceAccount)==null?void 0:g.description,{balanceAccounts:d}=bi(u,!m),_=y(()=>{if(a)return aa(a,"weCouldNotLoadYourTransactions",t.onContactSupport)},[a,t.onContactSupport]),f=Xi(t)&&t.type==="transaction"?t.extraDetails:F,I=e??o;return c("div",{className:"adyen-pe-overview-details",children:[!t.hideTitle&&c("div",{className:"adyen-pe-overview-details--title",children:c(U,{variant:b.TITLE,medium:!0,children:s.get(i)})}),a&&_&&c("div",{className:"adyen-pe-overview-details--error-container",children:c(Wn,{withImage:!0,..._})}),t.type==="transaction"&&c(kg,{transaction:I?{...I||F,balanceAccount:(e==null?void 0:e.balanceAccount)||(d==null?void 0:d[0]),...f}:void 0,error:!!(a&&_),isFetching:l}),t.type==="payout"&&I&&c(g_,{balanceAccountId:n,payout:I,balanceAccountDescription:(t==null?void 0:t.balanceAccountDescription)||((S=d==null?void 0:d[0])==null?void 0:S.description),isFetching:l})]})}const zg={base:"adyen-pe-modal-content"},Fg=t=>le(t,"id");function $g({type:t,data:e}){const n=y(()=>t==="payout"?{...e,type:"payout"}:Fg(e)?{data:e,type:t}:{id:e,type:t},[e,t]);return c(q,{children:n&&c("div",{className:zg.base,children:c(ya,{...n})})})}const Lu=({children:t,className:e,selectedDetail:n,resetDetails:s})=>{const{i18n:r}=V(),i=!!n;return B(()=>{i&&Ts.closeAll()},[i]),c("div",{className:e,children:[t,n&&c(kf,{title:n!=null&&n.title?r.get(n.title):void 0,isOpen:!!n,"aria-label":r.get("payoutDetails"),onClose:s,isDismissible:!0,headerWithBorder:!1,size:(n==null?void 0:n.modalSize)??"large",children:n&&c($g,{...n==null?void 0:n.selection})})]})},Ug=t=>{const[e,n]=$(0),s=N(()=>n(0),[n]),r=y(()=>t==null?void 0:t[e],[t,e]),i=y(()=>t&&t.length>1?Object.freeze(t.map(({description:a,id:l})=>({id:l,name:Kd(a)}))):void 0,[t]),o=N(({target:a})=>{const l=a==null?void 0:a.value,u=t==null?void 0:t.findIndex(({id:m})=>m===l);u>=0&&n(u)},[t,n]);return{activeBalanceAccount:r,balanceAccountSelectionOptions:i,onBalanceAccountSelection:o,resetBalanceAccountSelection:s}},Sa=Ug;const Aa="adyen-pe-balance-account-selector",Hg=`${Aa}__account-id`,Yg=`${Aa}__account-label`,Gg=Et(({activeBalanceAccount:t,balanceAccountSelectionOptions:e,onBalanceAccountSelection:n})=>{const s=ft(mt.down.xs),r=N(i=>c(q,{children:[c("div",{className:i.contentClassName,children:[i.item.name&&c("span",{className:Yg,children:i.item.name}),c("span",{className:Hg,children:i.item.id})]}),Au(i)]}),[]);return e&&e.length>1?c(Ri,{popoverClassNameModifiers:[Aa],onChange:n,filterable:!1,multiSelect:!1,selected:t==null?void 0:t.id,withoutCollapseIndicator:!0,items:e,renderListItem:r,showOverlay:s}):null}),Ta=Gg,{getTimezoneTime:Zg,getUsedTimezone:Jg}=(()=>{const t=/\d{2}:\d{2}(?=:\d{2}(?:\.\d+)?\s+([AP]M))/i,e=/^GMT|0(?=\d:00)|:00/g,n=pr();return{getTimezoneTime:(i,o=Date.now())=>{n.tz=i;const{formatted:a}=n(o),[l="",u=""]=(a==null?void 0:a.match(t))??Lt,m=oo(a),d=`${l}${u&&` ${u}`}`,_=tm(m).replace(e,"");return[d,_]},getUsedTimezone:i=>(n.tz=i,n.tz.current)}})(),Vg=({timezone:t,withClock:e=!1}=F)=>{const n=y(()=>jt(e),[e]),s=y(()=>Jg(t),[t]),r=W(st),[i,o]=$(Date.now()),[a,l]=y(()=>Zg(s,i),[i,s]);return y(()=>{r.current(),r.current=n?fl.subscribe(u=>{gs(u)||o(u.now)}):st},[o,n]),{clockTime:a,GMTOffset:l,timestamp:i,timezone:s}},Qg=Vg,Xg=t=>Object.freeze({systemToTimezone:x(e=>Ie(t,e)),timezoneToSystem:x(e=>De(t,e)),timezoneOffset:x(e=>t(e).offset)}),Eu=(t,e,n=t)=>{const s=(r,i)=>{let o=r;ht(r)?o=n:Os(r)||(o=i??n);const a=hn(t,o,e);return a===o?a:i??n};return r=>{const i=rt(()=>o);let o=s(r);return J({value:i,descriptor:x({...i,set(a){const l=o;o=s(a,o),l!==o&&(this.now=this.now)}})})}},Kg=(t,e)=>n=>X(n)?n.call(t,e):n,qg=t=>!le(t,"offsets"),tI=t=>le(t,"from"),wi=({now:t})=>t,eI=(()=>{const t=new Map;return e=>{let n=t.get(e);return Z(n)&&(n=Object.freeze([0,0,e,0,0,0,-1]),t.set(e,n)),n}})(),Ln=t=>{try{const e=t instanceof Date||+t===t?t:void 0,n=new Date(e).getTime();return isNaN(n)?void 0:n}catch{}},nI=(t=F,e=F)=>{const n=vs(t),s=vs(e);return()=>{const r=pr(),i=rt(()=>d),o=rt(()=>r.tz.current),a=J({now:i,timezone:o,...Xg(r)}),l=Kg(n,a);let{from:u,to:m,now:d}=F;const _=I=>{d=Ln(I??Date.now())??d;t:{if(qg(n)){u=Ln(l(n.from))??d,m=Ln(l(n.to))??d;break t}let g,S,p;(p=tI(n))?(g=new Date(u=Ln(l(n.from))??d),S=1):(g=new Date(m=Ln(l(n.to))??d),S=-1),g=new Date(a.timezoneToSystem(g));const[D=0,E=0,O=0,P=0,M=0,R=0,C=0]=l(n.offsets);g.setFullYear(g.getFullYear()+D*S,g.getMonth()+E*S,g.getDate()+O*S),g.setHours(g.getHours()+P*S,g.getMinutes()+M*S,g.getSeconds()+R*S,g.getMilliseconds()+C*S);const k=Ln(a.systemToTimezone(g))??d;p?m=k:u=k}u>m&&([u,m]=[m,u])},f=I=>{const g=r.tz,S=g.current;r.tz=I,g.current!==S&&_(d)};return _(),J({...s,from:rt(()=>u),now:{...i,set:_},timezone:{...o,set:f},to:rt(()=>m)})}},xi=nI,sI=/^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/,ji=(t=yi)=>(e,n,...s)=>{const r=Re(n),i=new Date(De(r,e));return i.setHours(0,0,0,0),Ie(r,t(i,...s))},Mu=ji(),Cu=ji(t=>t.setDate(1)),rI=ji(t=>t.setMonth(0,1)),Du=ji((t,e)=>{const n=oI(t.getDay(),e??0);return t.setDate(t.getDate()-n)}),iI=t=>(t%100?t%4:t%400)===0,Ki=(t,e,n=0)=>{const s=t+n,r=fr(s,12),i=e+Math.floor(s/12);let o=31;switch(r){case 1:o=iI(i)?29:28;break;case 3:case 5:case 8:case 10:o=30;break}return[o,r,i]},oI=(t,e=0)=>(7-e+t)%7,wn=(t,e)=>mn(t)?0:t-Mu(t,e),Mc=t=>Z(t)?t:new Date(t),aI=(t,e=F)=>{const n=Re(e.timeZone),s={...Fo,...e,timeZone:n.tz.current};return new Date(t).toLocaleDateString(Mi,s)},Be=(t,e)=>{const n=aI(t,{...Dl,...Fo,timeZone:e,hour12:!1}),[,s="",r="",i="",o="",a="",l="",u=""]=n.match(sI)??Lt;return[+i,+s-1,+r,+o%24,+a,+l,+u]},To=(t,e,n)=>{if(mn(t)||mn(e))return 1/0;const[s,r]=Be(t,n),[i,o]=Be(e,n);return Math.abs(o-r+(i-s)*12)},Re=(()=>{const t=pr();return e=>(t.tz=void 0,t.tz=e,t)})(),Na=1,cI=eI(7),lI=Eu(0,6,Na),uI=(t=0)=>{const e=~~hn(0,t,1/0)||0;return(n=Na)=>{const s=e?{offsets:cI}:{to:wi},r=lI(n);return xi({from:({now:i,timezone:o,systemToTimezone:a,timezoneToSystem:l})=>{const u=new Date(l(Du(i,o,r.value)));return u.setDate(u.getDate()-e*7),a(u)},...s},{firstWeekDay:r.descriptor})()}},Ou=uI,dI=Object.freeze([0,1,0,0,0,0,-1]),hI=(t=0)=>{const e=~~hn(0,t,1/0)||0;return xi({from:({now:s,timezone:r,systemToTimezone:i,timezoneToSystem:o})=>{const a=new Date(o(Cu(s,r)));return a.setMonth(a.getMonth()-e),i(a)},...e?{offsets:dI}:{to:wi}})},bu=hI,mI=bu(1),fI=mI,_I=365,gI=1,II=1,pI=Eu(gI,_I,II),yI=t=>{const e=pI(t);return xi({from:({now:n,timezone:s,systemToTimezone:r,timezoneToSystem:i})=>{const o=new Date(i(Mu(n,s)));return o.setDate(o.getDate()-e.value+1),r(o)},to:wi},{numberOfDays:e.descriptor})()},Cc=yI,SI=Ou(1),AI=SI,TI=bu(0),NI=TI,LI=Ou(0),EI=LI,MI=xi({from:({now:t,timezone:e})=>rI(t,e),to:wi}),CI=MI,DI=()=>Object.freeze({"rangePreset.last7Days":Cc(7),"rangePreset.last30Days":Cc(30),"rangePreset.thisWeek":EI(),"rangePreset.lastWeek":AI(),"rangePreset.thisMonth":NI(),"rangePreset.lastMonth":fI(),"rangePreset.yearToDate":CI()}),OI=({now:t=Date.now(),options:e,selectedOption:n,timezone:s})=>{const{i18n:r}=V(),[i,o]=$(),[a,l]=$(),[u,m]=$(),d=W(),_=W(),[f,I,g]=y(()=>{const M=r.get("rangePreset.custom"),R=Object.keys(e),C=Object.freeze(R.map(v=>r.get(v)));return[M,(v,Q=C)=>{const Y=Q.findIndex(nt=>nt===v);return e[R[Y]]},C]},[r,e]),[S,p]=$(n===f),D=y(()=>Object.freeze([...g,f]),[f,g]),E=y(()=>S?D:g,[S,g,D]),O=N(M=>{const R=I(M,g);R&&(o(R.from),l(R.to),p(!1),m(M))},[f,I,u,g]),P=N(()=>{o(void 0),l(void 0),p(!0),m(f)},[f]);return y(()=>{n===f?m(f):O(n)},[]),y(()=>{var M;if(d.current!==t||_.current!==s){const R=Object.values(e);R.forEach(C=>{C.now=t,C.timezone=s}),d.current=t,_.current=(M=R[0])==null?void 0:M.timezone,O(u)}},[t,s,e]),{customSelection:P,from:i,onSelection:O,options:E,selectedOption:u,to:a}},bI=({calendarRef:t,onTimeRangeSelected:e,timestamp:n,...s})=>{const{customSelection:r,from:i,onSelection:o,options:a,selectedOption:l,to:u}=OI(s),m=y(()=>Object.freeze(a.map(I=>({id:I,name:I}))),[a]),d=N(({target:I})=>o(I==null?void 0:I.value),[o]),_=W(!0),f=W(n);return B(()=>{t!=null&&t.current&&i&&u&&(_.current=!0,t.current.from=new Date(i),t.current.to=new Date(u))},[t,i,u]),B(()=>{f.current!==n&&(f.current=n,_.current?_.current=!1:r())},[r,n]),B(()=>{l&&(e==null||e(l))},[l,e]),c(Ri,{setToTargetWidth:!0,items:m,filterable:!1,multiSelect:!1,onChange:d,selected:l})},vI=bI,ne=(()=>{const t=s=>Object.freeze(_s(F,Object.fromEntries(Object.entries(s).map(([r,i])=>[r,{value:i}])))),e=s=>{try{return Object.getPrototypeOf(s)===F}catch{return!1}},n=(s,r)=>{if(!s)return t(x(r,Ye(s)));let i=r;return t({enumerable:!0,get:()=>i,set:o=>{i=s(o)}})};return Object.defineProperties(n,{is:{value:e},isObject:{value:Si},immutable:{value:s=>n(!1,s)},mutable:{value:s=>n(void 0,s)},restricted:{value:()=>n(!1)}})})(),vu=(()=>{const t=(n={},s=!1)=>{const r=J();for(const[i,o]of Object.entries(n)){try{const a=ne.is(o),l=ne.isObject(o);if(a||l){Object.defineProperty(r,i,a?o:t(o,s));continue}else if(s){Object.defineProperty(r,i,ne.immutable(o));continue}}catch{}r[i]=o}return ne((i={})=>Object.assign(r,i),r)};return Object.defineProperties(t,{unwrapped:{value:(n={},s=!1)=>{const r=t(n,s);return J({P:r}).P}}})})();var La=(t=>(t[t.DATE=0]="DATE",t[t.DAY_OF_WEEK=1]="DAY_OF_WEEK",t[t.MONTH_HEADER=2]="MONTH_HEADER",t))(La||{});const Ru="adyen-pe-calendar__cell adyen-pe-calendar__cell--date",wu="adyen-pe-calendar__date",RI=(t=F,e)=>{const n=vu.unwrapped({childClassName:ne.mutable(wu),childProps:{children:ne.restricted(),className:""},className:ne.mutable(Ru),props:{...t,children:ne.restricted(),className:""}},!0);return e==null||e(La.DATE,n),n},wI=Zt(({grid:t,prepare:e,datetime:n,flags:s,index:r,label:i,onlyCellsWithin:o},a)=>{const l=s.WITHIN_BLOCK,u={"data-cursor-position":r,"data-within-month":l,tabIndex:-1};if(l){const g=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"]=g,g&&(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)}`),r===+t.cursor&&(u.ref=a)}const m=RI(u,e),{children:d,className:_,...f}=m.props||F,I=Gr(m.className,Ru,_);return c("td",{...f,...u,className:I,children:(!o||l)&&(()=>{const{children:g,className:S,...p}=m.childProps||F,D=Gr(m.childClassName,wu,S);return c("time",{...p,className:D,dateTime:n,children:i})})()})}),xI=Et(wI,Yr({block:Yr.exclude,flags:t=>+t})),xu="adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week",ju="adyen-pe-calendar__day-of-week",jI=(t=F,e)=>{const n=vu.unwrapped({childClassName:ne.mutable(ju),childProps:{children:ne.restricted(),className:""},className:ne.mutable(xu),props:{...t,children:ne.restricted(),className:""}},!0);return e==null||e(La.DAY_OF_WEEK,n),n},PI=({prepare:t,flags:e,labels:{long:n,short:s}})=>{const r={"aria-label":n,"data-first-week-day":e.LINE_START,"data-last-week-day":e.LINE_END,"data-weekend":e.WEEKEND,scope:"col"},i=jI(r,t),{children:o,className:a,...l}=i.props||F,u=Gr(i.className,xu,a),{children:m,className:d,..._}=i.childProps||F,f=Gr(i.childClassName,ju,d);return c("th",{...l,...r,className:u,children:c("abbr",{..._,className:f,children:s})})},kI=Et(PI,Yr({block:Yr.exclude,flags:t=>+t}));const WI=Is(({cursorRootProps:t,onlyCellsWithin:e,prepare:n,grid:s},r)=>c("ol",{className:"adyen-pe-calendar",role:"none",...t,children:s.map(i=>c("li",{className:"adyen-pe-calendar__month",role:"none",children:[c("div",{className:"adyen-pe-calendar__month-name",role:"none",children:c("time",{dateTime:i.datetime,"aria-hidden":"true",children:i.label})}),c("table",{role:"grid","aria-multiselectable":!0,"aria-label":`${i.label} calendar`,className:"adyen-pe-calendar__grid",style:{"--adyen-pe-calendar-rowspan":s.rowspan},children:[c("thead",{children:c("tr",{className:"adyen-pe-calendar__row",children:s.weekdays.map((o,a)=>c(kI,{grid:s,block:i,prepare:n,cell:a,...o},o.labels.long))})}),c("tbody",{children:i.map((o,a)=>c("tr",{className:"adyen-pe-calendar__row",children:o.map((l,u)=>c(xI,{ref:r,grid:s,block:i,prepare:n,cell:u,onlyCellsWithin:e,row:a,...l},`${i.month}:${l.timestamp}`))},`${i.month}:${a}`))})]})]},i.datetime))})),BI=Et(WI),Jr=864e5,zI=["narrow","short","long"],Pu=[0,1,6],Bn=[1,2,3,4,6,12],Dc=42,FI=[0,1],Ea=Symbol(),Ma=Symbol(),Ca=Symbol(),Oc=[Ca,Ma,Ea],Ke=Symbol(),xn=Symbol(),jn=Symbol(),$I=[xn,jn,Ke],ku=Symbol(),Wu=Symbol(),Bu=Symbol(),zu=Symbol(),Fu=Symbol(),$u=Symbol(),Uu=Symbol(),Hu=Symbol(),Yu=Symbol(),Gu=Symbol(),Da=Symbol(),Oa=Symbol(),Zu=Symbol(),bc=Symbol(),Rt=Symbol(),vc=Symbol(),Qt=Symbol(),Ju=Symbol(),xr=Symbol(),jr=Symbol(),Rc=(t,e)=>{if(e>=t)return t;let n=Math.max(1,Bn.indexOf(t));for(;--n&&e<Bn[n];);return Bn[n]},UI=t=>Bn[Math.max(Bn.indexOf(t),0)],wc=(t=0)=>Object.freeze(FI.map(e=>fr(6-t+e,7)));var $s,$t,Ut,Yn,Gn;class xc{constructor(...e){T(this,$s,1/0);T(this,$t,1/0);T(this,Ut,-1/0);T(this,Yn,0);T(this,Gn,0);if(e.length>=3){let n=new Date(e[1]).getTime();if(typeof e[2]!="symbol")A(this,Ut,n||h(this,Ut)),A(this,$t,new Date(e[2]).getTime()||h(this,$t)),h(this,$t)<h(this,Ut)&&([Qe(this,$t)._,Qe(this,Ut)._]=[h(this,Ut),h(this,$t)]),A(this,Gn,wn(h(this,Ut),e[0])),A(this,Yn,wn(h(this,$t),e[0])),A(this,$s,To(h(this,Ut),h(this,$t),e[0])+1);else if(!isNaN(n))switch(e[2]){case Oa:A(this,$t,n),A(this,Yn,wn(h(this,$t),e[0]));break;case Da:default:A(this,Ut,n),A(this,Gn,wn(h(this,Ut),e[0]));break}}}get numberOfMonths(){return h(this,$s)}get endTimestamp(){return h(this,$t)}get endTimestampOffset(){return h(this,Yn)}get startTimestamp(){return h(this,Ut)}get startTimestampOffset(){return h(this,Gn)}}$s=new WeakMap,$t=new WeakMap,Ut=new WeakMap,Yn=new WeakMap,Gn=new WeakMap;const Pi=(...t)=>{let e=Re().tz.current,n=new xc(e,...t);return J({from:rt(()=>n.startTimestamp,!1),to:rt(()=>n.endTimestamp,!1),offsets:{value:J({from:rt(()=>n.startTimestampOffset,!1),to:rt(()=>n.endTimestampOffset,!1)})},span:rt(()=>n.numberOfMonths,!1),timezone:{...rt(()=>e,!1),set:s=>{const r=e;e=Re(s??void 0).tz.current,e!==r&&(n=new xc(e,...t))}}})},Ds=Pi(),HI=()=>Pi(Date.now(),Da),YI=()=>Pi(Date.now(),Oa),Vu=(...t)=>t.length===0?Ds:Pi(...t);var gt=(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))(gt||{}),Cn=(t=>(t[t.PREV=1]="PREV",t[t.BLOCK=0]="BLOCK",t[t.FRAME=2]="FRAME",t[t.PERIOD=4]="PERIOD",t))(Cn||{}),No=(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))(No||{});const GI=(()=>{const t={},e=Object.keys(gt).filter(s=>isNaN(+s)),n=s=>s!=="ALL"&&Gt(s)&&e.includes(s);return s=>{const r=s&gt.ALL;return t[r]||(t[r]=new Proxy(J({valueOf:{value:()=>r}}),Li({get:(i,o)=>{switch(o){case"valueOf":return i.valueOf;case Symbol.toStringTag:return"_";default:if(!n(o))return}return r&gt[o]?1:void 0}}))),t[r]}})(),Qu=GI,ZI=t=>(e,n,s)=>{if(Gt(n)){const r=+n;if(r>=0&&r<e.length)return t(r)}return Reflect.get(e,n,s)},jc=function*(t=yi,e){for(let n=0;n<this.length;n++)yield t.call(e,this[n],n,this)},JI=Object.freeze(J({[Symbol.iterator]:{value(){return jc.call(this)}},map:{value(t,e){return[...jc.call(this,t,e)]}}})),be=(t,e)=>X(t)?be({length:{get:t}},e):mr(t)?be({length:{value:t}},e):new Proxy(_s(JI,t),{get:ZI(e),set:io}),VI=(()=>{const t=new Map,e=pr(),n=(s=Date.now())=>{const r=new Date(De(e,s)),i=Ie(e,r.setHours(0,0,0,0)),o=Ie(e,r.setDate(r.getDate()+1));return[i,o-i]};return s=>{e.tz=s;const r=e.tz.current;return t.get(r)??(()=>{let i=null,o=null,a=null;const l=()=>(e.tz=r,i??n()[0]),u=(g=Date.now())=>{e.tz=r,[i,o]=n(g)},{cancelSubscriptions:m,requestNotification:d,subscribe:_,on:f}=Ir({timestamp:l});f.resume=()=>{a=ml.subscribe(g=>{if(gs(g))return;const{now:S}=g;if(Fr(i)||Fr(o))return u(S);S-i<o||(u(S),d())})},f.idle=()=>{a==null||a(),i=o=a=null};const I=J({cancelSubscriptions:x(m),timestamp:rt(l),timezone:x(r),subscribe:x(_)});return t.set(r,I),I})()}})(),Vr=VI;var Zn,wt,Us,Hs,Ys,Gs,re,Ht,Te,Jn,Vn,Qn,nn,Ne,Zs,Tt,yt,St,Xn,Le,sn,Kn,ie,Js,Vs,ze,Ee,Qs,Xs,Xr,Kr,qr,Xu,ti,Ku,Fe,Dn,ei,qu,xt,Ft,rn,Ns,Ks,Eo;const Pn=class Pn{constructor(){T(this,qr);T(this,ti);T(this,Fe);T(this,ei);T(this,xt);T(this,rn);T(this,Ks);T(this,wt,0);T(this,Us,void 0);T(this,Hs,void 0);T(this,Ys,-1);T(this,Gs,-1);T(this,re,void 0);T(this,Ht,void 0);T(this,Te,void 0);T(this,Jn,!1);T(this,Vn,void 0);T(this,Qn,0);T(this,nn,[]);T(this,Ne,h(Pn,Zn));T(this,Zs,12);T(this,Tt,void 0);T(this,yt,void 0);T(this,St,1);T(this,Xn,void 0);T(this,Le,void 0);T(this,sn,void 0);T(this,Kn,Vr());T(this,ie,void 0);T(this,Js,-1/0);T(this,Vs,1/0);T(this,ze,-1/0);T(this,Ee,1/0);T(this,Qs,1/0);T(this,Xs,0);j(this,"daysInWeek",0);j(this,"origin");j(this,"originTimestamp");T(this,Xr,be(()=>this.daysInWeek,this.getDayOfWeekAtIndex.bind(this)));T(this,Kr,be(()=>h(this,St),w(this,ei,qu).bind(this)))}get fromTimestamp(){return h(this,Js)}get toTimestamp(){return h(this,Vs)}get numberOfBlocks(){return h(this,Qs)}get blankSelection(){return h(this,Tt)===h(this,yt)&&Z(h(this,yt))}get cursor(){return h(this,re)??-1}get daysOfWeek(){return h(this,Xr)}get dynamicBlockHeight(){return h(this,Jn)}set dynamicBlockHeight(e){ht(e)?A(this,Jn,!!e):ro(e)&&A(this,Jn,e)}set effect(e){ht(e)?A(this,Vn,void 0):X(e)&&A(this,Vn,e)}get firstWeekDay(){return h(this,Qn)}set firstWeekDay(e){if(ht(e))this.firstWeekDay=0;else if(!Pu.includes(e)||h(this,Qn)===A(this,Qn,e))return}get frameBlocks(){return h(this,Kr)}get isAtEnd(){return!mn(h(this,Ee))&&h(this,Ee)===h(this,St)-1}get isAtStart(){return!mn(h(this,ze))&&h(this,ze)===0}get locale(){return h(this,Ne)}set locale(e){const n=h(this,Ne);if(ht(e))A(this,Ne,h(Pn,Zn));else if(typeof Intl<"u")try{A(this,Ne,new Intl.Locale(e).toString())}catch{A(this,Ne,h(Pn,Zn))}h(this,Ne)!==n&&this.refreshFrame(!0)}get selectionStart(){return h(this,Tt)}get selectionEnd(){return h(this,yt)}get size(){return h(this,St)}set size(e){const n=Math.min(!ht(e)&&UI(e)||1,h(this,Zs));h(this,St)!==A(this,St,n)&&(w(this,Ks,Eo).call(this),this.refreshFrame())}get timeslice(){return h(this,Le)}set timeslice(e){if(e===h(this,Xn)||ht(e)&&h(this,Xn)===Ds)return;const{from:n,to:s,timezone:r}=A(this,Xn,e??Ds);A(this,Le,Vu(n,s)),this.timezone=r}get timezone(){return h(this,sn)}set timezone(e){h(this,Le).timezone=e,A(this,sn,h(this,Le).timezone),A(this,Kn,Vr(h(this,sn))),h(this,ie)&&(h(this,ie).call(this),A(this,ie,h(this,Kn).subscribe(this.refreshFrame.bind(this,!0)))),w(this,qr,Xu).call(this)}set trackCurrentDay(e){ro(e)?e&&!h(this,ie)?A(this,ie,h(this,Kn).subscribe(this.refreshFrame.bind(this,!0))):!e&&h(this,ie)&&(h(this,ie).call(this),A(this,ie,void 0)):ht(e)&&(this.trackCurrentDay=!1)}get units(){return h(this,Xs)}initialize(){this.timeslice=Ds}refreshFrame(e=!1){var n;if(h(this,nn).length=0,!(Z(h(this,Ht))||e)){const s=this.getFrameBlockAtIndex(h(this,wt)),{from:r,to:i}=s.inner,[o]=w(this,Fe,Dn).call(this,this.getTimestampAtIndex(r+h(this,Ht)),!1);A(this,Ht,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(r),o));const a=r+h(this,Ht),l=hn(r,a,i);if(l>a)return A(this,Ht,this.getUnitsForFrameBlockAtIndex(--Qe(this,wt)._)+a-l),h(this,wt)>=0?this.refreshFrame():(A(this,wt,h(this,St)-1),this.shiftFrameByOffset(-1,xr));if(l<a)return A(this,Ht,a-l-1),++Qe(this,wt)._<h(this,St)?this.refreshFrame():(A(this,wt,0),this.shiftFrameByOffset(1,xr));A(this,Us,r),A(this,Hs,i),A(this,Te,w(this,Fe,Dn).call(this,this.getTimestampAtIndex(a),!1)[0]),A(this,Ht,this.getCursorBlockOriginTimestampOffset(h(this,Te))),A(this,re,r+h(this,Ht));const u=h(this,wt)>0?this.getFrameBlockAtIndex(0):s,m=h(this,wt)<h(this,St)-1?this.getFrameBlockAtIndex(h(this,St)-1):s;A(this,Ys,u.inner.from),A(this,Gs,m.inner.to),A(this,Xs,m.outer.to+1)}this.withCurrentDayTimestamp(),(n=h(this,Vn))==null||n.call(this)}shiftFrameByOffset(e,n){if(e&&Os(e))switch(n){case Ju:return w(this,rn,Ns).call(this,e);case jr:return w(this,rn,Ns).call(this,e*12);case xr:default:return w(this,rn,Ns).call(this,e*h(this,St))}}shiftFrameCursor(e){switch(e){case ku:return w(this,xt,Ft).call(this,-1);case Fu:return w(this,xt,Ft).call(this,1);case Gu:return w(this,xt,Ft).call(this,-this.rowspan);case zu:return w(this,xt,Ft).call(this,this.rowspan);case Bu:return w(this,xt,Ft).call(this,h(this,Us)-h(this,re));case Wu:return w(this,xt,Ft).call(this,h(this,Hs)-h(this,re));case Uu:return w(this,xt,Ft).call(this,-(h(this,re)%this.rowspan));case $u:return w(this,xt,Ft).call(this,this.rowspan-(h(this,re)%this.rowspan+1));case Yu:return w(this,xt,Ft).call(this,-this.getUnitsForFrameBlockAtIndex((h(this,wt)??0)-1));case Hu:return w(this,xt,Ft).call(this,this.getUnitsForFrameBlockAtIndex(h(this,wt)??0))}if(!(e<0)&&e>=h(this,Ys)&&e<=h(this,Gs))return w(this,xt,Ft).call(this,e-h(this,re))}shiftFrameToTimestamp(e){A(this,Te,this.originTimestamp=w(this,Fe,Dn).call(this,e,!1).reduce((n,s)=>n+s)),A(this,Ht,this.getCursorBlockOriginTimestampOffset(h(this,Te))),this.reoriginate(),[Qe(this,ze)._,Qe(this,Ee)._]=this.getEdgeBlockOffsetsFromOrigin(),w(this,Ks,Eo).call(this),this.refreshFrame(),w(this,xt,Ft).call(this,this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(h(this,re)),h(this,Te)))}clearSelection(){this.blankSelection||(A(this,Tt,A(this,yt,void 0)),this.refreshFrame(!0))}updateSelection(e,n){const s=h(this,Tt),r=h(this,yt),i=w(this,Fe,Dn).call(this,e,!1).reduce((o,a)=>o+a);switch(n===bc&&(i<=s?n=Qt:i>=r&&(n=Rt)),n){case Rt:A(this,Tt,i),A(this,yt,Math.max(h(this,Tt),r??i));break;case Qt:A(this,yt,i),A(this,Tt,Math.min(s??i,h(this,yt)));break;case bc:case vc:{let o=Math.abs(i-(s??i)),a=Math.abs(i-(r??i));n===vc&&([o,a]=[a,o]),o>a?A(this,Tt,i):A(this,yt,i);break}case Zu:default:A(this,Tt,A(this,yt,i));break}(h(this,Tt)!==s||h(this,yt)!==r)&&this.refreshFrame(!0)}};Zn=new WeakMap,wt=new WeakMap,Us=new WeakMap,Hs=new WeakMap,Ys=new WeakMap,Gs=new WeakMap,re=new WeakMap,Ht=new WeakMap,Te=new WeakMap,Jn=new WeakMap,Vn=new WeakMap,Qn=new WeakMap,nn=new WeakMap,Ne=new WeakMap,Zs=new WeakMap,Tt=new WeakMap,yt=new WeakMap,St=new WeakMap,Xn=new WeakMap,Le=new WeakMap,sn=new WeakMap,Kn=new WeakMap,ie=new WeakMap,Js=new WeakMap,Vs=new WeakMap,ze=new WeakMap,Ee=new WeakMap,Qs=new WeakMap,Xs=new WeakMap,Xr=new WeakMap,Kr=new WeakMap,qr=new WeakSet,Xu=function(){const{from:e,to:n,span:s,offsets:r}=h(this,Le);A(this,Js,e-r.from),A(this,Vs,n-r.to),A(this,Qs,s);const i=Z(h(this,Tt))?h(this,Tt):Math.max(h(this,Tt),e),o=Z(h(this,yt))?h(this,yt):Math.min(h(this,yt),n);i===h(this,Tt)||o===h(this,yt)?(A(this,Tt,i),A(this,yt,o)):A(this,Tt,A(this,yt,void 0)),this.reslice(),A(this,Zs,Rc(12,this.numberOfBlocks)),A(this,St,Rc(h(this,St),this.numberOfBlocks)),this.shiftFrameToTimestamp(h(this,Te))},ti=new WeakSet,Ku=function(e){return hn(h(this,ze),e||0,h(this,Ee)-h(this,St)+1)},Fe=new WeakSet,Dn=function(e,n=!0){let s=new Date(e).getTime();if(isNaN(s))return w(this,Fe,Dn).call(this,Date.now());const{from:r,to:i}=h(this,Le),o=hn(r,s,i);o!==s&&n?(s=tl(r,i),(isNaN(s)||mn(s))&&(s=o)):s=o;const a=wn(s,h(this,sn));return[s-a,a]},ei=new WeakSet,qu=function(e){if(Os(e)&&e>=0&&e<h(this,St)){if(!h(this,nn)[e]){const n=this.getFrameBlockAtIndex(e);if(!n)return;const[s,r]=this.getFormattedDataForFrameBlock(n[n.inner.from][0]+Jr/2),i=n.outer.from;h(this,nn)[e]=be({datetime:x(r),label:x(s),length:x(Math.ceil(n.outer.units/this.rowspan)),month:x(n.month),year:x(n.year)},o=>{const a=o*this.rowspan;return be(this.rowspan,l=>{const[u,m]=n[l+a],[d,_]=this.getFormattedDataForBlockCell(u+Jr/2);return J({datetime:x(_),flags:x(Qu(m)),index:x(i+l+a),label:x(d),timestamp:x(u)})})})}return h(this,nn)[e]}},xt=new WeakSet,Ft=function(e){e!==0&&(A(this,Ht,h(this,Ht)+e),this.refreshFrame())},rn=new WeakSet,Ns=function(e){const n=w(this,ti,Ku).call(this,e);n&&(this.shiftOrigin(n),A(this,ze,h(this,ze)-n),A(this,Ee,h(this,Ee)-n),A(this,wt,fr(h(this,wt)-n,h(this,St))),this.refreshFrame())},Ks=new WeakSet,Eo=function(){const e=h(this,St)-1,n=Math.min(e-this.origin%h(this,St),h(this,Ee))-e;n&&w(this,rn,Ns).call(this,n)},T(Pn,Zn,Mi);let Lo=Pn;var on,an,qn,qs,ts,es,tr,ns,er,ss,rs,is,nr,Mo,sr,Co,$e,On,os,Pr;class QI extends Lo{constructor(){super();T(this,nr);T(this,sr);T(this,$e);T(this,os);T(this,on,7);T(this,an,[]);T(this,qn,wc(this.firstWeekDay));T(this,qs,void 0);T(this,ts,-1/0);T(this,es,1/0);T(this,tr,1/0);T(this,ns,void 0);T(this,er,void 0);T(this,ss,void 0);T(this,rs,void 0);T(this,is,void 0);j(this,"daysInWeek",h(this,on));this.initialize()}get fromTimestamp(){return h(this,ts)}get toTimestamp(){return h(this,es)}get numberOfBlocks(){return h(this,tr)}get currentDayTimestamp(){return h(this,qs)}get dynamicBlockHeight(){return super.dynamicBlockHeight}set dynamicBlockHeight(n){const s=this.dynamicBlockHeight;super.dynamicBlockHeight=n,this.dynamicBlockHeight!==s&&this.refreshFrame(!0)}get rowspan(){return h(this,on)}get firstWeekDay(){return super.firstWeekDay}set firstWeekDay(n){const s=this.firstWeekDay;super.firstWeekDay=n,this.firstWeekDay!==s&&(h(this,an).length=0,A(this,qn,wc(this.firstWeekDay)),this.reoriginate(),this.refreshFrame())}getCursorBlockOriginTimestampOffset(n){return Be(n,this.timezone)[2]-1}getDayOfWeekAtIndex(n){if(!h(this,an)[n]){const s=new Date(this.getTimestampAtIndex(n));let r=0;h(this,qn).includes(n)&&(r|=gt.WEEKEND),n===0?r|=gt.LINE_START:n===6&&(r|=gt.LINE_END);const i={};for(const o of zI)i[o]=x(s.toLocaleDateString(this.locale,{weekday:o,timeZone:this.timezone}));h(this,an)[n]=J({flags:x(Qu(r)),labels:x(J(i))})}return h(this,an)[n]}getEdgeBlockOffsetsFromOrigin(){return[w(this,nr,Mo).call(this,h(this,ts)),w(this,nr,Mo).call(this,h(this,es))]}getFormattedDataForBlockCell(n){const[s,r,i]=Be(n,this.timezone);return[Number(i).toLocaleString(this.locale),`${s}-${`${r+1}`.padStart(2,"0")}-${`${i}`.padStart(2,"0")}`]}getFormattedDataForFrameBlock(n){const[s,r]=Be(n,this.timezone);return[new Date(n).toLocaleDateString(this.locale,{month:"long",year:"numeric",timeZone:this.timezone}),`${s}-${`${r+1}`.padStart(2,"0")}`]}getFrameBlockAtIndex(n){const[s,r,i]=Ki(this.origin,h(this,ss),n),o=n>0?this.getFrameBlockAtIndex(n-1).inner.to+1:h(this,ns),a=o+s-1,l=Math.floor(o/7)*7,u=this.dynamicBlockHeight?Math.ceil((a+1)/7)*7:l+Dc,m=this.dynamicBlockHeight?u-l:Dc,d=new Proxy(J(),Li({get:(_,f,I)=>{if(Gt(f)){const g=+f;if(Os(g)&&g>=0&&g<m){const S=l+g,p=this.getTimestampAtIndex(S),D=S%h(this,on);let E=p===this.currentDayTimestamp?gt.CURRENT:0;return S===this.cursor&&(E|=gt.CURSOR),h(this,qn).includes(D)&&(E|=gt.WEEKEND),D===0?E|=gt.LINE_START:D===h(this,on)-1&&(E|=gt.LINE_END),S>=o&&S<=a&&(S===o?E|=gt.BLOCK_START:S===a&&(E|=gt.BLOCK_END),E|=gt.WITHIN_BLOCK),p>=this.fromTimestamp&&p<=this.toTimestamp&&(p===this.fromTimestamp&&(E|=gt.RANGE_START),p===this.toTimestamp&&(E|=gt.RANGE_END),E|=gt.WITHIN_RANGE),p>=h(this,rs)&&p<=h(this,is)&&(p===h(this,rs)&&(E|=gt.SELECTION_START),p===h(this,is)&&(E|=gt.SELECTION_END),E|=gt.WITHIN_SELECTION),[p,E]}}return Reflect.get(_,f,I)}}));return _s(d,{inner:{value:J({from:{value:o},to:{value:a},units:{value:s}})},month:{value:r},outer:{value:J({from:{value:l},to:{value:u-1},units:{value:m}})},year:{value:i}})}getUnitsForFrameBlockAtIndex(n){return Ki(this.origin,h(this,ss),n)[0]}getUnitsOffsetForTimestamp(n,s){return Math.round((s-n)/Jr)}reoriginate(){this.originTimestamp=Cu(this.originTimestamp,this.timezone);const[n,s]=Be(this.originTimestamp,this.timezone),r=Du(this.originTimestamp,this.timezone,this.firstWeekDay);this.origin=s,A(this,ss,n),A(this,ns,this.getUnitsOffsetForTimestamp(r,this.originTimestamp)),A(this,er,w(this,sr,Co).call(this,this.originTimestamp,-h(this,ns)))}reslice(){w(this,os,Pr).call(this),A(this,ts,w(this,$e,On).call(this,super.fromTimestamp)),A(this,es,w(this,$e,On).call(this,super.toTimestamp)),A(this,tr,To(super.fromTimestamp,super.toTimestamp,this.timezone)+1)}shiftOrigin(n){const[s,r]=Be(this.originTimestamp,this.timezone),[,i,o]=Ki(r,s,n),a=Re(this.timezone),l=new Date(De(a,this.originTimestamp)).setFullYear(o,i);this.originTimestamp=Ie(a,l),this.reoriginate()}clearSelection(){super.clearSelection(),w(this,os,Pr).call(this),this.refreshFrame(!0)}getTimestampAtIndex(n){return w(this,sr,Co).call(this,h(this,er),n)}updateSelection(n,s){super.updateSelection(n,s),w(this,os,Pr).call(this),this.refreshFrame(!0)}withCurrentDayTimestamp(){A(this,qs,w(this,$e,On).call(this,Date.now()))}}on=new WeakMap,an=new WeakMap,qn=new WeakMap,qs=new WeakMap,ts=new WeakMap,es=new WeakMap,tr=new WeakMap,ns=new WeakMap,er=new WeakMap,ss=new WeakMap,rs=new WeakMap,is=new WeakMap,nr=new WeakSet,Mo=function(n){const s=To(n,this.originTimestamp,this.timezone);return n<this.originTimestamp?0-s:s},sr=new WeakSet,Co=function(n,s=0){const r=Re(this.timezone),i=De(r,n),o=Ie(r,i+s*Jr);let[,,,a,l]=Be(o,this.timezone),u=0;return(a>0||l>0)&&(a=(a>12?24:0)-a,l=(a>1?1:-1)*l,u=a*36e5+l*6e4),o+u},$e=new WeakSet,On=function(n){return Z(n)||mn(n)?n:n-wn(n,this.timezone)},os=new WeakSet,Pr=function(){A(this,rs,w(this,$e,On).call(this,this.selectionStart)),A(this,is,w(this,$e,On).call(this,this.selectionEnd))};const Pc=Symbol("<<NO_EXCEPTION>>"),kc=t=>{const e=[];return J({bind:x(s=>function(...r){let i=Pc;try{return e.push(s),s.call(this,...r)}catch(o){throw i=o}finally{e.pop(),e.length===0&&i===Pc&&t()}}),effect:x(t)})};var Xc,Kc,ct,oe,L,ae,Xt,ce,Mt,cn,Yt,as,Me,Ce,Kt,fe,cs,rr,Ue,qt,ni,He,ls,ln,ir,si,ot,ri,ii,oi,ai,ci,li,ui,td,di,ed,hi,nd,mi,us,kr,un,Ls,or,Do,fi,sd,_i,rd,gi,id,Ii,od,ar,Oo,pi,ad,dn,Es,cr,bo,ds,Wr,lr,vo,ur,Ro,dr,wo,hr,xo;let XI=(ot=class{constructor(){T(this,un);T(this,or);T(this,fi);T(this,_i);T(this,gi);T(this,Ii);T(this,ar);T(this,pi);T(this,dn);T(this,cr);T(this,ds);T(this,lr);T(this,ur);T(this,dr);T(this,hr);j(this,"grid");j(this,"kill");T(this,ct,F);T(this,oe,!1);T(this,L,void 0);T(this,ae,void 0);T(this,Xt,void 0);T(this,ce,!1);T(this,Mt,xn);T(this,cn,!1);T(this,Yt,void 0);T(this,as,(Xc=h(this,Yt))==null?void 0:Xc.join(" "));T(this,Me,void 0);T(this,Ce,void 0);T(this,Kt,void 0);T(this,fe,void 0);T(this,cs,void 0);T(this,rr,Vr());T(this,Ue,[]);T(this,qt,void 0);T(this,ni,new Proxy(be(()=>{var e;return((e=h(this,qt))==null?void 0:e.length)??0},w(this,ar,Oo).bind(this)),Li({get:(e,n,s)=>{var i,o;const r=((i=h(this,qt))==null?void 0:i.indexOf(n))??-1;return r>=0?(o=w(this,ar,Oo).call(this,r))==null?void 0:o[1]:Reflect.get(e,n,s)}})));T(this,He,Ir({blocks:()=>{var e;return(e=h(this,L))==null?void 0:e.size},cells:()=>{var e;return(e=h(this,L))==null?void 0:e.units},controls:()=>ys(Oc,h(this,ct).controls),cursor:()=>{var e;return(e=h(this,L))==null?void 0:e.cursor},from:()=>{var e;return(e=h(this,L))==null?void 0:e.selectionStart},highlight:()=>h(this,Mt),locale:()=>{var e;return(e=h(this,L))==null?void 0:e.locale},minified:()=>En(h(this,ct).minified),origin:()=>{var e;return(e=h(this,L))==null?void 0:e.getTimestampAtIndex(0)},timezone:()=>{var e;return(e=h(this,L))==null?void 0:e.timezone},to:()=>{var e;return(e=h(this,L))==null?void 0:e.selectionEnd},today:()=>h(this,rr).timestamp}));T(this,ls,(Kc=h(this,He))==null?void 0:Kc.snapshot);T(this,ln,kc(()=>{var e;return h(this,Kt)&&((e=h(this,He))==null?void 0:e.requestNotification())}));T(this,ir,kc(()=>{var e;return(e=h(this,Kt))==null?void 0:e.call(h(this,un,Ls))}));T(this,si,_s(be(()=>{var e;return((e=h(this,L))==null?void 0:e.size)??0},e=>{var n;return(n=h(this,L))==null?void 0:n.frameBlocks[e]}),{config:{value:Object.defineProperties(e=>(e&&w(this,_i,rd).call(this,e),h(this,un,Ls)),{cursorIndex:{get:()=>h(this,Me),set:e=>{h(this,oe)||(ht(e)?A(this,Me,void 0):X(e)&&A(this,Me,e))}},shiftFactor:{get:()=>h(this,Ce),set:e=>{h(this,oe)||(ht(e)?A(this,Ce,void 0):X(e)&&A(this,Ce,e))}},watch:{get:()=>h(this,Kt),set:e=>{var n,s,r,i,o;if(!h(this,oe))if(X(e)){if(A(this,Kt,e),!h(this,fe)){const a=(n=h(this,ln))==null?void 0:n.bind(h(ot,mi).bind(this));a&&(A(this,fe,(s=h(this,ln))==null?void 0:s.bind(st)),A(this,cs,(i=h(this,He))==null?void 0:i.subscribe((r=h(this,ir))==null?void 0:r.bind(a))),h(this,L)&&(h(this,L).effect=h(this,fe)))}if(!h(this,cn))return;A(this,cn,!1),(o=h(this,fe))==null||o.call(this)}else ht(e)&&A(this,Kt,void 0)}}})},controls:{value:h(this,ni)},cursor:{value:Object.defineProperties(e=>w(ot,us,kr).call(this,n=>!!(n&&w(this,gi,id).call(this,n)))(e),{valueOf:{value:()=>{var e;return((e=h(this,L))==null?void 0:e.cursor)??-1}}})},highlight:{value:(()=>{const e=()=>h(this,ae)===h(this,Xt)&&Z(h(this,Xt)),n=s=>r=>w(ot,us,kr).call(this,i=>{var o,a,l,u,m;if(!(h(this,oe)||!h(this,Mt)||h(this,Mt)===xn)){if(ht(i))return w(this,cr,bo).call(this);e()?(a=h(this,L))==null||a.updateSelection(i,Zu):((o=h(this,L))==null||o.updateSelection(i,s),h(this,Mt)===Ke&&h(this,Yt)&&w(this,ds,Wr).call(this,i,s===Rt?Qt:Rt,h(this,Yt))),A(this,ae,(l=h(this,L))==null?void 0:l.selectionStart),A(this,Xt,(u=h(this,L))==null?void 0:u.selectionEnd),(m=h(this,L))==null||m.shiftFrameToTimestamp(s===Rt?h(this,ae):h(this,Xt))}})(r);return J({blank:{get:e},from:{get:()=>{var s;return((s=h(this,L))==null?void 0:s.selectionStart)??h(this,ae)},set:n(Rt)},to:{get:()=>{var s;return((s=h(this,L))==null?void 0:s.selectionEnd)??h(this,Xt)},set:n(Qt)}})})()},rowspan:{get:()=>{var e;return((e=h(this,L))==null?void 0:e.rowspan)??0}},weekdays:{get:()=>{var e;return((e=h(this,L))==null?void 0:e.daysOfWeek)??h(ot,oi)}}}));this.grid=h(this,si),this.kill=w(this,Ii,od).bind(this)}},ct=new WeakMap,oe=new WeakMap,L=new WeakMap,ae=new WeakMap,Xt=new WeakMap,ce=new WeakMap,Mt=new WeakMap,cn=new WeakMap,Yt=new WeakMap,as=new WeakMap,Me=new WeakMap,Ce=new WeakMap,Kt=new WeakMap,fe=new WeakMap,cs=new WeakMap,rr=new WeakMap,Ue=new WeakMap,qt=new WeakMap,ni=new WeakMap,He=new WeakMap,ls=new WeakMap,ln=new WeakMap,ir=new WeakMap,si=new WeakMap,ri=new WeakMap,ii=new WeakMap,oi=new WeakMap,ai=new WeakMap,ci=new WeakMap,li=new WeakMap,ui=new WeakSet,td=function(e){if(!Gt(e)||!h(ot,ri).test(e))return;const n=e.split(/\s+/);return Array.from({length:6},(s,r)=>parseInt(n[r]??"0"))},di=new WeakSet,ed=function(e){switch(e&~Cn.PREV){case Cn.FRAME:return xr;case Cn.PERIOD:return jr;case Cn.BLOCK:default:return Ju}},hi=new WeakSet,nd=function(e){return e&Cn.PREV?-1:1},mi=new WeakMap,us=new WeakSet,kr=function(e){var n;return((n=h(this,ln))==null?void 0:n.bind(e))??e},un=new WeakSet,Ls=function(){return{...h(this,ct)}},or=new WeakSet,Do=function(){return new QI},fi=new WeakSet,sd=function(e){return!!h(this,L)&&!(e>0?h(this,L).isAtEnd:h(this,L).isAtStart)},_i=new WeakSet,rd=function(e){var r,i;if(h(this,oe))return;A(this,Yt,void 0);const n=e==null?void 0:e.highlight,s=En(h(this,ct).minified);if(Gt(n)?A(this,Yt,w(r=ot,ui,td).call(r,n))&&A(this,Mt,Ke):A(this,Mt,ys($I,n,h(this,Mt))),A(this,ct,{...h(this,ct),...e,blocks:ys(Bn,e==null?void 0:e.blocks,h(this,ct).blocks),controls:ys(Oc,e==null?void 0:e.controls,h(this,ct).controls),firstWeekDay:ys(Pu,e==null?void 0:e.firstWeekDay,h(this,ct).firstWeekDay),fixedBlockHeight:En(e==null?void 0:e.fixedBlockHeight,h(this,ct).fixedBlockHeight),highlight:h(this,Mt),minified:En(e==null?void 0:e.minified,h(this,ct).minified),trackCurrentDay:En(e==null?void 0:e.trackCurrentDay,h(this,ct).trackCurrentDay)}),!X(h(this,Kt))){h(this,L)?A(this,cn,!0):(A(this,L,h(this,or,Do)),w(this,ur,Ro).call(this),w(this,hr,xo).call(this),w(this,dr,wo).call(this));return}(!h(this,L)||s!==h(this,ct).minified)&&(A(this,L,h(this,or,Do)),h(this,L).effect=h(this,fe)),w(this,ur,Ro).call(this),(i=h(this,fe))==null||i.call(this)},gi=new WeakSet,id=function(e){if(e&&h(this,L)&&X(h(this,Kt))){if(e instanceof KeyboardEvent){switch(e.code){case H.ARROW_LEFT:h(this,L).shiftFrameCursor(ku);break;case H.ARROW_RIGHT:h(this,L).shiftFrameCursor(Fu);break;case H.ARROW_UP:h(this,L).shiftFrameCursor(Gu);break;case H.ARROW_DOWN:h(this,L).shiftFrameCursor(zu);break;case H.HOME:h(this,L).shiftFrameCursor(e.ctrlKey?Bu:Uu);break;case H.END:h(this,L).shiftFrameCursor(e.ctrlKey?Wu:$u);break;case H.PAGE_UP:e.shiftKey?h(this,L).shiftFrameByOffset(-1,jr):h(this,L).shiftFrameCursor(Yu);break;case H.PAGE_DOWN:e.shiftKey?h(this,L).shiftFrameByOffset(1,jr):h(this,L).shiftFrameCursor(Hu);break;case H.SPACE:case H.ENTER:return w(this,dn,Es).call(this),!0;default:return}return h(this,ce)&&w(this,dn,Es).call(this,F),!0}if(e instanceof MouseEvent&&h(ot,ii).includes(e.type)&&X(h(this,Me))){const n=h(this,Me).call(h(this,un,Ls),e);if(!Os(n))return;const s=e.type==="click";if(!(s||h(this,ce)))return;if(h(this,L).shiftFrameCursor(n),h(this,L).cursor===n)return s?w(this,dn,Es).call(this):w(this,dn,Es).call(this,F),!0}}},Ii=new WeakSet,od=function(){var e;h(this,oe)||((e=h(this,cs))==null||e.call(this),A(this,ln,A(this,ir,A(this,Me,A(this,L,A(this,Mt,A(this,as,A(this,ls,A(this,Yt,A(this,Ce,A(this,cs,A(this,He,A(this,fe,A(this,Kt,void 0))))))))))))),A(this,ct,F),A(this,ce,A(this,cn,!1)),A(this,oe,!0))},ar=new WeakSet,Oo=function(e){var s,r;if(!h(this,qt)||e<0||e>=h(this,qt).length)return;const n=h(this,qt)[e];if(!h(this,Ue)[e]){const i=No[n],o=w(s=ot,di,ed).call(s,i),a=w(r=ot,hi,nd).call(r,i);h(this,Ue)[e]=(...l)=>w(ot,us,kr).call(this,(...u)=>{var _;const m=w(this,fi,sd).call(this,a);if(!(m&&u.length))return m;const d=w(this,pi,ad).call(this,n,u[0]);return Z(d)?!1:((_=h(this,L))==null||_.shiftFrameByOffset(a*d,o),!0)})(...l)}return[n,h(this,Ue)[e]]},pi=new WeakSet,ad=function(e,n){if(!(h(this,L)&&X(h(this,Kt))))return;if(n instanceof MouseEvent){if(n.type!=="click")return}else if(n instanceof KeyboardEvent){if(!h(ot,ai).includes(n.code))return}else return;let s=1;if(X(h(this,Ce))){const r=Number(h(this,Ce).call(h(this,un,Ls),n,e));s=Number.isInteger(r)&&r>=1?r:s}return s},dn=new WeakSet,Es=function(e){if(h(this,oe)||!h(this,L))return;switch(h(this,Mt)){case Ke:case jn:break;case xn:default:return}const n=h(this,L).cursor,s=Math.max(h(this,L).getTimestampAtIndex(n),h(this,L).timeslice.from),r=Math.min(h(this,L).getTimestampAtIndex(n+1)-1,h(this,L).timeslice.to),i=h(this,Yt);if(h(this,Mt)===jn||h(this,L).blankSelection||i)if(A(this,ce,!(h(this,Mt)===jn||i)),h(this,Mt)===Ke&&i){const o=r>=h(this,L).selectionEnd?Rt:Qt;o===Rt?h(this,L).updateSelection(r,Qt):h(this,L).updateSelection(s,Rt),w(this,ds,Wr).call(this,o===Rt?h(this,L).selectionEnd:h(this,L).selectionStart,o,i)}else h(this,L).updateSelection(s,Rt),h(this,L).updateSelection(r,Qt);else{const o=e===F,a=Re(h(this,L).timezone);if(o||A(this,ce,!1),s<=h(this,L).selectionStart){const l=new Date(De(a,h(this,L).selectionStart)),u=Math.min(Ie(a,l.setDate(l.getDate()+1)-1),h(this,L).timeslice.to);s===h(this,L).selectionStart&&r<=u&&h(this,L).updateSelection(r,Qt),h(this,L).updateSelection(s,Rt)}else{const l=new Date(De(a,h(this,L).selectionEnd)),u=Math.max(Ie(a,l.setHours(0,0,0,0)),h(this,L).timeslice.from);s<=h(this,L).selectionEnd&&s>=u&&h(this,L).updateSelection(s,Rt),h(this,L).updateSelection(r,Qt)}if(o)return}A(this,ae,h(this,L).selectionStart),A(this,Xt,h(this,L).selectionEnd)},cr=new WeakSet,bo=function(){var e;(e=h(this,L))==null||e.clearSelection(),A(this,ce,!1),A(this,ae,A(this,Xt,void 0))},ds=new WeakSet,Wr=function(e,n,s){var f;if(!h(this,L))return;const r=Re((f=h(this,L))==null?void 0:f.timezone),i=new Date(De(r,e)),o=n===Rt?-1:1,[a=0,l=0,u=0,m=0,d=0,_=0]=s??[];i.setFullYear(i.getFullYear()+a*o,i.getMonth()+l*o,i.getDate()+u*o),i.setHours(i.getHours()+m*o,i.getMinutes()+d*o,i.getSeconds()+_*o),h(this,L).updateSelection(Ie(r,i.getTime()-o),n)},lr=new WeakSet,vo=function(){var e,n;h(this,ae)&&((e=h(this,L))==null||e.updateSelection(h(this,ae),Rt)),h(this,Xt)&&((n=h(this,L))==null||n.updateSelection(h(this,Xt),Qt)),A(this,ce,!1)},ur=new WeakSet,Ro=function(){h(this,L)&&(h(this,L).timeslice=h(this,ct).timeslice,h(this,L).dynamicBlockHeight=!h(this,ct).fixedBlockHeight,h(this,L).firstWeekDay=h(this,ct).firstWeekDay,h(this,L).locale=h(this,ct).locale,h(this,L).size=h(this,ct).blocks,h(this,L).timezone=h(this,ct).timezone,h(this,L).trackCurrentDay=h(this,ct).trackCurrentDay,A(this,rr,Vr(h(this,L).timezone)),w(this,lr,vo).call(this))},dr=new WeakSet,wo=function(){var e,n,s,r,i,o;switch(h(this,Mt)){case Ke:!Ye((e=h(this,L))==null?void 0:e.blankSelection)&&h(this,Yt)&&w(this,ds,Wr).call(this,(n=h(this,L))==null?void 0:n.selectionStart,Qt,h(this,Yt));break;case jn:if(!Ye((s=h(this,L))==null?void 0:s.blankSelection)){const a=Re((r=h(this,L))==null?void 0:r.timezone),l=new Date(De(a,(i=h(this,L))==null?void 0:i.selectionStart));(o=h(this,L))==null||o.updateSelection(Ie(a,l.setHours(23,59,59,999)),Qt)}break;case xn:default:w(this,cr,bo).call(this);return}},hr=new WeakSet,xo=function(){var e,n;switch((e=h(this,He))==null?void 0:e.snapshot.controls){case Ea:A(this,qt,h(ot,ci));break;case Ma:A(this,qt,h(ot,li));break;case Ca:default:A(this,qt,void 0)}h(this,Ue).length=0,h(this,Ue).length=((n=h(this,qt))==null?void 0:n.length)??0},T(ot,ui),T(ot,di),T(ot,hi),T(ot,us),T(ot,ri,/^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/),T(ot,ii,["click","mouseover","pointerover"]),T(ot,oi,be(0,st)),T(ot,ai,[H.ENTER,H.SPACE]),T(ot,ci,Object.keys(No).filter(e=>isNaN(+e))),T(ot,li,["PREV","NEXT"]),T(ot,mi,function(e){var o,a;if(gs(e))return;let n=!1,s=!1,r=!1;const i=(o=h(this,Yt))==null?void 0:o.join(" ");for(const l of Object.keys(e))e[l]!==((a=h(this,ls))==null?void 0:a[l])&&(l==="controls"?n=!0:l==="highlight"?s=!0:(l==="from"||l==="to")&&(r=!0));h(this,as)!==i&&(A(this,as,i),s=!0),A(this,ls,e),h(this,ce)&&!r&&w(this,lr,vo).call(this),n&&w(this,hr,xo).call(this),s&&w(this,dr,wo).call(this)}),ot);const KI=(()=>Object.defineProperties(e=>{const{grid:n,kill:s}=new XI;return mr(e)?n.config({blocks:e}):X(e)?Ti.then(()=>{n.config.watch=e}):n.config(e),J({grid:x(n),kill:x(s)})},{controls:{value:J({ALL:{value:Ea},MINIMAL:{value:Ma},NONE:{value:Ca}})},highlight:{value:J({ONE:{value:jn},MANY:{value:Ke},NONE:{value:xn}})},slice:{value:Object.defineProperties(Vu.bind(null),{FROM:{value:Da},TO:{value:Oa},UNBOUNDED:{value:Ds},SINCE_NOW:{get:HI},UNTIL_NOW:{get:YI}})}}))(),he=KI,qI=({config:t,grid:{controls:e},renderer:n})=>t.controls===he.controls.NONE||!X(n)?null:c(q,{children:e.map(([s,r])=>n(s,r))}),t0=Et(qI),e0=t=>{const e=N((n,s)=>{s instanceof Element&&s.setAttribute("tabindex","-1"),n instanceof Element&&(n.setAttribute("tabindex","0"),Ti.then(()=>n==null?void 0:n.focus()))},[]);return je(N((n,s)=>{try{t==null||t(n,s)}finally{e(n,s)}},[t]))},n0=e0,s0=({blocks:t,controls:e,dynamicBlockRows:n,firstWeekDay:s,highlight:r,locale:i,onHighlight:o,originDate:a,renderControl:l,sinceDate:u,timezone:m,trackCurrentDay:d,untilDate:_,useYearView:f},I)=>{const{i18n:g}=V(),[S,p]=$(performance.now()),D=y(()=>he.slice(u,_),[u,_]),E=W(F),O=y(()=>e??(X(l)?he.controls.MINIMAL:he.controls.NONE),[e,l]),P=y(()=>r??(X(o)?he.highlight.ONE:he.highlight.NONE),[r,o]),{grid:M,kill:R}=y(()=>{const{grid:v,kill:Q}=he(function(){p(performance.now()),E.current=this,!(Y===v.highlight.from&&nt===v.highlight.to)&&(Y=v.highlight.from,nt=v.highlight.to,o==null||o(Y,nt))});let{from:Y,to:nt}=v.highlight;return v.config.cursorIndex=tt=>{let it=tt.target;for(;it&&it!==tt.currentTarget;){const vt=Number(it.dataset.cursorPosition);if(Number.isFinite(vt))return vt;it=it.parentNode}},v.config.shiftFactor=function(tt){if(this.controls===he.controls.MINIMAL)return tt!=null&&tt.shiftKey?12:tt!=null&&tt.altKey?this.blocks:1},{grid:v,kill:Q}},[]),C=y(()=>{const v=Q=>{M.cursor(Q)};return{onClickCapture:v,onMouseOverCapture:v,onPointerOverCapture:v,onKeyDownCapture:Q=>{M.cursor(Q)&&Q.preventDefault()}}},[M]),k=n0(N((v,Q)=>{Q instanceof Element&&Q.removeAttribute("aria-selected"),v instanceof Element&&v.setAttribute("aria-selected","true")},[]));return _m(I,()=>{const{from:v,to:Q}=(M==null?void 0:M.highlight)||F;return{clear:()=>{M!=null&&M.highlight&&(M.highlight.from=void 0)},get config(){return{...E.current??F}},get from(){return Mc(v)},set from(Y){M!=null&&M.highlight&&Y&&(M.highlight.from=Y.getTime())},get to(){return Mc(Q)},set to(Y){M!=null&&M.highlight&&Y&&(M.highlight.to=Y.getTime())}}},[M,S]),B(()=>{M.config({blocks:t,controls:O,firstWeekDay:s,fixedBlockHeight:!n,highlight:P,locale:i??g.locale,minified:f,timeslice:D,timezone:m,trackCurrentDay:d})},[O,P,t,n,s,M,g,i,D,m,d,f]),B(()=>{const v=[].concat(a).slice(0,2).map(Number).filter(Boolean);return v[0]&&(M.highlight.from=+v[0]),v[1]&&(M.highlight.to=+v[1]),R},[]),{cursorElementRef:k,cursorRootProps:C,grid:M}},r0=s0,i0=Is((t,e)=>{const n=r0(t,e),s=n.grid.config();return c("div",{role:"none",children:[c(t0,{config:s,grid:n.grid,renderer:t.renderControl}),c(BI,{ref:n.cursorElementRef,config:s,cursorRootProps:n.cursorRootProps,grid:n.grid,onlyCellsWithin:t.onlyCellsWithin,prepare:t.prepare})]})}),o0=Et(i0),a0=(t,e)=>{const[n,s]=$(),r=je(y(()=>{const i=o=>(...a)=>{const l=t(o,...a);return l&&Xl(l,o)};return s(void 0),o=>s(o instanceof Element?()=>i(o):void 0)},[t,e]),e);return[n,r]},c0=a0,l0=t=>{const{i18n:e}=V();return c0(N((n,s,r)=>{if(!(n instanceof HTMLElement))return null;if(X(t))return t(s,r);let i,o,a;switch(s){case"PREV":i="prev",o="previous",a=ua;break;case"NEXT":i=o="next",a=vi;break;default:return null}const l=r();return l?c(Pt,{"aria-label":e.get(`calendar.${o}Month`),variant:Nt.TERTIARY,disabled:!l,classNameModifiers:["circle",i],iconButton:!0,onClick:r,children:c(a,{role:"presentation"})},s):null},[e,t]))},u0=l0;const d0=Is((t,e)=>{const{i18n:n}=V(),[s,r]=u0(t.renderControl),[i,o]=$(performance.now()),a=y(()=>Ye(t.showTimezoneInfo),[t.showTimezoneInfo]),{clockTime:l,GMTOffset:u}=Qg({timezone:t.timezone,withClock:a}),m=y(()=>z([{"adyen-pe-datepicker--with-timezone":a},"adyen-pe-datepicker"]),[a]),d=y(()=>a?{values:{offset:u,time:l}}:F,[u,l,a]),_=je(st,e),f=N(()=>{var I,g,S,p,D;o(performance.now()),(I=_.current)!=null&&I.from&&((g=_.current)!=null&&g.to)&&((D=t.onHighlight)==null||D.call(t,+((S=_.current)==null?void 0:S.from),+((p=_.current)==null?void 0:p.to)))},[o,t.onHighlight]);return c("div",{className:m,children:[c("div",{className:"adyen-pe-datepicker__selector-container",children:c(vI,{now:t.now,calendarRef:_,onTimeRangeSelected:t.onPresetOptionSelected,options:t.timeRangePresetOptions,selectedOption:t.selectedPresetOption,timestamp:i,timezone:t.timezone})}),c("div",{ref:r,role:"group",className:"adyen-pe-datepicker__controls","aria-label":n.get("calendar.controls")}),c(o0,{...t,ref:_,firstWeekDay:Na,dynamicBlockRows:!0,onlyCellsWithin:!0,controls:t.controls??he.controls.MINIMAL,highlight:t.highlight??he.highlight.MANY,onHighlight:f,renderControl:s,trackCurrentDay:!0}),a&&c("div",{className:"adyen-pe-datepicker__timezone",children:n.get("calendar.timezone",d)})]})}),h0=d0;const m0="adyen-pe-filter-button";function f0({className:t,classNameModifiers:e=[],children:n,disabled:s,onClick:r,...i},o){const a=y(()=>kn("",t)||"",[t]),l=y(()=>Xo(s),[s]),{classes:u,click:m}=Ko(a,e,m0,l,r);return c("button",{className:u,ref:o,onClick:m,...i,children:c(U,{el:pe.DIV,variant:b.BODY,stronger:!0,children:n})})}const _0=Zt(f0);function cd({onInput:t,onKeyUp:e,trimOnBlur:n,onBlurHandler:s,onBlur:r,onFocusHandler:i,errorMessage:o,...a},l){const{autoCorrect:u,classNameModifiers:m,isInvalid:d,isValid:_,readonly:f=!1,spellCheck:I,type:g,uniqueId:S,isCollatingErrors:p,disabled:D}=a;le(a,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const E=N(tt=>{t==null||t(tt)},[t]),O=N(tt=>{e&&e(tt)},[e]),P=N(tt=>{s==null||s(tt),n&&(tt.target.value=tt.target.value.trim()),r==null||r(tt)},[r,s,n]),M=N(tt=>{i==null||i(tt)},[i]),R=z("adyen-pe-input",[`adyen-pe-input--${g}`],a.className,{"adyen-pe-input--invalid":d,"adyen-pe-input--valid":_},m==null?void 0:m.map(tt=>`adyen-pe-input--${tt}`)),{classNameModifiers:C,uniqueId:k,isInvalid:v,isValid:Q,isCollatingErrors:Y,...nt}=a;return c(q,{children:[c("input",{id:S,...nt,type:g,className:R,readOnly:f,"aria-describedby":p?void 0:`${S}${Ao}`,"aria-invalid":d,onInput:E,onBlur:P,onFocus:M,onKeyUp:O,disabled:D,ref:l}),d&&o&&c("span",{className:"adyen-pe-input__invalid-value",id:`${S}${Ao}`,children:o})]})}cd.defaultProps={type:"text",classNameModifiers:[],onInput:()=>{}};const jo=Is(cd),g0=Is(function(e,n){return c(jo,{classNameModifiers:e.classNameModifiers,...e,ref:n,"aria-required":e.required,type:"text"})}),I0=t=>!t||qd(t),p0=(()=>{const t=e=>{const{editAction:n,name:s,onChange:r,onValueUpdated:i}=e,[o,a]=$(e.value),l=N(u=>{const m=u.target.value.trim();a(m),i(m)},[i]);return B(()=>{if(n===Ct.CLEAR){const u="";a(u),i(u),r(u)}n===Ct.APPLY&&r(o??"")},[o,n,r,i]),c(g0,{name:s,value:o,onInput:l})};return e=>c(t,{...e})})(),y0=({render:t,...e})=>{var Q;const n=ft(mt.down.xs),[s,r]=_e(!1),[i,o]=_e(!1),a=y(()=>e.isValueEmpty??I0,[e.isValueEmpty]),[l,u]=_e(a(e.value)),[m,d]=_e(!1),[_,f]=_e(!1),[I,g]=_e(a(e.value)),S=Zr(),p=y(()=>t??p0,[t]),D=N(Y=>{const nt=a(Y??void 0);u(nt),g(Fr(Y)),f(m?Y!==e.value:!nt)},[a,u,g,f,m,e.value]),{commitAction:E,commitActionButtons:O,committing:P,resetCommitAction:M}=pu({applyDisabled:I||!_,resetDisabled:l}),[R,C]=y(()=>{const Y=nt=>()=>{nt!==s&&(nt&&(M(),f(!1),d(!1)),r(nt),o(nt))};return[Y(!1),Y(!0)]},[r,s,M,o,d,f]);B(()=>{if(i){const Y=a(e.value);o(!1),u(Y),d(!Y)}},[e.value,i,a,o,u,d]),B(()=>{P&&R(),u(l)},[P,R,u,l]);const k=ft(mt.only.sm),v=ft(mt.only.md);return c(q,{children:[c("div",{className:`adyen-pe-filter adyen-pe-filter--${e.type}`,children:y(()=>c(_0,{classNameModifiers:[...e.appliedFilterAmount?["with-counter"]:[],...e.classNameModifiers??[],...s?["active"]:[],...l?[]:["has-selection"]],onClick:s?R:C,tabIndex:0,ref:S,children:c("div",{className:"adyen-pe-filter-button__default-container",children:[c(U,{el:pe.SPAN,variant:b.BODY,stronger:!0,className:"adyen-pe-filter-button__label",children:e.label}),!!e.appliedFilterAmount&&c("div",{className:"adyen-pe-filter-button__counter-wrapper",children:c(U,{el:pe.SPAN,variant:b.BODY,stronger:!0,className:"adyen-pe-filter-button__counter",children:e.appliedFilterAmount})})]})}),[e.appliedFilterAmount,e.classNameModifiers,e.label,s,l,R,C,S])}),s&&c(ia,{actions:O,title:(Q=e.title)==null?void 0:Q.trim(),variant:bt.POPOVER,modifiers:["filter"],open:s,"aria-label":`${e.label}`,dismiss:R,dismissible:!1,withContentPadding:e.withContentPadding??!0,divider:!0,targetElement:S,disableFocusTrap:!1,position:at.BOTTOM,containerSize:e.containerSize,showOverlay:n,fitPosition:k||v,children:p({...e,editAction:E,onValueUpdated:D})})]})},ld=Et(y0);var Ps=(t=>(t.FROM="from",t.TO="to",t))(Ps||{});const S0={month:"short",day:"numeric",year:"numeric"},ud=(t,e,n,s)=>{const r=n&&e(n),i=s&&e(s);if(r&&i)return`${r} - ${i}`;if(r)return t.get("filter.date.since",{values:{date:r}});if(i)return t.get("filter.date.until",{values:{date:i}})},ge=t=>{try{return new Date(t||"").toISOString()}catch{return""}},A0=(()=>{const t=({editAction:e,from:n,to:s,now:r,onChange:i,onValueUpdated:o,showTimezoneInfo:a,selectedPresetOption:l,timeRangePresetOptions:u,timezone:m,sinceDate:d,untilDate:_})=>{const{i18n:f}=V(),{fullDateFormat:I}=Sn(m),[g,S]=$(l),p=y(()=>[new Date(n),new Date(s)],[n,s]),D=W(),E=N((O,P)=>{o(ud(f,I,ge(O),ge(P)))},[f,I,o]);return B(()=>{var O,P,M;switch(e){case Ct.APPLY:i({selectedPresetOption:g,[Ps.FROM]:ge((O=D.current)==null?void 0:O.from),[Ps.TO]:ge((P=D.current)==null?void 0:P.to)});break;case Ct.CLEAR:(M=D.current)==null||M.clear(),i()}},[e,i,g]),c(h0,{ref:D,now:r,originDate:p,onHighlight:E,onPresetOptionSelected:S,selectedPresetOption:l,timeRangePresetOptions:u,timezone:m,showTimezoneInfo:a,sinceDate:ge(d),untilDate:ge(_)})};return e=>c(t,{...e})})(),T0=(t,e,n)=>t.formatRange(e,n);function N0({title:t,from:e,to:n,selectedPresetOption:s,...r}){const{i18n:i}=V(),{fullDateFormat:o}=Sn(r.timezone),[a,l]=$(),[u,m]=$(),[d,_]=$(),f=N(p=>{const{from:D,to:E,selectedPresetOption:O}=p??F;try{l(a??O),m(ge(u??D)),_(ge(d??E))}finally{r.onChange({from:D,to:E,selectedPresetOption:O})}},[a,u,d,r]),I=y(()=>i.get("rangePreset.custom"),[i]),g=y(()=>{const p={...S0,timeZone:r.timezone};let D=new Intl.DateTimeFormat(Mi,p);try{D=new Intl.DateTimeFormat(i.locale,p)}catch{}return D},[i,r.timezone]);B(()=>l(s),[s]),B(()=>m(ge(e||Date.now())),[e]),B(()=>_(ge(n||Date.now())),[n]);const S=y(()=>s===I&&u&&d?T0(g,new Date(u),new Date(d)):s??r.label,[I,g,u,d,s,r.label]);return c(ld,{...r,from:e,to:n,type:"date",label:S,onChange:f,render:A0,selectedPresetOption:s,value:ud(i,o,e,n),withContentPadding:!1})}const L0=({timezone:t,canResetFilters:e,defaultParams:n,filters:s,nowTimestamp:r,refreshNowTimestamp:i,sinceDate:o,untilDate:a,updateFilters:l})=>{const{i18n:u}=V(),m=y(()=>u.get(n.current.defaultTimeRange),[u]),[d,_]=$(m),f=N((I=F)=>{for(const[g,S]of Object.entries(I)){switch(g){case"selectedPresetOption":_(S||m);break;case Ps.FROM:l({[G.CREATED_SINCE]:S||n.current.defaultFilterParams[G.CREATED_SINCE]});break;case Ps.TO:l({[G.CREATED_UNTIL]:S||n.current.defaultFilterParams[G.CREATED_UNTIL]});break;default:return}i()}},[m,i,l]);return y(()=>!e&&_(m),[e,m]),c(N0,{label:u.get("dateRange"),name:G.CREATED_SINCE,sinceDate:o,untilDate:a??new Date(r).toString(),from:s[G.CREATED_SINCE],to:s[G.CREATED_UNTIL],selectedPresetOption:d,timeRangePresetOptions:n.current.timeRangeOptions,timezone:t,onChange:f,showTimezoneInfo:!0,now:r})},ba=L0,E0=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{d:"M1.25 1.25H14.75V4.05C14.75 4.65117 14.5094 5.22128 14.0903 5.64033L10.08 9.65066V11.6212L7.34093 14.76H5.92V9.65066L1.90967 5.64033C1.49062 5.22128 1.25 4.65117 1.25 4.05V1.25ZM2.75 2.75V4.05C2.75 4.24883 2.82938 4.43872 2.97033 4.57967L7.42 9.02934V12.388L8.58 11.0588V9.02934L13.0297 4.57967C13.1706 4.43872 13.25 4.24883 13.25 4.05V2.75H2.75Z",fill:"#00112C"})}),M0=E0;const Wc="adyen-pe-filter-bar-mobile-switch",va=()=>{const t=ft(mt.down.xs),[e,n]=$(!t);return B(()=>{n(!t)},[t]),{isMobileViewport:t,showingFilters:e,setShowingFilters:n}},Ra=({isMobileViewport:t,showingFilters:e,setShowingFilters:n})=>t?c("div",{className:Wc,children:c(Pt,{iconButton:!0,className:`${Wc}__button`,disabled:!X(n),onClick:()=>n==null?void 0:n(!e),variant:Nt.SECONDARY,children:e?c(la,{}):c(M0,{})})}):null,C0=t=>{const{i18n:e}=V();return t.showingFilters?c("div",{"aria-label":e.get("filterBar"),className:z("adyen-pe-filter-bar",{"adyen-pe-filter-bar__content--mobile":t.isMobileViewport}),children:[t.children,t.canResetFilters&&!!t.resetFilters&&c(Pt,{variant:Nt.TERTIARY,onClick:t.resetFilters,children:e.get("button.clearAll")})]}):null},wa=C0;function D0(t){return"callback"in t}function dd(t){const[e,n]=$(null),s=N(o=>{var a;return o&&D0(t[o.selection.type])?{callback:(a=t==null?void 0:t[o.selection.type])!=null&&a.callback?l=>{var u,m;return(m=(u=t[o.selection.type])==null?void 0:u.callback)==null?void 0:m.call(u,{showModal:()=>n(o),...l})}:()=>{var l;return((l=t[o.selection.type])==null?void 0:l.showDetails)&&n(o)}}:(n(o),{})},[t]),r=N(()=>n(null),[]),i=y(()=>{const o={};for(const a in t){const l=t[a];o[a]=!(l!=null&&l.showDetails)||!!l.callback}return o},[t]);return{selectedDetail:e,updateDetails:s,detailsToShow:i,resetDetails:r}}const xa=Object.freeze([10,20]),O0=100,ks=10,Po=t=>{const e=~~t;return e===t&&e>0?Math.min(e,O0):Math.max(e,0)},b0=(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,r=0,i=n;for(;;){const o=t[s=tl(r,i)];if(r>i||e===o)return o;e>o?r=s+1:i=s-1}},v0=({preferredLimit:t=ks,preferredLimitOptions:e})=>{const n=W(),s=W(),r=y(()=>{try{const o=new Set;for(const a of e){const l=Po(a);l>0&&o.add(l)}return Object.freeze([...o].sort((a,l)=>a-l))}catch{}},[e]);return{limit:y(()=>{let o=Po(t)||ks;t:try{if(n.current===r)break t;const a=new Set(n.current=r);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(mr(s.current)){o=s.current;break e}}else a.delete(s.current);o=b0(n.current,o)}}catch{}return s.current=o},[r,t]),limitOptions:r}},R0=v0,w0=t=>{const e=W(!1),n=y(()=>t,[t]);return B(()=>(e.current=!0,()=>{e.current=!1,n&&n()}),[n]),e},ja=w0,x0=(t,e,n)=>{const s=W(),r=W(),i=W(),o=W(),a=ja(N(()=>{var v;(v=s.current)==null||v.abort(),s.current=void 0},[])),[l,u]=$(o.current),[m,d]=_e(!1),_=y(()=>Po(n),[n]),{getPageCount:f,getPageParams:I,resetPageCount:g,updatePagination:S}=t,p=y(()=>e?v=>{var tt;if(!(_&&Number.isInteger(v)))return;const Q=f(),Y=v<0?v+Q+1:v;Y>0&&(Q?Y<=Q:Y===1)&&((tt=s.current)==null||tt.abort(),s.current=new AbortController,a.current&&(((o.current=Y)>1||Q)&&u(o.current),(async()=>{const{signal:it}=s.current,vt={...I(Y,_),limit:_,page:Y};try{const Dt=await e(vt,it);if(!Dt||!a.current)return;const{size:_t,...kt}=Dt;S(Y,_,kt),r.current=o.current&&Math.max(o.current,r.current||-1/0),o.current&&o.current===r.current&&(i.current=_t),o.current===1&&_t>0&&u(o.current),o.current=void 0,d(!0)}catch(Dt){if(it.aborted)return;console.error(Dt)}})()))}:st,[_,e]),D=N(()=>{l&&p(Math.min(l+1,f()))},[p,l]),E=N(()=>{l&&p(Math.max(l-1,1))},[p,l]),O=y(()=>f()||l||void 0,[p,m]),P=y(()=>!!(l&&O)&&l<O,[l,O]),M=y(()=>!!l&&l>1,[l]),R=y(()=>r.current?(r.current-1)*_+(i.current||0):0,[p,m]),C=y(()=>_&&Math.min(_,R||1/0)%_,[_,R]),k=N(()=>{g(),r.current=i.current=o.current=void 0,a.current&&u(o.current)},[g]);return B(()=>{a.current&&m&&d(!1)},[m]),{goto:p,hasNext:P,hasPrev:M,limit:_,next:D,page:l,pages:O,pageSize:C,prev:E,resetPagination:k,size:R}},hd=x0,j0=t=>Gt(t.next),P0=t=>Gt(t.prev),k0=(t,e)=>{const n=y(()=>{const s=[],r=()=>s.length,i=()=>{s.length=0},o=u=>({cursor:s[u-1]}),a=(u,m)=>{const d=s[m-1];(m===1||m===(s.length||1)+1)&&Z(d)&&(s[m-1]=u?decodeURIComponent(u):void 0)};return{getPageCount:r,getPageParams:o,resetPageCount:i,updatePagination:(u,m,d)=>{j0(d)&&a(d.next,u+1),P0(d)&&a(d.prev,u-1)}}},[]);return hd(n,t,e)},W0=k0,B0=t=>t.next,z0=(t,e)=>{const n=y(()=>{let s=0;return{getPageCount:()=>s,getPageParams:(l,u)=>({offset:(l-1)*u}),resetPageCount:()=>{s=0},updatePagination:(l,u,m)=>{B0(m)&&m.next&&(s=Math.max(s,l+1))}}},[]);return hd(n,t,e)},F0=z0,$0=(t=F,e=!0)=>{const n=W(e),s=W(Object.freeze({...t})),r=W(new Set(Object.keys(s.current))),i=W(new Set),o=ja(),[a,l]=y(()=>{const _=f=>{o.current&&m(f)};return[()=>_("reset"),f=>_(f)]},[o]),[u,m]=Oi((_,f)=>{if(f==="reset")return i.current.clear(),s.current;const I={...f},g=[0];Object.keys(I).forEach((p,D)=>{if(!r.current.has(p))return;const E=_[p]??void 0,O=s.current[p]??void 0,P=I[p]??O;if(P===E)return;const M=Math.floor(D/32),R=1<<D%32;I[p]=P,g[M]|=R,i.current[P===O?"delete":"add"](p)});const S=g.some(p=>p)?n.current&&i.current.size===0?s.current:Object.freeze({..._,...I}):_;return n.current||(s.current=S,n.current=!0),S},s.current),d=y(()=>!!i.current.size,[]);return B(()=>{s.current=Object.freeze({...t}),r.current=new Set(Object.keys(s.current)),n.current=e,a()},[e,t,a]),{canResetState:d,defaultState:s.current,resetState:a,state:u,updateState:l}},U0=$0,H0=(t=F,e)=>{const{canResetState:n,defaultState:s,resetState:r,state:i,updateState:o}=U0(t,e);return{canResetFilters:n,defaultFilters:s,filters:i,resetFilters:r,updateFilters:o}},Y0=H0;var ko=(t=>(t.NEXT="next",t.PREV="prev",t))(ko||{}),Pa=(t=>(t.CURSOR="cursor",t.OFFSET="offset",t))(Pa||{});const G0=["hasNext","hasPrevious"],md=t=>{const e=Object.getOwnPropertyNames(t);return!G0.some(n=>e.includes(n))},Z0=(t,e="data")=>{const n=t[e];if(md(t)){const s=Object.fromEntries(Object.entries(t._links).map(([r,i])=>[r,i.cursor]));return{records:n,paginationData:s}}throw new TypeError("MALFORMED_PAGINATED_DATA")},J0=(t,e="data")=>{const n=t[e];if(!md(t)){const{hasNext:s,hasPrevious:r}=t,i={[ko.NEXT]:jt(s),[ko.PREV]:jt(r)};return{records:n,paginationData:i}}throw new TypeError("MALFORMED_PAGINATED_DATA")},V0=({dataField:t="data",fetchRecords:e,filterParams:n=F,initialFiltersSameAsDefault:s=!0,initialize:r,onFiltersChanged:i,pagination:o,preferredLimit:a,preferredLimitOptions:l,enabled:u})=>{const[m,d]=$([]),[_,f]=_e(!0),[I,g]=$(),[S,p]=$(a),D=ja(),E=W(!0),O=W(1),P=Y0(n,s),{limit:M,limitOptions:R}=R0({preferredLimit:S,preferredLimitOptions:l}),{defaultFilters:C,filters:k,updateFilters:v,...Q}=P,[Y,nt]=y(()=>o===Pa.CURSOR?[Z0,W0]:[J0,F0],[]),tt=N(At=>p(At),[]),{goto:it,page:vt,pages:Dt,resetPagination:_t,...kt}=nt(N(async({page:At,...pt},Wt)=>{try{if(g(void 0),O.current=At,!D.current||f(!0))return;const de=await e({...pt,...k},Wt),{records:se,paginationData:ke}=Y(de,t);return E.current&&(r==null||r([se,ke],P),E.current=!1),D.current&&(d(se),f(!1)),{...ke,size:se==null?void 0:se.length}}catch(de){if(Wt!=null&&Wt.aborted)return;f(!1),g(de),console.error(de)}},[e,k,M]),M);return y(()=>{E.current=!0},[n]),y(()=>{_t(),O.current=1},[k,M,_t]),B(()=>{u&&it(O.current)},[it,u]),B(()=>{i==null||i(k)},[k]),{error:I,fetching:_,filters:k,goto:it,limitOptions:R,page:vt,pages:Dt,records:m,updateFilters:v,updateLimit:tt,...Q,...kt}},Q0=V0,X0=t=>Q0({...t,pagination:Pa.CURSOR}),ka=X0;const K0="adyen-pe-data-overview-header",Wa=({baseClassName:t=K0,children:e,hideTitle:n,titleKey:s,descriptionKey:r})=>{const{i18n:i}=V();return c("header",{className:t,children:[c("div",{className:`${t}__headings`,children:[!n&&s&&c("div",{className:`${t}__title`,children:c(U,{el:pe.SPAN,variant:b.TITLE,medium:!0,children:i.get(s)})}),r&&c("p",{className:`${t}__description`,children:c(U,{el:pe.SPAN,variant:b.BODY,children:i.get(r)})})]}),e&&c("div",{className:`${t}__controls`,children:e})]})},q0="adyen-pe-transaction-totals",Bc="adyen-pe-transaction-totals__item";const ki="adyen-pe-expandable-card",fn=ki+"__container",zc=fn+"--button",qi=fn+"--filled",tp=fn+"--hidden",fd=fn+"--overlay",to=fd,Br=ki+"__content",Fc=Br+"--expandable",$c=ki+"__chevron",ep="adyen-pe-base-button";function np({disabled:t=!1,onClick:e,classNameModifiers:n=[],type:s="button",children:r,className:i,fullWidth:o,...a},l){const u=y(()=>kn("",i)||"",[i]),m=y(()=>Xo(t),[t]),{classes:d,click:_}=Ko(u,[...n,...o?["full-width"]:[]],ep,m,e);return c("button",{className:d,type:s,disabled:t,onClick:_,ref:l,...a,children:r})}const Uc=Zt(np),sp=({renderHeader:t,children:e,filled:n,fullWidth:s,...r})=>{const{i18n:i}=V(),[o,a]=$(!1),l=N(()=>a(f=>!f),[a]),u=W(null),m=W(!1),d=W(o),_=ea(void 0,N(()=>{o&&(l(),m.current=!0)},[o,l]));return B(()=>{var f,I;o?(f=_.current)==null||f.focus():(d.current!==o&&!m.current&&((I=u.current)==null||I.focus()),m.current=!1),d.current=o},[o,_]),c("div",{className:ki,children:e?c(q,{children:[c(Uc,{className:z(fn,zc,{[qi]:n}),disabled:o,fullWidth:s,"aria-controls":to,"aria-expanded":o,"aria-hidden":o,onClick:l,ref:u,"data-testid":"expand-button",...r,children:[c("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.expand")}),c("div",{className:z(Br,Fc),children:t}),c("div",{className:$c,children:c(vi,{role:"presentation"})})]}),c(Uc,{id:to,className:z(fn,zc,fd,{[qi]:n,[tp]:!o}),disabled:!o,fullWidth:s,"aria-controls":to,"aria-expanded":o,"aria-hidden":!o,onClick:l,ref:_,"data-testid":"collapse-button",...r,children:[c("span",{className:"adyen-pe-sr-only",children:i.get("expandableCard.collapse")}),c("div",{className:z(Br,Fc),children:[t,c("div",{children:e})]}),c("div",{className:$c,children:c(ua,{role:"presentation"})})]})]}):c("div",{className:z(fn,{[qi]:n}),...r,children:c("div",{className:Br,children:t})})})},_d=sp,Ba="adyen-pe-amount-skeleton",rp=Ba+"--has-margin",ip=Ba+"--loading";const op=({hasMargin:t=!1,isLoading:e=!1,width:n})=>c("span",{className:z(Ba,{[ip]:e,[rp]:t}),style:{width:n}}),ap=op,In="adyen-pe-summary-item",gd=In+"__label-container",cp=gd+"--loading",lp=In+"--body",Id=In+"__label",up=In+"__placeholder",dp=In+"__amount",Hc=Zt(({config:t,i18n:e,isSkeletonVisible:n,className:s,...r},i)=>c("span",{className:z(gd,s,{[cp]:n}),style:{cursor:"default"},ref:i,...r,children:t.labelKey&&c(U,{variant:b.CAPTION,className:Id,children:e.get(t.labelKey)})}));const pd=({columnConfigs:t,isHeader:e=!1,isHovered:n=!1,isSkeletonVisible:s=!1,isLoading:r=!1,widths:i,onWidthsSet:o,isEmpty:a})=>{const{i18n:l}=V();B(()=>{const _=t.map(f=>{var I,g;return((g=(I=f.ref)==null?void 0:I.current)==null?void 0:g.getBoundingClientRect().width)??0});o(_)},[o]);const u=_=>({width:i&&i[_]?i[_]:"auto"}),m=ft(mt.only.xs),d=N((_,f)=>_.valueHasLabelStyle?b.CAPTION:f&&!m?b.BODY:b.TITLE,[m]);return c("div",{className:z(In,{[lp]:!e}),children:t.map((_,f)=>{const I=_.getValue(),g=!!I&&I.length>12;return c("div",{children:[e&&(_.tooltipLabel?c(oa,{content:l.get(`${_.tooltipLabel}`),isContainerHovered:n,children:c(Hc,{config:_,i18n:l,isSkeletonVisible:s})}):c(Hc,{config:_,i18n:l,isSkeletonVisible:s})),s?c(ap,{isLoading:r,hasMargin:_.hasSkeletonMargin,width:_.skeletonWidth+"px"}):a?c("span",{className:z([In,up])}):c("div",{ref:_.ref,style:u(f),children:c(U,{variant:d(_,g),className:z({[Id]:_.valueHasLabelStyle,[dp]:!_.valueHasLabelStyle}),children:I})})]},f)})})},Yc=({total:t,hiddenField:e,isHeader:n=!1,isHovered:s=!1,isSkeleton:r=!1,isLoading:i=!1,widths:o,onWidthsSet:a})=>{const{i18n:l}=V(),u=W(null),m=W(null),d=W(null),_=y(()=>{const f={labelKey:"totalIncoming",ref:u,skeletonWidth:80,getValue:()=>t&&l.amount(t.incomings,t.currency),tooltipLabel:"tooltip.totalIncoming"},I={labelKey:"totalOutgoing",ref:m,skeletonWidth:80,getValue:()=>t&&l.amount(t.expenses,t.currency),tooltipLabel:"tooltip.totalOutgoing"};return[...e!=="incomings"?[f]:[],...e!=="expenses"?[I]:[],{ref:d,skeletonWidth:40,valueHasLabelStyle:!0,getValue:()=>t==null?void 0:t.currency}]},[t,e,l]);return c(pd,{isHovered:s,isEmpty:!t,columnConfigs:_,isHeader:n,isSkeletonVisible:r,isLoading:i,widths:o,onWidthsSet:a})};const hp="adyen-pe-base-list",yd=({children:t})=>c("ul",{className:hp,children:t}),Sd=()=>{const[t,e]=$([]),n=N(s=>{e(r=>s.every(i=>!i)?s:s.map((i,o)=>{const a=r[o];return!a||i>a?i:a}))},[]);return[t,n]},eo=Et(({totals:t,isLoading:e,hiddenField:n,fullWidth:s})=>{const[r,i]=Sd(),[o,a]=$(!1),[l,...u]=y(()=>t.map(m=>(m.key=`${m.currency}-${Math.random()}`,m)),[t]);return c(_d,{renderHeader:c(Yc,{isHovered:o,total:l,hiddenField:n,widths:r,isHeader:!0,isSkeleton:e,isLoading:e,onWidthsSet:i}),fullWidth:s,onMouseEnter:()=>a(!0),onFocus:()=>a(!0),onMouseLeave:()=>a(!1),onBlur:()=>a(!1),children:!e&&u.length&&c(yd,{children:u.map(m=>c("li",{children:c(Yc,{isHovered:o,total:m,hiddenField:n,widths:r,onWidthsSet:i})},m.key))})})}),mp=Et(({availableCurrencies:t,isAvailableCurrenciesFetching:e,balanceAccountId:n,createdSince:s,createdUntil:r,categories:i,statuses:o,maxAmount:a,minAmount:l,currencies:u,fullWidth:m})=>{const{getTransactionTotals:d}=ue().endpoints,_=N(async()=>d==null?void 0:d(F,{query:{createdSince:s,createdUntil:r,categories:i,statuses:o,maxAmount:a,minAmount:l,currencies:u,balanceAccountId:n}}),[n,i,s,r,u,d,a,l,o]),{data:f,isFetching:I}=Ar({fetchOptions:y(()=>({enabled:!!n&&!!d}),[n,d]),queryFn:_}),g=!n||I||e,p=N(()=>{if(!t||!f)return f==null?void 0:f.data;const E=t.map(O=>f.data.find(M=>M.currency===O)||{currency:O,incomings:0,expenses:0});return E.concat(f.data.filter(O=>!E.includes(O)))},[t,f])()??[],D=ft(mt.only.xs);return c("div",{className:q0,children:D?c(q,{children:[c("div",{className:Bc,children:c(eo,{totals:p,isLoading:g,hiddenField:"expenses",fullWidth:m})}),c("div",{className:Bc,children:c(eo,{totals:p,isLoading:g,hiddenField:"incomings",fullWidth:m})})]}):c(eo,{totals:p,isLoading:g,fullWidth:m})})}),fp=mp,_p="adyen-pe-balances",Gc=({balance:t,isHeader:e=!1,isSkeleton:n=!1,isLoading:s=!1,widths:r,onWidthsSet:i,isEmpty:o})=>{const{i18n:a}=V(),l=W(null),u=W(null),m=y(()=>[{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}],[t,l,a]);return c(pd,{isEmpty:o,columnConfigs:m,isHeader:e,isSkeletonVisible:n,isLoading:s,widths:r,onWidthsSet:i})},gp=Et(({balanceAccountId:t,defaultCurrencyCode:e,onCurrenciesChange:n,fullWidth:s})=>{const{getBalances:r}=ue().endpoints,i=N(async()=>r==null?void 0:r(F,{path:{balanceAccountId:t}}),[t,r]),{data:o,error:a,isFetching:l}=Ar({fetchOptions:y(()=>({enabled:!!t&&!!r}),[t,r]),queryFn:i}),u=!t||l,m=!!a||!(o!=null&&o.data.length),d=y(()=>(o==null?void 0:o.data)&&[...o.data].sort(({currency:S},{currency:p})=>{if(e){if(S===e)return-1;if(p===e)return 1}return S.localeCompare(p)}),[o==null?void 0:o.data,e]),[_,...f]=y(()=>(d==null?void 0:d.map(S=>(S.key=`${S.currency}-${Math.random()}`,S)))??[],[d]),[I,g]=Sd();return B(()=>{const S=new Set((d==null?void 0:d.map(({currency:p})=>p))||[]);n(Array.from(S),l)},[d,l,n]),c("div",{className:_p,children:c(_d,{renderHeader:c(Gc,{isEmpty:m,balance:_,widths:I,isHeader:!0,isSkeleton:u,isLoading:u,onWidthsSet:g}),filled:!0,fullWidth:s,children:f.length&&c(yd,{children:f.map(S=>c("li",{children:c(Gc,{balance:S,widths:I,onWidthsSet:g})},S.key))})})})}),Ip=Et(({placeholder:t,selection:e,selectionOptions:n,updateSelection:s})=>{const r=ft(mt.down.xs),i=ft(mt.only.sm),o=ft(mt.only.md);return n&&n.length>1?c(Ri,{onChange:s,filterable:!1,multiSelect:!0,placeholder:t,selected:e,withoutCollapseIndicator:!0,items:n,showOverlay:r,fitPosition:o||i}):null}),Zc=Ip,pp=t=>Object.freeze(t.map(e=>({id:e,name:e}))),yp=({filterParam:t,filterValues:e,filters:n,defaultFilters:s,updateFilters:r})=>{const i=y(()=>Ss((n==null?void 0:n[t])??(s==null?void 0:s[t])??""),[s,n,t]),o=y(()=>e&&pp(e),[e]),a=N(({target:l})=>{r==null||r({[t]:(l==null?void 0:l.value)||""})},[r,t]);return{selection:i,selectionOptions:o,updateSelection:a}},no=yp,Sp=[G.CURRENCIES,G.CATEGORIES,G.STATUSES],zr=Object.freeze(Object.fromEntries(Sp.map(t=>[t,""]))),Ap=["ATM","Capital","Chargeback","Correction","Fee","Payment","Refund","Transfer","Other"],Tp=["Booked","Pending","Reversed"],Np=t=>{const e=DI(),n="rangePreset.last30Days",{from:s,to:r}=e[n];return{defaultFilterParams:{...t==="transactions"&&{...zr,[G.MIN_AMOUNT]:void 0,[G.MAX_AMOUNT]:void 0},[G.BALANCE_ACCOUNT]:void 0,[G.CREATED_SINCE]:new Date(s).toISOString(),[G.CREATED_UNTIL]:new Date(r).toISOString()},defaultTimeRange:n,timeRangeOptions:e}},Lp=(t,e)=>{const[n,s]=$(Date.now()),r=Np(t),i=W(r),o=N(()=>s(Date.now()),[s]);return B(()=>{o()},[e,o]),{defaultParams:i,nowTimestamp:n,refreshNowTimestamp:o}},za=Lp,Ep=(t,e)=>{const n=no({filterParam:G.CATEGORIES,filterValues:Ap,defaultFilters:zr,...t}),s=no({filterParam:G.STATUSES,filterValues:Tp,defaultFilters:zr,...t}),r=no({filterParam:G.CURRENCIES,filterValues:e,defaultFilters:zr,...t});return{categoriesFilter:n,currenciesFilter:r,statusesFilter:s}},Mp=Ep;const Qr=1e5,Cp=({onChange:t,editAction:e,onValueUpdated:n,selectedCurrencies:s,availableCurrencies:r,value:i,...o})=>{const{i18n:a}=V(),[l,u]=$(Z(o.minAmount)?void 0:parseFloat(o.minAmount)/Qr),[m,d]=$(Z(o.maxAmount)?void 0:parseFloat(o.maxAmount)/Qr),_=N(()=>{t({minAmount:l,maxAmount:m})},[m,l,t]),f=N(()=>{t({minAmount:void 0,maxAmount:void 0}),d(void 0),u(void 0)},[t]);B(()=>{e===Ct.APPLY&&_(),e===Ct.CLEAR&&f()},[_,f,e]);const I=y(()=>({minAmount:Number(l),maxAmount:Number(m)}),[m,l]);return B(()=>{const{maxAmount:g,minAmount:S}=I;Z(g)&&Z(S)||S>g?n(null):n(`${S}-${g}`)},[I,n]),c("div",{className:"adyen-pe-range-selection-filter",children:[c("div",{className:"adyen-pe-range-selection-filter__input",children:[c("label",{htmlFor:"minValue",children:`${a.get("from")}:`}),c(jo,{"data-testid":"minValueFilter",lang:a.locale,name:"minValue",type:"number",value:l,onInput:g=>{g.currentTarget&&u(g.currentTarget.value!==""?g.currentTarget.value:void 0)},min:0,isInvalid:l?l<0:!1,errorMessage:a.get("noNegativeNumbersAllowed")})]}),c("div",{className:"adyen-pe-range-selection-filter__input",children:[c("label",{htmlFor:"maxValue",children:`${a.get("to")}:`}),c(jo,{"data-testid":"maxValueFilter",lang:a.locale,name:"maxValue",type:"number",value:m,onInput:g=>{g.currentTarget&&d(g.currentTarget.value!==""?g.currentTarget.value:void 0)},min:l,isInvalid:!Z(m)&&!Z(l)&&m<l,errorMessage:a.get("toValueShouldBeGreaterThanTheFromValue")})]})]})},Dp=({updateFilters:t,selectedCurrencies:e,availableCurrencies:n,...s})=>{const{i18n:r}=V(),[i,o]=$(),[a,l]=$(),u=y(()=>(e==null?void 0:e.length)===1||(n==null?void 0:n.length)===1,[n==null?void 0:n.length,e==null?void 0:e.length]),m=N((_,f)=>{const I=(e==null?void 0:e[0])||(n==null?void 0:n[0]),g=f&&I?{style:"currency",currency:I,currencyDisplay:"symbol"}:void 0;return _.toLocaleString(r.locale,g)},[n,r,e]),d=N(_=>{const{minAmount:f,maxAmount:I}=_??F;o({minAmount:f,maxAmount:I}),Z(f)&&Z(I)&&l(void 0),t({minAmount:Z(f)?void 0:String(Math.round(f*Qr)),maxAmount:Z(I)?void 0:String(Math.round(I*Qr))})},[t]);if(i&&(i.minAmount||i.maxAmount)){const{minAmount:_,maxAmount:f}=i??{};!Z(_)&&!Z(f)&&_<=f?l(`${m(_,u)} ${r.get("to").toLowerCase()} ${m(f,u)}`):!Z(_)&&Z(f)&&_>=0?l(`${r.get("from")} ${m(_,u)}`):Z(_)&&!Z(f)?l(`${r.get("to")} ${m(f,u)}`):l(void 0)}return c(ld,{...s,updateFilters:t,minAmount:s.minAmount,maxAmount:s.maxAmount,onChange:d,value:a,label:a||s.label,type:"text",containerSize:ws.MEDIUM,selectedCurrencies:e,availableCurrencies:n,render:Cp})},Ad="adyen-pe-transactions",Td=`${Ad}-overview`,Op=`${Ad}-details`,Nd=`${Td}__summary`,Jc=`${Nd}-item`,bp=24,vp=({records:t,onDataRetrieved:e,mergeCustomData:n})=>{const[s,r]=$(t),[i,o]=$(!1),a=N(l=>async()=>{try{const u=e?await e(l):[];r(n({records:t,retrievedData:u}))}catch(u){r(t),console.error(u)}finally{o(!1)}},[e,t,n]);return B(()=>{e&&t.length&&(o(!0),a(t)())},[e,a,t]),{customRecords:s,loadingCustomRecords:i}};const Rp=({onFiltersChanged:t,balanceAccounts:e,allowLimitSelection:n,preferredLimit:s=ks,onRecordSelection:r,showDetails:i,isLoadingBalanceAccount:o,onContactSupport:a,hideTitle:l,columns:u,onDataRetrieved:m})=>{const{i18n:d}=V(),{getTransactions:_}=ue().endpoints,{activeBalanceAccount:f,balanceAccountSelectionOptions:I,onBalanceAccountSelection:g}=Sa(e),{defaultParams:S,nowTimestamp:p,refreshNowTimestamp:D}=za("transactions",f),E=N(async({balanceAccount:Bt,...Ot},Nn)=>_({signal:Nn,errorLevel:"error"},{query:{...Ot,statuses:Ss(Ot[G.STATUSES]),categories:Ss(Ot[G.CATEGORIES]),currencies:Ss(Ot[G.CURRENCIES]),createdSince:Ot[G.CREATED_SINCE]??S.current.defaultFilterParams[G.CREATED_SINCE],createdUntil:Ot[G.CREATED_UNTIL]??S.current.defaultFilterParams[G.CREATED_UNTIL],sortDirection:"desc",balanceAccountId:(f==null?void 0:f.id)??"",minAmount:Z(Ot.minAmount)?void 0:parseFloat(Ot.minAmount),maxAmount:Z(Ot.maxAmount)?void 0:parseFloat(Ot.maxAmount)}}),[f==null?void 0:f.id,S,_]),O=va(),P=y(()=>X(t)?t:void 0,[t]),M=y(()=>n?xa:void 0,[n]),{canResetFilters:R,error:C,fetching:k,filters:v,limit:Q,limitOptions:Y,records:nt,resetFilters:tt,updateFilters:it,updateLimit:vt,...Dt}=ka({fetchRecords:E,dataField:"data",filterParams:S.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:P,preferredLimit:s,preferredLimitOptions:M,enabled:!!(f!=null&&f.id)&&!!_}),[_t,kt]=$([]),[At,pt]=$(!1),Wt=N((Bt,Ot)=>{kt(Bt),pt(Ot)},[]),{categoriesFilter:de,currenciesFilter:se,statusesFilter:ke}=Mp({filters:v,updateFilters:it},_t);B(()=>{kt(void 0),it({[G.BALANCE_ACCOUNT]:f==null?void 0:f.id,[G.CURRENCIES]:void 0})},[it,f==null?void 0:f.id]),B(()=>{D()},[v,D]),B(()=>{ke.updateSelection({target:{value:"Booked",name:"status"}})},[ke]);const ps=ft(mt.down.sm),Mr=!!_t&&_t.length>1,Jt=y(()=>({showDetails:i??!0,callback:r}),[i,r]),Tn=y(()=>({transaction:Jt}),[Jt]),{updateDetails:We,resetDetails:Wi,selectedDetail:Bi}=dd(Tn),zi=N(Bt=>{We({selection:{type:"transaction",data:{...Bt,balanceAccount:f}},modalSize:"small"}).callback({id:Bt.id})},[We,f]),Fi=y(()=>{const Bt=new Date(p);return Bt.setMonth(Bt.getMonth()-bp),Bt.toString()},[p]),et=N(({records:Bt,retrievedData:Ot})=>Bt.map(Nn=>({...Ot.find(Pd=>Pd.id===Nn.id),...Nn})),[]),{customRecords:ut,loadingCustomRecords:dt}=vp({records:nt,onDataRetrieved:m,mergeCustomData:et});return c("div",{className:Td,children:[c(Wa,{hideTitle:l,titleKey:"transactionsOverviewTitle",children:c(Ra,{...O})}),c(wa,{...O,children:[c(Ta,{activeBalanceAccount:f,balanceAccountSelectionOptions:I,onBalanceAccountSelection:g}),c(ba,{canResetFilters:R,defaultParams:S,filters:v,nowTimestamp:p,refreshNowTimestamp:D,sinceDate:Fi,timezone:f==null?void 0:f.timeZone,updateFilters:it}),c(Zc,{...de,placeholder:d.get("filterPlaceholder.category")}),c(Dp,{availableCurrencies:_t,selectedCurrencies:Ss(v[G.CURRENCIES]),name:"range",label:d.get("amount"),minAmount:v[G.MIN_AMOUNT],maxAmount:v[G.MAX_AMOUNT],updateFilters:it,onChange:it}),c(Zc,{...se,placeholder:d.get("filterPlaceholder.currency")})]}),c("div",{className:Nd,children:[c("div",{className:Jc,children:c(fp,{availableCurrencies:_t,isAvailableCurrenciesFetching:At,balanceAccountId:f==null?void 0:f.id,statuses:ke.selection,categories:de.selection,createdUntil:v[G.CREATED_UNTIL],createdSince:v[G.CREATED_SINCE],currencies:se.selection,minAmount:v[G.MIN_AMOUNT]?parseFloat(v[G.MIN_AMOUNT]):void 0,maxAmount:v[G.MAX_AMOUNT]?parseFloat(v[G.MAX_AMOUNT]):void 0,fullWidth:ps})}),c("div",{className:Jc,children:c(gp,{balanceAccountId:f==null?void 0:f.id,onCurrenciesChange:Wt,defaultCurrencyCode:f==null?void 0:f.defaultCurrencyCode,fullWidth:ps})})]}),c(Lu,{selectedDetail:Bi,resetDetails:Wi,className:Op,children:c(jg,{activeBalanceAccount:f,availableCurrencies:_t,error:C,hasMultipleCurrencies:Mr,limit:Q,limitOptions:Y,loading:k||o||!e||dt,onContactSupport:a,onLimitSelection:vt,onRowClick:zi,showPagination:!0,transactions:m?ut:nt,customColumns:u,...Dt})})]})},wp="adyen-pe-transactions-overview-container";function xp({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:wp,errorMessage:"weCouldNotLoadTheTransactionsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(Rp,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}const jp=({i18n:t=new Ci().i18n,children:e,commonProps:n,loadingContext:s,updateCore:r,externalErrorHandler:i})=>{const[o,a]=_e(!1),l=y(()=>n||{},[n]),u=y(()=>s??"",[s]);return B(()=>{(async()=>{await(t==null?void 0:t.ready),a(!0)})().catch()},[]),o?c(Kl.Provider,{value:{i18n:t,commonProps:l,loadingContext:u,updateCore:r,externalErrorHandler:i},children:Ge(e)}):null},Pp=jp;var qc;class Ld{constructor(e){j(this,"_component");j(this,"_node",null);j(this,"_id",`${(qc=this.constructor)==null?void 0:qc.type}-${Wo()}`);j(this,"defaultProps",{});j(this,"props");j(this,"state",{});this.props=this.formatProps({...this==null?void 0:this.defaultProps,...e}),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){const n=Gt(e)?document.querySelector(e):e;if(!n)throw new Error("Component could not mount. Root node was not found.");return this._node&&this.unmount(),this._node=n,this._component=this.render(),vn(this._component,n),this}update(e){return this.props=this.formatProps({...this.props,...e}),this._component=this.render(),this._node&&vn(this._component,this._node),this}remount(e){if(!this._node)throw new Error("Component is not mounted.");const n=e||this.render();return vn(n,this._node),this}unmount(){return this._node&&vn(null,this._node),this}remove(){this.unmount(),this.props.core.remove(this)}}j(Ld,"type");const kp=Ld;class Wp extends kp{constructor(n){super(n);j(this,"componentRef",null);j(this,"componentToRender",null);j(this,"elementRef");j(this,"onContactSupport");j(this,"setUIElementStatus");this.setState=this.setState.bind(this),this.onContactSupport=n.onContactSupport,this.elementRef=this}get isValid(){return!!this.state.isValid}get displayName(){return this.type}get accessibleName(){return this.displayName}get type(){var n;return(n=this.constructor)==null?void 0:n.type}formatProps(n){return n}formatData(){return{...this.state}}setState(n){this.state={...this.state,...n}}setStatus(n,s){var r,i;return(r=this.componentRef)!=null&&r.setStatus?this.componentRef.setStatus(n,s):(i=this.setUIElementStatus)==null||i.call(this,n),this}render(){const n=this.props.core,s=n.update.bind(n),r=this.props.onError||n.onError||null;return n.session.errorHandler=r,c(ym,{session:n.session,children:c(Pp,{i18n:n.localization.i18n,loadingContext:n.loadingContext,updateCore:s,externalErrorHandler:r,children:this.componentToRender&&c("div",{className:"adyen-pe-component",children:this.componentToRender()})})},performance.now())}}const Er=Wp;class Ed extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(xp,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(Ed,"type","transactions");const Bp=Ed;class Md extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(ya,{...this.props,type:"transaction",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(Md,"type","transactionDetails");const zp=Md,Fp="adyen-pe-payouts-overview",$p="adyen-pe-payouts-details",Up=new Date("2024-04-16T00:00:00.000Z").toString(),Cd="adyen-pe-payouts-table",Hp=`${Cd}__net-payout`;const Dd=["fundsCapturedAmount","adjustmentAmount","payoutAmount"],Yp=["createdAt",...Dd],Gp=t=>Dd.includes(t),Zp=({error:t,loading:e,onContactSupport:n,onRowClick:s,showDetails:r,showPagination:i,data:o,...a})=>{const{i18n:l}=V(),{dateFormat:u}=Sn("UTC"),{refreshing:m}=ue(),d=y(()=>e||m,[e,m]),_=ft(mt.up.sm),f=N(p=>{var E,O,P,M;const D=l.get(pa(p));if(Gp(p))return{label:(O=(E=o==null?void 0:o[0])==null?void 0:E[p])!=null&&O.currency?`${D} (${Cl((M=(P=o==null?void 0:o[0])==null?void 0:P[p])==null?void 0:M.currency)})`:D,position:Ze.RIGHT}},[o,l]),I=Tu({fields:Yp,columnConfig:y(()=>({fundsCapturedAmount:{...f("fundsCapturedAmount"),visible:_},adjustmentAmount:{...f("adjustmentAmount"),visible:_},payoutAmount:f("payoutAmount")}),[f,_])}),g={title:"noPayoutsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},S=y(()=>()=>c(_a,{error:t,errorMessage:"weCouldNotLoadYourPayouts",onContactSupport:n}),[t,n]);return c("div",{className:Cd,children:c(Je,{errorDisplay:S,error:t,columns:I,data:o,loading:d,outline:!1,onRowClick:{callback:s},emptyTableMessage:g,customCells:{createdAt:({value:p})=>p?_?p&&c(U,{variant:b.BODY,children:u(p,Kf)}):u(p,qf):null,fundsCapturedAmount:({value:p})=>p&&c(U,{variant:b.BODY,children:l.amount(p.value,p.currency,{hideCurrency:!0})}),adjustmentAmount:({value:p})=>p&&c(U,{variant:b.BODY,children:l.amount(p.value,p.currency,{hideCurrency:!0})}),payoutAmount:({value:p})=>p&&c(U,{variant:b.BODY,className:z({[`${Hp}--strong`]:!_}),children:l.amount(p.value,p.currency,{hideCurrency:_})})},children:i&&c(Je.Footer,{children:c(Ia,{...a})})})})};const Jp=({onFiltersChanged:t,balanceAccounts:e,allowLimitSelection:n,preferredLimit:s=ks,onRecordSelection:r,showDetails:i,isLoadingBalanceAccount:o,onContactSupport:a,hideTitle:l})=>{const{getPayouts:u}=ue().endpoints,{activeBalanceAccount:m,balanceAccountSelectionOptions:d,onBalanceAccountSelection:_}=Sa(e),{defaultParams:f,nowTimestamp:I,refreshNowTimestamp:g}=za("payouts",m),S=N(async(pt,Wt)=>u({signal:Wt,errorLevel:"error"},{query:{...pt,createdSince:pt[G.CREATED_SINCE]??f.current.defaultFilterParams[G.CREATED_SINCE],createdUntil:pt[G.CREATED_UNTIL]??f.current.defaultFilterParams[G.CREATED_UNTIL],balanceAccountId:(m==null?void 0:m.id)??""}}),[m==null?void 0:m.id,f,u]),p=va(),D=y(()=>X(t)?t:void 0,[t]),E=y(()=>n?xa:void 0,[n]),{canResetFilters:O,error:P,fetching:M,filters:R,limit:C,limitOptions:k,records:v,resetFilters:Q,updateFilters:Y,updateLimit:nt,...tt}=ka({fetchRecords:S,dataField:"data",filterParams:f.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:D,preferredLimit:s,preferredLimitOptions:E,enabled:!!(m!=null&&m.id)&&!!u});B(()=>{g()},[R,g]);const it=y(()=>({showDetails:i??!0,callback:r}),[i,r]),vt=y(()=>({payout:it}),[it]),{updateDetails:Dt,resetDetails:_t,selectedDetail:kt}=dd(vt),At=N(pt=>{Dt({selection:{type:"payout",data:{id:m==null?void 0:m.id,balanceAccountDescription:(m==null?void 0:m.description)||"",date:pt.createdAt}},modalSize:"small"}).callback({balanceAccountId:(m==null?void 0:m.id)||"",date:pt.createdAt})},[Dt,m]);return c("div",{className:Fp,children:[c(Wa,{hideTitle:l,titleKey:"payoutsTitle",children:c(Ra,{...p})}),c(wa,{...p,children:[c(Ta,{activeBalanceAccount:m,balanceAccountSelectionOptions:d,onBalanceAccountSelection:_}),c(ba,{canResetFilters:O,defaultParams:f,filters:R,nowTimestamp:I,refreshNowTimestamp:g,sinceDate:Up,timezone:"UTC",updateFilters:Y})]}),c(Lu,{className:$p,onContactSupport:a,selectedDetail:kt,resetDetails:_t,children:c(Zp,{loading:M||o||!e,data:v,showPagination:!0,onRowClick:At,showDetails:i,limit:C,limitOptions:k,onContactSupport:a,onLimitSelection:nt,error:P,...tt})})]})},Vp="adyen-pe-payouts-overview-container";function Qp({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:Vp,errorMessage:"weCouldNotLoadThePayoutsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(Jp,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}class Od extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(Qp,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(Od,"type","payouts");const Xp=Od;class bd extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(ya,{...this.props,type:"payout",ref:n=>void(this.componentRef=n)}));this.componentToRender=this.componentToRender.bind(this)}}j(bd,"type","payoutDetails");const Kp=bd,qp=(t=1e3,e=!1)=>{const[n,s]=$(e),r=W(),i=W(),o=N(()=>{n||(i.current=setTimeout(()=>{r.current=requestAnimationFrame(()=>s(!1))},t),s(!0))},[n,t]);return B(()=>()=>{cancelAnimationFrame(r.current),clearTimeout(i.current),r.current=i.current=null},[t]),{freeze:o,frozen:n}},ty=qp,ey=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:c("path",{d:"M15.3501 11.5301L9.9501 2.21008C9.7501 1.87008 9.4701 1.58008 9.1301 1.38008C8.4401 0.980078 7.5601 0.980078 6.8801 1.38008C6.5401 1.58008 6.2501 1.86008 6.0601 2.20008L0.650097 11.5301C0.450097 11.8701 0.350098 12.2601 0.350098 12.6601C0.350098 13.0601 0.450097 13.4501 0.650097 13.7801C0.850097 14.1201 1.1301 14.4101 1.4701 14.6001C1.8101 14.8001 2.2001 14.9001 2.6001 14.9001H13.4001C13.7901 14.9001 14.1801 14.8001 14.5201 14.6001C14.8601 14.4001 15.1501 14.1201 15.3501 13.7801C15.5501 13.4401 15.6501 13.0501 15.6501 12.6501C15.6501 12.2501 15.5501 11.8601 15.3501 11.5201V11.5301ZM7.2501 4.58008H8.7501V9.08008H7.2501V4.58008ZM8.9201 11.7101C8.8401 11.8901 8.7201 12.0501 8.5501 12.1601C8.3801 12.2701 8.1901 12.3301 7.9901 12.3301C7.7201 12.3301 7.4701 12.2301 7.2801 12.0401C7.0901 11.8501 6.9901 11.6001 6.9901 11.3301C6.9901 11.1301 7.0501 10.9401 7.1601 10.7801C7.2701 10.6201 7.4201 10.4901 7.6101 10.4101C7.7901 10.3301 7.9901 10.3201 8.1901 10.3501C8.3901 10.3901 8.5601 10.4801 8.7001 10.6201C8.8401 10.7601 8.9301 10.9401 8.9701 11.1301C9.0101 11.3201 8.9901 11.5201 8.9101 11.7101H8.9201Z",fill:"currentColor"})}),ny=ey;function sy({className:t,description:e,title:n,type:s,onClose:r,isOpen:i}){return c(q,{children:i&&c("div",{className:z("adyen-pe-alert",t),role:"alert",children:c("div",{className:`adyen-pe-alert__inner-container adyen-pe-alert--${s}`,children:[c("div",{className:"adyen-pe-alert__icon",children:c(ny,{})}),c("div",{className:"adyen-pe-alert__content",children:[n&&c(U,{className:"adyen-pe-alert__title",el:pe.DIV,variant:b.BODY,wide:!0,strongest:!0,children:n}),e&&c(U,{className:"adyen-pe-alert__description",el:pe.DIV,variant:b.BODY,wide:!0,children:e})]}),c("div",{className:"adyen-pe-alert__close-button",children:c(Pt,{iconButton:!0,variant:Nt.TERTIARY,onClick:r,children:c(la,{width:7.12,height:7.12})})})]})})})}var vd=(t=>(t.WARNING="warning",t.CRITICAL="critical",t.HIGHLIGHT="highlight",t.SUCCESS="success",t))(vd||{});const ry=({inline:t=!1,size:e="large"})=>c("div",{className:`adyen-pe-spinner__wrapper ${t?"adyen-pe-spinner__wrapper--inline":""}`,children:c("div",{className:`adyen-pe-spinner adyen-pe-spinner--${e}`})}),Vc=ry,iy=({...t})=>c("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[c("path",{d:"M8.25 0.25V8.18957L10.5001 5.93945L11.5608 7.00011L7.50011 11.0608L3.43945 7.00011L4.50011 5.93945L6.75 8.18934V0.25H8.25Z",fill:"currentColor"}),c("path",{d:"M2.25 11.5V9.25H0.75V11.5C0.75 12.0967 0.987053 12.669 1.40901 13.091C1.83097 13.5129 2.40326 13.75 3 13.75H12C12.5967 13.75 13.169 13.5129 13.591 13.091C14.0129 12.669 14.25 12.0967 14.25 11.5V9.25H12.75V11.5C12.75 11.6989 12.671 11.8897 12.5303 12.0303C12.3897 12.171 12.1989 12.25 12 12.25H3C2.80109 12.25 2.61032 12.171 2.46967 12.0303C2.32902 11.8897 2.25 11.6989 2.25 11.5Z",fill:"currentColor"})]}),Qc=iy,oy=(t,e,n)=>{const s=ue().endpoints[t];return Ar({fetchOptions:{enabled:!!s&&n,keepPrevData:!0},queryFn:async()=>s(F,{...e})})},ay=oy;function cy({blob:t,filename:e}){const n=document.createElement("a"),s=URL.createObjectURL(t);n.href=s,n.download=e||"download";const r=()=>{setTimeout(()=>{URL.revokeObjectURL(s)},150)};n.addEventListener("click",r,{once:!0}),n.click()}function ly({className:t,disabled:e,endpointName:n,params:s,setError:r,errorDisplay:i,onDownloadRequested:o}){const{i18n:a}=V(),[l,u]=$(!1),m=ft(mt.down.xs),{data:d,error:_,isFetching:f}=ay(n,s,l);B(()=>{l&&u(!1)},[l]),B(()=>{d&&cy(d)},[d]),B(()=>{r&&_&&r(_)},[_]);const I=()=>{u(!0),o==null||o()};return c("div",{className:"adyen-pe-download",children:[m?c(Pt,{iconButton:!0,variant:Nt.TERTIARY,onClick:I,children:f?c(Vc,{size:"small"}):c(Qc,{})}):c(Pt,{className:z("adyen-pe-download__button",{"adyen-pe-download__button--loading":f},t),disabled:e||f,variant:Nt.SECONDARY,onClick:I,iconLeft:f?c(Vc,{size:"small"}):c(Qc,{}),children:f?`${a.get("downloading")}..`:a.get("download")}),_&&i&&c("div",{className:"adyen-pe-download__error",children:i})]})}const uy=({...t})=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M8.75 4.58008H7.25V9.08008H8.75V4.58008Z",fill:"currentColor"}),c("path",{d:"M8.71 10.6201C8.57 10.4801 8.39 10.3801 8.2 10.3501C8.01 10.3101 7.8 10.3301 7.62 10.4101C7.44 10.4901 7.28 10.6101 7.17 10.7801C7.06 10.9401 7 11.1401 7 11.3401C7 11.6101 7.11 11.8601 7.29 12.0501C7.48 12.2401 7.73 12.3401 8 12.3401C8.2 12.3401 8.39 12.2801 8.56 12.1701C8.72 12.0601 8.85 11.9001 8.93 11.7201C9.01 11.5401 9.03 11.3401 8.99 11.1401C8.95 10.9501 8.86 10.7701 8.72 10.6301L8.71 10.6201Z",fill:"currentColor"}),c("path",{d:"M9.9501 2.21008L15.3501 11.5301V11.5201C15.5501 11.8601 15.6501 12.2501 15.6501 12.6501C15.6501 13.0501 15.5501 13.4401 15.3501 13.7801C15.1501 14.1201 14.8601 14.4001 14.5201 14.6001C14.1801 14.8001 13.7901 14.9001 13.4001 14.9001H2.6001C2.2001 14.9001 1.8101 14.8001 1.4701 14.6001C1.1301 14.4101 0.850097 14.1201 0.650097 13.7801C0.450097 13.4501 0.350098 13.0601 0.350098 12.6601C0.350098 12.2601 0.450097 11.8701 0.650097 11.5301L6.0601 2.20008C6.2501 1.86008 6.5401 1.58008 6.8801 1.38008C7.5601 0.980078 8.4401 0.980078 9.1301 1.38008C9.4701 1.58008 9.7501 1.87008 9.9501 2.21008ZM13.7701 13.3001C13.8901 13.2401 13.9801 13.1401 14.0501 13.0301L14.0601 13.0401C14.1301 12.9201 14.1601 12.7901 14.1601 12.6601C14.1601 12.5301 14.1301 12.4001 14.0601 12.2901L8.6601 2.96008C8.5901 2.84008 8.5001 2.74008 8.3801 2.68008C8.2601 2.62008 8.1401 2.58008 8.0001 2.58008C7.8601 2.58008 7.7301 2.61008 7.6201 2.68008C7.5101 2.74008 7.4201 2.84008 7.3501 2.95008L1.9501 12.2901C1.8801 12.4001 1.8501 12.5301 1.8501 12.6601C1.8501 12.7901 1.8801 12.9201 1.9501 13.0301C2.0101 13.1401 2.1101 13.2401 2.2201 13.3001C2.3401 13.3601 2.4701 13.4001 2.6001 13.4001H13.3901C13.5301 13.4001 13.6601 13.3701 13.7701 13.3001Z",fill:"currentColor"})]}),dy=uy,hy=1e3,Rd="adyen-pe-reports-table",wd=`${Rd}-date-report-type`,my=`${wd}--date`;const fy=["createdAt","dateAndReportType","reportType","reportFile"],_y=({error:t,loading:e,balanceAccountId:n,onContactSupport:s,showPagination:r,data:i,...o})=>{const{i18n:a}=V(),{dateFormat:l}=Sn("UTC"),{freeze:u,frozen:m}=ty(hy),[d,_]=$(null),{refreshing:f}=ue(),I=y(()=>e||f,[e,f]),g=ft(mt.up.sm),S=ft(mt.down.xs),p=y(()=>({dateAndReportType:S,createdAt:g,reportType:g,reportFile:!0}),[S,g]),D=y(()=>fy.map(C=>{const k=a.get(pa(C));return{key:C,label:k,position:S&&C==="reportFile"?Ze.RIGHT:void 0,visible:p[C]}}),[a,i,p]),E=N(()=>{_(null)},[]),O={title:"noReportsFound",message:["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]},P=y(()=>()=>c(_a,{error:t,errorMessage:"weCouldNotLoadYourReports",onContactSupport:s}),[t,s]),M=y(()=>c(dy,{}),[]),R=y(()=>C=>{const k={};switch(C==null?void 0:C.errorCode){case"999_429_001":k.title=a.get("error.somethingWentWrongWithDownload"),k.description=a.get("reportsError.tooManyDownloads");break;case"00_500":default:k.title=a.get("error.somethingWentWrongWithDownload"),k.description=a.get("error.pleaseTryAgainLater");break}_(k)},[t,s]);return e&&_(null),c("div",{className:Rd,children:[d&&c(sy,{isOpen:!!d,onClose:E,type:vd.WARNING,className:"adyen-pe-reports-table-alert",...d}),c(Je,{errorDisplay:P,error:t,columns:D,data:i,loading:I,outline:!1,emptyTableMessage:O,customCells:{createdAt:({value:C})=>C?C&&c(U,{variant:b.BODY,children:l(C,Sc)}):null,dateAndReportType:({item:C})=>c("div",{className:wd,children:[c(U,{variant:b.BODY,stronger:!0,children:a.get(`reportType.${C==null?void 0:C.type}`)}),c(U,{className:my,variant:b.BODY,children:l(C.createdAt,Sc)})]}),reportType:({item:C})=>(C==null?void 0:C.type)&&c(U,{variant:b.BODY,children:a.get(`reportType.${C==null?void 0:C.type}`)}),reportFile:({item:C})=>{const k={query:{balanceAccountId:n,createdAt:C.createdAt,type:C.type}};return c(ly,{className:"adyen-pe-reports-table--download",endpointName:"downloadReport",disabled:m,params:k,onDownloadRequested:u,setError:R,errorDisplay:M})}},children:r&&c(Je.Footer,{children:c(Ia,{...o})})})]})},gy="adyen-pe-reports-overview",Iy=new Date("2024-04-16T00:00:00.000Z").toString();const py=({onFiltersChanged:t,balanceAccounts:e,allowLimitSelection:n,preferredLimit:s=ks,isLoadingBalanceAccount:r,onContactSupport:i,hideTitle:o})=>{const{getReports:a}=ue().endpoints,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:m}=Sa(e),{defaultParams:d,nowTimestamp:_,refreshNowTimestamp:f}=za("reports",l),I=N(async(nt,tt)=>a({signal:tt,errorLevel:"error"},{query:{...nt,type:"payout",createdSince:nt[G.CREATED_SINCE]??d.current.defaultFilterParams[G.CREATED_SINCE],createdUntil:nt[G.CREATED_UNTIL]??d.current.defaultFilterParams[G.CREATED_UNTIL],balanceAccountId:(l==null?void 0:l.id)??""}}),[l==null?void 0:l.id,d,a]),g=va(),S=y(()=>X(t)?t:void 0,[t]),p=y(()=>n?xa:void 0,[n]),{canResetFilters:D,error:E,fetching:O,filters:P,limit:M,limitOptions:R,records:C,resetFilters:k,updateFilters:v,updateLimit:Q,...Y}=ka({fetchRecords:I,dataField:"data",filterParams:d.current.defaultFilterParams,initialFiltersSameAsDefault:!0,onFiltersChanged:S,preferredLimit:s,preferredLimitOptions:p,enabled:!!(l!=null&&l.id)&&!!a});return B(()=>{f()},[P,f]),c("div",{className:gy,children:[c(Wa,{hideTitle:o,titleKey:"reportsTitle",descriptionKey:"reportsNotice",children:c(Ra,{...g})}),c(wa,{...g,children:[c(Ta,{activeBalanceAccount:l,balanceAccountSelectionOptions:u,onBalanceAccountSelection:m}),c(ba,{canResetFilters:D,defaultParams:d,filters:P,nowTimestamp:_,refreshNowTimestamp:f,sinceDate:Iy,timezone:"UTC",updateFilters:v})]}),c(_y,{balanceAccountId:l==null?void 0:l.id,loading:O||r||!e||!l,data:C,showPagination:!0,limit:M,limitOptions:R,onContactSupport:i,onLimitSelection:Q,error:E,...Y})]})},yy="adyen-pe-reports-overview-container";function Sy({...t}){const{balanceAccounts:e,isBalanceAccountIdWrong:n,isFetching:s,error:r}=bi(t.balanceAccountId);return c(ca,{balanceAccountsError:r,className:yy,errorMessage:"weCouldNotLoadTheReportsOverview",isBalanceAccountIdWrong:n,onContactSupport:t.onContactSupport,children:c(py,{...t,balanceAccounts:e,isLoadingBalanceAccount:s})})}class xd extends Er{constructor(n){super(n);j(this,"componentToRender",()=>c(Sy,{...this.props,balanceAccountId:this.props.balanceAccountId,ref:n=>{this.componentRef=n}}));this.componentToRender=this.componentToRender.bind(this)}}j(xd,"type","reports");const Ay=xd;async function Ty(t){return await new vl(t).initialize()}exports.AdyenPlatformExperience=Ty;exports.Core=vl;exports.PayoutDetails=Kp;exports.PayoutsOverview=Xp;exports.ReportsOverview=Ay;exports.TransactionDetails=zp;exports.TransactionsOverview=Bp;exports.all_locales=zo;exports.da_DK=_l;exports.de_DE=gl;exports.en_US=$r;exports.es_ES=Il;exports.fr_FR=pl;exports.it_IT=yl;exports.nl_NL=Sl;exports.no_NO=Al;exports.pt_BR=Tl;exports.sv_SE=Nl;
12
12
  //# sourceMappingURL=index.js.map