@adyen/adyen-platform-experience-web 1.0.0-beta.2 → 1.0.0-beta.3

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 (202) hide show
  1. package/dist/ModalContent-387502da.js +2 -0
  2. package/dist/{ModalContent-88fdb6f4.js.map → ModalContent-387502da.js.map} +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +6 -6
  5. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +3 -3
  6. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +6 -6
  7. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
  8. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +7 -7
  9. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +9 -9
  10. package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +4 -4
  11. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +6 -6
  12. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +7 -7
  13. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +15 -15
  14. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
  15. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +6 -6
  16. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +7 -7
  17. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +31 -31
  18. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +15 -15
  19. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +6 -6
  20. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +21 -21
  21. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +21 -21
  22. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +30 -30
  23. package/dist/es/components/external/TransactionsOverview/components/utils.js +1 -1
  24. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -4
  25. package/dist/es/components/external/UIElement.js +4 -4
  26. package/dist/es/components/internal/BaseButton/BaseButton.js +11 -11
  27. package/dist/es/components/internal/BaseList/BaseList.js +2 -2
  28. package/dist/es/components/internal/Button/Button.js +9 -9
  29. package/dist/es/components/internal/Button/hooks/useButton.js +2 -2
  30. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +2 -2
  31. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +4 -4
  32. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +13 -13
  33. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
  34. package/dist/es/components/internal/DataGrid/DataGrid.js +6 -6
  35. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -8
  36. package/dist/es/components/internal/DataGrid/components/TableBody.js +5 -5
  37. package/dist/es/components/internal/DataGrid/components/TableCells.js +2 -2
  38. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +2 -2
  39. package/dist/es/components/internal/DatePicker/DatePicker.js +9 -9
  40. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +9 -9
  41. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
  42. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +10 -10
  43. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +14 -14
  44. package/dist/es/components/internal/FilterBar/FilterBar.js +12 -12
  45. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +8 -8
  46. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +26 -26
  47. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +3 -3
  48. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +27 -27
  49. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +17 -17
  50. package/dist/es/components/internal/FormFields/InputBase.js +16 -16
  51. package/dist/es/components/internal/FormFields/InputText.js +2 -2
  52. package/dist/es/components/internal/FormFields/Select/Select.js +27 -27
  53. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +16 -16
  54. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +21 -21
  55. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +9 -9
  56. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +7 -7
  57. package/dist/es/components/internal/Image/Image.js +2 -2
  58. package/dist/es/components/internal/Img/Img.js +4 -4
  59. package/dist/es/components/internal/Modal/Modal.js +16 -16
  60. package/dist/es/components/internal/Pagination/Pagination.js +4 -4
  61. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +2 -2
  62. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -44
  63. package/dist/es/components/internal/Pagination/hooks/usePagination.js +15 -15
  64. package/dist/es/components/internal/Popover/Popover.js +31 -31
  65. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +2 -2
  66. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +3 -3
  67. package/dist/es/components/internal/SVGIcons/ChevronRight.js +3 -3
  68. package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
  69. package/dist/es/components/internal/SVGIcons/Filter.js +2 -2
  70. package/dist/es/components/internal/Tag/Tag.js +3 -3
  71. package/dist/es/components/internal/Tooltip/Tooltip.js +3 -3
  72. package/dist/es/components/internal/Typography/Typography.js +2 -2
  73. package/dist/es/core/Auth/AuthProvider.js +6 -6
  74. package/dist/es/core/Context/CoreProvider.js +4 -4
  75. package/dist/es/core/Localization/utils.js +30 -30
  76. package/dist/es/core/Session/Session.js +1 -1
  77. package/dist/es/core/core.js +9 -9
  78. package/dist/es/external/preact/compat/dist/compat.module.js +86 -86
  79. package/dist/es/external/preact/dist/preact.module.js +241 -234
  80. package/dist/es/external/preact/hooks/dist/hooks.module.js +86 -84
  81. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +5 -5
  82. package/dist/es/hooks/element/useClickOutside.js +2 -2
  83. package/dist/es/hooks/element/useDetachedRender.js +2 -2
  84. package/dist/es/hooks/element/useFocusCursor.js +2 -2
  85. package/dist/es/hooks/element/useFocusTrap.js +2 -2
  86. package/dist/es/hooks/element/usePopoverPositioner.js +27 -27
  87. package/dist/es/hooks/useCommitAction/useCommitAction.js +2 -2
  88. package/dist/es/hooks/useFetch/useFetch.js +1 -1
  89. package/dist/es/hooks/useModalDetails/useModalDetails.js +4 -4
  90. package/dist/es/hooks/useReactiveState/useReactiveState.js +10 -10
  91. package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +4 -4
  92. package/dist/es/utils/SessionStorage.js +31 -0
  93. package/dist/index-8daceaea.js +12 -0
  94. package/dist/index-8daceaea.js.map +1 -0
  95. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +2 -2
  96. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  97. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
  98. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  99. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +1 -5
  100. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
  101. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +1 -1
  102. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
  103. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
  104. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
  105. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
  106. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  107. package/dist/types/components/external/TransactionsOverview/components/utils.d.ts +1 -1
  108. package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
  109. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
  110. package/dist/types/components/internal/Button/constants.d.ts +7 -7
  111. package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
  112. package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
  113. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
  114. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  115. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts +2 -2
  116. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
  117. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
  118. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
  119. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
  120. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -1
  121. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
  122. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
  123. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +1 -1
  124. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  125. package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
  126. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
  127. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
  128. package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
  129. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
  130. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -3
  131. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
  132. package/dist/types/components/internal/FormFields/Select/constants.d.ts +21 -21
  133. package/dist/types/components/internal/FormFields/Select/constants.d.ts.map +1 -1
  134. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  135. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
  136. package/dist/types/components/internal/FormFields/index.d.ts +1 -1
  137. package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
  138. package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
  139. package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
  140. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
  141. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
  142. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
  143. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
  144. package/dist/types/components/internal/Pagination/types.d.ts +5 -1
  145. package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
  146. package/dist/types/components/internal/Popover/constants.d.ts +6 -6
  147. package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
  148. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
  149. package/dist/types/components/types.d.ts +2 -0
  150. package/dist/types/components/types.d.ts.map +1 -1
  151. package/dist/types/core/Localization/amount/amount-util.d.ts +28 -0
  152. package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
  153. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  154. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  155. package/dist/types/core/Localization/utils.d.ts +468 -3
  156. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  157. package/dist/types/core/core.d.ts +19 -0
  158. package/dist/types/core/core.d.ts.map +1 -1
  159. package/dist/types/core/types.d.ts +5 -0
  160. package/dist/types/core/types.d.ts.map +1 -1
  161. package/dist/types/hooks/element/useClickOutside.d.ts +1 -1
  162. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
  163. package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
  164. package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
  165. package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
  166. package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
  167. package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
  168. package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
  169. package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
  170. package/dist/types/hooks/useReflex/core/reflex.d.ts.map +1 -1
  171. package/dist/types/hooks/useReflex/core/utils.d.ts.map +1 -1
  172. package/dist/types/hooks/useReflex/hooks/useReflex.d.ts.map +1 -1
  173. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
  174. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +1 -1
  175. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
  176. package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts +104 -0
  177. package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts.map +1 -0
  178. package/dist/types/types/models/openapi/SetupResource.d.ts +59 -0
  179. package/dist/types/types/models/openapi/SetupResource.d.ts.map +1 -0
  180. package/dist/types/types/models/openapi/TransactionsResource.d.ts +198 -0
  181. package/dist/types/types/models/openapi/TransactionsResource.d.ts.map +1 -0
  182. package/dist/types/types/models/openapi/endpoints.d.ts +11 -0
  183. package/dist/types/types/models/openapi/endpoints.d.ts.map +1 -0
  184. package/dist/types/utils/SessionStorage.d.ts +11 -0
  185. package/dist/types/utils/SessionStorage.d.ts.map +1 -0
  186. package/dist/types/utils/common/index.d.ts +2 -2
  187. package/dist/types/utils/common/index.d.ts.map +1 -1
  188. package/dist/types/utils/fixedForwardRef.d.ts +3 -3
  189. package/dist/types/utils/fixedForwardRef.d.ts.map +1 -1
  190. package/dist/types/utils/watchable/core/Watchable.d.ts +5 -3
  191. package/dist/types/utils/watchable/core/Watchable.d.ts.map +1 -1
  192. package/dist/types/utils/watchable/core/helpers.d.ts +4 -2
  193. package/dist/types/utils/watchable/core/helpers.d.ts.map +1 -1
  194. package/dist/types/utils/watchable/core/syncEffect.d.ts +1 -1
  195. package/dist/types/utils/watchable/core/syncEffect.d.ts.map +1 -1
  196. package/package.json +5 -5
  197. package/dist/ModalContent-88fdb6f4.js +0 -2
  198. package/dist/es/utils/Storage.js +0 -31
  199. package/dist/index-7e2df524.js +0 -12
  200. package/dist/index-7e2df524.js.map +0 -1
  201. package/dist/types/utils/Storage.d.ts +0 -11
  202. package/dist/types/utils/Storage.d.ts.map +0 -1
