@commercetools-frontend/experimental-components 5.4.2 → 5.4.4
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/commercetools-frontend-experimental-components.cjs.dev.js +323 -173
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +323 -173
- package/dist/commercetools-frontend-experimental-components.esm.js +324 -175
- package/dist/styles.css +69 -60
- package/package.json +16 -15
|
@@ -16,7 +16,7 @@ import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
|
16
16
|
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
17
17
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
18
18
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
19
|
-
import React, { useEffect, useCallback, useState, useRef, useMemo, PureComponent, Component, createContext, memo,
|
|
19
|
+
import React, { useEffect, useCallback, useState, useRef, useMemo, PureComponent, Component, useContext, createContext, memo, forwardRef } from 'react';
|
|
20
20
|
import flowRight from 'lodash/flowRight';
|
|
21
21
|
import { graphql as graphql$1, withApollo } from '@apollo/client/react/hoc';
|
|
22
22
|
import flatten from 'lodash/flatten';
|
|
@@ -41,7 +41,7 @@ import { NO_VALUE_FALLBACK, GRAPHQL_TARGETS, DOMAINS, MC_API_PROXY_TARGETS, SUPP
|
|
|
41
41
|
import { reportErrorToSentry } from '@commercetools-frontend/sentry';
|
|
42
42
|
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
43
43
|
import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
|
|
44
|
-
import { usePaginationState, useDataTableSortingState, useToggleState, Spacings, Text, Link, LoadingSpinner, Constraints, AsyncSelectInput, AccessibleHidden, SecondaryIconButton, CloseIcon, SearchIcon, Tooltip, MoneyInput, TextInput, MultilineTextInput, LocalizedTextInput, LocalizedMultilineTextInput, SelectInput, NumberInput, SearchSelectInput, DateInput, DateTimeInput, TimeInput, SecondaryButton, RevertIcon,
|
|
44
|
+
import { usePaginationState, useDataTableSortingState, useToggleState, Spacings, Text, Link, LoadingSpinner, Constraints, AsyncSelectInput, AccessibleHidden, SecondaryIconButton, CloseIcon, SearchIcon, Tooltip, MoneyInput, TextInput, IconButton, DragIcon, Grid, customProperties, MultilineTextInput, LocalizedTextInput, LocalizedMultilineTextInput, SelectInput, NumberInput, SearchSelectInput, DateInput, DateTimeInput, TimeInput, SecondaryButton, RevertIcon, SubdirectoryArrowIcon, Tag, EditIcon, FieldLabel, WarningIcon, FlatButton, AngleUpIcon, AngleDownIcon, BinLinearIcon, PlusBoldIcon, ErrorIcon, SwitcherIcon, SelectField, AsyncSelectField, SearchSelectField, FieldErrors, ContentNotification, ListIcon, CheckboxInput, SelectableSearchInput, SearchTextInput, CollapsiblePanel, designTokens } from '@commercetools-frontend/ui-kit';
|
|
45
45
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
46
46
|
import { useShowNotification, useShowApiErrorNotification, useOnActionError, useHideAllPageNotifications } from '@commercetools-frontend/actions-global';
|
|
47
47
|
import PropTypes from 'prop-types';
|
|
@@ -68,8 +68,8 @@ import has from 'lodash/has';
|
|
|
68
68
|
import _toArray from '@babel/runtime-corejs3/helpers/esm/toArray';
|
|
69
69
|
import _reverseInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reverse';
|
|
70
70
|
import { useAsyncDispatch, actions } from '@commercetools-frontend/sdk';
|
|
71
|
-
import { useApolloClient as useApolloClient$1, useQuery as useQuery$2 } from '@apollo/client';
|
|
72
71
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
72
|
+
import { useApolloClient as useApolloClient$1, useQuery as useQuery$2 } from '@apollo/client';
|
|
73
73
|
import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
74
74
|
import _parseFloat from '@babel/runtime-corejs3/core-js-stable/parse-float';
|
|
75
75
|
import omit from 'lodash/omit';
|
|
@@ -85,6 +85,8 @@ import omitBy from 'lodash/omitBy';
|
|
|
85
85
|
import _everyInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
86
86
|
import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
|
|
87
87
|
import { css } from '@emotion/react';
|
|
88
|
+
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
89
|
+
import ReactDOM from 'react-dom';
|
|
88
90
|
import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
89
91
|
import { defaultMemoize } from 'reselect';
|
|
90
92
|
import _Map from '@babel/runtime-corejs3/core-js-stable/map';
|
|
@@ -95,7 +97,6 @@ import merge from 'lodash/merge';
|
|
|
95
97
|
import set from 'lodash/set';
|
|
96
98
|
import { v4 } from 'uuid';
|
|
97
99
|
import { ErrorMessage } from '@commercetools-frontend/ui-kit/';
|
|
98
|
-
import ReactDOM from 'react-dom';
|
|
99
100
|
import { CustomSelectInputOption } from '@commercetools-uikit/select-utils';
|
|
100
101
|
import memoize from 'memoize-one';
|
|
101
102
|
import { filterAriaAttributes, filterDataAttributes as filterDataAttributes$1 } from '@commercetools-uikit/utils';
|
|
@@ -1590,8 +1591,8 @@ const getData = (code, field) => {
|
|
|
1590
1591
|
};
|
|
1591
1592
|
const getFractionDigit = code => getData(code, 'fractionDigit');
|
|
1592
1593
|
|
|
1593
|
-
function ownKeys$
|
|
1594
|
-
function _objectSpread$
|
|
1594
|
+
function ownKeys$1p(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1595
|
+
function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1p(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1p(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1595
1596
|
function formatMoneyRangeValue(value, intl) {
|
|
1596
1597
|
var _context;
|
|
1597
1598
|
if (value.from === value.to) return formatMoneyValue(value.from, value.currency, intl);
|
|
@@ -1601,7 +1602,7 @@ function formatMoneyRangeValue(value, intl) {
|
|
|
1601
1602
|
return '';
|
|
1602
1603
|
}
|
|
1603
1604
|
function formatMoneyValue(amount, currency, intl) {
|
|
1604
|
-
return formatMoney$2(_objectSpread$
|
|
1605
|
+
return formatMoney$2(_objectSpread$1p({
|
|
1605
1606
|
centAmount: amount,
|
|
1606
1607
|
fractionDigits: getFractionDigit(currency)
|
|
1607
1608
|
}, currency ? {
|
|
@@ -1618,7 +1619,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
1618
1619
|
}
|
|
1619
1620
|
function formatMoney$2(moneyValue, intl, options) {
|
|
1620
1621
|
var _moneyValue$fractione;
|
|
1621
|
-
return intl.formatNumber((_moneyValue$fractione = moneyValue.fractionedAmount) !== null && _moneyValue$fractione !== void 0 ? _moneyValue$fractione : getFractionedAmount(moneyValue), _objectSpread$
|
|
1622
|
+
return intl.formatNumber((_moneyValue$fractione = moneyValue.fractionedAmount) !== null && _moneyValue$fractione !== void 0 ? _moneyValue$fractione : getFractionedAmount(moneyValue), _objectSpread$1p({
|
|
1622
1623
|
style: 'currency',
|
|
1623
1624
|
currency: moneyValue.currencyCode,
|
|
1624
1625
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
@@ -1872,8 +1873,8 @@ const wrapDisplayName = (BaseComponent, hocName) => {
|
|
|
1872
1873
|
return _concatInstanceProperty(_context = "".concat(hocName, "(")).call(_context, getDisplayName(BaseComponent), ")");
|
|
1873
1874
|
};
|
|
1874
1875
|
|
|
1875
|
-
function ownKeys$
|
|
1876
|
-
function _objectSpread$
|
|
1876
|
+
function ownKeys$1o(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1877
|
+
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1o(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1o(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1877
1878
|
const injectDataTablePaginationState = initialValues => Component => {
|
|
1878
1879
|
const WithDataTablePaginationState = props => {
|
|
1879
1880
|
var _initialValues$tableS, _initialValues$tableS2;
|
|
@@ -1887,7 +1888,7 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1887
1888
|
key: initialValues === null || initialValues === void 0 || (_initialValues$tableS = initialValues.tableSorting) === null || _initialValues$tableS === void 0 ? void 0 : _initialValues$tableS.key,
|
|
1888
1889
|
order: initialValues === null || initialValues === void 0 || (_initialValues$tableS2 = initialValues.tableSorting) === null || _initialValues$tableS2 === void 0 ? void 0 : _initialValues$tableS2.order
|
|
1889
1890
|
});
|
|
1890
|
-
return jsx(Component, _objectSpread$
|
|
1891
|
+
return jsx(Component, _objectSpread$1o(_objectSpread$1o({}, props), {}, {
|
|
1891
1892
|
dataTablePaginationState: {
|
|
1892
1893
|
page,
|
|
1893
1894
|
perPage,
|
|
@@ -1899,8 +1900,8 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1899
1900
|
return WithDataTablePaginationState;
|
|
1900
1901
|
};
|
|
1901
1902
|
|
|
1902
|
-
function ownKeys$
|
|
1903
|
-
function _objectSpread$
|
|
1903
|
+
function ownKeys$1n(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1904
|
+
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1n(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1904
1905
|
const injectNotifications = function () {
|
|
1905
1906
|
let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'notifications';
|
|
1906
1907
|
return Component => {
|
|
@@ -1915,7 +1916,7 @@ const injectNotifications = function () {
|
|
|
1915
1916
|
onActionError,
|
|
1916
1917
|
hideAllPageNotifications
|
|
1917
1918
|
};
|
|
1918
|
-
return jsx(Component, _objectSpread$
|
|
1919
|
+
return jsx(Component, _objectSpread$1n(_objectSpread$1n({}, props), {}, {
|
|
1919
1920
|
[propName]: notifications
|
|
1920
1921
|
}));
|
|
1921
1922
|
};
|
|
@@ -1924,22 +1925,22 @@ const injectNotifications = function () {
|
|
|
1924
1925
|
};
|
|
1925
1926
|
};
|
|
1926
1927
|
|
|
1927
|
-
function ownKeys$
|
|
1928
|
-
function _objectSpread$
|
|
1928
|
+
function ownKeys$1m(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1929
|
+
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1m(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1929
1930
|
function isPropsMapper(mapProps) {
|
|
1930
1931
|
return typeof mapProps === 'function';
|
|
1931
1932
|
}
|
|
1932
1933
|
const withProps = mapProps => Component => {
|
|
1933
1934
|
const EnhancedWithProps = ownProps => {
|
|
1934
|
-
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$
|
|
1935
|
-
return jsx(Component, _objectSpread$
|
|
1935
|
+
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1m(_objectSpread$1m({}, ownProps), mapProps(ownProps)) : _objectSpread$1m(_objectSpread$1m({}, ownProps), mapProps);
|
|
1936
|
+
return jsx(Component, _objectSpread$1m({}, enhancedProps));
|
|
1936
1937
|
};
|
|
1937
1938
|
EnhancedWithProps.displayName = wrapDisplayName(Component, 'withProps');
|
|
1938
1939
|
return EnhancedWithProps;
|
|
1939
1940
|
};
|
|
1940
1941
|
|
|
1941
|
-
function ownKeys$
|
|
1942
|
-
function _objectSpread$
|
|
1942
|
+
function ownKeys$1l(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1943
|
+
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1943
1944
|
const useRedirectEffect = _ref => {
|
|
1944
1945
|
let goTo = _ref.goTo;
|
|
1945
1946
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1959,30 +1960,30 @@ const defaultOptions$5 = {
|
|
|
1959
1960
|
skip: () => false
|
|
1960
1961
|
};
|
|
1961
1962
|
const withRedirectTo = options => Component => {
|
|
1962
|
-
const mergedOptions = _objectSpread$
|
|
1963
|
+
const mergedOptions = _objectSpread$1l(_objectSpread$1l({}, defaultOptions$5), options);
|
|
1963
1964
|
const WithRedirectTo = props => {
|
|
1964
1965
|
if (!mergedOptions.skip(props)) {
|
|
1965
1966
|
return jsx(RedirectTo, {
|
|
1966
1967
|
goTo: options.selectGoTo(props)
|
|
1967
1968
|
});
|
|
1968
1969
|
}
|
|
1969
|
-
return jsx(Component, _objectSpread$
|
|
1970
|
+
return jsx(Component, _objectSpread$1l({}, props));
|
|
1970
1971
|
};
|
|
1971
1972
|
WithRedirectTo.displayName = 'WithFirstStepRedirect';
|
|
1972
1973
|
return WithRedirectTo;
|
|
1973
1974
|
};
|
|
1974
1975
|
|
|
1975
|
-
function ownKeys$
|
|
1976
|
-
function _objectSpread$
|
|
1976
|
+
function ownKeys$1k(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1977
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1k(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1977
1978
|
const defaultOptions$4 = {
|
|
1978
1979
|
propName: 'modalState',
|
|
1979
1980
|
isInitiallyOpen: false
|
|
1980
1981
|
};
|
|
1981
1982
|
const injectModalState$1 = options => Component => {
|
|
1982
|
-
const mergedOptions = _objectSpread$
|
|
1983
|
+
const mergedOptions = _objectSpread$1k(_objectSpread$1k({}, defaultOptions$4), options);
|
|
1983
1984
|
const WithModalState = props => {
|
|
1984
1985
|
const modalState = useModalState(mergedOptions.isInitiallyOpen);
|
|
1985
|
-
return jsx(Component, _objectSpread$
|
|
1986
|
+
return jsx(Component, _objectSpread$1k(_objectSpread$1k({}, props), {}, {
|
|
1986
1987
|
[mergedOptions.propName]: modalState
|
|
1987
1988
|
}));
|
|
1988
1989
|
};
|
|
@@ -1990,17 +1991,17 @@ const injectModalState$1 = options => Component => {
|
|
|
1990
1991
|
return WithModalState;
|
|
1991
1992
|
};
|
|
1992
1993
|
|
|
1993
|
-
function ownKeys$
|
|
1994
|
-
function _objectSpread$
|
|
1994
|
+
function ownKeys$1j(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1995
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1j(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1995
1996
|
const defaultOptions$3 = {
|
|
1996
1997
|
propName: 'toggleState',
|
|
1997
1998
|
isInitiallyOpen: false
|
|
1998
1999
|
};
|
|
1999
2000
|
const injectModalState = options => Component => {
|
|
2000
|
-
const mergedOptions = _objectSpread$
|
|
2001
|
+
const mergedOptions = _objectSpread$1j(_objectSpread$1j({}, defaultOptions$3), options);
|
|
2001
2002
|
const WithToggleState = props => {
|
|
2002
2003
|
const toggleState = useToggleState(mergedOptions.isInitiallyOpen);
|
|
2003
|
-
return jsx(Component, _objectSpread$
|
|
2004
|
+
return jsx(Component, _objectSpread$1j(_objectSpread$1j({}, props), {}, {
|
|
2004
2005
|
[mergedOptions.propName]: toggleState
|
|
2005
2006
|
}));
|
|
2006
2007
|
};
|
|
@@ -2008,8 +2009,8 @@ const injectModalState = options => Component => {
|
|
|
2008
2009
|
return WithToggleState;
|
|
2009
2010
|
};
|
|
2010
2011
|
|
|
2011
|
-
function ownKeys$
|
|
2012
|
-
function _objectSpread$
|
|
2012
|
+
function ownKeys$1i(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2013
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1i(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1i(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2013
2014
|
const defaultOptions$2 = {
|
|
2014
2015
|
storageType: 'local',
|
|
2015
2016
|
segregateByUser: true
|
|
@@ -2027,7 +2028,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
|
|
|
2027
2028
|
const isNil = value => typeof value === 'undefined' || value === null;
|
|
2028
2029
|
const useStorage = (storageKey, initialStorageValue, options) => {
|
|
2029
2030
|
var _context;
|
|
2030
|
-
const mergedOptions = _objectSpread$
|
|
2031
|
+
const mergedOptions = _objectSpread$1i(_objectSpread$1i({}, defaultOptions$2), options);
|
|
2031
2032
|
const userId = useApplicationContext(context => {
|
|
2032
2033
|
var _context$user;
|
|
2033
2034
|
return (_context$user = context.user) === null || _context$user === void 0 ? void 0 : _context$user.id;
|
|
@@ -2075,8 +2076,8 @@ const useStorage = (storageKey, initialStorageValue, options) => {
|
|
|
2075
2076
|
return [actualStorageValue, writeToStorage, readFromStorage];
|
|
2076
2077
|
};
|
|
2077
2078
|
|
|
2078
|
-
function ownKeys$
|
|
2079
|
-
function _objectSpread$
|
|
2079
|
+
function ownKeys$1h(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2080
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1h(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2080
2081
|
const defaultOptions$1 = {
|
|
2081
2082
|
propName: 'storage',
|
|
2082
2083
|
storageKey: '',
|
|
@@ -2089,7 +2090,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
2089
2090
|
* Options are being merged by spreading as destructuring and defaulting in
|
|
2090
2091
|
* argument position does not allow passing specification of option(s).
|
|
2091
2092
|
*/
|
|
2092
|
-
const mergedOptions = _objectSpread$
|
|
2093
|
+
const mergedOptions = _objectSpread$1h(_objectSpread$1h({}, defaultOptions$1), options);
|
|
2093
2094
|
const WithStorage = props => {
|
|
2094
2095
|
const _useStorage = useStorage(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
|
|
2095
2096
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
@@ -2103,7 +2104,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
2103
2104
|
readFromStorage
|
|
2104
2105
|
}
|
|
2105
2106
|
};
|
|
2106
|
-
return jsx(WrappedComponent, _objectSpread$
|
|
2107
|
+
return jsx(WrappedComponent, _objectSpread$1h(_objectSpread$1h({}, props), storageProp));
|
|
2107
2108
|
};
|
|
2108
2109
|
WithStorage.displayName = wrapDisplayName(WrappedComponent, 'WithStorage');
|
|
2109
2110
|
return WithStorage;
|
|
@@ -2147,8 +2148,8 @@ const usePrevious = value => {
|
|
|
2147
2148
|
return ref.current;
|
|
2148
2149
|
};
|
|
2149
2150
|
|
|
2150
|
-
function ownKeys$
|
|
2151
|
-
function _objectSpread$
|
|
2151
|
+
function ownKeys$1g(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2152
|
+
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1g(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1g(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2152
2153
|
var FetchStoresQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sort" } }, type: { kind: "ListType", type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "Variable", name: { kind: "Name", value: "sort" } } }, { kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "count" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "offset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "StoreBasicInfo" }, directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "code" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "distributionChannelsRef" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "distributionChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "supplyChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "productSelections" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "mode" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "StoreBasicInfo" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Store" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "createdAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastModifiedAt" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 1089, source: { body: "#import '../../utils/graphql/fragments/store-basic-info.ctp.graphql'\n\nquery FetchStoresQuery(\n $limit: Int\n $offset: Int\n $sort: [String!]\n $where: String\n $excludeExtendedStoresList: Boolean!\n $excludeProductSelections: Boolean!\n) {\n stores(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n ...StoreBasicInfo\n countries {\n code\n }\n languages @skip(if: $excludeExtendedStoresList)\n distributionChannelsRef {\n id\n }\n distributionChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n supplyChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n mode\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
2153
2154
|
const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
2154
2155
|
var _storesQueryResult$re;
|
|
@@ -2159,7 +2160,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
2159
2160
|
offset: storesQueryResult.offset,
|
|
2160
2161
|
results: (_storesQueryResult$re = storesQueryResult.results) === null || _storesQueryResult$re === void 0 ? void 0 : _mapInstanceProperty(_storesQueryResult$re).call(_storesQueryResult$re, store => {
|
|
2161
2162
|
var _store$productSelecti;
|
|
2162
|
-
return _objectSpread$
|
|
2163
|
+
return _objectSpread$1g(_objectSpread$1g({}, store), {}, {
|
|
2163
2164
|
productSelections: (_store$productSelecti = store.productSelections) === null || _store$productSelecti === void 0 ? void 0 : _filterInstanceProperty(_store$productSelecti).call(_store$productSelecti, productSelectionRef => Boolean(productSelectionRef.productSelection))
|
|
2164
2165
|
});
|
|
2165
2166
|
})
|
|
@@ -2167,7 +2168,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
2167
2168
|
};
|
|
2168
2169
|
const createQueryVariables$6 = ownProps => {
|
|
2169
2170
|
var _context;
|
|
2170
|
-
return _objectSpread$
|
|
2171
|
+
return _objectSpread$1g(_objectSpread$1g({
|
|
2171
2172
|
limit: ownProps.limit,
|
|
2172
2173
|
offset: ownProps.offset,
|
|
2173
2174
|
sort: _sortInstanceProperty(ownProps)
|
|
@@ -2322,8 +2323,8 @@ function useDidFormValidationFail() {
|
|
|
2322
2323
|
return Boolean(didFormValidationFail);
|
|
2323
2324
|
}
|
|
2324
2325
|
|
|
2325
|
-
function ownKeys$
|
|
2326
|
-
function _objectSpread$
|
|
2326
|
+
function ownKeys$1f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2327
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1f(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2327
2328
|
const TEN_MINUTES_IN_MS = 600000;
|
|
2328
2329
|
const defaultOptions = {
|
|
2329
2330
|
reminderInterval: REMINDER_OPTION_1_DAY,
|
|
@@ -2351,7 +2352,7 @@ const useHasReminderExpired = readReminderInterval => {
|
|
|
2351
2352
|
};
|
|
2352
2353
|
const usePersistedReminder = function () {
|
|
2353
2354
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2354
|
-
const mergedOptions = _objectSpread$
|
|
2355
|
+
const mergedOptions = _objectSpread$1f(_objectSpread$1f({}, defaultOptions), options);
|
|
2355
2356
|
const _useStorage = useStorage(mergedOptions.storageKey, null),
|
|
2356
2357
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
2357
2358
|
initialChosenReminderInterval = _useStorage2[0],
|
|
@@ -2415,8 +2416,8 @@ var messages$I = defineMessages({
|
|
|
2415
2416
|
}
|
|
2416
2417
|
});
|
|
2417
2418
|
|
|
2418
|
-
function ownKeys$
|
|
2419
|
-
function _objectSpread$
|
|
2419
|
+
function ownKeys$1e(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2420
|
+
function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1e(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1e(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2420
2421
|
const LinkToProfile = props => {
|
|
2421
2422
|
return jsx(Link, {
|
|
2422
2423
|
to: "/account/profile",
|
|
@@ -2436,7 +2437,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
|
|
|
2436
2437
|
isBold: true,
|
|
2437
2438
|
intlMessage: messages$I.profileUpdated
|
|
2438
2439
|
}), jsx(Text.Body, {
|
|
2439
|
-
intlMessage: _objectSpread$
|
|
2440
|
+
intlMessage: _objectSpread$1e(_objectSpread$1e({}, messages$I.addMoreInformation), {}, {
|
|
2440
2441
|
values: {
|
|
2441
2442
|
newline: getNewLine
|
|
2442
2443
|
}
|
|
@@ -2445,7 +2446,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
|
|
|
2445
2446
|
}), jsx(Spacings.Stack, {
|
|
2446
2447
|
scale: "xs",
|
|
2447
2448
|
children: jsx(Text.Body, {
|
|
2448
|
-
intlMessage: _objectSpread$
|
|
2449
|
+
intlMessage: _objectSpread$1e(_objectSpread$1e({}, messages$I.informationAndProfileLink), {}, {
|
|
2449
2450
|
values: {
|
|
2450
2451
|
newline: getNewLine,
|
|
2451
2452
|
link: getLinkToProfile
|
|
@@ -2602,8 +2603,8 @@ const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
|
2602
2603
|
// eslint-disable-next-line testing-library/await-async-utils
|
|
2603
2604
|
useCallback(debounce(promiseCallback, wait), [promiseCallback]);
|
|
2604
2605
|
|
|
2605
|
-
function ownKeys$
|
|
2606
|
-
function _objectSpread$
|
|
2606
|
+
function ownKeys$1d(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2607
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1d(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1d(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2607
2608
|
const prepareMutableColumnProps = (columnConfig, mutableColumnProps) => {
|
|
2608
2609
|
const updatedColumnProps = {};
|
|
2609
2610
|
_forEachInstanceProperty(mutableColumnProps).call(mutableColumnProps, columnProp => {
|
|
@@ -2623,14 +2624,14 @@ const retrieveColumnsWithCachedConfiguration = _ref => {
|
|
|
2623
2624
|
mutableColumnProps = _ref.mutableColumnProps;
|
|
2624
2625
|
return _mapInstanceProperty(_context = _filterInstanceProperty(cachedVisibleTableConfiguration).call(cachedVisibleTableConfiguration, cachedColumn => _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedColumn.key))).call(_context, cachedConfig => {
|
|
2625
2626
|
const initialColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedConfig.key);
|
|
2626
|
-
return _objectSpread$
|
|
2627
|
+
return _objectSpread$1d(_objectSpread$1d({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
|
|
2627
2628
|
});
|
|
2628
2629
|
};
|
|
2629
2630
|
const handleCacheUpdate = _ref2 => {
|
|
2630
2631
|
let update = _ref2.update,
|
|
2631
2632
|
cachedVisibleTableConfiguration = _ref2.cachedVisibleTableConfiguration,
|
|
2632
2633
|
updateCachedTableConfiguration = _ref2.updateCachedTableConfiguration;
|
|
2633
|
-
return updateCachedTableConfiguration(_objectSpread$
|
|
2634
|
+
return updateCachedTableConfiguration(_objectSpread$1d(_objectSpread$1d({}, pick(cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
|
|
2634
2635
|
};
|
|
2635
2636
|
|
|
2636
2637
|
// Signature:
|
|
@@ -2659,7 +2660,7 @@ const usePersistedTableConfiguration = props => {
|
|
|
2659
2660
|
return {
|
|
2660
2661
|
columnsConfig: _mapInstanceProperty(initialVisibleColumnKeys).call(initialVisibleColumnKeys, visibleColumnKey => {
|
|
2661
2662
|
const visibleColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, columnConfig => columnConfig.key === visibleColumnKey);
|
|
2662
|
-
return _objectSpread$
|
|
2663
|
+
return _objectSpread$1d({
|
|
2663
2664
|
key: visibleColumnKey
|
|
2664
2665
|
}, prepareMutableColumnProps(visibleColumnConfig, mutableColumnProps));
|
|
2665
2666
|
}),
|
|
@@ -2730,14 +2731,14 @@ const handlers$4 = {
|
|
|
2730
2731
|
}
|
|
2731
2732
|
};
|
|
2732
2733
|
|
|
2733
|
-
function ownKeys$
|
|
2734
|
-
function _objectSpread$
|
|
2734
|
+
function ownKeys$1c(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2735
|
+
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1c(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1c(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2735
2736
|
|
|
2736
2737
|
// eslint-disable-next-line import/prefer-default-export
|
|
2737
2738
|
const convertProductSelectionsFromGraphQl = productSelections => {
|
|
2738
2739
|
var _context;
|
|
2739
|
-
return (productSelections === null || productSelections === void 0 ? void 0 : productSelections.results) && _objectSpread$
|
|
2740
|
-
results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$
|
|
2740
|
+
return (productSelections === null || productSelections === void 0 ? void 0 : productSelections.results) && _objectSpread$1c(_objectSpread$1c({}, productSelections), {}, {
|
|
2741
|
+
results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$1c({}, applyTransformedLocalizedFields(productSelection, [{
|
|
2741
2742
|
from: 'nameAllLocales',
|
|
2742
2743
|
to: 'name'
|
|
2743
2744
|
}])))
|
|
@@ -2913,8 +2914,8 @@ var commonPickerMessages = defineMessages({
|
|
|
2913
2914
|
}
|
|
2914
2915
|
});
|
|
2915
2916
|
|
|
2916
|
-
function ownKeys$
|
|
2917
|
-
function _objectSpread$
|
|
2917
|
+
function ownKeys$1b(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2918
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1b(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1b(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2918
2919
|
var GetChannelsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channels" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "ListValue", values: [{ kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, { kind: "StringValue", value: "key", block: false }] } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "60" } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
2919
2920
|
var GetChannelQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channel" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
2920
2921
|
var PickerInputChannel = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
@@ -2935,10 +2936,10 @@ const ChannelPickerInput = _ref => {
|
|
|
2935
2936
|
const _useIntl = useIntl(),
|
|
2936
2937
|
formatMessage = _useIntl.formatMessage;
|
|
2937
2938
|
const dataLocale = useApplicationContext(applicationContext => applicationContext.dataLocale);
|
|
2938
|
-
const variables = useMemo(() => _objectSpread$
|
|
2939
|
+
const variables = useMemo(() => _objectSpread$1b({
|
|
2939
2940
|
sortByNamePath: "name.".concat(dataLocale)
|
|
2940
2941
|
}, role && {
|
|
2941
|
-
|
|
2942
|
+
extraWhere: "roles contains any (\"".concat(role, "\")")
|
|
2942
2943
|
}), [dataLocale, role]);
|
|
2943
2944
|
const _useState = useState(),
|
|
2944
2945
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3064,8 +3065,8 @@ var FormattedDateTime$1 = injectIntl(FormattedDateTime);
|
|
|
3064
3065
|
|
|
3065
3066
|
const keepDisplayName = component => setDisplayName(getDisplayName(component));
|
|
3066
3067
|
|
|
3067
|
-
function ownKeys$
|
|
3068
|
-
function _objectSpread$
|
|
3068
|
+
function ownKeys$1a(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3069
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1a(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3069
3070
|
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3070
3071
|
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3071
3072
|
const withMouseOverState = BaseComponent => {
|
|
@@ -3097,7 +3098,7 @@ const withMouseOverState = BaseComponent => {
|
|
|
3097
3098
|
handleMouseOver: this.handleMouseOver,
|
|
3098
3099
|
handleMouseOut: this.handleMouseOut
|
|
3099
3100
|
};
|
|
3100
|
-
return jsx(BaseComponent, _objectSpread$
|
|
3101
|
+
return jsx(BaseComponent, _objectSpread$1a({}, _objectSpread$1a(_objectSpread$1a({}, this.props), injectedProps)));
|
|
3101
3102
|
}
|
|
3102
3103
|
}]);
|
|
3103
3104
|
return WithMouseOverState;
|
|
@@ -3106,8 +3107,8 @@ const withMouseOverState = BaseComponent => {
|
|
|
3106
3107
|
return WithMouseOverState;
|
|
3107
3108
|
};
|
|
3108
3109
|
|
|
3109
|
-
function ownKeys$
|
|
3110
|
-
function _objectSpread$
|
|
3110
|
+
function ownKeys$19(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3111
|
+
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$19(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$19(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3111
3112
|
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3112
3113
|
function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3113
3114
|
var styles$h = {
|
|
@@ -3199,7 +3200,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
3199
3200
|
}, {
|
|
3200
3201
|
key: "render",
|
|
3201
3202
|
value: function render() {
|
|
3202
|
-
const commonProps = _objectSpread$
|
|
3203
|
+
const commonProps = _objectSpread$19(_objectSpread$19({
|
|
3203
3204
|
value: this.state.draftValue,
|
|
3204
3205
|
autoComplete: this.props.autoComplete,
|
|
3205
3206
|
onChange: this.handleChange,
|
|
@@ -3218,7 +3219,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
3218
3219
|
htmlFor: inputId,
|
|
3219
3220
|
children: this.props.label
|
|
3220
3221
|
})
|
|
3221
|
-
}), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$
|
|
3222
|
+
}), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$19(_objectSpread$19({}, commonProps), {}, {
|
|
3222
3223
|
id: inputId,
|
|
3223
3224
|
className: classnames(styles$h.textarea, styles$h["textarea-".concat(this.props.style)], {
|
|
3224
3225
|
[styles$h.invalid]: !this.props.isValid,
|
|
@@ -3227,7 +3228,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
3227
3228
|
rows: 1,
|
|
3228
3229
|
maxRows: this.props.autoSize ? undefined : 1,
|
|
3229
3230
|
cacheMeasurements: true
|
|
3230
|
-
})) : jsx("input", _objectSpread$
|
|
3231
|
+
})) : jsx("input", _objectSpread$19(_objectSpread$19({}, commonProps), {}, {
|
|
3231
3232
|
id: inputId,
|
|
3232
3233
|
ref: this.props.inputRef,
|
|
3233
3234
|
type: this.props.as,
|
|
@@ -3595,8 +3596,8 @@ var messages$E = defineMessages({
|
|
|
3595
3596
|
}
|
|
3596
3597
|
});
|
|
3597
3598
|
|
|
3598
|
-
function ownKeys$
|
|
3599
|
-
function _objectSpread$
|
|
3599
|
+
function ownKeys$18(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3600
|
+
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$18(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$18(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3600
3601
|
const getBottomOption = formatMessage => ({
|
|
3601
3602
|
options: [{
|
|
3602
3603
|
label: formatMessage ? formatMessage(messages$E.bottomOption) : messages$E.bottomOption,
|
|
@@ -3607,7 +3608,7 @@ const getBottomOption = formatMessage => ({
|
|
|
3607
3608
|
const Option$2 = props => {
|
|
3608
3609
|
const _useIntl = useIntl(),
|
|
3609
3610
|
formatMessage = _useIntl.formatMessage;
|
|
3610
|
-
return jsx(AsyncSelectInput.Option, _objectSpread$
|
|
3611
|
+
return jsx(AsyncSelectInput.Option, _objectSpread$18(_objectSpread$18({}, props), {}, {
|
|
3611
3612
|
children: props.data.isBottomOption ? jsx(Text.Detail, {
|
|
3612
3613
|
tone: "secondary",
|
|
3613
3614
|
children: formatMessage(props.data.label)
|
|
@@ -3624,8 +3625,8 @@ const Option$2 = props => {
|
|
|
3624
3625
|
};
|
|
3625
3626
|
Option$2.displayName = 'Option';
|
|
3626
3627
|
|
|
3627
|
-
function ownKeys$
|
|
3628
|
-
function _objectSpread$
|
|
3628
|
+
function ownKeys$17(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3629
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$17(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$17(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3629
3630
|
const useHandlers = onChange => {
|
|
3630
3631
|
const _useState = useState(),
|
|
3631
3632
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3636,8 +3637,8 @@ const useHandlers = onChange => {
|
|
|
3636
3637
|
}, []);
|
|
3637
3638
|
const handleChange = useEventCallback(event => {
|
|
3638
3639
|
var _event$target$value;
|
|
3639
|
-
const eventWithExtractedValue = _objectSpread$
|
|
3640
|
-
target: _objectSpread$
|
|
3640
|
+
const eventWithExtractedValue = _objectSpread$17(_objectSpread$17({}, event), {}, {
|
|
3641
|
+
target: _objectSpread$17(_objectSpread$17({}, event.target), {}, {
|
|
3641
3642
|
value: (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value
|
|
3642
3643
|
})
|
|
3643
3644
|
});
|
|
@@ -3646,8 +3647,9 @@ const useHandlers = onChange => {
|
|
|
3646
3647
|
return [handleInputChange, handleChange];
|
|
3647
3648
|
};
|
|
3648
3649
|
|
|
3649
|
-
|
|
3650
|
-
function
|
|
3650
|
+
const _excluded$1 = ["extraWhere"];
|
|
3651
|
+
function ownKeys$16(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3652
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$16(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$16(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3651
3653
|
const constructPrefixSearchPredicate = function () {
|
|
3652
3654
|
let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
3653
3655
|
let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -3677,22 +3679,30 @@ const useLoadOptions = _ref => {
|
|
|
3677
3679
|
const client = useApolloClient$1();
|
|
3678
3680
|
const loadOptions = useCallback(function () {
|
|
3679
3681
|
let inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3682
|
+
let where;
|
|
3683
|
+
if (inputValue.length) {
|
|
3684
|
+
if (isUUID(inputValue)) {
|
|
3685
|
+
where = "id = \"".concat(inputValue, "\"");
|
|
3686
|
+
} else {
|
|
3687
|
+
const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
|
|
3688
|
+
_getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
|
|
3689
|
+
lowerBound = _getPrefixSearchBound2[0],
|
|
3690
|
+
upperBound = _getPrefixSearchBound2[1];
|
|
3691
|
+
where = constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
|
|
3689
3692
|
}
|
|
3690
|
-
}
|
|
3693
|
+
}
|
|
3694
|
+
const _ref2 = variables !== null && variables !== void 0 ? variables : {},
|
|
3695
|
+
extraWhere = _ref2.extraWhere,
|
|
3696
|
+
restVariables = _objectWithoutProperties(_ref2, _excluded$1);
|
|
3697
|
+
if (typeof extraWhere === 'string') {
|
|
3698
|
+
var _context6;
|
|
3699
|
+
where = where ? _concatInstanceProperty(_context6 = "(".concat(where, ") and ")).call(_context6, variables.extraWhere) : variables.extraWhere;
|
|
3700
|
+
}
|
|
3691
3701
|
return client.query({
|
|
3692
3702
|
query,
|
|
3693
|
-
variables: _objectSpread$
|
|
3703
|
+
variables: _objectSpread$16({
|
|
3694
3704
|
where
|
|
3695
|
-
},
|
|
3705
|
+
}, restVariables),
|
|
3696
3706
|
context: {
|
|
3697
3707
|
target: MC_API_PROXY_TARGETS.COMMERCETOOLS_PLATFORM
|
|
3698
3708
|
},
|
|
@@ -3981,9 +3991,9 @@ const StatePickerInput = _ref => {
|
|
|
3981
3991
|
};
|
|
3982
3992
|
StatePickerInput.displayName = 'StatePickerInput';
|
|
3983
3993
|
|
|
3984
|
-
function ownKeys$
|
|
3985
|
-
function _objectSpread$
|
|
3986
|
-
const TooltipWrapper = /*#__PURE__*/React.forwardRef((props, ref) => jsx("div", _objectSpread$
|
|
3994
|
+
function ownKeys$15(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3995
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$15(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$15(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3996
|
+
const TooltipWrapper = /*#__PURE__*/React.forwardRef((props, ref) => jsx("div", _objectSpread$15({
|
|
3987
3997
|
ref: ref,
|
|
3988
3998
|
style: {
|
|
3989
3999
|
display: 'block',
|
|
@@ -4121,8 +4131,8 @@ const getPrefixSearchBounds = input => {
|
|
|
4121
4131
|
};
|
|
4122
4132
|
|
|
4123
4133
|
const _excluded = ["action"];
|
|
4124
|
-
function ownKeys$
|
|
4125
|
-
function _objectSpread$
|
|
4134
|
+
function ownKeys$14(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4135
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context8 = ownKeys$14(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context9 = ownKeys$14(Object(t))).call(_context9, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4126
4136
|
|
|
4127
4137
|
/**
|
|
4128
4138
|
* Checks if a value is a LocalizedString
|
|
@@ -4144,7 +4154,7 @@ const getIsLocalizedString = maybeLocalizedString => {
|
|
|
4144
4154
|
*/
|
|
4145
4155
|
const transformCustomFieldsRawToCustomFields = customFieldsRaw => {
|
|
4146
4156
|
if (!customFieldsRaw || customFieldsRaw.length === 0) return null;
|
|
4147
|
-
return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$
|
|
4157
|
+
return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$14(_objectSpread$14({}, customFields), {}, {
|
|
4148
4158
|
[customField.name]: customField.value
|
|
4149
4159
|
}), {});
|
|
4150
4160
|
};
|
|
@@ -4168,7 +4178,7 @@ function transformLocalizedFieldsForCategory(category) {
|
|
|
4168
4178
|
const transformedData = applyTransformedLocalizedFields(category, transformationOptions);
|
|
4169
4179
|
const parent = category.parent ? transformLocalizedFieldsForCategory(category.parent) : null;
|
|
4170
4180
|
const ancestors = category.ancestors ? _mapInstanceProperty(_context = category.ancestors).call(_context, ancestor => transformLocalizedFieldsForCategory(ancestor)) : null;
|
|
4171
|
-
return _objectSpread$
|
|
4181
|
+
return _objectSpread$14(_objectSpread$14(_objectSpread$14({}, transformedData), parent ? {
|
|
4172
4182
|
parent
|
|
4173
4183
|
} : {}), ancestors ? {
|
|
4174
4184
|
ancestors
|
|
@@ -4259,7 +4269,7 @@ const createAttributeTypeValue = attribute => {
|
|
|
4259
4269
|
const formatMoney = valueType => money => {
|
|
4260
4270
|
if (valueType === 'fixed') {
|
|
4261
4271
|
return {
|
|
4262
|
-
[money.type]: _objectSpread$
|
|
4272
|
+
[money.type]: _objectSpread$14({
|
|
4263
4273
|
centAmount: money.centAmount,
|
|
4264
4274
|
currencyCode: money.currencyCode
|
|
4265
4275
|
}, money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4424,7 +4434,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4424
4434
|
case 'addAttributeDefinition':
|
|
4425
4435
|
return {
|
|
4426
4436
|
[actionName]: {
|
|
4427
|
-
attributeDefinition: _objectSpread$
|
|
4437
|
+
attributeDefinition: _objectSpread$14(_objectSpread$14({}, actionPayload.attribute), {}, {
|
|
4428
4438
|
label: transformLocalizedStringToLocalizedField(actionPayload.attribute.label),
|
|
4429
4439
|
inputTip: transformLocalizedStringToLocalizedField(actionPayload.attribute.inputTip),
|
|
4430
4440
|
type: createAttributeTypeValue(actionPayload.attribute)
|
|
@@ -4520,7 +4530,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4520
4530
|
return {
|
|
4521
4531
|
[actionName]: {
|
|
4522
4532
|
attributeName: actionPayload.attributeName,
|
|
4523
|
-
value: _objectSpread$
|
|
4533
|
+
value: _objectSpread$14(_objectSpread$14({}, actionPayload.value), {}, {
|
|
4524
4534
|
label: transformLocalizedStringToLocalizedField(actionPayload.value.label)
|
|
4525
4535
|
})
|
|
4526
4536
|
}
|
|
@@ -4529,7 +4539,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4529
4539
|
return {
|
|
4530
4540
|
[actionName]: {
|
|
4531
4541
|
attributeName: actionPayload.attributeName,
|
|
4532
|
-
newValue: _objectSpread$
|
|
4542
|
+
newValue: _objectSpread$14(_objectSpread$14({}, actionPayload.newValue), {}, {
|
|
4533
4543
|
label: transformLocalizedStringToLocalizedField(actionPayload.newValue.label)
|
|
4534
4544
|
})
|
|
4535
4545
|
}
|
|
@@ -4556,7 +4566,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4556
4566
|
name: transformLocalizedStringToLocalizedField(actionPayload.name),
|
|
4557
4567
|
taxCategory: actionPayload.taxCategory,
|
|
4558
4568
|
money: {
|
|
4559
|
-
[actionPayload.money.type]: _objectSpread$
|
|
4569
|
+
[actionPayload.money.type]: _objectSpread$14({
|
|
4560
4570
|
centAmount: actionPayload.money.centAmount,
|
|
4561
4571
|
currencyCode: actionPayload.money.currencyCode
|
|
4562
4572
|
}, actionPayload.money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4611,8 +4621,8 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4611
4621
|
fields: customFields
|
|
4612
4622
|
} : null;
|
|
4613
4623
|
return {
|
|
4614
|
-
[actionName]: _objectSpread$
|
|
4615
|
-
address: _objectSpread$
|
|
4624
|
+
[actionName]: _objectSpread$14(_objectSpread$14({}, actionPayload), {}, {
|
|
4625
|
+
address: _objectSpread$14(_objectSpread$14({}, omit(actionPayload.address, ['__typename'])), {}, {
|
|
4616
4626
|
custom
|
|
4617
4627
|
})
|
|
4618
4628
|
})
|
|
@@ -4688,8 +4698,8 @@ function omitDeep(obj, fieldsToOmit) {
|
|
|
4688
4698
|
return originalOmitDeep(obj, fieldsToOmit);
|
|
4689
4699
|
}
|
|
4690
4700
|
|
|
4691
|
-
function ownKeys
|
|
4692
|
-
function _objectSpread
|
|
4701
|
+
function ownKeys$13(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4702
|
+
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$13(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$13(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4693
4703
|
function getPriceChannelName(price) {
|
|
4694
4704
|
var _ref, _price$channel$name, _price$channel, _price$channel2;
|
|
4695
4705
|
return (_ref = (_price$channel$name = (_price$channel = price.channel) === null || _price$channel === void 0 ? void 0 : _price$channel.name) !== null && _price$channel$name !== void 0 ? _price$channel$name : (_price$channel2 = price.channel) === null || _price$channel2 === void 0 ? void 0 : _price$channel2.key) !== null && _ref !== void 0 ? _ref : null;
|
|
@@ -4703,11 +4713,11 @@ function getDiscountValue(price) {
|
|
|
4703
4713
|
} else if (((_price$value2 = price.value) === null || _price$value2 === void 0 ? void 0 : _price$value2.type) === PRECISION_TYPES.highPrecision && ((_price$discounted = price.discounted) === null || _price$discounted === void 0 || (_price$discounted = _price$discounted.value) === null || _price$discounted === void 0 ? void 0 : _price$discounted.type) === PRECISION_TYPES.centPrecision) {
|
|
4704
4714
|
fractionedAmount = getFractionedAmount(price.value) - getFractionedAmount(price.discounted.value);
|
|
4705
4715
|
}
|
|
4706
|
-
return price.discounted ? _objectSpread
|
|
4716
|
+
return price.discounted ? _objectSpread$13(_objectSpread$13({}, price.value), {}, {
|
|
4707
4717
|
fractionedAmount,
|
|
4708
4718
|
centAmount: price.value.centAmount - price.discounted.value.centAmount,
|
|
4709
4719
|
preciseAmount
|
|
4710
|
-
}) : _objectSpread
|
|
4720
|
+
}) : _objectSpread$13(_objectSpread$13({}, price.value), {}, {
|
|
4711
4721
|
centAmount: 0
|
|
4712
4722
|
});
|
|
4713
4723
|
}
|
|
@@ -4736,7 +4746,7 @@ function getNetUnitPrice(_ref2) {
|
|
|
4736
4746
|
}
|
|
4737
4747
|
let preciseAmount;
|
|
4738
4748
|
if (((_price$value4 = price.value) === null || _price$value4 === void 0 ? void 0 : _price$value4.type) === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + taxRate.amount);
|
|
4739
|
-
return _objectSpread
|
|
4749
|
+
return _objectSpread$13(_objectSpread$13({}, price.value), {}, {
|
|
4740
4750
|
centAmount,
|
|
4741
4751
|
preciseAmount
|
|
4742
4752
|
});
|
|
@@ -4753,7 +4763,7 @@ function getNetUnitPrice(_ref2) {
|
|
|
4753
4763
|
}
|
|
4754
4764
|
let preciseAmount;
|
|
4755
4765
|
if (((_price$value6 = price.value) === null || _price$value6 === void 0 ? void 0 : _price$value6.type) === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + lineItem.taxRate.amount);
|
|
4756
|
-
return _objectSpread
|
|
4766
|
+
return _objectSpread$13(_objectSpread$13({}, price.value), {}, {
|
|
4757
4767
|
centAmount,
|
|
4758
4768
|
preciseAmount
|
|
4759
4769
|
});
|
|
@@ -4765,7 +4775,7 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
4765
4775
|
const currencyCode = price.value.currencyCode;
|
|
4766
4776
|
const fractionedAmount = getFractionedAmount(price.value);
|
|
4767
4777
|
if (currencyCode && !isNil$1(fractionedAmount)) {
|
|
4768
|
-
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread
|
|
4778
|
+
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$13(_objectSpread$13({}, minPrices), {}, {
|
|
4769
4779
|
[currencyCode]: price.value
|
|
4770
4780
|
});
|
|
4771
4781
|
}
|
|
@@ -4774,8 +4784,8 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
4774
4784
|
return _Object$values(minPricesByCurrency);
|
|
4775
4785
|
}
|
|
4776
4786
|
|
|
4777
|
-
function ownKeys$
|
|
4778
|
-
function _objectSpread$
|
|
4787
|
+
function ownKeys$12(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4788
|
+
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$12(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$12(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4779
4789
|
const transformCustomFieldFromGraphQLResponse = resource => {
|
|
4780
4790
|
var _context, _context4;
|
|
4781
4791
|
return {
|
|
@@ -4790,14 +4800,14 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
4790
4800
|
return {
|
|
4791
4801
|
name: fieldDefinition.name,
|
|
4792
4802
|
required: fieldDefinition.required,
|
|
4793
|
-
type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 || (_fieldDefinition$type = _fieldDefinition$type.elementType) === null || _fieldDefinition$type === void 0 ? void 0 : _fieldDefinition$type.name) === 'LocalizedEnum' ? _objectSpread$
|
|
4794
|
-
elementType: _objectSpread$
|
|
4803
|
+
type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 || (_fieldDefinition$type = _fieldDefinition$type.elementType) === null || _fieldDefinition$type === void 0 ? void 0 : _fieldDefinition$type.name) === 'LocalizedEnum' ? _objectSpread$12(_objectSpread$12({}, fieldDefinition.type), {}, {
|
|
4804
|
+
elementType: _objectSpread$12(_objectSpread$12({}, fieldDefinition.type.elementType), {}, {
|
|
4795
4805
|
values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
|
|
4796
4806
|
key: value.key,
|
|
4797
4807
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
4798
4808
|
}))
|
|
4799
4809
|
})
|
|
4800
|
-
}) : ((_fieldDefinition$type2 = fieldDefinition.type) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread$
|
|
4810
|
+
}) : ((_fieldDefinition$type2 = fieldDefinition.type) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread$12(_objectSpread$12({}, fieldDefinition.type), {}, {
|
|
4801
4811
|
values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
|
|
4802
4812
|
key: value.key,
|
|
4803
4813
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -4808,7 +4818,7 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
4808
4818
|
})
|
|
4809
4819
|
}
|
|
4810
4820
|
},
|
|
4811
|
-
fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$
|
|
4821
|
+
fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$12(_objectSpread$12({}, fields), {}, {
|
|
4812
4822
|
[customField.name]: customField.value
|
|
4813
4823
|
}), {})
|
|
4814
4824
|
};
|
|
@@ -4820,7 +4830,7 @@ const convertProductSelectionFromGraphQl = productSelection => {
|
|
|
4820
4830
|
// Incase the product selection is not missing or if the current project dose not yet have access to the feature,
|
|
4821
4831
|
// in either case we return null
|
|
4822
4832
|
if (!productSelection) return null;
|
|
4823
|
-
return _objectSpread$
|
|
4833
|
+
return _objectSpread$12(_objectSpread$12({}, applyTransformedLocalizedFields(productSelection, [{
|
|
4824
4834
|
from: 'nameAllLocales',
|
|
4825
4835
|
to: 'name'
|
|
4826
4836
|
}])), {}, {
|
|
@@ -4843,8 +4853,8 @@ const transformAllToProperNounCase = text => {
|
|
|
4843
4853
|
return _mapInstanceProperty(_context = text.split(' ')).call(_context, term => transformToProperNounCase(term)).join(' ');
|
|
4844
4854
|
};
|
|
4845
4855
|
|
|
4846
|
-
function ownKeys$
|
|
4847
|
-
function _objectSpread$
|
|
4856
|
+
function ownKeys$11(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4857
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$11(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$11(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4848
4858
|
const REGEX_ISO8601 = /(\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2}:\d{2}(\.\d{3}[Z]?))/;
|
|
4849
4859
|
const REGEX_TIME = /\d{2}:\d{2}/;
|
|
4850
4860
|
const REGEX_DATE = /\d{4}-\d{2}-\d{2}/;
|
|
@@ -4861,7 +4871,7 @@ function filterCustomTypeUpdateActionValues() {
|
|
|
4861
4871
|
if (updateAction.action === 'setCustomField' && _Array$isArray(updateAction.value)) {
|
|
4862
4872
|
const definition = _findInstanceProperty(fieldDefinitions).call(fieldDefinitions, field => field.name === updateAction.name);
|
|
4863
4873
|
const definitionName = definition.type.elementType.name;
|
|
4864
|
-
return _objectSpread$
|
|
4874
|
+
return _objectSpread$11(_objectSpread$11({}, updateAction), {}, {
|
|
4865
4875
|
value: filterNotDefinedValues(updateAction.value, definitionName)
|
|
4866
4876
|
});
|
|
4867
4877
|
}
|
|
@@ -4935,8 +4945,8 @@ function omitSetsOfSets() {
|
|
|
4935
4945
|
|
|
4936
4946
|
var GetProductTypesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetProductTypesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productTypes" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 212, source: { body: "query GetProductTypesQuery($where: String) {\n productTypes(where: $where) {\n results {\n id\n name\n }\n }\n}\n\nquery GetProductTypeQuery($id: String) {\n productType(id: $id) {\n id\n name\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
4937
4947
|
|
|
4938
|
-
function ownKeys$
|
|
4939
|
-
function _objectSpread$
|
|
4948
|
+
function ownKeys$10(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4949
|
+
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$10(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$10(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4940
4950
|
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4941
4951
|
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4942
4952
|
var FetchTypeDefinitionsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchTypeDefinitionsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeDefinitions" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SetType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "elementType" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 1172, source: { body: "query FetchTypeDefinitionsQuery($where: String, $limit: Int, $offset: Int) {\n typeDefinitions(where: $where, limit: $limit, offset: $offset) {\n results {\n fieldDefinitions {\n type {\n name\n ... on SetType {\n elementType {\n name\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n }\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n ... on ReferenceType {\n referenceTypeId\n }\n }\n name\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
@@ -4996,7 +5006,7 @@ const mapDataToProps = _ref => {
|
|
|
4996
5006
|
return {
|
|
4997
5007
|
fetchTypeDefinitionsQuery: {
|
|
4998
5008
|
loading: fetchTypeDefinitionsQuery.loading,
|
|
4999
|
-
customFieldDefinitions: uniqBy(_mapInstanceProperty(fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$
|
|
5009
|
+
customFieldDefinitions: uniqBy(_mapInstanceProperty(fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$10({}, applyTransformedLocalizedFields(omitDeep(fieldDefinition, ['__typename'], {
|
|
5000
5010
|
isImmutable: true
|
|
5001
5011
|
}), [{
|
|
5002
5012
|
from: 'labelAllLocales',
|
|
@@ -5024,12 +5034,12 @@ const handlers$2 = {
|
|
|
5024
5034
|
}
|
|
5025
5035
|
};
|
|
5026
5036
|
|
|
5027
|
-
function ownKeys
|
|
5028
|
-
function _objectSpread
|
|
5037
|
+
function ownKeys$$(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5038
|
+
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$$(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$$(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5029
5039
|
const restDocToForm = customFieldsFromRestResponse => {
|
|
5030
5040
|
return {
|
|
5031
5041
|
fields: customFieldsFromRestResponse.fields,
|
|
5032
|
-
type: _objectSpread
|
|
5042
|
+
type: _objectSpread$$({
|
|
5033
5043
|
id: customFieldsFromRestResponse.type.id
|
|
5034
5044
|
}, customFieldsFromRestResponse.type.obj)
|
|
5035
5045
|
};
|
|
@@ -5048,14 +5058,14 @@ const graphQlDocToForm = typeDefinition => {
|
|
|
5048
5058
|
name: fieldDefinition.name,
|
|
5049
5059
|
required: fieldDefinition.required,
|
|
5050
5060
|
inputHint: fieldDefinition.inputHint,
|
|
5051
|
-
type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 || (_fieldDefinition$type = _fieldDefinition$type.elementType) === null || _fieldDefinition$type === void 0 ? void 0 : _fieldDefinition$type.name) === 'LocalizedEnum' ? _objectSpread
|
|
5052
|
-
elementType: _objectSpread
|
|
5061
|
+
type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 || (_fieldDefinition$type = _fieldDefinition$type.elementType) === null || _fieldDefinition$type === void 0 ? void 0 : _fieldDefinition$type.name) === 'LocalizedEnum' ? _objectSpread$$(_objectSpread$$({}, fieldDefinition.type), {}, {
|
|
5062
|
+
elementType: _objectSpread$$(_objectSpread$$({}, fieldDefinition.type.elementType), {}, {
|
|
5053
5063
|
values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
|
|
5054
5064
|
key: value.key,
|
|
5055
5065
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
5056
5066
|
}))
|
|
5057
5067
|
})
|
|
5058
|
-
}) : ((_fieldDefinition$type2 = fieldDefinition.type) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread
|
|
5068
|
+
}) : ((_fieldDefinition$type2 = fieldDefinition.type) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread$$(_objectSpread$$({}, fieldDefinition.type), {}, {
|
|
5059
5069
|
values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
|
|
5060
5070
|
key: value.key,
|
|
5061
5071
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -5071,7 +5081,7 @@ const formToRestDoc = formCustomFields => ({
|
|
|
5071
5081
|
type: {
|
|
5072
5082
|
id: formCustomFields.type.id,
|
|
5073
5083
|
typeId: 'type',
|
|
5074
|
-
obj: _objectSpread
|
|
5084
|
+
obj: _objectSpread$$({}, formCustomFields.type)
|
|
5075
5085
|
},
|
|
5076
5086
|
fields: formCustomFields.fields
|
|
5077
5087
|
});
|
|
@@ -5079,7 +5089,7 @@ const formToGraphQlDoc = formCustomFields => ({
|
|
|
5079
5089
|
type: {
|
|
5080
5090
|
id: formCustomFields.type.id,
|
|
5081
5091
|
typeId: 'type',
|
|
5082
|
-
obj: _objectSpread
|
|
5092
|
+
obj: _objectSpread$$({}, omit(formCustomFields.type, ['id']))
|
|
5083
5093
|
},
|
|
5084
5094
|
fields: omitBy(formCustomFields.fields || {}, isNil$1)
|
|
5085
5095
|
});
|
|
@@ -5210,8 +5220,8 @@ const REFERENCED_TYPES = {
|
|
|
5210
5220
|
zone: 'zone'
|
|
5211
5221
|
};
|
|
5212
5222
|
|
|
5213
|
-
function ownKeys$
|
|
5214
|
-
function _objectSpread$
|
|
5223
|
+
function ownKeys$_(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5224
|
+
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$_(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$_(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5215
5225
|
const extractDuplicatedValues = (values, type, language, languages) => {
|
|
5216
5226
|
let validatedValues = [];
|
|
5217
5227
|
if (type.name.toLowerCase() === 'money') {
|
|
@@ -5278,12 +5288,131 @@ function validations (formValues, language, languages) {
|
|
|
5278
5288
|
var _context2;
|
|
5279
5289
|
// Collect all required and set type fields
|
|
5280
5290
|
const fieldDefinitionsToValidate = _filterInstanceProperty(_context2 = formValues.custom.type.fieldDefinitions).call(_context2, fieldDefinition => fieldDefinition.required || fieldDefinition.type.name.toLowerCase() === 'set');
|
|
5281
|
-
const errors = _reduceInstanceProperty(fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$
|
|
5282
|
-
[fieldDefinition.name]: _objectSpread$
|
|
5291
|
+
const errors = _reduceInstanceProperty(fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$_(_objectSpread$_({}, acc), {}, {
|
|
5292
|
+
[fieldDefinition.name]: _objectSpread$_(_objectSpread$_({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
|
|
5283
5293
|
}), {});
|
|
5284
5294
|
return withoutEmptyErrorsByField(errors);
|
|
5285
5295
|
}
|
|
5286
5296
|
|
|
5297
|
+
function ownKeys$Z(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5298
|
+
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5299
|
+
const DroppableWrapper = _ref => {
|
|
5300
|
+
let children = _ref.children,
|
|
5301
|
+
onDragEnd = _ref.onDragEnd;
|
|
5302
|
+
return jsx(DragDropContext, {
|
|
5303
|
+
onDragEnd: onDragEnd,
|
|
5304
|
+
children: jsx(Droppable, {
|
|
5305
|
+
droppableId: "droppable",
|
|
5306
|
+
children: provided => jsxs("div", _objectSpread$Z(_objectSpread$Z({
|
|
5307
|
+
ref: provided.innerRef
|
|
5308
|
+
}, provided.droppableProps), {}, {
|
|
5309
|
+
children: [children, provided.placeholder]
|
|
5310
|
+
}))
|
|
5311
|
+
})
|
|
5312
|
+
});
|
|
5313
|
+
};
|
|
5314
|
+
|
|
5315
|
+
function ownKeys$Y(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5316
|
+
function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$Y(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$Y(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5317
|
+
function DragHandle(props) {
|
|
5318
|
+
return jsx("div", _objectSpread$Y(_objectSpread$Y({}, props), {}, {
|
|
5319
|
+
children: jsx(IconButton, {
|
|
5320
|
+
icon: jsx(DragIcon, {}),
|
|
5321
|
+
size: "medium",
|
|
5322
|
+
label: "reorder drag handle"
|
|
5323
|
+
})
|
|
5324
|
+
}));
|
|
5325
|
+
}
|
|
5326
|
+
DragHandle.displayName = 'DragHandle';
|
|
5327
|
+
|
|
5328
|
+
function ownKeys$X(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5329
|
+
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$X(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$X(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5330
|
+
const DraggableWrapper = _ref => {
|
|
5331
|
+
let children = _ref.children,
|
|
5332
|
+
draggableKey = _ref.draggableKey,
|
|
5333
|
+
draggableId = _ref.draggableId,
|
|
5334
|
+
index = _ref.index;
|
|
5335
|
+
const portal = document.createElement('div');
|
|
5336
|
+
portal.id = 'drag-rbd-portal';
|
|
5337
|
+
document.body.appendChild(portal);
|
|
5338
|
+
return jsx(Draggable, {
|
|
5339
|
+
draggableId: draggableId,
|
|
5340
|
+
index: index,
|
|
5341
|
+
children: (provided, snapshot) => {
|
|
5342
|
+
const child = jsx("div", _objectSpread$X(_objectSpread$X({
|
|
5343
|
+
ref: provided.innerRef
|
|
5344
|
+
}, provided.draggableProps), {}, {
|
|
5345
|
+
children: jsxs(Grid, {
|
|
5346
|
+
gridTemplateColumns: '1fr 20fr',
|
|
5347
|
+
gridTemplateRows: "auto 1fr auto",
|
|
5348
|
+
gridGap: customProperties.spacingM,
|
|
5349
|
+
children: [jsx(Grid.Item, {
|
|
5350
|
+
children: jsx(DragHandle, _objectSpread$X({}, provided.dragHandleProps))
|
|
5351
|
+
}), jsx(Grid.Item, {
|
|
5352
|
+
children: children
|
|
5353
|
+
})]
|
|
5354
|
+
})
|
|
5355
|
+
}));
|
|
5356
|
+
if (!snapshot.isDragging) {
|
|
5357
|
+
return child;
|
|
5358
|
+
}
|
|
5359
|
+
|
|
5360
|
+
// render the draggable in the portal when it's being dragged
|
|
5361
|
+
return /*#__PURE__*/ReactDOM.createPortal(jsx("div", {
|
|
5362
|
+
children: child
|
|
5363
|
+
}), portal);
|
|
5364
|
+
}
|
|
5365
|
+
}, draggableKey);
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5368
|
+
function ownKeys$W(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5369
|
+
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$W(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$W(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5370
|
+
const DefaultWrapper = _ref => {
|
|
5371
|
+
let children = _ref.children;
|
|
5372
|
+
return jsx(Fragment, {
|
|
5373
|
+
children: children
|
|
5374
|
+
});
|
|
5375
|
+
};
|
|
5376
|
+
DefaultWrapper.propTypes = {
|
|
5377
|
+
children: PropTypes.node.isRequired
|
|
5378
|
+
};
|
|
5379
|
+
const dndContextDefaultValues = {
|
|
5380
|
+
onDragEnd: () => {},
|
|
5381
|
+
DroppableWrapper: DefaultWrapper,
|
|
5382
|
+
DraggableWrapper: DefaultWrapper
|
|
5383
|
+
};
|
|
5384
|
+
const DnDContext = /*#__PURE__*/createContext(dndContextDefaultValues);
|
|
5385
|
+
const DndProvider = _ref2 => {
|
|
5386
|
+
let onDragEnd = _ref2.onDragEnd,
|
|
5387
|
+
children = _ref2.children;
|
|
5388
|
+
const _useToggleState = useToggleState(false),
|
|
5389
|
+
_useToggleState2 = _slicedToArray(_useToggleState, 2),
|
|
5390
|
+
isDragAndDropMode = _useToggleState2[0],
|
|
5391
|
+
setDragAndDropMode = _useToggleState2[1];
|
|
5392
|
+
if (isDragAndDropMode) {
|
|
5393
|
+
return jsx(DnDContext.Provider, {
|
|
5394
|
+
value: {
|
|
5395
|
+
onDragEnd,
|
|
5396
|
+
DroppableWrapper,
|
|
5397
|
+
DraggableWrapper,
|
|
5398
|
+
setDragAndDropMode,
|
|
5399
|
+
isDragAndDropMode
|
|
5400
|
+
},
|
|
5401
|
+
children: children
|
|
5402
|
+
});
|
|
5403
|
+
}
|
|
5404
|
+
return jsx(DnDContext.Provider, {
|
|
5405
|
+
value: _objectSpread$W(_objectSpread$W({}, dndContextDefaultValues), {}, {
|
|
5406
|
+
isDragAndDropMode,
|
|
5407
|
+
setDragAndDropMode
|
|
5408
|
+
}),
|
|
5409
|
+
children: children
|
|
5410
|
+
});
|
|
5411
|
+
};
|
|
5412
|
+
const useDnDContext = () => {
|
|
5413
|
+
return useContext(DnDContext);
|
|
5414
|
+
};
|
|
5415
|
+
|
|
5287
5416
|
function CustomTextInput(props) {
|
|
5288
5417
|
const isMultiLine = props.fieldDefinition.inputHint === 'MultiLine';
|
|
5289
5418
|
const InputComponent = isMultiLine ? MultilineTextInput : TextInput;
|
|
@@ -6972,15 +7101,21 @@ CustomNestedInput.displayName = 'CustomNestedInput';
|
|
|
6972
7101
|
|
|
6973
7102
|
var styles$d = {
|
|
6974
7103
|
"divider": "divider-module__divider___4-vdy",
|
|
7104
|
+
"divider-horizontal": "divider-module__divider-horizontal___RuUcj",
|
|
7105
|
+
"divider-vertical": "divider-module__divider-vertical___32kJG",
|
|
6975
7106
|
"divider-solid": "divider-module__divider-solid___3Fs4q divider-module__divider___4-vdy",
|
|
6976
7107
|
"divider-dashed": "divider-module__divider-dashed___2Em8A divider-module__divider___4-vdy"
|
|
6977
7108
|
};
|
|
6978
7109
|
function Divider(_ref) {
|
|
6979
|
-
let isDashed = _ref.isDashed
|
|
7110
|
+
let isDashed = _ref.isDashed,
|
|
7111
|
+
_ref$orientation = _ref.orientation,
|
|
7112
|
+
orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation;
|
|
6980
7113
|
return jsx("hr", {
|
|
6981
7114
|
className: classnames({
|
|
6982
7115
|
[styles$d['divider-solid']]: !isDashed,
|
|
6983
|
-
[styles$d['divider-dashed']]: isDashed
|
|
7116
|
+
[styles$d['divider-dashed']]: isDashed,
|
|
7117
|
+
[styles$d['divider-horizontal']]: orientation === 'horizontal',
|
|
7118
|
+
[styles$d['divider-vertical']]: orientation === 'vertical'
|
|
6984
7119
|
})
|
|
6985
7120
|
});
|
|
6986
7121
|
}
|
|
@@ -7528,7 +7663,11 @@ const CustomFieldsInternal = props => {
|
|
|
7528
7663
|
handleBlur = _useFormikContext.handleBlur;
|
|
7529
7664
|
const didFormValidationFail = useDidFormValidationFail();
|
|
7530
7665
|
const fieldDefinitions = omitSetsOfSets(props.fieldDefinitions);
|
|
7531
|
-
|
|
7666
|
+
const _useDnDContext = useDnDContext(),
|
|
7667
|
+
DroppableWrapper = _useDnDContext.DroppableWrapper,
|
|
7668
|
+
DraggableWrapper = _useDnDContext.DraggableWrapper,
|
|
7669
|
+
isDragAndDropMode = _useDnDContext.isDragAndDropMode;
|
|
7670
|
+
return jsx(DroppableWrapper, {
|
|
7532
7671
|
children: _mapInstanceProperty(fieldDefinitions).call(fieldDefinitions, (fieldDefinition, index) => {
|
|
7533
7672
|
var _context2;
|
|
7534
7673
|
const fieldName = getFieldName(props.name, fieldDefinition.name);
|
|
@@ -7547,42 +7686,50 @@ const CustomFieldsInternal = props => {
|
|
|
7547
7686
|
return jsx(FastField, {
|
|
7548
7687
|
name: fieldName,
|
|
7549
7688
|
validate: validate,
|
|
7550
|
-
children: () =>
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
children:
|
|
7557
|
-
name: fieldName,
|
|
7558
|
-
fieldDefinition: fieldDefinition
|
|
7559
|
-
}), jsxs(Spacings.Stack, {
|
|
7689
|
+
children: () => {
|
|
7690
|
+
var _context3, _context4;
|
|
7691
|
+
return jsx(DraggableWrapper, {
|
|
7692
|
+
draggableKey: _concatInstanceProperty(_context3 = "".concat(fieldName, "-")).call(_context3, index),
|
|
7693
|
+
draggableId: _concatInstanceProperty(_context4 = "".concat(fieldName, "-")).call(_context4, index),
|
|
7694
|
+
index: index,
|
|
7695
|
+
children: jsx(Spacings.Stack, {
|
|
7560
7696
|
scale: "xs",
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7697
|
+
children: jsxs("div", {
|
|
7698
|
+
"aria-invalid": _Object$keys(fieldErrors !== null && fieldErrors !== void 0 ? fieldErrors : {}).length > 0,
|
|
7699
|
+
"aria-errormessage": "".concat(fieldName, "-error"),
|
|
7700
|
+
id: "".concat(fieldName, "-error"),
|
|
7701
|
+
children: [jsx(CustomFieldsLabel, {
|
|
7702
|
+
name: fieldName,
|
|
7703
|
+
fieldDefinition: fieldDefinition
|
|
7704
|
+
}), jsxs(Spacings.Stack, {
|
|
7705
|
+
scale: "xs",
|
|
7706
|
+
alignItems: "stretch",
|
|
7707
|
+
children: [isNested(fieldDefinition) ? jsx(CustomNestedFieldInput, {
|
|
7708
|
+
name: fieldName,
|
|
7709
|
+
value: value,
|
|
7710
|
+
fieldDefinition: fieldDefinition,
|
|
7711
|
+
isDisabled: props.isDisabled || isDragAndDropMode,
|
|
7712
|
+
isReadOnly: props.isReadOnly,
|
|
7713
|
+
onBlur: handleBlur,
|
|
7714
|
+
setFieldValue: props.setFieldValue
|
|
7715
|
+
}) : jsx(CustomFieldInput, {
|
|
7716
|
+
name: fieldName,
|
|
7717
|
+
value: value,
|
|
7718
|
+
fieldDefinition: fieldDefinition,
|
|
7719
|
+
isDisabled: props.isDisabled || isDragAndDropMode,
|
|
7720
|
+
isReadOnly: props.isReadOnly,
|
|
7721
|
+
onBlur: handleBlur,
|
|
7722
|
+
setFieldValue: props.setFieldValue,
|
|
7723
|
+
hasError: hasError
|
|
7724
|
+
}), jsx(CustomFieldErrors, {
|
|
7725
|
+
isTouched: isTouched,
|
|
7726
|
+
errors: fieldErrors
|
|
7727
|
+
})]
|
|
7728
|
+
})]
|
|
7729
|
+
})
|
|
7730
|
+
})
|
|
7731
|
+
});
|
|
7732
|
+
}
|
|
7586
7733
|
}, _concatInstanceProperty(_context2 = "".concat(fieldName, "-")).call(_context2, index));
|
|
7587
7734
|
})
|
|
7588
7735
|
});
|
|
@@ -7613,6 +7760,8 @@ const CustomFields = props => {
|
|
|
7613
7760
|
};
|
|
7614
7761
|
CustomFields.displayName = 'CustomFields';
|
|
7615
7762
|
|
|
7763
|
+
CustomFields.DndProvider = DndProvider;
|
|
7764
|
+
|
|
7616
7765
|
var pickerMessages = defineMessages({
|
|
7617
7766
|
productSelectionsBasicSelectPlaceholder: {
|
|
7618
7767
|
id: 'ProductSelectionPicker.productSelectionsBasicSelectPlaceholder',
|
|
@@ -13162,4 +13311,4 @@ CustomFieldsFormField.createGraphQlDocFromFormState = createGraphQlDocFromFormSt
|
|
|
13162
13311
|
|
|
13163
13312
|
var CategorySearchPickerOptionFragment = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "CategorySearchPickerOptionFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CategorySearch" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "externalId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "slugAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "parent" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "ancestors" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 685, source: { body: "query SearchCategoryReference($locale: Locale!, $text: String!) {\n categories: categoryAutocomplete(locale: $locale, text: $text) {\n results {\n ...CategorySearchPickerOptionFragment\n }\n }\n}\n\nquery FetchCategoriesByIds($where: String!) {\n categories(where: $where) {\n results {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nfragment CategorySearchPickerOptionFragment on CategorySearch {\n id\n externalId\n nameAllLocales {\n locale\n value\n }\n slugAllLocales {\n locale\n value\n }\n parent {\n nameAllLocales {\n locale\n value\n }\n }\n ancestors {\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13164
13313
|
|
|
13165
|
-
export { booleanField as BooleanField, Button, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange, MissingValueField, MultiValueSearchInput, numericFormatInput as NumericFormatInput, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache, RequiredIndicator, ScrollToFieldError, searchInput as SearchInput, SelectableFieldSearchInput, StoreSelectField, StoreSelectInput, ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$8 as booleanMessages, buildSearchQuery, businessRoleConstants, messages$r as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$2 as customFieldDefinitionsMockHanders, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState$1 as injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectModalState as injectToggleState, injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$7 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, handlers as platformLimitsMockHandlers, handlers$3 as productSelectionsFetcherMockHandler, handlers$4 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$F as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$5 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useShippingMethodsLimits as useShippingMethodsPlatformLimits, useStorage, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesLimits as useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, handlers$1 as useTotalNumberOfStoresFetcherHandlers, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$K as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };
|
|
13314
|
+
export { booleanField as BooleanField, Button, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange, MissingValueField, MultiValueSearchInput, numericFormatInput as NumericFormatInput, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache, RequiredIndicator, ScrollToFieldError, searchInput as SearchInput, SelectableFieldSearchInput, StoreSelectField, StoreSelectInput, ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$8 as booleanMessages, buildSearchQuery, businessRoleConstants, messages$r as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$2 as customFieldDefinitionsMockHanders, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState$1 as injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectModalState as injectToggleState, injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$7 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, handlers as platformLimitsMockHandlers, handlers$3 as productSelectionsFetcherMockHandler, handlers$4 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$F as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$5 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useDnDContext as useCustomFieldsDnDContext, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useShippingMethodsLimits as useShippingMethodsPlatformLimits, useStorage, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesLimits as useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, handlers$1 as useTotalNumberOfStoresFetcherHandlers, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$K as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };
|