@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.
- package/dist/ModalContent-387502da.js +2 -0
- package/dist/{ModalContent-88fdb6f4.js.map → ModalContent-387502da.js.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +6 -6
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +3 -3
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +4 -4
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +15 -15
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +7 -7
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +31 -31
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +15 -15
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +21 -21
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +21 -21
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +30 -30
- package/dist/es/components/external/TransactionsOverview/components/utils.js +1 -1
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -4
- package/dist/es/components/external/UIElement.js +4 -4
- package/dist/es/components/internal/BaseButton/BaseButton.js +11 -11
- package/dist/es/components/internal/BaseList/BaseList.js +2 -2
- package/dist/es/components/internal/Button/Button.js +9 -9
- package/dist/es/components/internal/Button/hooks/useButton.js +2 -2
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +2 -2
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +4 -4
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +13 -13
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
- package/dist/es/components/internal/DataGrid/DataGrid.js +6 -6
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -8
- package/dist/es/components/internal/DataGrid/components/TableBody.js +5 -5
- package/dist/es/components/internal/DataGrid/components/TableCells.js +2 -2
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +2 -2
- package/dist/es/components/internal/DatePicker/DatePicker.js +9 -9
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +9 -9
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +10 -10
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +14 -14
- package/dist/es/components/internal/FilterBar/FilterBar.js +12 -12
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +8 -8
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +26 -26
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +3 -3
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +27 -27
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +17 -17
- package/dist/es/components/internal/FormFields/InputBase.js +16 -16
- package/dist/es/components/internal/FormFields/InputText.js +2 -2
- package/dist/es/components/internal/FormFields/Select/Select.js +27 -27
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +16 -16
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +21 -21
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +9 -9
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +7 -7
- package/dist/es/components/internal/Image/Image.js +2 -2
- package/dist/es/components/internal/Img/Img.js +4 -4
- package/dist/es/components/internal/Modal/Modal.js +16 -16
- package/dist/es/components/internal/Pagination/Pagination.js +4 -4
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +2 -2
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -44
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +15 -15
- package/dist/es/components/internal/Popover/Popover.js +31 -31
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +2 -2
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
- package/dist/es/components/internal/SVGIcons/Filter.js +2 -2
- package/dist/es/components/internal/Tag/Tag.js +3 -3
- package/dist/es/components/internal/Tooltip/Tooltip.js +3 -3
- package/dist/es/components/internal/Typography/Typography.js +2 -2
- package/dist/es/core/Auth/AuthProvider.js +6 -6
- package/dist/es/core/Context/CoreProvider.js +4 -4
- package/dist/es/core/Localization/utils.js +30 -30
- package/dist/es/core/Session/Session.js +1 -1
- package/dist/es/core/core.js +9 -9
- package/dist/es/external/preact/compat/dist/compat.module.js +86 -86
- package/dist/es/external/preact/dist/preact.module.js +241 -234
- package/dist/es/external/preact/hooks/dist/hooks.module.js +86 -84
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +5 -5
- package/dist/es/hooks/element/useClickOutside.js +2 -2
- package/dist/es/hooks/element/useDetachedRender.js +2 -2
- package/dist/es/hooks/element/useFocusCursor.js +2 -2
- package/dist/es/hooks/element/useFocusTrap.js +2 -2
- package/dist/es/hooks/element/usePopoverPositioner.js +27 -27
- package/dist/es/hooks/useCommitAction/useCommitAction.js +2 -2
- package/dist/es/hooks/useFetch/useFetch.js +1 -1
- package/dist/es/hooks/useModalDetails/useModalDetails.js +4 -4
- package/dist/es/hooks/useReactiveState/useReactiveState.js +10 -10
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +4 -4
- package/dist/es/utils/SessionStorage.js +31 -0
- package/dist/index-8daceaea.js +12 -0
- package/dist/index-8daceaea.js.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +1 -5
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
- package/dist/types/components/internal/Button/constants.d.ts +7 -7
- package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts +2 -2
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -3
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/constants.d.ts +21 -21
- package/dist/types/components/internal/FormFields/Select/constants.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +5 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/constants.d.ts +6 -6
- package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +2 -0
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/core/Localization/amount/amount-util.d.ts +28 -0
- package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +468 -3
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +19 -0
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +5 -0
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
- package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
- package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
- package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/core/reflex.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/core/utils.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/hooks/useReflex.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts +104 -0
- package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/SetupResource.d.ts +59 -0
- package/dist/types/types/models/openapi/SetupResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/TransactionsResource.d.ts +198 -0
- package/dist/types/types/models/openapi/TransactionsResource.d.ts.map +1 -0
- package/dist/types/types/models/openapi/endpoints.d.ts +11 -0
- package/dist/types/types/models/openapi/endpoints.d.ts.map +1 -0
- package/dist/types/utils/SessionStorage.d.ts +11 -0
- package/dist/types/utils/SessionStorage.d.ts.map +1 -0
- package/dist/types/utils/common/index.d.ts +2 -2
- package/dist/types/utils/common/index.d.ts.map +1 -1
- package/dist/types/utils/fixedForwardRef.d.ts +3 -3
- package/dist/types/utils/fixedForwardRef.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/Watchable.d.ts +5 -3
- package/dist/types/utils/watchable/core/Watchable.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/helpers.d.ts +4 -2
- package/dist/types/utils/watchable/core/helpers.d.ts.map +1 -1
- package/dist/types/utils/watchable/core/syncEffect.d.ts +1 -1
- package/dist/types/utils/watchable/core/syncEffect.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/ModalContent-88fdb6f4.js +0 -2
- package/dist/es/utils/Storage.js +0 -31
- package/dist/index-7e2df524.js +0 -12
- package/dist/index-7e2df524.js.map +0 -1
- package/dist/types/utils/Storage.d.ts +0 -11
- 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
|
-
) }),
|
|
8
|
+
) }), o = l;
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
o as default
|
|
11
11
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
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:
|
|
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:
|
|
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
|
|
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 &&
|
|
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
|
-
|
|
40
|
+
G as Tooltip
|
|
41
41
|
};
|
|
@@ -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
|
|
5
|
-
import { EMPTY_OBJECT as
|
|
6
|
-
const
|
|
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
|
-
|
|
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(
|
|
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 =
|
|
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
|
|
6
|
-
import
|
|
5
|
+
import u from "../../hooks/useBooleanState/useBooleanState.js";
|
|
6
|
+
import p from "../Localization/Localization.js";
|
|
7
7
|
const C = ({
|
|
8
|
-
i18n: o = new
|
|
8
|
+
i18n: o = new p().i18n,
|
|
9
9
|
children: a,
|
|
10
10
|
commonProps: r,
|
|
11
11
|
loadingContext: e
|
|
12
12
|
}) => {
|
|
13
|
-
const [s, m] =
|
|
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
|
|
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
|
|
5
|
-
function _(e,
|
|
4
|
+
const L = (e) => e.substring(0, 2).toLowerCase();
|
|
5
|
+
function _(e, r) {
|
|
6
6
|
if (!e)
|
|
7
7
|
return null;
|
|
8
|
-
const
|
|
9
|
-
return
|
|
8
|
+
const n = L(e);
|
|
9
|
+
return r.find((t) => L(t) === n) || null;
|
|
10
10
|
}
|
|
11
11
|
function i(e) {
|
|
12
|
-
const
|
|
13
|
-
if (d.test(
|
|
14
|
-
return
|
|
15
|
-
const [
|
|
16
|
-
if (!
|
|
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 = `${
|
|
18
|
+
const o = `${n.toLowerCase()}-${t.toUpperCase()}`;
|
|
19
19
|
return o.length === 5 ? o : null;
|
|
20
20
|
}
|
|
21
|
-
function a(e,
|
|
22
|
-
const
|
|
23
|
-
if (!
|
|
24
|
-
return
|
|
25
|
-
const
|
|
26
|
-
return
|
|
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 = {},
|
|
29
|
-
return Object.keys(e).reduce((
|
|
30
|
-
const o = i(
|
|
31
|
-
return o && e[
|
|
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,
|
|
35
|
-
const
|
|
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],
|
|
38
|
-
const u = `${
|
|
39
|
-
return c(e, u) &&
|
|
40
|
-
}, h = async (e,
|
|
41
|
-
const
|
|
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
|
-
...!!
|
|
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
|
-
|
|
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/
|
|
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) {
|
package/dist/es/core/core.js
CHANGED
|
@@ -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
|
|
7
|
-
import { EMPTY_OBJECT as
|
|
8
|
-
const
|
|
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
|
|
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 =
|
|
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:
|
|
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.
|
|
87
|
-
revision: "
|
|
86
|
+
version: "1.0.0-beta.3",
|
|
87
|
+
revision: "8c9130d",
|
|
88
88
|
branch: "main",
|
|
89
|
-
buildId: "@adyen/adyen-pe-web-
|
|
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
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
function
|
|
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
|
|
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
|
|
19
|
-
this.props = e;
|
|
18
|
+
function b(e, t) {
|
|
19
|
+
this.props = e, this.context = t;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
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 :
|
|
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
|
-
(
|
|
32
|
-
return
|
|
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
|
|
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),
|
|
36
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), C && C(e);
|
|
37
37
|
};
|
|
38
|
-
var
|
|
39
|
-
function
|
|
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 =
|
|
41
|
+
var n = S({}, r);
|
|
42
42
|
return delete n.ref, e(n, r.ref || null);
|
|
43
43
|
}
|
|
44
|
-
return t.$$typeof =
|
|
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
|
|
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
|
-
|
|
53
|
+
$(e, t, r, n);
|
|
54
54
|
};
|
|
55
|
-
var
|
|
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 =
|
|
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
|
|
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
|
|
66
|
-
}), e.__c && e.__c.__P === t && (e.__e && r.
|
|
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
|
|
68
|
+
function p() {
|
|
69
69
|
this.__u = 0, this.t = null, this.__b = null;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function E(e) {
|
|
72
72
|
var t = e.__.__c;
|
|
73
73
|
return t && t.__a && t.__a(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
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.
|
|
96
|
-
}, (
|
|
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 =
|
|
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
|
|
107
|
-
n.__v.__k[0] =
|
|
106
|
+
var _ = n.state.__a;
|
|
107
|
+
n.__v.__k[0] = R(_, _.__c.__P, _.__c.__O);
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
for (n.setState({ __a: n.__b = null });
|
|
111
|
-
|
|
109
|
+
var h;
|
|
110
|
+
for (n.setState({ __a: n.__b = null }); h = n.t.pop(); )
|
|
111
|
+
h.forceUpdate();
|
|
112
112
|
}
|
|
113
|
-
}
|
|
114
|
-
n.__u++ ||
|
|
115
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
126
|
-
return o && (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
|
|
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
|
|
138
|
+
function W(e) {
|
|
139
139
|
return this.getChildContext = function() {
|
|
140
140
|
return e.context;
|
|
141
141
|
}, e.children;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function A(e) {
|
|
144
144
|
var t = this, r = e.i;
|
|
145
145
|
t.componentWillUnmount = function() {
|
|
146
|
-
|
|
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
|
-
} }),
|
|
153
|
+
} }), y(c(W, { context: t.context }, e.__v), t.l);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
var r = c(
|
|
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 =
|
|
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),
|
|
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 =
|
|
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
|
-
|
|
177
|
+
k(e, r, t);
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
|
-
var
|
|
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
|
|
191
|
-
function
|
|
190
|
+
var N = a.event;
|
|
191
|
+
function F() {
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function T() {
|
|
194
194
|
return this.cancelBubble;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function j() {
|
|
197
197
|
return this.defaultPrevented;
|
|
198
198
|
}
|
|
199
199
|
a.event = function(e) {
|
|
200
|
-
return
|
|
200
|
+
return N && (e = N(e)), e.persist = F, e.isPropagationStopped = T, e.isDefaultPrevented = j, e.nativeEvent = e;
|
|
201
201
|
};
|
|
202
|
-
var
|
|
202
|
+
var B = { enumerable: !1, configurable: !0, get: function() {
|
|
203
203
|
return this.class;
|
|
204
|
-
} },
|
|
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" ||
|
|
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 =
|
|
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 =
|
|
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",
|
|
220
|
-
}(e), e.$$typeof =
|
|
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
|
|
222
|
+
var P = a.__r;
|
|
223
223
|
a.__r = function(e) {
|
|
224
|
-
|
|
224
|
+
P && P(e), e.__c;
|
|
225
225
|
};
|
|
226
|
-
var
|
|
226
|
+
var w = a.diffed;
|
|
227
227
|
a.diffed = function(e) {
|
|
228
|
-
|
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
m as Fragment,
|
|
235
|
+
b as PureComponent,
|
|
236
|
+
p as Suspense,
|
|
237
237
|
f as SuspenseList,
|
|
238
|
-
|
|
238
|
+
q as createContext,
|
|
239
239
|
c as createElement,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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
|
};
|