@@ -5,7 +5,7 @@ const l = ({ ...i }) => /* @__PURE__ */ t("svg", { width: "16", height: "16", vi
5
5
  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",
6
6
  fill: "#00112C"
7
7
  }
8
- ) }), e = l;
8
+ ) }), o = l;
9
9
  export {
10
- e as default
10
+ o as default
11
11
  };
@@ -1,9 +1,9 @@
1
- import { jsx as r } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
1
+ import { jsx as o } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import t from "classnames";
3
3
  import { TagVariant as e } from "./types.js";
4
4
  import "./Tag.scss.js";
5
5
  import { memo as m } from "../../../external/preact/compat/dist/compat.module.js";
6
- const c = m(({ variant: a = e.DEFAULT, label: o }) => /* @__PURE__ */ r(
6
+ const c = m(({ variant: a = e.DEFAULT, label: r }) => /* @__PURE__ */ o(
7
7
  "div",
8
8
  {
9
9
  className: t("adyen-pe-tag", {
@@ -13,7 +13,7 @@ const c = m(({ variant: a = e.DEFAULT, label: o }) => /* @__PURE__ */ r(
13
13
  "adyen-pe-tag--error": a === e.ERROR,
14
14
  "adyen-pe-tag--white": a === e.WHITE
15
15
  }),
16
- children: o
16
+ children: r
17
17
  }
18
18
  ));
19
19
  export {
@@ -9,7 +9,7 @@ import V from "../../../hooks/element/useUniqueIdentifier.js";
9
9
  import u from "classnames";
10
10
  import { Fragment as p, cloneElement as O } from "../../../external/preact/dist/preact.module.js";
11
11
  import "./Tooltip.scss.js";
12
- const E = (t) => typeof t == "string", C = ({ content: t, children: o, triggerRef: y, showTooltip: a, position: g, isContainerHovered: s = !1 }) => {
12
+ const w = (t) => typeof t == "string", G = ({ content: t, children: o, triggerRef: y, showTooltip: a, position: g, isContainerHovered: s = !1 }) => {
13
13
  var i, f, n;
14
14
  const e = V(), _ = T(b.down.sm), { isVisible: m, listeners: l } = I();
15
15
  return _ ? /* @__PURE__ */ r(p, { children: o }) : /* @__PURE__ */ r(p, { children: [
@@ -31,11 +31,11 @@ const E = (t) => typeof t == "string", C = ({ content: t, children: o, triggerRe
31
31
  targetElement: y ?? e,
32
32
  position: g,
33
33
  open: m || a,
34
- children: /* @__PURE__ */ r(p, { children: t && E(t) ? /* @__PURE__ */ r(P, { variant: N.CAPTION, children: t }) : { content: t } })
34
+ children: /* @__PURE__ */ r(p, { children: t && w(t) ? /* @__PURE__ */ r(P, { variant: N.CAPTION, children: t }) : { content: t } })
35
35
  }
36
36
  )
37
37
  ] });
38
38
  };
39
39
  export {
40
- C as Tooltip
40
+ G as Tooltip
41
41
  };
@@ -29,7 +29,7 @@ function y({ el: B, className: D, stronger: I, strongest: L, variant: $, medium:
29
29
  );
30
30
  return /* @__PURE__ */ Y(A, { className: f([`${o}`, S, D]), children: N });
31
31
  }
32
- const x = R(y);
32
+ const u = R(y);
33
33
  export {
34
- x as default
34
+ u as default
35
35
  };
@@ -1,18 +1,18 @@
1
1
  import { jsx as f } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
2
2
  import { AuthContext as c } from "./AuthContext.js";
3
3
  import { toChildArray as m } from "../../external/preact/dist/preact.module.js";
4
- import { useState as p, useRef as d, useEffect as h } from "../../external/preact/hooks/dist/hooks.module.js";
5
- import { EMPTY_OBJECT as l } from "../../utils/common/constants.js";
6
- const T = ({ token: r, endpoints: s, children: a, updateCore: t, sessionSetupError: i }) => {
4
+ import { useState as p, useRef as d, useEffect as T } from "../../external/preact/hooks/dist/hooks.module.js";
5
+ import { EMPTY_OBJECT as h } from "../../utils/common/constants.js";
6
+ const l = ({ token: r, endpoints: s, children: a, updateCore: t, sessionSetupError: i }) => {
7
7
  const [u, e] = p(), o = d("");
8
- h(() => {
8
+ T(() => {
9
9
  o.current !== r && (o.current = r, e(!1));
10
10
  }, [r]);
11
11
  const n = async () => {
12
- e(!0), t && await t(l, !0);
12
+ e(!0), t && await t(h, !0);
13
13
  };
14
14
  return /* @__PURE__ */ f(c.Provider, { value: { token: r, endpoints: s, updateCore: n, sessionSetupError: i, isUpdatingToken: u }, children: m(a) });
15
- }, E = T;
15
+ }, E = l;
16
16
  export {
17
17
  E as default
18
18
  };
@@ -2,15 +2,15 @@ import { jsx as i } from "../../external/preact/jsx-runtime/dist/jsxRuntime.modu
2
2
  import { toChildArray as f } from "../../external/preact/dist/preact.module.js";
3
3
  import { useMemo as t, useEffect as d } from "../../external/preact/hooks/dist/hooks.module.js";
4
4
  import { CoreContext as l } from "./CoreContext.js";
5
- import p from "../../hooks/useBooleanState/useBooleanState.js";
6
- import u from "../Localization/Localization.js";
5
+ import u from "../../hooks/useBooleanState/useBooleanState.js";
6
+ import p from "../Localization/Localization.js";
7
7
  const C = ({
8
- i18n: o = new u().i18n,
8
+ i18n: o = new p().i18n,
9
9
  children: a,
10
10
  commonProps: r,
11
11
  loadingContext: e
12
12
  }) => {
13
- const [s, m] = p(!1), n = t(() => r || {}, [r]), c = t(() => e ?? "", [e]);
13
+ const [s, m] = u(!1), n = t(() => r || {}, [r]), c = t(() => e ?? "", [e]);
14
14
  return d(() => {
15
15
  (async () => {
16
16
  await (o == null ? void 0 : o.ready), m(!0);
@@ -1,50 +1,50 @@
1
1
  import { hasOwnProperty as c } from "../../utils/common/index.js";
2
- import { LOCALE_FORMAT_REGEX as d, FALLBACK_LOCALE as L, defaultTranslation as m } from "./constants/locale.js";
2
+ import { LOCALE_FORMAT_REGEX as d, FALLBACK_LOCALE as l, defaultTranslation as m } from "./constants/locale.js";
3
3
  import { en_US as C } from "./translations/index.js";
4
- const l = (e) => e.substring(0, 2).toLowerCase();
5
- function _(e, t) {
4
+ const L = (e) => e.substring(0, 2).toLowerCase();
5
+ function _(e, r) {
6
6
  if (!e)
7
7
  return null;
8
- const r = l(e);
9
- return t.find((n) => l(n) === r) || null;
8
+ const n = L(e);
9
+ return r.find((t) => L(t) === n) || null;
10
10
  }
11
11
  function i(e) {
12
- const t = e.replace("_", "-");
13
- if (d.test(t))
14
- return t;
15
- const [r, n] = t.split("-");
16
- if (!r || !n)
12
+ const r = e.replace("_", "-");
13
+ if (d.test(r))
14
+ return r;
15
+ const [n, t] = r.split("-");
16
+ if (!n || !t)
17
17
  return null;
18
- const o = `${r.toLowerCase()}-${n.toUpperCase()}`;
18
+ const o = `${n.toLowerCase()}-${t.toUpperCase()}`;
19
19
  return o.length === 5 ? o : null;
20
20
  }
21
- function a(e, t) {
22
- const r = e.trim();
23
- if (!r || r.length < 1 || r.length > 5)
24
- return L;
25
- const n = i(r);
26
- return n && t.indexOf(n) > -1 ? n : _(n ?? r, [...t]);
21
+ function a(e, r) {
22
+ const n = e.trim();
23
+ if (!n || n.length < 1 || n.length > 5)
24
+ return l;
25
+ const t = i(n);
26
+ return t && r.indexOf(t) > -1 ? t : _(t ?? n, [...r]);
27
27
  }
28
- function O(e = {}, t) {
29
- return Object.keys(e).reduce((r, n) => {
30
- const o = i(n) || a(n, t);
31
- return o && e[n] && (r[o] = e[n]), r;
28
+ function O(e = {}, r) {
29
+ return Object.keys(e).reduce((n, t) => {
30
+ const o = i(t) || a(t, r);
31
+ return o && e[t] && (n[o] = e[t]), n;
32
32
  }, {});
33
33
  }
34
- const f = (e, t) => e.replace(/%{(\w+)}/g, (r, n) => (t == null ? void 0 : t[n]) || ""), w = (e, t, r = { values: {}, count: 0 }) => {
35
- const n = r.count ?? 0, o = `${t}__${n}`;
34
+ const f = (e, r) => e.replace(/%{(\w+)}/g, (n, t) => (r == null ? void 0 : r[t]) || ""), w = (e, r, n = { values: {}, count: 0 }) => {
35
+ const t = n.count ?? 0, o = `${r}__${t}`;
36
36
  if (c(e, o) && e[o])
37
- return f(e[o], r.values);
38
- const u = `${t}__plural`;
39
- return c(e, u) && n > 1 && e[u] ? f(e[u], r.values) : c(e, t) && e[t] ? f(e[t], r.values) : null;
40
- }, h = async (e, t, r = {}) => {
41
- const n = t ?? { "en-US": C.en_US }, o = a(e, Object.keys(n)) || L, u = n[o];
37
+ return f(e[o], n.values);
38
+ const u = `${r}__plural`;
39
+ return c(e, u) && t > 1 && e[u] ? f(e[u], n.values) : c(e, r) && e[r] ? f(e[r], n.values) : null;
40
+ }, h = async (e, r, n = {}) => {
41
+ const t = r ?? { "en-US": C.en_US }, o = a(e, Object.keys(t)) || l, u = t[o] || t[l];
42
42
  return {
43
43
  ...m,
44
44
  // Default en-US translations (in case any other translation file is missing any key)
45
45
  ...u,
46
46
  // Merge with our locale file of the locale they are loading
47
- ...!!r[e] && r[e]
47
+ ...!!n[e] && n[e]
48
48
  // Merge with their custom locales if available
49
49
  };
50
50
  };
@@ -55,5 +55,5 @@ export {
55
55
  h as loadTranslations,
56
56
  _ as matchLocale,
57
57
  a as parseLocale,
58
- l as toTwoLetterCode
58
+ L as toTwoLetterCode
59
59
  };
@@ -2,7 +2,7 @@ var n = Object.defineProperty;
2
2
  var r = (e, s, t) => s in e ? n(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
3
3
  var i = (e, s, t) => (r(e, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import h from "../Services/sessions/setup-session.js";
5
- import a from "../../utils/Storage.js";
5
+ import a from "../../utils/SessionStorage.js";
6
6
  import { sanitizeSession as g } from "./utils.js";
7
7
  class S {
8
8
  constructor(s, t) {
@@ -3,9 +3,9 @@ var h = (o, s, t) => s in o ? r(o, s, { enumerable: !0, configurable: !0, writab
3
3
  var i = (o, s, t) => (h(o, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import { resolveEnvironment as l } from "./utils.js";
5
5
  import p from "./Localization/Localization.js";
6
- import d from "./Session/Session.js";
7
- import { EMPTY_OBJECT as u } from "../utils/common/constants.js";
8
- const c = "test";
6
+ import c from "./Session/Session.js";
7
+ import { EMPTY_OBJECT as d } from "../utils/common/constants.js";
8
+ const u = "test";
9
9
  class a {
10
10
  constructor(s) {
11
11
  i(this, "session");
@@ -22,7 +22,7 @@ class a {
22
22
  var s;
23
23
  try {
24
24
  if (this.options.onSessionCreate && !this.isUpdatingSessionToken)
25
- return this.isUpdatingSessionToken = !0, this.session = new d(await this.options.onSessionCreate(), this.loadingContext), await ((s = this.session) == null ? void 0 : s.setupSession(this.options)), await this.update({}), this.isUpdatingSessionToken = !1, this;
25
+ return this.isUpdatingSessionToken = !0, this.session = new c(await this.options.onSessionCreate(), this.loadingContext), await ((s = this.session) == null ? void 0 : s.setupSession(this.options)), await this.update({}), this.isUpdatingSessionToken = !1, this;
26
26
  } catch (t) {
27
27
  return this.options.onError && this.options.onError(t), this.sessionSetupError = !0, await this.update(), this.isUpdatingSessionToken = !1, this;
28
28
  }
@@ -33,7 +33,7 @@ class a {
33
33
  * @param initSession - should session be initiated again
34
34
  * @returns this - the element instance
35
35
  */
36
- i(this, "update", (s = u, t = !1) => (this.setOptions(s), this.initialize(t).then(() => (this.components.forEach((n) => n.update(this.getPropsForComponent(this.options))), this))));
36
+ i(this, "update", (s = d, t = !1) => (this.setOptions(s), this.initialize(t).then(() => (this.components.forEach((n) => n.update(this.getPropsForComponent(this.options))), this))));
37
37
  /**
38
38
  * Remove the reference of a component
39
39
  * @param component - reference to the component to be removed
@@ -61,7 +61,7 @@ class a {
61
61
  i18n: this.localization.i18n
62
62
  }, this;
63
63
  });
64
- this.options = { environment: c, ...s }, this.isUpdatingSessionToken = !1, this.localization = new p(s.locale, s.availableTranslations), this.loadingContext = l(this.options.environment), this.setOptions(s);
64
+ this.options = { environment: u, ...s }, this.isUpdatingSessionToken = !1, this.localization = new p(s.locale, s.availableTranslations), this.loadingContext = l(this.options.environment), this.setOptions(s);
65
65
  }
66
66
  async initialize(s = !1) {
67
67
  return !this.sessionSetupError && (s || !this.session && this.onSessionCreate) && await this.updateSession(), Promise.all([this.localization.ready]).then(() => this);
@@ -83,10 +83,10 @@ class a {
83
83
  }
84
84
  }
85
85
  i(a, "version", {
86
- version: "1.0.0-beta.2",
87
- revision: "33c0a7d",
86
+ version: "1.0.0-beta.3",
87
+ revision: "8c9130d",
88
88
  branch: "main",
89
- buildId: "@adyen/adyen-pe-web-3ed52b5a-7aa6-4d68-a62b-23b8b79a5316"
89
+ buildId: "@adyen/adyen-pe-web-43076515-f68f-44a0-bff9-5f48d629cfc6"
90
90
  });
91
91
  const z = a;
92
92
  export {
@@ -1,12 +1,12 @@
1
- import { Component as s, options as a, createElement as c, Fragment as y, toChildArray as v, render as b } from "../../dist/preact.module.js";
2
- import { createContext as J } from "../../dist/preact.module.js";
3
- import { useCallback as te, useContext as re, useEffect as ne, useImperativeHandle as oe, useLayoutEffect as ie, useMemo as ue, useReducer as ae, useRef as le, useState as _e } from "../../hooks/dist/hooks.module.js";
4
- function R(e, t) {
1
+ import { Component as s, options as a, createElement as c, Fragment as m, toChildArray as d, render as y } from "../../dist/preact.module.js";
2
+ import { createContext as q } from "../../dist/preact.module.js";
3
+ import { useCallback as ee, useContext as te, useEffect as re, useImperativeHandle as ne, useLayoutEffect as oe, useMemo as ie, useReducer as ue, useRef as ae, useState as le } from "../../hooks/dist/hooks.module.js";
4
+ function S(e, t) {
5
5
  for (var r in t)
6
6
  e[r] = t[r];
7
7
  return e;
8
8
  }
9
- function h(e, t) {
9
+ function v(e, t) {
10
10
  for (var r in e)
11
11
  if (r !== "__source" && !(r in t))
12
12
  return !0;
@@ -15,64 +15,64 @@ function h(e, t) {
15
15
  return !0;
16
16
  return !1;
17
17
  }
18
- function C(e) {
19
- this.props = e;
18
+ function b(e, t) {
19
+ this.props = e, this.context = t;
20
20
  }
21
- function q(e, t) {
21
+ function Z(e, t) {
22
22
  function r(o) {
23
23
  var i = this.props.ref, u = i == o.ref;
24
- return !u && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !u : h(this.props, o);
24
+ return !u && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !u : v(this.props, o);
25
25
  }
26
26
  function n(o) {
27
27
  return this.shouldComponentUpdate = r, c(e, o);
28
28
  }
29
29
  return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
30
30
  }
31
- (C.prototype = new s()).isPureReactComponent = !0, C.prototype.shouldComponentUpdate = function(e, t) {
32
- return h(this.props, e) || h(this.state, t);
31
+ (b.prototype = new s()).isPureReactComponent = !0, b.prototype.shouldComponentUpdate = function(e, t) {
32
+ return v(this.props, e) || v(this.state, t);
33
33
  };
34
- var g = a.__b;
34
+ var C = a.__b;
35
35
  a.__b = function(e) {
36
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), g && g(e);
36
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), C && C(e);
37
37
  };
38
- var $ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
39
- function K(e) {
38
+ var U = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
39
+ function J(e) {
40
40
  function t(r) {
41
- var n = R({}, r);
41
+ var n = S({}, r);
42
42
  return delete n.ref, e(n, r.ref || null);
43
43
  }
44
- return t.$$typeof = $, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
44
+ return t.$$typeof = U, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
45
45
  }
46
- var W = a.__e;
46
+ var $ = a.__e;
47
47
  a.__e = function(e, t, r, n) {
48
48
  if (e.then) {
49
49
  for (var o, i = t; i = i.__; )
50
50
  if ((o = i.__c) && o.__c)
51
51
  return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
52
52
  }
53
- W(e, t, r, n);
53
+ $(e, t, r, n);
54
54
  };
55
- var k = a.unmount;
55
+ var g = a.unmount;
56
56
  function O(e, t, r) {
57
57
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
58
58
  typeof n.__c == "function" && n.__c();
59
- }), e.__c.__H = null), (e = R({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
59
+ }), e.__c.__H = null), (e = S({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
60
60
  return O(n, t, r);
61
61
  })), e;
62
62
  }
63
- function E(e, t, r) {
63
+ function R(e, t, r) {
64
64
  return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
65
- return E(n, t, r);
66
- }), e.__c && e.__c.__P === t && (e.__e && r.insertBefore(e.__e, e.__d), e.__c.__e = !0, e.__c.__P = r)), e;
65
+ return R(n, t, r);
66
+ }), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
67
67
  }
68
- function d() {
68
+ function p() {
69
69
  this.__u = 0, this.t = null, this.__b = null;
70
70
  }
71
- function U(e) {
71
+ function E(e) {
72
72
  var t = e.__.__c;
73
73
  return t && t.__a && t.__a(e);
74
74
  }
75
- function Q(e) {
75
+ function K(e) {
76
76
  var t, r, n;
77
77
  function o(i) {
78
78
  if (t || (t = e()).then(function(u) {
@@ -92,29 +92,29 @@ function f() {
92
92
  }
93
93
  a.unmount = function(e) {
94
94
  var t = e.__c;
95
- t && t.__R && t.__R(), t && e.__h === !0 && (e.type = null), k && k(e);
96
- }, (d.prototype = new s()).__c = function(e, t) {
95
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), g && g(e);
96
+ }, (p.prototype = new s()).__c = function(e, t) {
97
97
  var r = t.__c, n = this;
98
98
  n.t == null && (n.t = []), n.t.push(r);
99
- var o = U(n.__v), i = !1, u = function() {
99
+ var o = E(n.__v), i = !1, u = function() {
100
100
  i || (i = !0, r.__R = null, o ? o(l) : l());
101
101
  };
102
102
  r.__R = u;
103
103
  var l = function() {
104
104
  if (!--n.__u) {
105
105
  if (n.state.__a) {
106
- var p = n.state.__a;
107
- n.__v.__k[0] = E(p, p.__c.__P, p.__c.__O);
106
+ var _ = n.state.__a;
107
+ n.__v.__k[0] = R(_, _.__c.__P, _.__c.__O);
108
108
  }
109
- var m;
110
- for (n.setState({ __a: n.__b = null }); m = n.t.pop(); )
111
- m.forceUpdate();
109
+ var h;
110
+ for (n.setState({ __a: n.__b = null }); h = n.t.pop(); )
111
+ h.forceUpdate();
112
112
  }
113
- }, _ = t.__h === !0;
114
- n.__u++ || _ || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(u, u);
115
- }, d.prototype.componentWillUnmount = function() {
113
+ };
114
+ n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(u, u);
115
+ }, p.prototype.componentWillUnmount = function() {
116
116
  this.t = [];
117
- }, d.prototype.render = function(e, t) {
117
+ }, p.prototype.render = function(e, t) {
118
118
  if (this.__b) {
119
119
  if (this.__v.__k) {
120
120
  var r = document.createElement("div"), n = this.__v.__k[0].__c;
@@ -122,10 +122,10 @@ a.unmount = function(e) {
122
122
  }
123
123
  this.__b = null;
124
124
  }
125
- var o = t.__a && c(y, null, e.fallback);
126
- return o && (o.__h = null), [c(y, null, t.__a ? null : e.children), o];
125
+ var o = t.__a && c(m, null, e.fallback);
126
+ return o && (o.__u &= -33), [c(m, null, t.__a ? null : e.children), o];
127
127
  };
128
- var N = function(e, t, r) {
128
+ var k = function(e, t, r) {
129
129
  if (++r[1] === r[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
130
130
  for (r = e.u; r; ) {
131
131
  for (; r.length > 3; )
@@ -135,38 +135,38 @@ var N = function(e, t, r) {
135
135
  e.u = r = r[2];
136
136
  }
137
137
  };
138
- function A(e) {
138
+ function W(e) {
139
139
  return this.getChildContext = function() {
140
140
  return e.context;
141
141
  }, e.children;
142
142
  }
143
- function L(e) {
143
+ function A(e) {
144
144
  var t = this, r = e.i;
145
145
  t.componentWillUnmount = function() {
146
- b(null, t.l), t.l = null, t.i = null;
146
+ y(null, t.l), t.l = null, t.i = null;
147
147
  }, t.i && t.i !== r && t.componentWillUnmount(), t.l || (t.i = r, t.l = { nodeType: 1, parentNode: r, childNodes: [], appendChild: function(n) {
148
148
  this.childNodes.push(n), t.i.appendChild(n);
149
149
  }, insertBefore: function(n, o) {
150
150
  this.childNodes.push(n), t.i.appendChild(n);
151
151
  }, removeChild: function(n) {
152
152
  this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), t.i.removeChild(n);
153
- } }), b(c(A, { context: t.context }, e.__v), t.l);
153
+ } }), y(c(W, { context: t.context }, e.__v), t.l);
154
154
  }
155
- function X(e, t) {
156
- var r = c(L, { __v: e, i: t });
155
+ function Q(e, t) {
156
+ var r = c(A, { __v: e, i: t });
157
157
  return r.containerInfo = t, r;
158
158
  }
159
159
  (f.prototype = new s()).__a = function(e) {
160
- var t = this, r = U(t.__v), n = t.o.get(e);
160
+ var t = this, r = E(t.__v), n = t.o.get(e);
161
161
  return n[0]++, function(o) {
162
162
  var i = function() {
163
- t.props.revealOrder ? (n.push(o), N(t, e, n)) : o();
163
+ t.props.revealOrder ? (n.push(o), k(t, e, n)) : o();
164
164
  };
165
165
  r ? r(i) : i();
166
166
  };
167
167
  }, f.prototype.render = function(e) {
168
168
  this.u = null, this.o = /* @__PURE__ */ new Map();
169
- var t = v(e.children);
169
+ var t = d(e.children);
170
170
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
171
171
  for (var r = t.length; r--; )
172
172
  this.o.set(t[r], this.u = [1, 0, this.u]);
@@ -174,10 +174,10 @@ function X(e, t) {
174
174
  }, f.prototype.componentDidUpdate = f.prototype.componentDidMount = function() {
175
175
  var e = this;
176
176
  this.o.forEach(function(t, r) {
177
- N(e, r, t);
177
+ k(e, r, t);
178
178
  });
179
179
  };
180
- var B = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, H = /^(?: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]/, M = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, V = /[A-Z0-9]/g, z = typeof document < "u", F = function(e) {
180
+ var L = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, H = /^(?: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]/, M = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, V = /[A-Z0-9]/g, z = typeof document < "u", D = function(e) {
181
181
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
182
182
  };
183
183
  s.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
@@ -187,21 +187,21 @@ s.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
187
187
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
188
188
  } });
189
189
  });
190
- var x = a.event;
191
- function j() {
190
+ var N = a.event;
191
+ function F() {
192
192
  }
193
- function D() {
193
+ function T() {
194
194
  return this.cancelBubble;
195
195
  }
196
- function I() {
196
+ function j() {
197
197
  return this.defaultPrevented;
198
198
  }
199
199
  a.event = function(e) {
200
- return x && (e = x(e)), e.persist = j, e.isPropagationStopped = D, e.isDefaultPrevented = I, e.nativeEvent = e;
200
+ return N && (e = N(e)), e.persist = F, e.isPropagationStopped = T, e.isDefaultPrevented = j, e.nativeEvent = e;
201
201
  };
202
- var T = { enumerable: !1, configurable: !0, get: function() {
202
+ var B = { enumerable: !1, configurable: !0, get: function() {
203
203
  return this.class;
204
- } }, P = a.vnode;
204
+ } }, x = a.vnode;
205
205
  a.vnode = function(e) {
206
206
  typeof e.type == "string" && function(t) {
207
207
  var r = t.props, n = t.type, o = {};
@@ -209,45 +209,45 @@ a.vnode = function(e) {
209
209
  var u = r[i];
210
210
  if (!(i === "value" && "defaultValue" in r && u == null || z && i === "children" && n === "noscript" || i === "class" || i === "className")) {
211
211
  var l = i.toLowerCase();
212
- i === "defaultValue" && "value" in r && r.value == null ? i = "value" : i === "download" && u === !0 ? u = "" : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || n !== "input" && n !== "textarea" || F(r.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : M.test(i) ? i = l : n.indexOf("-") === -1 && H.test(i) ? i = i.replace(V, "-$&").toLowerCase() : u === null && (u = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = u;
212
+ i === "defaultValue" && "value" in r && r.value == null ? i = "value" : i === "download" && u === !0 ? u = "" : l === "translate" && u === "no" ? u = !1 : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || n !== "input" && n !== "textarea" || D(r.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : M.test(i) ? i = l : n.indexOf("-") === -1 && H.test(i) ? i = i.replace(V, "-$&").toLowerCase() : u === null && (u = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = u;
213
213
  }
214
214
  }
215
- n == "select" && o.multiple && Array.isArray(o.value) && (o.value = v(r.children).forEach(function(_) {
215
+ n == "select" && o.multiple && Array.isArray(o.value) && (o.value = d(r.children).forEach(function(_) {
216
216
  _.props.selected = o.value.indexOf(_.props.value) != -1;
217
- })), n == "select" && o.defaultValue != null && (o.value = v(r.children).forEach(function(_) {
217
+ })), n == "select" && o.defaultValue != null && (o.value = d(r.children).forEach(function(_) {
218
218
  _.props.selected = o.multiple ? o.defaultValue.indexOf(_.props.value) != -1 : o.defaultValue == _.props.value;
219
- })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", T)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
220
- }(e), e.$$typeof = B, P && P(e);
219
+ })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", B)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
220
+ }(e), e.$$typeof = L, x && x(e);
221
221
  };
222
- var w = a.__r;
222
+ var P = a.__r;
223
223
  a.__r = function(e) {
224
- w && w(e), e.__c;
224
+ P && P(e), e.__c;
225
225
  };
226
- var S = a.diffed;
226
+ var w = a.diffed;
227
227
  a.diffed = function(e) {
228
- S && S(e);
228
+ w && w(e);
229
229
  var t = e.props, r = e.__e;
230
230
  r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value);
231
231
  };
232
232
  export {
233
233
  s as Component,
234
- y as Fragment,
235
- C as PureComponent,
236
- d as Suspense,
234
+ m as Fragment,
235
+ b as PureComponent,
236
+ p as Suspense,
237
237
  f as SuspenseList,
238
- J as createContext,
238
+ q as createContext,
239
239
  c as createElement,
240
- X as createPortal,
241
- K as forwardRef,
242
- Q as lazy,
243
- q as memo,
244
- te as useCallback,
245
- re as useContext,
246
- ne as useEffect,
247
- oe as useImperativeHandle,
248
- ie as useLayoutEffect,
249
- ue as useMemo,
250
- ae as useReducer,
251
- le as useRef,
252
- _e as useState
240
+ Q as createPortal,
241
+ J as forwardRef,
242
+ K as lazy,
243
+ Z as memo,
244
+ ee as useCallback,
245
+ te as useContext,
246
+ re as useEffect,
247
+ ne as useImperativeHandle,
248
+ oe as useLayoutEffect,
249
+ ie as useMemo,
250
+ ue as useReducer,
251
+ ae as useRef,
252
+ le as useState
253
253
  };